:root {
    --bg-deep: #050505;
    --bg-panel: rgba(10, 10, 18, 0.72);
    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --accent-glow: #b14bf4;
    --accent-cyan: #00d4ff;
    --accent-gold: #ffd700;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: "Quicksand", sans-serif;
    --font-body: "Quicksand", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    scrollbar-gutter: stable;
}

html {
    scroll-behavior: smooth;
    /* Fluid base font: 14px at 320px screen → 16px at 768px+ */
    font-size: clamp(14px, 1.8vw + 10px, 16px);
}

/* ── True Date panel: never overflow on mobile ──────────────── */
#ucps-coords,
.rake-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* ── Universal panel header text shrink ─────────────────────── */
@media (max-width: 480px) {

    /* UST / UTC display in the True Date panel */
    #universal-time-display {
        font-size: 0.78rem !important;
        white-space: normal;
        text-align: center;
    }

    /* The True Date heading */
    .what-is-true-date-bubble h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
    }

    .what-is-true-date-bubble p {
        font-size: clamp(0.78rem, 3.5vw, 1rem) !important;
    }

    /* Section description text that bleeds right */
    [style*="font-size: 1.05rem"],
    [style*="font-size: 1rem"],
    [style*="font-size: 0.95rem"],
    [style*="font-size: 0.9rem"] {
        font-size: clamp(0.78rem, 3.8vw, 0.95rem) !important;
    }

    /* Hero subtitle */
    .subtitle {
        font-size: clamp(0.85rem, 4vw, 1.1rem) !important;
    }

    /* Inline large headings inside panels */
    [style*="font-size: 1.5rem"]:not(.coord-dot):not(.coord-text),
    [style*="font-size: 1.4rem"]:not(div),
    [style*="font-size: 1.3rem"] {
        font-size: clamp(1rem, 4.5vw, 1.4rem) !important;
    }
}


body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

#star-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #030306;
}

.container {
    width: min(760px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(640px, 92%);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(177, 75, 244, 0.5);
}

h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    margin-bottom: 0.6rem;
}

p {
    color: var(--text-muted);
}

ul {
    margin-left: 1.2rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.glass-nav {
    position: fixed;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 10, 0.35);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.glass-nav.nav-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    text-shadow: 0 0 10px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem 1.1rem;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
}

.hero {
    min-height: auto;
    padding: 5rem 0 0.8rem;
    display: block;
}

/* Mobile nav: single scrollable row, no wrap */
@media (max-width: 600px) {
    .glass-nav {
        padding: 0.6rem 0.8rem;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    .logo {
        font-size: 0.85rem;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .logo img {
        height: 26px !important;
    }

    .nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0rem 0.8rem;
        justify-content: flex-start;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 0.62rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hero: push down to clear the single-row fixed nav (~48px) */
    .hero {
        padding-top: 4.2rem;
    }
}

.hero-content {
    display: grid;
    gap: 0.4rem;
    text-align: center;
    justify-items: center;
    width: 100%;
}

/* ── Compass Hero Wrapper ── */
.compass-hero-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.compass-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.15)) drop-shadow(0 0 40px rgba(177, 75, 244, 0.1));
    opacity: 0.92;
}

.solar-system-model {
    width: 300px;
    height: 300px;
    position: relative;
    z-index: 1;
    perspective: 800px;
    transform: rotateX(20deg);
}

.orbit-system {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: orbit-rotate linear infinite;
}

.planet {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.3);
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px #ff8c00, 0 0 80px #ffd700;
    z-index: 10;
}

.mercury-orbit {
    width: 70px;
    height: 70px;
    animation-duration: 5s;
}

.mercury {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #a5a5a5, #4e4e4e);
}

.venus-orbit {
    width: 100px;
    height: 100px;
    animation-duration: 8s;
}

.venus {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #ffdfba, #c78d53);
}

.earth-orbit {
    width: 140px;
    height: 140px;
    animation-duration: 12s;
}

.earth {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #4ea5ff, #1d4e89);
    box-shadow: 0 0 5px rgba(78, 165, 255, 0.7);
}

.mars-orbit {
    width: 180px;
    height: 180px;
    animation-duration: 15s;
}

