/* Premium Trading Platform Registration Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;700;900&display=swap');

/* CSS Variables for Theme Management */
:root {
  /* Primary Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  
  /* Theme Colors - Dark */
  --bg-primary: #0a0b1a;
  --bg-secondary: #151628;
  --bg-tertiary: #1e1f35;
  --bg-card: rgba(30, 31, 53, 0.95);
  --bg-glass: rgba(30, 31, 53, 0.8);
  
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --text-muted: #6c757d;
  --text-accent: #667eea;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: #667eea;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Orbitron', 'Inter', sans-serif;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* Light Theme Variables */
[data-bs-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.8);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #667eea;
  
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.trading-platform-body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Preloader */
.premium-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0a0b1a 0%, #151628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.premium-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide main content while loading */
body.loading .trading-header,
body.loading .hero-registration,
body.loading .trading-footer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body:not(.loading) .trading-header,
body:not(.loading) .hero-registration,
body:not(.loading) .trading-footer {
  opacity: 1;
  visibility: visible;
}

.preloader-content {
  text-align: center;
  color: white;
}

.trading-logo-animation {
  position: relative;
  margin-bottom: 2rem;
}

.trading-logo-animation img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: logoFloat 3s ease-in-out infinite;
}

.loading-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Particles Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

/* Trading Ticker */
.trading-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: 40px;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  margin-right: 3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item .symbol {
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.ticker-item .price {
  margin-right: 0.5rem;
  font-weight: 600;
}

.ticker-item .price.up {
  color: #4ade80;
}

.ticker-item .price.down {
  color: #f87171;
}

.ticker-item .change {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ticker-item .change:contains('+') {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.ticker-item .change:contains('-') {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Enhanced Header */
.trading-header {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.brand-info .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.platform-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle .theme-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.theme-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-accent);
}

/* Hero Registration Section */
.hero-registration {
  min-height: 100vh;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  opacity: 0.95;
}

.trading-charts-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(102,126,234,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

/* Hero Content */
.hero-content {
  padding-right: 2rem;
}

.badge-container {
  margin-bottom: 1.5rem;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-text {
  color: var(--text-accent);
  position: relative;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-accent);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.trust-badge {
  height: 40px;
  opacity: 0.7;
  transition: var(--transition-normal);
}

.trust-badge:hover {
  opacity: 1;
}

/* Registration Container */
.registration-container {
  padding-left: 2rem;
}

.premium-registration-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.premium-registration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* Registration Header */
.registration-header {
  text-align: center;
  margin-bottom: 3rem;
}

.header-icon {
  margin-bottom: 1.5rem;
}

.icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.registration-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.registration-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Enhanced Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-track {
  position: relative;
  background: var(--bg-tertiary);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.6s ease;
  border-radius: 3px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: var(--transition-normal);
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 1;
  color: var(--text-accent);
}

.step-number {
  width: 30px;
  height: 30px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-normal);
}

.step-indicator.active .step-number {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}

.step-indicator.completed .step-number {
  background: var(--success-gradient);
  border-color: transparent;
  color: white;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.step-indicator.active .step-label,
.step-indicator.completed .step-label {
  color: var(--text-primary);
}

/* Form Steps */
.form-step {
  display: none;
  animation: slideInUp 0.5s ease;
}

.form-step.active {
  display: block;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  margin-bottom: 2rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-title i {
  color: var(--text-accent);
}

.step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Input Styles */
.input-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.premium-input-group {
  position: relative;
}

.input-container {
  position: relative;
}

.premium-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
  outline: none;
}

.premium-input:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.premium-input.valid {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

.premium-input.invalid {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.05);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.premium-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-normal);
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-label.active,
.premium-input:focus + .premium-label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-accent);
  font-weight: 500;
}

.premium-label i {
  color: var(--text-accent);
  font-size: 0.9rem;
}

.input-indicator {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.input-indicator i.fa-check {
  color: #4ade80;
}

.input-indicator i.fa-times {
  color: #f87171;
}

.input-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-normal);
  z-index: 2;
}

.password-toggle:hover {
  color: var(--text-accent);
}

/* Password Strength */
.password-strength {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--text-accent);
}

.strength-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.4s ease;
  border-radius: 3px;
}

.strength-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Agreement Section */
.agreement-section {
  margin-top: 1.5rem;
}

.premium-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 1rem;
}

.premium-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  flex-shrink: 0;
  margin-top: 2px;
}

.premium-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-gradient);
  border-color: transparent;
}

.checkmark i {
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition-normal);
}

.premium-checkbox input[type="checkbox"]:checked + .checkmark i {
  opacity: 1;
}

.agreement-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agreement-text a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
}

.agreement-text a:hover {
  text-decoration: underline;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.025em;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.premium-btn-primary {
  background: var(--primary-gradient);
  color: white;
  margin-left: auto;
}

.premium-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.premium-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.premium-btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-accent);
}

.premium-btn-success {
  background: var(--success-gradient);
  color: white;
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  margin-left: 0 !important;
}

.premium-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.premium-btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: none;
}

.btn-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Messages */
.form-messages {
  margin-top: 1.5rem;
}

