/* Donate page (owner, 2026-10-22, after the MuDream page): one hero card holding the package pick,
   then the payment methods, then the questions. One form: the package radio and the provider button. */

.donx {
    display: grid;
    gap: 22px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.donx-form {
    display: grid;
    gap: 34px;
    margin: 0;
}

/* ------------------------------------------------------------------ hero + package pick */

.donx-hero {
    display: grid;
    gap: 16px;
    padding: 22px 28px 26px;
    border: 1px solid rgba(240, 198, 116, .3);
    border-radius: 22px;
    background:
        radial-gradient(60% 90% at 78% 30%, rgba(240, 160, 60, .2), transparent 70%),
        linear-gradient(180deg, rgba(24, 21, 17, .96), rgba(10, 9, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 44px rgba(0, 0, 0, .35);
    scroll-margin-top: 90px;
}

.donx-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    align-items: center;
    gap: 24px;
}

.donx-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.donx-chip {
    padding: 4px 11px;
    border: 1px solid rgba(240, 198, 116, .45);
    border-radius: 999px;
    color: var(--modern-gold, #f0c674);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.donx-chip--hot {
    border-color: transparent;
    background: linear-gradient(180deg, #ffd25e, #f08a1c);
    color: #1a1208;
}

.donx-hero__title {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 36px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.donx-hero__title span {
    display: inline;
    background: linear-gradient(180deg, #ffd86b, #f08a1c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.donx-hero__sub {
    margin: 0;
    max-width: 540px;
    color: rgba(238, 242, 255, .82);
    font-size: 15px;
    line-height: 1.5;
}

.donx-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    max-width: 540px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(240, 160, 60, .4);
    border-radius: 12px;
    background: rgba(60, 36, 10, .45);
    color: rgba(238, 242, 255, .8);
    font-size: 12px;
    line-height: 1.45;
}

.donx-note b {
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffd86b, #d99a1e);
    color: #1b1204;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.donx-note--green {
    border-color: rgba(102, 209, 158, .4);
    background: rgba(10, 50, 32, .45);
}

.donx-note--green b {
    background: linear-gradient(180deg, #8ff0b4, #2fae6a);
}

.donx-hero__side {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.donx-hero__art {
    width: 100%;
    max-width: 210px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(240, 140, 40, .3));
}

.donx-hero__art--coin {
    display: grid;
    place-items: center;
    max-width: 200px;
}

.donx-hero__art--coin .coin-icon {
    width: 150px;
    height: 150px;
    margin: 0;
}

.donx-hero__balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(240, 198, 116, .25);
    border-radius: 999px;
    background: rgba(0, 0, 0, .4);
    color: rgba(238, 242, 255, .65);
    font-size: 12px;
    font-weight: 700;
}

.donx-hero__balance b {
    color: var(--modern-gold, #f0c674);
    font-size: 20px;
}

.donx-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 8px;
}

.donx-step__label {
    color: rgba(238, 242, 255, .7);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.donx-step__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: rgba(238, 242, 255, .78);
    font-size: 13px;
}

.donx-step__trust span::before {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    vertical-align: -2px;
}

.donx-step__trust .is-ok::before {
    content: "✓";
    background: #35c98f;
    color: #08130d;
}

.donx-step__trust .is-safe::before {
    content: "🛡";
    width: auto;
    background: none;
    font-size: 13px;
}

/* Package cards: the whole card is the radio. */
.donx-packs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.donx-pack {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 18px 10px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(48, 34, 16, .55), rgba(8, 8, 8, .85) 60%);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.donx-pack:hover {
    border-color: rgba(240, 198, 116, .5);
    transform: translateY(-2px);
}

.donx-pack.is-popular {
    border-color: rgba(240, 198, 116, .45);
}

.donx-pack input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donx-pack:has(input:checked) {
    border-color: #f0c674;
    box-shadow: 0 0 0 3px rgba(240, 198, 116, .2), 0 12px 28px rgba(240, 140, 40, .18);
}

.donx-pack:has(input:focus-visible) {
    outline: 2px solid #f5d58c;
    outline-offset: 2px;
}

.donx-pack__dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
}

.donx-pack:has(input:checked) .donx-pack__dot {
    border-color: #f0c674;
    background: radial-gradient(circle, #f0c674 0 4px, transparent 5px);
}

.donx-pack__bonus {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd25e, #f08a1c);
    color: #1a1208;
    font-size: 11px;
    font-weight: 950;
}

.donx-pack__art {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
}

.donx-pack__art--coin {
    display: grid;
    place-items: center;
}

.donx-pack__art--coin .coin-icon {
    width: 44px;
    height: 44px;
    margin: 0;
}

.donx-pack__coins {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.donx-pack__coins .coin-icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

.donx-pack__price {
    color: rgba(238, 242, 255, .85);
    font-size: 14px;
    font-weight: 800;
}

.donx-pack__price s {
    margin-right: 4px;
    color: rgba(238, 242, 255, .4);
    font-size: 11px;
    font-weight: 700;
}

.donx-pack__tickets {
    color: var(--modern-gold, #f0c674);
    font-size: 11px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ payment methods */

.donx-pay {
    display: grid;
    gap: 14px;
}

.donx-title {
    margin: 0;
    line-height: 1.1;
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.donx-pay__sub {
    margin: -6px 0 0;
    max-width: 560px;
    color: rgba(238, 242, 255, .7);
    font-size: 14px;
    line-height: 1.5;
}

.donx-pay__hint {
    display: none;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(240, 160, 60, .25);
    border-radius: 10px;
    background: rgba(60, 36, 10, .4);
    color: rgba(238, 242, 255, .85);
    font-size: 13px;
}

.donx-pay__hint a {
    margin-left: 8px;
    color: var(--modern-gold, #f0c674);
    font-weight: 800;
}

.donx-form:not(:has(input[name="package"]:checked)) .donx-pay__hint,
.donx-pay__hint.is-shown {
    display: block;
}

.donx-author {
    max-width: 420px;
}

.donx-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.donx-method {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    color: #fff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, transform .15s, opacity .15s;
}

.donx-method:hover {
    border-color: rgba(240, 198, 116, .6);
    transform: translateY(-2px);
}

.donx-method b {
    font-size: 20px;
    font-weight: 950;
}

.donx-method--card b {
    color: #8f9cff;
}

.donx-method--paypal b {
    color: #5fb4ff;
}

.donx-method--crypto b {
    color: #35c98f;
}

.donx-method__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.donx-method__chips i {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    color: rgba(238, 242, 255, .8);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.donx-method small {
    color: rgba(238, 242, 255, .5);
    font-size: 11px;
}

/* No package yet, or a package below a method's minimum: the method waits. */
.donx-form:not(:has(input[name="package"]:checked)) button.donx-method,
.donx-form:has(input[data-paypal="0"]:checked) button.donx-method--paypal,
.donx-form:has(input[data-crypto="0"]:checked) button.donx-method--crypto {
    opacity: .4;
    pointer-events: none;
}

/* ------------------------------------------------------------------ questions */

.donx-faq {
    display: grid;
    gap: 22px;
    margin-top: 18px;
    scroll-margin-top: 90px;
}

.donx-faq__head {
    text-align: center;
}

.donx-faq__head h2 {
    margin: 0;
    background: linear-gradient(180deg, #ffd86b, #f08a1c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 40px;
    font-weight: 950;
    text-transform: uppercase;
}

.donx-faq__head p {
    margin: 8px 0 0;
    color: rgba(238, 242, 255, .7);
    font-size: 15px;
}

.donx-faq__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 22px;
}

.donx-faq__list {
    display: grid;
    gap: 10px;
}

.donx-q {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(8, 8, 8, .7);
    transition: border-color .15s;
}

.donx-q[open] {
    border-color: rgba(240, 198, 116, .4);
    box-shadow: inset 3px 0 0 #f0a020;
}

.donx-q summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    list-style: none;
    cursor: pointer;
}

.donx-q summary::-webkit-details-marker {
    display: none;
}

.donx-q summary em {
    flex: none;
    color: rgba(238, 242, 255, .45);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.donx-q summary span {
    flex: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.donx-q[open] summary span,
.donx-q[open] summary em {
    color: var(--modern-gold, #f0c674);
}

.donx-q summary i {
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eef2ff' stroke-width='2'/%3E%3C/svg%3E");
    transition: transform .15s;
}

.donx-q[open] summary i {
    border-color: transparent;
    background-color: #f0a020;
    transform: rotate(180deg);
}

.donx-q p {
    margin: 0;
    padding: 0 20px 18px 52px;
    color: rgba(238, 242, 255, .8);
    font-size: 14px;
    line-height: 1.6;
}

.donx-faq__help {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(240, 198, 116, .25);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(48, 34, 16, .5), rgba(8, 8, 8, .8));
}

.donx-faq__help b {
    color: #fff;
    font-size: 15px;
}

.donx-faq__help p {
    margin: 0;
    color: rgba(238, 242, 255, .7);
    font-size: 13px;
    line-height: 1.5;
}

.donx-faq__help a {
    justify-self: start;
    padding: 8px 16px;
    border: 1px solid rgba(240, 198, 116, .6);
    border-radius: 999px;
    color: var(--modern-gold, #f0c674);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 980px) {
    .donx-packs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .donx-faq__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .donx-hero {
        padding: 20px 16px;
    }

    .donx-hero__top {
        grid-template-columns: 1fr;
    }

    .donx-hero__side {
        order: -1;
    }

    .donx-hero__art {
        max-width: 150px;
    }

    .donx-hero__title {
        font-size: 28px;
    }

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

    .donx-title {
        font-size: 26px;
    }

    .donx-faq__head h2 {
        font-size: 30px;
    }

    .donx-q p {
        padding-left: 20px;
    }
}

/* ------------------------------------------------------------------ transfer block, visual (owner, 2026-10-22) */

.donx-pay {
    margin-top: 18px;
    padding: 24px 28px 26px;
    border: 1px solid rgba(240, 198, 116, .22);
    border-radius: 22px;
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(90, 120, 255, .1), transparent 70%),
        linear-gradient(180deg, rgba(24, 21, 17, .94), rgba(10, 9, 8, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 44px rgba(0, 0, 0, .3);
}

.donx-stepno {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd86b, #f08a1c);
    color: #1a1208;
    font-size: .8em;
    font-weight: 950;
    line-height: 1;
    vertical-align: .12em;
}

.donx-title .donx-stepno {
    font-size: 20px;
    width: 34px;
    height: 34px;
    vertical-align: 5px;
}

.donx-summary {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 16px;
    border: 1px solid rgba(240, 198, 116, .35);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(240, 160, 60, .16), rgba(240, 160, 60, .03));
}

.donx-summary.is-shown {
    display: flex;
}

.donx-summary__label {
    color: rgba(238, 242, 255, .65);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.donx-summary__sum {
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.donx-summary__coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: rgba(238, 242, 255, .75);
    font-size: 13px;
}

.donx-summary__coins b {
    color: var(--modern-gold, #f0c674);
    font-size: 18px;
    font-weight: 950;
}

.donx-summary__coins .coin-icon {
    width: 20px;
    height: 20px;
}

.donx-author .donate-pack__author-toggle {
    justify-content: flex-start;
}

.donx-pay .terms-consent {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    color: rgba(238, 242, 255, .85);
    transition: border-color .15s, background .15s;
}

.donx-pay .terms-consent:has(input:checked) {
    border-color: rgba(53, 201, 143, .55);
    background: rgba(53, 201, 143, .07);
}

.donx-method__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.donx-method__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.donx-method__icon svg {
    width: 24px;
    height: 24px;
}

.donx-method--card .donx-method__icon { color: #8f9cff; background: rgba(143, 156, 255, .14); }
.donx-method--paypal .donx-method__icon { color: #5fb4ff; background: rgba(95, 180, 255, .14); }
.donx-method--crypto .donx-method__icon { color: #35c98f; background: rgba(53, 201, 143, .14); }

.donx-method__go {
    margin-left: auto;
    color: rgba(238, 242, 255, .35);
    font-size: 20px;
    transition: transform .15s, color .15s;
}

.donx-method:hover .donx-method__go {
    color: var(--modern-gold, #f0c674);
    transform: translateX(3px);
}

.donx-method--card:hover { border-color: rgba(143, 156, 255, .6); box-shadow: 0 10px 28px rgba(143, 156, 255, .14); }
.donx-method--paypal:hover { border-color: rgba(95, 180, 255, .6); box-shadow: 0 10px 28px rgba(95, 180, 255, .14); }
.donx-method--crypto:hover { border-color: rgba(53, 201, 143, .6); box-shadow: 0 10px 28px rgba(53, 201, 143, .14); }

/* Until the terms box is ticked the methods wait too; a click shows the browser's own "tick this box". */
.donx-form:not(:has(.terms-consent input:checked)) button.donx-method {
    opacity: .45;
}

@media (max-width: 760px) {
    .donx-pay {
        padding: 18px 16px 20px;
    }

    .donx-title .donx-stepno {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .donx-summary__coins {
        margin-left: 0;
    }
}
