:root { --donate-bg: #f3f6f7; --donate-surface: #fff; --donate-ink: #17212b; --donate-muted: #687580; --donate-line: #dce3e7; --donate-green: #176b5b; --donate-green-dark: #105347; --donate-blue: #235f9c; }

body.donate-v2 { margin: 0; min-height: 100vh; background: var(--donate-bg); color: var(--donate-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.donate-v2 * { box-sizing: border-box; }
.donate-topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px max(24px,calc((100vw - 1100px)/2)); border-bottom: 1px solid var(--donate-line); background: rgba(255,255,255,.96); }
.donate-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--donate-ink); text-decoration: none; }
.donate-brand img, .donate-brand > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--donate-line); border-radius: 6px; background: var(--donate-green); color: #fff; font-weight: 800; object-fit: cover; }
.donate-brand strong { font-size: 15px; }
.donate-back { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--donate-line); border-radius: 5px; background: #fff; color: #46545f; font-size: 12px; font-weight: 700; text-decoration: none; }
.donate-back svg { width: 16px; height: 16px; }

.donate-main { width: min(1060px,calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.donate-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 0 2px; }
.donate-heading p { margin: 0 0 8px; color: var(--donate-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.donate-heading h1 { margin: 0; max-width: 720px; color: var(--donate-ink); font-size: 27px; line-height: 1.25; }
.donate-heading > div > span { display: block; max-width: 720px; margin-top: 9px; color: var(--donate-muted); font-size: 13px; line-height: 1.55; }
.vietqr-status { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #bcd9d1; border-radius: 6px; background: #edf7f4; color: var(--donate-green); font-size: 11px; font-weight: 800; }
.vietqr-status svg { width: 17px; height: 17px; }

.donation-workspace { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; align-items: start; }
.donation-controls, .donation-qr-panel { border: 1px solid var(--donate-line); border-radius: 8px; background: var(--donate-surface); box-shadow: 0 10px 30px rgba(16,24,32,.06); }
.donation-controls { padding: 24px; }
.donation-section-head, .qr-panel-head > div { display: flex; align-items: center; gap: 11px; }
.donation-section-head > span, .qr-panel-head > div > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; background: #e9f4f1; color: var(--donate-green); font-size: 10px; font-weight: 800; }
.donation-section-head strong, .donation-section-head small { display: block; }
.donation-section-head strong { font-size: 15px; }
.donation-section-head small { margin-top: 3px; color: var(--donate-muted); font-size: 11px; }

.bank-account-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 20px; padding: 15px 52px 15px 15px; border: 1px solid #c8dcd6; border-radius: 6px; background: #f1f7f5; }
.bank-account-box span, .bank-account-box strong { display: block; }
.bank-account-box span { color: var(--donate-muted); font-size: 10px; font-weight: 650; }
.bank-account-box strong { margin-top: 6px; overflow-wrap: anywhere; font-size: 13px; }
.copy-account { position: absolute; right: 10px; top: 50%; display: grid; width: 34px; height: 34px; min-height: 34px; padding: 0; place-items: center; border: 1px solid #b9d1ca; border-radius: 5px; background: #fff; color: var(--donate-green); cursor: pointer; transform: translateY(-50%); }
.copy-account svg { width: 16px; height: 16px; }

.donation-form-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 16px; align-items: start; }
.donation-field { margin-top: 0; }
.donation-field label { display: block; margin-bottom: 7px; color: #3d4a54; font-size: 11px; font-weight: 750; }
.donation-field > input, .money-input { width: 100%; min-height: 44px; border: 1px solid #ccd5db; border-radius: 5px; background: #fff; }
.donation-field > input { padding: 0 12px; outline: none; color: var(--donate-ink); font: inherit; }
.donation-field > input:focus, .money-input:focus-within { border-color: var(--donate-green); box-shadow: 0 0 0 3px rgba(23,107,91,.1); }
.donation-field > small { display: block; margin-top: 6px; color: #89949c; font-size: 10px; }
.money-input { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; overflow: hidden; }
.money-input input { width: 100%; min-height: 42px; padding: 0 12px; border: 0; outline: 0; color: var(--donate-ink); font: inherit; font-weight: 700; }
.money-input span { padding: 0 12px; color: var(--donate-muted); font-size: 11px; font-weight: 750; }
.amount-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.amount-presets button { min-height: 34px; padding: 0 5px; border: 1px solid var(--donate-line); border-radius: 5px; background: #f7f9fa; color: #53616c; font-size: 10px; font-weight: 700; cursor: pointer; }
.amount-presets button:hover { border-color: #91b7ad; background: #edf6f3; color: var(--donate-green); }
.payment-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 15px; border: 1px solid #c8dcd6; border-radius: 6px; background: #f1f7f5; }
.payment-total span { color: var(--donate-muted); font-size: 11px; }
.payment-total strong { color: var(--donate-green); font-size: 17px; }

.donation-qr-panel { position: sticky; top: 18px; display: flex; min-height: 508px; padding: 22px; flex-direction: column; background: #fff; }
.qr-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qr-panel-head strong { font-size: 15px; }
.qr-panel-head > svg { width: 20px; height: 20px; color: var(--donate-blue); }
.qr-stage { display: grid; width: min(280px,100%); margin: 18px auto 13px; padding: 9px; place-items: center; border: 1px solid #d7dfe3; border-radius: 7px; background: #fff; box-shadow: 0 7px 20px rgba(16,24,32,.06); }
.donate-v2 .qr-stage img { display: block; width: 100%; aspect-ratio: 1; margin: 0; border-radius: 4px; object-fit: contain; }
.qr-bank-line { display: flex; justify-content: space-between; gap: 15px; width: min(280px,100%); margin: 0 auto 13px; padding: 0 2px; color: var(--donate-muted); font-size: 11px; }
.qr-bank-line strong { color: var(--donate-ink); }
.download-qr { display: inline-flex; width: min(280px,100%); min-height: 42px; align-items: center; justify-content: center; gap: 9px; margin: auto auto 0; border-radius: 5px; background: var(--donate-blue); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.download-qr:hover { background: #194d81; }
.download-qr svg { width: 17px; height: 17px; }
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; padding: 10px 14px; border-radius: 5px; background: #17212b; color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: opacity .15s ease, transform .15s ease; }
.copy-toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 860px) {
  .donation-workspace { grid-template-columns: 1fr; }
  .donation-qr-panel { position: static; min-height: 0; }
}

@media (max-width: 560px) {
  .donate-topbar { min-height: 60px; padding-inline: 14px; }
  .donate-back span { display: none; }
  .donate-main { width: min(100% - 20px,1100px); padding-top: 22px; }
  .donate-heading { align-items: flex-start; flex-direction: column; }
  .donate-heading h1 { font-size: 23px; }
  .donation-controls, .donation-qr-panel { padding: 19px; }
  .donation-qr-panel { min-height: 0; }
  .bank-account-box { grid-template-columns: 1fr; }
  .donation-form-grid { grid-template-columns: 1fr; }
  .amount-presets { grid-template-columns: 1fr 1fr; }
  .payment-total { align-items: flex-start; flex-direction: column; }
  .download-qr { margin-top: 8px; }
  .qr-stage { margin-top: 18px; }
}

@media (max-width: 360px) {
  .donate-main { width: min(100% - 14px,1100px); }
  .donation-controls, .donation-qr-panel { padding: 15px; }
  .bank-account-box { padding-right: 46px; }
  .donate-brand strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
