/* Astra's quiet midnight palette: soft contrast, violet light, muted gold. */
:root {
  color-scheme: dark;
  --ink: #080b17;
  --ink-soft: #111427;
  --paper: #e8e5f0;
  --muted: #a09cb2;
  --muted-strong: #c2bed0;
  --gold: #c8b178;
  --lilac: #b7a4e1;
  --teal: #8abbb5;
  --line: #33334d;
  --panel: #141629ed;
  --panel-raised: #1a1c32;
  --glow: #8870bf29;
}

body.astra-page {
  color: var(--paper);
  font-size: 16px;
  background:
    radial-gradient(ellipse at 75% -8%, #392d5c70 0, transparent 38rem),
    radial-gradient(ellipse at 8% 39%, #172b3c65 0, transparent 35rem),
    radial-gradient(ellipse at 84% 76%, #2b21434d 0, transparent 34rem),
    linear-gradient(155deg, #090b17 0%, #0c1020 52%, #090b17 100%);
  background-attachment: fixed;
}
body.astra-page::before { opacity: .15; }
body.astra-page::after {
  opacity: .22;
  filter: drop-shadow(0 0 3px #aa92df55);
  background-image:
    radial-gradient(1.5px 1.5px at 18px 24px, #ddd5f2 98%, transparent),
    radial-gradient(1px 1px at 84px 112px, #9e8cce 98%, transparent),
    radial-gradient(1.5px 1.5px at 177px 56px, #d0c0ec 98%, transparent),
    radial-gradient(1px 1px at 231px 181px, #9ac5bd 98%, transparent);
}
body.astra-page :focus-visible { outline-color: #c0afe8; }
.astra-nav {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 72px;
  padding-inline: max(clamp(1rem, 4vw, 3.25rem), calc((100vw - 75rem) / 2));
  border-bottom: 1px solid #38354f;
  background: #0b0d19ed;
  box-shadow: 0 5px 24px #02030a33;
  backdrop-filter: blur(18px);
}
.astra-brand { color: #eeeaf5; font-size: 1.56rem; }
.astra-brand span { color: var(--gold); }
.astra-nav nav { gap: .2rem; }
.astra-nav nav a { min-height: 42px; padding: .4rem .78rem; color: #b3aec2; font-size: .84rem; }
.astra-nav nav a:hover,
.astra-nav nav [aria-current="page"] {
  color: #eeeaf5;
  border-color: #46405f;
  background: #242139;
}
.astra-page :is(button, .button-primary, .cosmic-primary) {
  border: 1px solid #71608e;
  border-radius: 999px;
  color: #f0ebf6;
  background: linear-gradient(135deg, #665184, #49385f);
  box-shadow: 0 9px 24px #03040c66, inset 0 1px #ffffff20;
  font-weight: 650;
}
.astra-page :is(button, .button-primary, .cosmic-primary):not(:disabled):hover {
  background: linear-gradient(135deg, #786394, #57446f);
  box-shadow: 0 12px 28px #03040c88, inset 0 1px #ffffff2b;
}
.astra-page .button-quiet { color: #c4b8da; }
.astra-page .button-quiet:hover { color: #f0eaf7; }
/* Clear action hierarchy: one calm primary action, quiet secondary controls. */
.astra-page :is(button, .button-primary, .cosmic-primary) {
  min-height: 50px;
  padding: .78rem 1.2rem;
  border: 1px solid #8572aa;
  border-radius: .9rem;
  color: #f3effa;
  background: linear-gradient(140deg, #695788, #4c3c65);
  box-shadow: 0 5px 16px #03040c55, inset 0 1px #ffffff1c;
  font-weight: 650;
  letter-spacing: .005em;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.astra-page :is(button, .button-primary, .cosmic-primary):not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #a995cf;
  background: linear-gradient(140deg, #776493, #594770);
  box-shadow: 0 8px 20px #03040c66, inset 0 1px #ffffff24;
}
.astra-page button:not([type="submit"]):not(.button-primary):not(.cosmic-primary):not(.plans-buy):not(.danger) {
  border-color: #45445d;
  color: #d2cede;
  background: #1a1b2a;
  box-shadow: inset 0 1px #ffffff08;
}
.astra-page button:not([type="submit"]):not(.button-primary):not(.cosmic-primary):not(.plans-buy):not(.danger):not(:disabled):hover {
  border-color: #6d6386;
  color: #f0ebf6;
  background: #242338;
  box-shadow: 0 4px 12px #03040c44;
}
.astra-page button.button-quiet { min-height: 44px; padding: .55rem .8rem; }
.astra-page .button-quiet:not(button) {
  min-height: 42px;
  padding: .35rem .2rem;
  color: #c2bed0;
  text-decoration: underline;
  text-decoration-color: #a79abf66;
  text-underline-offset: .22em;
}
.astra-page .button-quiet:not(button):hover { color: #eee8f7; text-decoration-color: currentColor; }
.astra-page :is(button, a.button-primary, a.button-quiet):focus-visible {
  outline: 3px solid #c3adee;
  outline-offset: 3px;
}
.astra-page button:active:not(:disabled) { transform: translateY(1px); }
.astra-page button.danger,
.astra-page #birth-profile-delete {
  border-color: #80505f;
  color: #f0c4cf;
  background: #291923;
  box-shadow: none;
}
.astra-page button.danger:hover,
.astra-page #birth-profile-delete:hover { border-color: #b16b7d; background: #351d29; }
.astra-page .plans-buy {
  min-height: 54px;
  border-color: #9a84c1;
  color: #f4effb;
  background: linear-gradient(140deg, #705b91, #51406b);
  box-shadow: 0 7px 20px #05040c66, inset 0 1px #ffffff24;
  animation: none;
}
.astra-page .plans-buy:hover { background: linear-gradient(140deg, #80699f, #604b7e); box-shadow: 0 9px 22px #05040c77; }
.astra-page button:disabled { opacity: .58; filter: saturate(.65); }
.tarot-controls .tarot-step { margin: 0 0 .7rem; color: var(--gold); font-size: .72rem; letter-spacing: .12em; }
.tarot-label-hint { color: var(--muted); font-size: .86em; font-weight: 400; }
.forecast-intro { max-width: 42rem; margin: -.8rem 0 1.5rem; color: var(--muted-strong); font-size: 1.02rem; }
.astra-nav nav a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.astra-nav nav a:hover { transform: translateY(-1px); }
.astra-brand span { animation: brand-star 4.8s ease-in-out infinite; transform-origin: center; }
.home-hero .hero-copy { animation: arrive-soft .65s cubic-bezier(.2,.7,.25,1) both; }
.home-hero .hero-art { animation: arrive-soft .8s .12s cubic-bezier(.2,.7,.25,1) both; }
.astra-service { transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.astra-service:hover { transform: translateY(-5px); }
.astra-service:focus-visible { transform: translateY(-2px); }
.service-tarot { animation: arrive-soft .55s .08s both; }
.service-forecast { animation: arrive-soft .55s .16s both; }
.service-numerology { animation: arrive-soft .55s .24s both; }
.tarot-controls, .tarot-table, .numerology-form-panel, .feedback-panel, .plans-checkout {
  animation: arrive-soft .48s cubic-bezier(.2,.7,.25,1) both;
}
.tarot-table #tarot-preview li { animation: card-arrive .45s cubic-bezier(.2,.75,.3,1) both; }
.tarot-table #tarot-preview li:nth-child(2) { animation-delay: .12s; }
.tarot-table #tarot-preview li:nth-child(3) { animation-delay: .24s; }
.tarot-table #tarot-synthesis, .tarot-table #tarot-context { animation: text-arrive .42s ease-out both; }
.astra-page :is(button, a.button-primary):not(:disabled):hover { filter: brightness(1.08); }
.astra-page :is(button, a.button-primary):active:not(:disabled) { transform: translateY(1px) scale(.99); }
.astra-page :is(input, select, textarea) { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
@keyframes arrive-soft { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-arrive { from { opacity: 0; transform: translateY(14px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes text-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes brand-star { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: 18deg; scale: 1.12; } }
@media (prefers-reduced-motion: reduce) {
  .astra-nav nav a, .astra-brand span, .home-hero .hero-copy, .home-hero .hero-art,
  .astra-service, .service-tarot, .service-forecast, .service-numerology,
  .tarot-controls, .tarot-table, .numerology-form-panel, .feedback-panel, .plans-checkout,
  .tarot-table #tarot-preview li, .tarot-table #tarot-synthesis, .tarot-table #tarot-context {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
.astra-page :is(input, select, textarea) {
  border-color: #45425d;
  color: #e7e2ef;
  color-scheme: dark;
  background: #101222;
  box-shadow: inset 0 1px 3px #02030a66;
}
.astra-page :is(input, select, textarea)::placeholder { color: #9691a7; }
.astra-page :is(input, select, textarea):focus {
  border-color: #9b86c5;
  box-shadow: 0 0 0 3px #9178bd2e;
}
.astra-page :is(h1, h2, h3, h4) { color: #e9e5f1; }
.eyebrow { color: #d0b77d; }
.cosmic-main { padding-top: clamp(2rem, 5vw, 4rem); }
.home-hero { min-height: clamp(29rem, 48vw, 38rem); padding-block: 1rem 2.8rem; }
.home-hero h1 { color: #eeebf5; font-size: clamp(3.7rem, 8vw, 6.5rem); }
.home-hero h1 span { color: #baacd9; }
.hero-lede { color: #c2bed0; }
.hero-meta { color: #aaa5b9; }
.hero-meta span { color: var(--gold); }
.hero-card { border-color: #b8a8ce8a; box-shadow: 0 2rem 4rem #02030aa6, 0 0 2.2rem #9e82c626; }
.hero-card-front span { color: #f2e8d4; background: #15121ed9; }
.art-glow { background: radial-gradient(circle, #9b80c44d 0, #62518426 40%, transparent 72%); }
.orbit { border-color: #c1afd435; }
.orbit-two { border-color: #8ebbb733; }
.orbit-three { border-color: #d2b77d40; }
.art-caption { color: #aaa1bd; }
.astra-services { gap: 1.1rem; }
.astra-service {
  min-height: 21rem;
  border: 1px solid #353249;
  border-radius: 1.4rem;
  color: #e6e1ed;
  background: linear-gradient(145deg, #1a1b2ceF, #111322 90%);
  box-shadow: 0 14px 34px #02030a66;
}
.astra-service::before { opacity: .85; background: radial-gradient(ellipse at 93% 10%, #8068a844, transparent 58%); }
.service-forecast::before { background: radial-gradient(ellipse at 93% 10%, #487a7a3b, transparent 58%); }
.service-numerology::before { background: radial-gradient(ellipse at 93% 10%, #a17b443b, transparent 58%); }
.astra-service:hover { border-color: #6c5a83; box-shadow: 0 20px 42px #02030a99; }
.service-topline { color: #aaa5b9; }
.service-topline span:last-child, .service-action { color: #d1c1e7; }
.service-copy h3 { color: #eeeaf4; }
.service-copy p { color: #c1bdce; }
.tarot-art { opacity: .72; filter: saturate(.82); }
.cosmic-orbit { border-color: #668d8975; background: radial-gradient(circle, #5188832d, transparent 68%); }
.cosmic-orbit::before, .cosmic-orbit::after, .cosmic-orbit i { border-color: #9ba9bf43; }
.cosmic-orbit::after { border-color: #c4a56755; }
.number-art { color: #b6a0dd; text-shadow: 0 4px 18px #9a7cc766; }
.number-art span:nth-child(2) { color: #d2b777; }
.number-art span:nth-child(3) { color: #91c5bc; }
.cosmic-panel, .cosmic-reading article {
  border: 1px solid #37344e;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #191a2dee, #121424ed);
  box-shadow: 0 14px 34px #02030a66;
  backdrop-filter: blur(14px);
}
.site-independence { border-color: #4c4262; background: linear-gradient(115deg, #211d35, #171c2b); }
.site-independence h2 { color: #eeeaf5; }
.site-independence p:not(.eyebrow) { color: #c1bdce; }
.astra-plans { border-color: #41394f; background: linear-gradient(145deg, #1c1b2c, #151624); }
.astra-plans p { color: #bdb8c9; }
.astra-plans dt, .astra-plans dd { color: #e9e4ef; }
.plans-symbol { color: #d0b77d; }
.astra-footer { border-color: #343247; color: #9692a5; }
.astra-footer a { color: #c1bdd0; }
.astra-footer a:hover { color: #f0ebf6 !important; }
.product-notice { border-color: #75613f; color: #e0cc9a; background: #282316; }
.tarot-page .tarot-layout { padding-top: clamp(1.3rem, 4vw, 3rem); }
.tarot-controls > p:first-of-type { color: #bdb8c9; }
.tarot-page .tarot-sample { border-color: #403950; background: #151625; }
.tarot-page .tarot-sample summary { color: #d1c0e7; }
.tarot-page .tarot-sample ol { color: #c1bdce; }
.tarot-page #payment-panel,
.astra-page #payment-panel, .astra-page #stars-payment-panel {
  border-color: #514564;
  background: #17182aeF;
}
.plans-page #payment-panel {
  border-color: #5a4c6e;
  background: radial-gradient(ellipse at 85% 0%, #4938615c, transparent 53%), linear-gradient(145deg, #1d1b2f, #141625);
  box-shadow: 0 18px 42px #02030a88;
}
.plans-page #payment-panel > p:has(+ .plans-buy) a { color: #d0bee6; }
.plans-page #payment-panel .plans-benefits li { color: #c6c1d0; }
.plans-price, .plans-price strong { color: #f0ebf5; }
.tarot-table {
  border-color: #3d394f;
  background: radial-gradient(ellipse at 50% 0%, #27213b, #111321 70%);
  box-shadow: 0 16px 38px #02030a77;
}
.tarot-table h2, .tarot-table #tarot-preview strong { color: #eeeaf4; }
.tarot-table .tarot-back { border-color: #74628a; box-shadow: 0 8px 18px #02030a99; }
.tarot-table :is(.tarot-slots li > span:last-child, #tarot-preview .tarot-position) { color: #b4afc1; }
.tarot-table h3 { color: #d0bce6; }
.tarot-table #tarot-synthesis { color: #e6e1ec; }
.tarot-table article section { border-color: #3b374b; }
.tarot-page .tarot-controls button.tarot-secondary { border-color: #4a455e; color: #d0cadd; background: #1b1b2b; }
.tarot-page .tarot-controls button.tarot-secondary:hover { color: #f0ebf5; background: #25233a; }
.tarot-page #tarot-status { color: #c4bfd0; }
.tarot-page #tarot-history-shortcut a { color: #9ac9c0; }
.account-value, .account-reading h3 { color: #e3d8f0; }
.account-card p:last-child, .account-card .account-free, .account-heading p, #account-status,
.account-link-note, .account-preferences-form label { color: #beb9cb; }
.account-preferences-form select, .account-preferences-form input:not([type=checkbox]),
.account-note-input { border-color: #45405a; color: #e6e1ec; background: #101222; }
.astra-page .account-note-actions button.button-quiet { border-color: #49445a; color: #d0cadd; background: #191a2b; }
.account-section-heading .eyebrow, .account-card .eyebrow, .account-section .eyebrow { color: #d0b77d; }
.account-payment, .account-reading { border-color: #3d394e; }
.account-reading-note { border-color: #403b55; background: #111422; }
.account-reading-note h3 { color: #d0bce6; }
.account-empty, .account-reading-date, .payment-state, .account-card-row figcaption { color: #aaa5b8; }
.account-payment .payment-state.is-paid, .account-feedback, #birth-profile-status, #preferences-status { color: #94c8bd; }
.account-delivery-blocked { border-color: #754e52; background: #25191f; }
.feedback-hint, .natal-profile-link, .numerology-privacy, .method-note { color: #aaa5b8; }
.feedback-page .feedback-panel, .method-main .method-card, .plans-checkout { border-color: #39364e; }
.method-lede, .method-card li, .method-card > p:not(.eyebrow) { color: #c1bdce; }
.lunar-calendar li { border-color: #3a374c; }
.lunar-calendar li div, #horoscope-basis { color: #aaa5b8; }
#horoscope h3 { color: #d0bce6; }
#horoscope-text { color: #e6e1ec; }
#horoscope { border-color: #3d394e; }
.numerology-results, .numerology-form-panel { color: #e8e5f0; }
.numerology-main h1, .numerology-main h2 { color: #eeeaf5; }
.numerology-main #numerology-form input { color-scheme: dark; }
.numerology-lede, .numerology-privacy, .numerology-note, .numerology-method { color: #b8b3c5; }
.number-card { border-color: #3e3a51; background: linear-gradient(145deg, #1b1b2e, #141625); }
.number-card:nth-child(4n + 1) { border-color: #6d5a41; }
.number-card h3, .number-card p { color: #c1bdce; }
.number-value { color: #d5bd83; }
.number-theme { color: #c5b1e3; }
.number-card code { color: #d2cde0; }
.offer-page .cosmic-panel { color: #c6c1d0; }
.offer-page .cosmic-panel :is(h1, h2, h3, strong) { color: #eeeaf5; }
.telegram-auth-panel { color: #c6c1d0; }
.telegram-auth-panel h1 { color: #eeeaf5; }

@media (max-width: 760px) {
  .home-hero { min-height: auto; padding-top: .5rem; }
  .astra-services { gap: .8rem; }
}
@media (max-width: 560px) {
  body.astra-page { background-attachment: scroll; }
  .astra-nav { display: flex; flex-wrap: wrap; gap: .2rem; padding: .55rem .75rem .7rem; }
  .astra-brand { min-height: 40px; font-size: 1.32rem; }
  .astra-nav nav { flex: 1 0 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .1rem; overflow: visible; }
  .astra-nav nav a { flex: 0 0 auto; min-height: 39px; padding: .3rem .5rem; font-size: .75rem; }
  .astra-nav nav .nav-telegram { display: inline-flex; }
  .home-hero h1 { font-size: clamp(3.1rem, 13vw, 4.4rem); }
  .home-hero { padding-bottom: 1.8rem; }
  .astra-service { border-radius: 1.1rem; }
  .cosmic-panel, .cosmic-reading article { border-radius: 1rem; }
  .site-independence { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.astra-page::after { animation: none; }
}
