:root {
  --color-bg: #FFFFFF;
  --color-ink: #14142B;
  --color-primary: #14142B;
  --color-primary-light: #3D3D63;
  --color-accent: #E6007E;
  --color-donate: #2563EB;
  --color-donate-dark: #1D4FC4;
  --color-select: #2563EB;
  --color-select-tint: #EAF1FE;
  --color-line: #E5E5EA;
  --color-panel: #FFFFFF;
  /* Chữ phụ (đoạn văn, nhãn, ghi chú). Đậm hơn 20% so với #6B6B7D cũ —
     mỗi kênh R/G/B nhân 0.8: 107,107,125 → 86,86,100. */
  --color-muted: #565664;
  --color-tint: #FDEEF6;

  /* Giống trang tham khảo (Fundraise Up): IBM Plex Sans cho cả tiêu đề lẫn chữ thường. */
  --font-display: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--color-primary); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-line); background: var(--color-bg); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--color-primary); display: flex; align-items: center; gap: 10px; }
/* max-width + object-fit: phòng khi admin tải lên logo dạng nằm ngang rất
   dài, tránh đẩy nút Donate ra khỏi header. */
.brand img { height: 80px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; }
.header-nav a { text-decoration: none; color: var(--color-ink); }
.header-nav a:hover { color: var(--color-primary); }
.nav-cta { background: var(--color-donate); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--color-donate-dark); }

/* ---------- Two-column page layout ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}

.hero-kicker { font-size: 0.92rem; color: var(--color-accent); font-weight: 600; margin-bottom: 10px; }

.content-block-image { position: relative; margin: 18px 0 22px; border-radius: 12px; overflow: hidden; background: var(--color-line); }
.content-block-image img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.content-block-quote {
  position: absolute;
  left: 0; bottom: 18px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 12px 16px;
  max-width: 78%;
}

.content-block-text p { color: var(--color-muted); margin-bottom: 1em; }

/* Cờ chèn giữa dòng chữ (mã :flag-ps:). Cao theo cỡ chữ xung quanh nên
   dùng được ở tiêu đề lớn lẫn đoạn văn nhỏ. */
.inline-flag { display: inline-block; line-height: 0; }
.inline-flag svg {
  height: 0.78em;
  width: auto;
  vertical-align: -0.04em;
  margin: 0 0.06em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 20, 43, 0.12);
}

/* ---------- Recent donations ---------- */
.recent-donations { margin-top: 32px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 20, 43, 0.05);
  background: var(--color-panel);
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.recent-list .r-name { font-weight: 600; color: var(--color-ink); }
.recent-list .r-type { font-weight: 400; color: var(--color-muted); font-size: 0.85rem; }
/* Số tiền đậm, nhỉnh hơn chữ tên 10% (~1rem) để dễ nhìn mà không lấn át — mọi màn hình. */
.recent-list .r-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.1em; line-height: 1.2; color: var(--color-ink); white-space: nowrap; }
.recent-list .recent-empty { color: var(--color-muted); border-style: dashed; justify-content: center; }
.recent-list li.new-entry { animation: fadein 0.5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
  cursor: pointer;
}
.load-more-btn:hover { border-color: var(--color-primary-light); }

/* ---------- Donate panel ---------- */
.donate-col { align-self: start; position: sticky; top: 88px; }

/* Kích thước chữ/ô lấy theo trang tham khảo (Fundraise Up): chữ 1rem,
   ô mức tiền cao ~80px, nút cao 42–56px — nhìn rõ, dễ bấm. */
.donate-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(20, 20, 43, 0.04);
}

.secure-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.secure-line .lock-badge {
  display: flex;
  color: #1FA97C;
  flex-shrink: 0;
}

