/* ==========================================
   RDGH SYSTEM CSS - CORE UI COMPONENTS
   Master styles for all pages
   DO NOT DUPLICATE - Single source of truth

   Design Philosophy: Swiss Banking meets Bloomberg Terminal
   Aesthetic: Obsidian dark with brushed titanium accents
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* ═══════════════════════════════════════════════════════════════
     OBSIDIAN DEPTH SYSTEM - Deep blacks with subtle gradients
     Inspired by: Obsidian volcanic glass, Swiss private banking
     ═══════════════════════════════════════════════════════════════ */
  --bg-primary: #08090C;
  --bg-secondary: #0D0F14;
  --bg-tertiary: #13161D;
  --bg-hover: #1A1D26;
  --bg-card: rgba(13, 15, 20, 0.94);
  --bg-card-light: rgba(19, 22, 29, 0.82);
  --bg-overlay: rgba(8, 9, 12, 0.97);
  --bg-modal: rgba(8, 9, 12, 0.98);
  --bg-panel: rgba(13, 15, 20, 0.96);
  --bg-dropdown: rgba(19, 22, 29, 0.97);

  /* Surface elevation layers */
  --surface-0: #08090C;
  --surface-1: #0D0F14;
  --surface-2: #13161D;
  --surface-3: #1A1D26;
  --surface-4: #22252F;

  /* ═══════════════════════════════════════════════════════════════
     TITANIUM SILVER GRADIENT SYSTEM - Primary brand identity
     Inspired by: Brushed titanium, aerospace metals, platinum
     ═══════════════════════════════════════════════════════════════ */
  --accent-primary: #B8C4D0;
  --accent-secondary: #9AA8B8;
  --accent-tertiary: #7A8999;

  /* The signature titanium gradient - refined metallic sheen */
  --accent-gradient: linear-gradient(
    135deg,
    #D4DDE6 0%,
    #B8C4D0 25%,
    #9AA8B8 50%,
    #B8C4D0 75%,
    #D4DDE6 100%
  );

  /* Titanium variants for different contexts */
  --titanium-silver: #B8C4D0;
  --titanium-silver-light: #D4DDE6;
  --titanium-silver-dark: #8A98A8;
  --titanium-glow: rgba(184, 196, 208, 0.08);

  /* Animated shimmer gradient for premium elements */
  --titanium-shimmer: linear-gradient(
    110deg,
    #8A98A8 0%,
    #B8C4D0 20%,
    #D4DDE6 40%,
    #E8EDF2 50%,
    #D4DDE6 60%,
    #B8C4D0 80%,
    #8A98A8 100%
  );

  /* ═══════════════════════════════════════════════════════════════
     ARCTIC STEEL - Secondary accent system
     Inspired by: Nordic fjords, surgical steel, ice
     ═══════════════════════════════════════════════════════════════ */
  --gold-primary: #94B8D4;
  --gold-secondary: #7AA0C0;
  --gold-glow: rgba(148, 184, 212, 0.10);
  --ice-blue-gradient: linear-gradient(135deg, #94B8D4 0%, #7AA0C0 100%);
  --ice-blue-gradient-subtle: linear-gradient(135deg, rgba(148, 184, 212, 0.10) 0%, rgba(122, 160, 192, 0.10) 100%);

  /* ═══════════════════════════════════════════════════════════════
     BORDER SYSTEM - Subtle titanium edges
     ═══════════════════════════════════════════════════════════════ */
  --border-primary: rgba(122, 137, 153, 0.18);
  --border-secondary: rgba(122, 137, 153, 0.12);
  --border-titanium: rgba(184, 196, 208, 0.20);
  --border-accent: rgba(184, 196, 208, 0.25);
  --border-gold: rgba(148, 184, 212, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* ═══════════════════════════════════════════════════════════════
     TYPOGRAPHY COLORS - Precision hierarchy
     ═══════════════════════════════════════════════════════════════ */
  --text-primary: #E8ECF0;
  --text-secondary: #B8C4D0;
  --text-muted: #8A98A8;
  --text-dimmed: #6B7888;
  --text-disabled: #4A5564;
  --text-on-accent: #FFFFFF;

  /* Gradient text for headings */
  --text-gradient-titanium: linear-gradient(135deg, #D4DDE6 0%, #B8C4D0 50%, #9AA8B8 100%);

  /* ═══════════════════════════════════════════════════════════════
     LINK SYSTEM
     ═══════════════════════════════════════════════════════════════ */
  --link-color: #B8C4D0;
  --link-hover: #D4DDE6;
  --link-active: #8A98A8;

  /* ═══════════════════════════════════════════════════════════════
     SEMANTIC COLORS - Refined, professional signals
     Inspired by: Medical monitors, aviation displays
     ═══════════════════════════════════════════════════════════════ */
  --success: #10B981;
  --success-muted: #0D9668;
  --success-glow: rgba(16, 185, 129, 0.10);
  --success-surface: rgba(16, 185, 129, 0.08);

  --danger: #EF4444;
  --danger-muted: #DC2626;
  --danger-glow: rgba(239, 68, 68, 0.10);
  --danger-surface: rgba(239, 68, 68, 0.08);

  --warning: #F59E0B;
  --warning-muted: #D97706;
  --warning-glow: rgba(245, 158, 11, 0.10);
  --warning-surface: rgba(245, 158, 11, 0.08);

  --info: #3B82F6;
  --info-muted: #2563EB;
  --info-glow: rgba(59, 130, 246, 0.10);
  --info-surface: rgba(59, 130, 246, 0.08);

  /* ═══════════════════════════════════════════════════════════════
     MARKET COLORS - Trading interface specific
     ═══════════════════════════════════════════════════════════════ */
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-yellow: #F0B90B;
  --accent-yellow-hover: #F8D84D;
  --accent-violet: #8B5CF6;
  --accent-violet-glow: rgba(139, 92, 246, 0.10);
  --accent-pink: #EC4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.10);

  /* Glow backgrounds for icons/badges */
  --green-glow: rgba(16, 185, 129, 0.15);
  --red-glow: rgba(239, 68, 68, 0.15);
  --blue-glow: rgba(59, 130, 246, 0.15);
  --yellow-glow: rgba(240, 185, 11, 0.15);

  /* Skeleton loading colors */
  --skeleton-base: rgba(26, 29, 41, 0.4);
  --skeleton-highlight: rgba(37, 40, 54, 0.6);

  /* Market sentiment - clear, readable */
  --market-bullish: #10B981;
  --market-bearish: #EF4444;
  --market-neutral: #8A98A8;
  --market-premium: #F59E0B;

  /* ═══════════════════════════════════════════════════════════════
     DEPTH LAYERS - For complex UI compositions
     ═══════════════════════════════════════════════════════════════ */
  --institutional-navy: #060709;
  --institutional-charcoal: #0D0F14;
  --institutional-slate: #171A22;
  --institutional-steel: #282C38;

  /* ═══════════════════════════════════════════════════════════════
     PREMIUM ACCENTS - Luxury moments
     ═══════════════════════════════════════════════════════════════ */
  --premium-gold: #D4A853;
  --premium-gold-muted: #B8923F;
  --premium-gold-glow: rgba(212, 168, 83, 0.08);
  --premium-platinum: #E8ECF0;

  /* ═══════════════════════════════════════════════════════════════
     CHART SYSTEM - Data visualization
     ═══════════════════════════════════════════════════════════════ */
  --chart-grid: rgba(154, 168, 184, 0.04);
  --chart-axis: rgba(154, 168, 184, 0.08);
  --chart-overlay: rgba(8, 9, 12, 0.85);
  --chart-crosshair: rgba(184, 196, 208, 0.40);

  /* ═══════════════════════════════════════════════════════════════
     BUTTON SYSTEM - Tactile, premium interactions
     ═══════════════════════════════════════════════════════════════ */
  --btn-primary-bg: linear-gradient(135deg, #94B8D4 0%, #7AA0C0 100%);
  --btn-primary-shadow: 0 2px 12px rgba(148, 184, 212, 0.18);
  --btn-primary-hover-shadow: 0 4px 20px rgba(148, 184, 212, 0.28);

  --btn-secondary-bg: rgba(19, 22, 29, 0.85);
  --btn-secondary-border: rgba(122, 137, 153, 0.28);
  --btn-secondary-hover-bg: rgba(26, 29, 38, 0.95);

  --btn-danger-bg: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  --btn-danger-shadow: 0 2px 12px rgba(239, 68, 68, 0.16);

  --btn-success-bg: linear-gradient(135deg, #10B981 0%, #0D9668 100%);
  --btn-success-shadow: 0 2px 12px rgba(16, 185, 129, 0.16);

  --btn-titanium-bg: linear-gradient(135deg, #D4DDE6 0%, #B8C4D0 50%, #9AA8B8 100%);
  --btn-titanium-text: #08090C;
  --btn-titanium-shadow: 0 2px 10px rgba(184, 196, 208, 0.14);
  --btn-titanium-hover-shadow: 0 4px 18px rgba(184, 196, 208, 0.24);

  /* ═══════════════════════════════════════════════════════════════
     SHADOW SYSTEM - Depth and elevation
     ═══════════════════════════════════════════════════════════════ */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.60);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.70);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.30);
  --shadow-accent: 0 0 40px rgba(184, 196, 208, 0.05);
  --shadow-glow: 0 0 24px rgba(148, 184, 212, 0.10);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);

  /* ═══════════════════════════════════════════════════════════════
     MOTION SYSTEM - Refined easing curves
     ═══════════════════════════════════════════════════════════════ */
  --transition-fast: 0.12s cubic-bezier(0.33, 1, 0.68, 1);
  --transition-normal: 0.24s cubic-bezier(0.33, 1, 0.68, 1);
  --transition-smooth: 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spring easing for micro-interactions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);

  /* ═══════════════════════════════════════════════════════════════
     LOADER SYSTEM
     ═══════════════════════════════════════════════════════════════ */
  --loader-bg: #08090C;
  --loader-card-bg: rgba(13, 15, 20, 0.97);
  --loader-candle-green: #10B981;
  --loader-candle-red: #EF4444;
  --loader-progress-bg: linear-gradient(90deg, transparent, #94B8D4 30%, #10B981 60%, transparent);

  /* ═══════════════════════════════════════════════════════════════
     TYPOGRAPHY SYSTEM - IBM Plex Sans
     Designed by IBM for enterprise readability and professionalism
     Used by: Bloomberg, IBM, Carbon Design System
     Excellent for data-heavy interfaces and institutional applications
     ═══════════════════════════════════════════════════════════════ */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-numeric: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Letter spacing */
  --tracking-tighter: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.04em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 204, 214, 0.14) transparent;
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 204, 214, 0.14);
  border-radius: 4px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 204, 214, 0.26);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

a:active {
  color: var(--link-active);
}

/* ═══════════════════════════════════════════════════════════════
   HEADING SYSTEM - Outfit display font with titanium gradient
   ═══════════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: 1.15;
  margin: 0;
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: var(--font-bold);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--text-gradient-titanium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--titanium-silver);
}

h4 {
  font-size: 1.25rem;
  color: var(--titanium-silver);
}

h5 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

h6 {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background: var(--bg-primary);
  min-height: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: transparent;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   OBSIDIAN DEPTH BACKGROUND - Deep blacks with subtle titanium glow
   ═══════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(165deg,
      #08090C 0%,
      #0A0C10 20%,
      #0D0F14 40%,
      #0B0D12 60%,
      #09090E 80%,
      #08090C 100%);
  z-index: -3;
}

/* Subtle ambient lighting for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Top-left titanium highlight */
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(184, 196, 208, 0.04), transparent 50%),
    /* Top-right ice accent */
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(148, 184, 212, 0.025), transparent 45%),
    /* Center subtle glow */
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(154, 168, 184, 0.015), transparent 60%),
    /* Bottom subtle accent */
    radial-gradient(ellipse 70% 40% at 60% 85%, rgba(148, 184, 212, 0.02), transparent 50%);
  pointer-events: none;
  z-index: -2;
  opacity: 1;
}


