/* =========================================================
   AstroCapitalX — Financial Astrology Portal
   Design System + Component Library
   ========================================================= */

/* ---------- 1. Design tokens --------------------------------- */
:root {
  /* Cosmic palette — warmer dawn tones with sun-lit centre */
  --void:         #0F1036;
  --midnight:     #1A1A50;
  --deep:         #23235E;
  --panel:        #1E1E5B;
  --panel-2:      #28286E;
  --elev:         #303085;
  --hairline:     rgba(255, 255, 255, 0.10);
  --hairline-2:   rgba(255, 255, 255, 0.18);

  /* Brand accents */
  --gold:         #E5B437;
  --gold-soft:    #F4D06F;
  --gold-deep:    #B8860B;
  --saffron:      #FF8C42;
  --violet:       #8B5CF6;
  --violet-soft:  #A78BFA;
  --starlight:    #E7E7FF;

  /* Market semantics */
  --bull:         #22C55E;
  --bull-soft:    #86EFAC;
  --bear:         #EF4444;
  --bear-soft:    #FCA5A5;
  --neutral:      #94A3B8;

  /* Text */
  --text:         #F4F4FF;
  --text-muted:   #9F9FC5;
  --text-dim:     #6E6E96;

  /* Radius & shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 10px 40px rgba(229, 180, 55, 0.25);

  /* Gradients — lit from above AND below, mid-tone belly */
  --grad-cosmic: radial-gradient(ellipse 1200px 800px at 50% -5%, rgba(244, 208, 111, 0.35) 0%, rgba(229, 180, 55, 0.18) 22%, rgba(139, 92, 246, 0.14) 48%, transparent 72%),
                 radial-gradient(ellipse 1600px 700px at 50% 108%, rgba(244, 208, 111, 0.22) 0%, rgba(139, 92, 246, 0.15) 35%, transparent 65%),
                 linear-gradient(180deg, #2A1F65 0%, #251D64 25%, #211B60 50%, #25205E 75%, #2B245E 100%);
  --grad-gold:   linear-gradient(135deg, #FFE49A 0%, #F4D06F 40%, #E5B437 70%, #B8860B 100%);
  --grad-violet: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  --grad-panel:  linear-gradient(180deg, rgba(50,46,110,0.75) 0%, rgba(30,26,80,0.88) 100%);

  /* Typography */
  --ff-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- 2. Reset ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 3. Cosmic background with sun-ray ---------------- */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--grad-cosmic);
  overflow: hidden;
}

/* Sun-ray layer — thin rays emanating from top-centre */
.cosmic-bg::before {
  content: '';
  position: absolute;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 180vw;
  height: 160vh;
  background: repeating-conic-gradient(
    from 185deg at 50% 12.5%,
    transparent 0deg 2.8deg,
    rgba(255, 228, 154, 0.08) 2.8deg 3.6deg,
    transparent 3.6deg 6deg,
    rgba(244, 208, 111, 0.05) 6deg 6.8deg,
    transparent 6.8deg 10.5deg,
    rgba(255, 228, 154, 0.09) 10.5deg 11deg,
    transparent 11deg 14deg
  );
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, black 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, black 10%, transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}

/* Warm halo at top-centre — the "sun" itself */
.cosmic-bg::after {
  content: '';
  position: absolute;
  top: -350px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle,
    rgba(255, 228, 154, 0.45) 0%,
    rgba(244, 208, 111, 0.22) 25%,
    rgba(229, 180, 55, 0.1) 50%,
    transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 35% 15%, rgba(255,228,154,0.8), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 90%, rgba(255,255,255,0.7), transparent);
  background-size: 800px 800px;
  opacity: 0.35;
  animation: drift 240s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 800px 800px; }
}

/* ---------- 4. Layout ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- 5. Typography ------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-display { font-size: clamp(40px, 6vw, 72px); font-weight: 500; }
.h-xl      { font-size: clamp(32px, 4vw, 48px); }
.h-lg      { font-size: clamp(26px, 3vw, 36px); }
.h-md      { font-size: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-gold  { color: var(--gold); }
.text-bull  { color: var(--bull); }
.text-bear  { color: var(--bear); }
.text-mono  { font-family: var(--ff-mono); }

.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 18px; color: var(--text-muted); max-width: 60ch; }

/* ---------- 6. Buttons --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: var(--grad-gold);
  color: #1A1200;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 46px rgba(229,180,55,.38); }
.btn-ghost {
  border: 1px solid var(--hairline-2);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--gold); }
.btn-violet {
  background: var(--grad-violet);
  color: #fff;
}
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 7. Cards ----------------------------------------- */
.card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--hairline-2); }
.card-accent {
  background: linear-gradient(180deg, rgba(229,180,55,0.08) 0%, rgba(16,16,58,0.9) 100%);
  border-color: rgba(229,180,55,0.25);
}
.card-tight { padding: 20px; }
.card-title { font-family: var(--ff-display); font-size: 24px; margin-bottom: 8px; }