.mars {
    width: 11px;
    height: 11px;
    background: radial-gradient(circle at 30% 30%, #ff8a65, #bf360c);
}

.jupiter-orbit {
    width: 230px;
    height: 230px;
    animation-duration: 20s;
}

.jupiter {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 30% 30%, #f5cba7, #935116);
}

.saturn-orbit {
    width: 280px;
    height: 280px;
    animation-duration: 26s;
}

.saturn {
    width: 19px;
    height: 19px;
    background: radial-gradient(circle at 30% 30%, #ffe082, #8d6e63);
    position: relative;
}

.ring {
    position: absolute;
    width: 33px;
    height: 8px;
    border: 2px solid rgba(255, 224, 130, 0.7);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
}

.eyebrow {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-cyan);
    border: 1px solid rgba(48, 216, 255, 0.3);
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
}

.subtitle,
.section-sub {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    max-width: 760px;
    text-align: center;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(180deg, rgba(14, 15, 27, 0.82), rgba(8, 10, 20, 0.72));
}

.hero-description .subtitle {
    margin: 0;
}

@keyframes float-slow {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes orbit-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.section {
    padding: 2.5rem 0 1.5rem;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.1rem;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 0 rgba(177, 75, 244, 0);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.compact-date {
    margin-top: 0.2rem;
    max-width: 560px;
    padding: 0.95rem;
}

.true-date-counter {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 0.7rem 0.65rem;
    margin-bottom: 0.75rem;
}

.counter-primary {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.counter-secondary {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
}

.counter-xyz {
    margin-top: 0.28rem;
    font-size: 0.66rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.panel-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.panel-header-row h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.panel-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
}

.coords-container {
    margin-bottom: 0.9rem;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.65rem;
}

.true-date-ticker {
    margin-bottom: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.ticker-track {
    white-space: nowrap;
    padding: 0.45rem 0;
}

#true-date-ticker-text {
    display: inline-block;
    padding-left: 100%;
    color: var(--accent-cyan);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: ticker-slide 20s linear infinite;
}

@keyframes ticker-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.display-mode-toggles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Mobile: horizontal scroll instead of squishing */
@media (max-width: 600px) {
    .date-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.6rem;
        padding-bottom: 6px;
        scrollbar-width: none;
        margin: 0.8rem -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .date-grid::-webkit-scrollbar {
        display: none;
    }

    .date-counter-card {
        min-width: 100px;
        flex-shrink: 0;
        padding: 0.6rem 0.5rem;
    }

    .central-example-card {
        min-width: 180px;
    }

    /* Date section panel: remove side padding that causes clipping */
    #true-date-section .panel,
    [id*="true-date"] .panel {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.date-counter-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.date-counter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.central-example-card {
    grid-column: 1 / -1;
}

.date-card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.date-card-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.val-gold {
    color: var(--accent-gold);
}

.val-cyan {
    color: var(--accent-cyan);
}

.moon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.moon-wrap {
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.overview-grid {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    padding: 1rem;
    width: min(100%, 320px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.info-card p {
    margin-bottom: 0.6rem;
}

.card-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.info-icon {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emoji-mark {
    font-size: 1rem;
}

.outline-mark {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.vision-panel {
    margin-top: 1rem;
}

.extended-explainer {
    text-align: left;
    margin-bottom: 1rem;
}

.extended-explainer p {
    margin-bottom: 0.85rem;
}

.overview-invites {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

#position-widget {
    margin-top: 1rem;
}

.widget-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.section-card .section-sub {
    text-align: center;
    margin-bottom: 1rem;
}

.section-card .container {
    text-align: center;
}

.card-title {
    text-align: center;
    margin-bottom: 0.45rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.card-title span {
    color: #d69dff;
    font-weight: 700;
}

#get-card #position-widget {
    border-radius: 26px;
    border: 1px solid rgba(151, 138, 255, 0.25);
    background: linear-gradient(180deg, rgba(8, 10, 22, 0.78), rgba(6, 8, 17, 0.7));
    backdrop-filter: blur(10px);
    max-width: 980px;
}

#get-card #position-form {
    gap: 0.72rem;
}

.widget-content {
    display: grid;
    gap: 0.8rem;
}

#get-card .widget-split-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #a9b0d8;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-align: center;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

#get-card .form-group {
    position: relative;
}

.input-shell {
    position: relative;
}

.field-icon {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: rgba(164, 179, 255, 0.78);
    pointer-events: none;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

.glass-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 0.62rem 0.72rem;
    font-family: var(--font-body);
}

#get-card .glass-input {
    border-radius: 18px;
    border: 1px solid rgba(133, 149, 255, 0.24);
    border-bottom: 1px solid rgba(53, 214, 255, 0.45);
    background: rgba(43, 35, 72, 0.22);
    min-height: 44px;
    padding-right: 2rem;
    box-shadow: inset 0 0 0 1px rgba(153, 175, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

#get-card .glass-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#get-card .form-group:focus-within label {
    color: #86ecff;
    transform: translateY(-2px);
}

#get-card .glass-input:focus {
    outline: none;
    border-color: rgba(134, 236, 255, 0.65);
    background: rgba(55, 43, 90, 0.28);
    box-shadow: 0 0 0 1px rgba(134, 236, 255, 0.26), 0 0 14px rgba(53, 214, 255, 0.16), inset 0 0 10px rgba(130, 151, 255, 0.1);
    transform: translateY(-1px);
}

#get-card #calculate-pos-btn {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, rgba(80, 61, 169, 0.88), rgba(7, 133, 185, 0.9));
    border-color: rgba(142, 160, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(168, 180, 255, 0.2) inset, 0 8px 22px rgba(18, 128, 188, 0.25);
}

#get-card #calculate-pos-btn:hover {
    box-shadow: 0 0 0 1px rgba(168, 180, 255, 0.3) inset, 0 12px 28px rgba(18, 128, 188, 0.32), 0 0 18px rgba(108, 164, 255, 0.25);
}

.form-actions-secondary {
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

textarea.glass-input {
    resize: vertical;
}

.compact-select {
    width: 220px;
}

.btn-glow,
.btn-small-glow {
    border: 1px solid rgba(123, 141, 255, 0.55);
    background: linear-gradient(135deg, rgba(123, 141, 255, 0.25), rgba(48, 216, 255, 0.1));
    color: #f7f8ff;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-glow {
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
}

.btn-small-glow {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
}

.btn-small-glow.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 1px rgba(48, 216, 255, 0.35) inset;
}

.compass-layout {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 0.8rem;
    background: rgba(3, 6, 12, 0.35);
    position: relative;
    overflow: hidden;
}

.cosmic-card-monolith {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    border: 1px solid rgba(173, 198, 255, 0.26);
    backdrop-filter: blur(12px);
    background: linear-gradient(160deg, rgba(12, 16, 35, 0.78), rgba(5, 8, 18, 0.72));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), 0 0 18px rgba(121, 98, 255, 0.18);
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.15s ease;
}

.cosmic-card-monolith::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 1px;
    background: linear-gradient(120deg, rgba(112, 231, 255, 0.75), rgba(224, 150, 255, 0.7), rgba(118, 155, 255, 0.7));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.holo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(117, 183, 255, 0.03) 35%, rgba(255, 166, 255, 0.07) 60%, rgba(255, 255, 255, 0.03));
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.card-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    gap: 0.5rem;
    background: rgba(7, 9, 20, 0.84);
    text-align: center;
}

.glyph-spinner {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    animation: glyph-pulse 1s linear infinite;
}

.loading-text {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes glyph-pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.compass-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
}

.portal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 14px rgba(255, 213, 107, 0.28), inset 0 0 20px rgba(89, 67, 181, 0.25);
    position: relative;
    overflow: hidden;
}

#res-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#res-avatar-glyph {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.user-info h3 {
    margin-bottom: 0;
}

.card-subtitle,
.compass-id {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
}

.life-path-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(143, 203, 255, 0.48);
    background: radial-gradient(circle at 30% 30%, rgba(89, 159, 255, 0.5), rgba(48, 23, 102, 0.5));
    box-shadow: 0 0 14px rgba(87, 165, 255, 0.32);
}

.compass-map-container {
    position: relative;
    height: 320px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at center, rgba(48, 216, 255, 0.08), rgba(0, 0, 0, 0.2));
}

