/* ═══════════════════════════════════════════════════════════════════
   THE INTERNET'S WISHING WELL — Premium Design System
   Single-screen, scroll-driven, conversion-optimized
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* — Cosmic palette — */
    --void: #06060e;
    --void-deep: #020208;
    --nebula-purple: #7b2ff7;
    --nebula-blue: #00f5ff;
    --astral-gold: #d4a745;
    --warm-amber: #e8a838;
    --starlight: #e8e0ff;
    --soft-lavender: rgba(232, 224, 255, 0.7);
    --glass-bg: rgba(10, 10, 30, 0.65);
    --glass-border: rgba(232, 224, 255, 0.08);

    /* — Typography — */
    --font-display: 'Cinzel Decorative', 'Cinzel', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    /* — Transitions — */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--void);
    font-family: var(--font-body);
    color: var(--starlight);
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYER SYSTEM — All fixed, stacked via z-index
   ═══════════════════════════════════════════════════════════════════ */
.layer {
    position: fixed;
    inset: 0;
    will-change: opacity, transform;
    transition: opacity 0.5s var(--ease-out-expo);
}

/* ── STARFIELD (z:1) ── */
#starfield {
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* ── WELL WATER (z:2) ── */
.layer-water {
    z-index: 2;
    background-image: url('assets/well-water.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── WELL HERO BG (z:3) ── */
.layer-well-bg {
    z-index: 3;
    background-image: url('assets/well-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center 55%;
    will-change: transform, opacity;
}

/* ── VIGNETTE (z:4) ── */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(6, 6, 14, 0.75) 100%);
}

/* ── COIN PARTICLES CANVAS (z:5) ── */
#coin-particles {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO TEXT (z:6)
   ═══════════════════════════════════════════════════════════════════ */
.layer-hero-text {
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    pointer-events: auto;
}

.title-line {
    display: block;
}

.title-line:first-child {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    color: var(--soft-lavender);
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.title-shimmer {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    background: linear-gradient(105deg,
            var(--astral-gold) 0%,
            #f5d78e 25%,
            var(--warm-amber) 50%,
            var(--astral-gold) 75%,
            #f5d78e 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 8s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(212, 167, 69, 0.3));
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: var(--soft-lavender);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

/* ── Social proof counters ── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(10, 10, 46, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.8rem 1.6rem;
    margin-bottom: 0.8rem;
    pointer-events: auto;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--astral-gold);
    transition: transform 0.3s ease;
}

.hero-stat-label {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 224, 255, 0.5);
}

.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.hero-disclaimer {
    font-size: 0.68rem;
    color: rgba(232, 224, 255, 0.3);
    margin-top: 0.2rem;
    pointer-events: auto;
}

.hero-disclaimer a {
    color: var(--nebula-blue);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING WISH NOTIFICATIONS (z:7)
   ═══════════════════════════════════════════════════════════════════ */
#floating-wishes {
    position: fixed;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    overflow: hidden;
}

.floating-wish {
    position: absolute;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 167, 69, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--soft-lavender);
    white-space: nowrap;
    animation: wishFloat 6s var(--ease-out-expo) forwards;
    opacity: 0;
}

.floating-wish strong {
    color: var(--astral-gold);
}

@keyframes wishFloat {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    10% {
        transform: translateX(0);
        opacity: 1;
    }

    80% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-30px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA MYSTICAL PORTAL (z:10)
   ═══════════════════════════════════════════════════════════════════ */
.layer-cta {
    z-index: 10;
    opacity: 0;
}

.cta-portal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ── Three orbital rings ── */
.cta-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 167, 69, 0.15);
}

.cta-orbit--outer {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 25s linear infinite;
    border-style: dashed;
    border-color: rgba(123, 47, 247, 0.2);
}

.cta-orbit--mid {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 18s linear infinite reverse;
    border-color: rgba(0, 245, 255, 0.12);
}

.cta-orbit--inner {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 12s linear infinite;
    border-color: rgba(212, 167, 69, 0.2);
}

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

/* ── Floating glyphs ── */
.cta-glyph {
    position: absolute;
    font-size: 1rem;
    color: var(--astral-gold);
    opacity: 0.5;
    text-shadow: 0 0 8px rgba(212, 167, 69, 0.4);
    animation: glyphFloat 6s ease-in-out infinite;
}

.cta-glyph--1 {
    top: 2%;
    left: 50%;
    animation-delay: 0s;
}

.cta-glyph--2 {
    top: 15%;
    right: 5%;
    animation-delay: 0.8s;
}

.cta-glyph--3 {
    top: 40%;
    right: 0;
    animation-delay: 1.5s;
}

.cta-glyph--4 {
    bottom: 15%;
    right: 5%;
    animation-delay: 2.3s;
}

.cta-glyph--5 {
    bottom: 2%;
    left: 50%;
    animation-delay: 3s;
}

.cta-glyph--6 {
    bottom: 15%;
    left: 5%;
    animation-delay: 3.8s;
}

.cta-glyph--7 {
    top: 40%;
    left: 0;
    animation-delay: 4.5s;
}

.cta-glyph--8 {
    top: 15%;
    left: 5%;
    animation-delay: 5.3s;
}

@keyframes glyphFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-8px) scale(1.15);
        opacity: 0.7;
    }
}