.container,
section,
main,
article {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

/* Numeric font for data - uses tabular numbers for alignment */
.font-numeric {
  font-family: var(--font-numeric) !important;
  font-feature-settings: "tnum" 1, "ss01" 1 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.01em;
}

/* Display font for headlines */
.font-display {
  font-family: var(--font-display) !important;
}

/* Titanium gradient text - signature brand element */
.text-titanium {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated shimmer effect for premium text */
.text-shimmer {
  background: var(--titanium-shimmer);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

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

/* Premium gold gradient text */
.text-gold {
  background: linear-gradient(135deg, #D4A853 0%, #F4D03F 50%, #D4A853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Arctic steel gradient text */
.text-arctic {
  background: var(--ice-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Letter spacing utilities */
.tracking-tighter { letter-spacing: var(--tracking-tighter); }
.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }

/* Font weight utilities */
.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* ═══════════════════════════════════════════════════════════════
   BUTTON SYSTEM - Premium tactile interactions
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

/* Primary Button - Titanium Silver signature */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: var(--btn-titanium-bg);
  color: var(--btn-titanium-text);
  box-shadow:
    var(--btn-titanium-shadow),
    var(--shadow-inset);
}

.btn-primary:hover {
  box-shadow: var(--btn-titanium-hover-shadow);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #E8EDF2 0%, #D4DDE6 50%, #B8C4D0 100%);
  color: var(--btn-titanium-text);
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
  box-shadow: var(--btn-titanium-shadow);
}

.btn-secondary {
  /* Base button properties */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* Secondary specific */
  background: var(--btn-secondary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--border-primary), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-titanium);
  color: var(--titanium-silver-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(203, 213, 225, 0.1);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-danger {
  /* Base button properties */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* Danger specific */
  background: var(--btn-danger-bg);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.btn-danger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--border-primary), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-danger:hover::before {
  opacity: 1;
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: scale(0.98);
}

.btn-success {
  /* Base button properties */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* Success specific */
  background: var(--btn-success-bg);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.btn-success::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--border-primary), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-success:hover::before {
  opacity: 1;
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.btn-success:active {
  transform: scale(0.98);
}

/* ===== TITANIUM SILVER BUTTON - PROFESSIONAL & SUBTLE ===== */
.btn-titanium {
  background: var(--bg-tertiary);
  color: var(--bg-primary);
  border: 1px solid var(--border-titanium);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(203, 213, 225, 0.1);
}

.btn-titanium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.9;
  z-index: -1;
  transition: all var(--transition-normal);
}

.btn-titanium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--border-titanium), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-titanium:hover::after {
  opacity: 1;
}

.btn-titanium:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(203, 213, 225, 0.15);
  border-color: var(--titanium-silver-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== FORM STYLES (MASTER) ===== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(20, 27, 45, 0.6);
  border: 2px solid rgba(168, 197, 218, 0.2);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(20, 27, 45, 0.8);
  box-shadow: 0 0 0 4px rgba(168, 197, 218, 0.1);
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

input[type="date"].form-input {
  cursor: pointer;
  position: relative;
}

/* Style the native calendar picker to match our design */
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 14px;
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.6);
  transition: opacity 0.2s ease;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="date"].form-input::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="date"].form-input::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ===== ANIMATIONS (MASTER) ===== */
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes modalIconPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== MICRO-INTERACTIONS (PROFESSIONAL TRADING UX) ===== */
/* Smooth hover elevation for interactive cards */
.card-interactive {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.card-interactive:active {
  transform: translateY(-2px);
  transition-duration: 0.1s;
}

/* Price flash animation - GPU accelerated */
@keyframes priceFlashGreen {
  0% {
    background-color: rgba(16, 185, 129, 0.2);
    transform: scale3d(1, 1, 1);
  }

  50% {
    background-color: rgba(16, 185, 129, 0.4);
    transform: scale3d(1.02, 1.02, 1);
  }

  100% {
    background-color: transparent;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes priceFlashRed {
  0% {
    background-color: rgba(239, 68, 68, 0.2);
    transform: scale3d(1, 1, 1);
  }

  50% {
    background-color: rgba(239, 68, 68, 0.4);
    transform: scale3d(1.02, 1.02, 1);
  }

  100% {
    background-color: transparent;
    transform: scale3d(1, 1, 1);
  }
}

.price-up {
  animation: priceFlashGreen 0.6s ease-out;
  will-change: background-color, transform;
  backface-visibility: hidden;
}

.price-down {
  animation: priceFlashRed 0.6s ease-out;
  will-change: background-color, transform;
  backface-visibility: hidden;
}

/* Ripple effect for buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth table row entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.table tbody tr {
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input focus glow */
.form-input:focus {
  animation: inputGlow 0.3s ease-out;
}

@keyframes inputGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 197, 218, 0.4);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(168, 197, 218, 0.1);
  }
}

/* Loading shimmer for data refresh */
.data-loading {
  position: relative;
  overflow: hidden;
}

.data-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(168, 197, 218, 0.1) 50%,
      transparent 100%);
  animation: shimmerSlide 1.5s infinite;
}

@keyframes shimmerSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Notification badge pulse */
@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 27, 45, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 197, 218, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.3);
}

/* ===== VIP BADGE SYSTEM (UNIFIED) ===== */
.vip-badge,
.rdgh-vip-badge,
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Compact VIP badge specifically for mobile menu only */
.mobile-menu .rdgh-vip-badge,
.rdgh-mobile-menu .rdgh-vip-badge {
  gap: 0.1875rem;
  padding: 0.0625rem 0.3125rem;
  font-size: 0.5625rem;
  font-weight: 600;
  border-radius: 0.1875rem;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

/* Hide crown icon in mobile menu VIP badge for cleaner look */
.mobile-menu .rdgh-vip-badge svg,
.mobile-menu .rdgh-vip-badge i[data-lucide="crown"],
.rdgh-mobile-menu .rdgh-vip-badge svg,
.rdgh-mobile-menu .rdgh-vip-badge i[data-lucide="crown"] {
  display: none;
}

.vip-level-0 .vip-badge,
.vip-level-0 .rdgh-vip-badge,
.vip-level-0 .level-badge,
.vip-badge.vip-level-0,
.rdgh-vip-badge.vip-level-0,
.level-badge.vip-level-0 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #0f172a;
}

.vip-level-1 .vip-badge,
.vip-level-1 .rdgh-vip-badge,
.vip-level-1 .level-badge,
.vip-level-2 .vip-badge,
.vip-level-2 .rdgh-vip-badge,
.vip-level-2 .level-badge,
.vip-badge.vip-level-1,
.rdgh-vip-badge.vip-level-1,
.level-badge.vip-level-1,
.vip-badge.vip-level-2,
.rdgh-vip-badge.vip-level-2,
.level-badge.vip-level-2 {
  background: linear-gradient(135deg, #d4a574, #b8935f);
  color: #1e293b;
}

.vip-level-3 .vip-badge,
.vip-level-3 .rdgh-vip-badge,
.vip-level-3 .level-badge,
.vip-level-4 .vip-badge,
.vip-level-4 .rdgh-vip-badge,
.vip-level-4 .level-badge,
.vip-badge.vip-level-3,
.rdgh-vip-badge.vip-level-3,
.level-badge.vip-level-3,
.vip-badge.vip-level-4,
.rdgh-vip-badge.vip-level-4,
.level-badge.vip-level-4 {
  background: linear-gradient(135deg, #e4e4e7, #d4d4d8);
  color: #1e293b;
}

.vip-level-5 .vip-badge,
.vip-level-5 .rdgh-vip-badge,
.vip-level-5 .level-badge,
.vip-level-6 .vip-badge,
.vip-level-6 .rdgh-vip-badge,
.vip-level-6 .level-badge,
.vip-badge.vip-level-5,
.rdgh-vip-badge.vip-level-5,
.level-badge.vip-level-5,
.vip-badge.vip-level-6,
.rdgh-vip-badge.vip-level-6,
.level-badge.vip-level-6 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
}

/* VIP Level 7 - Platinum */
.vip-level-7 .vip-badge,
.vip-level-7 .rdgh-vip-badge,
.vip-level-7 .level-badge,
.vip-badge.vip-level-7,
.rdgh-vip-badge.vip-level-7,
.level-badge.vip-level-7 {
  background: linear-gradient(135deg, #e8eaed, #f5f5f5, #d6d9dc, #e8eaed);
  background-size: 200% 200%;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  animation: vipPlatinumShine 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(232, 234, 237, 0.7), 0 0 40px rgba(245, 245, 245, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.vip-level-7 .vip-badge::before,
.vip-level-7 .rdgh-vip-badge::before,
.vip-level-7 .level-badge::before,
.vip-badge.vip-level-7::before,
.rdgh-vip-badge.vip-level-7::before,
.level-badge.vip-level-7::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: vipShineMove 3s infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.vip-level-7 .vip-badge::after,
.vip-level-7 .rdgh-vip-badge::after,
.vip-level-7 .level-badge::after,
.vip-badge.vip-level-7::after,
.rdgh-vip-badge.vip-level-7::after,
.level-badge.vip-level-7::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
  animation: vipPulse 3s ease-in-out infinite;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* VIP Level 8 - Titanium */
.vip-level-8 .vip-badge,
.vip-level-8 .rdgh-vip-badge,
.vip-level-8 .level-badge,
.vip-badge.vip-level-8,
.rdgh-vip-badge.vip-level-8,
.level-badge.vip-level-8 {
  background: linear-gradient(135deg, #a8b5c0, #cbd5e0, #94a3b8, #a8b5c0);
  background-size: 200% 200%;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  animation: vipTitaniumShine 4s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(168, 181, 192, 0.75), 0 0 45px rgba(148, 163, 184, 0.5), inset 0 0 15px rgba(203, 213, 224, 0.45);
  font-weight: 750;
}

.vip-level-8 .vip-badge::before,
.vip-level-8 .rdgh-vip-badge::before,
.vip-level-8 .level-badge::before,
.vip-badge.vip-level-8::before,
.rdgh-vip-badge.vip-level-8::before,
.level-badge.vip-level-8::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(203, 213, 224, 0.55), transparent);
  animation: vipShineMove 2.8s infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.vip-level-8 .vip-badge::after,
.vip-level-8 .rdgh-vip-badge::after,
.vip-level-8 .level-badge::after,
.vip-badge.vip-level-8::after,
.rdgh-vip-badge.vip-level-8::after,
.level-badge.vip-level-8::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, rgba(203, 213, 224, 0.25), transparent 65%);
  animation: vipPulse 2.5s ease-in-out infinite;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* VIP Level 9 - Diamond */
.vip-level-9 .vip-badge,
.vip-level-9 .rdgh-vip-badge,
.vip-level-9 .level-badge,
.vip-badge.vip-level-9,
.rdgh-vip-badge.vip-level-9,
.level-badge.vip-level-9 {
  background: linear-gradient(135deg, #b8e6ff, #e0f7ff, #8dd5f5, #b8e6ff);
  background-size: 250% 250%;
  color: #0c4a6e;
  position: relative;
  overflow: hidden;
  animation: vipDiamondShine 3.5s ease-in-out infinite;
  box-shadow: 0 0 28px rgba(184, 230, 255, 0.85), 0 0 50px rgba(141, 213, 245, 0.6), inset 0 0 18px rgba(224, 247, 255, 0.5);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.vip-level-9 .vip-badge::before,
.vip-level-9 .rdgh-vip-badge::before,
.vip-level-9 .level-badge::before,
.vip-badge.vip-level-9::before,
.rdgh-vip-badge.vip-level-9::before,
.level-badge.vip-level-9::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(224, 247, 255, 0.7), transparent);
  animation: vipShineMove 2.2s infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.vip-level-9 .vip-badge::after,
.vip-level-9 .rdgh-vip-badge::after,
.vip-level-9 .level-badge::after,
.vip-badge.vip-level-9::after,
.rdgh-vip-badge.vip-level-9::after,
.level-badge.vip-level-9::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), transparent 70%);
  animation: vipPulse 2s ease-in-out infinite;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.vip-level-10 .vip-badge,
.vip-level-10 .rdgh-vip-badge,
.vip-level-10 .level-badge,
.vip-badge.vip-level-10,
.rdgh-vip-badge.vip-level-10,
.level-badge.vip-level-10 {
  background: linear-gradient(135deg, #A8C5DA, #8BA9BE, #A8C5DA, #A8C5DA);
  background-size: 300% 300%;
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: vipPurpleFlow 5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(168, 197, 218, 0.9), 0 0 60px rgba(168, 197, 218, 0.5), inset 0 0 20px rgba(168, 197, 218, 0.4);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.vip-level-10 .vip-badge::before,
.vip-level-10 .rdgh-vip-badge::before,
.vip-level-10 .level-badge::before,
.vip-badge.vip-level-10::before,
.rdgh-vip-badge.vip-level-10::before,
.level-badge.vip-level-10::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(168, 197, 218, 0.6), transparent);
  animation: vipShineMove 2s infinite;
}

.vip-level-10 .vip-badge::after,
.vip-level-10 .rdgh-vip-badge::after,
.vip-level-10 .level-badge::after,
.vip-badge.vip-level-10::after,
.rdgh-vip-badge.vip-level-10::after,
.level-badge.vip-level-10::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: vipPulse 2s ease-in-out infinite;
}

@keyframes vipPlatinumShine {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes vipTitaniumShine {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes vipDiamondShine {

  0%,
  100% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 100%;
  }
}

@keyframes vipPurpleFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  33% {
    background-position: 50% 100%;
  }

  66% {
    background-position: 100% 50%;
  }
}

@keyframes vipShineMove {
  0% {
    transform: translate3d(-100%, -100%, 0) rotate(45deg);
  }

  100% {
    transform: translate3d(100%, 100%, 0) rotate(45deg);
  }
}

@keyframes vipPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale3d(1, 1, 1);
  }

  50% {
    opacity: 0.6;
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Glass morphism effect */
.glass-panel {
  background: rgba(20, 27, 45, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg,
      var(--bg-card) 25%,
      var(--bg-hover), 0.6) 50%,
      var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ===== USER DROPDOWN HEADER (Binance Style) ===== */
.user-dropdown-header-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.user-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.user-avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 197, 218, 0.3);
}