#natal-svg {
    width: 100%;
    height: 100%;
}

#chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.26);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
}

.compass-grid {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.compass-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.66rem;
}

.compass-stat label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
}

.stat-highlight {
    margin-top: 0.1rem;
    color: #fff;
}

.card-lore {
    margin-top: 0.7rem;
    min-height: 2.7em;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

.lifespan-widget {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.4rem;
}

#lifespan-slider {
    width: 100%;
}

.card-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.55rem;
}

.share-actions {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.membership-card {
    width: min(100%, 760px);
    aspect-ratio: 1.72 / 1;
    min-height: 320px;
    margin: 0 auto;
    position: relative;
    padding: 1.25rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 45%, rgba(132, 189, 255, 0.26), rgba(20, 28, 58, 0.08) 40%, rgba(7, 11, 25, 0.7) 80%),
        url("../bg-stars.png") center/cover no-repeat;
}

.card-sketch-layout {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: 185px 1fr 220px;
    grid-template-areas:
        "avatar name life"
        "sign . chart";
    align-items: start;
    gap: 0.9rem 1rem;
}

.sketch-avatar-wrap {
    grid-area: avatar;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid rgba(238, 242, 255, 0.9);
    background: rgba(10, 14, 31, 0.6);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sketch-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sketch-avatar-wrap span {
    font-size: 2.1rem;
    color: #fff;
}

.sketch-name-block {
    grid-area: name;
    align-self: center;
}

.sketch-life-path {
    grid-area: life;
    justify-self: end;
    align-self: center;
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
}

.sketch-life-path #life-path-badge {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    color: #fff;
}

