﻿@charset "UTF-8";

/* =============================================================================
   The Vigo — Luxury Clinical / Cosmetics Design System
   Gold · Navy · Montserrat + Inter (Master UI/UX Edition)
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
  --navy: #0a192f;
  --navy-soft: #132347;
  --slate: #1e293b;
  --slate-muted: #64748b;
  --gold: #d4af37;
  --gold-light: #fdc228;
  --gold-gradient: linear-gradient(135deg, #fdc228 0%, #d4af37 100%);
  --gold-ring: rgba(212, 175, 55, 0.45);
  --card: rgba(255, 255, 255, 0.98);
  --field-bg: #f8fafc;
  --field-border: #cbd5e1;
  --text-2: #475569;
  --text-3: #94a3b8;
  --green: #15803d;
  --red: #b91c1c;
  --stepper: 44px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--slate);
  min-height: 100vh;
  padding: 0 20px 80px;
  background: #0a192f url('/assests/VIGO BANNER.png') center center / cover fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(6, 15, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

.header-hero,
.card,
.footer {
  position: relative;
  z-index: 1;
}

/* ── Hero Typography (Outside Card) ── */
.header-hero {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 16px;
  overflow: hidden;
}

.hero-action {
  display: flex;
  flex-direction: column;
  /* Xếp dọc 2 nút như thiết kế */
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  /* Bo góc tròn (pill) như hình */
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 480px;
  /* Giới hạn chiều rộng để nút không bị bè quá dài trên màn hình to */
}

.btn-hero svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Nút 1: Outlined (Viền vàng, nền trong suốt) */
.btn-outline {
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  /* Sáng lên nhẹ khi hover */
  transform: translateY(-2px);
}

