/* =========================
   Base
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #f4f6ff;
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 55, 177, 0.22), transparent 30%),
        radial-gradient(circle at 80% 15%, rgba(104, 191, 206, 0.15), transparent 30%),
        radial-gradient(circle at 50% 95%, rgba(255, 55, 177, 0.15), transparent 35%),
        linear-gradient(180deg, #080813 0%, #111024 45%, #160f27 100%);
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   Page
========================= */

.donate-page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0 25px;
}

#donateBox,
#otherWays {
    scroll-margin-top: 90px;
}


/* =========================
   Hero
========================= */

.donate-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
    overflow: hidden;
    min-height: 420px;
    padding: 42px;
    border: 1px solid rgba(191, 199, 238, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(21, 25, 48, 0.92), rgba(16, 10, 30, 0.92)),
        radial-gradient(circle at 15% 10%, rgba(236, 98, 255, 0.22), transparent 26rem);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.donate-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0.5;
}

.hero-glow-one {
    right: 270px;
    top: -90px;
    background: rgba(236, 98, 255, 0.28);
}

.hero-glow-two {
    right: -90px;
    bottom: -100px;
    background: rgba(104, 191, 206, 0.26);
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #68bfce;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #68bfce;
    box-shadow: 0 0 14px rgba(104, 191, 206, 0.85);
}

.hero-content h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero-text {
    max-width: 660px;
    margin: 24px 0 0;
    color: #d9defa;
    font-size: clamp(1rem, 1.8vw, 1.17rem);
    line-height: 1.5;
}

.hero-note {
    max-width: 620px;
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(191, 199, 238, 0.14);
    border-radius: 18px;
    color: #eef1ff;
    background: rgba(255, 255, 255, 0.045);
    line-height: 1.5;
}

.hero-note strong {
    color: #ffffff;
}

.hero-actions,
.donate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.primary-btn,
.secondary-btn,
.donate-other-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    border: 1px solid rgba(104, 191, 206, 0.55);
    color: #061018;
    background: linear-gradient(135deg, #8ef3ff, #c38cff);
    box-shadow: 0 0 26px rgba(104, 191, 206, 0.22);
}

.secondary-btn,
.donate-other-btn {
    border: 1px solid rgba(191, 199, 238, 0.2);
    color: #eef1ff;
    background: rgba(255, 255, 255, 0.055);
}

.primary-btn:hover,
.secondary-btn:hover,
.donate-btn:hover,
.donate-other-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.donate-other-btn:focus-visible {
    outline: 3px solid rgba(104, 191, 206, 0.45);
    outline-offset: 3px;
}


/* =========================
   Hero Card
========================= */

.hero-card {
    align-self: center;
    padding: 24px;
    border: 1px solid rgba(191, 199, 238, 0.18);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(7, 8, 19, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dfe5ff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #68bfce;
    box-shadow: 0 0 16px rgba(104, 191, 206, 0.9);
}

.status-date {
    display: grid;
    gap: 8px;
    margin-top: 26px;
}

.status-date span,
.countdown-box span,
.countdown-box small {
    color: #aeb8dd;
    font-size: 1rem;
}

.status-date strong {
    color: #ffffff;
    font-size: 2rem;
}

.countdown-box {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(104, 191, 206, 0.2);
    border-radius: 22px;
    background: rgba(104, 191, 206, 0.08);
}

.countdown-box strong {
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
}


/* =========================
   Shared Sections
========================= */

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 22px;
    margin-top: 24px;
}

.goal-card,
.info-card,
.supporters-section,
.other-ways-section,
.contact-section,
.faq-section {
    border: 1px solid rgba(191, 199, 238, 0.16);
    border-radius: 26px;
    background: rgba(12, 15, 32, 0.78);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
}

.goal-card,
.info-card {
    padding: 28px;
}

.goal-card h2,
.info-card h2,
.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    letter-spacing: -0.035em;
}

