.avn {
    --navy: #192734;
    --navy-2: #1c293c;
    --cream: #fff9e3;
    --orange: #ff8c00;
    --red: #e12d24;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    width: min(100%, 1120px);
    margin: auto;
    padding: clamp(22px, 4vw, 48px);
    overflow: hidden;
    color: var(--cream);
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    border: 1px solid rgba(255, 249, 227, .2);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(4, 12, 20, .24);
    font-family: inherit;
    line-height: 1.55;
}

.avn::before,
.avn::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 249, 227, .58);
    box-shadow: 90px 35px rgba(255, 249, 227, .2), 260px 92px rgba(255, 249, 227, .28), 520px 46px rgba(255, 249, 227, .22), 810px 115px rgba(255, 249, 227, .28), 980px 42px rgba(255, 249, 227, .18);
    animation: avn-twinkle 4.8s ease-in-out infinite alternate;
}

.avn::before { top: 34px; left: 40px; }
.avn::after { top: 145px; left: 110px; transform: scale(.65); animation-delay: -2.2s; }
.avn *, .avn *::before, .avn *::after { box-sizing: border-box; }
.avn h2, .avn h3, .avn h4, .avn h5, .avn p { margin-top: 0; }
.avn h2 { margin-bottom: 10px; color: #fff; font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.15; }
.avn .avn__title { color: #fff9e3 !important; -webkit-text-fill-color: #fff9e3; text-shadow: 0 2px 14px rgba(0, 0, 0, .24); }
.avn h3 { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.avn h4 { margin-bottom: 14px; color: #fff; font-size: 1.15rem; }
.avn a { color: #ffc168; }
.avn small { opacity: .76; }
.avn__intro { max-width: 800px; margin-bottom: 28px; }
.avn__brand { display: block; width: min(100%, 420px); height: auto; margin: 0 0 24px; padding: 8px 12px; background: rgba(255,255,255,.96); border-radius: 12px; }
.avn__eyebrow { margin-bottom: 8px; color: #ffc168; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.avn__form,
.avn__card,
.avn__wheel-card {
    padding: clamp(18px, 3vw, 30px);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 249, 227, .19);
    border-radius: 15px;
}

.avn__grid,
.avn__summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.avn__field { display: grid; align-content: start; gap: 7px; color: #fff; font-weight: 650; }
.avn__field--wide { grid-column: 1 / -1; }
.avn__field input,
.avn__field select {
    width: 100%; min-height: 49px; padding: 10px 13px;
    color: #172331; background: #fff; border: 2px solid transparent;
    border-radius: 10px; font: inherit;
}
.avn .avn__field > input { height: 49px; }
.avn__field input:focus,
.avn__field select:focus { border-color: var(--orange); outline: 3px solid rgba(255, 140, 0, .2); }
.avn__suggestions {
    display: grid; gap: 6px; width: 100%; max-width: 100%; min-width: 0; max-height: 280px;
    margin-top: 3px; padding: 8px; overflow-x: hidden; overflow-y: auto;
    color: #172331; background: #fff; border-radius: 10px;
}
.avn__suggestions[hidden] { display: none; }
.avn__suggestion-option {
    display: block; width: 100%; max-width: 100%; min-width: 0; padding: 10px 12px;
    overflow-wrap: anywhere; white-space: normal; color: #172331; background: #fff;
    border: 0; border-radius: 8px; text-align: left; cursor: pointer; font: inherit;
}
.avn__suggestion-option:hover, .avn__suggestion-option:focus { background: #fff4d1; outline: 2px solid var(--orange); }
.avn__date-native { display: none; }
.avn__date-mobile {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(116px, 1.45fr) minmax(0, .95fr);
    gap: 8px;
    width: min(100%, 330px);
    justify-self: start;
}
.avn__date-part { display: grid; min-width: 0; gap: 4px; }
.avn__date-part small { color: rgba(255, 249, 227, .82); font-size: .72rem; font-weight: 650; line-height: 18px; }
.avn__date-confirm { min-height: 22px; margin: 7px 0 5px; color: #ffe0a8; font-size: .86rem; font-weight: 650; }
.avn__date-confirm.is-selected { color: #a8edca; }
.avn__selection { min-height: 24px; margin: 15px 0 12px; color: rgba(255, 249, 227, .9); }
.avn__advanced { margin: 15px 0 20px; padding: 14px 16px; border: 1px solid rgba(255, 249, 227, .17); border-radius: 10px; }
.avn__advanced summary { color: #ffc168; font-weight: 700; cursor: pointer; }
.avn__advanced p { margin: 10px 0; color: rgba(255, 249, 227, .8); font-size: .92rem; }
.avn__submit, .avn__choice, .avn__pdf { min-height: 49px; padding: 11px 22px; color: #15212d; background: var(--orange); border: 0; border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; }
.avn__submit:hover, .avn__pdf:hover { filter: brightness(1.08); transform: translateY(-1px); }
.avn__submit:disabled, .avn__pdf:disabled { cursor: wait; opacity: .65; transform: none; }
.avn__privacy, .avn__attribution { margin: 12px 0 0; font-size: .86rem; opacity: .82; }
.avn__license {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 14px 16px;
    color: rgba(255, 249, 227, .94);
    background: rgba(255, 193, 104, .08);
    border: 1px solid rgba(255, 193, 104, .42);
    border-radius: 10px;
    font-size: .86rem;
}
.avn__license strong { color: #ffd18d; font-size: .95rem; }
.avn .avn__license a { color: #ffd18d; text-decoration: underline; text-underline-offset: 2px; }
.avn .avn__source-link { font-weight: 750; }
.avn__license-scope { margin-top: 4px; color: rgba(255, 249, 227, .86); }
.avn__license-links { font-size: .82rem; }
.avn__status { min-height: 28px; margin: 18px 0 0; font-weight: 650; }
.avn__status--loading { color: #ffd18d; }
.avn__status--success { color: #91e6bd; }
.avn__status--warning { color: #ffe09d; }
.avn__status--error { color: #ffb5b5; }
.avn__ambiguity { margin-top: 18px; padding: 20px; background: rgba(255, 193, 104, .1); border: 1px solid rgba(255, 193, 104, .4); border-radius: 15px; }
.avn__choice { margin: 8px 10px 0 0; background: #fff3cf; }

.avn__results { display: grid; gap: 20px; margin-top: 22px; animation: avn-reveal .7s ease both; }
.avn__result-heading { padding: 4px 2px 0; }
.avn__result-heading h3 { margin-bottom: 8px; }
.avn__coordinates { color: #ffc168; font-size: .92rem; }
.avn__summary-grid { margin-bottom: 0; }
.avn__card { min-width: 0; }
.avn .avn__card > h4 {
    color: #ffc168 !important;
    -webkit-text-fill-color: #ffc168 !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .22);
}
.avn__wheel-card { display: grid; justify-items: center; padding: clamp(12px, 2.5vw, 26px); background: rgba(255,255,255,.08); }
.avn__interpretation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.avn__interpretation { min-width: 0; padding: 19px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 249, 227, .16); border-radius: 12px; }
.avn__interpretation--sun { border-top: 3px solid #ffb53e; }
.avn__interpretation--moon { border-top: 3px solid #a88ee8; }
.avn .avn__interpretation h5 { margin-bottom: 10px; color: #ffc168 !important; -webkit-text-fill-color: #ffc168 !important; font-size: 1.05rem; }
.avn .avn__interpretation--moon h5 { color: #d7c8ff !important; -webkit-text-fill-color: #d7c8ff !important; }
.avn__interpretation p { margin-bottom: 0; color: rgba(255, 249, 227, .92); }

.avn-wheel { display: block; width: min(100%, 760px); height: auto; overflow: visible; font-family: "DejaVu Sans", "Segoe UI Symbol", sans-serif; filter: drop-shadow(0 18px 28px rgba(0,0,0,.24)); }
.avn-wheel__halo { fill: #dff7f8; stroke: rgba(255,255,255,.65); stroke-width: 2; }
.avn-wheel__disc { stroke: #192734; stroke-width: 2; }
.avn-wheel__sign-sector { stroke: #897b61; stroke-width: 1; }
.avn-wheel__sign-sector--even { fill: #fff9e3; }
.avn-wheel__sign-sector--odd { fill: #f4efe0; }
.avn-wheel__sign { fill: #e12d24; font-size: 31px; }
.avn-wheel__tick { stroke: #ac9f87; stroke-width: 1; }
.avn-wheel__zodiac-major { stroke: #192734; stroke-width: 2; }
.avn-wheel__house-line { stroke: #5c6873; stroke-width: 1.2; }
.avn-wheel__house-number { fill: #5b6873; font-size: 15px; font-weight: 700; }
.avn-wheel__aspect { stroke-width: 2.2; opacity: .76; transition: opacity .2s, stroke-width .2s; }
.avn-wheel__aspect--conjunction { stroke: #d97706; stroke-dasharray: 3 3; }
.avn-wheel__aspect--opposition { stroke: #d62828; stroke-width: 2.7; }
.avn-wheel__aspect--square { stroke: #8b5cf6; stroke-dasharray: 9 4; }
.avn-wheel__aspect--trine { stroke: #2563eb; }
.avn-wheel__aspect--sextile { stroke: #16865a; stroke-dasharray: 5 3; }
.avn-wheel__aspect-ring { fill: #fffdf4; stroke: #c6bda8; stroke-width: 1.2; }
.avn-wheel__axis { stroke: #192734; stroke-width: 3; }
.avn-wheel__axis--mc, .avn-wheel__axis--ic { stroke: #b16e14; }
.avn-wheel__axis-label { fill: #192734; font-size: 16px; font-weight: 800; paint-order: stroke; stroke: #fff9e3; stroke-width: 3px; }
.avn-wheel__planet { cursor: pointer; transition: opacity .2s; outline: none; }
.avn-wheel__planet-guide { stroke: #87919a; stroke-width: 1; }
.avn-wheel__planet-dot { fill: #fffdf4; stroke: #192734; stroke-width: 1.3; }
.avn-wheel__planet-glyph { fill: #192734; font-size: 25px; }
.avn-wheel__planet-degree { fill: #192734; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #fffdf4; stroke-width: 2px; }
.avn-wheel__planet:focus .avn-wheel__planet-dot, .avn-wheel__planet:hover .avn-wheel__planet-dot { fill: #ffe3ad; stroke: var(--orange); stroke-width: 2.5; }
.avn-wheel__center { fill: #192734; stroke: #ff8c00; stroke-width: 2; }
.avn-wheel__center-mark { fill: #fff9e3; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.avn-wheel__center-mark--small { font-size: 10px; }
.avn-wheel.is-focus .avn-wheel__planet:not(.is-selected):not(.is-partner) { opacity: .18; }
.avn-wheel.is-focus .avn-wheel__planet.is-selected .avn-wheel__planet-dot { fill: #ffd78a; stroke: #d97706; stroke-width: 3.2; }
.avn-wheel.is-focus .avn-wheel__planet.is-partner { opacity: 1; }
.avn-wheel.is-focus .avn-wheel__planet.is-partner .avn-wheel__planet-dot { fill: #ede5ff; stroke: #7c3aed; stroke-width: 3.2; }
.avn-wheel.is-focus .avn-wheel__planet.is-partner .avn-wheel__planet-glyph { fill: #5b21b6; font-weight: 800; }
.avn-wheel.is-focus .avn-wheel__aspect { opacity: .09; }
.avn-wheel.is-focus .avn-wheel__aspect.is-related { opacity: 1; stroke-width: 4; }

.avn__aspect-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; color: #fff; font-size: .8rem; }
.avn__legend::before { content: ""; display: inline-block; width: 18px; height: 3px; margin: 0 6px 2px 0; border-radius: 3px; background: currentColor; }
.avn__legend--conjunction { color: #f5ad42; }
.avn__legend--opposition { color: #ff6b67; }
.avn__legend--square { color: #c4a5ff; }
.avn__legend--square::before { background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 12px); }
.avn__legend--trine { color: #7da7ff; }
.avn__legend--sextile { color: #69d79d; }

.avn__table-wrap { overflow-x: auto; }
.avn__table { width: 100%; border-collapse: collapse; color: var(--cream); font-size: .95rem; border-bottom: 1px solid rgba(255, 249, 227, .38); }
.avn__table th, .avn__table td { padding: 10px 11px; border-bottom: 1px solid rgba(255, 249, 227, .14); text-align: left; vertical-align: top; }
.avn__table th { color: #ffc168; font-size: .78rem; letter-spacing: .055em; text-transform: uppercase; }
.avn__table tbody tr:last-child td { border-bottom: 1px solid rgba(255, 249, 227, .38); }
.avn__table--energy td:last-child { min-width: 220px; }
.avn__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 5px 0 8px; }
.avn__actions .avn__privacy { flex: 1 1 280px; margin: 0; }
.avn .avn__pdf {
    color: #192734 !important;
    -webkit-text-fill-color: #192734;
    background: #ff9f1c !important;
    border: 2px solid #fff0bf;
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    font-weight: 850;
    opacity: 1;
    text-shadow: none;
}
.avn .avn__pdf:hover, .avn .avn__pdf:focus-visible { color: #192734 !important; -webkit-text-fill-color: #192734; background: #ffb13b !important; }

@keyframes avn-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes avn-twinkle { from { opacity: .35; } to { opacity: .75; } }

@media (min-width: 701px) {
    .avn__field--name > input { margin-top: 22px; }
}

@media (max-width: 700px) {
    .avn { padding: 19px 15px; border-radius: 15px; }
    .avn__grid, .avn__summary-grid { grid-template-columns: 1fr; }
    .avn__interpretation-grid { grid-template-columns: 1fr; }
    .avn__field--wide { grid-column: auto; }
    .avn__date-mobile { grid-template-columns: minmax(0, .72fr) minmax(112px, 1.45fr) minmax(0, .95fr); width: 100%; gap: 7px; }
    .avn__suggestions { width: 100%; max-width: 100%; min-width: 0; }
    .avn__suggestion-option { width: 100%; max-width: 100%; }
    .avn__form, .avn__card { padding: 16px; }
    .avn__brand { width: min(100%, 340px); }
    .avn__table { min-width: 540px; }
    .avn__summary-grid .avn__table { min-width: 0; }
    .avn__summary-grid .avn__table--energy { min-width: 440px; }
    .avn__submit, .avn__pdf { width: 100%; }
    .avn-wheel__planet-degree { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .avn::before, .avn::after, .avn__results { animation: none; }
    .avn-wheel__aspect, .avn-wheel__planet { transition: none; }
}
