/**
 * Theme CSS - White-Label Broker Site Template
 *
 * This stylesheet provides:
 * 1. CSS Variable System for easy theming
 * 2. Utility classes for brand-colored elements
 * 3. Premium visual enhancements (animations, effects)
 * 4. 5 Style Presets: professional, bold, modern, classic, minimal
 * 5. Navigation components (dropdowns, mobile menu, language selector)
 * 6. Responsive design utilities
 */

/* =============================================================================
   1. CSS VARIABLE SYSTEM
   ============================================================================= */

:root {
  /* Primary brand color with RGB for alpha support */
  --primary: #d4af37;
  --primary-rgb: 212, 175, 55;
  --primary-light: #e0c057;
  --primary-dark: #b8982c;
  --primary-glow: rgba(var(--primary-rgb), 0.3);

  /* Backgrounds */
  --bg-dark: #111827;
  --bg-darker: #0d1117;
  --bg-medium: #1f2937;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;

  /* Text colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9ca3af;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --heading-weight: 800;
  --heading-tracking: -0.02em;
  --body-weight: 400;

  /* Borders & Corners - Defaults (overridden by presets) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --radius-button: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);
  --shadow-primary: 0 4px 15px rgba(var(--primary-rgb), 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  --gradient-cta: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-card: none;

  /* Navigation */
  --nav-bg: white;
  --nav-bg-rgb: 255, 255, 255;
  --nav-blur: none;
  --nav-border: 1px solid #f3f4f6;
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --nav-text: var(--text-primary);

  /* Borders */
  --border-card: 1px solid rgba(var(--primary-rgb), 0.08);
  --border-input: 1px solid #e5e7eb;

  /* Spacing */
  --section-padding: 5rem;
  --card-padding: 2rem;

  /* Effects */
  --hover-lift: -6px;
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-light: #1f2937;
  --bg-white: #111827;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --nav-bg: var(--bg-darker);
  --nav-bg-rgb: 13, 17, 23;
  --nav-text: #ffffff;
  --border-input: 1px solid #374151;
}


/* =============================================================================
   2. STYLE PRESETS
   ============================================================================= */

/* -----------------------------------------------------------------------------
   PRESET 1: Professional - Clean, corporate, trust-building
   ----------------------------------------------------------------------------- */
[data-preset="professional"] {
  --heading-weight: 700;
  --heading-tracking: -0.02em;
  --body-weight: 400;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-button: 8px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.08);

  --gradient-hero: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  --gradient-card: none;
  --gradient-cta: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);

  --border-card: 1px solid rgba(var(--primary-rgb), 0.08);
  --border-input: 1px solid #e5e7eb;

  --nav-bg: white;
  --nav-blur: none;
  --nav-border: 1px solid #f3f4f6;
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

  --hover-lift: -4px;
  --transition-speed: 0.25s;
}

[data-preset="professional"] .section-header {
  text-align: left;
}

[data-preset="professional"] .card-icon {
  border-radius: 10px;
}

/* -----------------------------------------------------------------------------
   PRESET 2: Bold - High contrast, action-oriented
   ----------------------------------------------------------------------------- */
[data-preset="bold"] {
  --heading-weight: 900;
  --heading-tracking: -0.03em;
  --body-weight: 500;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-button: 0px;

  --shadow-sm: 4px 4px 0 rgba(var(--primary-rgb), 0.2);
  --shadow-md: 6px 6px 0 rgba(var(--primary-rgb), 0.15);
  --shadow-lg: 10px 10px 0 rgba(var(--primary-rgb), 0.1);
  --shadow-glow: 0 0 60px rgba(var(--primary-rgb), 0.2);

  --gradient-hero: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--primary-dark) 150%);
  --gradient-card: linear-gradient(135deg, white 0%, #fafafa 100%);
  --gradient-cta: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);

  --border-card: 3px solid var(--primary);
  --border-input: 2px solid var(--bg-dark);

  --nav-bg: var(--bg-darker);
  --nav-blur: none;
  --nav-border: none;
  --nav-shadow: none;
  --nav-text: white;

  --hover-lift: -6px;
  --transition-speed: 0.15s;
}

[data-preset="bold"] .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  border: 3px solid var(--bg-dark);
}

[data-preset="bold"] .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--bg-dark);
}

[data-preset="bold"] .premium-card {
  border-left: 4px solid var(--primary);
}

