/* ================================================================
   ForthDex — GLOBAL STYLESHEET
   Crypto Investment & Digital Asset Management
   Light theme · Navy #041E42 + Cyan #00D2FF
   Mobile-first · Works from 320px upward
   ================================================================ */


/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Brand */
  --navy:        #041E42;
  --navy-deep:   #001A3F;
  --navy-soft:   #0A2B5C;
  --cyan:        #00D2FF;
  --cyan-bright: #00B5F1;
  --cyan-dark:   #0095CC;

  /* Surfaces */
  --bg:          #FFFFFF;
  --bg-2:        #F5F8FC;
  --bg-3:        #EEF3F9;
  --panel:       #FFFFFF;
  --panel-2:     #F9FBFE;
  --paper:       #FFFFFF;
  --paper-2:     #FAFBFC;
  --paper-3:     #F4F6F8;

  /* Borders */
  --border:      #E1E8F0;
  --border-strong: #C7D3E2;
  --border-navy: rgba(4, 30, 66, 0.12);
  --rule:        #E4E9EF;
  --rule-2:      #D2DAE3;

  /* Text */
  --text:        #041E42;
  --text-dim:    #5A6B85;
  --text-dimmer: #8A97AC;
  --ink:         #041E42;
  --ink-2:       #4A5B77;
  --ink-3:       #7A8A9F;
  --ink-4:       #A8B3C2;
  --text-on-navy:#F0F5FB;

  /* Accents */
  --accent:      #00D2FF;
  --accent-2:    #041E42;
  --accent-3:    #00B5F1;
  --accent-glow: rgba(0, 210, 255, 0.35);
  --accent-soft: rgba(0, 210, 255, 0.10);
  --navy-soft-bg:rgba(4, 30, 66, 0.04);

  /* Feedback */
  --up:          #00A06B;
  --up-bg:       rgba(0, 160, 107, 0.10);
  --down:        #D93A3F;
  --down-bg:     rgba(217, 58, 63, 0.10);
  --warn:        #D97706;
  --warn-bg:     rgba(217, 119, 6, 0.10);
  --gold:        #B8860B;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(4, 30, 66, 0.06);
  --shadow-md:  0 6px 24px rgba(4, 30, 66, 0.08);
  --shadow-lg:  0 24px 60px rgba(4, 30, 66, 0.12);
  --shadow-cyan:0 8px 32px rgba(0, 210, 255, 0.28);

  /* Radii */
  --radius:     18px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --radius-xs:  8px;

  /* Layout */
  --max: 1280px;
  --gutter: 20px;
}

/* Gutter gets smaller on small screens — set here, used everywhere */
@media (max-width: 640px) { :root { --gutter: 16px; } }
@media (max-width: 400px) { :root { --gutter: 14px; } }


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent iOS zoom-on-focus */
input, select, textarea, button {
  font-size: 16px;
}
@media (min-width: 640px) {
  input, select, textarea, button { font-size: 14px; }
}

button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.2;
}


/* ================================================================
   3. AMBIENT BACKGROUND
   ================================================================ */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 10% -5%, rgba(0, 210, 255, 0.06), transparent 60%),
    radial-gradient(800px 500px at 95% 5%, rgba(4, 30, 66, 0.05), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(4, 30, 66, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 30, 66, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 80%);
}

@media (max-width: 640px) {
  .bg-grid { background-size: 40px 40px; }
}


/* ================================================================
   4. LAYOUT
   ================================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.section { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
  .section-head p { font-size: 16px; }
}

@media (min-width: 1024px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 60px; }
}


/* ================================================================
   5. NAVBAR
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(4, 30, 66, 0.15);
}

.brand-mark svg { position: relative; z-index: 1; }
.brand-text { display: inline-flex; align-items: baseline; }
.brand-forth { color: var(--navy); }
.brand-dex   { color: var(--cyan); }

.nav-links {
  display: none; /* hidden on mobile by default */
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.nav-greeting {
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
  display: none; /* hide on mobile */
}