.user-text-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name-text {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.user-uid-text {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 1.2;
}

.user-email-text {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.2;
}

.user-badges-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.badge-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.uid-badge-new {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-card-light);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  font-family: var(--font-numeric);
  letter-spacing: 0.3px;
  min-width: 80px;
  text-align: center;
}

.vip-badge-new {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 60px;
  text-align: center;
}

.verified-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  min-width: 80px;
  text-align: center;
}

.verified-badge.verified {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.verified-badge.unverified {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

/* VIP Level Colors (0-10) - Binance Style */
.vip-badge-new.vip-level-0 {
  background: rgba(71, 85, 105, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.vip-badge-new.vip-level-1,
.vip-badge-new.vip-level-2 {
  background: rgba(120, 113, 108, 0.2);
  color: #d4a574;
  border: 1px solid rgba(161, 128, 91, 0.4);
}

.vip-badge-new.vip-level-3,
.vip-badge-new.vip-level-4 {
  background: rgba(161, 161, 170, 0.2);
  color: #e4e4e7;
  border: 1px solid rgba(212, 212, 216, 0.4);
}

.vip-badge-new.vip-level-5,
.vip-badge-new.vip-level-6 {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
}

.vip-badge-new.vip-level-7 {
  background: rgba(232, 234, 237, 0.15);
  color: #e8eaed;
  border: 1px solid rgba(245, 245, 245, 0.5);
  box-shadow: 0 0 10px rgba(232, 234, 237, 0.25);
}

.vip-badge-new.vip-level-8 {
  background: rgba(168, 181, 192, 0.15);
  color: #cbd5e0;
  border: 1px solid rgba(168, 181, 192, 0.5);
  box-shadow: 0 0 12px var(--border-accent);
}

.vip-badge-new.vip-level-9 {
  background: rgba(184, 230, 255, 0.15);
  color: #b8e6ff;
  border: 1px solid rgba(141, 213, 245, 0.6);
  box-shadow: 0 0 15px rgba(184, 230, 255, 0.35);
}

.vip-badge-new.vip-level-10 {
  background: rgba(168, 197, 218, 0.2);
  color: #A8C5DA;
  border: 1px solid rgba(168, 197, 218, 0.7);
  box-shadow: 0 0 15px rgba(168, 197, 218, 0.4);
}

/* ===== VIP SYSTEM BOX ===== */
.vip-system-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 6px;
  border-radius: 4px;
  min-width: 80px;
  border: 1px solid;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card-light));
  transition: all 0.2s ease;
}

.vip-level-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
}

.vip-level-badge a,
.vip-next-level a {
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.vip-level-badge a:hover,
.vip-next-level a:hover {
  opacity: 0.8;
  text-align: center;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--border-secondary);
}

.vip-transaction-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.vip-tx-label {
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  opacity: 0.6;
  font-weight: 600;
  text-align: center;
}

.vip-tx-value {
  font-size: 8px;
  font-weight: 700;
  font-family: var(--font-numeric);
  text-align: center;
}

.vip-progress-container {
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
  overflow: hidden;
  margin: 1px 0;
}

.vip-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, currentColor, currentColor);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.vip-next-level {
  font-size: 6px;
  text-align: center;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* VIP Level 0 - Gray */
.vip-system-box.vip-level-0 {
  border-color: rgba(100, 116, 139, 0.4);
  color: #94a3b8;
}

/* VIP Level 1-2 - Bronze */
.vip-system-box.vip-level-1,
.vip-system-box.vip-level-2 {
  border-color: rgba(161, 128, 91, 0.5);
  color: #d4a574;
  background: linear-gradient(135deg, rgba(61, 48, 38, 0.5), rgba(30, 23, 18, 0.7));
}

/* VIP Level 3-4 - Silver */
.vip-system-box.vip-level-3,
.vip-system-box.vip-level-4 {
  border-color: rgba(212, 212, 216, 0.5);
  color: #e4e4e7;
  background: linear-gradient(135deg, rgba(51, 51, 60, 0.5), rgba(30, 30, 40, 0.7));
}

/* VIP Level 5-6 - Gold */
.vip-system-box.vip-level-5,
.vip-system-box.vip-level-6 {
  border-color: rgba(250, 204, 21, 0.6);
  color: #fde047;
  background: linear-gradient(135deg, rgba(68, 56, 12, 0.6), rgba(40, 34, 8, 0.8));
}

/* VIP Level 7 - Platinum with glow */
.vip-system-box.vip-level-7 {
  border-color: rgba(232, 234, 237, 0.6);
  color: #e8eaed;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.6), rgba(45, 55, 72, 0.8));
  box-shadow: 0 0 18px rgba(232, 234, 237, 0.35);
  animation: platinumGlow 3s ease-in-out infinite;
}

/* VIP Level 8 - Titanium with glow */
.vip-system-box.vip-level-8 {
  border-color: rgba(168, 181, 192, 0.65);
  color: #cbd5e0;
  background: linear-gradient(135deg, rgba(60, 70, 85, 0.65), rgba(40, 50, 65, 0.85));
  box-shadow: 0 0 20px rgba(168, 181, 192, 0.4);
  animation: titaniumGlow 3s ease-in-out infinite;
}

/* VIP Level 9 - Diamond with glow */
.vip-system-box.vip-level-9 {
  border-color: rgba(184, 230, 255, 0.7);
  color: #b8e6ff;
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.7), rgba(8, 47, 73, 0.9));
  box-shadow: 0 0 25px rgba(184, 230, 255, 0.5);
  animation: diamondGlow 3s ease-in-out infinite;
}

/* VIP Level 10 - Purple with glow */
.vip-system-box.vip-level-10 {
  border-color: rgba(168, 197, 218, 0.8);
  color: #A8C5DA;
  background: linear-gradient(135deg, rgba(184, 147, 90, 0.7), rgba(138, 115, 72, 0.9));
  box-shadow: 0 0 25px rgba(168, 197, 218, 0.5);
  animation: purpleGlow 3s ease-in-out infinite;
}

@keyframes platinumGlow {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(232, 234, 237, 0.35);
  }

  50% {
    box-shadow: 0 0 28px rgba(245, 245, 245, 0.55);
  }
}

@keyframes titaniumGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(168, 181, 192, 0.4);
  }

  50% {
    box-shadow: 0 0 32px rgba(168, 181, 192, 0.65);
  }
}

@keyframes diamondGlow {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(184, 230, 255, 0.5);
  }

  50% {
    box-shadow: 0 0 38px rgba(184, 230, 255, 0.75);
  }
}

@keyframes purpleGlow {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(168, 197, 218, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(168, 197, 218, 0.8);
  }
}

/* Mobile VIP Box - Extra Compact */
@media (max-width: 768px) {
  .vip-system-box {
    min-width: 75px;
    padding: 4px 5px;
    gap: 2px;
  }

  .vip-level-badge {
    font-size: 7px;
  }

  .vip-tx-label {
    font-size: 5px;
  }

  .vip-tx-value {
    font-size: 7px;
  }

  .vip-next-level {
    font-size: 5px;
  }
}

/* Mobile User Identity (below email) */
.mobile-user-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.mobile-user-identity .uid-badge,
.mobile-user-identity .vip-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mobile-user-identity .uid-badge {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-hover), 0.5));
  border-color: rgba(168, 197, 218, 0.25);
  color: #cbd5e1;
}

.mobile-user-identity svg {
  width: 9px;
  height: 9px;
}

/* ===== NEW AUTH MODAL STYLES ===== */

/* Modal Content Override */
.modal-content {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.modal-content-inner {
  position: relative;
}

/* Content Transition Animation */
.modal-content-inner.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content-inner.fade-in {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Close Button - Auth Modal Specific */
.auth-modal-overlay .modal-close {
  position: absolute;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.auth-modal-overlay .modal-close:hover {
  background: var(--bg-overlay);
  border-color: rgba(168, 197, 218, 0.4);
  color: var(--gold-primary);
  transform: scale(1.05);
}

.auth-modal-overlay .modal-close:active {
  transform: scale(0.95);
}

/* Brand Header */
.auth-modal-overlay .auth-brand {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  position: relative;
}

.auth-modal-overlay .modal-close {
  position: absolute;
  top: 12px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card-light);
  border: 1px solid rgba(71, 85, 105, 0.3);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-overlay .auth-brand-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
  line-height: 1;
  font-family: var(--font-display);
}

.auth-modal-overlay .auth-brand-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Progress Indicator */
.auth-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.progress-step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.progress-step-wrapper.active .progress-step {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-primary) 100%);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 197, 218, 0.4);
  transform: scale(1.05);
}

.progress-step-wrapper.completed .progress-step {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-color: #10b981;
  color: #ffffff;
  transform: scale(1);
}

/* Pulse animation for active step */
.progress-step-wrapper.active .progress-step::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.progress-step-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step-wrapper.active .progress-step-label {
  color: var(--gold-primary);
  font-weight: 600;
}

.progress-step-wrapper.completed .progress-step-label {
  color: #10b981;
}

/* Progress Line */
.progress-line-wrapper {
  display: flex;
  align-items: flex-start;
  padding-top: 19px;
  width: 80px;
  position: relative;
  z-index: 1;
}

.progress-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(71, 85, 105, 0.3);
  overflow: hidden;
  border-radius: 2px;
}

.progress-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-primary));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Shimmer effect during animation */
.progress-line.animating::after {
  background: linear-gradient(90deg,
      var(--gold-primary) 0%,
      var(--gold-primary) 25%,
      #93c5fd 50%,
      var(--gold-primary) 75%,
      var(--gold-primary) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

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

  100% {
    background-position: -200% 0;
  }
}

.progress-line.active::after {
  width: 100%;
}

.progress-line.completed::after {
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Form Header */
.auth-form-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-form-header h2 {
  font-size: 19px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.auth-form-header p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
}

/* Input Wrapper */
.auth-modal-overlay .input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.auth-modal-overlay .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  z-index: 2;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-input.with-icon {
  padding-left: 44px !important;
}

.form-input.with-toggle {
  padding-right: 48px !important;
}

/* Password Toggle */
.auth-modal-overlay .password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.auth-modal-overlay .password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}

.auth-modal-overlay .password-toggle:hover {
  color: #94a3b8 !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
}

.auth-modal-overlay .password-toggle:active {
  transform: translateY(-50%) !important;
  background: transparent !important;
}

.auth-modal-overlay .password-toggle:focus {
  outline: none !important;
  transform: translateY(-50%) !important;
}

.auth-modal-overlay .password-toggle svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

/* Form Options (Remember & Forgot Password) */
.auth-modal-overlay .form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #475569;
  border-radius: 4px;
  background: rgba(20, 27, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-primary) 100%);
  border-color: var(--gold-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--gold-primary);
}

.checkbox-text {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 400;
}

/* ===== 2FA CODE INPUT - REACT/NEXT.JS STYLE (SMOOTH, NO JANKY) ===== */
.code-input-wrapper,
.code-input-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 16px 0;
}

.code-digit-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(20, 27, 45, 0.6);
  border: 2px solid rgba(168, 197, 218, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  caret-color: var(--gold-primary);
  font-family: var(--font-primary);

  /* GPU acceleration for smooth animation */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;

  /* Smooth transitions with ease-out for natural feel (no bounce) */
  transition: border-color 0.2s ease-out,
    background-color 0.2s ease-out,
    box-shadow 0.2s ease-out,
    transform 0.15s ease-out;
}

/* Focus state - smooth glow (no transform bounce) */
.code-digit-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(20, 27, 45, 0.8);
  box-shadow: 0 0 0 3px rgba(168, 197, 218, 0.15),
    0 2px 8px rgba(168, 197, 218, 0.2);
}

