/* YaviMind donation checkout — intentionally secondary to the main product. */
html, body.donation-page {
    min-height: 100%;
    height: auto;
    overflow: auto;
}

body.donation-page {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.donation-nav {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 9px 12px 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
}

.donation-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.donation-brand img {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    box-shadow: 0 7px 18px rgba(12, 20, 50, 0.2);
}

.donation-back { padding: 9px 14px; font-size: 13px; }

.donation-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 44px 0;
}

.donation-card {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
}

.donation-copy,
.donation-checkout { padding: 42px 40px; }

.donation-copy {
    background: linear-gradient(155deg, rgba(91, 140, 255, 0.12), rgba(138, 99, 255, 0.08));
    border-right: 1px solid rgba(120, 130, 160, 0.16);
}

.donation-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.donation-copy h1 {
    max-width: 350px;
    margin-bottom: 15px;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.donation-copy > p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.hosting-list {
    display: grid;
    gap: 10px;
    margin: 28px 0;
    list-style: none;
}

.hosting-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.hosting-list span {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.62);
}

.donation-copy .owner-note {
    padding-top: 18px;
    border-top: 1px solid rgba(120, 130, 160, 0.17);
    color: var(--ink-faint);
    font-size: 12.5px;
}

#donation-form { display: grid; gap: 10px; }
#donation-form fieldset { min-width: 0; border: 0; margin: 0 0 8px; }
#donation-form legend { margin-bottom: 12px; font-size: 16px; font-weight: 750; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amount-option { position: relative; cursor: pointer; }
.amount-option input { position: absolute; opacity: 0; pointer-events: none; }
.amount-option > span { pointer-events: none; }
.amount-option {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(120, 130, 160, 0.24);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.amount-option:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.78); }
.amount-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.14);
}
.amount-option:has(input:focus-visible) { outline: 3px solid rgba(91, 140, 255, 0.38); outline-offset: 2px; }
.amount-usd { color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.amount-usd b { color: var(--ink); font-size: 22px; letter-spacing: -0.5px; }

.field-label { margin-top: 3px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; }
#donation-form > input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(120, 130, 160, 0.25);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
}
#donation-form > input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.14); }
#donation-submit { width: 100%; margin-top: 7px; }

.currency-note,
.secure-note { color: var(--ink-faint); font-size: 11.5px; line-height: 1.45; text-align: center; }
.secure-note { margin-top: 2px; color: var(--ink-soft); font-weight: 650; }
.donation-error {
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(255, 90, 90, 0.12);
    color: #ad2f2f;
    font-size: 12.5px;
    line-height: 1.4;
}

.payment-result {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.result-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(91, 140, 255, 0.13);
    color: var(--accent);
    font-size: 30px;
}
.payment-result.success .result-icon { background: rgba(52, 199, 89, 0.13); color: #238443; }
.payment-result.error .result-icon { background: rgba(255, 90, 90, 0.12); color: #ad2f2f; }
.payment-result h2 { margin-bottom: 10px; font-size: 23px; letter-spacing: -0.5px; }
.payment-result p { max-width: 330px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.payment-result .btn-ghost { margin-top: 22px; }
.text-home { margin-top: 18px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }

.donation-footer {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 4px 2px 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-faint);
    font-size: 12.5px;
}
.donation-footer a { color: inherit; text-decoration: none; }
.donation-footer a:hover { color: var(--ink); }
.donation-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }

@media (max-width: 760px) {
    body.donation-page { padding: 10px; }
    .donation-shell { padding: 24px 0; }
    .donation-card { grid-template-columns: 1fr; }
    .donation-copy,
    .donation-checkout { padding: 30px 24px; }
    .donation-copy { border-right: 0; border-bottom: 1px solid rgba(120, 130, 160, 0.16); }
    .hosting-list { margin: 22px 0; }
    .donation-footer { align-items: center; flex-direction: column; text-align: center; }
    .donation-footer nav { justify-content: center; }
}

@media (max-width: 420px) {
    .donation-brand span { display: none; }
    .donation-back { padding: 9px 11px; }
    .amount-grid { gap: 6px; }
    .amount-option { min-height: 74px; }
    .amount-usd b { font-size: 19px; }
}
