/* ============================================================
   Sapphire Kundali — Premium Astrology Consultation
   Theme: Deep Sapphire Navy · Celestial Gold · Ivory White
   ============================================================ */

:root {
  /* Core palette */
  --navy-950: #05070f;
  --navy-900: #0a1128;
  --navy-850: #0d1836;
  --navy-800: #101d44;
  --navy-700: #17255b;
  --navy-600: #1f3170;
  --navy-glass: rgba(13, 24, 54, 0.72);

  --gold-300: #f7e7ad;
  --gold-400: #f0d786;
  --gold-500: #d4af37;
  --gold-600: #b8912a;
  --gold-soft: rgba(212, 175, 55, 0.14);

  --ivory: #f7f5ef;
  --white: #ffffff;
  --muted: #9fb0d6;
  --muted-dark: #6f7fa8;

  --success: #4ade80;
  --danger: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-gold: 0 10px 40px -12px rgba(212, 175, 55, 0.45);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --border-gold: 1px solid rgba(212, 175, 55, 0.28);
  --border-soft: 1px solid rgba(159, 176, 214, 0.14);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---------- Starfield background ---------- */
#starfield {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(31, 49, 112, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(23, 37, 91, 0.5), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(16, 29, 68, 0.7), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 40%, var(--navy-950));
}
#stars, #stars2, #stars3 { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  opacity: 0.6;
}
@keyframes twinkle { 0%,100%{opacity:.15; transform:scale(.7);} 50%{opacity:.9; transform:scale(1.15);} }
.shooting-star {
  position: fixed; width: 2px; height: 2px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255,255,255,.8); z-index: -1; pointer-events: none;
}
.shooting-star::after {
  content:''; position:absolute; top:0; left:0; width:90px; height:1px;
  background: linear-gradient(90deg, rgba(255,255,255,.8), transparent);
  transform: translateX(-90px);
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gold-text {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.serif { font-family: var(--font-display); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content:''; width: 26px; height: 1px; background: var(--gold-500); }
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.01em;
}
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -10px rgba(212,175,55,.6); }
.btn-ghost { border: var(--border-gold); color: var(--gold-300); }
.btn-ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-navy { background: var(--navy-700); color: var(--ivory); border: var(--border-soft); }
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); background: rgba(5, 7, 15, 0.72);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, var(--navy-600), var(--navy-900));
  border: var(--border-gold); display: grid; place-items: center;
  position: relative; box-shadow: var(--shadow-gold);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .5px; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .34em; color: var(--gold-400); text-transform: uppercase; font-weight: 500; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-300); background: var(--gold-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; font-size: 1.6rem; color: var(--gold-400); }

/* ---------- Views ---------- */
.view { display: none; animation: fadeUp .5s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.015em;
}
.hero p.lead { color: var(--muted); font-size: 1.12rem; margin: 26px 0 34px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stats .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold-400); }
.hero-stats .lbl { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.trust-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--muted); font-size: .85rem; }
.trust-row .stars { color: var(--gold-400); letter-spacing: 2px; }

/* Zodiac wheel */
.zodiac-wheel { position: relative; width: 100%; aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
.wheel-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.22);
}
.wheel-ring.spin { animation: spin 60s linear infinite; }
.wheel-ring.spin-rev { animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.wheel-core {
  position: absolute; inset: 26%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--navy-700), var(--navy-950));
  border: var(--border-gold); box-shadow: inset 0 0 60px rgba(0,0,0,.6), var(--shadow-gold);
  display: grid; place-items: center; text-align: center;
}
.wheel-core .om { font-size: 3rem; color: var(--gold-400); }
.zodiac-sign {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px;
  display: grid; place-items: center; font-size: 1.1rem; color: var(--gold-300);
  transform-origin: center; border-radius: 50%;
}
.orbit-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }

/* ---------- Cards / grids ---------- */
.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); }
.card {
  background: linear-gradient(160deg, rgba(23,37,91,.55), rgba(10,17,40,.75));
  border: var(--border-soft); border-radius: var(--radius); padding: 30px;
  transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.4); box-shadow: var(--shadow-deep); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); border: var(--border-gold); color: var(--gold-400);
  font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }

/* Feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: var(--gold-soft); border: 1px solid rgba(212,175,55,.2); color: var(--gold-300);
}

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card.featured { border-color: rgba(212,175,55,.5); box-shadow: var(--shadow-gold); }
.service-badge {
  position: absolute; top: 18px; right: 18px; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; background: linear-gradient(120deg,var(--gold-400),var(--gold-600));
  color: var(--navy-900); padding: 5px 12px; border-radius: 999px; font-weight: 700;
}
.price-tag { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 20px; }
.price-tag .cur { font-size: 1.4rem; color: var(--gold-400); font-weight: 600; }
.price-tag .amt { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; }
.price-tag .per { color: var(--muted); font-size: .9rem; }
.feature-list { margin: 8px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ivory); font-size: .92rem; }
.feature-list li i { color: var(--gold-400); margin-top: 3px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-400);
  background: var(--navy-800); border: var(--border-gold); box-shadow: var(--shadow-gold);
}
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .87rem; }

/* ---------- Testimonials ---------- */
.testi-card { display: flex; flex-direction: column; gap: 16px; }
.testi-stars { color: var(--gold-400); letter-spacing: 2px; }
.testi-card p { color: var(--ivory); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); border: var(--border-gold); color: var(--gold-300);
}
.testi-author .who { font-weight: 600; font-size: .92rem; }
.testi-author .role { color: var(--muted); font-size: .78rem; }

/* ---------- Blog ---------- */
.blog-card { padding: 0; overflow: hidden; }
.blog-thumb { height: 180px; display: grid; place-items: center; font-size: 3rem; color: var(--gold-400);
  background: radial-gradient(circle at 40% 30%, var(--navy-700), var(--navy-900)); border-bottom: var(--border-gold); }