/* Mobile menu toggle button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--navy);
  flex-shrink: 0;
}

.nav-toggle:active { background: var(--bg-2); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  padding: 12px 0 18px;
}

.nav-drawer.is-open { display: block; }

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-drawer a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-drawer a:active { background: var(--bg-2); color: var(--navy); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-greeting { display: inline; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
  .nav-inner { min-height: 72px; padding: 0; }
}


/* ================================================================
   6. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  min-height: 42px;
  line-height: 1.2;
}

.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:active { color: var(--navy); }

.btn-primary {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}
.btn-primary:active {
  background: var(--navy-deep);
  transform: translateY(1px);
}

.btn-outline {
  color: var(--navy);
  border-color: var(--border-strong);
  background: #FFFFFF;
}
.btn-outline:active {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  background: var(--accent-soft);
}

.btn-danger {
  background: var(--down-bg);
  color: var(--down);
  border-color: rgba(217, 58, 63, 0.3);
}
.btn-danger:active { background: rgba(217, 58, 63, 0.18); }

.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; min-height: 48px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Desktop hover */
@media (hover: hover) and (min-width: 900px) {
  .btn-ghost:hover { color: var(--navy); }
  .btn-primary:hover {
    background: var(--navy-deep);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan-dark);
    box-shadow: var(--shadow-sm);
  }
  .btn-danger:hover { background: rgba(217, 58, 63, 0.18); }
}


/* ================================================================
   7. HERO
   ================================================================ */
.hero { padding: 40px 0 32px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyan-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.hero h1 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
  color: var(--navy);
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 26px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-actions .btn { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stats > div {
  min-width: 0;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1.2;
}

.stat-value .accent { color: var(--cyan); }

.stat-label {
  font-size: 11px;
  color: var(--text-dimmer);
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
  .hero p.lead { font-size: 16px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 12px; }
}

@media (min-width: 1024px) {
  .hero { padding: 90px 0 60px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -2px; }
  .hero p.lead { font-size: 17px; max-width: 520px; }
  .hero-actions { gap: 14px; margin-bottom: 44px; }
  .hero-stats { display: flex; gap: 40px; padding-top: 32px; }
  .stat-value { font-size: 26px; letter-spacing: -1px; }
  .stat-label { font-size: 12.5px; }
}


/* ================================================================
   8. HERO VISUAL
   ================================================================ */
.hero-visual {
  position: relative;
  max-width: 100%;
}

.glow-orb {
  display: none;
}

@media (min-width: 1024px) {
  .glow-orb {
    display: block;
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.18), transparent 70%);
    top: -60px;
    right: -60px;
    filter: blur(40px);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 20px); }
}

.dashboard-card {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .dashboard-card { padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
}

.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cyan-dark);
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 210, 255, 0.25);
  white-space: nowrap;
}

.dc-live .pulse-dot { width: 5px; height: 5px; }

.opp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.opp-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.opp-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: #FFFFFF;
  flex-shrink: 0;
}

.opp-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opp-sub {
  font-size: 11px;
  color: var(--text-dimmer);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opp-right { text-align: right; flex-shrink: 0; }
.opp-gain { font-weight: 700; font-size: 13.5px; color: var(--up); letter-spacing: -0.3px; }
.opp-score { font-size: 10.5px; color: var(--text-dimmer); margin-top: 2px; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--navy-soft-bg);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.float-chip { display: none; }

@media (min-width: 1024px) {
  .float-chip {
    display: flex;
    position: absolute;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 2;
  }
  .chip-1 { bottom: -28px; left: -30px; animation: float 6s ease-in-out infinite; }
  .chip-2 { top: 30px; right: -40px; animation: float 7s ease-in-out infinite 1s; }
  .chip-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--cyan-dark);
    font-size: 15px;
    flex-shrink: 0;
  }
  .chip-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
  .chip-text span { font-size: 11px; color: var(--text-dimmer); }
}


/* ================================================================
   9. TRUST BAR
   ================================================================ */
.trust {
  padding: 32px 0 40px;
  text-align: center;
}

