/* ============================================================
   DONATE PAGE — StonkPro
   Applies to: donate.html, donate_success.html
   ============================================================ */

body {
    background-color: #050505;
    background-image:
        linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #e5e2e1;
    overflow-x: hidden;
    cursor: none;
    scrollbar-width:auto;
    scrollbar-color: #00FF41 #0a0a0a;
}
a, button, input, select, textarea, label, [role="button"] {
    cursor: none;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #00FF41; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,65,0.6); }

.bg-scanlines {
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 2px, 3px 100%;
}

/* ---------- CUSTOM CURSOR ---------- */
#custom-cursor {
    width: 40px; height: 40px;
    pointer-events: none; position: fixed;
    z-index: 9999; mix-blend-mode: screen;
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
}
#custom-cursor.cursor-active {
    transform: scale(1.5) rotate(45deg);
    filter: drop-shadow(0 0 8px #00FF41) drop-shadow(0 0 16px rgba(0,255,65,0.4));
}
#custom-cursor.cursor-active svg circle:last-of-type {
    stroke-dasharray: none;
    stroke-width: 1;
    opacity: 1;
}

/* ---------- HERO ---------- */
.donate-hero {
    background: transparent;
}

/* .donate-hero-grid — grid is handled by body, no styles needed */

/* ---------- FORM CARD ---------- */
.donate-form-card {
    position: relative;
    background: var(--bg-secondary, #131313);
    border: 1px solid rgba(0,255,65,0.2);
    padding: 2rem;
}

.donate-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,255,65,0.15);
}

.donate-form-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #00FF41;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.donate-step-indicator {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: rgba(229,226,225,0.4);
    letter-spacing: 0.2em;
}

/* ---------- SECTIONS ---------- */
.donate-section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(229,226,225,0.5);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ---------- PRESET BUTTONS ---------- */
.donate-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.donate-preset-btn {
    background: transparent;
    border: 1px solid rgba(0,255,65,0.25);
    color: rgba(229,226,225,0.7);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.65rem 0;
    cursor: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    letter-spacing: 0.05em;
}

.donate-preset-btn:hover {
    border-color: rgba(0,255,65,0.6);
    color: #00FF41;
}

.donate-preset-btn--selected {
    background: rgba(0,255,65,0.12);
    border-color: #00FF41;
    color: #00FF41;
    box-shadow: 0 0 10px rgba(0,255,65,0.15);
}

/* ---------- CURRENCY TOGGLE ---------- */
.donate-currency-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.donate-currency-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0,255,65,0.25);
    color: rgba(229,226,225,0.7);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0;
    cursor: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    letter-spacing: 0.1em;
}

.donate-currency-btn:hover {
    border-color: rgba(0,255,65,0.6);
    color: #00FF41;
}

.donate-currency-btn--selected {
    background: rgba(0,255,65,0.12);
    border-color: #00FF41;
    color: #00FF41;
    box-shadow: 0 0 10px rgba(0,255,65,0.15);
}

/* ---------- FIELDS ---------- */
.donate-field-group {
    margin-bottom: 1.25rem;
}

.donate-field-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(229,226,225,0.5);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.donate-field-optional {
    font-weight: 400;
    color: rgba(229,226,225,0.3);
}

.donate-input-wrap {
    position: relative;
}

.donate-input-prefix {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(229,226,225,0.4);
    pointer-events: none;
}

.donate-input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,255,65,0.2);
    color: #e5e2e1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    outline: none;
    transition: border-color 0.15s;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.donate-input--prefixed {
    padding-left: 3.5rem; /* wide enough for "$CAD" / "$USD" prefix */
}

.donate-input:focus {
    border-color: #00FF41;
    box-shadow: 0 0 0 1px rgba(0,255,65,0.15);
}

.donate-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px #131313 inset;
    -webkit-text-fill-color: #e5e2e1;
}

.donate-input::placeholder {
    color: rgba(229,226,225,0.2);
}

/* Hide number input spinners */
.donate-input[type=number]::-webkit-inner-spin-button,
.donate-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.donate-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.donate-field-hint {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: rgba(229,226,225,0.35);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* ---------- CHECKBOX ---------- */
.donate-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.donate-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(0,255,65,0.4);
    background: transparent;
    cursor: none;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.donate-checkbox:focus,
.donate-checkbox:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #00FF41;
}

.donate-checkbox:hover {
    border-color: #00FF41;
}

.donate-checkbox:checked {
    background: rgba(0,255,65,0.12);
    border-color: #00FF41;
}

