.donation-modal[hidden] { display: none !important; }
.donation-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.donation-backdrop { position: absolute; inset: 0; background: rgba(5,5,10,.78); backdrop-filter: blur(7px); }
.donation-dialog { position: relative; z-index: 1; width: min(440px,100%); max-height: min(90vh,760px); overflow-y: auto; padding: 25px; border: 1px solid #4a3b60; border-radius: 16px; background: #15131f; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.donation-dialog > small { color: #a992d2; letter-spacing: 1.5px; font-size: 9px; font-weight: 800; }
.donation-dialog h2 { margin: 7px 0 4px; color: #f2edf9; }
.donation-recipient { margin: 0 0 18px; color: #a69db7; font-size: 11px; }
.donation-close { position: absolute; top: 13px; right: 14px; width: 31px; height: 31px; border: 1px solid #40364f; border-radius: 8px; background: #201b2a; color: #d8cce9; font-size: 20px; cursor: pointer; }
.donation-dialog label { display: block; margin: 13px 0; color: #c8c0d6; font-size: 10px; font-weight: 700; }
.donation-dialog select, .donation-dialog input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #383249; border-radius: 8px; outline: none; background: #0e0d16; color: #f2edf9; font: inherit; font-size: 12px; }
.donation-amount-wrap { position: relative; }
.donation-amount-wrap input { padding-right: 62px; }
.donation-amount-wrap b { position: absolute; top: 50%; right: 12px; transform: translateY(-35%); color: #bca6e9; font-size: 10px; }
.donation-quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 8px 0 14px; }
.donation-quick-amounts button { padding: 8px 5px; border: 1px solid #403650; border-radius: 7px; background: #211c2d; color: #cab8e9; font-size: 10px; cursor: pointer; }
.donation-preview-note { padding: 10px 11px; border: 1px solid #51462f; border-radius: 8px; background: #292318; color: #d2bd8b; font-size: 10px; line-height: 1.5; }
.donation-submit { width: 100%; margin-top: 14px; }
.donation-submit:disabled { opacity: .6; cursor: wait; }
.donation-result { margin-top: 13px; padding: 11px; border: 1px solid #3b594c; border-radius: 8px; background: #17261f; color: #b5e4ca; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.donation-result span { color: #a4b8ac; }
body.modal-open { overflow: hidden; }
.donation-wallet-link { width:100%; margin-top:10px; padding:10px 12px; border:1px solid #49395f; border-radius:8px; background:#211b2c; color:#d8c9ef; font-size:11px; font-weight:700; cursor:pointer; }
.donation-wallet-link:hover { background:#2d2340; }
.donation-asset-pill{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;margin:12px 0;border:1px solid #49395f;border-radius:8px;background:#211b2c;color:#d8c9ef;font-size:11px}
.donation-asset-pill b{font-size:13px;color:#fff}
.donation-asset-pill span{color:#aa9cbd}
.donation-check-status{margin-top:9px;padding:8px 10px;border:1px solid #49395f;border-radius:7px;background:#211b2c;color:#d8c9ef;font:inherit;font-size:10px;font-weight:700;cursor:pointer}

.donation-recipient-wallet-notice { margin:12px 0; padding:11px 13px; border:1px solid rgba(87,160,119,.28); border-radius:9px; background:rgba(53,119,83,.10); color:#a8d7ba; font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.donation-recipient-wallet-notice.is-unverified { border-color:rgba(198,145,72,.38); background:rgba(160,110,40,.12); color:#f0c987; }
.donation-recipient-wallet-notice.is-missing { border-color:rgba(196,92,103,.35); background:rgba(160,60,70,.12); color:#f2b1b8; }
.donation-submit:disabled { opacity:.5; cursor:not-allowed; }


/* Donations are only available after TON Proof for both sides. */
.donation-access-gate { margin: 14px 0 2px; padding: 18px; border: 1px solid rgba(204, 158, 83, .34); border-radius: 13px; background: linear-gradient(145deg, rgba(116, 81, 34, .19), rgba(37, 29, 48, .72)); color: #e9dfca; }
.donation-access-gate[hidden], #donationForm[hidden] { display: none !important; }
.donation-access-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid rgba(225, 180, 104, .42); border-radius: 50%; background: rgba(193, 139, 59, .15); color: #f3c77e; font-size: 18px; font-weight: 800; }
.donation-access-gate h3 { margin: 0 0 7px; color: #fff2d8; font-size: 15px; line-height: 1.35; }
.donation-access-gate p { margin: 0; color: #d1c3a7; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.donation-gate-action { display: block; width: 100%; margin-top: 15px; min-height: 42px; }
.donation-dialog form { min-width: 0; }
.donation-dialog form label { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .donation-dialog { padding: 20px 16px; }
  .donation-access-gate { padding: 15px; }
}