.trust-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  font-weight: 600;
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.trust-logos div {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

@media (min-width: 640px) {
  .trust { padding: 40px 0 70px; }
  .trust-logos { gap: 60px; }
  .trust-logos div { font-size: 18px; }
}


/* ================================================================
   10. TESTIMONIALS
   ================================================================ */
.testimonials-grid,
.testimonials-grid--4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.author-role { font-size: 11.5px; color: var(--text-dimmer); margin-top: 2px; }

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonial { padding: 32px 28px; }
  .testimonial-quote { font-size: 14.5px; }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (min-width: 1200px) {
  .testimonials-grid--4 { grid-template-columns: repeat(4, 1fr); }
}


/* ================================================================
   11. PLANS
   ================================================================ */
.plans-grid,
.plans-grid--4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan {
  position: relative;
  border-radius: var(--radius);
  padding: 24px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  overflow: hidden;
}

.plan::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--plan-color, var(--cyan)), transparent);
  opacity: 0.7;
}

.plan.featured {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(170deg, rgba(0, 210, 255, 0.05), #FFFFFF);
  box-shadow: var(--shadow-cyan);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--cyan-dark);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  padding-right: 70px;
}

.plan-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--plan-color, var(--cyan));
  box-shadow: 0 0 12px var(--plan-color, var(--cyan));
  flex-shrink: 0;
}

.plan-tagline {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.plan-roi {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.plan-roi-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dimmer);
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-roi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--plan-color, var(--navy));
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-roi-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
}

.plan-roi-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  font-weight: 500;
}

.plan-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  flex: 1;
}

.plan-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.plan-details li svg {
  color: var(--cyan-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan-details li strong { color: var(--navy); font-weight: 600; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border-strong);
  color: var(--navy);
  background: #FFFFFF;
  min-height: 48px;
}

.plan-cta:active {
  border-color: var(--cyan);
  background: var(--accent-soft);
  color: var(--cyan-dark);
}

.plan.featured .plan-cta {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.plan.featured .plan-cta:active {
  background: var(--navy-deep);
}

/* Affordability indicators */
.plan-afford {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.plan-afford--yes {
  background: rgba(0, 122, 85, 0.06);
  color: #007A55;
  border: 1px solid rgba(0, 122, 85, 0.15);
}

.plan-afford--no {
  background: rgba(184, 134, 11, 0.06);
  color: #8A6600;
  border: 1px solid rgba(184, 134, 11, 0.18);
}

.plan-afford strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
}

/* Plan meta block (used on some plan pages) */
.plan-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 12px;
  background: rgba(4, 30, 66, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(4, 30, 66, 0.05);
}

.plan-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  gap: 8px;
}

.plan-meta__label { color: rgba(4, 30, 66, 0.55); font-weight: 500; }
.plan-meta__value { color: #041E42; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Active/current plan states */
.plan--current {
  border-color: #007A55;
  box-shadow: 0 0 0 1px #007A55, 0 8px 24px rgba(0, 122, 85, 0.12);
}

.plan--locked { opacity: 0.85; }

.plan-badge--current {
  background: rgba(0, 122, 85, 0.10);
  color: #007A55;
  border-color: rgba(0, 122, 85, 0.25);
}

.plan-cta--current {
  background: #007A55;
  border-color: #007A55;
  color: #FFFFFF;
}

.plan-cta--outline {
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--rule-2);
}

@media (min-width: 640px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .plans-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .plan { padding: 28px 24px; border-radius: var(--radius-lg); }
  .plan-name { font-size: 21px; }
  .plan-roi-value { font-size: 38px; }
}

@media (min-width: 1024px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (min-width: 1200px) {
  .plans-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .plan.featured { transform: translateY(-6px); }
}

@media (hover: hover) and (min-width: 900px) {
  .plan:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
  }
  .plan-cta:hover {
    border-color: var(--cyan);
    background: var(--accent-soft);
    color: var(--cyan-dark);
  }
  .plan.featured .plan-cta:hover {
    background: var(--navy-deep);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
}


/* ================================================================
   12. PLAN BANNER (dashboard strategies)
   ================================================================ */
.plan-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(4,30,66,0.03), rgba(0,210,255,0.04));
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
}

.plan-banner--empty {
  border-left-color: #B8860B;
  background: rgba(184, 134, 11, 0.04);
}

.plan-banner__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.plan-banner__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.plan-banner__meta {
  font-size: 13px;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  line-height: 1.5;
}