.donate-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    width: 4px;
    height: 8px;
    border: 2px solid #00FF41;
    border-top: none;
    border-left: none;
    transform: translateX(-50%) rotate(45deg);
}

.donate-checkbox-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: rgba(229,226,225,0.6);
    cursor: none;
    line-height: 1.5;
}

.donate-checkbox-label:hover {
    color: rgba(229,226,225,0.85);
}

/* ---------- BUTTONS ---------- */
.donate-btn-primary {
    display: block;
    width: 100%;
    background: #00FF41;
    color: #050505;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.1s;
    text-decoration: none;
    text-align: center;
}

.donate-btn-primary:hover {
    box-shadow: 0 0 20px rgba(0,255,65,0.35);
}

.donate-btn-primary:active {
    transform: scale(0.98);
}

.donate-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.donate-btn-secondary {
    display: block;
    background: transparent;
    color: #00FF41;
    border: 1px solid rgba(0,255,65,0.4);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    text-align: center;
}

.donate-btn-secondary:hover {
    border-color: #00FF41;
    box-shadow: 0 0 12px rgba(0,255,65,0.2);
}

/* ---------- BACK LINK ---------- */
.donate-back-link {
    background: none;
    border: none;
    color: rgba(229,226,225,0.45);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
}

.donate-back-link:hover {
    color: #00FF41;
}

/* ---------- PAYMENT SUMMARY ---------- */
.donate-summary {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: rgba(229,226,225,0.55);
    background: rgba(0,255,65,0.05);
    border: 1px solid rgba(0,255,65,0.15);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.donate-summary strong {
    color: #00FF41;
}

/* ---------- STRIPE PAYMENT ELEMENT CONTAINER ---------- */
.donate-payment-element {
    border: 1px solid rgba(0,255,65,0.2);
    padding: 1rem;
    background: rgba(0,0,0,0.25);
    min-height: 60px;
}

.donate-stripe-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: rgba(229,226,225,0.3);
    text-align: center;
    margin-top: 0.9rem;
    letter-spacing: 0.04em;
}

/* ---------- ERROR ---------- */
.donate-error {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #ff4444;
    background: rgba(255,68,68,0.08);
    border: 1px solid rgba(255,68,68,0.25);
    padding: 0.65rem 0.75rem;
    margin-top: 0.75rem;
}

/* ---------- TIER LEGEND ---------- */
.donate-tier-legend {
    position: relative;
    margin-top: 1.5rem;
    border: 1px solid rgba(0,255,65,0.2);
    padding: 1rem 1.25rem;
    background: var(--bg-secondary, #131313);
}

.donate-tier-legend-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(229,226,225,0.35);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,255,65,0.1);
}

.donate-tier-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(229,226,225,0.4);
}