.frequency-toggle {
  position: relative;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* Khung chọn trượt giữa "Give once" và "Monthly". */
.frequency-indicator {
  position: absolute;
  top: 0; left: 0;
  width: calc((100% - 12px) / 2);
  height: 100%;
  border: 2px solid var(--color-select);
  border-radius: 6px;
  background: var(--color-select-tint);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.frequency-toggle.is-monthly .frequency-indicator { transform: translateX(calc(100% + 12px)); }

.frequency-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #C9C9D2;
  border-radius: 6px;
  background: transparent;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.15s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.frequency-btn:hover { border-color: var(--color-select); }
.frequency-btn:active { transform: scale(0.97); }
.frequency-btn:focus-visible { outline: 2px solid var(--color-select); outline-offset: 3px; }
/* Nút đang chọn: viền nằm trên khung trượt nên ẩn viền riêng của nút. */
.frequency-btn.active { border-color: transparent; font-weight: 500; }
.frequency-btn .heart { display: inline-block; color: var(--color-accent); font-size: 0.85em; }
.frequency-btn .heart.beat { animation: heartbeat 0.6s ease; }
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.45); }
  45% { transform: scale(0.95); }
  65% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Đổi Give once ⇄ Monthly: ô cũ mờ đi, ô mới lần lượt trượt lên. */