.blog-body { padding: 24px 26px 28px; }
.blog-body .meta { font-size: .76rem; color: var(--gold-400); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.blog-body h3 { font-size: 1.3rem; }
.blog-body p { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-item { border: var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; background: rgba(13,24,54,.4); }
.faq-q { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 1.02rem; }
.faq-q i { color: var(--gold-400); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); }
.faq-a div { padding: 0 24px 22px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- App download ---------- */
.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.phone-mock {
  width: 260px; height: 520px; border-radius: 40px; margin: 0 auto; position: relative;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-950));
  border: 3px solid rgba(212,175,55,.35); box-shadow: var(--shadow-deep), var(--shadow-gold); padding: 18px;
}
.phone-notch { width: 90px; height: 20px; background: #05070f; border-radius: 0 0 14px 14px; margin: 0 auto 16px; }
.phone-screen { border-radius: 26px; height: 440px; background: radial-gradient(circle at 50% 20%, var(--navy-800), var(--navy-950)); border: var(--border-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.store-badge { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: var(--navy-800); border: var(--border-gold); transition: transform .25s; }
.store-badge:hover { transform: translateY(-3px); }
.store-badge i { font-size: 1.8rem; color: var(--gold-400); }
.store-badge small { display: block; font-size: .66rem; color: var(--muted); }
.store-badge strong { font-size: .98rem; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-card { background: linear-gradient(160deg, rgba(23,37,91,.5), rgba(10,17,40,.8)); border: var(--border-gold); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 500; color: var(--gold-200, #efe0b0); letter-spacing: .02em; }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(5,7,15,.55);
  border: 1px solid rgba(159,176,214,.18); color: var(--ivory); font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--navy-900); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-tabs { display: flex; background: var(--navy-850); border-radius: 999px; padding: 5px; margin-bottom: 26px; border: var(--border-soft); }
.auth-tabs button { flex: 1; padding: 11px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .25s; }
.auth-tabs button.active { background: linear-gradient(120deg,var(--gold-400),var(--gold-600)); color: var(--navy-900); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 40px 0 80px; align-items: start; }
.dash-side { background: linear-gradient(160deg, rgba(23,37,91,.5), rgba(10,17,40,.8)); border: var(--border-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: var(--border-soft); }
.dash-nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; font-size: .9rem; transition: all .2s; margin-bottom: 4px; }
.dash-nav button:hover { background: var(--gold-soft); color: var(--gold-300); }
.dash-nav button.active { background: var(--gold-soft); color: var(--gold-300); border-left: 3px solid var(--gold-500); }
.dash-nav button i { font-size: 1.1rem; width: 20px; }
.dash-main { min-height: 500px; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeUp .4s ease; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.dash-head h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
.stat {
  background: linear-gradient(160deg, rgba(23,37,91,.5), rgba(10,17,40,.8)); border: var(--border-soft);
  border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden;
}
.stat .ico { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-400); }
.stat .val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--white); }
.stat .lbl { color: var(--muted); font-size: .82rem; }

/* Tables */
.table-wrap { background: linear-gradient(160deg, rgba(23,37,91,.4), rgba(10,17,40,.7)); border: var(--border-soft); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; padding: 15px 18px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); border-bottom: var(--border-soft); background: rgba(5,7,15,.4); }
table.data td { padding: 15px 18px; font-size: .88rem; border-bottom: 1px solid rgba(159,176,214,.08); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(212,175,55,.04); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.badge-warn { background: rgba(251,191,36,.14); color: var(--warning); }
.badge-ok { background: rgba(74,222,128,.14); color: var(--success); }
.badge-info { background: rgba(96,165,250,.14); color: var(--info); }
.badge-mut { background: rgba(159,176,214,.12); color: var(--muted); }
.badge-danger { background: rgba(248,113,113,.14); color: var(--danger); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 3rem; color: var(--gold-500); opacity: .5; display: block; margin-bottom: 16px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,7,15,.8); backdrop-filter: blur(6px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; animation: fadeUp .3s ease; }
.modal { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border: var(--border-gold); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 34px; box-shadow: var(--shadow-deep); max-height: 90vh; overflow-y: auto; }
.modal h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin-bottom: 8px; }
.modal-close { position: absolute; top: 20px; right: 24px; font-size: 1.5rem; color: var(--muted); }

/* Payment modal */
.pay-summary { background: rgba(5,7,15,.4); border: var(--border-soft); border-radius: var(--radius-sm); padding: 20px; margin: 20px 0; }
.pay-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.pay-row.total { border-top: var(--border-soft); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 700; color: var(--gold-400); }
.razor-brand { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 16px; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; bottom: 26px; right: 26px; z-index: 300; display: flex; flex-direction: column; gap: 12px; }
.toast { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: var(--radius-sm); background: var(--navy-800); border: var(--border-gold); box-shadow: var(--shadow-deep); min-width: 300px; animation: slideIn .4s ease; }
.toast i { font-size: 1.4rem; }
.toast.ok i { color: var(--success); }
.toast.err i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast .t-title { font-weight: 600; font-size: .9rem; }
.toast .t-msg { font-size: .8rem; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); border: var(--border-gold); border-radius: var(--radius-lg); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 600; margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { background: linear-gradient(180deg, transparent, rgba(5,7,15,.9)); border-top: 1px solid rgba(212,175,55,.12); padding: 70px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.foot-col h4 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 20px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: var(--gold-300); }
.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-800); border: var(--border-soft); color: var(--gold-400); font-size: 1.1rem; }
.foot-social a:hover { background: var(--gold-soft); transform: translateY(-2px); }
.foot-bottom { border-top: var(--border-soft); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .82rem; }