.sketch-label {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: rgba(216, 223, 255, 0.9);
}

.sketch-value {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 1rem;
    color: #fff;
}

.sketch-sign-wrap {
    grid-area: sign;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.25rem;
    margin-top: -0.2rem;
}

.sketch-star {
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 223, 127, 0.96);
    text-shadow: 0 0 14px rgba(255, 223, 127, 0.28);
}

.sketch-sign-text {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 0.88rem;
    color: #fff;
    text-transform: lowercase;
}

.sketch-chart-wrap {
    grid-area: chart;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 3px solid rgba(238, 242, 255, 0.9);
    background: rgba(10, 14, 31, 0.42);
    display: grid;
    place-items: center;
    justify-self: end;
    align-self: end;
}

.sketch-chart-label {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 1.05rem;
    color: rgba(236, 241, 255, 0.95);
}

.sketch-hidden {
    display: none;
}

.membership-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 190px 1fr;
    grid-template-areas:
        "photo title"
        "photo meta"
        "sign lore"
        "sign footer";
    column-gap: 1rem;
    row-gap: 0.4rem;
    align-items: start;
}

.membership-photo-wrap {
    grid-area: photo;
    height: 200px;
    border-radius: 18px;
    border: 2px solid rgba(255, 213, 107, 0.72);
    background: rgba(10, 14, 31, 0.7);
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 0 0 18px rgba(255, 213, 107, 0.26), inset 0 0 14px rgba(255, 213, 107, 0.1);
}

.membership-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membership-photo-wrap span {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.membership-title {
    grid-area: title;
    margin: 0 0 0.6rem;
    font-family: "Cinzel", serif;
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #f2f5ff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    text-align: left;
}

.membership-meta {
    grid-area: meta;
}

.membership-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.28rem;
    flex-wrap: wrap;
}