/* Nút 2: Solid (Nền vàng đặc, chữ xanh navy) */
.btn-solid {
  border: 1.5px solid #dca83a;
  /* Màu vàng Gold ấm hơn một chút cho giống hình */
  background: #dca83a;
  color: #0a192f;
  /* Chữ màu tối Navy */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-solid:hover {
  background: #ecc25d;
  /* Vàng sáng hơn khi hover */
  border-color: #ecc25d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Điều chỉnh lại responsive cho Mobile (nếu cần) */
@media (max-width: 640px) {
  .hero-action {
    gap: 12px;
  }

  .btn-hero {
    font-size: 0.8rem;
    padding: 14px 20px;
  }
}

.hero-logo-wrap {
  width: 320px;
  height: 140px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.hero-logo {
  width: 320px;
  height: auto;
  display: block;
  margin-top: -30%;
  margin-bottom: 0;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
}

.hero-typography {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-top: 0;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
}

.hero-title span {
  color: var(--gold);
  margin: 0 8px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-weight: 400;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-highlight {
  position: relative;
  max-width: 700px;
  padding: 24px 32px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, rgba(10, 25, 47, 0) 0%, rgba(10, 25, 47, 0.6) 20%, rgba(10, 25, 47, 0.6) 80%, rgba(10, 25, 47, 0) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-highlight p {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.hero-highlight p:last-child {
  margin: 0;
}

.hl-text {
  color: #f8df85;
  font-style: italic;
  font-weight: 500;
}

.hero-highlight .hl-strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0;
  text-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-download-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  border: 1.5px solid var(--gold);
  background: rgba(10, 25, 47, 0.5);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-download-gold svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-download-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Card ── */
.card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: fadeUp 0.6s ease-out 0.1s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Form Title inside Card ── */
.form-title-wrap {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--field-border);
}

.form-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-title-wrap p {
  font-size: 0.9rem;
  color: var(--slate-muted);
}

/* ── Section labels ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.section-label svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
}

/* ── Form sections (scroll anchor + validation) ── */
.form-section {
  scroll-margin-top: 88px;
}

.form-section--error .section-label {
  color: #b45309;
  border-bottom-color: rgba(180, 83, 9, 0.35);
}

/* ── Per-field validation ── */
.field-msg {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: #b91c1c;
}

.field-msg--error:not([hidden]) {
  display: block;
  margin-top: 6px;
}

.field input.input-invalid,
.field select.input-invalid {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.custom-select-trigger.input-invalid {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.field--invalid .field-msg--error {
  margin-top: 6px;
}

.qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.product-qty input.input-invalid {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

.product-row--invalid {
  border-color: rgba(220, 38, 38, 0.35);
}

.recaptcha-wrap--invalid {
  padding: 8px;
  border-radius: 12px;
  outline: 2px solid rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.product-qty .field-msg--error {
  margin-top: 2px;
  text-align: right;
  max-width: 220px;
}

#section-submit .field-msg--error {
  margin-top: 6px;
  margin-bottom: 4px;
  text-align: center;
}

/* ── Fields ── */
.field {
  margin-bottom: 1.5rem;
  position: relative;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.field label .req {
  color: var(--red);
  font-weight: bold;
  margin-left: 2px;
}

.field input,
.field select,
.custom-select-trigger {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 16px;
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.field input::placeholder,
.custom-select-trigger.placeholder {
  color: var(--text-3);
  font-weight: 400;
}

.field input:hover,
.custom-select-trigger:hover {
  border-color: #94a3b8;
  background: #fff;
}

.field input:focus,
.custom-select-trigger.open,
.custom-select-trigger:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* ── Custom select (JS Driven) ── */
.custom-select {
  position: relative;
}

.custom-select-trigger {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.custom-select-trigger #sale-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger .arrow {
  font-size: 10px;
  color: var(--slate-muted);
  transition: transform 0.3s ease;
}

.custom-select-trigger.open .arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
  z-index: 50;
  overflow: hidden;
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scaleY(0.95);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.custom-select-dropdown.open {
  display: block;
}

.custom-select-search {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--navy);
  outline: none;
  background: #f8fafc;
}

.custom-select-options {
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-option {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--navy);
}

.custom-select-option.selected {
  color: var(--navy);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.1);
  position: relative;
}

.custom-select-option.selected::after {
  content: '✓';
  position: absolute;
  right: 16px;
  color: var(--gold);
}

.custom-select-option.hidden {
  display: none;
}

.custom-select-empty {
  padding: 16px;
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
}

/* ── Product rows ── */
.product-section {
  margin-top: 1rem;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-row {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.product-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 16px 0 0 16px;
}

.product-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  gap: 16px;
  padding: 20px 20px 16px 24px;
  border-bottom: 1px dashed #e2e8f0;
  background: #fafcff;
}

.product-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.product-header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-code {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1;
}

.p-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

/* ── Quantity Stepper ── */
.state-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 16px 24px;
}

.state-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.state-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.product-qty {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}

.product-qty button {
  width: var(--stepper);
  height: var(--stepper);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-qty button:hover {
  background: #e2e8f0;
  color: var(--gold);
}

.product-qty button:active {
  background: #cbd5e1;
  transform: scale(0.92);
}

.product-qty input {
  width: 44px;
  height: var(--stepper);
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-body);
  outline: none;
}

/* ── Exchange sections (Receipt UI) ── */
.exchange-section {
  display: none;
  padding: 16px 20px 20px 24px;
  border-top: 1px dashed #e2e8f0;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ex-a-seal,
#ex-seal,
#ex-c-seal {
  background: linear-gradient(to right, rgba(2, 132, 199, 0.03), transparent);
}

#ex-a-bonus,
#ex-b-bonus,
#ex-c-bonus {
  background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
}

.exchange-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exchange-header::before {
  content: '↳';
  color: var(--gold);
  font-size: 14px;
  font-weight: bold;
}

.exchange-header .ex-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.exchange-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.exchange-item--selectable {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  margin: 0 -10px;
  width: calc(100% + 20px);
  box-sizing: border-box;
}

.exchange-item--selectable:hover {
  background: #f1f5f9;
}

.exchange-item--selectable input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--navy, #1e3a5f);
  flex-shrink: 0;
}

.exchange-item--selectable:has(input[type="radio"]:checked) {
  background: #eef2ff;
  border-color: var(--navy, #1e3a5f);
}

.exchange-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}

.exchange-item-name span {
  color: var(--text-3);
  font-size: 12px;
  margin-left: 4px;
}

.exchange-dots {
  flex-grow: 1;
  border-bottom: 2px dotted #cbd5e1;
  margin: 0 12px;
  position: relative;
  top: -3px;
  opacity: 0.6;
}

.qty-readonly {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 4px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* ── Divider & Form Actions ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
  margin: 36px 0;
}

.form-submit-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ── Nút Submit chuẩn Luxury ── */
.submit-btn {
  width: 100%;
  min-height: 56px;
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.5);
}

.submit-btn:hover::after {
  opacity: 1;
  left: 100%;
  transition: left 0.6s ease-in-out;
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.submit-btn:disabled {
  background: #cbd5e1;
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Toast & Popups giữ nguyên base, tinh chỉnh bo góc ── */
#toast {
  display: none;
  margin-bottom: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

#toast.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--green);
}

#toast.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red);
}

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.popup-overlay.show {
  display: flex;
}

.popup-box {
  background: var(--card);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.popup-msg {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.popup-actions-row {
  display: flex;
  gap: 12px;
}

.popup-btn {
  flex: 1;
  min-height: 50px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-btn:not(.popup-btn-secondary) {
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  width: 100%;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.popup-btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 2px solid #e2e8f0;
}

.popup-btn-secondary:hover {
  border-color: var(--navy);
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* ── Submit Consent & Note ── */
.consent-text {
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  margin: 4px 0 0; /* Cách recaptcha một chút, sát vào nút submit */
  line-height: 1.5;
}

.consent-text a {
  color: #c28822; /* Màu vàng đậm hơn chút để dễ đọc trên nền trắng */
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.consent-text a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.submit-note {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: -8px; /* Kéo sát lại nút submit cho gọn */
  line-height: 1.6;
  max-width: 95%;
  text-align: left;
}

.submit-note strong {
  color: var(--text-2);
  font-weight: 700;
}


/* ── Responsive Mobile ── */
@media (max-width: 640px) {
  body {
    padding: 24px 16px 40px;
  }

  .card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .form-section {
    scroll-margin-top: 72px;
  }

  .hero-highlight {
    padding: 20px 16px;
  }

  .hero-highlight .hl-strong {
    font-size: 1.1rem;
  }

  .btn-download-gold {
    width: 100%;
    justify-content: center;
  }

  .hero-logo-wrap {
    width: 260px;
    height: 110px;
  }

  .hero-logo {
    width: 260px;
  }

  .hero-action {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-download-gold {
    width: 100%;
    justify-content: center;
  }

  .product-header {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
  }

  .state-cell {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .exchange-section {
    padding: 16px;
  }

  .product-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .exchange-item {
    flex-wrap: wrap;
  }

  /* Trên mobile ẩn dấu chấm cho đỡ rối */
  .exchange-dots {
    display: none;
  }

  .qty-readonly {
    margin-left: auto;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-highlight {
    .hl-strong {
      font-size: 1.0rem;
    }
  }

  .consent-text, .submit-note {
    font-size: 12px;
  }
}
/* ── Receipt Screen ── */
.receipt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(10, 25, 47, 0.9);
  overflow-y: auto;
  padding: 20px 12px 32px;
  -webkit-overflow-scrolling: touch;
}

.receipt-overlay.show { display: block; }

.receipt-box {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* PDF content render inside overlay */
.receipt-box #receipt-content > div {
  padding: 24px 20px !important;
  font-size: 13px !important;
}

.receipt-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.rc-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}

.rc-btn:active { transform: scale(0.98); }

.rc-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.rc-btn-pdf { background: var(--navy); color: #fff; }
.rc-btn-pdf:hover { opacity: 0.9; }
.rc-btn-close { background: #f1f5f9; color: #475569; }
.rc-btn-close:hover { background: #e2e8f0; }

#png-preview-overlay.show {
  display: flex !important;
}

.rc-screenshot-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
}

.rc-screenshot-hint svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.rc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
