/**
 * 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 {
  /* ==========================================================================
     HSL-BASED COLOR SYSTEM
     Primary color HSL values are injected via template.
     All other colors are derived from the primary hue.
     ========================================================================== */

  /* Primary HSL components - injected by template */
  --primary-h: 45;      /* Hue from primary color */
  --primary-s: 65%;     /* Saturation from primary */
  --primary-l: 52%;     /* Lightness from primary */

  /* Primary brand color - derived from HSL */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-rgb: 212, 175, 55; /* Fallback, overridden by template */
  --primary-light: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) * 1.2));
  --primary-dark: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) * 0.75));
  --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);

  /* ==========================================================================
     SURFACE ELEVATION SYSTEM (Material Design Dark Theme)
     Using near-black backgrounds with subtle primary tint for professional look
     ========================================================================== */

  /* Pure grayscale surfaces with very subtle primary tint */
  --surface-0: hsl(var(--primary-h), 5%, 4%);     /* #0A0A0A - Deepest (body) */
  --surface-1: hsl(var(--primary-h), 5%, 7%);     /* #121212 - Primary sections */
  --surface-2: hsl(var(--primary-h), 5%, 10%);    /* #1A1A1A - Elevated sections */
  --surface-3: hsl(var(--primary-h), 5%, 13%);    /* #212121 - Card backgrounds */
  --surface-4: hsl(var(--primary-h), 5%, 16%);    /* #292929 - Hover states */
  --surface-5: hsl(var(--primary-h), 5%, 20%);    /* #333333 - Highest elevation */

  /* Map legacy variables to new surface system */
  --bg-darker: var(--surface-0);
  --bg-dark: var(--surface-1);
  --bg-medium: var(--surface-3);
  --bg-light: var(--surface-2);  /* No more light backgrounds - maps to elevated dark */
  --bg-white: var(--surface-3);  /* No pure white in dark theme */

  /* Dark theme text colors - high contrast for readability */
  --text-primary: hsl(0, 0%, 95%);         /* #F2F2F2 - Primary text on dark */
  --text-secondary: hsl(0, 0%, 85%);       /* #D9D9D9 - Secondary text */
  --text-muted: hsl(0, 0%, 60%);           /* #999999 - Muted/disabled */
  --text-on-dark: hsl(0, 0%, 95%);         /* Same as primary for consistency */
  --text-on-dark-muted: hsl(0, 0%, 65%);   /* #A6A6A6 */

  /* Card styling for dark surfaces */
  --card-bg: var(--surface-3);
  --card-bg-hover: var(--surface-4);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.15);
}

/* =============================================================================
   EPIC FIXED BACKGROUND SYSTEM
   Hero image as fixed background, glass sections scroll over it
   ============================================================================= */

body {
  background: #0A0A0A;
  position: relative;
}

/* Fixed background image layer - the hero image becomes the site background */
.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 40s ease-out forwards;
}

/* Gradient overlay for text contrast */
.site-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

/* Animated ambient glow overlay */
.site-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%);
  animation: ambientPulse 12s ease-in-out infinite;
  z-index: 2;
}

/* Subtle Ken Burns zoom effect */
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Ensure all content is above the background */
body > * {
  position: relative;
  z-index: 1;
}

/* =============================================================================
   GLASS SECTION SYSTEM
   Sections as frosted glass panels sliding over the background
   ============================================================================= */