/* ── Central wish button ── */
.btn-wish-portal {
    position: relative;
    z-index: 2;
    padding: 16px 42px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--nebula-purple), #5a1bbf);
    border: 1px solid rgba(123, 47, 247, 0.4);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(123, 47, 247, 0.35),
        0 0 60px rgba(0, 245, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.35s ease;
}

.btn-wish-portal:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 40px rgba(123, 47, 247, 0.5),
        0 0 90px rgba(0, 245, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-wish-portal:active {
    transform: scale(0.97);
}

/* Shimmer sweep */
.btn-wish-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    animation: shimmerSweep 4s ease-in-out infinite;
    border-radius: 50px;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-120%);
    }

    40% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(120%);
    }
}

/* Radiance pulse */
.btn-wish-radiance {
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
    opacity: 0;
    animation: radiancePulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes radiancePulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.08);
    }
}

.btn-wish-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-wish-icon {
    font-size: 1.2rem;
    animation: iconSparkle 3s ease-in-out infinite;
}

@keyframes iconSparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-8deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Tagline */
.cta-whisper {
    margin-top: 1rem;
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(232, 224, 255, 0.45);
    letter-spacing: 0.06em;
    background: rgba(10, 10, 46, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   WISH FORM (z:20)
   ═══════════════════════════════════════════════════════════════════ */
.layer-form {
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    background: rgba(6, 6, 14, 0.6);
}

.layer-form.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.form-container {
    width: 95%;
    max-width: 660px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2rem 2.2rem;
    position: relative;
}

/* Scrollbar styling */
.form-container::-webkit-scrollbar {
    width: 4px;
}

.form-container::-webkit-scrollbar-track {
    background: transparent;
}

.form-container::-webkit-scrollbar-thumb {
    background: rgba(123, 47, 247, 0.3);
    border-radius: 4px;
}

/* Glass panel shared */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.back-btn {
    background: none;
    border: 1px solid rgba(232, 224, 255, 0.1);
    color: var(--soft-lavender);
    font-family: var(--font-body);
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(232, 224, 255, 0.06);
    border-color: rgba(232, 224, 255, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--starlight);
    margin: 0.8rem 0 0.3rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--soft-lavender);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(232, 224, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(232, 224, 255, 0.05);
    border: 1px solid rgba(232, 224, 255, 0.1);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--starlight);
    transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nebula-purple);
    box-shadow: 0 0 12px rgba(123, 47, 247, 0.15);
}

.char-count {
    font-size: 0.7rem;
    color: rgba(232, 224, 255, 0.35);
    text-align: right;
}

/* Amount group */
.amount-input-group {
    display: flex;
    align-items: center;
    background: rgba(232, 224, 255, 0.05);
    border: 1px solid rgba(232, 224, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.currency-symbol {
    padding: 0 0.6rem;
    color: var(--astral-gold);
    font-weight: 600;
}

.amount-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.55rem 0.8rem;
}

.amount-input-group input:focus {
    box-shadow: none;
}

.quick-amounts {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.quick-amt {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 167, 69, 0.25);
    background: rgba(212, 167, 69, 0.06);
    color: var(--astral-gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-amt:hover {
    background: rgba(212, 167, 69, 0.15);
    border-color: var(--astral-gold);
    transform: translateY(-1px);
}

/* Payment element */
#payment-element-container {
    margin: 1rem 0;
}

/* Disclaimer checkbox */
.disclaimer-checkbox {
    display: flex;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: rgba(232, 224, 255, 0.55);
    cursor: pointer;
    align-items: flex-start;
    margin: 0.6rem 0;
}

.disclaimer-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--nebula-purple);
}

.disclaimer-checkbox a {
    color: var(--nebula-blue);
    text-decoration: none;
}

/* Submit button */
.btn-cosmic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--nebula-purple), #5a1bbf);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cosmic:hover {
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.3);
    transform: translateY(-1px);
}

.btn-cosmic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
}

.btn-small {
    width: auto;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CELEBRATION (z:25)
   ═══════════════════════════════════════════════════════════════════ */
.layer-celebration {
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    background: rgba(6, 6, 14, 0.75);
    transition: opacity 0.6s var(--ease-out-expo);
}

.layer-celebration.active {
    opacity: 1;
    pointer-events: auto;
}

.celebration-content {
    text-align: center;
    animation: celebrationIn 0.8s var(--ease-out-expo) both;
}

@keyframes celebrationIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 0.8rem;
    animation: iconSparkle 2s ease-in-out infinite;
}

