.astro-chart {
    --astro-accent: #fe4f70;
    --astro-accent-soft: rgba(254, 79, 112, 0.12);
    --astro-ink: var(--bs-body-color, #203656);
    --astro-muted: var(--cbg-article-color, #4e607a);
    --astro-surface: var(--cbg-module-white, #fff);
    --astro-wash: var(--cbg-module-bgcolor, #f5f6f9);
    --astro-line: var(--cbg-grey-color, #ebebeb);
    --astro-btn: var(--cx-gradient-rad, linear-gradient(to right, #fe4f70 0%, #ffa387 51%, #fe4f70 100%));
    max-width: 960px;
    margin: 12px auto 40px;
    padding: 22px 22px 28px;
    color: var(--astro-ink);
    font-family: inherit;
    background: var(--astro-surface);
    border: 1px solid var(--astro-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(32, 54, 86, 0.06);
    overflow: hidden;
}

.astro-chart * { box-sizing: border-box; }
.astro-chart [hidden] { display: none !important; }

.astro-ritual {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.astro-ritual li {
    flex: 1;
    text-align: center;
    color: var(--astro-muted);
    font-size: 12px;
    font-weight: 600;
}
.astro-ritual .ritual-num {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}
.astro-ritual li::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: var(--astro-line);
}
.astro-ritual li.is-done,
.astro-ritual li.is-current { color: var(--astro-accent); }
.astro-ritual li.is-done::after,
.astro-ritual li.is-current::after { background: var(--astro-accent); }

.astro-head { text-align: center; margin-bottom: 18px; }
.astro-kicker {
    margin: 0 0 6px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: var(--astro-accent);
}
.astro-head h2 {
    margin: 0 0 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: -0.02em;
    color: var(--astro-ink);
}
.astro-lead { margin: 0 auto; max-width: 46em; color: var(--astro-muted); line-height: 1.5; }

.astro-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.astro-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--astro-line);
    background: var(--cbg-list-bgcolor, #fff);
    border-radius: 12px;
    padding: 18px 12px 16px;
    color: var(--astro-ink);
    font: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.astro-mode:hover { transform: translateY(-2px); border-color: var(--astro-accent); }
.astro-mode.is-on {
    background: var(--astro-accent-soft);
    border-color: var(--astro-accent);
    box-shadow: 0 0 0 1px var(--astro-accent);
}
.astro-mode-glyph { color: var(--astro-accent); font-size: 18px; line-height: 1; }
.astro-mode strong { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; }
.astro-mode em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-weight: 450;
    font-size: 13px;
    line-height: 1.4;
    color: var(--astro-muted);
    min-height: 2.6em;
}

.astro-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-top: 18px;
}
.astro-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
}
.astro-form label.astro-check {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-weight: 550;
}
.astro-form input[type="checkbox"] {
    width: auto;
    flex: none;
    margin: 0;
}
.astro-form label i { font-style: normal; font-weight: 450; color: var(--astro-muted); }
.astro-form input,
.astro-form select,
.astro-form textarea {
    width: 100%;
    font: inherit;
    font-weight: 450;
    color: var(--astro-ink);
    background: var(--bs-form-control-bg, var(--astro-surface));
    border: 1px solid var(--astro-line);
    border-radius: 12px;
    padding: 10px 12px;
}
.astro-form input:focus,
.astro-form select:focus,
.astro-form textarea:focus { outline: 2px solid var(--astro-accent); outline-offset: 2px; }
.astro-form textarea { resize: vertical; min-height: 88px; }
.astro-natal-form label:nth-child(4),
.astro-natal-form label:nth-child(5),
.astro-question-form label,
.astro-form .astro-btn { grid-column: 1 / -1; }
.astro-form .astro-btn {
    display: block;
    justify-self: center;
    min-width: 220px;
    margin-top: 6px;
}

.astro-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    background-image: var(--astro-btn);
    background-size: 200% auto;
    box-shadow: 0 8px 18px rgba(254, 79, 112, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.astro-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.astro-btn:disabled { opacity: 0.7; cursor: wait; filter: saturate(0.75); }

.astro-stage { margin-top: 22px; }
.astro-board {
    --astro-accent: #f6e2b0;
    --astro-accent-soft: rgba(246, 226, 176, 0.16);
    --astro-ink: #f7f0e2;
    --astro-muted: #d9c7a4;
    --astro-line: rgba(246, 226, 176, 0.38);
    --astro-wash: rgba(246, 226, 176, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto 8px;
    padding: 18px 12px 16px;
    color: var(--astro-ink);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 214, 140, 0.16), transparent 26%),
        radial-gradient(circle at 88% 4%, rgba(255, 196, 110, 0.1), transparent 22%),
        radial-gradient(circle at 72% 92%, rgba(120, 72, 24, 0.34), transparent 34%),
        linear-gradient(180deg, #2a1c10 0%, #1a120c 52%, #120e0a 100%);
    border: 1px solid rgba(246, 226, 176, 0.5);
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(246, 226, 176, 0.14), 0 18px 36px rgba(42, 28, 10, 0.18);
}
.astro-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.2px 1.2px at 8% 22%, #fff 50%, transparent 52%),
        radial-gradient(1.4px 1.4px at 18% 68%, #f6e2b0 50%, transparent 52%),
        radial-gradient(1px 1px at 32% 16%, #fff 50%, transparent 52%),
        radial-gradient(1.5px 1.5px at 58% 12%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 74% 38%, #f6e2b0 50%, transparent 52%),
        radial-gradient(1.3px 1.3px at 92% 24%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 86% 72%, #fff 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 46% 84%, #f6e2b0 50%, transparent 52%);
    opacity: 0.75;
}
.astro-board::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: inset -12px 3px 0 0 rgba(246, 226, 176, 0.82);
    pointer-events: none;
    opacity: 0.8;
}
.astro-board > * { position: relative; z-index: 1; }
.astro-wheel {
    position: relative;
    width: min(480px, 100%);
    margin: 4px auto 0;
    color: #f6e7c4;
    filter: drop-shadow(0 18px 26px rgba(92, 62, 18, 0.28));
}
.astro-wheel::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: -7%;
    height: 16%;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(210, 158, 64, 0.38), transparent 70%);
}
.astro-wheel svg { width: 100%; height: auto; display: block; }
.astro-wheel.is-spinning .astro-layer-signs {
    transform-box: view-box;
    transform-origin: center;
    animation: astro-wheel-spin var(--astro-spin, 4.6s) cubic-bezier(.15, .7, .2, 1) both;
}
@keyframes astro-wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(1080deg); }
}
.astro-wheel.is-ritual .astro-layer-houses,
.astro-wheel.is-ritual .astro-layer-aspects,
.astro-wheel.is-ritual .astro-layer-asc,
.astro-wheel.is-ritual .astro-layer-star,
.astro-wheel.is-ritual .astro-body {
    opacity: 0;
    transition: opacity 0.55s ease;
}
.astro-wheel.is-ritual .is-lit { opacity: 1; }

.astro-orb {
    position: relative;
    width: 148px;
    height: 148px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.astro-orb.is-on { opacity: 1; }
.astro-wheel .astro-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 26%;
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}
.astro-wheel .astro-orb.is-gone {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
}
.astro-orb-glass {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08) 26%, transparent 42%),
        radial-gradient(circle at 50% 60%, rgba(255, 220, 150, 0.78), rgba(120, 74, 22, 0.28) 60%, rgba(42, 26, 10, 0.16) 78%);
    box-shadow:
        inset 0 0 22px rgba(255, 230, 180, 0.55),
        inset 0 -16px 26px rgba(90, 52, 12, 0.28),
        0 0 28px rgba(232, 176, 74, 0.5),
        0 0 0 6px rgba(246, 226, 176, 0.3);
}
.astro-orb-core {
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    background: conic-gradient(from 20deg, rgba(255, 214, 140, 0), rgba(255, 244, 210, 0.95), rgba(232, 168, 64, 0.8), rgba(255, 214, 140, 0));
    filter: blur(7px);
    animation: astro-swirl 2.6s linear infinite;
}
.astro-orb-shine {
    position: absolute;
    left: 18%;
    top: 12%;
    width: 36%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    filter: blur(1px);
    transform: rotate(-24deg);
}
.astro-orb-base {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -10%;
    height: 16%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(243, 215, 161, 0.55), transparent 70%);
}
@keyframes astro-swirl { to { transform: rotate(360deg); } }

.astro-rite {
    list-style: none;
    max-width: 460px;
    margin: 14px auto 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.astro-rite li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--astro-muted);
    font-size: 13px;
    opacity: 0.45;
}
.astro-rite li i {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--astro-line);
}
.astro-rite li.is-done { opacity: 0.8; }
.astro-rite li.is-now {
    opacity: 1;
    color: var(--astro-ink);
    font-weight: 650;
}
.astro-rite li.is-done i,
.astro-rite li.is-now i {
    background: var(--astro-accent);
    box-shadow: 0 0 0 4px var(--astro-accent-soft);
}
.astro-arrive { animation: astro-rise 0.45s ease both; }
@keyframes astro-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.astro-omen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.astro-omen .astro-orb { width: 108px; height: 108px; }
.astro-omen-line { margin: 0; color: var(--astro-ink); font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
    .astro-wheel.is-spinning .astro-layer-signs,
    .astro-orb-core,
    .astro-arrive { animation: none; }
}
.astro-chart-svg { overflow: visible; }
.astro-ico { display: inline-block; vertical-align: -0.2em; }
.astro-ico path,
.astro-chart-svg svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.astro-ico .astro-fill,
.astro-chart-svg .astro-fill {
    fill: currentColor;
    stroke: none;
}
.astro-chart-svg .astro-sign-label,
.astro-chart-svg .astro-body-label {
    font-family: inherit;
    letter-spacing: 0.02em;
}
.astro-mode-glyph .astro-ico { width: 22px; height: 22px; color: var(--astro-accent); }
.astro-sign .astro-ico { width: 26px; height: 26px; display: block; margin: 0 auto; color: var(--astro-accent); }