[data-preset="bold"] .stat-value {
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

[data-preset="bold"] .section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin-top: 1rem;
}

/* -----------------------------------------------------------------------------
   PRESET 3: Modern - Soft, approachable, contemporary
   ----------------------------------------------------------------------------- */
[data-preset="modern"] {
  --heading-weight: 800;
  --heading-tracking: -0.02em;
  --body-weight: 400;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-button: 100px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 8px 40px rgba(var(--primary-rgb), 0.15);

  --gradient-hero: radial-gradient(ellipse at 30% 0%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 70% 100%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
                   linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  --gradient-card: linear-gradient(180deg, white 0%, #fefefe 100%);
  --gradient-cta: radial-gradient(ellipse at center, var(--bg-medium) 0%, var(--bg-dark) 100%);

  --border-card: 1px solid rgba(var(--primary-rgb), 0.1);
  --border-input: 1px solid #e5e7eb;

  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-bg-rgb: 255, 255, 255;
  --nav-blur: blur(20px);
  --nav-border: 1px solid rgba(255, 255, 255, 0.5);
  --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

  --hover-lift: -8px;
  --transition-speed: 0.35s;
  --transition-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-preset="modern"] .navbar {
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
}

[data-preset="modern"] .premium-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

[data-preset="modern"] .card-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.05));
}

[data-preset="modern"] .btn-primary {
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

[data-preset="modern"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

[data-preset="modern"] .floating-blob {
  display: block;
}

/* -----------------------------------------------------------------------------
   PRESET 4: Classic - Traditional finance, established
   ----------------------------------------------------------------------------- */
[data-preset="classic"] {
  --font-heading: 'Playfair Display', Georgia, serif;
  --heading-weight: 700;
  --heading-tracking: 0;
  --body-weight: 400;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-button: 4px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow: none;

  --gradient-hero: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  --gradient-card: none;
  --gradient-cta: var(--bg-dark);

  --border-card: 1px solid #e5e7eb;
  --border-input: 1px solid #d1d5db;

  --nav-bg: white;
  --nav-blur: none;
  --nav-border: none;
  --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);

  --hover-lift: -2px;
  --transition-speed: 0.2s;
}

[data-preset="classic"] h1,
[data-preset="classic"] h2,
[data-preset="classic"] h3 {
  font-family: var(--font-heading);
}

[data-preset="classic"] .btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-preset="classic"] .premium-card {
  border-top: 3px solid var(--primary);
}

[data-preset="classic"] .card-icon {
  border-radius: 4px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

[data-preset="classic"] .stat-value {
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.25rem;
}

[data-preset="classic"] .footer {
  border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Subtle texture overlay for classic preset */
[data-preset="classic"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   PRESET 5: Minimal - Ultra-clean, content-focused
   ----------------------------------------------------------------------------- */
[data-preset="minimal"] {
  --heading-weight: 600;
  --heading-tracking: -0.01em;
  --body-weight: 400;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-button: 8px;

  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-glow: none;

  --gradient-hero: var(--bg-dark);
  --gradient-card: white;
  --gradient-cta: var(--bg-darker);

  --border-card: 1px solid #f3f4f6;
  --border-input: 1px solid #e5e7eb;

  --nav-bg: white;
  --nav-blur: none;
  --nav-border: 1px solid #f3f4f6;
  --nav-shadow: none;

  --section-padding: 8rem;
  --card-padding: 2.5rem;

  --hover-lift: 0;
  --transition-speed: 0.2s;
}

[data-preset="minimal"] .hero {
  background: var(--bg-dark);
  padding-top: 12rem;
  padding-bottom: 12rem;
}

[data-preset="minimal"] .hero-title {
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

[data-preset="minimal"] .premium-card {
  border: 1px solid #f3f4f6;
  box-shadow: none;
}

[data-preset="minimal"] .premium-card:hover {
  border-color: var(--primary);
  transform: none;
}

[data-preset="minimal"] .card-icon {
  background: transparent;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

[data-preset="minimal"] .btn-primary {
  background: var(--bg-dark);
  color: white;
  box-shadow: none;
}

[data-preset="minimal"] .btn-primary:hover {
  background: var(--primary);
}

[data-preset="minimal"] .stats-bar {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-preset="minimal"] .floating-element,
[data-preset="minimal"] .hero-shape,
[data-preset="minimal"] .cta-glow-ring,
[data-preset="minimal"] .floating-blob {
  display: none;
}

[data-preset="minimal"] .section-header {
  margin-bottom: 4rem;
}

[data-preset="minimal"] .section-header p {
  max-width: 500px;
  margin: 1rem auto 0;
}


/* =============================================================================
   3. UTILITY CLASSES
   ============================================================================= */

/* Typography */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-primary-color {
  color: var(--primary);
}

.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--primary);
}

/* Backgrounds */
.bg-primary {
  background-color: var(--primary);
}

.bg-primary-light {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.bg-darker {
  background-color: var(--bg-darker);
}

.bg-medium {
  background-color: var(--bg-medium);
}

.bg-light {
  background-color: var(--bg-light);
}

/* Borders */
.border-primary {
  border-color: var(--primary);
}

.border-primary-light {
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* Icon utilities */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
}

.icon-primary {
  color: var(--primary);
}


/* =============================================================================
   4. BUTTON STYLES
   ============================================================================= */

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ripple effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:active::after {
  width: 300%;
  height: 300%;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-button);
  transition: all var(--transition-speed) var(--transition-ease);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-input);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-button);
  transition: all var(--transition-speed) var(--transition-ease);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* =============================================================================
   5. CARD STYLES
   ============================================================================= */

.premium-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  position: relative;
  transition: all 0.4s var(--transition-ease);
  box-shadow: var(--shadow-md);
  border: var(--border-card);
}

/* Subtle border glow */
.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2),
    transparent 50%,
    rgba(var(--primary-rgb), 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Icon shimmer on hover */
.premium-card .card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.3) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.premium-card:hover .card-icon::after {
  transform: translateX(100%);
}