/* Filled state - smooth color transition */
.code-digit-input.filled {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* Hover state - subtle glow (no transform) */
.code-digit-input:hover:not(:focus) {
  border-color: rgba(168, 197, 218, 0.5);
}

.code-digit-input::placeholder {
  color: #334155;
  opacity: 0.6;
}

/* Smooth pulse animation when digit is typed - subtle and smooth */
@keyframes digitPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.code-digit-input.pulse {
  animation: digitPulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Simple vibrate animation for error */
@keyframes digitVibrate {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.code-digit-input.error {
  animation: digitVibrate 0.4s ease-in-out;
}

/* Success animation - smooth and subtle */
@keyframes digitSuccess {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.code-digit-input.success {
  animation: digitSuccess 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide-in animation on modal open - smooth fade only (no transform) */
@keyframes slideInDigit {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.code-digit-input {
  animation: slideInDigit 0.2s ease-out backwards;
}

.code-digit-input:nth-child(1) {
  animation-delay: 0s;
}

.code-digit-input:nth-child(2) {
  animation-delay: 0.02s;
}

.code-digit-input:nth-child(3) {
  animation-delay: 0.04s;
}

.code-digit-input:nth-child(4) {
  animation-delay: 0.06s;
}

.code-digit-input:nth-child(5) {
  animation-delay: 0.08s;
}

.code-digit-input:nth-child(6) {
  animation-delay: 0.1s;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .code-input-wrapper,
  .code-input-container {
    gap: 6px;
  }

  .code-digit-input {
    width: 40px;
    height: 48px;
    font-size: 20px;
    border-radius: 10px;
  }

  /* Mobile: no transform animations */
  .code-digit-input:focus {
    box-shadow: 0 0 0 2px rgba(168, 197, 218, 0.15);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .code-digit-input,
  .code-digit-input.pulse,
  .code-digit-input.success {
    animation: none;
    transition-duration: 0.05s;
  }
}

/* Error Message with Attempt Badge */
.error-msg.with-attempts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.error-msg.with-attempts .error-text {
  flex: 1;
}

.error-msg.locked {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
}

.error-msg.locked svg {
  flex-shrink: 0;
}

.attempt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Locked Button State */
.btn.btn-locked {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  cursor: not-allowed !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.btn-locked:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  transform: none !important;
}

.btn.btn-locked svg {
  flex-shrink: 0;
}

/* 2FA Attempt Counter (still used) */
.attempt-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
}

.attempt-counter.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.attempt-counter.locked {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.attempt-counter svg {
  flex-shrink: 0;
}

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

.link-primary {
  font-size: 14px;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-primary:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* Full Width Button */
.btn-full {
  width: 100%;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-buttons .btn-full {
  flex: 1;
}

/* Auth Footer */
.auth-modal-overlay .auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.auth-footer p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.auth-footer .link-primary {
  font-weight: 600;
}

/* 2FA Code Input */
.code-input {
  text-align: center;
  font-size: 24px !important;
  letter-spacing: 8px;
  font-weight: 600;
  font-family: var(--font-numeric);
}

/* Verification Animation */
.verification-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
}

.verification-circle {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(71, 85, 105, 0.3);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Checkmark Animation */
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  stroke-width: 3;
  stroke: #10b981;
  stroke-miterlimit: 10;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.verification-text {
  margin-top: 16px;
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================
   REGISTRATION FLOW STYLES
   ========================================== */

/* Form Row - Two Column Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Text Required Asterisk */
.text-required {
  color: #ef4444;
}

/* Input Hint */
.input-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e2e8f0;
  font-size: 14px;
}

.custom-select-trigger:hover {
  border-color: rgba(148, 163, 184, 0.5);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--titanium-silver);
  box-shadow: 0 0 0 3px var(--titanium-glow);
}

.custom-select-trigger .placeholder {
  color: #64748b;
}

.custom-select-trigger .flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
}

.custom-select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #64748b;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.custom-select.open .custom-select-dropdown {
  display: block;
  animation: fadeInDown 0.2s ease;
}

/* Upward dropdown positioning */
.custom-select.open-upward .custom-select-dropdown {
  top: auto;
  bottom: calc(100% + 4px);
  animation: fadeInUp 0.2s ease;
}

.custom-select.open-upward .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select.open-upward.open .custom-select-arrow {
  transform: rotate(0deg);
}

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

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

.custom-select-option {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: #e2e8f0;
}

.custom-select-option:hover {
  background: rgba(148, 163, 184, 0.1);
}

.custom-select-option.selected {
  background: rgba(148, 163, 184, 0.15);
}

.custom-select-option .flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 12px;
}

.strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(71, 85, 105, 0.4);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.strength-bar.active.weak {
  background: #ef4444;
}

.strength-bar.active.fair {
  background: #f59e0b;
}

.strength-bar.active.good {
  background: #eab308;
}

.strength-bar.active.strong {
  background: #22c55e;
}

.strength-bar.active.very-strong {
  background: #10b981;
}

.strength-text {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.3s ease;
}

.strength-text.weak { color: #ef4444; }
.strength-text.fair { color: #f59e0b; }
.strength-text.good { color: #eab308; }
.strength-text.strong { color: #22c55e; }
.strength-text.very-strong { color: #10b981; }

/* Password Requirements Checklist */
.password-requirements {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.password-requirements h4 {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.requirements-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  transition: color 0.2s ease;
}

.requirement i,
.requirement svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.requirement.met {
  color: #22c55e;
}

/* Password Requirements - Alternative Style */
.req-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}

.req-item i,
.req-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.req-item.valid {
  color: #22c55e;
}

/* Password Match Indicator */
.password-match {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.password-match i,
.password-match svg {
  width: 14px;
  height: 14px;
}

.password-match.match {
  color: #22c55e;
}

.password-match.no-match {
  color: #ef4444;
}

/* Terms Checkbox */
.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.terms-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--titanium-silver);
  cursor: pointer;
}

.terms-label {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.terms-label a {
  color: var(--titanium-silver);
  text-decoration: none;
}

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

/* Registration Success Screen */
.success-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
}

.success-checkmark {
  width: 100px;
  height: 100px;
}

.success-checkmark .checkmark-circle {
  stroke: #22c55e;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark .checkmark-check {
  stroke: #22c55e;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.success-title {
  margin: 24px 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #e2e8f0;
}

.success-message {
  margin: 0 0 16px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.success-email {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.success-email strong {
  color: #e2e8f0;
}

/* Scrollable Register Form */
.register-form-scrollable {
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

.register-form-scrollable::-webkit-scrollbar {
  width: 4px;
}

.register-form-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.register-form-scrollable::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

/* Register Progress 4-step variant */
.auth-progress.register-progress {
  margin-bottom: 24px;
}

.auth-progress.register-progress .progress-step-wrapper {
  min-width: 50px;
}

.auth-progress.register-progress .progress-step-label {
  font-size: 10px;
}

/* Back Button in Register Flow */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(71, 85, 105, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

/* Email Change Link */
.change-email-link {
  color: var(--titanium-silver);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.change-email-link:hover {
  text-decoration: underline;
}

/* Resend Code Link */
.resend-link {
  color: var(--titanium-silver);
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

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

/* Timer text */
.resend-timer {
  color: #64748b;
  font-size: 13px;
}

/* Responsive Styles for Mobile */
@media (max-width: 640px) {
  .modal-content {
    padding: 18px 14px 16px;
    width: calc(100% - 20px);
    max-width: 400px;
  }

  .auth-brand {
    margin-bottom: 20px;
  }

  .auth-brand-title {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .auth-brand-subtitle {
    font-size: 13px;
  }

  .auth-form-header {
    margin-bottom: 18px;
  }

  .auth-form-header h2 {
    font-size: 17px;
  }

  .auth-form-header p {
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form-input {
    font-size: 14px;
    padding: 11px 12px;
  }

  .form-input.with-icon {
    padding-left: 38px;
  }

  .form-input.with-toggle {
    padding-right: 42px;
  }

  .input-icon {
    left: 11px;
    width: 18px;
    height: 18px;
  }

  .password-toggle {
    right: 6px;
    width: 34px;
    height: 34px;
  }

  .form-options {
    margin-bottom: 16px;
  }

  .checkbox-text {
    font-size: 13px;
  }

  .link-primary {
    font-size: 13px;
  }

  .modal-buttons {
    margin-top: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 11px 16px;
  }

  .auth-footer {
    margin-top: 20px;
    padding-top: 16px;
  }

  .auth-footer p {
    font-size: 13px;
  }

  .modal-close {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }

  .modal-close svg {
    width: 18px;
    height: 18px;
  }

  /* Registration Form Mobile Styles */
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .register-form-scrollable {
    max-height: calc(100vh - 280px);
  }

  .requirements-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .custom-select-dropdown {
    max-height: 160px;
  }

  .auth-progress.register-progress .progress-step-wrapper {
    min-width: 40px;
  }

  .auth-progress.register-progress .progress-step-label {
    font-size: 9px;
  }

  .password-requirements {
    padding: 10px 12px;
  }

  .password-requirements h4 {
    font-size: 11px;
  }

  .terms-label {
    font-size: 12px;
  }

  .success-title {
    font-size: 20px;
  }

  .success-checkmark {
    width: 80px;
    height: 80px;
  }
}

/* Tablet screens */
@media (min-width: 641px) and (max-width: 1024px) {
  .modal-content {
    max-width: 440px;
    padding: 28px 24px 24px;
  }

  .auth-brand-title {
    font-size: 34px;
  }

  .auth-progress {
    margin-bottom: 36px;
  }
}

/* Large desktop screens (2K+) */
@media (min-width: 1920px) {
  .modal-content {
    max-width: 480px;
    padding: 32px 28px 28px;
  }

  .auth-brand-title {
    font-size: 36px;
  }

  .auth-brand-subtitle {
    font-size: 16px;
  }

  .auth-form-header h2 {
    font-size: 21px;
  }

  .auth-form-header p {
    font-size: 15px;
  }

  .progress-step {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .progress-line-wrapper {
    width: 90px;
  }
}

/* 4K screens */
@media (min-width: 2560px) {
  .modal-content {
    max-width: 520px;
    padding: 36px 32px 32px;
  }

  .auth-brand-title {
    font-size: 40px;
  }

  .auth-brand-subtitle {
    font-size: 18px;
  }

  .auth-form-header h2 {
    font-size: 24px;
  }

  .auth-form-header p {
    font-size: 16px;
  }

  .form-label {
    font-size: 16px;
  }

  .form-input {
    font-size: 18px;
    padding: 16px 18px;
  }

  .progress-step {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .progress-line-wrapper {
    width: 100px;
  }

  .btn {
    font-size: 18px;
    padding: 16px 24px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .modal-content {
    padding: 16px 12px 14px;
  }

  .auth-brand-title {
    font-size: 24px;
  }

  .auth-brand-subtitle {
    font-size: 12px;
  }

  .auth-form-header h2 {
    font-size: 16px;
  }

  .form-options {
    gap: 8px;
  }
}

/* ===== GUEST MOBILE MENU STYLES ===== */
.rdgh-guest-mobile-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Brand Section */
.rdgh-guest-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.rdgh-guest-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(168, 197, 218, 0.1) 0%, rgba(168, 197, 218, 0.2) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.rdgh-guest-brand-text h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 4px 0;
  line-height: 1;
}

.rdgh-guest-brand-text p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

/* Guest Message */
.rdgh-guest-message {
  background: rgba(168, 197, 218, 0.08);
  border: 1px solid rgba(168, 197, 218, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.rdgh-guest-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Guest Navigation */
.rdgh-guest-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdgh-guest-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rdgh-guest-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(168, 197, 218, 0.1) 0%, rgba(168, 197, 218, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rdgh-guest-nav-item:hover {
  background: var(--bg-card-light);
  border-color: rgba(168, 197, 218, 0.4);
  transform: translateX(4px);
}

.rdgh-guest-nav-item:hover::before {
  opacity: 1;
}

.rdgh-guest-nav-item:active {
  transform: translateX(2px);
}

.rdgh-guest-nav-item>svg:first-child {
  color: var(--gold-primary);
  flex-shrink: 0;
  z-index: 1;
}

.rdgh-guest-nav-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  z-index: 1;
}

.rdgh-guest-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1;
}

.rdgh-guest-nav-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.rdgh-guest-nav-arrow {
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.rdgh-guest-nav-item:hover .rdgh-guest-nav-arrow {
  color: var(--gold-primary);
  transform: translateX(4px);
}

/* Guest Actions */
.rdgh-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.rdgh-guest-login-btn {
  width: 100% !important;
  padding: 16px 20px !important;
  /* ✅ Use btn-primary styling - titanium silver gradient background */
  background: var(--accent-gradient) !important;
  border: 1px solid var(--border-titanium) !important;
  border-radius: 12px !important;
  /* ✅ Dark text on light titanium background (same as btn-primary) */
  color: var(--bg-primary) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--btn-titanium-shadow) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
  position: relative !important;
  overflow: visible !important;
  /* ✅ Remove z-index layering, use direct gradient */
}

.rdgh-guest-login-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--btn-titanium-hover-shadow) !important;
  /* ✅ Maintain dark text on hover */
  color: var(--bg-primary) !important;
}

.rdgh-guest-login-btn:active {
  transform: scale(0.98) !important;
}

.rdgh-guest-login-btn:focus {
  outline: none !important;
  box-shadow: var(--btn-titanium-shadow), 0 0 0 3px rgba(203, 213, 225, 0.2) !important;
}

.rdgh-guest-login-btn svg {
  flex-shrink: 0 !important;
}

.rdgh-guest-register-text {
  text-align: center !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  margin-top: -4px !important;
  line-height: 1.6 !important;
}

.rdgh-guest-register-text a {
  color: var(--gold-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: inline !important;
  cursor: pointer !important;
}

.rdgh-guest-register-text a:hover {
  color: var(--gold-primary) !important;
  text-decoration: underline !important;
  background: none !important;
  transform: none !important;
}

/* ==========================================
   TOAST NOTIFICATION SYSTEM
   Unified toast for login, logout, trades, etc
   ========================================== */

/* Toast Container */
.toast-container {
  position: fixed;
  top: 80px;
  /* Below navbar (navbar height ~64px + margin) */
  right: 24px;
  z-index: 99999;
  /* Highest z-index - always on top of all modals globally */
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

/* Adjust for pages with different navbar heights */
body.dashboard .toast-container,
body.settings .toast-container {
  top: 90px;
  /* Dashboard/Settings navbar is taller */
}

/* Individual Toast */
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-modal), var(--bg-modal));
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--border-primary) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(calc(100% + 48px));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, currentColor 0%, transparent 100%);
  opacity: 0.8;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(calc(100% + 48px));
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

/* Toast Icon Container */
.toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.toast-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.12;
  border-radius: inherit;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  color: currentColor;
  position: relative;
  z-index: 1;
}


/* Toast Content */
.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin: 0;
}

.toast-message {
  font-size: 13px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* Close Button */
.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
  margin-top: -2px;
}

.toast-close:hover {
  background: rgba(100, 116, 139, 0.35);
  color: #f8fafc;
  transform: scale(1.1);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(100, 116, 139, 0.15);
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  background: currentColor;
  width: 100%;
  transform-origin: left;
  animation: toastProgress linear;
  opacity: 0.6;
}

/* Toast Types */
.toast.success {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15),
    0 0 0 1px rgba(16, 185, 129, 0.1) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.success:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2),
    0 0 0 1px rgba(16, 185, 129, 0.15) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.error {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15),
    0 0 0 1px rgba(239, 68, 68, 0.1) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.error:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.2),
    0 0 0 1px rgba(239, 68, 68, 0.15) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.warning {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15),
    0 0 0 1px rgba(245, 158, 11, 0.1) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.warning:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.2),
    0 0 0 1px rgba(245, 158, 11, 0.15) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.info {
  color: var(--gold-primary);
  border-color: rgba(168, 197, 218, 0.3);
  box-shadow: 0 8px 32px rgba(168, 197, 218, 0.15),
    0 0 0 1px rgba(168, 197, 218, 0.1) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.toast.info:hover {
  border-color: rgba(168, 197, 218, 0.4);
  box-shadow: 0 12px 40px rgba(168, 197, 218, 0.2),
    0 0 0 1px rgba(168, 197, 218, 0.15) inset,
    0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes toastIconPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  .toast {
    padding: 14px 16px;
    gap: 12px;
  }

  .toast-icon {
    width: 36px;
    height: 36px;
  }

  .toast-icon svg {
    width: 18px;
    height: 18px;
  }

  .toast-title {
    font-size: 13px;
  }

  .toast-message {
    font-size: 12px;
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 641px) {
  .toast-container {
    right: 20px;
    max-width: 380px;
  }
}

/* ==========================================
   UNIFIED MODAL SYSTEM - App-like Modern UI
   ========================================== */

@keyframes modalSlideUp {
  from {
    transform: scale(0.96) translateY(16px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, backdrop-filter 0.18s ease-out;
  visibility: hidden;
}

.modal {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--titanium-glow) inset,
    var(--shadow-glow);
  max-height: 88vh;
  overflow: hidden;
  display: none;
  flex-direction: column;
  width: auto;
  min-width: 340px;
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.18s ease-out;
  position: relative;
  will-change: transform, opacity;
}

.modal.show {
  display: flex;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ✅ Confirm Order Modal - Redesigned for better readability */
#confirmModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  min-width: auto;
  width: auto;
}

#confirmModal .modal-box {
  background: linear-gradient(180deg, #1e2838 0%, #141b24 100%);
  border: 1px solid rgba(99, 179, 237, 0.25);
  border-radius: 16px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(99, 179, 237, 0.08);
  padding: 28px;
  max-width: 440px;
  width: 100%;
}

#confirmModal h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

#confirmModal h3 i {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
}

#confirmModal p {
  margin: 0 0 20px 0;
  color: #a1b1c4;
  font-size: 0.9375rem;
  line-height: 1.5;
}

#confirmModal .fa {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

#confirmModal .btn {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

#confirmModal .btn.bp {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

#confirmModal .btn.bp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

#confirmModal .btn.bs {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#confirmModal .btn.bs:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Confirm modal details - brighter styling */
#confirmDetails {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  border-radius: 12px;
  margin: 16px 0;
}

#confirmDetails .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9375rem;
}

#confirmDetails .detail-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#confirmDetails .detail-label {
  color: #a1b1c4;
  font-weight: 500;
}

#confirmDetails .detail-value {
  color: #f1f5f9;
  font-weight: 600;
}

#confirmDetails .detail-value.buy {
  color: #22c55e;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

#confirmDetails .detail-value.sell {
  color: #ef4444;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.modal-overlay .modal {
  display: flex;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--border-titanium) 30%,
      var(--border-accent) 50%,
      var(--border-titanium) 70%,
      transparent);
}

.modal-overlay[data-modal-size="small"] .modal {
  max-width: 420px;
  min-width: 420px;
}

.modal-overlay[data-modal-size="medium"] .modal {
  max-width: 540px;
  min-width: 540px;
}

.modal-overlay[data-modal-size="large"] .modal {
  max-width: 720px;
  min-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px 26px;
  gap: 16px;
  border-bottom: 1px solid var(--border-secondary);
  background: linear-gradient(to bottom, var(--titanium-glow), transparent);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.015em;
}

.modal-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-blue);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.3));
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.modal-close:active {
  transform: scale(0.92);
  background: var(--border-titanium);
  color: #e2e8f0;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  flex: 1;
  padding: 24px 26px;
  overflow-y: auto;
  color: #e2e8f0;
  line-height: 1.65;
  font-size: 14.5px;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(17, 20, 28, 0.5);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(159, 185, 206, 0.26);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 204, 214, 0.28);
}

.modal-footer {
  padding: 18px 26px 22px 26px;
  border-top: 1px solid rgba(164, 171, 181, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: linear-gradient(to top, rgba(159, 185, 206, 0.012), transparent);
}

.modal-overlay.modal-show {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-overlay.modal-show .modal {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

.modal-overlay.modal-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-overlay.modal-hide .modal {
  transform: scale(0.94) translateY(20px) !important;
  opacity: 0 !important;
}

.modal .btn {
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 100px;
}

.modal .btn svg {
  width: 16px;
  height: 16px;
}

/* Native app-like button - subtle hover, strong press */
.modal .btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #8BA9BE 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(168, 197, 218, 0.25);
}

.modal .btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 3px 10px rgba(168, 197, 218, 0.3);
}

.modal .btn-primary:active {
  transform: scale(0.96);
  opacity: 0.8;
  box-shadow: 0 1px 3px rgba(168, 197, 218, 0.2);
}

.modal .btn-secondary {
  background: var(--border-primary);
  color: #e2e8f0;
  border: 1px solid var(--border-titanium);
}

.modal .btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.25);
}