.astro-chips, .astro-draws { margin: 14px 0 8px; }
.astro-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.astro-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--astro-wash);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}
.astro-chip b { font-weight: 650; }
.astro-chip i { font-style: normal; color: var(--astro-muted); }
.astro-chip .astro-ico { width: 16px; height: 16px; color: var(--astro-accent); }
.astro-rx { font-style: normal; font-weight: 700; color: var(--astro-accent); font-size: 11px; }
.astro-facts { margin-top: 12px; display: grid; gap: 10px; }
.astro-house-grid, .astro-aspect-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.astro-house-grid span, .astro-aspect-list span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--astro-wash);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}
.astro-house-grid b { font-weight: 700; min-width: 1.1em; }
.astro-house-grid .astro-ico, .astro-aspect-list .astro-ico { width: 14px; height: 14px; color: var(--astro-accent); }
.astro-aspect-list i { font-style: normal; color: var(--astro-muted); }
.astro-note { margin: 8px 0 0; text-align: center; color: var(--astro-muted); font-size: 13px; }

.astro-draws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.astro-draw {
    background: var(--astro-wash);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
}
.astro-draw-marks { display: flex; justify-content: center; gap: 10px; color: var(--astro-accent); }
.astro-draw-marks .astro-ico { width: 28px; height: 28px; }
.astro-draw strong { display: block; margin-top: 6px; font-size: 14px; }
.astro-draw em { display: block; margin-top: 2px; font-style: normal; color: var(--astro-muted); font-size: 12px; }