.membership-row span {
    font-size: 0.76rem;
    color: rgba(184, 171, 224, 0.95);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

.membership-row strong {
    font-size: 1.02rem;
    color: #fff;
    font-weight: 500;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

#life-path-badge {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    border: 1px solid rgba(143, 203, 255, 0.45);
    background: rgba(89, 159, 255, 0.2);
    box-shadow: 0 0 10px rgba(87, 165, 255, 0.25);
}

.sign-block {
    grid-area: sign;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.2rem;
    padding-top: 0.2rem;
}

.sign-glyph {
    font-size: 5.8rem;
    line-height: 1;
    color: var(--accent-gold);
    text-shadow: 0 0 14px rgba(255, 213, 107, 0.25);
}

.sign-copy {
    text-align: center;
}

.sign-label {
    font-size: 0.7rem;
    color: rgba(222, 231, 255, 0.84);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sign-name {
    font-size: 1.9rem;
    color: #fff;
    font-family: "Cinzel", serif;
    line-height: 1;
}

.card-lore {
    grid-area: lore;
    margin-top: 0.4rem;
    min-height: 2.2em;
    font-size: 0.94rem;
    text-align: left;
    color: #f4f6ff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.membership-footer {
    grid-area: footer;
    margin-top: 0.3rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 0.1rem 0.1rem 0.2rem;
}

.barcode {
    width: 210px;
    height: 64px;
    border-radius: 6px;
    background:
        linear-gradient(#fff, #fff) left/100% 100% no-repeat,
        repeating-linear-gradient(90deg, #101010 0 2px, #f2f2f2 2px 4px, #101010 4px 6px, #f2f2f2 6px 7px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.92);
}

.membership-id {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #f3f5ff;
    text-align: left;
    text-transform: uppercase;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

#position-result .share-actions,
#position-result .card-actions {
    position: relative;
    z-index: 1;
}

#position-result .share-actions {
    margin-top: 0.75rem;
}

.example-card-showcase {
    display: grid;
    justify-items: center;
    margin: 0.2rem auto 1rem;
    gap: 0.5rem;
}

.example-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.example-card {
    width: min(100%, 420px);
    min-height: 72vh;
}

.founder-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.founder-image-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.founder-img {
    width: 100%;
    display: block;
}

.faq-grid {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.faq-item {
    width: min(100%, 320px);
}

.feedback-form {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.community-links {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.community-links a {
    display: block;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-community {
    max-width: 520px;
}

.community-bubble {
    text-align: center;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#position-widget .widget-split-layout {
    justify-items: center;
}

#position-widget #position-form,
#position-widget #position-result {
    width: 100%;
}

#position-widget #position-form {
    max-width: 520px;
}

#position-widget #position-result {
    max-width: 820px;
}

.panel:hover {
    transform: translateY(-3px);
    border-color: rgba(177, 75, 244, 0.38);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 20px rgba(177, 75, 244, 0.16);
}

.date-counter-card:hover,
.info-card:hover,
.faq-item:hover,
.community-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.38);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 16px rgba(0, 212, 255, 0.14);
}

/* Center all information bubble sections */
.info-card,
.vision-panel,
.faq-item,
#feedback .panel,
#community .panel,
#theorize .panel,
#donate .panel {
    text-align: center;
}

.info-card ul {
    display: inline-block;
    text-align: left;
}

.donate-panel {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.8rem;
}

.footer {
    text-align: center;
    padding: 2.6rem 1rem 2rem;
    color: rgba(255, 255, 255, 0.72);
}

.small {
    font-size: 0.8rem;
}

/* SVG chart styles used by position_widget.js */
.stroke-pink {
    stroke: #ff71ce;
    stroke-width: 1.5;
    fill: none;
}

.stroke-cyan {
    stroke: #01cdfe;
    stroke-width: 1.5;
    fill: none;
}

.aspect-line {
    opacity: 0.7;
}

.neon-text {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.planet-symbol {
    font-size: 19px;
    text-anchor: middle;
    dominant-baseline: middle;
    cursor: pointer;
}

#cosmic-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(8, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    color: #fff;
    font-size: 0.74rem;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.12s ease;
    z-index: 1001;
}

#cosmic-tooltip.visible {
    opacity: 1;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .overview-grid {
        justify-content: center;
    }

    .widget-split-layout {
        grid-template-columns: 1fr;
    }

    .membership-card {
        width: min(100%, 660px);
        aspect-ratio: 1.64 / 1;
    }

    .founder-card {
        grid-template-columns: 1fr;
    }

    .founder-image-wrapper {
        max-width: 280px;
    }

    .faq-grid {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .glass-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .date-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    #get-card #position-widget {
        border: none;
        border-radius: 14px;
        background: rgba(6, 8, 17, 0.56);
        backdrop-filter: blur(8px);
    }

    .card-title {
        letter-spacing: 0.11em;
    }

    .compact-select {
        width: 100%;
    }

    .panel {
        max-width: 100%;
        padding: 0.9rem;
    }

    .compact-date {
        max-width: 100%;
    }

    .info-card,
    .faq-item {
        width: 100%;
    }

    .membership-card {
        width: 100%;
        aspect-ratio: auto;
        min-height: 440px;
        padding: 0.9rem;
    }

    .card-sketch-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "avatar"
            "name"
            "life"
            "chart"
            "sign";
        justify-items: center;
        row-gap: 0.5rem;
    }

    .sketch-life-path {
        justify-self: center;
    }

    .sketch-chart-wrap {
        justify-self: center;
        width: 180px;
        height: 180px;
    }

    .membership-photo-wrap {
        height: 170px;
        max-width: 220px;
    }

    .card-lore,
    .membership-id {
        text-align: center;
    }

    .membership-row {
        justify-content: center;
    }

    .membership-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .sign-glyph {
        font-size: 4.6rem;
    }
}

/* ── Classified Badge ── */
.classified-badge {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    margin-left: 0.6rem;
    vertical-align: middle;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
    white-space: nowrap;
}

/* ── What is UCPS Bubble ── */
.what-is-ucps-bubble {
    max-width: 62ch;
    margin: 1.2rem auto 1.5rem;
    text-align: center;
    border-top: 2px solid var(--accent-cyan);
}

.what-is-ucps-bubble h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.what-is-ucps-bubble p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 16px rgba(177, 75, 244, 0.12);
}

/* ── Widget XYZ Description ── */
.widget-xyz-description {
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0 0.4rem;
    border-left: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
    border-radius: 4px;
}

/* ── Calendars Section ── */
.section-calendars {
    text-align: center;
}

.section-calendars h2 {
    margin-bottom: 0.4rem;
}

.section-calendars .date-grid {
    margin-top: 1rem;
}

/* ── XYZ Info Bubble ── */
.xyz-info-bubble {
    max-width: 62ch;
    margin: 1.2rem auto 1.5rem;
    text-align: center;
    border-top: 2px solid var(--accent-cyan);
}

.xyz-info-bubble h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.xyz-info-bubble p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.7rem;
}