.modal .btn-secondary:active {
  transform: scale(0.96);
  background: var(--border-titanium);
  opacity: 0.85;
}

.modal .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.modal .btn-danger:hover {
  opacity: 0.92;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.modal .btn-danger:active {
  transform: scale(0.96);
  opacity: 0.8;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 16px;
  }

  .modal {
    max-height: 85vh;
    border-radius: 12px;
  }

  .modal-overlay[data-modal-size="small"] .modal,
  .modal-overlay[data-modal-size="medium"] .modal,
  .modal-overlay[data-modal-size="large"] .modal {
    max-width: 100%;
    min-width: auto;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .modal-overlay,
  .modal,
  .modal-close,
  .modal .btn {
    transition: none;
    animation: none;
  }
}


/* ========================================
   COMPLETE NAVBAR & AUTH COMPONENTS
   Moved from landing.css (line 172-964)
   ======================================== */

/* ===== NAVIGATION - OBSIDIAN STYLE ===== */
/* ===== UNIFIED NAVBAR - ALL PAGES ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 15, 20, 0.95) 0%, rgba(8, 9, 12, 0.92) 100%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(122, 137, 153, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(184, 196, 208, 0.03);
  z-index: 1000;
  transition: all var(--transition-normal);
}




.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  min-height: 64px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: all 0.2s;
}

.nav-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover svg {
  opacity: 1;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(203, 213, 225, 0.08);
}

.nav-links a.active {
  color: var(--titanium-silver);
  background: rgba(203, 213, 225, 0.12);
  border: 1px solid var(--border-titanium);
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.1) inset;
}

.nav-links a.active svg {
  opacity: 1;
}

/* ===== NAV BUTTON - INSTITUTIONAL PROFESSIONAL STYLE ===== */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--border-titanium);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-family: inherit;
  height: 40px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: var(--btn-titanium-shadow);
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--border-primary), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-btn:hover svg {
  opacity: 1;
}

.nav-btn:hover {
  box-shadow: var(--btn-titanium-hover-shadow);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 50%, #94A3B8 100%);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn:active {
  transform: scale(0.98);
}

.nav-btn.logout {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.nav-btn.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher-wrapper {
  position: relative;
}

.lang-switcher-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switcher-btn:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.lang-switcher-btn svg {
  flex-shrink: 0;
}

.lang-code {
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: linear-gradient(135deg, var(--bg-modal) 0%, var(--bg-modal) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 197, 218, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 197, 218, 0.1);
  min-width: 220px;
  max-height: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  /* Show scrollbar on Firefox */
  scrollbar-color: rgba(168, 197, 218, 0.3) rgba(71, 85, 105, 0.2);
  /* Thumb and track color */
}

.lang-dropdown::-webkit-scrollbar {
  width: 6px;
  /* Show scrollbar on Chrome/Safari/Edge */
}

.lang-dropdown::-webkit-scrollbar-track {
  background: rgba(71, 85, 105, 0.2);
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(168, 197, 218, 0.3);
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.3);
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  /* Keep header visible when scrolling */
  top: 0;
  background: linear-gradient(135deg, var(--bg-modal) 0%, var(--bg-modal) 100%);
  z-index: 1;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: left;
  white-space: nowrap;
  /* Prevent text wrapping */
}

.lang-option:active {
  transform: scale(0.98);
  background: rgba(168, 197, 218, 0.2);
}

.lang-option:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.lang-option.active {
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
}