/* ---------- 8. Top ticker ------------------------------------ */
.ticker-bar {
  background: rgba(13, 11, 46, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  padding-left: 48px;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.ticker-item strong { color: var(--text); font-weight: 600; }
.ticker-item .up   { color: var(--bull); }
.ticker-item .down { color: var(--bear); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 9. Navigation ------------------------------------ */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(23, 20, 69, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #12123A;
  font-family: var(--ff-display);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(229,180,55,0.4), 0 0 24px rgba(229,180,55,0.35);
}
.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-menu a {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color .2s ease;
  position: relative;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active { color: var(--gold); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 960px) {
  .nav-menu { display: none; }
}

/* ---------- 10. Hero ----------------------------------------- */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin: 20px 0 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--hairline);
}
.hero-trust .stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--gold);
}
.hero-trust .stat span {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---------- 11. Zodiac wheel --------------------------------- */
.zodiac-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.zodiac-wheel {
  width: 100%; height: 100%;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.zodiac-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 52%; aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(22,22,70,0.95), rgba(11,11,46,0.95));
  border: 1px solid rgba(229,180,55,0.3);
  display: grid; place-items: center;
  text-align: center;
  padding: 24px;
  box-shadow: 0 0 80px rgba(229,180,55,0.12), inset 0 0 40px rgba(139,92,246,0.12);
}
.zodiac-center .label {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
}
.zodiac-center .value {
  font-family: var(--ff-display);
  font-size: 36px; color: var(--text);
  margin: 8px 0 4px;
}
.zodiac-center .sub {
  font-size: 12px; color: var(--text-muted);
}

/* ---------- 12. Forecast preview card ------------------------ */
.forecast-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.forecast-head {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 20px;
}
.forecast-head .tag {
  font-size: 11px; padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(34,197,94,0.12);
  color: var(--bull);
  border: 1px solid rgba(34,197,94,0.3);
  font-weight: 600; letter-spacing: 0.08em;
}
.forecast-price {
  font-family: var(--ff-mono);
  font-size: 32px; font-weight: 600;
}
.forecast-change { color: var(--bull); font-size: 14px; margin-top: 4px; }
.forecast-chart { height: 140px; margin: 20px 0; }
.forecast-planets {
  display: flex; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.forecast-planets .p {
  text-align: center; font-size: 12px; color: var(--text-muted);
}
.forecast-planets .p .glyph {
  font-size: 22px; color: var(--gold); display: block; margin-bottom: 4px;
}

/* ---------- 13. Feature tiles -------------------------------- */
.feature {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.feature:hover { border-color: rgba(229,180,55,0.35); transform: translateY(-4px); }
.feature::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px at 100% 0, rgba(229,180,55,0.08), transparent 50%);
  pointer-events: none;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(229,180,55,0.15), rgba(139,92,246,0.12));
  border: 1px solid rgba(229,180,55,0.25);
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 14. Process steps -------------------------------- */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.process::before {
  content: ''; position: absolute;
  top: 40px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-size: 28px;
  margin: 0 auto 20px;
  background: var(--midnight);
  border: 1px solid var(--hairline-2);
  color: var(--gold);
  position: relative; z-index: 1;
}
.step h4 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; }
  .process::before { display: none; }
}

/* ---------- 15. Pricing tiers -------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier-popular {
  border-color: rgba(229,180,55,0.5);
  background: linear-gradient(180deg, rgba(229,180,55,0.08), rgba(22,22,70,0.95));
  box-shadow: 0 20px 60px rgba(229,180,55,0.1);
  transform: scale(1.02);
}
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--grad-gold);
  color: #1A1200;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
}
.tier h3 {
  font-family: var(--ff-display);
  font-size: 28px; margin-bottom: 8px;
}
.tier .tier-desc { color: var(--text-muted); font-size: 14px; min-height: 44px; }
.tier-price {
  margin: 24px 0; padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tier-price .amount {
  font-family: var(--ff-display);
  font-size: 48px; font-weight: 500;
}
.tier-price .unit { color: var(--text-muted); font-size: 14px; }
.tier-features { margin-bottom: 28px; flex: 1; }
.tier-features li {
  padding: 10px 0;
  display: flex; gap: 10px;
  font-size: 14px; color: var(--text);
  border-bottom: 1px dashed var(--hairline);
}
.tier-features li:last-child { border: 0; }
.tier-features .check {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(34,197,94,0.15); color: var(--bull);
  display: grid; place-items: center;
  font-size: 11px;
}
.tier-features .cross {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05); color: var(--text-dim);
  display: grid; place-items: center;
  font-size: 11px;
}
.tier-features li.off { color: var(--text-dim); }

/* ---------- 16. Testimonials --------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; } }
.quote {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.quote-mark {
  font-family: var(--ff-display); font-size: 80px; line-height: 0.6;
  color: var(--gold); opacity: 0.35;
  position: absolute; top: 20px; right: 20px;
}
.quote p {
  font-size: 15.5px; line-height: 1.65;
  margin-bottom: 20px;
  color: var(--text);
}
.quote-who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-violet);
  display: grid; place-items: center;
  font-weight: 600; color: #fff;
}
.quote-who strong { display: block; font-size: 14px; }
.quote-who span { font-size: 12px; color: var(--text-muted); }

/* ---------- 17. FAQ ------------------------------------------ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.faq-q .plus {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
  transition: all .3s ease;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item.open .plus { transform: rotate(45deg); background: rgba(229,180,55,0.1); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  color: var(--text-muted);
  font-size: 15px;
  padding: 0 0;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 0 22px; }

/* ---------- 18. Contact form --------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .contact-row {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-info .contact-row:last-child { border: 0; }
.contact-info .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(229,180,55,0.1);
  color: var(--gold);
}
.contact-info strong { display: block; font-size: 13px; color: var(--text-muted); }
.contact-info p { font-size: 15px; }

.contact-form {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(5,6,28,0.6);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- 19. Footer --------------------------------------- */
footer {
  padding: 72px 0 32px;
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent 0%, rgba(43,36,94,0.4) 40%, rgba(51,43,108,0.6) 100%);
  position: relative;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 400px at 50% 100%, rgba(229,180,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}
footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h5 {
  font-family: var(--ff-body);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col li { padding: 6px 0; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }

.footer-about p { color: var(--text-muted); font-size: 14px; margin: 16px 0 20px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  color: var(--text-muted);
  transition: all .2s ease;
}
.social a:hover { color: var(--gold); border-color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom .links { display: flex; gap: 20px; }

/* ===================================================
   DASHBOARD LAYOUT
   =================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: rgba(18, 16, 60, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--hairline);
  padding: 24px 16px;
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
}
.sidebar .brand { padding: 0 12px 24px; }
.sidebar-menu { flex: 1; }
.sidebar-menu li { margin: 2px 0; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s ease;
}
.sidebar-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-menu a.active {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(229,180,55,0.12), transparent);
}
.sidebar-menu .section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); padding: 20px 14px 8px;
}
.sidebar-footer {
  padding-top: 16px; border-top: 1px solid var(--hairline);
}

.app-main { padding: 24px 36px 60px; }
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 28px;
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  width: 100%; max-width: 360px;
  color: var(--text-muted);
  font-size: 13px;
}
.search-box input { background: none; border: 0; flex: 1; outline: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
}
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px;
  background: var(--bear);
  border-radius: 50%;
  border: 2px solid var(--void);
}

/* Dashboard widgets */
.welcome-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(229,180,55,0.12));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.welcome-card::before {
  content: '✦ ✧ ✦ ✧ ✦';
  position: absolute; top: 20px; right: 40px;
  font-size: 14px; color: rgba(229,180,55,0.3);
  letter-spacing: 8px;
}
.welcome-card h2 { font-size: 30px; margin-bottom: 6px; }
.natal-chips { display: flex; gap: 10px; margin-top: 16px; }
.natal-chip {
  padding: 6px 12px;
  background: rgba(5,6,28,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 12px;
}
.natal-chip strong { color: var(--gold); margin-right: 6px; }

.widget {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.widget-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.widget-head h3 {
  font-family: var(--ff-display);
  font-size: 20px;
}
.widget-head .more {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sector {
  padding: 14px 16px;
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
}
.sector-name { font-size: 14px; }
.sector-signal {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
}
.signal-bull { background: rgba(34,197,94,0.15); color: var(--bull); }
.signal-bear { background: rgba(239,68,68,0.15); color: var(--bear); }
.signal-neutral { background: rgba(148,163,184,0.15); color: var(--neutral); }

.watchlist { display: flex; flex-direction: column; gap: 2px; }
.watchlist-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.watchlist-row:hover { background: rgba(255,255,255,0.02); border-color: var(--hairline); }
.watchlist .sym { font-weight: 600; font-size: 14px; }
.watchlist .co  { color: var(--text-muted); font-size: 12px; }
.watchlist .px  { font-family: var(--ff-mono); font-size: 14px; }
.watchlist .ch  { font-family: var(--ff-mono); font-size: 13px; min-width: 68px; text-align: right; }
.watchlist .astro-tag {
  padding: 3px 8px; font-size: 10.5px; font-weight: 600;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
}

.transits { display: flex; flex-direction: column; gap: 12px; }
.transit {
  display: flex; gap: 14px; align-items: start;
  padding: 14px;
  background: rgba(5,6,28,0.3);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.transit .date {
  font-family: var(--ff-mono);
  font-size: 12px; color: var(--gold);
  min-width: 80px;
}
.transit p { font-size: 13.5px; line-height: 1.5; }
.transit p strong { color: var(--text); }

.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert {
  display: flex; gap: 14px; align-items: start;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(5,6,28,0.4);
}
.alert-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
}
.alert.bull .alert-icon { background: rgba(34,197,94,0.15); color: var(--bull); }
.alert.bear .alert-icon { background: rgba(239,68,68,0.15); color: var(--bear); }
.alert.info .alert-icon { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.alert p { font-size: 13px; }
.alert time { color: var(--text-dim); font-size: 11px; }

/* ===================================================
   AUTH PAGE
   =================================================== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-hero {
  padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.25), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(229,180,55,0.2), transparent 60%),
              var(--midnight);
}
.auth-hero .quote-block {
  font-family: var(--ff-display);
  font-size: 28px; line-height: 1.4;
  max-width: 460px;
}
.auth-hero .quote-block .cite {
  display: block; margin-top: 16px;
  font-family: var(--ff-body); font-size: 14px;
  color: var(--text-muted); letter-spacing: 0.02em;
}

.auth-card {
  padding: 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--void);
}
.auth-card .inner { max-width: 400px; margin: 0 auto; width: 100%; }
.auth-card h1 {
  font-family: var(--ff-display); font-size: 40px;
  margin-bottom: 8px;
}
.auth-card .sub { color: var(--text-muted); margin-bottom: 32px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 12px; margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--hairline);
}
.auth-social {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.auth-social button {
  padding: 12px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px;
}
.auth-social button:hover { background: rgba(255,255,255,0.04); }

/* ===================================================
   ADMIN / CRM
   =================================================== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 960px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
}
.stat-card .value {
  font-family: var(--ff-display); font-size: 34px;
  margin-top: 6px; letter-spacing: -0.01em;
}
.stat-card .delta { font-size: 12px; margin-top: 6px; font-family: var(--ff-mono); }
.stat-card .icon {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(229,180,55,0.1); color: var(--gold);
}

/* Customer rail + detail */
.crm-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}
@media (max-width: 1100px) { .crm-split { grid-template-columns: 1fr; } }

.customer-list {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
  max-height: 900px;
  overflow-y: auto;
}
.customer-list .search-box {
  width: 100%;
  margin-bottom: 12px;
}
.customer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.customer-row:hover { background: rgba(255,255,255,0.03); }
.customer-row.active {
  background: linear-gradient(90deg, rgba(229,180,55,0.12), transparent);
  border-color: rgba(229,180,55,0.25);
}
.customer-row .meta { flex: 1; min-width: 0; }
.customer-row .name { font-size: 14px; font-weight: 600; }
.customer-row .sub  { font-size: 12px; color: var(--text-muted); }
.customer-row .tag  { font-size: 10px; padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: 0.08em; }

.tag-vip      { background: rgba(229,180,55,0.15); color: var(--gold); }
.tag-pro      { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.tag-trial    { background: rgba(148,163,184,0.15); color: var(--neutral); }
.tag-at-risk  { background: rgba(239,68,68,0.15); color: var(--bear); }
.tag-churned  { background: rgba(110,110,150,0.18); color: var(--text-dim); }
.tag-new      { background: rgba(34,197,94,0.15); color: var(--bull); }

/* Customer detail */
.customer-detail { display: flex; flex-direction: column; gap: 20px; }
.customer-head {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(229,180,55,0.08));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.customer-head .avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-violet);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 600; color: #fff;
}
.customer-head h2 { font-family: var(--ff-display); font-size: 28px; margin-bottom: 2px; }
.customer-head .chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.customer-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .kv-grid { grid-template-columns: repeat(2, 1fr); } }
.kv {
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.kv .v { font-family: var(--ff-mono); font-size: 18px; margin-top: 4px; }

/* Activity timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 1px; background: var(--hairline-2);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--midnight);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(229,180,55,0.1);
}
.timeline-item.pay::before { border-color: var(--bull); box-shadow: 0 0 0 4px rgba(34,197,94,0.1); }
.timeline-item.book::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,0.1); }
.timeline-item.alert::before { border-color: var(--bear); box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
.timeline-item p { font-size: 14px; }
.timeline-item time { color: var(--text-dim); font-size: 11px; display: block; margin-top: 2px; }

/* Kanban pipeline */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-x: auto;
}
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .kanban { grid-template-columns: 1fr; } }

.kanban-col {
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 12px;
  min-height: 280px;
}
.kanban-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
}
.kanban-head .count {
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-pill);
  padding: 2px 8px; font-size: 11px; letter-spacing: 0;
}
.kanban-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.kanban-card:hover { border-color: var(--hairline-2); }
.kanban-card .name { font-size: 13.5px; font-weight: 600; }
.kanban-card .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.kanban-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-family: var(--ff-mono); font-size: 12px;
}