.plan-banner__meta strong { color: var(--ink); font-weight: 600; }

.plan-banner__right .btn { width: 100%; }

@media (min-width: 640px) {
  .plan-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
  }
  .plan-banner__right .btn { width: auto; }
}

/* Invest note (risk disclaimer) */
.invest-note {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid rgba(217, 119, 6, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.invest-note svg { color: var(--warn); flex-shrink: 0; }

@media (min-width: 640px) {
  .invest-note {
    flex-direction: row;
    align-items: center;
    padding: 18px 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
  }
}


/* ================================================================
   13. FEATURES
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(4, 30, 66, 0.15);
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature { padding: 28px 24px; }
  .feature h3 { font-size: 18px; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .feature { padding: 32px 28px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 14.5px; }
}


/* ================================================================
   14. HOW IT WORKS (flow)
   ================================================================ */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.flow-line { display: none; }

.flow-step {
  text-align: center;
  padding: 0 8px;
}

.flow-num {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid var(--cyan);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  box-shadow: 0 0 0 6px #FFFFFF, var(--shadow-sm);
}

.flow-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  color: var(--navy);
}

.flow-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .flow-line {
    display: block;
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
    z-index: 0;
  }
  .flow-step { position: relative; z-index: 1; }
  .flow-num { width: 64px; height: 64px; font-size: 20px; }
}


/* ================================================================
   15. DASHBOARD SHOWCASE
   ================================================================ */
.showcase {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.showcase-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.showcase-top h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 2px;
  width: 100%;
}

.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tabs { scrollbar-width: none; }

.tab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.opp-table { display: flex; flex-direction: column; gap: 6px; }

.table-head { display: none; }

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 13px;
}

.table-row .asset {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.table-row .cell-up {
  font-weight: 700;
  font-size: 14px;
  color: var(--up);
}

.table-row .cell-dim {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

.table-row .score-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.asset-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #FFFFFF;
  flex-shrink: 0;
}

.asset-name { font-weight: 600; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.asset-tick { font-size: 11px; color: var(--text-dimmer); margin-top: 2px; }

.score-bar { display: flex; align-items: center; gap: 10px; }

.score-track {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: var(--bg-3);
  overflow: hidden;
  max-width: 100px;
}

.score-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
}

.score-val { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Review panel */
.review-panel { display: flex; flex-direction: column; gap: 12px; }

.review-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dimmer);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-item {
  padding: 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
}

.review-item.pending { border-left-color: var(--warn); }
.review-item.confirmed { border-left-color: var(--up); }

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.analyst { display: flex; align-items: center; gap: 8px; min-width: 0; }

.analyst-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.analyst-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-status {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-confirmed { background: var(--up-bg); color: var(--up); }

.review-text {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .showcase { padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .showcase-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .showcase-tabs { width: auto; }
  .table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    padding: 0 14px 10px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dimmer);
    font-weight: 600;
    gap: 10px;
  }
  .table-row {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    padding: 12px 14px;
  }
  .table-row .asset {
    grid-column: auto;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  .table-row .cell-up,
  .table-row .cell-dim { text-align: left; }
  .table-row .score-bar { grid-column: auto; margin-top: 0; }
}

@media (min-width: 1024px) {
  .showcase { padding: 32px; }
  .showcase-grid { grid-template-columns: 1.6fr 1fr; gap: 24px; }
}


/* ================================================================
   16. CTA SECTION
   ================================================================ */
.cta-section { padding: 56px 0; }

.cta-box {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--navy);
  overflow: hidden;
  color: #FFFFFF;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: #FFFFFF;
  line-height: 1.2;
}

.cta-box p {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  margin: 0 auto 28px;
  max-width: 500px;
  line-height: 1.6;
}

.cta-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.cta-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, background 0.2s;
  min-height: 48px;
}

.cta-form input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.12);
}

.cta-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.cta-form .btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  width: 100%;
}

.cta-form .btn-primary:active {
  background: var(--cyan-bright);
}

.cta-box p[style] { color: rgba(255, 255, 255, 0.6) !important; }