/* Base glass panel - standard section */
.glass-section {
  position: relative;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Lighter glass - lets more background peek through */
.glass-section--light {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Window section - fully transparent, background shows through */
.glass-section--window {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
}

/* Solid section - minimal transparency (CTA, footer) */
.glass-section--solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Section entry animation - elegant slide in */
@supports (animation-timeline: view()) {
  .glass-section {
    animation: sectionSlideIn linear forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

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

:root {
  /* Dropdown/Navigation - dark glass matching navbar */
  --dropdown-bg: hsl(var(--primary-h), 18%, 10%);
  --dropdown-border: hsla(var(--primary-h), 30%, 50%, 0.15);
  --dropdown-hover: hsla(var(--primary-h), 25%, 20%, 0.8);

  /* Typography - can be overridden by template */
  --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 - Dark glass style to blend with hero */
  --nav-bg: rgba(13, 17, 23, 0.85);
  --nav-bg-rgb: 13, 17, 23;
  --nav-blur: blur(20px);
  --nav-border: 1px solid rgba(255, 255, 255, 0.1);
  --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --nav-text: #ffffff;

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

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

  /* Responsive spacing tokens (modified by media queries) */
  --section-py: 100px;
  --hero-pt: 160px;
  --hero-pb: 140px;
  --card-gap: 48px;
  --grid-gap: 32px;
  --container-px: 24px;

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

  /* Hero overlay settings - configurable */
  --hero-overlay-top: 0.7;
  --hero-overlay-bottom: 0.2;
  --hero-min-height: 75vh;
}

/* Dark theme variables - REMOVED: Single consistent theme now used */


/* =============================================================================
   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;

  /* Navbar - seamless with hero */
  --nav-bg: rgba(0, 0, 0, 0.25);
  --nav-blur: blur(12px);
  --nav-border: 1px solid rgba(255, 255, 255, 0.05);
  --nav-shadow: none;
  --nav-text: #ffffff;

  --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(13, 17, 23, 0.8);
  --nav-bg-rgb: 13, 17, 23;
  --nav-blur: blur(20px);
  --nav-border: 1px solid rgba(255, 255, 255, 0.1);
  --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  --nav-text: #ffffff;

  --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.05);
}

[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 rgba(255, 255, 255, 0.08);
  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-circle svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.icon-circle-lg svg {
  width: 32px;
  height: 32px;
}

.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(--surface-3);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  position: relative;
  transition: all 0.4s var(--transition-ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 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(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
}

.account-card:hover {
  background: var(--surface-4);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(var(--hover-lift));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 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 */
/* VIP account - Dark style with gold accent border */
.account-card.vip {
  background: var(--surface-3);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 215, 0, 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-muted);
}

.account-card.vip .spec-value {
  color: var(--text-primary);
  font-weight: 700;
}


/* =============================================================================
   6B. PLATFORM CARDS
   ============================================================================= */

.platform-card {
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
}

.platform-card:hover {
  background: var(--surface-4);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(var(--hover-lift));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.platform-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.12);
}

.platform-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.1;
}

.platform-card .tier-badge {
  top: -12px;
  font-size: 0.7rem;
  padding: 6px 16px;
}

.platform-device {
  display: flex;
  justify-content: center;
}


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

.navbar {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

/* Remove bottom gradient line for seamless flow */
.navbar::after {
  display: none;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled::after {
  display: none;
}

.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(--nav-text);
}

.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;
  isolation: isolate;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px -10px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
  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 - dark theme for glass effect */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-on-dark);
}

.dropdown-item:hover {
  background: var(--dropdown-hover);
}

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

.dropdown-item:hover .icon-wrap {
  background: var(--primary);
  border-color: 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-on-dark);
  font-size: 0.95rem;
  display: block;
}

.dropdown-item .item-desc {
  font-size: 0.8rem;
  color: var(--text-on-dark-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(--nav-text);
}

.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 - dark theme matching navbar */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px -10px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
  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;
  color: var(--text-on-dark);
}

.lang-option:hover {
  background: var(--dropdown-hover);
}

.lang-option.selected {
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

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

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

.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: var(--bg-dark);
  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-on-dark);
  text-decoration: none;
  border-bottom: 1px solid hsla(var(--primary-h), 20%, 30%, 0.3);
  transition: all 0.2s ease;
}

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

.mobile-nav-dropdown {
  padding: 1rem 0;
  border-bottom: 1px solid hsla(var(--primary-h), 20%, 30%, 0.3);
}

.mobile-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  color: var(--text-on-dark);
  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;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

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

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

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