/* ---------- Misc content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; border: var(--border-gold); aspect-ratio: 4/3; background: radial-gradient(circle at 40% 30%, var(--navy-700), var(--navy-950)); display: grid; place-items: center; }
.about-visual .big-om { font-size: 8rem; color: var(--gold-500); opacity: .35; }
.value-list { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.value-item { display: flex; gap: 16px; }
.value-item .vi-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: var(--border-gold); color: var(--gold-400); font-size: 1.3rem; }
.value-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value-item p { color: var(--muted); font-size: .88rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.cat-pill { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(13,24,54,.5); border: var(--border-soft); font-size: .85rem; transition: all .25s; }
.cat-pill:hover { border-color: rgba(212,175,55,.4); background: var(--gold-soft); transform: translateY(-2px); }
.cat-pill i { color: var(--gold-400); }

.pricing-toggle { display: flex; justify-content: center; margin-bottom: 40px; }
.reply-box { background: rgba(5,7,15,.4); border-left: 3px solid var(--gold-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin-top: 10px; }
.reply-box .from { font-size: .74rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 16px 0; }
.detail-list .dl-row { display: flex; flex-direction: column; }
.detail-list .dl-k { font-size: .72rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: .05em; }
.detail-list .dl-v { font-size: .9rem; }

.slot-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 8px; }
.slot { padding: 12px; border-radius: var(--radius-sm); border: var(--border-soft); text-align: center; font-size: .85rem; cursor: pointer; transition: all .2s; background: rgba(5,7,15,.4); }
.slot:hover { border-color: var(--gold-500); }
.slot.selected { background: var(--gold-soft); border-color: var(--gold-500); color: var(--gold-300); font-weight: 600; }
.slot.taken { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.divider { height: 1px; background: rgba(159,176,214,.14); margin: 24px 0; }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; padding: 14px 16px; background: rgba(13,24,54,.5); border: var(--border-soft); border-radius: var(--radius-sm); }
.filter-bar .flt-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: rgba(5,7,15,.55); border: 1px solid rgba(159,176,214,.18); border-radius: var(--radius-sm); }
.filter-bar .flt-search i { color: var(--gold-400); }
.filter-bar .flt-search input { flex: 1; padding: 10px 0; background: none; border: none; color: var(--ivory); font-size: .88rem; }
.filter-bar .flt-search input:focus { outline: none; }
.filter-bar > input[type=date], .filter-bar > select { padding: 10px 12px; background: rgba(5,7,15,.55); border: 1px solid rgba(159,176,214,.18); border-radius: var(--radius-sm); color: var(--ivory); font-size: .86rem; }
.filter-bar > input[type=date]:focus, .filter-bar > select:focus { outline: none; border-color: var(--gold-500); }
.filter-bar select option { background: var(--navy-900); }

/* Legal pages (privacy / terms) */
.legal .legal-body { max-width: 820px; margin: 0 auto; }
.legal-body > p { color: var(--muted); margin-bottom: 16px; }
.legal-body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ivory); margin: 30px 0 8px; }
.legal-contact { background: rgba(13,24,54,.5); border: var(--border-gold); border-radius: var(--radius); padding: 22px 26px; margin-top: 16px; }
.legal-contact p { display: flex; align-items: center; gap: 12px; color: var(--ivory); font-size: .95rem; margin-bottom: 10px; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-contact i { color: var(--gold-400); font-size: 1.2rem; }
.foot-bottom a:hover { color: var(--gold-300); }

/* Live / Demo mode badge */
.mode-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-left: 6px; }
.mode-badge.demo { background: rgba(251,191,36,.15); color: var(--warning); border: 1px solid rgba(251,191,36,.3); }
.mode-badge.live { background: rgba(74,222,128,.15); color: var(--success); border: 1px solid rgba(74,222,128,.3); }

/* Conversation threads */
.chat { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.msg { border-radius: var(--radius-sm); padding: 12px 16px; max-width: 92%; }
.msg.user { align-self: flex-start; background: rgba(31,49,112,.4); border: 1px solid rgba(159,176,214,.16); border-top-left-radius: 4px; }
.msg.admin { align-self: flex-end; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.24); border-top-right-radius: 4px; }
.msg-head { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--gold-400); font-weight: 600; margin-bottom: 6px; }
.msg.user .msg-head { color: var(--muted); }
.msg-head .msg-tag { background: rgba(5,7,15,.4); border-radius: 999px; padding: 1px 8px; font-size: .64rem; letter-spacing: .04em; }
.msg-head .msg-at { margin-left: auto; font-weight: 400; opacity: .8; }
.msg-body { font-size: .9rem; color: var(--ivory); line-height: 1.55; }