.celebration-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--astral-gold), #f5d78e, var(--warm-amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.celebration-subtitle {
    font-size: 1rem;
    color: var(--soft-lavender);
    margin-bottom: 1.5rem;
}

.celebration-stats {
    font-size: 0.9rem;
    color: rgba(232, 224, 255, 0.6);
    margin-bottom: 1.5rem;
}

.celebration-stats strong {
    color: var(--astral-gold);
    font-family: var(--font-heading);
}

.celebration-bar {
    width: 120px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--astral-gold), transparent);
    animation: barGrow 2s var(--ease-out-expo) forwards;
}

@keyframes barGrow {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 120px;
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CONFETTI CANVAS (z:26)
   ═══════════════════════════════════════════════════════════════════ */
#confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 26;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMUNITY / FORUM (z:30)
   ═══════════════════════════════════════════════════════════════════ */
.layer-forum {
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    background: rgba(6, 6, 14, 0.7);
}

.layer-forum.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.forum-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
}

#leaderboard {
    padding: 1.2rem;
    overflow-y: auto;
    max-height: 85vh;
}

#leaderboard h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

#leaderboard ol {
    padding-left: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.8;
}

.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(232, 224, 255, 0.03);
    border-radius: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--astral-gold);
}

.stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(232, 224, 255, 0.45);
}

.wish-feed {
    padding: 1.2rem;
    overflow-y: auto;
    max-height: 85vh;
}

/* Scrollbar */
.wish-feed::-webkit-scrollbar,
#leaderboard::-webkit-scrollbar {
    width: 3px;
}

.wish-feed::-webkit-scrollbar-thumb,
#leaderboard::-webkit-scrollbar-thumb {
    background: rgba(123, 47, 247, 0.25);
    border-radius: 3px;
}

.sort-controls {
    display: flex;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem;
}

.sort-btn {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(232, 224, 255, 0.1);
    background: transparent;
    color: var(--soft-lavender);
    font-family: var(--font-body);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn.active {
    background: rgba(123, 47, 247, 0.15);
    border-color: var(--nebula-purple);
    color: #fff;
}

#wish-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wish-card {
    padding: 0.9rem 1rem;
    background: rgba(232, 224, 255, 0.03);
    border: 1px solid rgba(232, 224, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wish-card:hover {
    border-color: rgba(123, 47, 247, 0.15);
    background: rgba(232, 224, 255, 0.05);
}

.wish-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.wish-card-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.wish-card-amount {
    color: var(--astral-gold);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
}

.wish-card-message {
    font-size: 0.82rem;
    color: var(--soft-lavender);
    line-height: 1.45;
    margin-bottom: 0.25rem;
}

.wish-card-meta {
    font-size: 0.68rem;
    color: rgba(232, 224, 255, 0.35);
}

.loading-placeholder {
    font-size: 0.82rem;
    color: rgba(232, 224, 255, 0.4);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL HINT (z:8)
   ═══════════════════════════════════════════════════════════════════ */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none;
}

.scroll-hint-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(232, 224, 255, 0.4);
}

.scroll-hint-arrow {
    font-size: 1.4rem;
    color: rgba(232, 224, 255, 0.35);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

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

/* ═══════════════════════════════════════════════════════════════════
   MODAL (z:50)
   ═══════════════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 14, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--soft-lavender);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.disclaimer-text h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
    color: var(--starlight);
}

.disclaimer-text p {
    font-size: 0.82rem;
    color: var(--soft-lavender);
    line-height: 1.6;
}

.disclaimer-text a {
    color: var(--nebula-blue);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST (z:60)
   ═══════════════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.soul-toast {
    padding: 0.6rem 1rem;
    background: rgba(10, 10, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 167, 69, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--starlight);
    animation: toastIn 0.4s var(--ease-out-expo), toastOut 0.4s 3.6s ease-in forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FIREWORKS CANVAS (z:55)
   ═══════════════════════════════════════════════════════════════════ */
#fireworks-canvas {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .forum-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    #leaderboard {
        max-height: 30vh;
    }

    .wish-feed {
        max-height: 55vh;
    }

    .cta-portal {
        width: 260px;
        height: 260px;
    }

    .cta-orbit--outer {
        width: 240px;
        height: 240px;
    }

    .cta-orbit--mid {
        width: 180px;
        height: 180px;
    }

    .cta-orbit--inner {
        width: 120px;
        height: 120px;
    }

    .hero-stats {
        gap: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .floating-wish {
        font-size: 0.65rem;
        left: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.82rem;
    }

    .btn-wish-portal {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}