.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 hsla(var(--primary-h), 20%, 30%, 0.3);
  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
   Now a transparent "window" - background image is in .site-background
   ============================================================================= */

.hero {
  position: relative;
  min-height: var(--hero-min-height, 100vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent; /* Window - shows fixed background through */
  overflow: visible;
  padding: 10rem 0 0;
  padding-bottom: 140px;
  z-index: 1;
}

/* Legacy support - background now handled by .site-background */
.hero.has-bg-image {
  background: transparent !important;
}

/* Remove old overlays - handled by .site-background now */
.hero.has-bg-image::before,
.hero.has-bg-image::after {
  display: none;
}

/* Ensure content stays above overlay */
.hero.has-bg-image .hero-content {
  z-index: 10;
}

/* Enhanced text shadows for busy backgrounds */
.hero.has-bg-image .hero-title {
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero.has-bg-image .hero-subtitle {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Button visibility on busy backgrounds */
.hero.has-bg-image .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero gradient fallback when no AI image available */
.hero-gradient-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--bg-darker) 0%,
    var(--bg-dark) 50%,
    hsla(var(--primary-h), 30%, 15%, 1) 100%
  );
  z-index: 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 - subtle glass effect at bottom of hero */
.stats-bar {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5rem 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10; /* Above hero fade and blend overlays */
  border-bottom: none;
  z-index: 15;
  box-sizing: border-box;
}

/* Gold accent glow at top */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.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(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* 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: transparent;  /* Inherit body's unified background */
  overflow: hidden;
}

/* CTA accent glow - subtle center emphasis */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Bright center spotlight - draws attention */
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
  animation: ctaPulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* Subtle top border glow */
.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

@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;
}


/* =============================================================================
   SECTION ORB SYSTEM
   Positioned ambient glows to differentiate sections
   Uses --primary-rgb for white-label theming
   ============================================================================= */

/* Base setup for all orb sections */
.section-orb {
  position: relative;
  overflow: visible;
}

/* Ensure section content stays above orbs */
.section-orb > * {
  position: relative;
  z-index: 1;
}

/* LEFT ORB - Glow at top-left */
.section-orb-left::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.25) 0%,
    rgba(var(--primary-rgb), 0.12) 35%,
    transparent 65%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 18s ease-in-out infinite;
}

/* RIGHT ORB - Glow at top-right */
.section-orb-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.22) 0%,
    rgba(var(--primary-rgb), 0.10) 40%,
    transparent 65%
  );
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite reverse;
}

/* CENTER ORB - Glow at center-top */
.section-orb-center::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.20) 0%,
    rgba(var(--primary-rgb), 0.08) 45%,
    transparent 70%
  );
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 15s ease-in-out infinite;
}

/* DIAGONAL - Top-left + Bottom-right */
.section-orb-diagonal::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.22) 0%,
    rgba(var(--primary-rgb), 0.10) 40%,
    transparent 65%
  );
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 16s ease-in-out infinite;
}

.section-orb-diagonal::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.18) 0%,
    rgba(var(--primary-rgb), 0.08) 45%,
    transparent 65%
  );
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 14s ease-in-out infinite reverse;
}

/* BOTTOM ORB - For CTA-like sections */
.section-orb-bottom::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.25) 0%,
    rgba(var(--primary-rgb), 0.12) 40%,
    transparent 70%
  );
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* GLOW RING - Decorative pulsing ring overlay */
.section-glow-ring::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: sectionRingPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ORB ANIMATIONS */
@keyframes orbDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(20px, -15px) scale(1.03);
    opacity: 0.85;
  }
  66% {
    transform: translate(-15px, 20px) scale(0.97);
    opacity: 0.95;
  }
}

