/* ============================================================
   NUMEROLOGY PAGE — self-contained styles (loaded after styles.css)
   ============================================================ */
.num-intro { text-align: center; margin: 8px auto 18px; }
.num-sanskrit {
    font-family: 'Tiro Devanagari Hindi', serif;
    color: var(--vermillion, #c1272d);
    font-size: 1rem; letter-spacing: 0.04em; margin: 0 0 6px;
}
.num-heading {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 2rem; font-weight: 700; color: var(--ink, #2a2140); margin: 0 0 4px;
}
.num-sub { color: var(--ink-soft, #6b6480); font-size: 0.95rem; margin: 0; }

/* ============================================================
   HERO — today's numerology (gradient + soft glow)
   ============================================================ */
.num-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    max-width: 640px; margin: 0 auto 18px;
    padding: 20px 22px; border-radius: 22px;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 14px 38px rgba(88, 28, 135, 0.32);
}
.num-hero-glow {
    position: absolute; width: 190px; height: 190px; border-radius: 50%;
    right: -50px; top: -70px; pointer-events: none;
    background: radial-gradient(circle, var(--hero, #fbbf24) 0%, transparent 68%);
    opacity: 0.5; animation: num-glow 5s ease-in-out infinite;
}
@keyframes num-glow {
    0%, 100% { transform: scale(1);    opacity: 0.42; }
    50%      { transform: scale(1.16); opacity: 0.62; }
}
.num-hero-l { position: relative; z-index: 1; }
.num-hero-k { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; }
.num-hero-num { font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 2px 0 4px; text-shadow: 0 3px 14px rgba(0,0,0,0.25); }
.num-hero-theme { font-size: 0.86rem; opacity: 0.94; max-width: 210px; line-height: 1.4; }
.num-hero-r { position: relative; z-index: 1; display: grid; gap: 7px; }
.num-hero-stat {
    display: flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px; padding: 5px 12px; backdrop-filter: blur(6px);
    white-space: nowrap;
}
.num-swatch {
    width: 12px; height: 12px; border-radius: 50%; display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.75); flex: 0 0 auto;
}

/* Glass input card + gradient button */
.num-form-wrap {
    max-width: 640px; margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 34px rgba(88, 28, 135, 0.10);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 22px; padding: 22px 22px 18px;
}
.num-form .generate-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border: none; color: #fff; width: 100%;
    box-shadow: 0 8px 24px rgba(88, 28, 135, 0.32);
    transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.num-form .generate-btn:hover { filter: brightness(1.07); box-shadow: 0 12px 30px rgba(88, 28, 135, 0.42); transform: translateY(-2px); }
.num-form .generate-btn:active { transform: scale(0.985); }
.num-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.num-name-note { font-size: 0.8rem; color: var(--ink-soft, #7a7290); margin: 10px 2px 0; text-align: center; }

.num-result { max-width: 920px; margin: 0 auto; }
.num-loading, .num-empty { text-align: center; color: var(--ink-soft, #6b6480); padding: 28px; }

/* Section wrappers — give each block a clear heading + one-line explainer */
.num-section { margin: 0 0 22px; }
.num-section-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.35rem; font-weight: 700; color: var(--ink, #2a2140);
    margin: 0 0 2px; text-align: center;
}
.num-section-desc {
    text-align: center; font-size: 0.86rem; color: var(--ink-soft, #6b6480);
    margin: 0 auto 12px; max-width: 560px; line-height: 1.5;
}
.num-summary-hint { margin-bottom: 8px; }
.num-card-desc {
    font-size: 0.84rem; color: var(--ink-soft, #6b6480);
    margin: 0 0 8px; font-style: italic;
}
.lo-legend {
    display: flex; gap: 18px; justify-content: center; margin: 6px 0 10px;
    font-size: 0.82rem; color: var(--ink-soft, #6b6480);
}
.lo-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.lo-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lo-swatch.lo-on { background: rgba(155, 92, 255, 0.25); border: 1.5px solid rgba(155, 92, 255, 0.5); }
.lo-swatch.lo-off { background: rgba(0, 0, 0, 0.05); border: 1.5px solid rgba(138, 109, 46, 0.3); }

/* Summary badges */
.num-summary {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 6px 0 18px;
}
.num-badge-box { text-align: center; }
.num-badge {
    width: 74px; height: 74px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.1rem; font-weight: 800; margin: 0 auto 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.num-badge-label { font-weight: 700; color: var(--ink, #2a2140); font-size: 0.9rem; }
.num-badge-sub { font-size: 0.8rem; color: var(--ink-soft, #6b6480); }

/* Chips row */
.num-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.num-chip {
    background: rgba(200, 164, 92, 0.1); border: 1px solid rgba(138, 109, 46, 0.2);
    border-radius: 12px; padding: 10px 16px; max-width: 420px;
}
.num-chip-k { display: block; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft, #6b6480); text-transform: uppercase; letter-spacing: 0.03em; }
.num-chip-v { font-size: 0.92rem; color: var(--ink, #2a2140); }
.num-harmony-good { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.3); }
.num-harmony-ok   { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.35); }
.num-harmony-bad  { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.3); }

/* Cards */
.num-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.num-card {
    background: rgba(255, 253, 247, 0.8); border: 1px solid rgba(138, 109, 46, 0.2);
    border-radius: 16px; padding: 18px 18px 14px; margin-bottom: 16px;
}
.num-cards .num-card { margin-bottom: 0; }
.num-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.num-card-num {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; font-weight: 800;
}
.num-card-title { font-family: var(--font-display, serif); font-size: 1.25rem; font-weight: 700; color: var(--ink, #2a2140); }
.num-card-planet { font-size: 0.85rem; }
.num-card-traits { font-size: 0.92rem; line-height: 1.55; color: var(--ink, #2a2140); margin: 0 0 12px; }

.num-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.num-attr { display: flex; flex-direction: column; }
.num-attr-k { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft, #6b6480); text-transform: uppercase; letter-spacing: 0.02em; }
.num-attr-v { font-size: 0.9rem; color: var(--ink, #2a2140); }

/* Name number */
.num-name-systems { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 6px; }
.num-name-sys {
    flex: 1 1 140px; text-align: center; padding: 12px;
    background: rgba(200, 164, 92, 0.08); border-radius: 12px; border: 1px solid rgba(138, 109, 46, 0.16);
}
.num-name-sys-h { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft, #6b6480); text-transform: uppercase; }
.num-name-sys-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.num-name-sys-num small { font-size: 0.9rem; opacity: 0.7; font-weight: 600; }
.num-name-sys-p { font-size: 0.85rem; font-weight: 600; }

/* ============================================================
   RESULT SECTIONS (six core numbers, pinnacles, challenges, …)
   ============================================================ */
.num-bigs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.num-big {
    background: rgba(255, 253, 247, 0.88);
    border: 1px solid rgba(138, 109, 46, 0.18);
    border-top: 4px solid var(--acc, #7c3aed);
    border-radius: 18px; padding: 16px 17px;
}
.num-big-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.num-big-badge {
    width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.9rem; font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.num-big-label { font-family: var(--font-display, serif); font-size: 1.12rem; font-weight: 800; color: var(--ink, #2a2140); line-height: 1.2; }
.num-big-planet { font-size: 0.82rem; font-weight: 600; }
.num-big-comp { font-size: 0.76rem; color: var(--ink-soft, #6b6480); }
.num-big-desc { font-size: 0.82rem; font-style: italic; color: var(--ink-soft, #6b6480); margin: 0 0 6px; }
.num-big-traits { font-size: 0.9rem; line-height: 1.55; color: var(--ink, #2a2140); margin: 0; }

/* Section card panel (wraps timeline / lucky / compat / career) */
.num-panel {
    background: rgba(255, 253, 247, 0.85);
    border: 1px solid rgba(138, 109, 46, 0.18);
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 6px 20px rgba(88, 28, 135, 0.06);
}

/* Pinnacle timeline */
.num-tl { position: relative; padding-left: 8px; }
.num-tl-item { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.num-tl-item:not(:last-child)::before {
    content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
    background: linear-gradient(rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.08));
}
.num-tl-dot {
    width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff;
    font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(88, 28, 135, 0.28);
}
.num-tl-body { padding-top: 3px; }
.num-tl-top { font-weight: 800; color: var(--ink, #2a2140); font-size: 0.95rem; }
.num-tl-age {
    margin-left: 8px; font-size: 0.74rem; font-weight: 700;
    background: rgba(124, 58, 237, 0.12); color: #6d28d9;
    border-radius: 999px; padding: 2px 9px;
}
.num-tl-text { font-size: 0.88rem; color: var(--ink-soft, #4a4458); margin-top: 2px; }

/* Challenges */
.num-chals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.num-chal {
    display: flex; gap: 11px; align-items: flex-start;
    background: rgba(255, 253, 247, 0.85); border: 1px solid rgba(138, 109, 46, 0.18);
    border-left: 4px solid #ef4444; border-radius: 14px; padding: 12px 14px;
}
.num-chal-n {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239, 68, 68, 0.14); color: #b91c1c; font-weight: 800;
}
.num-chal-t { font-weight: 800; font-size: 0.88rem; color: var(--ink, #2a2140); }
.num-chal-x { font-size: 0.84rem; color: var(--ink-soft, #4a4458); line-height: 1.45; }

/* Personal cycles */
.num-cycs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.num-cyc {
    text-align: center; padding: 14px 10px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(37, 99, 235, 0.10));
    border: 1px solid rgba(124, 58, 237, 0.22);
}
.num-cyc-k { font-size: 0.76rem; font-weight: 800; color: var(--ink-soft, #6b6480); text-transform: uppercase; letter-spacing: 0.03em; }
.num-cyc-n { font-size: 2.1rem; font-weight: 800; color: #6d28d9; line-height: 1.1; }
.num-cyc-t { font-size: 0.8rem; color: var(--ink-soft, #4a4458); line-height: 1.4; }

/* Lucky grid */
.num-lucky { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.num-lk {
    background: rgba(255, 253, 247, 0.85); border: 1px solid rgba(138, 109, 46, 0.18);
    border-radius: 14px; padding: 11px 12px;
}
.num-lk-k { font-size: 0.7rem; font-weight: 800; color: var(--ink-soft, #6b6480); text-transform: uppercase; letter-spacing: 0.03em; }
.num-lk-v { font-size: 0.9rem; font-weight: 700; color: var(--ink, #2a2140); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.num-lk-v .num-swatch { border-color: rgba(0, 0, 0, 0.2); }
.num-mantra {
    margin-top: 10px; text-align: center; font-size: 0.95rem;
    background: rgba(245, 197, 24, 0.14); border: 1px solid rgba(180, 83, 9, 0.24);
    border-radius: 12px; padding: 10px 14px; color: var(--ink, #2a2140);
}

/* Compatibility + careers */
.num-compat { display: grid; gap: 9px; }
.num-cline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.num-cline-k { font-size: 0.86rem; font-weight: 700; color: var(--ink-soft, #4a4458); margin-right: 4px; }
.num-nchip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border-radius: 8px;
    font-weight: 800; font-size: 0.88rem;
}
.num-nc-g { background: rgba(22, 163, 74, 0.15); color: #15803d; }
.num-nc-b { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.num-careers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.num-career {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(124, 58, 237, 0.25); color: var(--ink, #2a2140);
    border-radius: 999px; padding: 7px 15px; font-size: 0.88rem; font-weight: 600;
}

/* FAQ accordion */
.num-faq details {
    border: 1px solid rgba(138, 109, 46, 0.2); border-radius: 12px;
    padding: 11px 15px; margin-bottom: 8px; background: rgba(255, 253, 247, 0.8);
}
.num-faq summary { cursor: pointer; font-weight: 700; color: var(--ink, #2a2140); font-size: 0.96rem; }
.num-faq details[open] summary { margin-bottom: 6px; }
.num-faq p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft, #4a4458); }

/* Gender radios in the form */
.num-gender { display: flex; gap: 18px; padding: 6px 2px; }
.num-gender label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.94rem; color: var(--ink, #2a2140); }

/* Driver / Conductor / Kua cards */
.num-dcks { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; max-width: 520px; }
.num-dck {
    background: rgba(255, 253, 247, 0.85); border: 1px solid rgba(138, 109, 46, 0.2);
    border-radius: 14px; padding: 14px 15px;
}
.num-dck-empty { opacity: 0.75; font-weight: 700; color: var(--ink-soft, #6b6480); }
.num-dck-top { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.num-dck-num {
    width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; font-weight: 800;
    background: var(--indigo, #4338ca);
}
.num-dck-label { font-weight: 800; font-size: 0.95rem; color: var(--ink, #2a2140); line-height: 1.2; }
.num-dck-planet { font-size: 0.82rem; font-weight: 600; }
.num-dck-desc { font-size: 0.83rem; line-height: 1.5; color: var(--ink-soft, #6b6480); margin: 0 0 8px; }

/* "How it is calculated" line */
.num-steps { margin-top: 8px; }
.num-steps-k {
    display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-soft, #6b6480); margin-bottom: 3px;
}
.num-steps code {
    display: block; font-family: 'Courier New', monospace; font-size: 0.82rem;
    background: rgba(155, 92, 255, 0.09); border: 1px solid rgba(155, 92, 255, 0.18);
    border-radius: 8px; padding: 6px 9px; color: var(--ink, #2a2140);
    word-break: break-word;
}

/* Kua directions */
.num-kua-dirs { margin-bottom: 6px; }
.num-dir {
    display: inline-block; font-size: 0.76rem; font-weight: 700;
    background: rgba(14, 116, 144, 0.12); color: #0e7490;
    border-radius: 999px; padding: 2px 9px; margin: 2px 4px 2px 0;
}
.num-dir-best { background: rgba(22, 163, 74, 0.16); color: #15803d; }
.num-kua-grp { font-size: 0.82rem; color: var(--ink, #2a2140); }

/* Lo Shu grid */
.num-loshu { max-width: 100%; }
.lo-grid {
    display: grid; grid-template-columns: repeat(3, 64px); grid-auto-rows: 64px;
    gap: 6px; justify-content: center; margin: 12px auto;
}
.lo-cell {
    border: 1.5px solid rgba(138, 109, 46, 0.3); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.lo-on { background: rgba(155, 92, 255, 0.12); border-color: rgba(155, 92, 255, 0.4); }
.lo-off { background: rgba(0, 0, 0, 0.03); }
.lo-cell-num { font-size: 1.3rem; font-weight: 800; letter-spacing: 2px; color: var(--indigo, #4338ca); }
.lo-missing { margin-top: 8px; }
.lo-missing-h { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft, #6b6480); margin-bottom: 6px; }
.lo-missing ul { margin: 0; padding-left: 20px; }
.lo-missing li { font-size: 0.9rem; margin-bottom: 3px; color: var(--ink, #2a2140); }
.lo-none { text-align: center; color: #16a34a; font-size: 1.4rem; }

@media (max-width: 680px) {
    /* ---------- app-like mobile shell ---------- */
    body.has-appnav { padding-bottom: 78px; }
    body.has-appnav .site-header {
        position: sticky; top: 0; z-index: 800;
        background: rgba(253, 249, 240, 0.94);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 14px rgba(30, 12, 60, 0.08);
    }
    .page-section { padding: 10px 14px 24px; }
    .num-intro { margin-bottom: 14px; }
    .num-sanskrit { font-size: 0.9rem; margin-bottom: 2px; }
    .num-heading { font-size: 1.5rem; }
    .num-sub { font-size: 0.85rem; }
    .num-form-wrap { border-radius: 20px; padding: 16px 15px 14px; }
    .num-section-title { font-size: 1.15rem; }
    .num-badge { width: 62px; height: 62px; font-size: 1.7rem; }
    .num-card { border-radius: 16px; padding: 15px 14px; }
    .num-dck { border-radius: 16px; }

    .num-cards { grid-template-columns: 1fr; }
    .num-dcks { grid-template-columns: 1fr; }
    .num-bigs { grid-template-columns: 1fr; }
    .num-chals { grid-template-columns: 1fr; }
    .num-lucky { grid-template-columns: repeat(2, 1fr); }
    .num-cycs { grid-template-columns: 1fr; }
    .num-hero { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; border-radius: 20px; }
    .num-hero-num { font-size: 2.6rem; }
    .num-hero-theme { max-width: none; }
    .num-hero-r { grid-template-columns: 1fr; }
    .num-tl-dot { width: 38px; height: 38px; font-size: 1.05rem; }
    .num-tl-item:not(:last-child)::before { left: 18px; top: 40px; }
    .num-attrs { grid-template-columns: 1fr; }
    .num-form .two-col { grid-template-columns: 1fr; }
    .num-heading { font-size: 1.6rem; }
}

/* Dark theme niceties */
@media (prefers-color-scheme: dark) {
    .num-form-wrap, .num-card { background: rgba(30, 22, 50, 0.55); }
    .num-name-sys { background: rgba(255, 255, 255, 0.04); }
}
