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

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — Light Theme (Default)
═══════════════════════════════════════════════════ */
:root {
  /* Purple Palette */
  --purple-50:  #f5f0ff;
  --purple-100: #ede5ff;
  --purple-200: #ddd0ff;
  --purple-300: #c4a8ff;
  --purple-400: #a875ff;
  --purple-500: #8b47fa;
  --purple-600: #7a33e8;
  --purple-700: #6320cc;
  --purple-800: #4f19a3;
  --purple-900: #3b1175;

  /* Trading Accents */
  --green:       #10b981;
  --green-light: #34d399;
  --green-dark:  #065f46;
  --red:         #ef4444;
  --red-light:   #f87171;
  --red-dark:    #b91c1c;
  --gold:        #f59e0b;
  --gold-light:  #fcd34d;
  --gold-dark:   #b45309;

  /* Backgrounds — Static solid base */
  --bg:          #ece8ff;
  --bg-deep:     #e2dcff;
  --bg-card:     rgba(255,255,255,0.60);
  --bg-glass:    rgba(255,255,255,0.48);
  --bg-glass-sm: rgba(255,255,255,0.32);
  --bg-dark:     #1a0f33;

  /* Solid Dashboard Colors */
  --dash-bg:      #f8f6fc;
  --dash-surface: #ffffff;
  --dash-border:  #ece5f9;
  --dash-hover:   #f2ecfa;

  /* Borders */
  --border:        rgba(255,255,255,0.70);
  --border-subtle: rgba(255,255,255,0.55);
  --border-purple: rgba(139,71,250,0.22);

  /* Text */
  --text:        #1e1040;
  --text-2:      #4b3c6e;
  --text-muted:  #7c6ea4;
  --text-white:  #ffffff;

  /* Gradients */
  --grad-main:   linear-gradient(135deg, #8b47fa 0%, #5b9af5 100%);
  --grad-purple: linear-gradient(135deg, #7a33e8 0%, #a875ff 100%);
  --grad-green:  linear-gradient(135deg, #065f46 0%, #10b981 100%);
  --grad-red:    linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  --grad-gold:   linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  --grad-card:   linear-gradient(145deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.38) 100%);
  --grad-hero:   linear-gradient(135deg, #8b47fa18 0%, #5b9af518 50%, #f59e0b0d 100%);

  /* Shadows */
  --shadow-sm:     0 2px 12px rgba(139,71,250,0.08);
  --shadow-md:     0 4px 24px rgba(139,71,250,0.13);
  --shadow-lg:     0 8px 40px rgba(139,71,250,0.18);
  --shadow-xl:     0 16px 60px rgba(139,71,250,0.22);
  --shadow-purple: 0 8px 32px rgba(139,71,250,0.35);
  --shadow-green:  0 8px 32px rgba(16,185,129,0.30);
  --shadow-red:    0 8px 32px rgba(239,68,68,0.30);
  --shadow-gold:   0 8px 32px rgba(245,158,11,0.30);

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Transitions — smooth cubic-bezier */
  --ease:        all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fast:   all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar */
  --navbar-bg:     rgba(245,242,255, 0.78);
  --navbar-border: rgba(255,255,255, 0.75);
  --navbar-shadow: 0 4px 32px rgba(139,71,250, 0.10), 0 1px 0 rgba(255,255,255,0.8) inset;

  /* Glass specific */
  --glass-blur:      20px;
  --glass-bg:        rgba(255,255,255, 0.52);
  --glass-border:    rgba(255,255,255, 0.70);
  --glass-highlight: rgba(255,255,255, 0.55);

  /* Footer */
  --footer-bg:     linear-gradient(180deg, #1a0f33 0%, #0d0820 100%);
  --footer-text:   rgba(255,255,255,0.5);
  --footer-border: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:          #05030f;
  --bg-deep:     #03010a;
  --bg-card:     rgba(15, 8, 35, 0.85);
  --bg-glass:    rgba(15, 8, 35, 0.65);
  --bg-glass-sm: rgba(15, 8, 35, 0.45);
  --bg-dark:     #010005;

  --dash-bg:      #0e0920;
  --dash-surface: #170d30;
  --dash-border:  #2e1a5e;
  --dash-hover:   #211244;

  --border:        rgba(139, 71, 250, 0.25);
  --border-subtle: rgba(139, 71, 250, 0.12);
  --border-purple: rgba(139, 71, 250, 0.35);

  --text:        #ffffff;
  --text-2:      #e0d8f5;
  --text-muted:  #a195d1;

  --grad-card:   linear-gradient(145deg, rgba(20,10,45,0.9) 0%, rgba(10,5,25,0.7) 100%);
  --grad-hero:   linear-gradient(135deg, rgba(139,71,250,0.12) 0%, rgba(139,71,250,0.02) 50%, rgba(16,185,129,0.02) 100%);

  --navbar-bg:     rgba(5, 3, 15, 0.85);
  --navbar-border: rgba(139, 71, 250, 0.25);
  --navbar-shadow: 0 4px 32px rgba(0,0,0, 0.6), 0 1px 0 rgba(139,71,250,0.2) inset;

  --glass-bg:        rgba(15, 8, 35, 0.7);
  --glass-border:    rgba(139, 71, 250, 0.25);
  --glass-highlight: rgba(139, 71, 250, 0.15);
}
[data-theme="dark"] .mobile-menu {
  background: rgba(14, 9, 32, 0.98);
}

/* ═══════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4, h5, h6, .text-hero, .text-xl, .badge, .grad-text {
  font-family: 'Outfit', sans-serif;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: 'Inter', sans-serif; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: 'Inter', sans-serif; }

/* ═══════════════════════════════════════════════════
   STATIC BACKGROUND — Clean Solid Gradient
═══════════════════════════════════════════════════ */
.blob-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Static 4-stop gradient — no animation, clean & fast */
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(196,168,255,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(91,154,245,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(239,68,68,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 20% 85%, rgba(139,71,250,0.20) 0%, transparent 50%),
    linear-gradient(160deg, #ece8ff 0%, #e4deff 30%, #eef2ff 60%, #e8e4ff 100%);
  transition: background 0.5s ease;
}
[data-theme="dark"] .blob-bg {
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(139,71,250,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(91,154,245,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(168,117,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 20% 85%, rgba(122,51,232,0.15) 0%, transparent 50%),
    linear-gradient(160deg, #0e0920 0%, #160d2e 35%, #110c28 65%, #0e0920 100%);
}

/* Blob divs — kept in DOM but rendered as decorative static spots */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6 { display: none; }

/* Blob float keyframes kept for newsletter and other uses */
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(15px, -20px); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-15px, 20px); }
}

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.container     { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-sm  { max-width: 900px;  margin: 0 auto; padding: 0 2rem; }
.section       { padding: 100px 0; }
.section-sm    { padding: 64px 0; }

/* ═══════════════════════════════════════════════════
   GLASS COMPONENTS — macOS Big Sur Style
═══════════════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md),
              inset 0 1px 0 var(--glass-highlight),
              inset 0 -1px 0 rgba(139,71,250,0.06);
  position: relative;
  transition: var(--ease);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}
.glass:hover {
  box-shadow: var(--shadow-lg),
              inset 0 1px 0 var(--glass-highlight);
  border-color: rgba(255,255,255,0.80);
}

.glass-sm {
  background: var(--bg-glass-sm);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 var(--glass-highlight);
  transition: var(--ease);
}

.glass-purple {
  background: linear-gradient(145deg, rgba(139,71,250,0.13) 0%, rgba(91,154,245,0.07) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(139,71,250,0.28);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(139,71,250,0.10),
              inset 0 1px 0 rgba(255,255,255,0.18);
  transition: var(--ease);
}

/* ═══════════════════════════════════════════════════
   CARD — Enhanced with Glow + Bounce
═══════════════════════════════════════════════════ */
.card {
  background: var(--grad-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(139,71,250, 0.08),
              inset 0 1px 0 var(--glass-highlight),
              inset 0 -1px 0 rgba(139,71,250, 0.05);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.20) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.28s ease;
}
.card:hover {
  transform: translateY(-7px) scale(1.012);
  box-shadow: 0 18px 48px rgba(139,71,250, 0.16),
              0 0 0 1.5px rgba(139,71,250, 0.22),
              inset 0 1px 0 rgba(255,255,255, 0.75);
  border-color: rgba(255,255,255, 0.85);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 18px 48px rgba(0,0,0, 0.45),
              0 0 0 1.5px rgba(139,71,250, 0.35),
              inset 0 1px 0 rgba(139,71,250, 0.12);
  border-color: rgba(139,71,250, 0.35);
}
.card-no-hover:hover {
  transform: none;
  box-shadow: 0 4px 24px rgba(139,71,250, 0.08),
              inset 0 1px 0 var(--glass-highlight);
  border-color: var(--glass-border);
}

/* ═══════════════════════════════════════════════════
   NAVBAR — Floating Pill
═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1100px;
  width: calc(100% - 48px);
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--navbar-border);
  border-radius: var(--r-full);
  box-shadow: var(--navbar-shadow),
              inset 0 1px 0 var(--glass-highlight);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.38s ease,
              box-shadow 0.28s ease;
}
.navbar.hidden {
  transform: translateX(-50%) translateY(-130%);
  opacity: 0;
  pointer-events: none;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.75rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon-wrap {
  width: 40px; height: 40px;
  background: var(--grad-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-purple);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.navbar-links a {
  padding: 7px 13px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-2);
  transition: var(--ease);
  white-space: nowrap;
}
.navbar-links a:hover {
  background: rgba(139,71,250,0.09);
  color: var(--purple-600);
}
.navbar-links a.active {
  background: rgba(139,71,250,0.15);
  color: var(--purple-600);
  font-weight: 700;
}
[data-theme="dark"] .navbar-links a:hover {
  background: rgba(139,71,250,0.15);
  color: var(--purple-300);
}
[data-theme="dark"] .navbar-links a.active {
  background: rgba(139,71,250,0.25);
  color: var(--purple-300);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--ease);
}
.mobile-menu-btn:hover { background: rgba(139,71,250,0.08); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 25, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 99998;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(250, 248, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--navbar-border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(139,71,250,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  margin-bottom: 1rem;
  transition: var(--ease);
}
.mobile-menu-close:hover { background: rgba(139,71,250,0.2); }
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-2);
  transition: var(--ease);
}
.mobile-menu-link:hover { background: rgba(139,71,250,0.08); color: var(--purple-600); }
.mobile-menu-link.active { background: rgba(139,71,250,0.15); color: var(--purple-600); font-weight: 700; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(139,71,250,0.08);
  border: 1px solid rgba(139,71,250,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--ease-bounce);
  color: var(--text);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(139,71,250,0.18);
  transform: scale(1.1) rotate(15deg);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD SPECIFIC RESPONSIVE CSS
═══════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  height: 100vh;
  background: var(--dash-bg);
  color: var(--text);
  overflow: hidden;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--dash-surface);
  border-right: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.4s ease;
  z-index: 1000;
}

.dashboard-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}
.dashboard-nav-btn:hover {
  background: var(--bg-glass-sm);
  color: var(--text);
}
.dashboard-nav-btn.active {
  background: rgba(139, 71, 250, 0.1);
  color: var(--purple-500);
  font-weight: 800;
  border: 1px solid rgba(139, 71, 250, 0.2);
}
[data-theme='dark'] .dashboard-nav-btn.active {
  background: rgba(139, 71, 250, 0.2);
  color: var(--purple-300);
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
}

.dashboard-header {
  height: 70px;
  background: var(--dash-surface);
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.dashboard-card {
  background: var(--dash-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--dash-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.dashboard-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  margin-right: 1rem;
}

.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dashboard-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .dashboard-header {
    padding: 0 1rem;
  }
  .dashboard-content {
    padding: 1rem;
  }
  .dashboard-menu-btn {
    display: block;
  }
  .dashboard-overlay {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.22s ease,
              border-color 0.22s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s ease;
  border-radius: inherit;
}
.btn:hover::after { background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.97) !important; transition-duration: 0.1s !important; }

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 18px rgba(139,71,250,0.30);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(139,71,250,0.45);
}

.btn-glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.72);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(139,71,250,0.08),
              inset 0 1px 0 rgba(255,255,255,0.80);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.90);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,71,250,0.13),
              inset 0 1px 0 rgba(255,255,255,0.90);
}
[data-theme="dark"] .btn-glass {
  background: rgba(32,18,65,0.55);
  border-color: rgba(139,71,250,0.22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25),
              inset 0 1px 0 rgba(139,71,250,0.12);
}
[data-theme="dark"] .btn-glass:hover {
  background: rgba(42,24,80,0.72);
  border-color: rgba(139,71,250,0.38);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(139,71,250,0.18);
}

.btn-glass-purple {
  background: rgba(139,71,250,0.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1.5px solid rgba(139,71,250,0.30);
  color: var(--purple-600);
  box-shadow: 0 4px 16px rgba(139,71,250,0.12),
              inset 0 1px 0 rgba(255,255,255,0.20);
}
.btn-glass-purple:hover {
  background: rgba(139,71,250,0.20);
  border-color: rgba(139,71,250,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,71,250,0.28);
}
[data-theme="dark"] .btn-glass-purple { color: var(--purple-300); }

.btn-green { background: var(--grad-green); color: white; box-shadow: 0 4px 18px rgba(16,185,129,0.30); }
.btn-green:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(16,185,129,0.45); }

.btn-red { background: var(--grad-red); color: white; box-shadow: 0 4px 18px rgba(239,68,68,0.30); }
.btn-red:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(239,68,68,0.45); }

.btn-outline {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--purple-400);
  color: var(--purple-600);
}
.btn-outline:hover {
  background: rgba(139,71,250,0.10);
  border-color: var(--purple-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,71,250,0.18);
}
[data-theme="dark"] .btn-outline {
  background: rgba(139,71,250,0.08);
  color: var(--purple-300);
}
[data-theme="dark"] .btn-outline:hover { background: rgba(139,71,250,0.18); }

.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 40px; font-size: 1.08rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ═══════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-purple { background: rgba(139,71,250,0.12); color: var(--purple-600); border: 1px solid rgba(139,71,250,0.3); }
.badge-green  { background: rgba(16,185,129,0.10); color: var(--green-dark); border: 1px solid rgba(16,185,129,0.3); }
.badge-red    { background: rgba(239,68,68,0.10);  color: #b91c1c;           border: 1px solid rgba(239,68,68,0.3); }
.badge-gold   { background: rgba(245,158,11,0.12); color: #b45309;           border: 1px solid rgba(245,158,11,0.3); }
[data-theme="dark"] .badge-purple { color: var(--purple-300); }
[data-theme="dark"] .badge-green  { color: var(--green-light); }
[data-theme="dark"] .badge-red    { color: var(--red-light); }
[data-theme="dark"] .badge-gold   { color: var(--gold-light); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(139,71,250,0.08);
  color: var(--purple-600);
}
.tag-green { background: rgba(16,185,129,0.09); color: var(--green-dark); }
.tag-red   { background: rgba(239,68,68,0.09);  color: #b91c1c; }
.tag-gold  { background: rgba(245,158,11,0.10); color: #92400e; }
[data-theme="dark"] .tag       { color: var(--purple-300); }
[data-theme="dark"] .tag-green { color: var(--green-light); }
[data-theme="dark"] .tag-red   { color: var(--red-light); }
[data-theme="dark"] .tag-gold  { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */
.text-hero { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.text-xl   { font-size: clamp(2rem, 4vw, 3.5rem);   font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.text-lg   { font-size: clamp(1.5rem, 3vw, 2.2rem);  font-weight: 700; line-height: 1.2; }
.text-md   { font-size: 1.25rem; font-weight: 600; }
.text-body { font-family: 'Inter', sans-serif; font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.text-sm   { font-family: 'Inter', sans-serif; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .grad-text-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.grad-text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .grad-text-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Tabular numbers for trading data */
.num-tabular { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════
   ICON BOXES — With Glow Effects
═══════════════════════════════════════════════════ */
.icon-box {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--ease-bounce);
}
.icon-box-sm { width: 42px; height: 42px; border-radius: var(--r-sm); }
.icon-box-lg { width: 72px; height: 72px; border-radius: 20px; }

.icon-box-purple {
  background: radial-gradient(circle, rgba(139,71,250,0.18), rgba(139,71,250,0.06));
  border: 1px solid rgba(139,71,250,0.2);
  box-shadow: 0 0 24px rgba(139,71,250,0.15);
}
.icon-box-green {
  background: radial-gradient(circle, rgba(16,185,129,0.18), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.2);
  box-shadow: 0 0 24px rgba(16,185,129,0.15);
}
.icon-box-red {
  background: radial-gradient(circle, rgba(239,68,68,0.18), rgba(239,68,68,0.06));
  border: 1px solid rgba(239,68,68,0.2);
  box-shadow: 0 0 24px rgba(239,68,68,0.15);
}
.icon-box-gold {
  background: radial-gradient(circle, rgba(245,158,11,0.18), rgba(245,158,11,0.06));
  border: 1px solid rgba(245,158,11,0.2);
  box-shadow: 0 0 24px rgba(245,158,11,0.15);
}
.icon-box-grad {
  background: var(--grad-main);
  box-shadow: var(--shadow-purple);
}

/* Hover glow intensify */
.card:hover .icon-box-purple { box-shadow: 0 0 36px rgba(139,71,250,0.3); transform: scale(1.08) rotate(3deg); }
.card:hover .icon-box-green  { box-shadow: 0 0 36px rgba(16,185,129,0.3); transform: scale(1.08) rotate(3deg); }
.card:hover .icon-box-red    { box-shadow: 0 0 36px rgba(239,68,68,0.3); transform: scale(1.08) rotate(3deg); }
.card:hover .icon-box-gold   { box-shadow: 0 0 36px rgba(245,158,11,0.3); transform: scale(1.08) rotate(3deg); }

/* ═══════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════ */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header .text-body { margin-top: 1rem; }

/* ═══════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════ */
.ticker-wrap {
  background: linear-gradient(90deg, #1a0f33 0%, #2d1b69 50%, #1a0f33 100%);
  padding: 11px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
/* Fade edges */
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, #1a0f33, transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(270deg, #1a0f33, transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 35s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.1);
  font-variant-numeric: tabular-nums;
}
.ticker-sym { color: rgba(255,255,255,0.45); font-size: 0.75rem; font-weight: 500; }
.tick-up   { color: #34d399; }
.tick-down { color: #f87171; }
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   DATA TABLE
═══════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border-radius: var(--r-md);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th {
  background: rgba(139,71,250,0.05);
  font-weight: 800;
  color: var(--text-2);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
[data-theme="dark"] .data-table th {
  background: rgba(139,71,250,0.1);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-2-aside { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.grid-aside-right { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.grid-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* ═══════════════════════════════════════════════════
   FORMS — Glass Inputs
═══════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.form-input, .form-select, .form-textarea {
  padding: 13px 18px;
  border: 1.5px solid rgba(139,71,250,0.18);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: var(--ease);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 4px rgba(139,71,250,0.12);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  background: rgba(30,18,60,0.8);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ═══════════════════════════════════════════════════
   PROGRESS BAR — Animated Fill with Glow
═══════════════════════════════════════════════════ */
.progress {
  height: 8px;
  background: rgba(139,71,250,0.12);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: var(--r-full);
  transition: width 1s ease;
  box-shadow: 0 0 12px rgba(139,71,250,0.4);
}
.progress-fill-green {
  background: var(--grad-green);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

/* ═══════════════════════════════════════════════════
   TABS — Glass Pills
═══════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(139,71,250,0.07);
  padding: 5px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(139,71,250,0.12);
  width: fit-content;
  backdrop-filter: blur(8px);
}
.tab-btn {
  padding: 9px 22px;
  border-radius: calc(var(--r-lg) - 5px);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--ease-bounce);
  color: var(--text-muted);
  border: none;
  background: transparent;
}
.tab-btn.active {
  background: var(--glass-bg);
  color: var(--purple-600);
  box-shadow: 0 2px 14px rgba(139,71,250,0.15);
}
[data-theme="dark"] .tab-btn.active { color: var(--purple-300); }

/* ═══════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(139,71,250,0.1);
}
.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(139,71,250,0.06);
  font-size: 0.92rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(139,71,250,0.025); }
.price-up   { color: var(--green);  font-weight: 700; font-variant-numeric: tabular-nums; }
.price-down { color: var(--red);    font-weight: 700; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════
   SIDEBAR (Dashboard)
═══════════════════════════════════════════════════ */
.dash-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 268px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a0f33 0%, #2d1b69 100%);
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  z-index: 100;
}
.sidebar-logo-wrap { padding: 1.5rem 0.75rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  margin-bottom: 3px;
}
.sidebar-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-item.active { background: rgba(139,71,250,0.25); color: white; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(139,71,250,0.4); }
.dash-main { margin-left: 268px; flex: 1; padding: 2.5rem 3rem; min-height: 100vh; background: var(--bg); }

/* ═══════════════════════════════════════════════════
   PAYMENT CARD
═══════════════════════════════════════════════════ */
.payment-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
[data-theme="dark"] .payment-card {
  background: linear-gradient(145deg, rgba(30,18,60,0.75) 0%, rgba(20,12,45,0.5) 100%);
  border-color: rgba(139,71,250,0.2);
}
.payment-header {
  background: var(--grad-main);
  padding: 2rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.payment-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.payment-body { padding: 2.5rem; }

/* ═══════════════════════════════════════════════════
   COUPON INPUT
═══════════════════════════════════════════════════ */
.coupon-wrap {
  display: flex;
  gap: 0.75rem;
  background: rgba(139,71,250,0.05);
  border: 1.5px solid rgba(139,71,250,0.2);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 18px;
  align-items: center;
}
.coupon-input {
  flex: 1;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}
.coupon-input::placeholder { text-transform: none; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.coupon-input:focus { outline: none; }
.coupon-applied { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
.coupon-applied .coupon-input { color: var(--green-dark); }

/* ═══════════════════════════════════════════════════
   PRICE DISPLAY
═══════════════════════════════════════════════════ */
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 1.1rem; }
.price-final { font-size: 2.2rem; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-save { background: rgba(16,185,129,0.12); color: var(--green-dark); border: 1px solid rgba(16,185,129,0.25); border-radius: var(--r-full); padding: 3px 12px; font-size: 0.82rem; font-weight: 700; }

/* ═══════════════════════════════════════════════════
   AFFILIATE CARD
═══════════════════════════════════════════════════ */
.affiliate-stat { padding: 1.75rem; text-align: center; }
.affiliate-num { font-size: 2.5rem; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.25rem; }
.affiliate-label { font-size: 0.85rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }

.ref-link-box {
  display: flex;
  align-items: center;
  background: rgba(139,71,250,0.06);
  border: 1.5px solid rgba(139,71,250,0.2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ref-link-text {
  flex: 1;
  padding: 13px 18px;
  font-size: 0.9rem;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════ */
.newsletter-wrap {
  background: var(--grad-main);
  border-radius: var(--r-xl);
  padding: 4.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::before {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat1 20s ease-in-out infinite;
}
.newsletter-wrap::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat2 18s ease-in-out infinite;
}
.newsletter-form {
  display: flex;
  gap: 0.875rem;
  max-width: 520px;
  margin: 2rem auto 0;
  position: relative;
  z-index: 1;
}
.newsletter-input {
  flex: 1;
  padding: 14px 22px;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter-input:focus { outline: none; background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.55); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  color: white;
  padding: 5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer p { color: var(--footer-text); font-size: 0.92rem; line-height: 1.75; font-family: 'Inter', sans-serif; margin-top: 1rem; }
.footer h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; color: white; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer ul a { color: var(--footer-text); font-size: 0.92rem; transition: var(--ease); }
.footer ul a:hover { color: var(--purple-300); }
.footer-bottom { border-top: 1px solid var(--footer-border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.social-row { display: flex; gap: 0.75rem; }
.social-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; transition: var(--ease-bounce); }

/* Auth pages wrapper */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; overflow: hidden; }

/* Blog styles */
.blog-content h3 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 2rem 0 1rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; color: var(--text-2); }
.social-icon:hover { background: rgba(139,71,250,0.4); transform: scale(1.1); }

/* ═══════════════════════════════════════════════════
   HERO IMAGE OVERLAY
═══════════════════════════════════════════════════ */
.hero-image-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-image-wrap img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,71,250,0.15) 0%, rgba(91,154,245,0.08) 50%, transparent 100%);
  pointer-events: none;
}
.card-no-hover { pointer-events: none; }

.offer-box {
  display: inline-flex;
  flex-direction: column;
  padding: 1.5rem 3rem;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--purple-400);
}
@media (max-width: 768px) {
  .offer-box {
    padding: 1.5rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════
   MISC ANIMATIONS
═══════════════════════════════════════════════════ */
.divider { height: 1px; background: rgba(139,71,250,0.1); }

.float-anim { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%  { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100%{ box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Glow pulse for icon boxes on scroll */
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,71,250,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-500); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .grid-3, .grid-2, .grid-4, .grid-2-aside, .grid-aside-right, .grid-sidebar { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }

  /* Navbar responsive */
  .mobile-nav-wrapper { padding: 12px !important; }
  .navbar {
    border-radius: var(--r-lg);
  }
  .navbar-inner { height: 56px; padding: 0 1rem; }
  .navbar-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .dash-main { margin-left: 0; padding: 1.5rem; }
  .sidebar { display: none; }
  .newsletter-wrap { padding: 2.5rem 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .navbar-inner { padding: 0 1rem; }
  .text-hero { font-size: clamp(2rem, 8vw, 3rem); }
  .text-xl { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}

@media (max-width: 768px) {
  .hide-on-mobile { display: none !important; }
  .dashboard-card { padding: 1.25rem !important; gap: 1rem !important; }
  .dashboard-grid-1 { grid-template-columns: 1fr !important; }
}

.page-top-pad {
  padding-top: 190px !important;
}
@media (max-width: 768px) {
  .page-top-pad {
    padding-top: 280px !important;
  }
}

/* ═══════════════════════════════════════════════════
   FORM VALIDATION
═══════════════════════════════════════════════════ */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red) !important;
  background: rgba(239,68,68,0.04);
}
.form-error {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ═══════════════════════════════════════════════════
   AFFILIATE / REFERRAL
═══════════════════════════════════════════════════ */
.ref-link-box {
  display: flex;
  align-items: stretch;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(139,71,250,0.2);
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}
.ref-link-text {
  flex: 1;
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--text-2);
  font-family: 'Inter', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.affiliate-stat {
  padding: 2rem;
  text-align: center;
}
.affiliate-num {
  font-size: 2.5rem;
  font-weight: 900;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.375rem;
}
.affiliate-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   EXTRA TAGS
═══════════════════════════════════════════════════ */
.tag-purple {
  background: var(--purple-100);
  color: var(--purple-700);
  border: 1px solid rgba(139,71,250,0.2);
}

/* ═══════════════════════════════════════════════════
   INSTAGRAM REEL EMBED
═══════════════════════════════════════════════════ */
.ig-reel-wrap {
  position: relative;
  padding-bottom: 177.77%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #000;
}
.ig-reel-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════
   ICON BOX SIZES
═══════════════════════════════════════════════════ */
.icon-box-sm {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}

/* ═══════════════════════════════════════════════════
   TOGGLE SWITCH (Admin Web Controls)
═══════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  transition: .4s;
  border-radius: 24px;
}
.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}
.toggle-switch input:checked + .slider {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: white;
}

.auth-input {
  width: 100%;
  padding-left: 42px;
  padding-right: 16px;
  height: 52px;
  background: var(--bg-glass-sm);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}
.auth-input:focus {
  background: var(--bg-card);
  border-color: var(--purple-400);
  box-shadow: 0 0 15px rgba(139, 71, 250, 0.2);
}
.auth-input::placeholder {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   BENTO BOX DASHBOARD LAYOUT
═══════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  grid-auto-rows: minmax(150px, auto);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 71, 250, 0.4);
  box-shadow: 0 10px 40px rgba(139, 71, 250, 0.15), inset 0 0 0 1px rgba(139, 71, 250, 0.1);
}

.bento-hero { grid-column: span 3; grid-row: span 2; }
.bento-stat { grid-column: span 1; grid-row: span 1; display: flex; flex-direction: column; justify-content: space-between;}
.bento-list { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-hero { grid-column: span 2; }
  .bento-stat { grid-column: span 1; }
  .bento-list { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero, .bento-stat, .bento-list { grid-column: span 1; }
}

/* Gradient Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--green), #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}