/* Thread meter (count indicator) */
.thread-meter { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(5,7,15,.45); border: 1px solid rgba(212,175,55,.22); }
.thread-meter .tm-label { font-size: .72rem; font-weight: 600; color: var(--gold-300); letter-spacing: .02em; white-space: nowrap; }
.thread-meter .tm-dots { display: flex; gap: 4px; }
.tm-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(159,176,214,.25); }
.tm-dot.open { background: var(--warning); }
.tm-dot.done { background: var(--gold-500); }

/* Follow-up CTA */
.followup-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: var(--border-soft); }
.followup-cta .fu-left { font-size: .8rem; color: var(--muted); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.pager .pg-info { color: var(--muted); font-size: .82rem; }
.pager .pg-nav { display: flex; gap: 6px; }
.pg-num { min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: var(--border-soft); background: rgba(13,24,54,.5); color: var(--muted); font-size: .85rem; font-weight: 600; display: inline-grid; place-items: center; transition: all .2s; }
.pg-num:hover:not(:disabled) { border-color: var(--gold-500); color: var(--gold-300); }
.pg-num.active { background: linear-gradient(120deg,var(--gold-400),var(--gold-600)); color: var(--navy-900); border-color: transparent; }
.pg-num:disabled { opacity: .35; cursor: not-allowed; }

/* Saved birth details card */
.saved-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(5,7,15,.4); border: 1px solid rgba(212,175,55,.2); }
.saved-card .saved-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; }
.saved-card .saved-facts i { color: var(--gold-400); margin-right: 4px; }

/* Quick-pick template chips */
.tpl-chips { display: flex; flex-direction: column; gap: 8px; }
.tpl-chip { text-align: left; padding: 11px 16px; border-radius: var(--radius-sm); background: rgba(5,7,15,.4); border: 1px solid rgba(212,175,55,.2); color: var(--ivory); font-size: .86rem; line-height: 1.4; transition: all .2s; }
.tpl-chip::before { content: '\2726'; color: var(--gold-400); margin-right: 8px; }
.tpl-chip:hover { border-color: var(--gold-500); background: var(--gold-soft); transform: translateX(3px); }

/* No-AI messaging */
.no-ai-band { display: flex; align-items: center; gap: 22px; background: linear-gradient(120deg, rgba(31,49,112,.5), rgba(10,17,40,.7)); border: var(--border-gold); border-radius: var(--radius); padding: 26px 30px; max-width: 900px; margin: 0 auto 40px; }
.no-ai-band .no-ai-ico { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); border: var(--border-gold); color: var(--gold-400); font-size: 2rem; }
.no-ai-band h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.no-ai-band p { color: var(--muted); font-size: .92rem; }
.no-ai-note { display: flex; align-items: flex-start; gap: 12px; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.24); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; font-size: .86rem; color: var(--ivory); }
.no-ai-note i { color: var(--gold-400); font-size: 1.3rem; margin-top: 1px; }

/* Dashboard action cards */
.action-card { cursor: pointer; }
.action-card:hover { border-color: var(--gold-500); }

/* Info banner (reply times) */
.info-band { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; background: var(--gold-soft); border: var(--border-gold); border-radius: var(--radius); padding: 18px 26px; margin: 0 auto; max-width: 760px; text-align: center; }
.info-band i { font-size: 1.6rem; color: var(--gold-400); }
.info-band strong { color: var(--gold-300); }
.info-band .times { display: flex; gap: 10px; }
.info-band .time-pill { background: var(--navy-800); border: var(--border-gold); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .85rem; color: var(--gold-300); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .app-hero, .split { grid-template-columns: 1fr; }
  .zodiac-wheel { max-width: 340px; }
  .grid-3, .grid-4, .steps, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: rgba(5,7,15,.97); flex-direction: column; padding: 20px; gap: 4px; border-bottom: var(--border-gold); transform: translateY(-140%); transition: transform .35s; z-index: 90; }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta .btn.hide-sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .stat-grid, .form-grid, .detail-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band, .form-card { padding: 30px 22px; }
  .hero-stats { gap: 20px; }
  .slot-grid { grid-template-columns: repeat(2,1fr); }
}
