/* One-time Vietcombank donation panel */
.donate-shell {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 1rem;
}

.donate-copy-panel {
  min-height: 680px;
}

.transfer-note {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(246, 162, 26, 0.42);
  border-left: 4px solid var(--orange);
  background: rgba(246, 162, 26, 0.08);
}

.transfer-note h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transfer-note p {
  margin: 0;
  color: #ead9cf;
  line-height: 1.55;
}

.donate-widget {
  position: relative;
  top: auto;
}

.donate-currency {
  font-size: 1.45rem;
}

.donate-form {
  padding: 1rem;
}

.qr-panel {
  text-align: center;
}

.payment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: #76dd80;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.payment-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d83c;
  box-shadow: 0 0 8px rgba(66, 216, 60, 0.75);
}

.qr-link {
  display: block;
  width: min(100%, 292px);
  margin: 0 auto;
  border-radius: 5px;
  outline: none;
}

.qr-link:focus-visible {
  box-shadow: 0 0 0 3px #ff7b22;
}

.qr-frame {
  width: 100%;
  aspect-ratio: 592 / 1040;
  overflow: hidden;
  border: 3px solid #f4f5ed;
  border-radius: 5px;
  background: #edf4f7;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    4px 4px 0 rgba(0, 0, 0, 0.55);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-instruction {
  margin: 0.85rem auto 0.7rem;
  color: #ead9cf;
  font-size: 0.9rem;
  line-height: 1.45;
}

.qr-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  border: 1px solid #5b4a45;
  border-radius: 3px;
  background: linear-gradient(#342c2b, #1b1717);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 2px 2px 0 #000;
}

.qr-download:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  color: #9e8c84;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.payment-divider::before,
.payment-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.bank-details {
  margin: 0;
  border: 1px solid #3e3333;
  background: rgba(255, 255, 255, 0.035);
}

.bank-detail-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-detail-row dt {
  color: #aa9992;
  font-size: 0.78rem;
}

.bank-detail-row dd {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.account-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.account-number {
  color: #72df73;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
}

.copy-account {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0.3rem 0.65rem;
  border: 1px solid #ee6d24;
  border-radius: 3px;
  background: #ff5b20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.copy-account:hover,
.copy-account.copied {
  background: #42b94e;
  border-color: #76dd80;
}

.transfer-message {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px dashed rgba(246, 162, 26, 0.45);
  background: rgba(246, 162, 26, 0.07);
}

.transfer-message strong {
  color: var(--orange);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.transfer-message span {
  color: #fff;
  font-size: 0.9rem;
}

.payment-note {
  margin-top: 0.8rem;
  border-color: rgba(118, 221, 128, 0.28);
  background: rgba(66, 216, 60, 0.06);
  color: #cdd8ca;
}

@media (max-width: 980px) {
  .donate-shell {
    grid-template-columns: 1fr;
  }

  .donate-widget {
    width: min(100%, 560px);
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .qr-link {
    width: min(100%, 270px);
  }

  .bank-detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .account-value {
    align-items: flex-start;
  }
}

.qr-request-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #3e3333;
  background:
    linear-gradient(135deg, rgba(118, 221, 128, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
  text-align: left;
}

.qr-request-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #eaf5e7;
  border-radius: 4px;
  background:
    linear-gradient(90deg, currentColor 3px, transparent 3px) 7px 7px / 10px 10px,
    linear-gradient(currentColor 3px, transparent 3px) 7px 7px / 10px 10px,
    #fff;
  color: #102615;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 #000;
}

.qr-request-card h3 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 0.98rem;
}

.qr-request-card p {
  margin: 0;
  color: #bbaaa3;
  font-size: 0.82rem;
  line-height: 1.4;
}

.show-qr-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ee6d24;
  border-radius: 4px;
  background: linear-gradient(#ff7b22, #e94c16);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.show-qr-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.show-qr-button:focus-visible,
.qr-dialog-close:focus-visible,
.qr-dialog-dismiss:focus-visible {
  outline: 3px solid #76dd80;
  outline-offset: 2px;
}

.qr-dialog {
  width: min(94vw, 520px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 2px solid #050303;
  border-radius: 5px;
  background: #0d0809;
  color: #fff;
  overflow: auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    10px 12px 0 rgba(0, 0, 0, 0.55);
}

.qr-dialog::backdrop {
  background: rgba(2, 1, 2, 0.82);
  backdrop-filter: blur(5px);
}

.qr-dialog-window {
  min-width: 0;
}

.qr-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid #000;
  background: linear-gradient(#333, #151819);
}

.qr-dialog-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: #76dd80;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.qr-dialog-header h2 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0 #000;
}

.qr-dialog-close,
.qr-dialog-dismiss {
  border: 1px solid #5b4a45;
  border-radius: 3px;
  background: #241c1c;
  color: #fff;
  cursor: pointer;
}

.qr-dialog-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
}

.qr-dialog-close:hover,
.qr-dialog-dismiss:hover {
  border-color: #ff7b22;
  color: #ff7b22;
}

.qr-dialog-body {
  padding: 1rem;
}

.qr-dialog .qr-frame {
  width: min(100%, 310px);
  margin: 0 auto;
}

.qr-dialog-instruction {
  max-width: 390px;
  margin: 0.8rem auto;
  color: #d7c8c1;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.qr-dialog-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 390px;
  margin: 0 auto;
}

.qr-dialog-account div {
  padding: 0.55rem 0.65rem;
  border: 1px solid #3e3333;
  background: rgba(255, 255, 255, 0.035);
}

.qr-dialog-account dt {
  margin-bottom: 0.2rem;
  color: #aa9992;
  font-size: 0.7rem;
}

.qr-dialog-account dd {
  margin: 0;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 900;
}

.qr-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.qr-dialog-dismiss {
  min-height: 34px;
  padding: 0.4rem 0.9rem;
  font-weight: 900;
}

@media (max-width: 480px) {
  .qr-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .qr-dialog-body {
    padding: 0.75rem;
  }

  .qr-dialog .qr-frame {
    width: min(100%, 270px);
  }

  .qr-dialog-account {
    grid-template-columns: 1fr;
  }
}
