.donate-block {
    padding: 12px 0 80px;
    background: #07050a;
}

.donate-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.donate-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #120a18;
    border: 1px solid rgba(127, 0, 175, 0.22);
    border-radius: 10px;
    padding: 12px;
}

.donate-cat {
    background: transparent;
    color: #ddd;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    font-family: Barlow, sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.donate-cat i {
    width: 18px;
    color: #c084fc;
}

.donate-cat:hover {
    background: rgba(127, 0, 175, 0.16);
    color: #fff;
}

.donate-cat.on {
    background: linear-gradient(90deg, #7f00af, #5a0080);
    border-color: rgba(192, 132, 252, 0.4);
    color: #fff;
    box-shadow: 0 0 18px rgba(127, 0, 175, 0.45);
}

.donate-cat.on i { color: #fff; }

.donate-lead {
    color: #cfc3dc;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.55;
}

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

.package-card {
    position: relative;
    overflow: hidden;
    background: #120a18;
    border: 1px solid rgba(127, 0, 175, 0.22);
    border-radius: 10px;
    padding: 0 0 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 16px 3px rgba(127, 0, 175, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 0 18px 40px rgba(127, 0, 175, 0.22);
}

.package-banner {
    height: 72px;
    margin-bottom: 14px;
    background:
        radial-gradient(120px 60px at 80% 20%, rgba(192, 132, 252, 0.45), transparent 70%),
        linear-gradient(135deg, #3a0060, #7f00af 55%, #1b1b1b);
}

.package-card.featured {
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow: 0 14px 36px rgba(127, 0, 175, 0.28);
}

.package-card.featured .package-banner {
    background:
        radial-gradient(140px 70px at 20% 80%, rgba(255,255,255,0.18), transparent 70%),
        linear-gradient(135deg, #7f00af, #c084fc 60%, #4a0070);
}

.package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: #7f00af;
    font-family: Barlow, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 999px;
}

.package-card.soon .package-badge {
    background: #2a2a2a;
    color: #bbb;
}

.package-card h3,
.package-card .price,
.package-card ul,
.package-card .buy-btn,
.package-card .support-amount,
.package-card .package-body {
    margin-left: 16px;
    margin-right: 16px;
}

.package-card h3 {
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 4px;
    color: #fff;
}

.package-card .price {
    color: #c084fc;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px;
}

.package-blurb {
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 16px 14px;
    flex: 1;
}

.package-card ul {
    color: #c8c8c8;
    font-size: 13px;
    margin: 0 16px 14px;
    padding: 0;
    list-style: none;
    flex: 1;
}

.package-card ul li {
    position: relative;
    padding: 4px 0 4px 18px;
}

.package-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c084fc;
    font-weight: 800;
}

.package-card .buy-btn {
    margin-top: auto;
}

.refill-card .qty-label {
    margin: 0 16px 14px;
}

.refill-card .qty-label input {
    width: 100%;
}

.package-card.soon { opacity: 0.72; }

.buy-btn {
    display: block;
    width: calc(100% - 32px);
    background: linear-gradient(180deg, #9b1ad0, #7f00af);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(127, 0, 175, 0.35);
}

.buy-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.buy-btn:disabled {
    background: #2a2a2a;
    box-shadow: none;
    color: #999;
    cursor: not-allowed;
}

.donate-rail { display: flex; flex-direction: column; gap: 14px; }

.donate-widget {
    background: #120a18;
    border: 1px solid rgba(127, 0, 175, 0.22);
    border-radius: 10px;
    padding: 16px 16px 14px;
}

.donate-widget h3,
.donate-widget h4 {
    font-family: Barlow, sans-serif;
    font-weight: 700;
    color: #fff;
}

.donate-widget h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.donate-widget h4 {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c084fc;
    margin: 14px 0 6px;
}

.donate-widget p, .donate-widget li {
    color: #c8c8c8;
    font-size: 13px;
}

.goal-bar {
    height: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.goal-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7f00af, #c084fc);
    box-shadow: 0 0 10px rgba(127, 0, 175, 0.6);
}

.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}
.recent-list img.head {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
    flex-shrink: 0;
    background: #2a2a2a;
}

.support-amount {
    width: calc(100% - 32px);
    background: #1b1b1b;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
}

#account-status code,
.donate-widget code {
    color: #c084fc;
    background: rgba(127, 0, 175, 0.22);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.anon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
    margin-bottom: 10px;
    cursor: pointer;
}

.anon-toggle input {
    accent-color: #7f00af;
}

.account-line {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 6px;
}

.donate-widget .connect-button-mini,
#discord-login {
    display: inline-block;
    background: linear-gradient(180deg, #9b1ad0, #7f00af);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(127, 0, 175, 0.35);
}

.logout-link {
    display: inline-block;
    margin: 8px 0 0;
    color: #c084fc;
    font-weight: 700;
    font-size: 13px;
}

.purchase-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}

.purchase-list li {
    color: #c8c8c8;
}

.checkout-page {
    background: #120a18;
    border: 1px solid rgba(127, 0, 175, 0.22);
    border-radius: 10px;
    padding: 28px 28px 24px;
    min-height: 460px;
}

.checkout-page[hidden],
#shop-page[hidden],
#receipt-page[hidden],
#pkg-page[hidden],
#gift-page[hidden],
#history-page[hidden] { display: none !important; }

.store-pane.is-leaving {
    animation: store-out 180ms ease forwards;
    pointer-events: none;
}
.store-pane.is-entering {
    animation: store-in 280ms ease;
}
@keyframes store-out {
    to { opacity: 0; transform: translateY(18px); }
}
@keyframes store-in {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: none; }
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.checkout-kicker {
    color: #c084fc !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 6px;
}

.checkout-page h2 {
    color: #fff;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 32px;
    margin: 0 0 10px;
}

.checkout-lead {
    color: #c8c8c8;
    font-size: 16px;
    margin-bottom: 18px;
}

.checkout-recap {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #c8c8c8;
    font-size: 14px;
}

.checkout-row:last-child { border-bottom: 0; }

.checkout-row strong {
    color: #fff;
    font-weight: 700;
    text-align: right;
}

.checkout-total { color: #c084fc !important; font-size: 18px; }

.checkout-perks {
    color: #c8c8c8;
    font-size: 14px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.checkout-perks li {
    position: relative;
    padding: 5px 0 5px 20px;
}

.checkout-perks li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c084fc;
    font-weight: 800;
}

.checkout-tos {
    align-items: flex-start;
    margin: 0 0 16px;
}

.checkout-tos a { color: #c084fc; font-weight: 700; }

.checkout-error {
    color: #ff8a8a;
    font-size: 13px;
    margin-bottom: 12px;
}

.checkout-pay {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}

.pay-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
}

.pay-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pay-tokens {
    background: linear-gradient(180deg, #9b1ad0, #7f00af);
    box-shadow: 0 8px 18px rgba(127, 0, 175, 0.35);
}

.pay-stripe { background: #7f00af; }

.pay-paypal { background: #003087; }

.checkout-cancel {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: transparent;
    border: 0;
    color: #c8c8c8;
    font-weight: 700;
    cursor: pointer;
}

.checkout-secure {
    color: #9a9a9a;
    font-size: 12px;
    text-align: center;
    margin: 12px 0 0;
}

.receipt-page {
    max-width: 640px;
}

.receipt-page h2 {
    margin-bottom: 18px;
}

.receipt-number {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin: 0 0 18px;
    text-align: center;
}

.receipt-number span {
    display: block;
    color: #c8c8c8;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.receipt-number strong {
    display: block;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 28px;
    letter-spacing: 0.1em;
}

.receipt-id {
    color: #9a9a9a;
    font-size: 12px;
    margin: 0 0 16px;
}

.receipt-id code,
#receipt-oid {
    color: #f3e8ff !important;
    background: #1b1024 !important;
    border: 1px solid rgba(192, 132, 252, 0.35);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.receipt-btn {
    flex: 1 1 140px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 8px;
    padding: 11px 14px;
    background: transparent;
    color: #fff;
    font-family: Barlow, sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.receipt-btn-ghost {
    border-color: rgba(255, 255, 255, 0.14);
    color: #c8c8c8;
}

.receipt-doc { display: none; }

.account-menu {
    position: relative;
    margin: 10px 0 0;
}
.account-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: Barlow, sans-serif;
    font-weight: 700;
    cursor: pointer;
}
.account-drop {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 6px;
    z-index: 5;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.account-menu.open .account-drop { display: block; }
.account-drop button,
.account-drop a {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #ddd;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.account-drop button:hover,
.account-drop a:hover { background: rgba(127, 0, 175, 0.25); color: #fff; }

.redeem-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.redeem-row input {
    flex: 1;
    background: #1b1b1b;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    padding: 8px;
}

.history-table-wrap { overflow-x: auto; }
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
}
.history-table th,
.history-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #c8c8c8;
    font-size: 13px;
}
.history-table th {
    color: #c084fc;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.history-table tbody tr { cursor: pointer; }
.history-table tbody tr:hover { background: rgba(127, 0, 175, 0.16); }
.history-table code { color: #fff; font-size: 12px; }

.pkg-hero {
    height: 90px;
    border-radius: 12px;
    margin-bottom: 14px;
    background:
        radial-gradient(140px 70px at 20% 80%, rgba(255,255,255,0.18), transparent 70%),
        linear-gradient(135deg, #7f00af, #c084fc 60%, #4a0070);
}
.pkg-price {
    color: #c084fc;
    font-family: Barlow, sans-serif;
    font-weight: 800;
    font-size: 26px;
    margin: 0 0 8px;
}
.pkg-was {
    color: #888;
    text-decoration: line-through;
    margin: 0 0 10px;
}
.qty-label {
    display: block;
    color: #c8c8c8;
    font-size: 13px;
    margin: 0 0 12px;
}
.qty-label input {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: #1b1b1b;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
}

.gift-confirm {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0 20px;
}
.gift-head {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    background: #222;
}
.gift-confirm strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-family: Barlow, sans-serif;
}
.gift-confirm span {
    display: block;
    color: #9a9a9a;
    font-size: 12px;
    word-break: break-all;
}
.gift-locked {
    color: #c084fc;
    font-weight: 700;
    margin: 8px 0 12px;
}
#basket-count {
    display: inline-block;
    min-width: 1.4em;
    padding: 1px 7px;
    border-radius: 999px;
    background: #7f00af;
    color: #fff;
    font-size: 12px;
}
#basket-checkout {
    margin-top: 10px;
    width: 100%;
    border: 0;
    cursor: pointer;
}
#basket-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

.package-card .price-was {
    color: #888;
    text-decoration: line-through;
    font-size: 13px;
    margin-left: 16px;
}

@media print {
    html, body {
        background: #fff !important;
        color: #111 !important;
        margin: 0;
        padding: 0;
    }
    .preloader,
    header,
    .responsive-mobile-menu,
    .store-hero,
    .donate-cats,
    .donate-rail,
    #shop-page,
    #checkout-page,
    #pkg-page,
    #gift-page,
    #history-page,
    .receipt-screen,
    .header-divider,
    footer {
        display: none !important;
    }
    .wrapper, .block, .donate-block, .container, .donate-layout, .donate-main, #receipt-page {
        display: block !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        width: 100% !important;
    }
    #receipt-page {
        position: static !important;
        color: #111 !important;
    }
    .receipt-doc {
        display: block !important;
        max-width: 720px;
        margin: 0 auto;
        padding: 0.4in 0.2in;
        color: #111;
        font-family: "Times New Roman", Times, serif;
        font-size: 12pt;
        line-height: 1.4;
    }
    .inv-letterhead {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
        padding-bottom: 14px;
        border-bottom: 2px solid #111;
        margin-bottom: 22px;
    }
    .inv-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .inv-brand img {
        height: 42px;
        width: auto;
    }
    .inv-brand strong {
        display: block;
        font-size: 16pt;
        letter-spacing: 0.02em;
    }
    .inv-brand span {
        display: block;
        font-size: 10pt;
        color: #333;
    }
    .inv-mark {
        text-align: right;
    }
    .inv-mark em {
        display: block;
        font-style: normal;
        font-size: 18pt;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-weight: 700;
    }
    .inv-mark span {
        display: block;
        margin-top: 6px;
        font-family: "Courier New", Courier, monospace;
        font-size: 12pt;
        letter-spacing: 0.06em;
    }
    .inv-meta, .inv-items {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 22px;
    }
    .inv-meta th {
        text-align: left;
        font-size: 8.5pt;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #555;
        font-weight: 700;
        padding: 0 12px 6px 0;
        border: 0;
    }
    .inv-meta td {
        text-align: left;
        padding: 0 12px 0 0;
        vertical-align: top;
        border: 0;
        font-size: 11pt;
    }
    .inv-items thead th {
        text-align: left;
        border-bottom: 1px solid #111;
        padding: 8px 0;
        font-size: 8.5pt;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .inv-items thead th:nth-child(2),
    .inv-items thead th:nth-child(3),
    .inv-items td:nth-child(2),
    .inv-items td:nth-child(3),
    .inv-items tfoot th {
        text-align: right;
    }
    .inv-items td {
        padding: 12px 0;
        border-bottom: 1px solid #ddd;
        font-size: 11pt;
    }
    .inv-items tfoot th {
        padding: 12px 0 0;
        border-top: 2px solid #111;
        font-size: 12pt;
    }
    .inv-ref {
        font-size: 9pt;
        color: #444;
        margin: 0 0 28px;
        font-family: "Courier New", Courier, monospace;
    }
    .inv-footer {
        font-size: 9.5pt;
        color: #333;
        margin: 0 0 10px;
        max-width: 36em;
    }
    .inv-legal {
        font-size: 8.5pt;
        color: #666;
        margin: 0;
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }
}

@media (max-width: 1100px) {
    .donate-layout {
        grid-template-columns: 1fr;
    }
    .donate-cats { flex-direction: row; flex-wrap: wrap; }
    .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .checkout-page h2 { font-size: 26px; }
}