/* ===================================================
   ASTROLOGER DASHBOARD
   =================================================== */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(229,180,55,0.15), rgba(139,92,246,0.1));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.status-toggle {
  display: flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(15, 13, 50, 0.6);
  border: 1px solid var(--hairline);
}
.status-opt {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
  display: flex; align-items: center; gap: 6px;
}
.status-opt.active.online { background: rgba(34,197,94,0.18); color: var(--bull); border: 1px solid rgba(34,197,94,0.4); }
.status-opt.active.busy   { background: rgba(229,180,55,0.18); color: var(--gold); border: 1px solid rgba(229,180,55,0.4); }
.status-opt.active.offline{ background: rgba(148,163,184,0.18); color: var(--neutral); border: 1px solid rgba(148,163,184,0.4); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bull);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

.queue-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 13, 50, 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
}
.queue-chip strong { color: var(--gold); font-family: var(--ff-mono); }

/* Queue list */
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(15, 13, 50, 0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: all .2s ease;
}
.queue-item:hover { border-color: var(--hairline-2); background: rgba(15, 13, 50, 0.6); }
.queue-item .avatar { width: 40px; height: 40px; font-size: 14px; }
.queue-item .meta .name { font-weight: 600; font-size: 14px; }
.queue-item .meta .wait { font-size: 12px; color: var(--text-muted); }
.queue-item .queue-type {
  padding: 4px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: var(--r-pill);
}
.queue-type.chat { background: rgba(34,197,94,0.15); color: var(--bull); }
.queue-type.call { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.queue-type.video{ background: rgba(229,180,55,0.15); color: var(--gold); }

/* Today's schedule rows */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(15, 13, 50, 0.3);
}
.schedule-row .time {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--gold);
}
.schedule-row .time .dur { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.schedule-row .client .name { font-weight: 600; font-size: 14px; }
.schedule-row .client .svc  { font-size: 12px; color: var(--text-muted); }

/* Earnings */
.earning-hero {
  display: flex; gap: 32px; align-items: baseline;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.earning-hero .big {
  font-family: var(--ff-display);
  font-size: 42px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.earning-hero .secondary { color: var(--text-muted); font-size: 13px; }

.bar-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.bar {
  background: linear-gradient(180deg, rgba(244, 208, 111, 0.7), rgba(229, 180, 55, 0.25));
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(229, 180, 55, 0.35);
  position: relative;
}
.bar.today {
  background: var(--grad-gold);
}
.bar-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.bar-labels span { text-align: center; font-size: 11px; color: var(--text-muted); font-family: var(--ff-mono); }

/* Client table */
.client-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
}
.client-row:last-child { border: 0; }
.client-row:hover { background: rgba(255,255,255,0.02); }
.client-row .avatar { width: 36px; height: 36px; font-size: 12px; }
.client-row .name { font-weight: 600; font-size: 13.5px; }
.client-row .sub  { font-size: 11.5px; color: var(--text-muted); }
.client-row .lifetime { font-family: var(--ff-mono); font-size: 13px; color: var(--gold); }

/* Reviews */
.review {
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(15, 13, 50, 0.35);
  border: 1px solid var(--hairline);
  margin-bottom: 10px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-head .who { font-weight: 600; font-size: 13px; }
.review-head .date { font-size: 11px; color: var(--text-dim); }
.review-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.review p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.review-reply {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(229, 180, 55, 0.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
}

/* Availability week editor */
.week-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
}
.week-grid > div {
  padding: 8px 6px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 4px;
}
.week-grid .hd { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.week-grid .slot-cell { background: rgba(15, 13, 50, 0.35); border: 1px solid var(--hairline); cursor: pointer; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.week-grid .slot-cell.on { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.45); color: var(--bull); }
.week-grid .slot-cell.booked { background: rgba(229, 180, 55, 0.25); border-color: rgba(229, 180, 55, 0.5); color: var(--gold); }
.week-grid .slot-cell.off { opacity: 0.3; }

/* Rate card */
.rate-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.rate-row .rate-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(229,180,55,0.12); color: var(--gold);
}
.rate-row .mode { font-weight: 600; font-size: 14px; }
.rate-row .sub { font-size: 11.5px; color: var(--text-muted); }
.rate-row .price { font-family: var(--ff-mono); font-size: 16px; color: var(--gold); }

/* ===================================================
   BOOKING
   =================================================== */
.booking-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 28px;
  align-items: start;
}
@media (max-width: 1000px) { .booking-grid { grid-template-columns: 1fr; } }

.service-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.service-tab {
  padding: 10px 18px;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.service-tab:hover { color: var(--text); border-color: var(--hairline-2); }
.service-tab.active {
  background: var(--grad-gold);
  color: #1A1200;
  border-color: transparent;
  font-weight: 600;
}

.consultant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .consultant-grid { grid-template-columns: 1fr; } }

.consultant-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.consultant-card:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.consultant-card.selected {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(229,180,55,0.15);
  background: linear-gradient(180deg, rgba(229,180,55,0.08), rgba(22,22,70,0.95));
}
.consultant-card .avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--grad-violet);
  display: grid; place-items: center;
  font-size: 26px; color: #fff; font-weight: 600;
  margin: 0 auto 14px;
}
.consultant-card .name { font-family: var(--ff-display); font-size: 22px; margin-bottom: 2px; }
.consultant-card .title { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.consultant-card .rating {
  font-family: var(--ff-mono); font-size: 12px; color: var(--gold);
  margin-bottom: 12px;
}
.consultant-card .price {
  padding-top: 12px; border-top: 1px solid var(--hairline);
  font-family: var(--ff-mono); font-size: 16px;
}

/* Calendar */
.calendar {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.cal-head h3 { font-family: var(--ff-display); font-size: 22px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline-2);
  color: var(--text-muted);
}
.cal-nav button:hover { color: var(--gold); border-color: var(--gold); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-dow {
  text-align: center; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 8px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.04); }
.cal-day.selected {
  background: var(--grad-gold); color: #1A1200; font-weight: 600;
  border-color: transparent;
}
.cal-day.today { color: var(--gold); font-weight: 600; }
.cal-day.disabled { color: var(--text-dim); cursor: not-allowed; opacity: 0.35; }
.cal-day .dot {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--bull);
}

.slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 20px;
}
@media (max-width: 600px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.slot {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  font-family: var(--ff-mono); font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: var(--grad-gold); color: #1A1200; font-weight: 600; border-color: transparent; }
.slot.taken { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Booking summary sidebar */
.booking-summary {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky; top: 90px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.summary-row:last-child { border: 0; }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-family: var(--ff-mono); }
.summary-total {
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline-2);
  display: flex; justify-content: space-between;
  font-family: var(--ff-display);
  font-size: 22px;
}

/* ===================================================
   BIRTH CHART
   =================================================== */
.chart-stage {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) { .chart-stage { grid-template-columns: 1fr; } }

.planet-table { width: 100%; font-size: 13.5px; }
.planet-table th, .planet-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.planet-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); font-weight: 600;
}
.planet-table td.sym { font-family: var(--ff-mono); color: var(--gold); }

.transit-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 960px) { .transit-strip { grid-template-columns: 1fr; } }

.transit-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px;
}
.transit-card .glyph {
  font-family: serif; font-size: 28px; color: var(--gold); margin-bottom: 8px;
}
.transit-card .label { font-size: 13px; color: var(--text-muted); }
.transit-card .val { font-family: var(--ff-display); font-size: 22px; margin-top: 4px; }

.yoga-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.yoga-row .yoga-name {
  font-family: var(--ff-display); font-size: 17px;
}
.yoga-row .yoga-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.yoga-status {
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
}
.yoga-active { background: rgba(34,197,94,0.15); color: var(--bull); }
.yoga-dormant { background: rgba(148,163,184,0.15); color: var(--neutral); }