@media (min-width: 640px) {
  .cta-section { padding: 80px 0; }
  .cta-box { padding: 60px 40px; border-radius: var(--radius-lg); }
  .cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
  .cta-box p { font-size: 16px; }
  .cta-form { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-form input { flex: 1; min-width: 220px; width: auto; font-size: 14px; }
  .cta-form .btn-primary { width: auto; }
}

@media (min-width: 1024px) {
  .cta-section { padding: 100px 0; }
  .cta-box { padding: 70px 40px; }
}

@media (hover: hover) and (min-width: 900px) {
  .cta-form .btn-primary:hover {
    background: var(--cyan-bright);
    box-shadow: var(--shadow-cyan);
  }
}


/* ================================================================
   17. AUTH PAGES
   ================================================================ */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin-bottom: 6px;
  text-align: center;
  color: var(--navy);
}

.auth-card .sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.auth-footer a {
  color: var(--cyan-dark);
  font-weight: 600;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-dimmer);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (min-width: 480px) {
  .auth-card { padding: 36px 32px; border-radius: var(--radius-lg); }
  .auth-card h1 { font-size: 28px; letter-spacing: -0.8px; }
  .auth-card .sub { font-size: 14px; margin-bottom: 32px; }
}


/* ================================================================
   18. FORMS
   ================================================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  color: var(--navy);
  font-size: 16px; /* prevents iOS zoom */
  font-family: inherit;
  outline: none;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 640px) {
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 14px; min-height: 42px; }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dimmer); }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6B85' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dimmer);
  margin-top: 6px;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.55;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.checkbox-row a {
  color: var(--cyan-dark);
  font-weight: 600;
}

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}


/* ================================================================
   19. DASHBOARD SHELL
   (The main dashboard/base.html has its own scoped styles,
    but these handle shared dashboard layout in global scope)
   ================================================================ */
.dash-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0 60px;
  min-height: calc(100vh - 60px);
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dash-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.dash-header p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 4px;
  line-height: 1.55;
}

.dash-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-header-actions .btn {
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .dash-wrap { padding: 24px 0 60px; gap: 24px; }
  .dash-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .dash-header h1 { font-size: 28px; }
  .dash-header-actions { flex-wrap: nowrap; }
  .dash-header-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 1024px) {
  .dash-wrap {
    grid-template-columns: 260px 1fr;
    padding: 32px 0 60px;
  }
}


/* ================================================================
   20. STATS CARDS
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s;
}

.stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: grid; place-items: center;
  color: #FFFFFF;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(4, 30, 66, 0.15);
}

.stat-icon.blue   { background: linear-gradient(135deg, #0A2B5C, #00B5F1); }
.stat-icon.purple { background: linear-gradient(135deg, #041E42, #4D5BB8); }
.stat-icon.gold   { background: linear-gradient(135deg, #B8860B, #FFD66B); }

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--navy);
  word-break: break-word;
}

.stat-value .accent { color: var(--cyan); }

.stat-change {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text-dimmer);
  line-height: 1.4;
}

.stat-change.up { color: var(--up); }
.stat-change.down { color: var(--down); }

@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .stat-card { padding: 22px; border-radius: 18px; }
  .stat-value { font-size: 26px; letter-spacing: -1px; }
}


/* ================================================================
   21. DASH PANELS + TABLES
   ================================================================ */
.dash-panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.dash-panel-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.dash-panel-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.dash-panel-head h3 svg { color: var(--cyan-dark); flex-shrink: 0; }

.panel-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-3);
  padding: 3px 8px;
  background: rgba(4, 30, 66, 0.04);
  border-radius: 4px;
  white-space: nowrap;
}

/* Transaction table — stack on mobile */
.tx-table {
  display: flex;
  flex-direction: column;
}

.tx-head { display: none; }

.tx-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
}

.tx-row:last-child { border-bottom: none; }

