/* Mục "Mừng cưới" (QR ngân hàng) — dùng biến của theme (--accent, --ink, --muted, --soft, phông) nên hợp cả 10 giao diện. */
.gift { text-align: center; }
.gift-text { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.gift-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 22px; }
.gift-cards.is-single { grid-template-columns: minmax(0, 320px); }
.gift-card { background: #fff; color: #2b2222; border-radius: 18px; padding: 20px 20px 18px; display: grid; justify-items: center; gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.gift-side { margin: 0 0 6px; font: 600 .9rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); }
.gift-qr { width: min(230px, 64vw); aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 0;
  border: 1px solid #eee; }
.gift-qr svg, .gift-qr img { width: 100%; height: 100%; display: block; object-fit: contain; }
.gift-qr-ph { color: #bbb; font: 600 1rem var(--f-ui); }
.gift-holder { margin: 8px 0 0; font: 700 1rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.gift-bank { margin: 0; color: #6b6262; font: 500 .95rem var(--f-ui); }
/* R4-11: số luôn 1 dòng, nút luôn ở DƯỚI số -> 2 thẻ cùng bố cục ở mọi cỡ; chữ co theo màn hình hẹp (260 px). */
.gift-acct { margin: 2px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.gift-num { font: 600 clamp(.875rem, 5vw, 1.12rem) ui-monospace, Menlo, Consolas, monospace; letter-spacing: .01em; white-space: nowrap; }
/* R4-10: vùng chạm >= 44 px, chữ 1rem; "Tải mã QR" là nút thật. */
.gift-copy, .gift-dl { font: 600 1rem var(--f-ui); border-radius: 999px; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 18px;
  color: #2b2222; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.gift-copy { border: 1px solid #e3dada; background: #faf6f5; }
.gift-dl { margin-top: 6px; border: 1px solid color-mix(in srgb, var(--accent) 55%, #e3dada); background: #fff; }
.gift-dl::before { content: "⤓"; font-size: 1.1em; line-height: 1; }
.gift-copy:hover, .gift-dl:hover { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.gift-copy:focus-visible, .gift-dl:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.gift-hint { margin: 22px auto 0; max-width: 520px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.gift-thanks { display: inline-block; margin-top: 6px; }
@media (max-width: 640px) { .gift-cards { grid-template-columns: minmax(0, 320px); } }
@media (max-width: 360px) { .gift-card { padding: 18px 10px 16px; } .gift-num { letter-spacing: 0; } }

/* Nút Mở App Ngân hàng & Modal App Deeplinks */
.gift-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px; margin-top: 10px; }
.gift-open-bank {
  background: var(--accent, #b5583a); color: #fff; border: none; font: 600 0.95rem var(--f-ui, sans-serif);
  border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.gift-open-bank:hover { opacity: 0.92; transform: translateY(-1px); }
.gift-open-bank:active { transform: scale(0.98); }
.gift-open-bank svg { width: 18px; height: 18px; fill: currentColor; }
.bank-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; }
.bank-modal[hidden] { display: none !important; }
.bank-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bank-modal-content {
  position: relative; z-index: 2; background: #fff; color: #1f2937; width: 100%; max-width: 460px;
  border-radius: 24px 24px 0 0; padding: 22px 20px 30px; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: bankSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bankSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bank-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bank-modal-header h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #111827; font-family: var(--f-ui, sans-serif); }
.bank-modal-close {
  background: #f3f4f6; border: none; font-size: 1.5rem; line-height: 1; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; color: #4b5563; display: flex; align-items: center; justify-content: center;
}
.bank-modal-desc { margin: 0 0 16px; font-size: 0.88rem; color: #6b7280; line-height: 1.4; font-family: var(--f-ui, sans-serif); }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.bank-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px;
  border-radius: 14px; background: #f9fafb; border: 1px solid #e5e7eb; text-decoration: none; color: #1f2937;
  cursor: pointer; transition: all 0.15s ease; -webkit-tap-highlight-color: transparent;
}
.bank-item:hover, .bank-item:active { background: #eff6ff; border-color: #93c5fd; transform: scale(1.02); }
.bank-logo {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; letter-spacing: -0.02em; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.bank-name { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.25; font-family: var(--f-ui, sans-serif); }
.bank-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000000;
  background: #10b981; color: #fff; padding: 10px 20px; border-radius: 999px;
  font: 600 0.95rem var(--f-ui, sans-serif); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