/* Year calendar heatmap */
.year-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 11px;
  border: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
}
.month-cell.bull { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: var(--bull); }
.month-cell.bear { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: var(--bear); }
.month-cell.neutral { color: var(--text-muted); }
.month-cell.mixed { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(239,68,68,0.12)); color: var(--gold); }

/* ===================================================
   ARCHITECTURE DIAGRAM
   =================================================== */
.arch-stack { display: flex; flex-direction: column; gap: 40px; }

.arch-layer {
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
}
.arch-layer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--hairline);
}
.arch-layer-head h3 {
  font-family: var(--ff-display); font-size: 26px;
}
.arch-layer-head .tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(229,180,55,0.12);
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.arch-grid { display: grid; gap: 14px; }
.arch-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.arch-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.arch-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .arch-grid.cols-2, .arch-grid.cols-3, .arch-grid.cols-4 { grid-template-columns: 1fr; }
}

.arch-box {
  background: rgba(15, 13, 50, 0.5);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: all .2s ease;
}
.arch-box:hover { border-color: var(--gold); background: rgba(229,180,55,0.06); }
.arch-box .bx-head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
}
.arch-box .bx-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: rgba(229,180,55,0.15);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 14px;
}
.arch-box .bx-name { font-weight: 600; font-size: 14px; }
.arch-box .bx-stack { font-family: var(--ff-mono); font-size: 11px; color: var(--gold); }
.arch-box ul { margin-top: 6px; }
.arch-box li { font-size: 12px; color: var(--text-muted); padding: 2px 0; }

.arch-box.primary { background: linear-gradient(135deg, rgba(229,180,55,0.1), rgba(15,13,50,0.5)); border-color: rgba(229,180,55,0.35); }
.arch-box.violet  { background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(15,13,50,0.5)); border-color: rgba(139,92,246,0.35); }
.arch-box.violet .bx-icon { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.arch-box.violet .bx-stack { color: var(--violet-soft); }
.arch-box.green   { background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(15,13,50,0.5)); border-color: rgba(34,197,94,0.3); }
.arch-box.green .bx-icon { background: rgba(34,197,94,0.15); color: var(--bull); }
.arch-box.green .bx-stack { color: var(--bull); }

.arch-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -20px 0;
  position: relative;
  z-index: 2;
}
.arch-flow svg { filter: drop-shadow(0 0 8px rgba(229,180,55,0.4)); }

/* ===================================================
   INVESTOR DECK — slide viewer
   =================================================== */