.lang-flag {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.lang-name {
  flex: 1;
  text-align: left;
  min-width: 0;
  /* Allow text to shrink if needed */
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-check {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.lang-option.active .lang-check {
  opacity: 1;
  color: var(--gold-primary);
}

/* ===== NOTIFICATION BELL ===== */
.notification-wrapper {
  position: relative;
}

.notification-bell {
  position: relative;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.notification-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(168, 197, 218, 0.1);
  z-index: 10000;
  overflow: hidden;
}

.notification-panel.show {
  display: flex;
  flex-direction: column;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
}

.notification-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}

.notification-clear {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.notification-clear:hover {
  background: rgba(168, 197, 218, 0.1);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

.notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(168, 197, 218, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.notification-item:hover {
  background: rgba(168, 197, 218, 0.05);
}

.notification-item.unread {
  background: rgba(168, 197, 218, 0.03);
  border-left: 3px solid var(--gold-primary);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.notification-icon.info {
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
}

.notification-icon.warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.notification-content {
  flex: 1;
}

.notification-message {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: #64748b;
}

/* ===== USER MENU ===== */
.user-menu {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-card-light);
  border: 1px solid rgba(168, 197, 218, 0.2);
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-avatar-btn svg {
  color: #94a3b8;
  transition: color 0.2s;
}

.user-avatar-btn:hover {
  background: var(--bg-card);
  border-color: rgba(168, 197, 218, 0.3);
  transform: translateY(-1px);
}

.user-avatar-btn:hover svg {
  color: var(--gold-primary);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 197, 218, 0.3);
}

.user-menu-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.user-menu-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}

.user-menu-email {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.2;
}

/* OLD STYLES REMOVED - Now using user-menu.css sidebar panel */

.hamburger {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  /* ✅ Use CSS variables - consistent with desktop nav */
  background: var(--bg-secondary);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 1rem;
  padding-bottom: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-titanium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Static viewport height for browsers without dvh support */
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px); /* Dynamic viewport height for mobile browsers */
  margin-bottom: calc(72px + env(safe-area-inset-bottom));
  /* Create space above bottom bar */
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  z-index: 110;

  /* Hide scrollbar for all browsers */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.mobile-menu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.mobile-menu.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dynamic viewport height support for iOS/Android browsers */
@supports (height: 100dvh) {
  .mobile-menu {
    max-height: calc(100dvh - 160px);
    /* Use dynamic viewport on supported browsers */
  }
}

.mobile-menu .lang-switcher-wrapper {
  position: relative;
  z-index: 112;
  /* Higher to ensure dropdown shows above everything */
  overflow: visible;
  /* Allow dropdown to overflow */
}

.mobile-menu .lang-dropdown {
  max-height: 400px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* ✅ Use CSS variable - consistent with desktop nav */
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 1.125rem 1.25rem;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border-secondary);
  margin-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
}

.mobile-menu a svg,
.mobile-menu a i[data-lucide] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mobile-menu a:active {
  transform: scale(0.98);
  /* ✅ Use CSS variable for consistent hover effect */
  background: var(--bg-hover);
}

.mobile-menu a:hover {
  background: var(--bg-hover);
  border-color: var(--border-titanium);
  /* ✅ Use CSS variable for text color */
  color: var(--text-primary);
  padding-left: 1.5rem;
}

.mobile-menu a:hover svg,
.mobile-menu a:hover i[data-lucide] {
  opacity: 1;
  transform: scale(1.1);
}

.mobile-divider {
  height: 1px;
  /* ✅ Use CSS variable for divider */
  background: var(--border-secondary);
  margin: 0.5rem 0;
}

/* Mobile User Info Section */
.mobile-user-info {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.mobile-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(168, 197, 218, 0.3);
  flex-shrink: 0;
}

.mobile-user-details {
  flex: 1;
  min-width: 0;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.mobile-user-email {
  font-size: 0.8125rem;
  color: #64748b;
}

.mobile-balance-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mobile-balance-item {
  background: rgba(20, 27, 45, 0.6);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(168, 197, 218, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.mobile-balance-item:active {
  transform: scale(0.98);
  background: rgba(20, 27, 45, 0.8);
  border-color: rgba(168, 197, 218, 0.25);
}

.mobile-balance-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.mobile-balance-label svg {
  opacity: 0.7;
}

.mobile-balance-value {
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.mobile-balance-locked {
  font-size: 0.6875rem;
  color: #64748b;
}

.mobile-btn {
  position: relative;
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(168, 197, 218, 0.3);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.mobile-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-btn:hover {
  background: rgba(168, 197, 218, 0.2);
  border-color: rgba(168, 197, 218, 0.5);
  transform: translateY(-1px);
}

.mobile-btn:hover::before {
  opacity: 1;
}

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

.mobile-btn.logout {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.mobile-btn.logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ========================================
   FOOTER (Global - Used by all pages)  
   Moved from landing.css
   ======================================== */

/* ===== FOOTER - OBSIDIAN STYLE ===== */
/* ===== UNIFIED FOOTER - ALL PAGES ===== */
footer {
  background: linear-gradient(0deg, rgba(8, 9, 12, 0.98) 0%, rgba(13, 15, 20, 0.95) 100%) !important;
  border-top: 1px solid rgba(122, 137, 153, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(184, 196, 208, 0.02), 0 -2px 8px rgba(0, 0, 0, 0.15);
  padding: 2rem 0 !important;
  margin-top: 3rem !important;
  width: 100%;
  position: relative;
  bottom: 0;
  z-index: 1;
}

body.landing footer,
body.dashboard footer,
body.settings footer,
body.assets footer,
body.page footer,
body.admin footer {
  margin-top: 3rem !important;
}

/* Fix footer floating for short content - ALL DEVICES */
body.landing,
body.dashboard,
body.assets,
body.settings,
body.page,
body.admin {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile browsers */
}

/* Add spacing between content and footer */
body.landing .container:not(footer .container),
body.settings .settings-container,
body.page .page-content,
body.admin .admin-container {
  padding-bottom: 3rem;
}

/* Dashboard and Assets already have their own padding in specific CSS */

body.landing footer,
body.dashboard footer,
body.assets footer,
body.settings footer,
body.page footer,
body.admin footer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Mobile footer fix - SIMPLE AND CONSISTENT */
@media (max-width: 768px) {
  html {
    background: var(--bg-primary);
  }

  body.landing,
  body.dashboard,
  body.assets,
  body.settings,
  body.page,
  body.admin {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
  }

  body.landing footer,
  body.dashboard footer,
  body.assets footer,
  body.settings footer,
  body.page footer,
  body.admin footer {
    margin-top: auto;
    margin-bottom: 0;
  }

  /* Chart tooltip responsive for mobile */
  .chart-tooltip {
    font-size: 10px !important;
    padding: 8px !important;
    min-width: 140px !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 6px !important;
    line-height: 1.35 !important;
  }
}

footer .container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.footer-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2rem !important;
  min-height: 60px !important;
}

.footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
  height: 100% !important;
}

.footer-year {
  color: var(--text-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.footer-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.8125rem !important;
  transition: color 0.2s !important;
  white-space: nowrap !important;
}

.footer-link:hover {
  color: #cbd5e1 !important;
}

.footer-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
  height: 100% !important;
}

.footer-legal {
  display: flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.footer-link-small {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.75rem !important;
  transition: color 0.2s !important;
  white-space: nowrap !important;
}

.footer-link-small:hover {
  color: #cbd5e1 !important;
}

.footer-right {
  display: flex !important;
  gap: 1rem !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  flex: 1 !important;
  justify-content: flex-end !important;
}

@media (max-width: 1024px) {
  footer .container {
    padding: 0 1.5rem !important;
  }

  .footer-content {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .footer-left {
    justify-content: center !important;
    width: 100% !important;
  }

  .footer-center {
    order: -1 !important;
  }

  .footer-right {
    justify-content: center !important;
  }
}

.footer-logo {
  display: inline-block !important;
  text-decoration: none !important;
  transition: opacity 0.2s !important;
}

.footer-logo:hover {
  opacity: 0.8 !important;
}

.footer-logo svg {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-logo:hover svg {
  opacity: 1;
}

.footer-social {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-secondary) !important;
  background: var(--bg-card-light) !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
  border: 1px solid rgba(168, 197, 218, 0.1) !important;
}

.footer-social:hover {
  color: #cbd5e1 !important;
  background: rgba(168, 197, 218, 0.15) !important;
  border-color: rgba(168, 197, 218, 0.3) !important;
  transform: translateY(-2px) !important;
}


/* ========================================
   PAGE LOADER (Global)
   ======================================== */

.page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  /* Dynamic viewport width for mobile browsers */
  height: 100vh;
  height: 100dvh;
  /* Dynamic viewport height for iOS auto-hide URL bar */
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Optimize: Stop animations when loader is hidden to prevent memory leak */
.page-loader.hidden .candlestick {
  animation: none !important;
  will-change: auto;
}

.page-loader.hidden .candlestick-container {
  display: none;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background: var(--loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-card {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.page-loader .candlestick-container {
  display: flex;
  align-items: flex-end;
  /* Align from bottom */
  justify-content: center;
  gap: 10px;
  /* Default: balanced spacing */
  height: 200px;
  /* Increased for better visibility */
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  padding: 0;
  transform: translateZ(0);
  will-change: contents;
  overflow: visible;
  /* Allow visibility */
}

/* Desktop: More space between candles */
@media (min-width: 769px) {
  .page-loader .candlestick-container {
    height: 120px;
    gap: 16px;
    /* ✅ Desktop: wider spacing */
    max-width: 380px;
  }
}

/* Mobile: Maintain desktop proportions with smaller size */
@media (max-width: 768px) {
  .page-loader .candlestick-container {
    height: 100px;
    /* ✅ Accommodate tallest mobile candle */
    gap: 6px;
    /* ✅ Mobile: slightly tighter spacing */
    max-width: 200px;
    /* ✅ Fit 7 candles comfortably */
    position: relative;
    overflow: visible;
    /* ✅ Allow full candles to display */
  }

  .page-loader .candlestick {
    width: 10px;
    /* ✅ Mobile width (vs 14px desktop) */
    /* ✅ CRITICAL: Remove absolute positioning */
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
  }

  /* ✅ Override individual candlestick absolute positioning */
  .page-loader .candlestick:nth-child(n) {
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    position: static !important;
  }

  /* ✅ Mobile candle body heights (proportional to desktop) */
  .page-loader .candlestick:nth-child(1) .candle-body {
    height: 24px;
    /* Desktop: 30px */
  }

  .page-loader .candlestick:nth-child(2) {
    margin-bottom: 8px !important;
  }

  .page-loader .candlestick:nth-child(2) .candle-body {
    height: 28px;
    /* Desktop: 35px */
  }

  .page-loader .candlestick:nth-child(3) {
    margin-bottom: -4px !important;
  }

  .page-loader .candlestick:nth-child(3) .candle-body {
    height: 26px;
    /* Desktop: 32px */
  }

  .page-loader .candlestick:nth-child(3) .wick-bottom {
    height: 12px;
    /* Desktop: 15px */
  }

  .page-loader .candlestick:nth-child(4) {
    margin-bottom: 12px !important;
  }

  .page-loader .candlestick:nth-child(4) .candle-body {
    height: 30px;
    /* Desktop: 38px */
  }

  .page-loader .candlestick:nth-child(5) {
    margin-bottom: 4px !important;
  }

  .page-loader .candlestick:nth-child(5) .candle-body {
    height: 22px;
    /* Desktop: 28px */
  }

  .page-loader .candlestick:nth-child(5) .wick-bottom {
    height: 10px;
    /* Desktop: 12px */
  }

  .page-loader .candlestick:nth-child(6) {
    margin-bottom: 24px !important;
  }

  .page-loader .candlestick:nth-child(6) .candle-body {
    height: 36px;
    /* Desktop: 45px */
  }

  .page-loader .candlestick:nth-child(7) {
    margin-bottom: 56px !important;
    /* Desktop: 70px */
  }

  .page-loader .candlestick:nth-child(7) .candle-body {
    height: 56px;
    /* Desktop: 70px */
  }

  .page-loader .candlestick:nth-child(7) .wick-top {
    height: 10px;
    /* Desktop: 12px */
  }

  /* ✅ Mobile wick defaults (proportional) */
  .page-loader .candlestick .wick-top {
    height: 6px;
    /* Desktop: 8px */
  }

  .page-loader .candlestick .wick-bottom {
    height: 5px;
    /* Desktop: 6px */
  }
}

/* Ultra Small Mobile (479px and below) - Page Loader */
@media (max-width: 479px) {
  .page-loader .candlestick.green .candle-body {
    height: 30px !important;
  }

  .page-loader .candlestick.red .candle-body {
    height: 22px !important;
  }

  .page-loader .candlestick:nth-child(1).green .candle-body {
    height: 32px !important;
  }

  .page-loader .candlestick:nth-child(3).green .candle-body {
    height: 36px !important;
  }

  .page-loader .candlestick:nth-child(4).green .candle-body {
    height: 30px !important;
  }

  .page-loader .candlestick:nth-child(6).green .candle-body {
    height: 34px !important;
  }

  .page-loader .loader-stats {
    gap: 16px;
  }

  .page-loader .loader-stats .stat-value {
    font-size: 16px;
  }

  .page-loader .text-main {
    font-size: 16px;
  }

  .page-loader .text-sub {
    font-size: 12px;
  }

  .page-loader .loader-progress {
    width: 200px;
  }
}

.page-loader .candlestick {
  position: relative;
  width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(0) scaleY(0);
  backface-visibility: hidden;
  perspective: 1000px;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: no-preference) {
  .page-loader .candlestick {
    animation: formCandle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
  }

  .page-loader .candlestick:nth-child(1) {
    animation-delay: 0.1s;
  }

  .page-loader .candlestick:nth-child(2) {
    animation-delay: 0.55s;
  }

  .page-loader .candlestick:nth-child(3) {
    animation-delay: 1.0s;
  }

  .page-loader .candlestick:nth-child(4) {
    animation-delay: 1.45s;
  }

  .page-loader .candlestick:nth-child(5) {
    animation-delay: 1.9s;
  }

  .page-loader .candlestick:nth-child(6) {
    animation-delay: 2.35s;
  }

  .page-loader .candlestick:nth-child(7) {
    animation-delay: 2.8s;
  }
}

@keyframes formCandle {
  0% {
    opacity: 0;
    transform: translateZ(0) scaleY(0) scaleX(0.8);
  }

  40% {
    opacity: 0.6;
  }

  70% {
    opacity: 1;
    transform: translateZ(0) scaleY(1.05) scaleX(1);
  }

  100% {
    opacity: 1;
    transform: translateZ(0) scaleY(1) scaleX(1);
  }
}

/* Color definitions: green for bullish, red for bearish */
.candlestick.green {
  color: var(--accent-green);
}

.candlestick.red {
  color: var(--accent-red);
}

/* Pump candle (no glow, just taller) */
.candlestick.pump {
  color: var(--accent-green);
}

.wick-top,
.wick-bottom {
  width: 2px;
  background: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}

.candle-body {
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  border: 2.5px solid currentColor;
  flex-shrink: 0;
}

/* Live market wick animation - appears with subtle pulse */
@keyframes wickGrowLive {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 0.8;
    transform: scaleY(1);
  }
}

/* Wick pulse effect (simulates price testing levels) */
@keyframes wickPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.95;
  }
}

/* Live market body animation - grows with elastic bounce */
@keyframes bodyGrowLive {
  from {
    transform: scaleY(0);
  }

  70% {
    transform: scaleY(1.05);
  }

  /* Overshoot */
  100% {
    transform: scaleY(1);
  }
}

/* Body breathe effect (simulates live price movement) */
@keyframes bodyBreathe {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.02);
  }

  /* Subtle expansion */
}

/* Color definitions: green for bullish, red for bearish */
.candlestick.green {
  color: var(--accent-green);
}

.candlestick.red {
  color: var(--accent-red);
}

/* Pump candle (no glow, just taller) */
.candlestick.pump {
  color: var(--accent-green);
}

.wick-top {
  height: 8px;
}

.wick-bottom {
  height: 6px;
}

/* ===========================================
   EXACT COPY FROM debug.php
   margin-top positioning system
   =========================================== */

/* Candle 1: Green - baseline (lowest) */
.page-loader .candlestick:nth-child(1) {
  align-self: flex-end;
}

.page-loader .candlestick:nth-child(1) .candle-body {
  height: 30px;
}

/* Candle 2: Green - NAIK (higher) */
.page-loader .candlestick:nth-child(2) {
  align-self: flex-end;
  margin-bottom: 10px;
  /* Slightly elevated */
}

.page-loader .candlestick:nth-child(2) .candle-body {
  height: 35px;
}

/* Candle 3: Red DUMP - TURUN (drops down) */
.page-loader .candlestick:nth-child(3) {
  align-self: flex-end;
  margin-bottom: -5px;
  /* Below baseline */
}

.page-loader .candlestick:nth-child(3) .candle-body {
  height: 32px;
}

.page-loader .candlestick:nth-child(3) .wick-bottom {
  height: 15px;
}

/* Candle 4: Green - NAIK recovery */
.page-loader .candlestick:nth-child(4) {
  align-self: flex-end;
  margin-bottom: 15px;
}

.page-loader .candlestick:nth-child(4) .candle-body {
  height: 38px;
}

/* Candle 5: Red DUMP - TURUN lagi */
.page-loader .candlestick:nth-child(5) {
  align-self: flex-end;
  margin-bottom: 5px;
}

.page-loader .candlestick:nth-child(5) .candle-body {
  height: 28px;
}

.page-loader .candlestick:nth-child(5) .wick-bottom {
  height: 12px;
}

/* Candle 6: Green - NAIK strong */
.page-loader .candlestick:nth-child(6) {
  align-self: flex-end;
  margin-bottom: 30px;
  /* Much higher */
}

.page-loader .candlestick:nth-child(6) .candle-body {
  height: 45px;
}

/* Candle 7: GREEN PUMP - tertinggi! */
.page-loader .candlestick:nth-child(7) {
  align-self: flex-end;
  margin-bottom: 70px;
  /* Highest! */
}

.page-loader .candlestick:nth-child(7) .candle-body {
  height: 70px;
}

.page-loader .candlestick:nth-child(7) .wick-top {
  height: 12px;
}

.loader-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

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

.loader-stats .stat-value {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  animation: statPulse 2s ease-in-out infinite;
  font-family: var(--font-numeric);
}

.loader-stats .stat-value.green {
  color: var(--accent-green);
}

.loader-stats .stat-value.red {
  color: var(--accent-red);
}

.loader-stats .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

@keyframes statPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.loader-text {
  margin-bottom: 24px;
}

.text-main {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  animation: textFade 2s ease-in-out infinite;
}

.text-sub {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  animation: textFade 2s ease-in-out infinite 0.3s;
}

@media (max-width: 768px) {
  .loader-text {
    margin-bottom: 16px;
  }

  .text-main {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .text-sub {
    font-size: 11px;
  }
}

@keyframes textFade {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.loader-progress {
  width: 240px;
  height: 3px;
  background: var(--border-titanium);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .loader-progress {
    width: 180px;
    height: 2px;
  }
}

.progress-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-blue) 30%, var(--accent-green) 60%, transparent);
  animation: progressSlide 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progressSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ===== RESPONSIVE - 4K TO MOBILE ===== */

/* 4K (2560px+) */
@media (min-width: 2560px) {
  body.landing .container {
    max-width: 1440px;
    margin: 100px auto 0 auto;
    padding: 0 3rem;
    width: 100%;
  }

  body.landing footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
  }

  .hero {
    padding: 180px 0 120px;
  }

  .hero-stats {
    max-width: 1200px;
    padding: 50px 40px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }

  .pcard {
    min-width: 380px;
    max-width: 380px;
  }
}

/* Large Desktop (1440px - 2559px) */
@media (min-width: 1440px) and (max-width: 2559px) {
  body.landing .container {
    max-width: 1440px;
    margin: 100px auto 0 auto;
    width: 100%;
  }

  body.landing footer .container {
    max-width: 1440px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

/* Tablet & Small Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
  body.landing .container {
    max-width: 1440px;
    margin: 100px auto 0 auto;
    padding: 0 1.25rem;
    width: 100%;
  }

  body.landing footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }
}

/* Tablet Portrait (768px - 1023px) - Desktop navbar still visible */
@media (max-width: 1023px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-badge {
    font-size: 13px;
    padding: 8px 16px;
  }

  .hero-stats {
    padding: 32px 24px;
    gap: 20px;
  }

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

  .sec {
    padding: 3.5rem 0;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Mobile Only (≤768px) - Show hamburger and mobile menu */
@media (max-width: 768px) {

  /* Hide desktop nav links */
  .nav-links {
    display: none !important;
  }

  /* ===== UNIFIED MOBILE NAVBAR (Floating) ===== */
  .nav {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(4px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(150%) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-primary) !important;
    transition: background var(--transition-normal), box-shadow var(--transition-normal) !important;
  }

  .nav-container {
    padding: 0.5rem 1rem !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .nav-logo {
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    /* display: flex already set above */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(168, 197, 218, 0.08);
  }

  .hamburger:active {
    background: rgba(168, 197, 218, 0.12);
  }

  .hamburger span {
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hamburger.active {
    background: rgba(168, 197, 218, 0.12);
  }

  .hamburger.active span {
    background: var(--gold-primary);
  }

  /* Adjust body container for floating navbar */
  body.landing .container {
    margin-top: 90px;
    /* Space for floating navbar */
    padding: 0 1.25rem;
  }

  body.page .page-content {
    margin-top: 90px;
    /* Space for floating navbar */
    padding: 0 1.25rem 2rem;
  }

  .port-wrap {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .pcard {
    min-width: 290px;
    max-width: 290px;
    padding: 24px 20px;
  }

  .plogo {
    width: 56px;
    height: 56px;
    font-size: 32px;
    margin: 0 auto 16px;
  }

  .pname {
    font-size: 18px;
    margin-bottom: 10px;
  }

  #typingText {
    font-size: 14px;
    line-height: 1.6;
  }

  .typing-cursor {
    height: 1em;
    width: 1.5px;
  }

  .palloc {
    font-size: 13px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .palloc-bar {
    margin-bottom: 20px;
  }

  .pinfo-item {
    padding: 14px 12px;
  }

  .pvalue {
    font-size: 20px;
  }

  .pchange {
    font-size: 13px;
    padding: 5px 10px;
  }

  .chart-box {
    height: 500px;
    padding: 50px 10px 5px 8px;
  }

  #candleChart {
    height: 100% !important;
  }
}

/* Mobile Small (767px and below) */
@media (max-width: 767px) {
  body.landing .container {
    max-width: 1440px;
    margin: 100px auto 0 auto;
    padding: 0 1rem;
    width: 100%;
  }

  body.landing footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    padding: 120px 0 50px;
  }

  .hero-badge {
    margin-bottom: 20px;
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero h1 {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 15px;
    margin: 20px auto 32px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 16px;
    margin-bottom: 40px;
  }

  .stat-item:not(:last-child) {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
  }

  .sec {
    padding: 2.5rem 0;
  }

  .title {
    font-size: 1.75rem;
  }

  .sub {
    font-size: 0.875rem;
  }

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

  .stock-wrap {
    padding: 1.5rem 1rem;
  }

  .stock-header {
    text-align: center;
  }

  .stock-ticker {
    font-size: 1.25rem;
  }

  .stock-price {
    font-size: 2.5rem;
  }

  .stock-change {
    font-size: 1.1rem;
  }

  .chart-box {
    padding: 18px 12px 18px 10px;
    height: 450px;
  }

  #candleChart {
    height: 100% !important;
  }

  #candleChart>div:first-child {
    font-size: 40px !important;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .icard {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(168, 197, 218, 0.1);
  }

  .icard:last-child {
    border-bottom: none;
  }

  .icard::after {
    display: none;
  }

  .modal-box {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .modal-box h3 {
    font-size: 24px;
  }

  .modal-box p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .fg input {
    padding: 12px 14px;
    font-size: 16px;
  }

  .btn {
    padding: 14px;
    font-size: 15px;
  }

  .captcha-wrapper {
    overflow: visible;
  }

  #turnstile-widget {
    min-height: 70px;
    overflow: visible;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  #turnstile-widget>div,
  #turnstile-widget iframe {
    margin: 0 auto !important;
  }

  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: center center;
  }


  footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-center {
    order: -1;
  }

  .footer-right {
    justify-content: center;
  }
}

/* ============================================
   PAGES STYLING - 1400PX LIKE DASHBOARD
   ============================================ */
body.page .page-content {
  max-width: 1440px;
  margin: 100px auto 0;
  padding: 0 2rem 2rem 2rem;
  width: 100%;
}

body.page footer {
  margin-top: 3rem;
}

body.page footer .container {
  max-width: 1440px;
  padding: 0 2rem;
}

/* 4K and Ultra-wide */
@media (min-width: 2560px) {
  body.page .page-content {
    max-width: 1440px;
    padding: 0 3rem 3rem 3rem;
  }

  body.page footer .container {
    max-width: 1440px;
    padding: 0 3rem;
  }
}

/* Tablet & Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
  body.page .page-content {
    padding: 0 1.5rem 2rem 1.5rem;
  }

  body.page footer .container {
    padding: 0 1.5rem;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  body.page .page-content {
    margin: 100px auto 0;
    padding: 0 1rem 1rem 1rem;
  }

  body.page footer .container {
    padding: 0 1rem;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  body.page .page-content {
    margin: 100px auto 0;
    padding: 0 0.75rem 0.75rem 0.75rem;
  }

  body.page footer .container {
    padding: 0 0.75rem;
  }
}

/* Mobile Extra Small (480px and below) */
@media (max-width: 480px) {
  #typingText {
    font-size: 13px;
    line-height: 1.8;
    display: block;
    padding: 0 0.5rem;
  }

  .pcard {
    min-width: 270px;
    max-width: 270px;
    padding: 22px 18px;
  }

  .plogo {
    width: 52px;
    height: 52px;
    font-size: 30px;
  }

  .pname {
    font-size: 17px;
  }

  .pvalue {
    font-size: 19px;
  }

  .chart-box {
    height: 450px;
    padding: 45px 8px 12px 6px;
  }

  #candleChart {
    height: 100% !important;
  }

  #candleChart>div:first-child {
    font-size: 32px !important;
  }
}

/* Mobile Ultra Small (479px and below) */
@media (max-width: 479px) {
  .hero {
    padding: 100px 0 30px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
    margin: 16px auto 28px;
  }

  .hero-stats {
    padding: 20px 16px;
  }

  /* Mobile optimization: smaller container with proportional sizing */
  .candlestick-container {
    height: 100px;
    gap: 6px;
    margin-bottom: 20px;
  }

  .candlestick {
    width: 10px;
  }

  .candlestick .wick-top,
  .candlestick .wick-bottom {
    width: 1.5px;
  }

  .candlestick .candle-body {
    border: 2px solid currentColor;
  }

  /* Mobile: Proportional price levels (scaled ~0.6x from desktop) */
  /* Candle 1: Green - Low:17 Close:25 */
  .candlestick:nth-child(1) {
    left: calc(50% - 112px) !important;
    bottom: 17px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(1) .wick-top {
    height: 2px !important;
  }

  .candlestick:nth-child(1) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(1) .candle-body {
    height: 7px !important;
  }

  /* Candle 2: Green - Low:24 Close:33 */
  .candlestick:nth-child(2) {
    left: calc(50% - 75px) !important;
    bottom: 24px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(2) .wick-top {
    height: 2px !important;
  }

  .candlestick:nth-child(2) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(2) .candle-body {
    height: 8px !important;
  }

  /* Candle 3: RED DUMP - Low:18 Close:20 */
  .candlestick:nth-child(3) {
    left: calc(50% - 37px) !important;
    bottom: 18px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(3) .wick-top {
    height: 1px !important;
  }

  .candlestick:nth-child(3) .wick-bottom {
    height: 2px !important;
  }

  .candlestick:nth-child(3) .candle-body {
    height: 13px !important;
  }

  /* Candle 4: Green Recovery - Low:19 Close:31 */
  .candlestick:nth-child(4) {
    left: calc(50% + 0px) !important;
    bottom: 19px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(4) .wick-top {
    height: 2px !important;
  }

  .candlestick:nth-child(4) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(4) .candle-body {
    height: 11px !important;
  }

  /* Candle 5: Red Pullback - Low:27 Close:28 */
  .candlestick:nth-child(5) {
    left: calc(50% + 37px) !important;
    bottom: 27px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(5) .wick-top {
    height: 1px !important;
  }

  .candlestick:nth-child(5) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(5) .candle-body {
    height: 3px !important;
  }

  /* Candle 6: Green Rally - Low:28 Close:43 */
  .candlestick:nth-child(6) {
    left: calc(50% + 75px) !important;
    bottom: 28px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(6) .wick-top {
    height: 2px !important;
  }

  .candlestick:nth-child(6) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(6) .candle-body {
    height: 15px !important;
  }

  /* Candle 7: GREEN PUMP - Low:42 Close:69 */
  .candlestick:nth-child(7) {
    left: calc(50% + 112px) !important;
    bottom: 42px !important;
    width: 14px !important;
  }

  .candlestick:nth-child(7) .wick-top {
    height: 3px !important;
  }

  .candlestick:nth-child(7) .wick-bottom {
    height: 1px !important;
  }

  .candlestick:nth-child(7) .candle-body {
    height: 26px !important;
  }

  .loader-stats {
    gap: 16px;
  }

  .loader-stats .stat-value {
    font-size: 16px;
  }

  .text-main {
    font-size: 16px;
  }

  .text-sub {
    font-size: 12px;
  }

  .loader-progress {
    width: 200px;
  }
}

/* Ultra Small (360px and below) */
@media (max-width: 360px) {
  .chart-box {
    height: 400px;
    padding: 40px 6px 10px 4px;
  }

  #candleChart {
    height: 100% !important;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-description {
    font-size: 13px;
  }

  .cf-turnstile {
    transform: scale(0.77);
  }

  .modal-box {
    padding: 28px 20px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== PRINT ===== */
@media print {

  .nav,
  .hamburger,
  .mobile-menu,
  .legacy-modal {
    display: none !important;
  }
}

/* ========================================
   AUTH/LOGIN MODAL (Global)
   ======================================== */

/* ===== AUTH MODAL (LOGIN) - Use specific class to avoid conflict ===== */
/* ===== AUTH MODAL (LOGIN) - Use specific class to avoid conflict ===== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel));
  backdrop-filter: blur(16px) saturate(180%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-overlay.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.auth-modal-overlay .modal-content {
  background: linear-gradient(135deg,
      var(--bg-panel) 0%,
      var(--bg-overlay) 50%,
      var(--bg-panel) 100%);
  border: 1px solid rgba(168, 197, 218, 0.2);
  border-radius: 16px;
  padding: 24px 20px 20px;
  width: min(420px, 95%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(168, 197, 218, 0.1) inset,
    0 0 40px rgba(168, 197, 218, 0.08);
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.auth-modal-overlay .modal-content-inner {
  width: 100%;
}

.modal-content h2 {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content>p,
.modal-content p {
  color: #64748b;
  font-size: 12px;
  margin: 0 0 20px;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}

.auth-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 10px;
  gap: 6px;
}

.progress-step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 60px;
}

.progress-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-light);
  border: 2px solid rgba(168, 197, 218, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.progress-step.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-primary));
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(168, 197, 218, 0.15),
    0 4px 12px rgba(168, 197, 218, 0.3);
  transform: scale(1.05);
}

.progress-step.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.25);
}

.progress-step-label {
  font-size: 9px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.progress-step-wrapper.active .progress-step-label {
  color: var(--gold-primary);
}

.progress-step-wrapper.completed .progress-step-label {
  color: #10b981;
}

.progress-line-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 18px;
}

.progress-line {
  width: 100%;
  height: 2px;
  background: var(--bg-card-light);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.progress-line.completed::before {
  width: 100%;
}

.progress-line-wrapper[style*="opacity:0"] {
  will-change: opacity, transform;
}

.progress-step-wrapper[style*="opacity:0"] {
  will-change: opacity, transform;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(20, 27, 45, 0.8);
  border: 1px solid rgba(168, 197, 218, 0.2);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) inset;
  font-family: inherit;
}

.form-group input::placeholder {
  color: #475569;
  font-weight: 400;
}

.form-group input:hover {
  border-color: rgba(168, 197, 218, 0.35);
  background: rgba(20, 27, 45, 0.9);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(20, 27, 45, 0.95);
  box-shadow: 0 0 0 3px rgba(168, 197, 218, 0.15), 0 2px 6px rgba(0, 0, 0, 0.15) inset;
}

.auth-modal-overlay .error-msg {
  display: none;
  color: #f87171;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.auth-modal-overlay .auth-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.auth-modal-overlay .btn-link {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-modal-overlay .btn-link:hover {
  color: #93c5fd;
}

.auth-modal-overlay .auth-hint {
  color: #64748b;
  font-size: 13px;
}

/* Titanium Silver Button for Auth Modal */
.auth-modal-overlay .btn-primary {
  background: var(--accent-gradient) !important;
  border: 1px solid var(--border-titanium) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important;
  box-shadow: var(--btn-titanium-shadow) !important;
  position: relative !important;
  overflow: hidden !important;
}

.auth-modal-overlay .btn-primary:hover {
  box-shadow: var(--btn-titanium-hover-shadow) !important;
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 50%, #94A3B8 100%) !important;
}

.auth-modal-overlay .btn-primary:active {
  transform: scale(0.98) !important;
}

.verification-animation {
  text-align: center;
  padding: 56px 0 40px;
}

.verification-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(168, 197, 218, 0.08);
  border: 3px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  box-shadow:
    0 0 0 8px rgba(168, 197, 218, 0.05),
    0 8px 24px rgba(168, 197, 218, 0.15);
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 8px rgba(168, 197, 218, 0.05),
      0 8px 24px rgba(168, 197, 218, 0.15);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 0 12px rgba(168, 197, 218, 0.08),
      0 12px 32px rgba(168, 197, 218, 0.25);
  }
}

.verification-circle.verified {
  animation: successPop 0.5s ease;
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  box-shadow:
    0 0 0 8px rgba(16, 185, 129, 0.05),
    0 8px 24px rgba(16, 185, 129, 0.2);
}

@keyframes successPop {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.verification-circle.verified .checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.verification-circle.verified .checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Animated Checkmark - Auth Modal */
.checkmark {
  color: #10b981;
  display: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Checkmark visible state */
.checkmark.show {
  display: block !important;
  opacity: 1;
  transform: scale(1);
}

/* Animate circle stroke */
.checkmark circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke: #10b981;
  fill: none;
}

.checkmark.show circle {
  animation: draw-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Animate check path */
.checkmark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.checkmark.show path {
  animation: draw-check 0.3s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.checkmark-circle {
  stroke: #10b981;
  stroke-width: 2;
}

.checkmark-check {
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
}

.spinner,
.spinner-small {
  border: 3px solid rgba(168, 197, 218, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner {
  width: 32px;
  height: 32px;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

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

.verification-text {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  text-align: center;
  margin: 0;
}

.verification-circle.failed {
  animation: circleVibrate 0.4s ease-in-out;
}

/* Simple vibrate for failed verification circle */
@keyframes circleVibrate {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

#turnstile-widget {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  min-height: 65px;
  width: 100%;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 8px;
  }

  .modal-content {
    padding: 20px 16px 16px;
    width: calc(100% - 16px);
    margin: 0 8px;
    border-radius: 14px;
  }

  .auth-progress {
    padding: 0 6px;
    margin-bottom: 20px;
    gap: 4px;
  }

  .progress-step-wrapper {
    min-width: 55px;
  }

  .progress-step {
    width: 32px;
    height: 32px;
    font-size: 13px;
    margin-bottom: 5px;
  }

  .progress-step-label {
    font-size: 8px;
  }

  .progress-line {
    height: 2px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input {
    padding: 9px 12px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .modal-content {
    padding: 18px 14px 14px;
    border-radius: 12px;
  }

  .modal-content h2 {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .modal-content>p,
  .modal-content p {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .auth-progress {
    padding: 0 2px;
    margin-bottom: 18px;
    gap: 3px;
  }

  .progress-step-wrapper {
    min-width: 48px;
  }

  .progress-step {
    width: 36px;
    height: 36px;
    font-size: 13px;
    margin-bottom: 5px;
  }

  .progress-step.active {
    transform: scale(1.05);
  }

  .progress-step-label {
    font-size: 8px;
    letter-spacing: 0.3px;
  }

  .progress-line {
    height: 2px;
  }
}

/* ===== FORM ELEMENTS ===== */
.fg {
  margin-bottom: 20px;
}

.fg label {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: left;
}

.fg input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(20, 27, 45, 0.6);
  border: 1.5px solid var(--border-titanium);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
  font-family: inherit;
}

.fg input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.fg input:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(20, 27, 45, 0.75);
}

.fg input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(20, 27, 45, 0.85);
  box-shadow: 0 0 0 4px rgba(168, 197, 218, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

.captcha-wrapper {
  margin: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65px;
}

.fa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  opacity: 1;
}

.btn.bp {
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(168, 197, 218, 0.3);
}

.btn.bp:hover:not(:disabled) {
  background: rgba(168, 197, 218, 0.2);
  border-color: rgba(168, 197, 218, 0.5);
  transform: translateY(-1px);
}

.btn.bp:active:not(:disabled) {
  transform: translateY(0);
}

.btn.bp:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn.bs {
  background: rgba(20, 27, 45, 0.5);
  color: #cbd5e1;
  border: 1px solid var(--border-primary);
}

.btn.bs:hover:not(:disabled) {
  background: rgba(20, 27, 45, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================
   LANGUAGE SWITCHER (Global)
   ======================================== */

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher-wrapper {
  position: relative;
}

.lang-switcher-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switcher-btn:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.lang-switcher-btn svg {
  flex-shrink: 0;
}

.lang-code {
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: linear-gradient(135deg, var(--bg-modal) 0%, var(--bg-modal) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 197, 218, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 197, 218, 0.1);
  min-width: 220px;
  max-height: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Firefox */
}

.lang-dropdown::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-option:active {
  transform: scale(0.98);
  background: rgba(168, 197, 218, 0.2);
}

.lang-option:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.lang-option.active {
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
}

.lang-flag {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.lang-name {
  flex: 1;
  text-align: left;
}

.lang-check {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.lang-option.active .lang-check {
  opacity: 1;
  color: var(--gold-primary);
}


/* ========================================
   NOTIFICATION BELL (Global)
   ======================================== */

/* ===== NOTIFICATION BELL ===== */
.notification-wrapper {
  position: relative;
}

.notification-bell {
  position: relative;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell:hover {
  background: rgba(168, 197, 218, 0.1);
  color: var(--gold-primary);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.notification-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(168, 197, 218, 0.1);
  z-index: 10000;
  overflow: hidden;
}

.notification-panel.show {
  display: flex;
  flex-direction: column;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
}

.notification-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}

.notification-clear {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.notification-clear:hover {
  background: rgba(168, 197, 218, 0.1);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

.notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(168, 197, 218, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.notification-item:hover {
  background: rgba(168, 197, 218, 0.05);
}

.notification-item.unread {
  background: rgba(168, 197, 218, 0.03);
  border-left: 3px solid var(--gold-primary);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.notification-icon.info {
  background: rgba(168, 197, 218, 0.15);
  color: var(--gold-primary);
}

.notification-icon.warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.notification-content {
  flex: 1;
}

.notification-message {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: #64748b;
}


/* ========================================
   USER MENU (Global)
   ======================================== */

/* ===== USER MENU ===== */
.user-menu {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-card-light);
  border: 1px solid rgba(168, 197, 218, 0.2);
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-avatar-btn svg {
  color: #94a3b8;
  transition: color 0.2s;
}

.user-avatar-btn:hover {
  background: var(--bg-card);
  border-color: rgba(168, 197, 218, 0.3);
  transform: translateY(-1px);
}

.user-avatar-btn:hover svg {
  color: var(--gold-primary);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 197, 218, 0.3);
}

.user-menu-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.user-menu-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}

.user-menu-email {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.2;
}

/* OLD STYLES REMOVED - Now using user-menu.css sidebar panel */

/* ===== UNIFIED TABS COMPONENT - ALL PAGES ===== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-tertiary);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  flex-wrap: wrap;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.tab.active {
  background: var(--bg-hover);
  color: var(--accent-blue);
  border: 1px solid var(--border-accent);
}

.tab:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

/* ===== UNIFIED ADMIN CARD / PANEL COMPONENT ===== */
.admin-card,
.content-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.admin-card h2,
.content-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