/* Card icon */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15),
    rgba(var(--primary-rgb), 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-icon svg,
.card-icon i {
  color: var(--primary);
  width: 28px;
  height: 28px;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}


/* =============================================================================
   6. ACCOUNT CARD TIERS
   ============================================================================= */

.account-card {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
}

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

/* Featured/Pro tier */
.account-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.15);
}

.account-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  z-index: -1;
  opacity: 0.15;
}

.account-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Tier badge */
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* VIP tier */
.account-card.vip {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: white;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.account-card.vip .tier-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: var(--bg-dark);
}

.account-card.vip .spec-label {
  color: var(--text-on-dark-muted);
}

.account-card.vip .spec-value {
  color: white;
}


/* =============================================================================
   7. NAVIGATION
   ============================================================================= */

.navbar {
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: var(--nav-border);
  box-shadow: var(--nav-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--nav-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

/* Logo */
.logo {
  max-height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
}

.logo-text .primary {
  color: var(--text-primary);
}

.logo-text .accent {
  color: var(--primary);
}

/* Dark navbar variant */
[data-nav-variant="dark"] .navbar {
  background: var(--bg-darker);
}

[data-nav-variant="dark"] .nav-link {
  color: white;
}

[data-nav-variant="dark"] .logo-text .primary {
  color: white;
}


/* =============================================================================
   8. DROPDOWN MENUS
   ============================================================================= */

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(var(--primary-rgb), 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--transition-ease);
  overflow: hidden;
  z-index: 100;
}

/* Brand accent bar at top */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.dropdown:hover .dropdown-panel,
.dropdown.active .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.dropdown-item:hover {
  background: rgba(var(--primary-rgb), 0.06);
}

.dropdown-item .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dropdown-item:hover .icon-wrap {
  background: var(--primary);
  transform: scale(1.05);
}

.dropdown-item .icon-wrap svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
  transition: color 0.2s ease;
}

.dropdown-item:hover .icon-wrap svg {
  color: white;
}

.dropdown-item .text-wrap {
  flex: 1;
}

.dropdown-item .item-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: block;
}

.dropdown-item .item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* Arrow indicator */
.dropdown-item::after {
  content: '\2192';
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.dropdown-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}


/* =============================================================================
   9. LANGUAGE SELECTOR
   ============================================================================= */