.xyz-callout {
    padding: 0.7rem 1rem;
    margin: 0.8rem 0;
    border: 1px solid rgba(177, 75, 244, 0.25);
    border-radius: 10px;
    background: rgba(177, 75, 244, 0.06);
}

.xyz-callout p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.xyz-distinction-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    margin: 0.6rem 0 1rem;
    text-align: left;
}

.xyz-distinction-list li {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.xyz-coord-defs {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    margin: 0.6rem 0 1rem;
    text-align: left;
}

.xyz-coord-defs li {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.xyz-coord-defs li strong {
    color: var(--accent-cyan);
}

.xyz-closing {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Originality Sidebar ── */
.originality-sidebar {
    margin-top: 1.2rem;
    border-top: 2px solid rgba(177, 75, 244, 0.4);
}

.originality-sidebar h3 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 1rem;
    color: #d4a0ff;
}

.originality-question {
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
    padding: 0.8rem 1rem;
    margin: 0 auto 1rem;
    max-width: 28ch;
    border: 1px solid rgba(177, 75, 244, 0.25);
    border-radius: 12px;
    background: rgba(177, 75, 244, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.peer-models-list {
    padding-left: 1.2rem;
    margin: 0.6rem 0 1rem;
    display: grid;
    gap: 0.4rem;
}

.peer-models-list li {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.peer-models-list li strong {
    color: rgba(255, 255, 255, 0.95);
}

.synthesis-note {
    text-align: center;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 0.6rem 0;
    font-size: 0.95rem;
}

.ucps-differentiators {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    margin: 0.6rem 0 1.2rem;
}

.ucps-differentiators li {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.originality-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.originality-summary ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    margin: 0.5rem 0;
}

.originality-summary li {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.originality-summary li::before {
    content: "▸ ";
    color: var(--accent-cyan);
}

.invitation-text {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.6rem;
}

.originality-footer {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Scroll Arrow ── */
.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
    animation: arrow-bounce 2s ease-in-out infinite;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.scroll-arrow span:first-child {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.scroll-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-arrow.hidden-arrow {
    opacity: 0;
    pointer-events: none;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ── Below-Fold Fade-In ── */
.below-fold {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.below-fold.visible {
    opacity: 1;
    transform: translateY(0);
}


/* XYZ Infographic Styles */
.xyz-info-bubble {
    max-width: 800px;
    background: linear-gradient(145deg, rgba(12, 14, 25, 0.85), rgba(6, 8, 15, 0.92));
    border: 1px solid rgba(177, 75, 244, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(177, 75, 244, 0.04);
    overflow: hidden;
    padding: 1.2rem 1rem;
    border-radius: 14px;
}

.xyz-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 1rem;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.55;
}

.xyz-infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.xyz-infographic-card {
    background: rgba(20, 22, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 0.9rem 0.8rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.xyz-infographic-card:hover {
    transform: translateY(-4px);
}

.x-axis-card {
    border-top: 3px solid #00d4ff;
}

.y-axis-card {
    border-top: 3px solid #b14bf4;
}

.z-axis-card {
    border-top: 3px solid #ffd700;
}

.x-axis-card:hover {
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.y-axis-card:hover {
    box-shadow: 0 10px 25px rgba(177, 75, 244, 0.15);
    border-color: rgba(177, 75, 244, 0.4);
}

.z-axis-card:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.xyz-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.x-axis-card .xyz-icon-wrap {
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.y-axis-card .xyz-icon-wrap {
    border: 1px solid rgba(177, 75, 244, 0.3);
}

.z-axis-card .xyz-icon-wrap {
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.xyz-letter {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    position: absolute;
    opacity: 0.3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.x-axis-card .xyz-letter {
    color: #00d4ff;
    text-shadow: 0 0 15px #00d4ff;
    opacity: 0.8;
}

.y-axis-card .xyz-letter {
    color: #b14bf4;
    text-shadow: 0 0 15px #b14bf4;
    opacity: 0.8;
}

.z-axis-card .xyz-letter {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
    opacity: 0.8;
}

.xyz-emoji {
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.xyz-title {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: #fff;
    letter-spacing: 0.05em;
}

.xyz-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.x-axis-card .xyz-subtitle {
    color: #00d4ff;
}

.y-axis-card .xyz-subtitle {
    color: #b14bf4;
}

.z-axis-card .xyz-subtitle {
    color: #ffd700;
}

.xyz-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xyz-bullets li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.xyz-bullets li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.xyz-closing-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-glow);
    padding: 0.7rem 0.9rem;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.xyz-closing-box strong {
    color: #fff;
}

@media (max-width: 768px) {
    .xyz-infographic-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Natal Chart UI Styling --- */
.dark-theme-input {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme-input:focus {
    border-color: rgba(177, 75, 244, 0.6);
    box-shadow: 0 0 10px rgba(177, 75, 244, 0.2);
    outline: none;
}

.dark-theme-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: normal;
    letter-spacing: normal;
}

.dark-theme-input.text-center {
    text-align: center;
}

/* Validation Pulse Animation */
@keyframes natal-pulse-valid {
    0% {
        box-shadow: 0 0 0 0 rgba(177, 75, 244, 0.5);
        border-color: rgba(177, 75, 244, 0.8);
        background: rgba(177, 75, 244, 0.15);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(177, 75, 244, 0);
        border-color: rgba(177, 75, 244, 1);
        background: rgba(177, 75, 244, 0.15);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(177, 75, 244, 0);
        border-color: rgba(177, 75, 244, 0.8);
        background: rgba(177, 75, 244, 0.15);
    }
}

#btn-generate-natal {
    cursor: not-allowed;
    opacity: 0.5;
}

#btn-generate-natal.valid-pulse {
    animation: natal-pulse-valid 2s infinite;
    cursor: pointer;
    opacity: 1;
}

/* Aspect Filters */
.filter-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s all;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.filter-btn.active {
    background: rgba(177, 75, 244, 0.2);
    border-color: rgba(177, 75, 244, 0.8);
    color: #fff;
}

/* Pricing Section */
.pricing-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2rem;
}

.pricing-card {
    background: linear-gradient(180deg, rgba(16, 24, 45, 0.6) 0%, rgba(5, 8, 15, 0.8) 100%);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.1) inset, 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.2) inset, 0 10px 30px rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 212, 255, 0.8);
}

.pricing-card.founder-tier {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15) inset, 0 0 20px rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
    z-index: 2;
    background: linear-gradient(180deg, rgba(30, 25, 10, 0.8) 0%, rgba(10, 8, 5, 0.9) 100%);
}

.pricing-card.founder-tier:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.25) inset, 0 10px 40px rgba(255, 215, 0, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.pricing-card.founder-tier .pricing-header h3 {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pricing-header .price {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    font-weight: bold;
    font-family: var(--font-heading);
}

.pricing-card.founder-tier .pricing-header .price {
    color: var(--accent-gold);
}

.pricing-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    min-height: 100px;
    align-items: center;
}

.pricing-icons .icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-icons .emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    margin-bottom: 0.5rem;
}

.pricing-icons .icon-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    font-weight: bold;
    line-height: 1.2;
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    font-weight: 500;
}

.pricing-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.4;
    top: 0;
}

.pricing-card.founder-tier .pricing-features li::before {
    color: var(--accent-gold);
}

@media (max-width: 900px) {
    .pricing-card.founder-tier {
        transform: scale(1);
    }

    .pricing-card.founder-tier:hover {
        transform: scale(1.02) translateY(-5px);
    }
}

/* Aura Painting Section */
.aura-painting-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.aura-painting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    background: linear-gradient(135deg, rgba(8, 12, 23, 0.8), rgba(12, 10, 20, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
    .aura-painting-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 2.5rem 3.5rem;
    }

    .poster-container {
        flex-direction: row-reverse;
    }
}

.aura-painting-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aura-img {
    max-width: 100%;
    width: 380px;
    border-radius: 5px;
    /* Slight rounding to soften the painting's frame */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 60px rgba(177, 75, 244, 0.3);
    animation: float-aura 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float-aura {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.aura-painting-details {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

@media (min-width: 900px) {
    .aura-painting-details {
        text-align: left;
        align-items: flex-start;
    }
}

.aura-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    font-family: var(--font-heading);
}

.aura-painting-details .price {
    font-size: 2.2rem;
    color: var(--accent-gold);
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.aura-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

/* Compact pricing features spacing */
.pricing-features li {
    margin-bottom: 0.4rem;
}

/* Base mobile overflow mitigations */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .card-sketch-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "avatar"
            "name"
            "life"
            "sign"
            "chart";
        justify-items: center;
        text-align: center;
    }

    .sketch-avatar-wrap,
    .sketch-chart-wrap {
        justify-self: center;
    }

    .panel {
        padding: 1rem 0.8rem;
    }

    .hero {
        padding-top: 4.2rem;
        padding-bottom: 0.5rem;
    }

    .hero-content {
        gap: 0.2rem;
    }

    .compass-hero-wrapper {
        width: 280px;
        height: 280px;
        margin-bottom: 0.3rem;
    }

    .solar-system-model {
        width: 300px;
        height: 300px;
        transform: scale(0.68) rotateX(20deg);
    }

    h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .section {
        padding: 1.8rem 0 1rem;
    }

    .xyz-info-bubble {
        padding: 0.8rem 0.6rem;
        border-radius: 12px;
    }

    .xyz-infographic-grid {
        gap: 0.5rem;
        margin-bottom: 0.7rem;
    }

    .xyz-infographic-card {
        padding: 0.8rem 0.7rem 0.6rem;
        border-radius: 10px;
    }

    .xyz-icon-wrap {
        width: 36px;
        height: 36px;
        margin-bottom: 0.4rem;
    }

    .xyz-emoji {
        font-size: 1.1rem;
    }

    .xyz-closing-box {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .aura-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .aura-painting-container {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .aura-painting-section {
        padding-top: 1.2rem;
        padding-bottom: 1.5rem;
    }

    .pricing-card {
        padding: 1.2rem 0.9rem;
    }

    .originality-sidebar {
        margin-top: 0.6rem;
    }
}

/* 3D Model Hotspot Styling */
.model-hotspot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(20, 20, 20, 0.7);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s;
}

.model-hotspot:hover {
    transform: scale(1.15);
    background-color: rgba(50, 50, 50, 0.9);
}

/* ============================================================
   COMPREHENSIVE MOBILE OPTIMISATION
   ============================================================ */

/* --- Prevent all horizontal overflow --- */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* --- Nav: single compact row on small screens --- */
@media (max-width: 600px) {
    .nav-links {
        gap: 0.4rem 0.7rem;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .navbar .logo span {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.5rem 0.8rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}

/* --- Hero headings: prevent right-clip --- */
@media (max-width: 600px) {
    h1 {
        font-size: clamp(1.3rem, 7vw, 2rem);
        word-break: break-word;
        padding: 0 0.5rem;
    }

    h2 {
        font-size: clamp(1.1rem, 5.5vw, 1.7rem);
        padding: 0 0.5rem;
    }

    /* Hero subtitle / description */
    .hero-description,
    .hero-description p,
    .subtitle {
        font-size: clamp(0.78rem, 3.8vw, 1rem);
        padding: 0 0.8rem;
        word-break: break-word;
    }

    /* Constrain hero section */
    .hero-content {
        width: 100%;
        padding: 0 0.5rem;
        overflow: hidden;
    }

    /* Solar system wrapper */
    .compass-hero-wrapper,
    .solar-system-model {
        max-width: 100%;
    }
}

/* --- True Date ticker + counter: prevent overflow --- */
@media (max-width: 600px) {
    .ticker-wrap {
        overflow: hidden;
        max-width: 100%;
    }

    .date-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .date-counter-card {
        padding: 0.5rem 0.4rem;
        min-width: 0;
    }

    .counter-xyz {
        font-size: 0.55rem;
        word-break: break-all;
    }

    .display-mode-toggles {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}

/* --- Info cards / overview grid: single column --- */
@media (max-width: 600px) {
    .overview-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .info-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Feature list items (Positional Mapping, Living Clock, etc.) */
    .feature-item,
    .feature-row,
    [class*="feature"] {
        max-width: 100%;
        overflow: hidden;
        word-break: break-word;
    }

    /* Generic section containers */
    .section .container,
    .section-card .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .panel {
        padding: 0.9rem 0.75rem;
        max-width: 100%;
        overflow: hidden;
    }
}

/* --- Widget / position widget split layout: stack on mobile --- */
@media (max-width: 600px) {
    .widget-split-layout {
        grid-template-columns: 1fr;
    }

    #position-widget {
        max-width: 100%;
        overflow: hidden;
    }
}

/* --- Calibrate Your Compass form: full-width inputs --- */
@media (max-width: 600px) {

    .glass-input,
    .glass-input select,
    .glass-input input {
        width: 100%;
        font-size: 0.9rem;
    }

    /* Birth time row */
    #natal-form .time-row,
    .time-row {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    /* Soul results card three-column sign row → keep but smaller text */
    #soul-results-card [style*="grid-template-columns:1fr 1fr 1fr"] {
        gap: 0.3rem;
    }
}

/* --- Section headings inside body sections --- */
@media (max-width: 600px) {

    .section h2,
    .section h3 {
        font-size: clamp(1rem, 5vw, 1.5rem);
        padding: 0 0.5rem;
        word-break: break-word;
    }

    .section p,
    .section-sub {
        padding: 0 0.5rem;
        word-break: break-word;
        font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    }

    /* XYZ info cards grid */
    .xyz-infographic-grid {
        grid-template-columns: 1fr;
    }

    /* Footer IP notice */
    footer .container,
    footer div[style] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}