.tx-type {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tx-badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.tx-badge.deposit  { background: var(--up-bg); color: var(--up); }
.tx-badge.withdraw { background: var(--down-bg); color: var(--down); }
.tx-badge.invest   { background: rgba(4, 30, 66, 0.08); color: var(--navy); }
.tx-badge.profit   { background: var(--accent-soft); color: var(--cyan-dark); }

.tx-type-info { min-width: 0; }

.tx-type-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-type-info span {
  display: block;
  font-size: 11px;
  color: var(--text-dimmer);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.tx-amount.credit { color: var(--up); }
.tx-amount.debit { color: var(--down); }

.tx-date,
.tx-status,
.tx-method {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--text-dimmer);
}

.tx-status {
  justify-self: start;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 10px;
}

.tx-status.completed { background: var(--up-bg); color: var(--up); }
.tx-status.pending   { background: var(--warn-bg); color: var(--warn); }
.tx-status.failed    { background: var(--down-bg); color: var(--down); }

.tx-method { display: none; }

@media (min-width: 640px) {
  .dash-panel { border-radius: 20px; padding: 0; }
  .dash-panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
  }
  .dash-panel-head h3 { font-size: 18px; }

  .tx-head {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 0.8fr;
    align-items: center;
    padding: 12px 22px;
    gap: 8px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dimmer);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--paper-2);
  }

  .tx-row {
    grid-template-columns: 2fr 1.2fr 1fr 1fr 0.8fr;
    padding: 14px 22px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }

  .tx-date,
  .tx-status,
  .tx-method {
    grid-column: auto;
    font-size: 12.5px;
    color: var(--text-dim);
  }

  .tx-status {
    justify-self: start;
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .tx-method { display: block; }
  .tx-amount { font-size: 13.5px; }
}

/* Empty states */
.empty-panel {
  padding: 44px 22px;
  text-align: center;
}

.empty-panel__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.empty-panel__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 420px;
  margin: 0 auto 20px;
}

.empty-panel .btn {
  display: inline-flex;
  width: auto;
}

.empty-cell {
  grid-column: 1 / -1;
  padding: 32px 22px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}

.empty-cell p { margin: 0; }


/* ================================================================
   22. DEPOSIT / WITHDRAW PAGES
   ================================================================ */
.page-wrap { padding: 40px 0; }

.page-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 0 var(--gutter);
}

.page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-head p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.method {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
}

.method.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.method-icon {
  font-size: 18px;
  line-height: 1;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.amount-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.amount-chip {
  padding: 8px 12px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 36px;
}

.amount-chip:active {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  background: var(--accent-soft);
}

.summary-box {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
}

.summary-row span { color: var(--text-dim); }
.summary-row strong { color: var(--navy); font-weight: 600; font-family: 'JetBrains Mono', monospace; }

.summary-row.total {
  border-top: 1px solid rgba(0, 210, 255, 0.25);
  padding-top: 12px;
  margin-top: 6px;
}

.summary-row.total strong {
  color: var(--cyan-dark);
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-address {
  background: var(--bg-2);
  border: 1px dashed rgba(0, 210, 255, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--navy);
  word-break: break-all;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.wallet-address span {
  flex: 1;
  word-break: break-all;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.wallet-address button {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  min-height: 40px;
}

.wallet-address button:active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}

/* Memo row */
.memo-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(184,134,11,0.06);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 10px;
  font-size: 12.5px;
  color: #8A6600;
  line-height: 1.5;
  margin-top: 10px;
}

.memo-row code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  background: transparent;
}

.memo-row button {
  background: #8A6600;
  border: none;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
}

@media (min-width: 480px) {
  .page-wrap { padding: 60px 0; }
  .page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .form-card { padding: 32px 28px; border-radius: 20px; box-shadow: var(--shadow-lg); }
  .wallet-address { flex-direction: row; align-items: center; }
  .wallet-address button { flex-shrink: 0; min-height: auto; }
  .memo-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .memo-row button { flex-shrink: 0; }
}

@media (min-width: 640px) {
  .method { padding: 14px 10px; min-height: 76px; }
  .method-icon { font-size: 20px; height: 24px; }
  .method-label { font-size: 12px; }
}


/* ================================================================
   23. ABOUT PAGE
   ================================================================ */
.about-hero {
  text-align: center;
  padding: 48px 0 40px;
}

.about-hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-hero h1 .grad {
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.value-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: grid; place-items: center;
  color: #FFFFFF;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(4, 30, 66, 0.15);
}

.value-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  color: var(--navy);
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--cyan);
  transition: transform 0.2s;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-dim);
  font-size: 13.5px;
  padding-top: 10px;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .about-hero { padding: 80px 0 60px; }
  .about-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
  .about-hero p { font-size: 17px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .value-card { padding: 28px 24px; border-radius: 20px; }
  .value-card h3 { font-size: 18px; }
  .value-card p { font-size: 14.5px; }
  .faq-item summary { font-size: 16px; }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .value-card { padding: 30px 26px; }
}