.deck-shell {
  min-height: 100vh;
  padding: 0;
}
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 7vw;
  position: relative;
  border-bottom: 1px dashed rgba(229,180,55,0.1);
}
.slide-num {
  position: absolute;
  top: 32px; left: 7vw;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.slide-label {
  position: absolute;
  top: 32px; right: 7vw;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.slide h1.slide-title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-weight: 500;
}
.slide h2.slide-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.slide .slide-lead {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

.big-stat {
  font-family: var(--ff-display);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.big-stat.mono {
  font-family: var(--ff-mono);
  font-weight: 600;
}

.slide-cols {
  display: grid;
  gap: 48px;
  align-items: center;
}
.slide-cols.c2 { grid-template-columns: 1fr 1fr; }
.slide-cols.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .slide-cols.c2, .slide-cols.c3 { grid-template-columns: 1fr; gap: 28px; }
  .slide { padding: 64px 6vw; }
}

.deck-nav {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: flex; gap: 8px;
  background: rgba(15, 13, 50, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
}
.deck-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  color: var(--text-muted);
  display: grid; place-items: center;
}
.deck-nav button:hover { color: var(--gold); border-color: var(--gold); }
.deck-nav .counter { font-family: var(--ff-mono); font-size: 12px; color: var(--gold); padding: 0 8px; align-self: center; }

.deck-print-btn {
  position: fixed; top: 24px; right: 24px; z-index: 100;
}

.fin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fin-table th, .fin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.fin-table th {
  background: rgba(229,180,55,0.08);
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.fin-table td.num { font-family: var(--ff-mono); text-align: right; }
.fin-table tr.highlight td { background: rgba(229,180,55,0.05); color: var(--gold); font-weight: 600; }

.competitor-row {
  display: grid;
  grid-template-columns: 180px repeat(5, 1fr);
  gap: 0;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.competitor-row.head {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}
.competitor-row .n { font-weight: 600; font-size: 15px; }
.competitor-row .n.us { color: var(--gold); font-family: var(--ff-display); font-size: 18px; }
.competitor-row .c { text-align: center; }
.competitor-row .good { color: var(--bull); }
.competitor-row .bad  { color: var(--bear); }
.competitor-row .mid  { color: var(--text-muted); }

@media print {
  .deck-nav, .deck-print-btn, .cosmic-bg { display: none !important; }
  .slide { page-break-after: always; min-height: auto; padding: 40px; }
  body { background: #0F1036; }
}

/* Utility */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none; } .app-shell { grid-template-columns: 1fr; } .sidebar { display: none; } }
/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  padding: 10px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A50;
  margin: 3px 0;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile sidebar */
@media (max-width: 959px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--midnight);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
}

/* ========== MOBILE RESPONSIVE FIXES ========== */
@media (max-width: 959px) {
  /* App shell: single column on mobile */
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--midnight);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  
  .app-main {
    padding: 80px 16px 60px !important;
    width: 100%;
  }
  
  .app-header {
    padding: 12px 0 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .search-box {
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  /* Make tables scrollable */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  table {
    min-width: 600px;
    font-size: 12px;
  }
  
  /* Cards full width on mobile */
  .card {
    padding: 20px;
  }
  
  /* Grid adjustments */
  .sector-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  
  .welcome-card::before {
    display: none;
  }
  
  /* Stats grid on mobile */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card .value {
    font-size: 26px;
  }
  .stat-card .icon {
    display: none;
  }
  
  /* CRM responsive */
  .crm-split {
    grid-template-columns: 1fr;
  }
  .customer-list {
    max-height: 300px;
  }
  
  /* KV grid */
  .kv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact form */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    order: 2;
  }
  
  /* Pricing tiers */
  .tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .tier-popular {
    transform: none;
  }
  
  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  /* FAQ */
  .faq-q {
    font-size: 16px;
    padding: 16px 0;
  }
  
  /* Bookings */
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .booking-summary {
    position: static;
  }
  
  /* Chart stage */
  .chart-stage {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  /* Transit strip */
  .transit-strip {
    grid-template-columns: 1fr;
  }
  
  /* Slots */
  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Consultan grid */
  .consultant-grid {
    grid-template-columns: 1fr;
  }
  
  /* Year strip */
  .year-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Architecture */
  .arch-grid.cols-2,
  .arch-grid.cols-3,
  .arch-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  
  /* Hero */
  .hero {
    padding: 64px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-trust {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  /* Auth page */
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    min-height: 200px;
    padding: 32px 24px;
  }
  .auth-card {
    padding: 32px 24px;
  }
  
  /* Process steps */
  .process {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process::before {
    display: none;
  }
  
  /* Status bar */
  .status-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Queue item */
  .queue-item {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  
  /* Schedule row */
  .schedule-row {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  
  /* Earnings */
  .earning-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .earning-hero .big {
    font-size: 32px;
  }
  
  /* Bar chart */
  .bar-chart {
    grid-template-columns: repeat(7, 1fr);
    height: 80px;
  }
  
  /* Investor deck */
  .slide {
    padding: 48px 5vw;
  }
  .slide h1.slide-title {
    font-size: clamp(32px, 8vw, 60px);
  }
  
  /* Contact info */
  .contact-row {
    flex-direction: column;
    gap: 4px;
  }
  
  /* Footer */
  footer {
    padding: 48px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  /* Fix avatar sizing */
  .avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Nav hamburger button */
  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Fix inline width styles */
  img, svg {
    max-width: 100%;
    height: auto;
  }
}

/* ═══════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES — ALL 4 VIEWS
   ═══════════════════════════════════════════════════════ */

/* Public nav mobile open state */
@media (max-width: 960px) {
  .nav-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-menu li a:last-child { border-bottom: none; }
  .nav-cta { display: none; } /* Hidden on mobile, shown in nav dropdown */
  .mobile-nav-toggle { display: flex !important; }
}

/* App shell mobile — sidebar slides from left */
@media (max-width: 959px) {
  .app-shell { grid-template-columns: 1fr !important; }

  .sidebar {
    position: fixed !important;
    top: 0; left: 0;
    width: 280px !important;
    height: 100vh !important;
    background: #0a0b2e !important;
    z-index: 999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1) !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5) !important;
  }
  .sidebar.active {
    transform: translateX(0) !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    position: fixed;
    top: 14px; left: 14px;
    width: 44px; height: 44px;
    background: rgba(10,11,46,0.95);
    border: 1px solid rgba(229,180,55,0.3);
    border-radius: 50%;
    padding: 0;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .mobile-nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: #e5b437;
    border-radius: 1px;
    transition: all 0.28s ease;
  }
  .mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  .app-main {
    padding: 72px 14px 60px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .app-header {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
  }
  .app-header h1 { font-size: clamp(20px, 5vw, 28px); }

  .search-box { width: 100% !important; order: 3; }
  .header-actions { gap: 6px; }

  /* Stat grid: 2 columns on mobile */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Widget grids: single column */
  .grid, [class*="grid-template-columns"] {
    /* Override inline grid with 2+ cols */
  }
  .app-main .grid { grid-template-columns: 1fr !important; }

  /* Watchlist row */
  .watchlist-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Welcome card */
  .welcome-card { grid-template-columns: 1fr !important; padding: 20px 16px !important; }
  .welcome-card h2 { font-size: clamp(20px, 5vw, 28px); }

  /* Status bar */
  .status-bar { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Sector grid: 2 columns */
  .sector-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* CRM split */
  .crm-split { grid-template-columns: 1fr !important; }
  .customer-list { max-height: 300px; overflow-y: auto; }

  /* Queue items */
  .queue-item { flex-wrap: wrap; gap: 8px; }
  .queue-item .btn { width: 100%; }

  /* Booking grid */
  .booking-grid { grid-template-columns: 1fr !important; }
  .booking-summary { order: -1; }

  /* Kanban */
  .kanban { grid-template-columns: 1fr !important; overflow-x: auto; }

  /* Analysis grid in chart viewer */
  .analysis-grid { grid-template-columns: 1fr !important; }

  /* Viewer layout: chart page */
  .viewer-layout { grid-template-columns: 1fr !important; }
  .viewer-sidebar { border-right: none; border-bottom: 1px solid var(--hairline); max-height: 60vh; overflow-y: auto; }
  .viewer-main { min-height: 0; }

  /* Chat layout */
  .chat-shell { grid-template-columns: 1fr !important; }
  .chart-panel { display: none !important; } /* hidden on mobile chat */

  /* Tabs: scrollable on mobile */
  .tab-bar { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }

  /* Cards */
  .card { padding: 16px; }
  .widget { padding: 16px; }

  /* Nav menu in header overlay mode */
  .nav-menu a:hover { background: rgba(229,180,55,0.1); }
}

/* Extra small — phones */
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .app-main { padding: 68px 12px 48px !important; }
  .welcome-card p { font-size: 13px; }
  .natal-chips { flex-wrap: wrap; gap: 6px; }
  .sector-grid { grid-template-columns: repeat(2,1fr) !important; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .year-strip { grid-template-columns: repeat(3,1fr); font-size: 11px; }
  .schedule-row { flex-wrap: wrap; }
  .transit-strip { grid-template-columns: 1fr !important; }
  .chart-stage { grid-template-columns: 1fr !important; }
  .rate-row { flex-wrap: wrap; }
  .forecast-card { padding: 16px; }
  .sidebar-menu a { font-size: 14px; padding: 10px 14px; }
}

/* Animation for nav slide-down */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }

/* ─── Light App Theme ──────────────────────────────────────────
   Triggered by <body class="app-theme"> on app pages only.
   Website marketing pages are completely unaffected.
   ─────────────────────────────────────────────────────────── */
.app-theme {
  background: #ECEDF7;

  --void:         #ECEDF7;
  --midnight:     #FFFFFF;
  --deep:         #F2F3FC;
  --panel:        #FFFFFF;
  --panel-2:      #F0F1FC;
  --elev:         #E8E9F8;
  --hairline:     rgba(0, 0, 0, 0.08);
  --hairline-2:   rgba(0, 0, 0, 0.14);

  --text:         #1A1A50;
  --text-muted:   #6060A0;
  --text-dim:     #9898C0;

  --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md:    0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-gold:  0 6px 24px rgba(229, 180, 55, 0.18);

  /* Override the dark panel gradient used by .card and .widget */
  --grad-panel: linear-gradient(180deg, #FFFFFF 0%, #F8F9FF 100%);
}

/* Hide star/cosmic background — replaced by clean light bg */
.app-theme .cosmic-bg { display: none !important; }

/* Sidebar stays dark — intentional contrast (dark rail + light content) */
.app-theme .sidebar {
  background: rgba(15, 14, 52, 0.97);
  border-right-color: rgba(0, 0, 0, 0.12);
}
.app-theme .sidebar-menu a { color: rgba(200, 200, 230, 0.75); }
.app-theme .sidebar-menu a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}
.app-theme .sidebar-menu a.active { color: var(--gold); }
.app-theme .sidebar-menu .section-label { color: rgba(160, 160, 200, 0.55); }

/* Cards & widgets → white */
.app-theme .card,
.app-theme .widget {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.app-theme .card:hover  { border-color: rgba(0, 0, 0, 0.12); }
.app-theme .widget:hover { border-color: rgba(0, 0, 0, 0.12); }

.app-theme .card-accent {
  background: linear-gradient(135deg, rgba(229,180,55,0.07), rgba(240,240,255,0.95));
  border-color: rgba(229,180,55,0.25);
}

/* Search box */
.app-theme .search-box {
  background: rgba(235, 236, 250, 0.9);
  border-color: rgba(0, 0, 0, 0.09);
  color: var(--text-muted);
}

/* App header bottom border */
.app-theme .app-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 20px;
  margin-bottom: 8px;
}

/* Welcome card */
.app-theme .welcome-card {
  background: linear-gradient(135deg, rgba(229,180,55,0.08) 0%, rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(229,180,55,0.16);
}

/* Planet table */
.app-theme .planet-table thead tr { background: rgba(0,0,0,0.03); }
.app-theme .planet-table thead th { color: var(--text-muted); }
.app-theme .planet-table tbody tr { border-bottom-color: rgba(0,0,0,0.05); }
.app-theme .planet-table tbody tr:hover { background: rgba(139,92,246,0.04); }

/* Form inputs */
.app-theme input[type="text"],
.app-theme input[type="date"],
.app-theme input[type="time"],
.app-theme input[type="email"],
.app-theme input[type="tel"],
.app-theme select,
.app-theme textarea {
  background: #F0F1FC;
  border-color: rgba(0, 0, 0, 0.11);
  color: #1A1A50;
}

/* Month cells (year calendar) */
.app-theme .month-cell.neutral {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.07);
  color: var(--text-muted);
}

/* Natal chips */
.app-theme .natal-chip {
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.16);
  color: #1A1A50;
}

/* Sector signal (neutral) */
.app-theme .signal-neutral {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
  color: var(--text-muted);
}

/* Avatar */
.app-theme .avatar {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(229,180,55,0.2));
  color: #1A1A50;
}

/* App-main background */
.app-theme .app-main { background: #ECEDF7; }