.astro-periods { display: flex; gap: 8px; margin: 16px 0 12px; }
.astro-periods button {
    border-radius: 999px;
    border: 1px solid var(--astro-line);
    background: transparent;
    padding: 8px 14px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.astro-periods button.is-on {
    background-image: var(--astro-btn);
    color: #fff;
    border-color: transparent;
}

.astro-signs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.astro-sign {
    border: 1px solid var(--astro-line);
    background: var(--astro-surface);
    border-radius: 12px;
    padding: 10px 4px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.astro-sign .astro-ico { width: 26px; height: 26px; }
.astro-sign span { display: block; margin-top: 2px; font-size: 12px; }
.astro-sign.is-on {
    background: var(--astro-accent-soft);
    border-color: var(--astro-accent);
    box-shadow: 0 0 0 1px var(--astro-accent);
}

.astro-read { display: block; margin: 16px auto 0; min-width: 220px; }
.astro-reading { margin-top: 16px; line-height: 1.65; }
.astro-reading h2 { margin: 14px 0 6px; font-size: 18px; }
.astro-reading h3 { margin: 12px 0 4px; font-size: 16px; }
.astro-reading p { margin: 0 0 10px; }
.astro-wait { color: var(--astro-muted); }

@media (max-width: 720px) {
    .astro-chart { margin: 8px 10px 28px; padding: 16px 14px 22px; }
    .astro-modes, .astro-form, .astro-draws { grid-template-columns: 1fr; }
    .astro-signs { grid-template-columns: repeat(3, 1fr); }
    .astro-btn { width: 100%; }
}
