/* Zastrolo "cosmos" look: deep night sky, glass cards, gold glow. Applies with the night theme (now the default). */
body.night-theme{background:radial-gradient(ellipse at 70% -10%,#24365f 0%,#101a33 45%,#070c1c 100%) fixed}
/* Always out of the page flow (in Day mode it was a screen-tall blank block at the top); only shown at night. */
.z-starfield{position:fixed;inset:0;z-index:0;pointer-events:none;display:none}
body.night-theme .z-starfield{display:block;opacity:.9}
body.night-theme main,body.night-theme .site-header,body.night-theme section,body.night-theme footer{position:relative;z-index:1}

/* Turning zodiac wheel behind the headline */
.z-wheel{position:absolute;left:50%;top:50%;width:min(560px,92vw);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;opacity:.22;z-index:0}
.z-wheel svg{width:100%;height:100%;animation:z-spin 240s linear infinite}
.reading-intro{position:relative}.reading-intro>*:not(.z-wheel){position:relative;z-index:1}
@keyframes z-spin{to{transform:rotate(360deg)}}
body.night-theme .reading-intro h1 i{background:linear-gradient(90deg,#ffe6a8,#d9a446,#ffe6a8);background-size:200% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:z-shine 6s linear infinite}
@keyframes z-shine{to{background-position:200% center}}

/* Glass question card */
body.night-theme #reading-form.input-card{background:linear-gradient(160deg,#ffffff14,#ffffff08)!important;border:1px solid #e3c27a55!important;box-shadow:0 20px 60px #0009,0 0 0 1px #ffffff10 inset,0 0 40px #d9a44622!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#f3e9d2}
body.night-theme #reading-form h2,body.night-theme #reading-form h3,body.night-theme #reading-form legend{color:#ffe2a0!important}
body.night-theme #reading-form label,body.night-theme #reading-form p,body.night-theme #reading-form summary,body.night-theme #reading-form small,body.night-theme #reading-form .input-help{color:#e6dcc4!important}
body.night-theme #reading-form input:not([type=checkbox]),body.night-theme #reading-form textarea,body.night-theme #reading-form select,body.night-theme .simple-date select{background:#0b1329cc!important;color:#fff7e3!important;border:1px solid #e3c27a66!important;border-radius:12px!important}
body.night-theme #reading-form input::placeholder,body.night-theme #reading-form textarea::placeholder{color:#b9b0a0!important}
body.night-theme #reading-form input:focus,body.night-theme #reading-form textarea:focus,body.night-theme .simple-date select:focus{outline:none!important;border-color:#ffd77a!important;box-shadow:0 0 0 3px #ffd77a33!important}
body.night-theme #reading-form details{background:#ffffff08!important;border-color:#e3c27a33!important}

/* Mode pills */
body.night-theme .reading-mode{background:#ffffff0d!important;color:#efe4cb!important;border:1px solid #e3c27a44!important;transition:transform .2s,box-shadow .2s,background .2s}
body.night-theme .reading-mode:hover{transform:translateY(-2px);box-shadow:0 6px 20px #d9a44633}
body.night-theme .reading-mode.is-active{background:linear-gradient(135deg,#ffe2a0,#c9963f)!important;color:#14203d!important;border-color:#ffe2a0!important;box-shadow:0 0 24px #e9b95a66}

/* Example chips */
body.night-theme .z-examples span{color:#e3c27a}
body.night-theme .z-examples button{background:#ffffff0f;border-color:#e3c27a55;color:#f3e9d2}
body.night-theme .z-examples button:hover{background:#e3c27a33}

/* Glowing main button */
body.night-theme #reading-form .button-primary,body.night-theme .step-next{background:linear-gradient(135deg,#ffe2a0,#d9a446 55%,#b07a2a)!important;color:#14203d!important;border:0!important;font-weight:700!important;box-shadow:0 10px 30px #d9a44655,0 0 0 1px #fff3 inset;position:relative;overflow:hidden}
body.night-theme #reading-form .button-primary::after,body.night-theme .step-next::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#ffffff66 50%,transparent 70%);transform:translateX(-100%);animation:z-sweep 3.5s ease-in-out infinite}
@keyframes z-sweep{60%,100%{transform:translateX(100%)}}

/* Result panel glow */
body.night-theme #result-card{box-shadow:0 20px 70px #000a,0 0 50px #4a6fb033;border:1px solid #8fb0ff33}
body.night-theme .z-astro{background:linear-gradient(160deg,#ffffff0d,#ffffff05);border-radius:20px}

/* Simpler page: fewer long text sections */
.quiet-method,#astrologers{display:none!important}

@media(max-width:650px){
  .z-wheel{width:120vw;opacity:.16}
  body.night-theme #reading-form.input-card{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .reading-intro .hero-lede{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.z-wheel svg,body.night-theme .reading-intro h1 i,body.night-theme #reading-form .button-primary::after,body.night-theme .step-next::after{animation:none}.z-starfield{display:none}}
body.night-theme #reading-form input,body.night-theme #reading-form select,body.night-theme #reading-form textarea{color-scheme:dark}
/* Phone birth-date box (fastdate.js) */
.z-typed-date{display:none;grid-template-columns:1fr!important;gap:4px!important}
@media(max-width:650px){.z-typed-date{display:grid!important}}
.z-typed-date input{width:100%;height:50px;padding:10px 14px;font:inherit;font-size:20px!important;letter-spacing:.08em;border:1px solid #b9aa8e;border-radius:12px;background:#fffdf8;color:#24394b;box-sizing:border-box}
.z-date-hint{font-size:13px;color:#2f7a4a;min-height:1em}
body.night-theme .z-typed-date input{background:#0b1329cc;color:#fff7e3;border-color:#e3c27a66}
body.night-theme .z-date-hint{color:#9be0b0}
/* Phone birth-time box (fastdate.js) */
.z-typed-time{display:none}
@media(max-width:650px){#time-input{display:none!important}.z-typed-time{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:6px 0}.z-typed-time .z-date-hint{grid-column:1/-1}}
.z-typed-time input{width:100%;height:50px;padding:10px 14px;font:inherit;font-size:20px;letter-spacing:.08em;border:1px solid #b9aa8e;border-radius:12px;background:#fffdf8;color:#24394b;box-sizing:border-box}
.z-ampm{display:flex;gap:6px}.z-ampm button{height:50px;min-width:56px;border-radius:12px;border:1px solid #b9aa8e;background:#fffdf8;color:#24394b;font:inherit;font-weight:700;font-size:16px}
.z-ampm button.is-on{background:linear-gradient(135deg,#ffe2a0,#c9963f);color:#14203d;border-color:#d9a446}
body.night-theme .z-typed-time input,body.night-theme .z-ampm button:not(.is-on){background:#0b1329cc;color:#fff7e3;border-color:#e3c27a66}
/* Floating birth-city list (see simplify.js) */
.z-place-wrap{position:relative}
.z-place-wrap #city-suggestions{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;box-shadow:0 14px 40px #0006;border-radius:12px;overflow:auto}
body.night-theme .z-place-wrap #city-suggestions{background:#101a33!important;border:1px solid #e3c27a55}
body.night-theme .z-place-wrap #city-suggestions button{color:#f3e9d2!important;background:transparent}

/* Daily question: only the answer (Yes/Wait/No, short reason, best times today, small remedy). Big decision shows everything. */
body.z-mode-daily #result-card :is(.birthday-dossier,.sky-panel,.kundli-panel,.chart-guidance,.life-areas,.number-deep-dive,.number-meanings,.lucky-picks,.name-ideas,.choice-compass,.business-panel,.visa-check,.reading-details,.number-note,.z-lucky,#nature-summary,.source-notes,.z-scales,.z-planets,.z-lucky){display:none!important}
body.z-mode-daily #result-card :is(h3:has(+ #nature-summary),h3:has(+ .z-scales),h3:has(+ .z-planets),.z-h:has(+ .z-scales),.z-h:has(+ .z-planets)){display:none!important}
body.z-mode-daily #result-card #ai-answer :is(h4,#outlook-answer){display:none!important}
body.z-mode-daily #result-card #ai-answer h4:has(+ #guidance-answer){display:block!important}

/* Kundli tab: only the birth chart, no question and no AI answer. */
body.z-mode-kundli #reading-form :is(label[for="question-input"],#question-input,.z-examples,.question-ideas,#question-ideas,details.more-details){display:none!important}
body.z-mode-kundli #result-card .reading-output > :not(.result-kicker):not(h2):not(.kundli-panel):not(.sky-panel){display:none!important}

/* Tabs: five buttons fit on phones */
@media(max-width:650px){#reading-form .reading-mode[data-mode="kundli"]{grid-column:1/-1}}
body.z-mode-daily #result-card :is(.reading-symbols,.compatibility-panel,.source-evidence){display:none!important}

/* Readable error messages in both themes (night had cream text on a near-white box). */
.form-error,.error{background:#fff1ec!important;color:#8a1f12!important;border:1px solid #e3a99c!important;border-left:4px solid #c2412d!important;border-radius:12px;padding:12px 14px!important;font-weight:500;line-height:1.5}
.night-theme .form-error,.night-theme .error{background:#3a1416!important;color:#ffd9d2!important;border-color:#8c3a33!important;border-left-color:#ff7a66!important}

/* Guides tab: always visible, also on phones where the other header links are hidden. */
.header-links a.z-guides-tab{display:inline-flex!important;align-items:center;font-weight:600;color:#ffe2a0!important;border:1px solid #d8b46a;border-radius:999px;padding:6px 12px;text-decoration:none;white-space:nowrap}
@media (max-width:480px){.header-links a.z-guides-tab{padding:5px 10px;font-size:13px}}
@media (max-width:480px){
  header .header-links{gap:6px!important}
  header .header-links a.z-guides-tab{padding:4px 9px;font-size:12px}
  header #account-link{font-size:12px!important;letter-spacing:0!important}
  header .theme-toggle{padding:6px 9px!important;font-size:12px!important}
}
@media (max-width:480px){
  header.site-header{padding-left:12px!important;padding-right:12px!important}
  header.site-header .brand .brand-mark{display:none!important}
  header.site-header nav.header-links{gap:5px!important}
  header.site-header nav.header-links a.z-guides-tab{padding:4px 8px!important;font-size:12px!important}
}
/* Phones: header tabs hidden; a tab bar under the header shows Guides and Calculator instead. */
.z-tabbar{display:none}
@media (max-width:480px){
  header.site-header nav.header-links a.z-guides-tab{display:none!important}
  .z-tabbar{display:flex;gap:8px;justify-content:center;padding:8px 12px;position:relative;z-index:5}
  .z-tabbar a{flex:1;text-align:center;font-weight:600;font-size:14px;color:#ffe2a0;border:1px solid #d8b46a;border-radius:999px;padding:7px 10px;text-decoration:none;background:#0b122699}
  body:not(.night-theme) .z-tabbar a{color:#7a5410;border-color:#c9a35b;background:#fffaf0cc}
}
/* Owner's rule: no name suggestions anywhere. */
.name-ideas{display:none!important}