@keyframes orbPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes sectionRingPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .section-orb-left::before,
  .section-orb-right::before,
  .section-orb-center::before {
    width: 350px;
    height: 350px;
    opacity: 0.7;
    filter: blur(50px);
  }

  .section-orb-diagonal::before,
  .section-orb-diagonal::after {
    width: 280px;
    height: 280px;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .section-orb-left::before,
  .section-orb-right::before,
  .section-orb-center::before,
  .section-orb-diagonal::before,
  .section-orb-diagonal::after {
    width: 200px;
    height: 200px;
    opacity: 0.5;
    filter: blur(40px);
    animation-duration: 25s;
  }

  .section-glow-ring::after {
    width: 300px;
    height: 300px;
  }
}

/* Mobile: Fixed background becomes scroll for better performance */
@media (max-width: 768px) {
  .site-background {
    position: absolute;
    height: 100vh;
    animation: none; /* Disable Ken Burns on mobile */
  }

  .glass-section {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .glass-section--light {
    background: rgba(10, 10, 10, 0.88);
  }

  .glass-section--solid {
    background: rgba(10, 10, 10, 0.96);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .section-orb-left::before,
  .section-orb-right::before,
  .section-orb-center::before,
  .section-orb-diagonal::before,
  .section-orb-diagonal::after,
  .section-glow-ring::after {
    animation: none;
  }
}

/* =============================================================================
   SCROLL-DRIVEN ANIMATIONS
   Subtle professional effects triggered on scroll
   Chrome 115+, Edge 115+, Opera 101+ (graceful fallback for others)
   ============================================================================= */

/* Very subtle parallax - orbs drift slower than content */
@supports (animation-timeline: scroll()) {
  .section-orb-left::before,
  .section-orb-right::before,
  .section-orb-center::before {
    animation: orbDrift 18s ease-in-out infinite, scrollParallax linear;
    animation-timeline: auto, scroll();
  }

  @keyframes scrollParallax {
    from { transform: translateY(20px); }
    to { transform: translateY(-20px); }
  }
}

/* Nearly imperceptible section reveal - professional feel */
@supports (animation-timeline: view()) {
  .section-orb {
    animation: sectionReveal linear forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  @keyframes sectionReveal {
    from {
      opacity: 0.92;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Disable scroll animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  @supports (animation-timeline: scroll()) {
    .section-orb-left::before,
    .section-orb-right::before,
    .section-orb-center::before {
      animation: none;
    }
  }
  @supports (animation-timeline: view()) {
    .section-orb {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}


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

.footer {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 4rem 0 2rem;
  position: relative;
}

/* Primary color gradient top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 30%,
    var(--primary-light) 50%,
    var(--primary) 70%,
    transparent 100%
  );
}

/* Subtle primary glow at top */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100px;
  background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Primary color underline accent for footer headings */
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.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(var(--primary-rgb), 0.2);
  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;
}


/* =============================================================================
   14.5 INSTRUMENTS TABS & CARDS (Market Pages)
   ============================================================================= */

/* Tab buttons */
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Tab panels */
.tab-panel {
  animation: tabFadeIn 0.3s ease-out;
}

.tab-panel[hidden] {
  display: none;
}

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

/* Instrument cards */
.instrument-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.instrument-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
  transform: translateY(-4px);
}

.instrument-code {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.instrument-name {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Highlight text (span in headings) */
.highlight {
  color: var(--primary);
}


/* =============================================================================
   14.6 MARKETS CONSTELLATION TABS (Homepage)
   ============================================================================= */

.markets-constellation {
  max-width: 900px;
  margin: 0 auto;
}

/* Market Tab Buttons */
.market-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.market-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.market-tab.active {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.market-tab .tab-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.market-tab.active .tab-icon {
  background: var(--primary);
}

.market-tab .tab-icon svg {
  color: var(--primary);
  transition: color 0.3s ease;
}

.market-tab.active .tab-icon svg {
  color: white;
}

.market-tab .tab-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.market-tab .tab-label {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.market-tab .tab-summary {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

/* Market Panels */
.market-panel {
  animation: panelFadeIn 0.4s ease-out;
}

.market-panel[hidden] {
  display: none;
}

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

/* Feature Badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.feature-badge svg {
  color: var(--primary);
}

/* Instrument Row */
.instrument-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.instrument-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* =====================================================
   PARTNER PROGRAM COMPONENTS
   ===================================================== */

/* Commission Bar Chart */
.commission-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  min-height: 300px;
  padding: 20px;
}

.commission-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}

.commission-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, hsl(var(--primary-h) var(--primary-s) 30%) 100%);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commission-bar:hover .commission-bar-fill {
  transform: translateY(-8px);
}

.commission-bar.featured .commission-bar-fill {
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
}

/* Provider/Manager Cards */
.provider-card {
  background: var(--surface-3);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(var(--primary-h) var(--primary-s) 40%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.featured-provider {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
  border: 2px solid var(--primary);
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* PAMM vs MAM Comparison */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.comparison-card {
  background: var(--surface-3);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.highlight-badge {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Earning Potential Table */
.earnings-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.earnings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.earnings-row:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.earnings-row .friends {
  font-weight: 500;
  color: #666;
}

.earnings-row .amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
}

/* Terms Boxes */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.term-box {
  background: var(--surface-3);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.term-box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.term-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

/* Trust Badges Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Glass Card duplicate removed - using dark theme definition at line ~765 */

/* Partner Program Responsive */
@media (max-width: 968px) {
  .commission-chart {
    flex-wrap: wrap;
    gap: 16px;
    min-height: auto;
  }

  .commission-bar {
    width: calc(50% - 8px);
  }

  .comparison-cards {
    grid-template-columns: 1fr;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .commission-bar {
    width: 100%;
  }

  .commission-bar-fill {
    height: auto !important;
    min-height: 80px;
  }
}

/* Responsive - Mobile tabs */
@media (max-width: 768px) {
  .market-tab {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .market-tab .tab-icon {
    width: 36px;
    height: 36px;
  }

  .market-tab .tab-text {
    align-items: center;
  }

  .market-tab .tab-summary {
    display: none;
  }

  .market-panel .glass-card {
    padding: 1.5rem !important;
  }

  .market-panel .grid {
    gap: 1.5rem !important;
  }
}


/* =============================================================================
   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
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Visibility Toggle Classes
   Mobile-first: mobile-only visible by default, desktop-only hidden
   ----------------------------------------------------------------------------- */
.desktop-only {
  display: none !important;
}

.mobile-only {
  display: block !important;
}

/* Grid-specific visibility toggles */
.desktop-only-flex {
  display: none !important;
}

.mobile-only-flex {
  display: flex !important;
}

.desktop-only-grid {
  display: none !important;
}

.mobile-only-grid {
  display: grid !important;
}

/* Legacy classes (backward compatibility) */
.hide-mobile {
  display: block;
}

.hide-desktop {
  display: none;
}

/* -----------------------------------------------------------------------------
   1200px+ Breakpoint - Large Desktop
   ----------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  :root {
    --container-px: 48px;
  }

  .container-premium {
    max-width: 1280px;
  }
}

/* -----------------------------------------------------------------------------
   1024px Breakpoint - Tablet Landscape / Small Desktop
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --hero-pt: 140px;
    --hero-pb: 120px;
    --card-gap: 32px;
    --grid-gap: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: var(--hero-pt);
    padding-bottom: var(--hero-pb);
  }

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

  /* Reduce glassmorphic effects for performance */
  .hero-orbs {
    opacity: 0.3;
  }

  .hero-orbs::before {
    filter: blur(60px);
  }
}

/* -----------------------------------------------------------------------------
   968px Breakpoint - PRIMARY Mobile/Desktop Transition
   This is the critical breakpoint where layouts shift from desktop to mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 968px) {
  :root {
    --section-py: 60px;
    --hero-pt: 120px;
    --hero-pb: 100px;
    --card-gap: 24px;
    --grid-gap: 20px;
    --section-padding: 3.5rem;
    --card-padding: 1.75rem;
  }

  /* Visibility toggles - Switch to mobile layout */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .desktop-only-flex {
    display: none !important;
  }

  .mobile-only-flex {
    display: flex !important;
  }

  .desktop-only-grid {
    display: none !important;
  }

  .mobile-only-grid {
    display: grid !important;
  }

  /* Hero adjustments */
  .hero {
    padding-top: var(--hero-pt);
    padding-bottom: var(--hero-pb);
    margin-bottom: -120px; /* Less overlap on mobile */
  }

  .hero.has-bg-image::after {
    height: 200px; /* Shorter fade on mobile */
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Typography scaling - Tablet tier */
  .section-label {
    font-size: 0.7rem;
  }

  .section-header h2,
  .section-title {
    font-size: 1.65rem;
  }

  .section-header p,
  .section-subtitle {
    font-size: 0.9rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Grid transforms - 4-col to 2-col */
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--grid-gap);
  }

  .market-grid,
  .instruments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Stats bar - horizontal scroll or stack */
  .stats-bar {
    padding: 1.5rem 0;
  }

  .stats-bar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .stat-item {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 0.75rem;
  }

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

  .stat-label {
    font-size: 0.65rem;
  }

  /* Button adjustments */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost {
    width: 100%;
    max-width: 280px;
  }

  /* Card adjustments */
  .premium-card {
    padding: var(--card-padding);
  }

  .card-icon {
    width: 56px;
    height: 56px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Account cards */
  .account-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

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

  /* CTA section */
  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }
}

/* -----------------------------------------------------------------------------
   768px Breakpoint - Tablet Portrait
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-py: 48px;
    --hero-pt: 100px;
    --hero-pb: 80px;
    --card-gap: 20px;
    --grid-gap: 16px;
    --section-padding: 3rem;
    --card-padding: 1.5rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Typography scaling */
  .section-header h2,
  .section-title {
    font-size: 1.5rem;
  }

  .section-header p,
  .section-subtitle {
    font-size: 0.875rem;
  }

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

  /* Grid transforms */
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr !important;
  }

  /* Account cards */
  .account-card.featured {
    transform: none;
  }

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

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* -----------------------------------------------------------------------------
   480px Breakpoint - Small Phones
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-py: 40px;
    --hero-pt: 90px;
    --hero-pb: 60px;
    --card-gap: 16px;
    --grid-gap: 12px;
    --section-padding: 2.5rem;
    --card-padding: 1.25rem;
    --container-px: 16px;
  }

  /* Typography further reduction */
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-label {
    font-size: 0.65rem;
  }

  .section-header h2,
  .section-title {
    font-size: 1.35rem;
  }

  .section-header p,
  .section-subtitle {
    font-size: 0.85rem;
  }

  h3 {
    font-size: 1rem;
  }

  /* Single column grids */
  .market-grid,
  .instruments-grid {
    grid-template-columns: 1fr;
  }

  /* Icon size reduction */
  .card-icon,
  .icon-wrap {
    width: 48px;
    height: 48px;
  }

  .card-icon svg,
  .icon-wrap svg {
    width: 22px;
    height: 22px;
  }

  /* Stats stack vertically */
  .stat-item {
    flex: 0 0 100%;
  }

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

  /* Button full width */
  .btn-primary,
  .btn-ghost,
  .btn-outline {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  /* Card adjustments */
  .premium-card {
    padding: 1rem;
  }

  /* CTA */
  .cta-title {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: 0.9rem;
  }

  /* Reduce decorative elements */
  .hero-orbs,
  .floating-element,
  .hero-grid {
    display: none;
  }

  .cta-glow-ring {
    width: 300px;
    height: 300px;
  }
}

/* -----------------------------------------------------------------------------
   Desktop Overrides (969px+) - Show desktop layouts
   ----------------------------------------------------------------------------- */
@media (min-width: 969px) {
  /* Visibility toggles - Switch to desktop layout */
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

  .desktop-only-flex {
    display: flex !important;
  }

  .mobile-only-flex {
    display: none !important;
  }

  .desktop-only-grid {
    display: grid !important;
  }

  .mobile-only-grid {
    display: none !important;
  }

  /* Legacy classes */
  .hide-mobile {
    display: block;
  }

  .hide-desktop {
    display: none;
  }

  /* Desktop grid layouts */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .market-grid,
  .instruments-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Account cards side by side */
  .account-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* -----------------------------------------------------------------------------
   Touch Target Sizing (mobile accessibility)
   ----------------------------------------------------------------------------- */
@media (max-width: 968px) {
  /* Ensure minimum 44px touch targets */
  .nav-link,
  .dropdown-item,
  .mobile-nav-item,
  .footer-link,
  .tab-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost,
  .btn-outline {
    min-height: 48px;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .navbar,
  .mobile-menu,
  .mobile-menu-overlay,
  .hero-orbs,
  .floating-element,
  .cta-glow-ring {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .premium-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* =============================================================================
   12. PREMIUM VISUAL ENHANCEMENTS
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Animated Gradient Text
   ----------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 25%,
    var(--primary) 50%,
    var(--primary-light) 75%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 3s linear infinite;
}

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

/* Static highlight for headings */
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -----------------------------------------------------------------------------
   Glowing Border Effect
   ----------------------------------------------------------------------------- */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--primary),
    transparent 40%,
    transparent 60%,
    var(--primary-light)
  );
  -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;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

/* -----------------------------------------------------------------------------
   3D Card Hover Effect
   ----------------------------------------------------------------------------- */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateX(2deg) rotateY(-2deg) translateY(-8px);
}

.card-3d .card-content {
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}

.card-3d:hover .card-content {
  transform: translateZ(40px);
}

/* -----------------------------------------------------------------------------
   Pulse Animation for CTAs
   ----------------------------------------------------------------------------- */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4),
                0 4px 15px rgba(var(--primary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0),
                0 4px 20px rgba(var(--primary-rgb), 0.5);
  }
}

/* -----------------------------------------------------------------------------
   Floating Animation
   ----------------------------------------------------------------------------- */
.float {
  animation: float 6s ease-in-out infinite;
}

.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 2s; }
.float-delay-3 { animation-delay: 4s; }

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

/* -----------------------------------------------------------------------------
   Shine Sweep Effect (for cards and buttons)
   ----------------------------------------------------------------------------- */
.shine-effect {
  position: relative;
  overflow: hidden;
}

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

.shine-effect:hover::after {
  left: 100%;
}

/* -----------------------------------------------------------------------------
   Morphing Background Shapes
   ----------------------------------------------------------------------------- */
.morph-bg {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
  animation: morph 8s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* -----------------------------------------------------------------------------
   Staggered Grid Reveal
   ----------------------------------------------------------------------------- */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.6s ease forwards;
}

.stagger-grid > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.6s; }

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

/* -----------------------------------------------------------------------------
   Icon Circle Enhancements
   ----------------------------------------------------------------------------- */
.icon-circle {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease;
  filter: blur(8px);
}

.icon-circle:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
}

.icon-circle:hover::before {
  opacity: 0.5;
}

.icon-circle:hover .icon-primary,
.icon-circle:hover svg {
  color: white;
}

/* -----------------------------------------------------------------------------
   Premium Section Divider
   ----------------------------------------------------------------------------- */
.section-divider {
  position: relative;
  height: 100px;
  margin: -1px 0;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-divider-wave {
  fill: var(--bg-light);
}

/* -----------------------------------------------------------------------------
   Section Dividers - Subtle borders for visual separation
   (Replaced harsh gradient overlays with clean border approach)
   ----------------------------------------------------------------------------- */
.section-divider-subtle {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-divider-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* -----------------------------------------------------------------------------
   Animated Number Counter Styling
   ----------------------------------------------------------------------------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.counter.counting {
  animation: countPop 0.3s ease;
}

@keyframes countPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* -----------------------------------------------------------------------------
   Premium Button Variations
   ----------------------------------------------------------------------------- */
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

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

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Ghost button - minimal style */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: all 0.3s ease;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.btn-ghost:hover::after {
  width: 80%;
}

/* -----------------------------------------------------------------------------
   Glassmorphism Utility
   ----------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------------------------------------------
   Text Shadow for Dark Backgrounds
   ----------------------------------------------------------------------------- */
.text-glow {
  text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.5),
               0 0 80px rgba(var(--primary-rgb), 0.3);
}

/* -----------------------------------------------------------------------------
   Scroll Progress Indicator
   ----------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* -----------------------------------------------------------------------------
   Premium Focus States
   ----------------------------------------------------------------------------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1),
              0 0 20px rgba(var(--primary-rgb), 0.1);
}

/* -----------------------------------------------------------------------------
   Loading Skeleton
   ----------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.05) 25%,
    rgba(var(--primary-rgb), 0.1) 50%,
    rgba(var(--primary-rgb), 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* -----------------------------------------------------------------------------
   Tooltip Styling
   ----------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  color: white;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-darker);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   AUTH PAGES (Login/Register)
   ======================================== */

/* Auth Page Hero Background - Uses themed dark gradients */
.auth-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  position: relative;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
  overflow: hidden;
}

/* Animated Orbs Background */
.auth-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-orbs::before,
.auth-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: authOrbFloat 15s ease-in-out infinite;
}

.auth-orbs::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
  top: -20%;
  left: -10%;
}

.auth-orbs::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation-delay: 5s;
}

@keyframes authOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Pulsing Glow Ring */
.auth-glow-ring {
  position: absolute;
  width: 800px;
  height: 800px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: authRingPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.auth-glow-ring::before {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  border-radius: 50%;
}

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

/* Subtle Grid Pattern */
.auth-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 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}

/* Glassmorphic Card */
.auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card.register-card {
  max-width: 540px;
}

/* Auth Card Header */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

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

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* Auth Form Inputs */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Auth Select */
.auth-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.auth-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.auth-select option {
  background: var(--bg-dark);
  color: white;
}

/* Form Row */
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

/* Auth Checkbox */
.auth-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-checkbox-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-checkbox-label a {
  color: var(--primary);
  text-decoration: none;
}

.auth-checkbox-label a:hover {
  text-decoration: underline;
}

/* Auth Options Row */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-forgot {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}

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

/* Auth Button */
.auth-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

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

.auth-btn-secondary {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-decoration: none;
}

.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* Auth Link Text */
.auth-link-text {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.auth-link-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Trust Indicators */
.auth-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.auth-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Progress Steps - Improved vertical layout */
.auth-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 40px;
  padding: 0 16px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}

.auth-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.auth-step.active .auth-step-number {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.auth-step.inactive .auth-step-number {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.auth-step-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Step connector line */
.auth-step-line {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0 4px;
  margin-top: 19px; /* Align with center of circles */
}

/* Responsive: Scale up on larger screens */
@media (min-width: 400px) {
  .auth-step {
    min-width: 70px;
  }

  .auth-step-label {
    font-size: 0.75rem;
    max-width: 90px;
  }

  .auth-step-line {
    width: 40px;
  }
}

@media (min-width: 640px) {
  .auth-steps {
    gap: 8px;
  }

  .auth-step {
    min-width: 90px;
  }

  .auth-step-label {
    font-size: 0.8rem;
    max-width: 100px;
  }

  .auth-step-line {
    width: 50px;
  }
}

/* Benefits Bar */
.auth-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
  .auth-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auth-benefit {
  text-align: center;
}

.auth-benefit-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-benefit-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.auth-benefit-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Auth Footer - Themed to match site */
.auth-footer {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Primary color gradient top border */
.auth-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 30%,
    var(--primary) 70%,
    transparent 100%
  );
  opacity: 0.6;
}

.auth-footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.auth-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.auth-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-links a:hover {
  color: var(--primary);
}

/* Auth Page Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .auth-glow-ring {
    width: 500px;
    height: 500px;
  }
}

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

  .float,
  .morph-bg,
  .pulse-glow,
  .gradient-text,
  .shine-effect::after {
    animation: none;
  }
}