.goal-card p,
.info-card p,
.section-heading p,
.help-card p,
.benefit-item p,
.faq-list p {
    color: #c9d1ef;
    line-height: 1.7;
}

.goal-card p,
.info-card p {
    margin: 14px 0 0;
}


/* =========================
   Goal
========================= */

.goal-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    color: #ffffff;
}

.goal-stats strong {
    font-size: 1.35rem;
}

.goal-stats span {
    color: #68bfce;
    font-size: 1.25rem;
    font-weight: 900;
}

.progress-bar {
    overflow: hidden;
    height: 14px;
    margin-top: 12px;
    border: 1px solid rgba(191, 199, 238, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #68bfce, #c38cff);
    box-shadow: 0 0 18px rgba(104, 191, 206, 0.45);
    transition: width 0.8s ease;
}

.goal-thanks {
    margin: 14px 0 0;
    color: #c9d1ef;
    font-size: 0.92rem;
    line-height: 1.6;
}


/* =========================
   Icon Tiles
========================= */

.benefit-icon,
.help-card span,
.contact-icon,
.supporter-empty-icon {
    display: grid;
    place-items: center;
    color: #061018;
    font-weight: 900;
    background: linear-gradient(135deg, #68bfce, #c38cff);
}


/* =========================
   Benefits
========================= */

.benefits-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.benefit-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(191, 199, 238, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.benefit-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.benefit-item h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.benefit-item p {
    margin: 5px 0 0;
    font-size: 0.94rem;
}


/* =========================
   Supporters
========================= */

.supporters-section,
.other-ways-section,
.contact-section,
.faq-section {
    margin-top: 24px;
    padding: 30px;
}

.section-heading {
    max-width: 1000px;
}

.section-heading p {
    margin: 12px 0 0;
}

.supporters-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 170px;
    justify-content: start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    margin-top: 24px;
    padding: 2px 2px 0;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.supporters-grid::-webkit-scrollbar {
    height: 0;
}

.supporters-grid.has-overflow {
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(104, 191, 206, 0.55) rgba(255, 255, 255, 0.06);
}

.supporters-grid.has-overflow::-webkit-scrollbar {
    height: 8px;
}

.supporters-grid.has-overflow::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.supporters-grid.has-overflow::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #68bfce, #c38cff);
}

.supporters-grid-empty {
    display: block;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.supporter-empty-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid rgba(104, 191, 206, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(104, 191, 206, 0.08), rgba(195, 140, 255, 0.07)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 24px rgba(104, 191, 206, 0.08);
}

.supporter-empty-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 115px;
    height: 115px;
    border-radius: 999px;
    background: rgba(104, 191, 206, 0.1);
    pointer-events: none;
}

.supporter-empty-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    font-size: 1.15rem;
    box-shadow: 0 0 18px rgba(104, 191, 206, 0.22);
}

.supporter-empty-card div {
    position: relative;
    z-index: 1;
}

.supporter-empty-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.35;
}

.supporter-empty-card p {
    margin: 6px 0 0;
    color: #c9d1ef;
    font-size: 0.92rem;
    line-height: 1.6;
}

.supporter-card {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    min-height: 120px;
    padding: 16px;
    border: 1px solid rgba(191, 199, 238, 0.14);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    scroll-snap-align: start;
}

.supporter-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: rgba(104, 191, 206, 0.1);
}