.premium-alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Additional Features */
.additional-features {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.security-item i {
  font-size: 1.5rem;
  color: var(--text-accent);
}

.social-proof {
  text-align: center;
}

.social-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.user-avatars {
  display: flex;
  justify-content: center;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  margin-left: -10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.more {
  background: var(--bg-tertiary);
  color: var(--text-accent);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Switch Auth */
.switch-auth {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.switch-auth p {
  color: var(--text-muted);
  margin: 0;
}

.auth-link {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Trading Footer */
.trading-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition-normal);
}

.link-group a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .hero-registration .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-registration .row {
    flex-direction: column-reverse;
  }
  
  .hero-content,
  .registration-container {
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .premium-registration-card {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .platform-stats {
    gap: 1rem;
  }
  
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .auth-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  /* Hide ticker on mobile for better performance */
  .trading-ticker {
    display: none;
  }
  
  .trading-header {
    top: 0;
    padding: 0.75rem 0;
    position: fixed;
    background: rgba(10, 11, 26, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-registration {
    padding-top: 100px; /* Adjusted for fixed header */
    padding-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Enhanced Header responsive adjustments */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .brand-section {
    flex: 1;
  }
  
  .brand-section .logo-container {
    justify-content: flex-start;
  }
  
  .header-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 11, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .header-actions.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .platform-stats {
    order: 1;
    justify-content: center;
    width: 100%;
    gap: 2rem;
  }
  
  .auth-buttons {
    order: 2;
    width: 100%;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  /* Registration card mobile optimizations */
  .premium-registration-card {
    margin: 0 1rem;
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .registration-title {
    font-size: 1.5rem;
  }
  
  .registration-subtitle {
    font-size: 0.9rem;
  }
  
  /* Progress steps mobile */
  .progress-steps {
    gap: 0.5rem;
  }
  
  .step-indicator {
    gap: 0.3rem;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .step-label {
    font-size: 0.7rem;
    text-align: center;
  }
  
  /* Form inputs mobile */
  .input-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .premium-input {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  
  .premium-label {
    left: 1rem;
    font-size: 0.95rem;
  }
  
  .premium-label.active {
    font-size: 0.8rem;
    left: 0.75rem;
  }
  
  .step-title {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .step-description {
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Step navigation mobile */
  .step-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-prev {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  
  .premium-btn-primary,
  .premium-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    order: 1;
  }
  
  /* Features mobile */
  .feature-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin: 0 auto;
  }
  
  .feature-content h4 {
    font-size: 0.95rem;
  }
  
  .feature-content p {
    font-size: 0.85rem;
  }
  
  /* Trust indicators mobile */
  .trust-indicators {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .trust-badge {
    height: 28px;
  }
  
  /* Security badges mobile */
  .security-badges {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .security-item {
    flex: 1;
    min-width: calc(33.333% - 0.67rem);
  }
  
  /* Footer mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-brand {
    margin-bottom: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .link-group {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  /* Extra small mobile adjustments */
  .premium-registration-card {
    padding: 1rem;
    margin: 0 0.5rem;
    border-radius: 16px;
  }
  
  /* Enhanced Header Mobile Responsiveness */
  .trading-header {
    padding: 0.5rem 0;
    position: relative;
    top: 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  .brand-section .logo-container {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .main-logo {
    width: 40px;
    height: 40px;
  }
  
  .brand-info .brand-name {
    font-size: 1.1rem;
  }
  
  .brand-tagline {
    font-size: 0.75rem;
    display: none; /* Hide on very small screens */
  }
  
  .header-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .platform-stats {
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    flex: 1;
  }
  
  .stat-item {
    text-align: center;
    min-width: 70px;
  }
  
  .stat-value {
    font-size: 1rem;
    line-height: 1.2;
  }
  
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.1;
  }
  
  .auth-buttons {
    flex-direction: row;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  
  .auth-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .theme-toggle .theme-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  /* Hero section adjustments */
  .hero-registration {
    padding-top: 120px; /* Account for taller mobile header */
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .registration-title {
    font-size: 1.3rem;
  }
  
  .registration-subtitle {
    font-size: 0.85rem;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .step-description {
    font-size: 0.85rem;
  }
  
  .icon-container {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .premium-input {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .premium-label {
    font-size: 0.9rem;
  }
  
  .premium-label.active {
    font-size: 0.75rem;
  }
  
  .premium-btn-primary,
  .premium-btn-secondary {
    padding: 0.9rem;
    font-size: 0.9rem;
  }
  
  .features-grid {
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.75rem;
  }
  
  .security-badges {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .security-item {
    min-width: auto;
    flex: none;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-registration {
    padding-top: 60px;
    padding-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    margin-bottom: 1rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .premium-registration-card {
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .registration-header {
    margin-bottom: 1rem;
  }
  
  .step-content {
    padding: 1rem 0;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .premium-registration-card {
    max-width: 500px;
  }
  
  .input-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .main-logo,
  .footer-logo,
  .trust-badge {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .icon-pulse,
  .loading-pulse,
  .float,
  .glow {
    animation: none !important;
  }
}

/* Advanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Focus Styles for Accessibility */
.premium-input:focus,
.btn:focus,
.premium-checkbox:focus {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .trading-ticker,
  .trading-header,
  .trading-footer,
  .particles-container {
    display: none;
  }
  
  .premium-registration-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  padding: 0;
}

.mobile-menu-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-accent);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  margin: 2px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