.lang-selector-wrap {
  position: relative;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.lang-selector:hover {
  background: rgba(var(--primary-rgb), 0.15);
}

.lang-selector .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-selector .lang-code {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.lang-selector .chevron {
  color: var(--primary);
  transition: transform 0.2s ease;
  width: 16px;
  height: 16px;
}

.lang-selector:hover .chevron,
.lang-selector-wrap.active .chevron {
  transform: rotate(180deg);
}

/* Language dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(var(--primary-rgb), 0.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--transition-ease);
  z-index: 100;
}

.lang-selector-wrap.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(var(--primary-rgb), 0.06);
}

.lang-option.selected {
  background: rgba(var(--primary-rgb), 0.1);
}

.lang-option .flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option .lang-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.lang-option .check {
  color: var(--primary);
  opacity: 0;
  width: 16px;
  height: 16px;
}

.lang-option.selected .check {
  opacity: 1;
}


/* =============================================================================
   10. MOBILE MENU
   ============================================================================= */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition-ease);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
}

.mobile-menu-header .logo-text {
  color: white;
}

.mobile-menu-header .logo-text .accent {
  color: var(--primary);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-body {
  padding: 1.5rem;
}

.mobile-nav-item {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-nav-dropdown {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-dropdown-toggle .chevron {
  transition: transform 0.2s ease;
}

.mobile-nav-dropdown.active .chevron {
  transform: rotate(180deg);
}

.mobile-nav-dropdown-menu {
  display: none;
  padding-top: 0.75rem;
  padding-left: 1rem;
}

.mobile-nav-dropdown.active .mobile-nav-dropdown-menu {
  display: block;
}

.mobile-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-dropdown-item:hover {
  color: var(--primary);
}

.mobile-nav-dropdown-item .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-dropdown-item .icon-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-footer .btn-primary,
.mobile-menu-footer .btn-outline {
  width: 100%;
  text-align: center;
}


/* =============================================================================
   11. HERO SECTION
   ============================================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 6rem 0;
}

/* Animated gradient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orbs::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.1) 0%, transparent 30%),
    radial-gradient(circle at 40% 40%, rgba(var(--primary-rgb), 0.08) 0%, transparent 25%);
  animation: heroOrbs 20s ease-in-out infinite;
}

@keyframes heroOrbs {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Floating shapes */
.floating-element {
  position: absolute;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-shape-1 { width: 100px; height: 100px; top: 20%; left: 10%; }
.hero-shape-2 { width: 60px; height: 60px; top: 60%; right: 15%; animation-delay: 2s; }
.hero-shape-3 { width: 40px; height: 40px; bottom: 20%; left: 30%; animation-delay: 4s; }

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--heading-weight);
  line-height: 1.1;
  letter-spacing: var(--heading-tracking);
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-on-dark-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Text reveal animation */
.reveal-up {
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }


/* =============================================================================
   12. STATS BAR
   ============================================================================= */

.stats-bar {
  background: var(--bg-medium);
  padding: 4rem 0;
  position: relative;
}

.stats-bar.glass {
  background: rgba(var(--primary-rgb), 0.05);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Glowing divider between stats */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(var(--primary-rgb), 0.3),
    transparent
  );
}

/* Counter animation */
.stat-value .count-up {
  display: inline-block;
  animation: countPulse 2s ease-out;
}

@keyframes countPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}


/* =============================================================================
   13. CTA SECTION
   ============================================================================= */

.cta-section {
  position: relative;
  padding: 6rem 0;
  background: var(--gradient-cta);
  overflow: hidden;
}

/* Animated gradient mesh */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.2) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
  animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Glow ring decoration */
.cta-glow-ring {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--heading-weight);
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}


/* =============================================================================
   14. FOOTER
   ============================================================================= */

.footer {
  background: var(--bg-dark);
  padding: 4rem 0 2rem;
  position: relative;
}

/* Gradient top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary-rgb), 0.3) 20%,
    rgba(var(--primary-rgb), 0.3) 80%,
    transparent
  );
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-link {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  display: block;
  padding: 0.375rem 0;
  transition: all 0.2s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link:hover::after {
  width: 100%;
}

/* Social icons */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.risk-warning {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  opacity: 0.8;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-top: 1.5rem;
}


/* =============================================================================
   15. ANIMATIONS & MICRO-INTERACTIONS
   ============================================================================= */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade animations */
.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading shimmer */
.shimmer {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Focus states */
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =============================================================================
   16. RESPONSIVE UTILITIES
   ============================================================================= */

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
    --card-padding: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .stat-value {
    font-size: 2rem;
  }

  .account-card.featured {
    transform: none;
  }

  .account-card.featured:hover {
    transform: translateY(var(--hover-lift));
  }
}

/* Hide on mobile */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: block;
  }

  .hide-desktop {
    display: none;
  }
}