.donate-tier-sample {
    min-width: 80px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* ---------- DONOR WALL ---------- */
/* HUD corner brackets (shared subset from landing.css) */
.hud-bracket-tl, .hud-bracket-tr, .hud-bracket-bl, .hud-bracket-br {
    width: 12px; height: 12px; position: absolute; pointer-events: none; z-index: 5;
}
.hud-bracket-tl { border-top: 2px solid #00FF41; border-left: 2px solid #00FF41; top: 0; left: 0; }
.hud-bracket-tr { border-top: 2px solid #00FF41; border-right: 2px solid #00FF41; top: 0; right: 0; }
.hud-bracket-bl { border-bottom: 2px solid #00FF41; border-left: 2px solid #00FF41; bottom: 0; left: 0; }
.hud-bracket-br { border-bottom: 2px solid #00FF41; border-right: 2px solid #00FF41; bottom: 0; right: 0; }

.donate-wall-header {
    margin-bottom: 1.25rem;
}

.wall-command-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(229,226,225,0.45);
    padding: 0.6rem 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(0,255,65,0.08);
    margin-bottom: 0.25rem;
}

.wall-command-line .wall-cmd-prompt {
    color: #ffb800;
    margin-right: 0.4rem;
}

.wall-cursor {
    display: inline-block;
    width: 7px;
    height: 0.95em;
    background: #00FF41;
    animation: wallBlink 0.8s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes wallBlink {
    0%, 50%  { opacity: 1; }
    51%, 100%{ opacity: 0; }
}

.wall-tail-cursor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: rgba(229,226,225,0.2);
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.1em;
}


.donate-wall-column {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid rgba(0,255,65,0.2);
    padding: 1.5rem;
}

.donate-wall-container {
    position: relative;
    flex: 1;
    min-height: 300px;
    background: var(--bg-secondary, #131313);
    border: 1px solid rgba(0,255,65,0.2);
    overflow: hidden;
    overflow-y: auto;
}

.donate-wall-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donate-wall-star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(229,226,225,0.3);
    border-radius: 50%;
}

.donate-wall-donor {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ---------- DONOR TIER STYLES ---------- */
.donor-tier-1 {
    color: #666666;
}

.donor-tier-2 {
    color: #3d6b3d;
}

.donor-tier-3 {
    color: #00FF41;
}

.donor-tier-4 {
    color: #ffb800;
}

.donor-tier-5 {
    color: #ff3b3b;
}

.donor-tier-6 {
    color: #ffffff;
}

/* ---------- WALL LOG FEED ---------- */
.wall-log {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 0;
}

.wall-log-empty {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(229,226,225,0.3);
    letter-spacing: 0.15em;
    text-align: center;
    padding: 3rem 1rem;
}

@keyframes wallLineIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wall-log-line {
    display: grid;
    grid-template-columns: 6.5rem 4.5rem 8rem auto 1fr;
    align-items: start;
    gap: 0.5rem;
    padding: 0.3rem 0.25rem;
    border-bottom: 1px solid rgba(0,255,65,0.05);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    animation: wallLineIn 0.35s ease both;
    animation-delay: var(--delay, 0ms);
    opacity: 0;
}

.wall-log-line:last-child {
    border-bottom: none;
}

.wall-log-date {
    color: rgba(229,226,225,0.3);
    font-size: 0.65rem;
    white-space: nowrap;
}

.wall-log-tier {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    /* colour inherited from donor-tier-N on parent */
}

.wall-log-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* colour inherited from donor-tier-N on parent */
}

.wall-log-sep {
    color: rgba(229,226,225,0.2);
    flex-shrink: 0;
}

.wall-log-comment {
    color: rgba(229,226,225,0.45);
    font-size: 0.68rem;
    word-break: break-word;
}

.wall-log-line--demo {
    opacity: 0.45;
}

.wall-log-demo-notice {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: rgba(229,226,225,0.2);
    letter-spacing: 0.1em;
    padding: 0.6rem 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(0,255,65,0.06);
    margin-bottom: 0.25rem;
}

/* ---------- WALL LOG — MOBILE ---------- */
@media (max-width: 639px) {
    .wall-log-line {
        grid-template-columns: 4.5rem 7rem auto 1fr;
        font-size: 0.62rem;
        gap: 0.35rem;
    }

    .wall-log-date {
        display: none;
    }

    .wall-log-comment {
        font-size: 0.6rem;
    }
}

/* ---------- SUCCESS PAGE ---------- */

.donate-success-card {
    background: var(--bg-secondary, #131313);
    border: 1px solid rgba(0,255,65,0.25);
    padding: 3rem 2rem;
    position: relative;
}

.donate-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FF41, transparent);
    box-shadow: 0 0 12px rgba(0,255,65,0.4);
}

.donate-success-prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.donate-success-icon {
    margin: 0 auto;
    width: fit-content;
}

.donate-success-details {
    background: rgba(0,0,0,0.4);
    border: 1px dashed rgba(0,255,65,0.15);
    padding: 1rem 1.5rem;
    line-height: 2;
}

/* Equal-width action buttons */
.donate-success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .donate-success-actions {
        flex-direction: row;
    }
    .donate-success-actions > a {
        flex: 1;
        width: auto;
    }
}

.donate-success-actions .donate-btn-primary,
.donate-success-actions .donate-btn-secondary {
    width: 100%;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Founder note */
.donate-founder-note {
    background: rgba(0,255,65,0.03);
    border-left: 2px solid rgba(0,255,65,0.3);
    padding: 1.25rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: rgba(229,226,225,0.6);
    line-height: 1.75;
}

.donate-founder-note-line {
    margin-bottom: 0.85rem;
}

.donate-founder-note-line:last-child {
    margin-bottom: 0;
}

/* Touch devices: disable custom cursor, restore native pointer */
@media (hover: none) and (pointer: coarse) {
    body, a, button, input, select, textarea, label, [role="button"] {
        cursor: auto !important;
    }
    #custom-cursor {
        display: none !important;
    }
}

/* ---------- UTILITY ---------- */
.donate-hidden {
    display: none !important;
}
