/* =====================================================
   AI Pandit Ji — Design tokens & base styles
   ===================================================== */
:root {
    --bg: #12121f;
    --bg-alt: #191929;
    --surface: #1e1e33;
    --surface-2: #262640;
    --border: #33334d;
    --gold: #d9b25f;
    --gold-soft: #f0d9a0;
    --text: #eceaf6;
    --text-dim: #a5a3bd;
    --text-faint: #6f6d8a;
    --green: #4ade80;
    --red: #f87171;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-serif: 'Georgia', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b8862f);
    color: #1a1408;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,178,95,0.35); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--gold-soft);
    border: 1px solid var(--border);
}

/* ---------- Top banner ---------- */
.top-banner {
    background: linear-gradient(90deg, #b8862f, var(--gold));
    color: #1a1408;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}
.top-banner a { text-decoration: underline; }

/* ---------- Header ---------- */
header.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18,18,31,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1.25rem; color: var(--text);
}
.logo span { color: var(--gold); }
.nav-links {
    display: flex; align-items: center; gap: 26px;
    font-size: 0.92rem; color: var(--text-dim);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.wallet-pill {
    display: flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--gold-soft);
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
    padding: 70px 0 50px;
    background:
        radial-gradient(circle at 15% 20%, rgba(217,178,95,0.10), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(160,120,255,0.10), transparent 40%);
    text-align: center;
}
.eyebrow {
    color: var(--gold-soft); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-weight: 700;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
    max-width: 640px; margin: 0 auto 30px; color: var(--text-dim); font-size: 1.05rem;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
    display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
    color: var(--text-faint); font-size: 0.85rem;
}

.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    max-width: 900px; margin: 50px auto 0; text-align: center;
}
.stats-strip .stat b { display: block; font-size: 1.7rem; color: var(--gold); font-family: var(--font-serif); }
.stats-strip .stat span { font-size: 0.82rem; color: var(--text-faint); }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
.section-tag { color: var(--gold-soft); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 8px; }
.section-sub { color: var(--text-dim); max-width: 640px; }
.section-head { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px;
}
.step-num { color: var(--gold); font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 10px; }
.step-card h3 { margin: 0 0 8px; }
.step-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Astrologer cards ---------- */
.astro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.astro-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; position: relative; transition: transform .15s ease, border-color .15s ease;
}
.astro-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.astro-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar {
    width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #1a1408; font-size: 1rem; flex-shrink: 0; position: relative;
}
.avatar .dot {
    position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--surface);
}
.dot.online { background: var(--green); }
.dot.offline { background: var(--text-faint); }
.astro-card h4 { margin: 0; font-size: 1rem; }
.astro-meta { font-size: 0.8rem; color: var(--text-faint); }
.astro-card .bio { font-size: 0.85rem; color: var(--text-dim); margin: 10px 0; min-height: 42px; }
.astro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: 0.72rem; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; color: var(--text-dim); }
.astro-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price-tag { color: var(--gold-soft); font-weight: 700; }
.price-tag small { color: var(--text-faint); font-weight: 400; }
.stars { color: var(--gold); font-size: 0.85rem; }

/* ---------- Services / tools grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px;
}
.service-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.service-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.service-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 12px; }
.service-card ul { margin-bottom: 12px; }
.service-card li { font-size: 0.82rem; color: var(--text-dim); padding-left: 16px; position: relative; margin-bottom: 4px; }
.service-card li::before { content: "•"; color: var(--gold); position: absolute; left: 0; }
.service-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-faint); }

.tool-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px; text-align: center; font-size: 0.9rem; font-weight: 600;
}
.tool-card .icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.tool-card:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Rashi wheel ---------- */
.rashi-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.rashi-pill {
    flex: 0 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; min-width: 90px;
}
.rashi-pill.active, .rashi-pill:hover { border-color: var(--gold); background: var(--surface-2); }
.rashi-pill .sym { font-size: 1.4rem; color: var(--gold); }
.rashi-pill .en { font-size: 0.78rem; margin-top: 4px; }
.rashi-pill .hi { font-size: 0.72rem; color: var(--text-faint); }

/* ---------- Forms ---------- */
.form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; max-width: 460px; margin: 0 auto;
}
.form-card h2 { font-family: var(--font-serif); margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); font-family: var(--font);
    font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; text-align: center; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 16px; }
.alert-error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.alert-success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.4); color: #86efac; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 50px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--gold-soft); font-size: 0.85rem; margin-bottom: 12px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-faint); font-size: 0.8rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Chat ---------- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 20px; height: 70vh; }
.chat-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.chat-side .avatar { width: 80px; height: 80px; font-size: 1.6rem; margin: 0 auto 14px; }
.chat-timer { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin-top: 16px; }
.chat-timer b { color: var(--gold); font-size: 1.3rem; }
.chat-main { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; }
.msg.user { align-self: flex-end; background: var(--gold); color: #1a1408; border-bottom-right-radius: 4px; }
.msg.astrologer { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; color: var(--text-faint); font-size: 0.78rem; }
.chat-input { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }
@media (max-width: 800px) { .chat-shell { grid-template-columns: 1fr; height: auto; } }

/* ---------- Kundli result ---------- */
.kundli-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 24px; }
.kundli-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.kundli-fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.kundli-fact span { display: block; font-size: 0.78rem; color: var(--text-faint); margin-bottom: 4px; }
.kundli-fact b { color: var(--gold-soft); }
@media (max-width: 700px) { .kundli-grid { grid-template-columns: 1fr; } }

.wallet-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.tx-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.tx-row:last-child { border-bottom: none; }
.tx-credit { color: var(--green); }
.tx-debit { color: var(--red); }