/* ================================================================
   24. FOOTER (full marketing footer)
   ================================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 32px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 14px;
  line-height: 1.65;
}

.footer-meta {
  font-size: 12.5px !important;
  color: var(--text-dimmer) !important;
  margin-top: 10px !important;
}

.footer-meta a {
  color: var(--cyan-dark);
  font-weight: 600;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--navy);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dimmer);
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  background: #FFFFFF;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  footer { padding: 60px 0 32px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    font-size: 13px;
  }
  .footer-social { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
}


/* ================================================================
   25. MINIMAL FOOTER (dashboard, logged-in users)
   ================================================================ */
.footer-minimal {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.footer-minimal__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-minimal__left,
.footer-minimal__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
}

.footer-minimal__copy { color: var(--ink-3); }
.footer-minimal__sep { color: var(--ink-4); }

.footer-minimal__link {
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.15s;
}

.footer-minimal__link:active { color: var(--navy); }

@media (min-width: 640px) {
  .footer-minimal { padding: 24px 0; margin-top: 60px; font-size: 13px; }
  .footer-minimal__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (hover: hover) and (min-width: 900px) {
  .footer-minimal__link:hover { color: var(--navy); }
}


/* ================================================================
   26. FLASH MESSAGES
   ================================================================ */
.flash-wrap {
  margin-top: 16px;
}

.flash-msg {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.5;
}

.flash-msg.flash-error {
  background: var(--down-bg);
  border-color: rgba(217, 58, 63, 0.3);
  color: var(--down);
}

.flash-msg.flash-success {
  background: var(--up-bg);
  border-color: rgba(0, 160, 107, 0.3);
  color: var(--up);
}

.flash-msg.flash-info,
.flash-msg.flash-debug {
  background: var(--accent-soft);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--cyan-dark);
}

.flash-msg.flash-warning {
  background: var(--warn-bg);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--warn);
}


/* ================================================================
   27. COMPARE TABLE (plans page)
   ================================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #FFFFFF;
}

.compare-table thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dimmer);
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  background: var(--paper-2);
}

.compare-table thead th:first-child {
  color: var(--navy);
  font-size: 11px;
}

.compare-table tbody td {
  padding: 12px 10px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.compare-table tbody td:first-child {
  color: var(--navy);
  font-weight: 500;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

/* Horizontal scroll on mobile */
@media (max-width: 700px) {
  .dash-panel:has(.compare-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table { min-width: 640px; }
}

@media (min-width: 640px) {
  .compare-table thead th { padding: 14px 16px; }
  .compare-table tbody td { padding: 14px 16px; font-size: 13.5px; }
}

@media (hover: hover) and (min-width: 900px) {
  .compare-table tbody tr:hover { background: var(--accent-soft); }
}


/* ================================================================
   28. LEGAL PAGES
   ================================================================ */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

.legal-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.legal-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.legal-head__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink);
}

