/* ========================================================
   9. HỘP QUÀ MỪNG, LỜI CẢM ƠN & MODAL NGÂN HÀNG
   ======================================================== */
#gift { padding: 0 36px; }

.gift-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.gift-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.gift-envelope-trigger {
  min-height: 48px;
  margin-top: 6px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  background: var(--note-yellow);
  font-size: 14px;
  line-height: 1.2;
  box-shadow: var(--hard-shadow);
}

.gift-envelope-trigger:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink-dark);
}

.gift-envelope-trigger:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink-dark);
}

/* Footer: lời cảm ơn dài không có trong bố cục này, chỉ giữ thương hiệu */
.gift-thankyou-text { display: none; }

.gift-brand-footer {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 3px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Modal hộp quà: tờ giấy chấm bi viền mực */
.gift-modal-box {
  width: 92%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink-dark);
  border-radius: 14px;
  background-color: var(--paper);
  background-image: var(--dot-bg);
  background-size: var(--dot-size);
  box-shadow: 5px 5px 0 var(--ink-dark);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.gift-modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 14px 56px 10px;
  text-align: center;
}

.gift-modal-title {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-dark);
}

.gift-modal-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dark);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.gift-modal-close:hover { color: var(--accent-red); }

.gift-modal-body {
  padding: 10px 20px 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gift-cols-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gift-cols-container.single-col {
  grid-template-columns: 1fr;
  justify-items: center;
}

.gift-cols-container.single-col .gift-person-card,
.gift-cols-container.single-col .gift-account-card {
  width: 100%;
  max-width: 280px;
}

/* Mỗi tài khoản là một tấm polaroid */
.gift-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 14px;
  background: var(--polaroid);
  box-shadow: var(--shadow-md);
  text-align: center;
  rotate: -1.5deg;
}

.gift-person-card + .gift-person-card { rotate: 1.5deg; }

.gift-person-title { display: none !important; }

.gift-qr-card {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  margin-bottom: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--polaroid);
}

.gift-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-bank-info { margin-bottom: 12px; }

.gift-bank-name {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.gift-bank-number {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-dark);
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}

.gift-bank-owner {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink-dark);
}

.gift-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.btn-copy-acc,
.btn-save-qr {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-copy-acc {
  background: var(--note-yellow);
  color: var(--ink-dark);
}

.btn-copy-acc:hover { background: #F8DC7A; }

.btn-save-qr {
  background: var(--polaroid);
  color: var(--ink-dark);
}

.btn-save-qr:hover { background: var(--note-blue); }

@media (max-width: 520px) {
  .gift-cols-container {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