.supporter-card h3 {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(104, 191, 206, 0.42);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(104, 191, 206, 0.09);
    box-shadow: 0 0 16px rgba(104, 191, 206, 0.12);
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.supporter-rank {
    display: inline-grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.supporter-rank-gold {
    color: #2a1700;
    background: linear-gradient(135deg, #fff2a8, #f2b84b);
    box-shadow: 0 0 14px rgba(242, 184, 75, 0.28);
}

.supporter-rank-silver {
    color: #111827;
    background: linear-gradient(135deg, #f2f6ff, #aeb8c8);
    box-shadow: 0 0 14px rgba(190, 200, 220, 0.22);
}

.supporter-rank-bronze {
    color: #251000;
    background: linear-gradient(135deg, #ffd0a1, #b87333);
    box-shadow: 0 0 14px rgba(184, 115, 51, 0.24);
}

.supporter-card h3.supporter-name-rank-1 {
    border-color: rgba(242, 184, 75, 0.55);
    background: rgba(242, 184, 75, 0.09);
    box-shadow: 0 0 16px rgba(242, 184, 75, 0.14);
}

.supporter-card h3.supporter-name-rank-2 {
    border-color: rgba(190, 200, 220, 0.52);
    background: rgba(190, 200, 220, 0.08);
    box-shadow: 0 0 16px rgba(190, 200, 220, 0.12);
}

.supporter-card h3.supporter-name-rank-3 {
    border-color: rgba(184, 115, 51, 0.55);
    background: rgba(184, 115, 51, 0.09);
    box-shadow: 0 0 16px rgba(184, 115, 51, 0.13);
}

.supporter-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: #aeb8dd;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.supporter-thanks,
.supporter-amount {
    display: block;
}

.supporter-thanks {
    color: #aeb8dd;
}

.supporter-amount {
    color: #68bfce;
    font-weight: 700;
}


/* =========================
   Other Ways
========================= */

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.help-card {
    padding: 20px;
    border: 1px solid rgba(191, 199, 238, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.help-card:hover {
    transform: translateY(-3px);
    border-color: rgba(104, 191, 206, 0.34);
    background: rgba(104, 191, 206, 0.06);
}

.help-card span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.help-card h3 {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: 1rem;
}

.help-card p {
    margin: 8px 0 0;
    font-size: 0.92rem;
}

/* =========================
   Contact
========================= */

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 24px auto 0;
    padding: 20px;
    padding-right: 40px;
    border: 1px solid rgba(104, 191, 206, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(104, 191, 206, 0.08), rgba(195, 140, 255, 0.07)),
        rgba(255, 255, 255, 0.04);
}

.contact-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.contact-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.contact-content p {
    max-width: 550px;
    margin: 7px 0 0;
    color: #c9d1ef;
    line-height: 1.65;
}

.discord-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(104, 191, 206, 0.45);
    border-radius: 999px;
    color: #061018;
    background: linear-gradient(135deg, #8ef3ff, #c38cff);
    font-size: 0.92rem;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(104, 191, 206, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(104, 191, 206, 0.25);
}

.discord-btn:focus-visible {
    outline: 3px solid rgba(104, 191, 206, 0.45);
    outline-offset: 3px;
}


/* =========================
   FAQ
========================= */

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.faq-list details {
    border: 1px solid rgba(191, 199, 238, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
    cursor: pointer;
    padding: 16px 20px;
    color: #ffffff;
    font-weight: 800;
}

.faq-list summary::marker {
    color: #68bfce;
}

.faq-list p {
    margin: 0;
    padding: 0 18px 18px;
}


/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
    .donate-hero,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        align-self: stretch;
    }

    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .donate-page {
        width: min(100% - 22px, 1180px);
    }

    .donate-hero {
        min-height: unset;
        padding: 24px;
        border-radius: 24px;
    }

    .hero-actions,
    .donate-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .donate-btn,
    .donate-other-btn,
    .discord-btn {
        width: 100%;
    }

    .goal-card,
    .info-card,
    .supporters-section,
    .other-ways-section,
    .contact-section,
    .faq-section {
        padding: 22px;
        border-radius: 22px;
    }

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

    .supporters-grid {
        grid-auto-columns: minmax(150px, 74%);
    }

    .goal-stats {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .countdown-box strong {
        font-size: 2.6rem;
    }

    .contact-card {
        align-items: stretch;
        flex-direction: column;
    }

    .supporter-empty-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .supporter-empty-icon {
        width: 38px;
        height: 38px;
    }
}


/* =========================
   Hide Page Scrollbar Only
========================= */

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}