.legal-head__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.legal-head__meta {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.legal-head__meta strong {
  color: var(--ink);
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.legal-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-body p { margin: 0 0 16px; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 8px;
  padding-left: 2px;
}

.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body a {
  color: var(--cyan-dark);
  border-bottom: 1px solid rgba(0, 153, 191, 0.3);
}

.legal-callout {
  background: var(--paper-2);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.legal-callout--warn {
  background: rgba(184, 134, 11, 0.05);
  border-left-color: #B8860B;
}

.legal-callout--warn strong { color: #8A6600; }

.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.legal-footer a {
  color: var(--cyan-dark);
}

@media (min-width: 640px) {
  .legal-wrap { padding: 64px 32px 88px; }
  .legal-head { margin-bottom: 40px; padding-bottom: 28px; }
  .legal-head__title { font-size: 38px; }
  .legal-body { font-size: 15.5px; }
  .legal-body h2 { font-size: 24px; margin: 44px 0 14px; padding-top: 22px; }
  .legal-footer { margin-top: 56px; padding-top: 28px; }
}

@media (min-width: 1024px) {
  .legal-wrap { padding: 80px 32px 100px; }
  .legal-head__title { font-size: 42px; }
  .legal-body { font-size: 16px; }
  .legal-body h2 { font-size: 26px; margin: 48px 0 16px; padding-top: 24px; }
}


/* ================================================================
   29. LANGUAGE SWITCHER
   ================================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(4, 30, 66, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color .18s, background .18s, box-shadow .18s;
  flex-shrink: 0;
}

.lang-switch__globe { color: var(--navy); flex-shrink: 0; opacity: 0.75; }

.lang-switch__form {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch__select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
  padding: 2px 20px 2px 0;
  cursor: pointer;
  line-height: 1.4;
  max-width: 90px;
}

.lang-switch__select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.lang-switch__chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--navy);
  opacity: 0.55;
}

.lang-switch__select option { color: var(--navy); background: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .lang-switch { padding: 6px 10px 6px 12px; gap: 8px; }
  .lang-switch__select { font-size: 13px; max-width: 120px; }
  .nav-right { gap: 14px; }
}


/* ================================================================
   30. LIVE MARKETS BAR
   ================================================================ */
.markets-bar {
  background: linear-gradient(90deg, var(--navy) 0%, #062a52 50%, var(--navy) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  overflow: hidden;
}

.markets-bar__inner {
  display: flex;
  align-items: center;
  height: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.markets-bar__label {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  flex-shrink: 0;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  height: 60%;
}

.markets-bar__label .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
  animation: marketsPulse 2s infinite;
}

@keyframes marketsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.markets-bar__track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
  animation: marketsScroll 70s linear infinite;
  will-change: transform;
}

.market-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  flex-shrink: 0;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.market-item__sym {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.market-item__price {
  font-weight: 600;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.market-item__change {
  font-weight: 600;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 5px;
  display: none;
}

.market-item__change.is-up   { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.market-item__change.is-down { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.markets-bar__updated {
  display: none;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  padding-left: 12px;
  margin-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  height: 60%;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.markets-bar__loading { color: rgba(255, 255, 255, 0.5); font-size: 12px; padding: 0 10px; }

@keyframes marketsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (min-width: 640px) {
  .markets-bar__inner { height: 46px; padding: 0 24px; }
  .markets-bar__label { display: inline-flex; }
  .market-item { font-size: 13px; padding: 6px 10px; gap: 8px; }
  .market-item__sym { font-size: 11.5px; }
  .market-item__change { display: inline; }
  .markets-bar__updated { display: inline-flex; }
  .markets-bar__track { gap: 32px; }
}


/* ================================================================
   31. FINAL SMALL-SCREEN GUARDS
   ================================================================ */
@media (max-width: 380px) {
  :root { --gutter: 12px; }

  .hero h1 { font-size: 26px; letter-spacing: -1px; }
  .section-head h2 { font-size: 22px; }
  .dash-header h1 { font-size: 20px; }
  .auth-card h1 { font-size: 21px; }
  .about-hero h1 { font-size: 24px; }
  .legal-head__title { font-size: 26px; }

  .stat-value { font-size: 19px; }
  .plan-roi-value { font-size: 28px; }
  .plan-name { font-size: 17px; }

  .method { padding: 10px 6px; min-height: 58px; }
  .method-label { font-size: 10.5px; }
  .method-icon { font-size: 16px; }

  .btn { padding: 10px 14px; font-size: 13px; }
  .btn-lg { padding: 12px 18px; font-size: 14px; }

  .footer-minimal { font-size: 11.5px; }
}

/* Truly tiny phones (iPhone SE 1st gen, older Androids) */
@media (max-width: 320px) {
  body { font-size: 14px; }

  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }

  .hero h1 { font-size: 22px; }
  .section-head h2 { font-size: 20px; }
  .stat-value { font-size: 17px; }
  .plan-roi-value { font-size: 24px; }
}