.amount-tiers { transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.amount-tiers.tiers-leaving, .amount-tiers.tiers-entering { overflow: hidden; align-content: start; }
.amount-tiers.tiers-leaving .amount-tier {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.amount-tiers.tiers-entering .amount-tier { animation: tierIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.amount-tiers.tiers-entering .amount-tier:nth-child(2) { animation-delay: 0.06s; }
.amount-tiers.tiers-entering .amount-tier:nth-child(3) { animation-delay: 0.12s; }
.amount-tiers.tiers-entering .amount-tier:nth-child(4) { animation-delay: 0.18s; }
.amount-tiers.tiers-entering .amount-tier:nth-child(n+5) { animation-delay: 0.22s; }
@keyframes tierIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.frequency-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  background: var(--color-tint);
  border-radius: 6px;
  padding: 8px 10px;
  margin: -6px 0 14px;
}

.amount-tiers { display: flex; flex-direction: column; gap: 12px; }

.amount-tier {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  width: 100%;
  min-height: 80px;
  border: 1px solid #C9C9D2;
  background: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.amount-tier .t-amount { font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; color: var(--color-ink); }
.amount-tier .t-label { font-size: 1rem; color: var(--color-ink); }

.amount-tier:hover { border-color: var(--color-select); }
/* Viền đậm 2px dùng box-shadow để ô không bị nhảy kích thước khi chọn. */
.amount-tier.selected { border-color: var(--color-select); box-shadow: inset 0 0 0 1px var(--color-select); background: var(--color-select-tint); }

.other-amount-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  border: 1px solid #C9C9D2;
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.other-amount-btn:hover { border-color: var(--color-select); }
.other-amount-btn.selected { border-color: var(--color-select); box-shadow: inset 0 0 0 1px var(--color-select); background: var(--color-select-tint); font-weight: 500; }

/* Monthly: mức tiền xếp ngang 3 cột, nút gọn vừa với số tiền. */
.amount-tiers.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Không kéo giãn các hàng theo chiều cao khung khi đang co/giãn. */
  align-content: start;
  align-items: start;
  gap: 10px;
}
.amount-tiers.compact .amount-tier {
  min-height: 42px;
  padding: 8px 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.amount-tiers.compact .amount-tier .t-amount { font-size: 0.98rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.amount-tiers.compact .amount-tier.selected .t-amount { font-weight: 600; }
.amount-tiers.compact .amount-tier .t-label { display: none; }

.custom-amount-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.currency-prefix { font-weight: 600; font-size: 1.05rem; color: var(--color-ink); }
/* Monthly: ô nhập số tiền dạng khung lớn "$900,000 ... USD" như trang mẫu. */
.custom-amount-row.boxed {
  gap: 4px;
  padding: 0 16px;
  min-height: 56px;
  border: 1px solid #C9C9D2;
  border-radius: 6px;
  background: #fff;
}
.custom-amount-row.boxed:focus-within { border-color: var(--color-select); box-shadow: inset 0 0 0 1px var(--color-select); }
.custom-amount-row.boxed .currency-prefix { font-size: 1.4rem; font-weight: 400; }
.custom-amount-row.boxed #custom-amount {
  border: none;
  padding: 10px 0;
  font-size: 1.4rem;
  background: transparent;
  -moz-appearance: textfield;
}
.custom-amount-row.boxed #custom-amount:focus { outline: none; }
.custom-amount-row.boxed #custom-amount::-webkit-outer-spin-button,
.custom-amount-row.boxed #custom-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-currency-code { font-size: 0.95rem; color: var(--color-muted); }
.custom-currency-code:empty { display: none; }

#custom-amount {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #C9C9D2;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ---------- Các bước quyên góp ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.donate-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background: var(--color-donate);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.donate-btn:hover { background: var(--color-donate-dark); }
.donate-btn:focus-visible { outline: 2px solid var(--color-select); outline-offset: 2px; }

.step-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.step-back svg { color: var(--color-muted); }
.step-back:hover span { text-decoration: underline; }
.step-back:focus-visible { outline: 2px solid var(--color-select); outline-offset: 2px; border-radius: 4px; }

.step-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.step-title:focus { outline: none; }

.details-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #C9C9D2;
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.details-form input::placeholder { color: var(--color-muted); }

.step-error { min-height: 0; margin: 10px 0 0; font-size: 0.86rem; color: #C4184F; }
.step-error:empty { display: none; }

#custom-amount:focus, .details-form input:focus, .amount-tier:focus-visible, .other-amount-btn:focus-visible {
  outline: 2px solid var(--color-select);
  outline-offset: 1px;
}

.donate-fx { font-size: 0.85rem; color: var(--color-muted); margin: 4px 0 0; }
.donate-status { min-height: 1.2em; font-size: 0.88rem; color: var(--color-accent); margin: 12px 0 4px; }
.donate-status.error { color: #C4184F; }
.donate-status.success { color: #1FA97C; }

#paypal-button-container {
  margin-top: 10px;
  width: 100%;
}

/* Ép khung nút PayPal (gold "Quyên góp" + nút thẻ đen) chiếm full chiều
   rộng bằng các ô mức tiền/ô nhập phía trên, thay vì co hẹp theo kích
   thước PayPal tự đo lúc render. */
#paypal-button-container iframe {
  width: 100% !important;
}

/* PayPal đôi khi đặt kích thước cố định (vd 300x150) cho iframe chứa form
   thẻ mở rộng (class "component-frame"), nhỏ hơn nội dung thật của nó,
   khiến các ô Hết hạn/CVV/Địa chỉ bị cắt mất vì iframe đó bị đặt
   scrolling="no". Chỉ nhắm đúng iframe này (không đụng iframe nút bấm ban
   đầu) để ép nó cao hơn và tự cuộn được, không ô nào bị giam/cắt nữa. */
#paypal-button-container iframe.component-frame {
  min-height: 700px !important;
  height: auto !important;
  overflow-y: auto !important;
}

.donate-note { font-size: 0.8rem; color: var(--color-muted); margin-top: 16px; margin-bottom: 0; }

/* ---------- Câu hỏi thường gặp (cuối khung quyên góp) ---------- */
.faq-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #C9C9D2;
}

.faq-link {
  border: none;
  background: none;
  padding: 2px 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}
.faq-link:hover, .faq-link.active { color: var(--color-ink); }
.faq-link:focus-visible { outline: 2px solid var(--color-select); outline-offset: 2px; border-radius: 2px; }

.faq-popover {
  position: absolute;
  z-index: 30;
  width: min(340px, 100%);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(20, 20, 43, 0.16);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-ink);
}
.faq-popover-title { font-weight: 700; font-size: 0.95rem; margin: 0 0 8px; }
.faq-popover-body p { margin: 0 0 8px; max-width: none; }
.faq-popover-body p:last-child { margin-bottom: 0; }
.faq-popover-arrow {
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #fff;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  transform: rotate(45deg);
}

/* ---------- Nút Show more / Show less (chỉ hiện trên di động) ---------- */
.story-body { position: relative; }
.story-body.collapsed { overflow: hidden; }
.story-body.collapsed::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-bg));
  pointer-events: none;
}

.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 9px 16px;
  border: 1px solid #C9C9D2;
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}
.story-toggle:hover { border-color: var(--color-primary-light); }
.story-toggle:focus-visible { outline: 2px solid var(--color-select); outline-offset: 2px; }
.story-toggle-icon { color: var(--color-muted); transition: transform 0.15s ease; }
.story-toggle.expanded { display: flex; justify-content: center; width: 100%; }
.story-toggle.expanded .story-toggle-icon { transform: rotate(180deg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); padding: 24px 0; font-size: 0.85rem; color: var(--color-muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-row p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .donate-col { position: static; }
  body { padding-bottom: 76px; }
  /* Header dính ở trên cùng — trên điện thoại giữ logo nhỏ hơn để không
     chiếm mất phần nội dung. */
  .brand img { height: 60px; max-width: 190px; }
  .donate-panel { padding: 24px 20px; }

  /* Recent donations: 1 hàng ngang, kéo trượt sang trái/phải. */
  .recent-donations { margin-top: 24px; }
  .recent-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 2px 24px 12px;
    scroll-padding: 0 24px;
  }
  .recent-list::-webkit-scrollbar { display: none; }
  .recent-list li {
    flex: 0 0 76%;
    max-width: 300px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
    scroll-snap-align: start;
  }
  .recent-list .r-amount { order: -1; font-family: var(--font-body); }
  .recent-list .r-type { font-size: 0.92rem; color: var(--color-ink); }
  .recent-list li.recent-empty { flex-basis: 100%; max-width: none; align-items: center; }
  /* Kéo tới cuối hàng sẽ tự nạp thêm, không cần nút "Load more". */
  .load-more-btn { display: none; }
}

/* ---------- Thanh Donate cố định trên di động ---------- */
.mobile-donate-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
}

.mobile-donate-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-donate);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 0;
  border-radius: 999px;
}
.mobile-donate-btn:hover { background: var(--color-donate-dark); }

@media (max-width: 900px) {
  .mobile-donate-bar { display: block; }

  /* Bước 2 và 3 trên di động: mở toàn màn hình, nút Back dính ở góc trên. */
  .donate-panel.flow-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 45;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  }
  .donate-panel.flow-fullscreen .step-back {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    width: calc(100% + 40px);
    margin: 0 -20px 16px;
    padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    font-size: 0.95rem;
  }
  html.donate-flow-open, html.donate-flow-open body { overflow: hidden; }
  html.donate-flow-open .mobile-donate-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Lớp phủ cảm ơn sau khi quyên góp thành công ---------- */
.thankyou-overlay {
  position: fixed;
  inset: 0;
  /* Cao nhất có thể: luôn nằm trên khung di động (45) và mọi thứ PayPal chèn vào trang. */
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 43, 0.6);
  padding: 20px;
  animation: overlayFade 0.2s ease;
}

.thankyou-card {
  background: var(--color-panel);
  border-radius: 10px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.thankyou-check {
  color: #1FA97C;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
}

.thankyou-card h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.thankyou-card p { max-width: none; }

.thankyou-redirect-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 18px;
  margin-bottom: 0;
}

@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Đồng ý nhận email (bước 2) ---------- */
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px; font-size: 0.88rem; line-height: 1.4; color: var(--color-ink); cursor: pointer; text-align: left; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--color-accent); }
.consent-note { font-size: 0.78rem; color: var(--color-muted); margin: 0 0 10px; text-align: left; }
