@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/be-vietnam-pro-4.ttf) format('truetype');
}

:root {
  /* Hệ thống màu sắc độc bản Heobuffsao */
  --bg: #FFFDF9;
  --bg-warm: #FFF7ED;
  --bg-card: #FFFFFF;
  --border: #F3E5D8;
  --border-strong: #E6CEB9;
  --text-main: #1E1B2E;
  --text-muted: #58506D;
  --text-dim: #7B7291;

  /* Primary Accent: Hồng san hô ngọt ngào */
  --coral-main: #FF5A79;
  --coral-hover: #E11D48;
  --coral-soft: #FFF1F4;
  --coral-border: #FECDD3;

  /* Secondary Accent: Vàng ngôi sao rực rỡ */
  --star-gold: #FBBF24;
  --star-amber: #F59E0B;
  --star-deep: #B45309;
  --star-soft: #FEF3C7;

  /* Tertiary Accent: Xanh bầu trời Total Views */
  --total-blue: #0284C7;
  --total-soft: #E0F2FE;

  /* Status Colors */
  --green: #15803D;
  --green-soft: #ECFDF5;
  --danger: #BE123C;
  --danger-soft: #FFF1F2;

  /* Soft UI / Neumorphism Shadows & Radii */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 14px 36px rgba(30, 27, 46, 0.06), 0 3px 10px rgba(255, 90, 121, 0.04);
  --shadow-neu: 8px 8px 22px rgba(226, 206, 189, 0.45), -6px -6px 18px #FFFFFF;
  --shadow-coral: 0 12px 28px rgba(225, 29, 72, 0.25);
  --focus: #E11D48;
  --duration: 220ms;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(255, 90, 121, 0.08) 0%, transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(251, 191, 36, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(255, 247, 237, 0.9) 0%, transparent 50%);
  color: var(--text-main);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
}

/* Body Scroll Lock khi mở Drawer / Modal */
body.nav-drawer-open,
body.modal-open {
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--duration) cubic-bezier(0.2, 0.8, 0.2, 1),
              background var(--duration),
              border-color var(--duration),
              box-shadow var(--duration),
              color var(--duration);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  flex-shrink: 0;
  vertical-align: middle;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ui-icon {
  width: 22px;
  height: 22px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

/* Accessibility Focus Ring */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible,
.service-choice:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Skip Link */
.skip-to-checkout {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.skip-to-checkout:focus {
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  border: 2px solid var(--coral-hover);
  padding: 12px 20px;
  box-shadow: 0 12px 28px rgba(30, 27, 46, 0.18);
}

/* Demo Bar */
.demo-label {
  padding: 12px 20px;
  background: linear-gradient(90deg, #FEF3C7, #FDE68A);
  border-bottom: 2px solid var(--star-amber);
  color: #78350F;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.demo-label select {
  padding: 6px 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #D97706;
  background: #FFFFFF;
  font-weight: 700;
  color: var(--text-main);
}

.demo-label a {
  color: #92400E;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Top Announcement Bar & Header */
.top-bar {
  background: linear-gradient(90deg, #1E1B2E 0%, #382146 50%, #1E1B2E 100%);
  color: #FFFDF9;
  text-align: center;
  padding: 10px 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1260px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 210px;
  height: auto;
  max-height: 56px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-warm);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Mobile-only Drawer elements hidden on Desktop/Tablet */
.mobile-nav-head,
.btn-mobile-nav-cta,
.mobile-nav-backdrop {
  display: none;
}

.nav-link {
  padding: 8px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--duration), color var(--duration);
}

.nav-link:hover {
  background: #FFFFFF;
  color: var(--coral-hover);
  box-shadow: 0 2px 8px rgba(30, 27, 46, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #BBF7D0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.32);
}

.btn-mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text-main);
  place-items: center;
}

/* Managed Announcements (Banner & Popup) */
.managed-banner {
  width: min(1260px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 16px 22px;
  background: #FFFFFF;
  border: 2px solid var(--coral-main);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.managed-banner-copy {
  min-width: 0;
  flex: 1;
}

.managed-banner-copy strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}

.managed-banner-copy p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.managed-notice-snooze {
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.managed-popup {
  border: 2.5px solid var(--coral-main);
  border-radius: 26px;
  padding: 26px 28px;
  max-width: 480px;
  width: calc(100% - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 25px 75px rgba(30, 27, 46, 0.28);
}

.managed-popup::backdrop {
  background: rgba(30, 27, 46, 0.58);
  backdrop-filter: blur(4px);
}

.managed-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.managed-popup-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-hover);
}

.managed-popup-close-form {
  margin: 0;
}

.btn-popup-close-x {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-warm);
  color: var(--text-main);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.managed-popup-body {
  max-height: 55dvh;
  overflow-y: auto;
  padding-right: 4px;
}

.managed-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.managed-popup-actions button {
  min-height: 46px;
}

/* Main Container */
.container {
  width: min(1260px, calc(100% - 48px));
  margin: 26px auto 72px;
}

/* ==========================================================================
   HERO SECTION: HEO & NGÔI SAO LẤP LÁNH
   ========================================================================== */
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(circle at 86% 22%, rgba(251, 191, 36, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(255, 90, 121, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #FFFDF9 0%, #FFF5EC 52%, #FFF0F4 100%);
  border: 2px solid #FFE0E7;
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft), inset 0 2px 0 #FFFFFF;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF, rgba(255, 90, 121, 0.18));
  border: 1px solid rgba(255, 90, 121, 0.2);
  animation: floatBubble 7s ease-in-out infinite;
}

.ambient-bubble.b-1 { width: 54px; height: 54px; top: 14%; left: 48%; animation-delay: 0s; }
.ambient-bubble.b-2 { width: 34px; height: 34px; bottom: 16%; left: 54%; animation-delay: -2.4s; }
.ambient-bubble.b-3 { width: 72px; height: 72px; top: -18px; right: 26%; animation-delay: -4.2s; }

.ambient-star {
  position: absolute;
  color: var(--star-amber);
  font-size: 20px;
  animation: twinkleStar 3.6s ease-in-out infinite;
}

.ambient-star.s-1 { top: 18%; right: 38%; animation-delay: 0s; }
.ambient-star.s-2 { bottom: 22%; right: 8%; font-size: 24px; color: var(--coral-main); animation-delay: -1.2s; }
.ambient-star.s-3 { top: 12%; left: 38%; font-size: 16px; animation-delay: -2.5s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

@keyframes twinkleStar {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.18) rotate(12deg); }
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
  max-width: 100%;
}

.hero-badge svg {
  color: #FDE047;
}

.hero-slogan-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  color: #92400E;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.text-gradient-coral {
  background: linear-gradient(135deg, #FF5A79 0%, #E11D48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 62ch;
}

.hero-notes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-note-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 15px;
  border-radius: 16px;
  border: 1px solid rgba(243, 229, 216, 0.95);
  box-shadow: 0 4px 12px rgba(30, 27, 46, 0.03);
  min-width: 0;
}

.note-bullet {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--coral-soft);
  color: var(--coral-hover);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-mascot-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: mascotFloat 5.5s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   SERVICE SWITCHER: 3 THẺ BÀI DỊCH VỤ NEUMORPHISM / SOFT UI
   ========================================================================== */
.service-picker {
  border: 0;
  padding: 0;
  margin: 0 0 32px;
  min-width: 0;
}

.service-picker > legend {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.service-picker-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  background: linear-gradient(145deg, #FFFFFF, #FFF9F2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-neu);
  min-width: 0;
  transition: transform var(--duration) cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color var(--duration),
              box-shadow var(--duration),
              background var(--duration);
}

.service-choice:hover {
  transform: translateY(-4px);
  border-color: #FDA4AF;
  box-shadow: 0 18px 36px rgba(30, 27, 46, 0.09);
}

.service-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.service-choice-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--coral-soft);
  color: var(--coral-hover);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 6px 14px rgba(255, 90, 121, 0.14);
}

.service-choice-icon svg {
  width: 30px;
  height: 30px;
}

.service-card-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-hover);
  white-space: nowrap;
}

.service-card-tag.tag-gold {
  background: var(--star-soft);
  color: var(--star-deep);
}

.service-card-tag.tag-blue {
  background: var(--total-soft);
  color: var(--total-blue);
}

.service-choice-stars .service-choice-icon {
  background: var(--star-soft);
  color: var(--star-amber);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 6px 14px rgba(245, 158, 11, 0.16);
}

.service-choice-total .service-choice-icon {
  background: var(--total-soft);
  color: var(--total-blue);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 6px 14px rgba(2, 132, 199, 0.14);
}

.service-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.service-choice-copy strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.service-choice-copy small {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.service-select-indicator {
  color: var(--coral-hover);
  font-weight: 800;
}

/* Active State for Service Cards */
.service-choice.is-active {
  background: linear-gradient(145deg, #FFFFFF, #FFF1F4);
  border-color: var(--coral-main);
  box-shadow: 0 16px 34px rgba(255, 90, 121, 0.18), 0 0 0 3px rgba(255, 90, 121, 0.12);
  transform: translateY(-3px);
}

.service-choice-stars.is-active {
  background: linear-gradient(145deg, #FFFFFF, #FFFBEB);
  border-color: var(--star-amber);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.2), 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.service-choice-stars.is-active .service-select-indicator {
  color: var(--star-deep);
}

.service-choice-total.is-active {
  background: linear-gradient(145deg, #FFFFFF, #F0F9FF);
  border-color: var(--total-blue);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.18), 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.service-choice-total.is-active .service-select-indicator {
  color: var(--total-blue);
}

/* ==========================================================================
   STEP PROGRESS BAR
   ========================================================================== */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  box-shadow: 0 4px 14px rgba(30, 27, 46, 0.04);
  min-width: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.step-text strong {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.75;
}

.step-text span {
  font-size: 13.5px;
  font-weight: 800;
}

.step-indicator.active {
  background: var(--coral-soft);
  border-color: #FDA4AF;
  color: var(--coral-hover);
}

.step-indicator.completed {
  background: var(--green-soft);
  border-color: #86EFAC;
  color: var(--green);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-indicator.active .step-num {
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
}

.step-indicator.completed .step-num {
  background: var(--green);
  color: #FFFFFF;
}

.step-arrow {
  width: 34px;
  height: 2px;
  background: var(--border-strong);
  border-radius: 999px;
  flex-shrink: 0;
}

/* ==========================================================================
   2-COLUMN SMART CHECKOUT LAYOUT
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(380px, 0.98fr);
  gap: 26px;
  align-items: start;
}

.checkout-left,
.checkout-right {
  min-width: 0;
}

.checkout-right {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-panel,
.summary-widget {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  min-width: 0;
}

.checkout-right .card-panel,
.checkout-right .summary-widget {
  margin-bottom: 0;
}

.step-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--coral-hover);
  margin-bottom: 3px;
}

.step-header-red {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.step-header-red > div {
  min-width: 0;
  flex: 1;
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
}

.step-header-red h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}

.step-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.step-inner-gray-box {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #FFFDF9 100%);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.server-pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--star-soft);
  color: var(--star-deep);
}

.field-help-btn {
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--coral-hover);
  cursor: help;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  transition: border-color var(--duration), box-shadow var(--duration);
}

.form-control:hover {
  border-color: #FDA4AF;
}

.game-server-select {
  margin-bottom: 8px;
  font-weight: 700;
}

.connected-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.connected-input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-login-red {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-coral);
}

.btn-login-red:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.32);
}

.id-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 10px 0 14px;
}

.verified-account-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 2px solid #86EFAC;
  border-radius: 18px;
  padding: 18px 22px;
}

.verified-account-box.show {
  display: flex;
}

.acc-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.acc-details {
  min-width: 0;
  flex: 1;
}

.acc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid #BBF7D0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.1);
}

.acc-role-line {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.acc-role-line span {
  color: var(--coral-hover);
}

.acc-uid-line {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  margin-top: 4px;
}

.btn-edit-id {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid #86EFAC;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Method Pills & Online Notice */
.method-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
}

.method-pill {
  min-height: 46px;
  padding: 8px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

.method-pill.active {
  background: #FFFFFF;
  color: var(--coral-hover);
  border-color: var(--coral-border);
  box-shadow: 0 4px 12px rgba(30, 27, 46, 0.06);
}

.online-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid var(--star-amber);
  border-radius: 18px;
  padding: 20px 22px;
  color: #78350F;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.online-notice-content {
  min-width: 0;
  flex: 1;
}

.online-notice-content strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 6px;
  color: #92400E;
}

.online-notice-content p {
  margin: 0 0 14px;
}

.btn-switch-to-card {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.22);
}

/* Card Stack */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-entry-box {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #FFFFFF 100%);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(30, 27, 46, 0.03);
  min-width: 0;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
}

.card-badge-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.card-badge-num svg {
  fill: var(--coral-main);
}

.btn-del-card {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #FECDD3;
  border-radius: 10px;
  background: #FFF1F2;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 800;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.form-grid-2:last-child {
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
}

.req {
  color: var(--coral-hover);
}

.btn-add-more {
  margin-top: 16px;
  width: 100%;
  min-height: 50px;
  border: 2px dashed #FDA4AF;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-hover);
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  text-align: center;
}

.btn-add-more:hover {
  background: #FFE4EC;
  border-color: var(--coral-main);
}

.submit-action-box {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-submit-red {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--coral-main) 0%, var(--coral-hover) 100%);
  color: #FFFFFF;
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  box-shadow: var(--shadow-coral);
}

.btn-submit-red:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.34);
}

.form-msg-box {
  display: none;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 14px;
  padding: 13px 16px;
  margin-top: 14px;
}

.form-msg-box.error {
  display: block;
  background: var(--danger-soft);
  border: 1.5px solid #FECDD3;
  color: var(--danger);
}

.form-msg-box.info {
  display: block;
  background: var(--star-soft);
  border: 1.5px solid #FDE68A;
  color: #92400E;
}

.form-msg-box.success {
  display: block;
  background: var(--green-soft);
  border: 1.5px solid #86EFAC;
  color: var(--green);
}

/* ==========================================================================
   PACK SHOWCASE (PULSE / HIGHLIGHT) & LIVE SUMMARY
   ========================================================================== */
.pack-section-title,
.widget-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pack-section-title h2,
.widget-title h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.pack-section-badge,
.live-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--star-soft);
  color: var(--star-deep);
  white-space: nowrap;
}

.live-pill {
  background: var(--green-soft);
  color: var(--green);
}

.service-pack-hint {
  font-size: 12.5px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFF7ED 100%);
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 12px 15px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.pack-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pack-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #FFFFFF, #FFFDF9);
  min-width: 0;
  transition: transform var(--duration), border-color var(--duration), background var(--duration), box-shadow var(--duration);
}

.pack-item:hover:not(.pack-sold-out) {
  border-color: #FDA4AF;
  transform: translateY(-2px);
}

/* Pulse & Highlight when matched with user's entered card denominations */
.pack-item.active {
  border: 2.5px solid var(--coral-main);
  background: linear-gradient(145deg, #FFF1F4 0%, #FFFDF9 100%);
  box-shadow: 0 12px 26px rgba(255, 90, 121, 0.22);
  animation: matchedPackPulse 2s ease-in-out infinite;
}

@keyframes matchedPackPulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(255, 90, 121, 0.2), 0 0 0 0 rgba(255, 90, 121, 0.35);
    transform: translateY(-2px);
  }
  50% {
    box-shadow: 0 14px 30px rgba(255, 90, 121, 0.28), 0 0 0 6px rgba(255, 90, 121, 0);
    transform: translateY(-4px);
  }
}

.pack-item.active::before {
  content: '★ KHỚP MỆNH GIÁ';
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.pack-img-box {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
  box-shadow: inset 0 0 0 1px rgba(30, 27, 46, 0.05);
}

.pack-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-tim-badge {
  display: none;
}

.pack-body {
  min-width: 0;
  flex: 1;
}

.pack-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.pack-cost {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--coral-hover);
}

.pack-card-req,
.pack-combo-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
}

.pack-sold-out {
  background: #F9FAFB;
  border-style: dashed;
  opacity: 0.68;
}

.pack-sold-out .pack-img-box {
  filter: grayscale(0.9);
}

.pack-stock {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #E5E7EB;
  color: #374151;
  font-size: 11px;
  font-weight: 800;
}

/* Summary Widget */
.summary-widget {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F5 100%);
  border: 2px solid #FFE0E7;
}

.summary-rows-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 16px;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row > span {
  color: var(--text-muted);
  font-weight: 600;
}

.summary-row > strong {
  text-align: right;
  font-weight: 800;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.sum-id-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-money {
  color: var(--coral-hover);
  font-size: 15.5px;
}

.summary-row.highlight {
  background: linear-gradient(135deg, var(--coral-soft) 0%, #FFFBEB 100%);
  border: 1.5px solid #FECDD3;
  border-radius: 16px;
  padding: 14px 18px;
}

.summary-row.highlight > span {
  color: var(--text-main);
  font-weight: 800;
}

.summary-row.highlight > strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--coral-hover);
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
}

/* Receipt Modal & Toast */
.toast-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  background: #1E1B2E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(30, 27, 46, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms, opacity 200ms;
  max-width: calc(100vw - 28px);
}

.toast-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 46, 0.62);
  backdrop-filter: blur(5px);
  padding: 18px;
  z-index: 110;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  position: relative;
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 26px;
  border: 2px solid #FFE0E7;
  padding: 30px;
  width: min(530px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 28px 80px rgba(30, 27, 46, 0.32);
}

.btn-modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-warm);
  color: var(--text-main);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
}

.btn-modal-close-x:hover {
  background: var(--coral-soft);
  border-color: var(--coral-main);
  color: var(--coral-hover);
}

.modal-top {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 36px;
}

.modal-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.modal-overlay[data-payment-state="pending"] .modal-icon-wrap {
  background: var(--star-soft);
  color: var(--star-amber);
}

.modal-overlay[data-payment-state="failed"] .modal-icon-wrap,
.modal-overlay[data-payment-state="partial"] .modal-icon-wrap {
  background: var(--danger-soft);
  color: var(--danger);
}

.receipt-table {
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 13.5px;
}

.receipt-row > strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-code {
  color: var(--coral-hover);
  font-size: 14.5px;
}

#payment-card-results {
  margin-bottom: 18px;
}

.payment-card-result {
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 8px;
  background: #FFFFFF;
  overflow-wrap: anywhere;
}

.payment-card-paid {
  background: var(--green-soft);
  border-color: #86EFAC;
  color: var(--green);
}

.payment-card-failed {
  background: var(--danger-soft);
  border-color: #FECDD3;
  color: var(--danger);
}

.modal-btn-group {
  display: flex;
  gap: 12px;
}

.modal-btn-group button {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.btn-secondary {
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text-main);
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.btn-primary-modal {
  border: 0;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.card-check-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer & Policy */
.site-footer {
  padding: 52px 24px 84px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
  border-top: 1.5px solid var(--border);
}

.footer-columns {
  width: min(1220px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

.footer-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.footer-brand-domain {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--coral-hover);
}

.footer-legal-note p {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.footer-legal-note svg {
  width: 18px;
  height: 18px;
  color: var(--coral-main);
  margin-top: 3px;
}

.footer-columns nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 54px;
  margin-bottom: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color var(--duration), transform var(--duration);
}

.footer-columns nav a:hover {
  border-color: #FDA4AF;
  transform: translateX(3px);
}

.footer-link-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-link-copy small {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-bottom {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Policy Page */
.policy-container {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--coral-hover);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 14px;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.policy-tabs a {
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
}

.policy-tabs a[aria-current="page"] {
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
}

.policy-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.policy-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--coral-hover);
  margin-bottom: 8px;
}

/* Support Chat & Support Inbox */
.support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
}

.support-chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.35);
}

.support-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(415px, calc(100vw - 28px));
  height: min(620px, calc(100dvh - 110px));
  background: #FFFFFF;
  border: 2px solid #FFE0E7;
  border-radius: 24px;
  box-shadow: 0 22px 64px rgba(30, 27, 46, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF1F4, #FFF7ED);
  border-bottom: 1px solid var(--border);
}

.support-chat-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--coral-hover);
}

.support-chat-header h2 {
  font-size: 16.5px;
  margin: 4px 0;
}

.support-chat-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.support-chat-header button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.support-chat-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.support-chat-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  padding: 6px 0;
}

.support-chat-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}

.support-chat-topics button {
  text-align: left;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-warm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.support-chat-topics button[aria-pressed="true"] {
  background: var(--coral-soft);
  border-color: var(--coral-main);
  color: var(--coral-hover);
}

.support-chat-answer {
  padding: 14px;
  border-radius: 14px;
  background: #FFF9FA;
  border: 1px solid #FECDD3;
  margin-bottom: 14px;
}

.support-chat-answer-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--coral-hover);
}

.support-chat-answer h3 {
  font-size: 14px;
  margin: 4px 0 6px;
}

.support-chat-answer p {
  font-size: 12.5px;
  white-space: pre-wrap;
  margin: 0;
}

.support-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 88%;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chat-message-customer {
  background: var(--coral-soft);
  align-self: flex-end;
}

.chat-message-admin {
  background: var(--bg-warm);
  align-self: flex-start;
}

.chat-message-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-message time {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

.support-chat-handoff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.support-chat-handoff button {
  border: 0;
  background: transparent;
  color: var(--coral-hover);
  font-weight: 800;
  min-height: 44px;
  white-space: nowrap;
}

.support-chat-status {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 16px;
  margin: 0;
}

.support-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.support-chat-form textarea {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  resize: none;
}

.support-chat-form button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Support Admin Inbox */
.support-inbox {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 24px 48px;
}

.inbox-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #1E1B2E;
  color: #FFFFFF;
  padding: 20px 26px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.inbox-heading h1 {
  color: #FFFFFF;
  margin: 4px 0 0;
  font-size: 22px;
}

.inbox-heading .policy-eyebrow {
  color: var(--star-gold);
  margin: 0;
}

.inbox-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 700;
}

.inbox-note a {
  color: var(--coral-hover);
  text-decoration: none;
  background: #FFFFFF;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.inbox-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
  color: #FFFFFF;
  font-weight: 800;
}

.inbox-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
}

.inbox-threads {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: auto;
  max-height: 72vh;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.inbox-threads > a {
  display: block;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.inbox-threads > a[aria-current="page"] {
  background: var(--coral-soft);
  border-left: 4px solid var(--coral-main);
}

.inbox-conversation {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.inbox-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
  overflow: auto;
  margin-bottom: 16px;
}

.inbox-reply textarea {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0 12px;
}

/* ==========================================================================
   BREAKPOINT 1: TABLET & FOLDABLE (768px đến 1024px)
   Bố cục lưới 2 cột cân đối (Trái: Xác minh ID & Thẻ cào; Phải: Bảng quy đổi & Live Summary)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar,
  .container,
  .managed-banner {
    width: calc(100% - 36px);
  }

  .brand-logo-img {
    width: 185px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .system-status {
    display: none;
  }

  .hero-card {
    grid-template-columns: 1.38fr 0.62fr;
    padding: 28px 30px;
    gap: 20px;
  }

  .hero-notes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-picker-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .service-choice {
    padding: 18px 16px;
  }

  .service-choice-copy strong {
    font-size: 16px;
  }

  /* Lưới 2 cột cân đối trên Tablet */
  .main-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 20px;
    align-items: start;
  }

  .checkout-right {
    position: sticky;
    top: 94px;
  }

  .card-panel,
  .summary-widget {
    padding: 22px 20px;
  }

  .step-inner-gray-box,
  .card-entry-box {
    padding: 16px;
  }

  /* Trong cột phải của Tablet 768px-940px, hiển thị 1 cột gói ngang rộng rãi để không cắt chữ */
  .pack-grid-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-columns {
    gap: 32px;
  }

  .inbox-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

/* ==========================================================================
   BREAKPOINT 2: ĐIỆN THOẠI PHỔ THÔNG & TẦM TRUNG (Dưới 768px, chuẩn 375px - 430px)
   Bố cục 1 cột mượt mà, Slide-in Mobile Menu Drawer, Sticky Bottom Bar
   ========================================================================== */
@media (max-width: 767.98px) {
  body.chat-open {
    overflow: hidden;
  }

  .navbar,
  .container,
  .managed-banner {
    width: calc(100% - 28px);
  }

  .navbar {
    min-height: 70px;
  }

  .brand-logo-img {
    width: 184px;
    max-height: 48px;
  }

  .btn-mobile-menu {
    display: inline-grid;
  }

  .btn-header-cta,
  .system-status {
    display: none;
  }

  /* Lớp phủ mờ khi mở Mobile Menu Drawer */
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(30, 27, 46, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 240ms ease;
  }

  .mobile-nav-backdrop.is-open {
    opacity: 1;
  }

  /* Thanh điều hướng Mobile trượt từ cạnh phải (Slide-in Drawer) */
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: min(320px, 86vw);
    height: 100dvh;
    background: #FFFDF9;
    border: 0;
    border-left: 2px solid #FFE0E7;
    border-radius: 24px 0 0 24px;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: -18px 0 48px rgba(30, 27, 46, 0.25);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms;
  }

  .header-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1.5px solid var(--border);
  }

  .mobile-nav-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--coral-hover);
  }

  .btn-mobile-nav-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    font-size: 14.5px;
    justify-content: flex-start;
  }

  .btn-mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-coral);
  }

  .managed-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 16px;
  }

  .managed-notice-snooze {
    width: 100%;
  }

  .container {
    margin: 18px auto 48px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    border-radius: 24px;
    margin-bottom: 22px;
  }

  .hero-art {
    display: none;
  }

  .hero-notes-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-picker-options {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-choice {
    padding: 18px 20px;
  }

  .stepper-nav {
    gap: 6px;
    margin-bottom: 20px;
  }

  .step-indicator {
    padding: 8px 12px;
    gap: 8px;
  }

  .step-arrow {
    width: 12px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-right {
    position: static;
  }

  .card-panel,
  .summary-widget {
    padding: 20px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .step-inner-gray-box,
  .card-entry-box {
    padding: 16px;
  }

  .connected-input-group {
    flex-direction: column;
  }

  .btn-login-red {
    width: 100%;
    min-height: 48px;
  }

  .verified-account-box {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .btn-edit-id {
    width: 100%;
  }

  .method-pills-row {
    grid-template-columns: 1fr;
  }

  .form-grid-2,
  .footer-columns,
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .pack-grid-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer {
    padding: 40px 16px calc(110px + env(safe-area-inset-bottom));
  }

  .policy-card,
  .inbox-conversation {
    padding: 22px 18px;
  }

  .support-inbox {
    padding: 0 14px 40px;
    margin: 18px auto;
  }

  .inbox-heading {
    padding: 16px 18px;
  }

  /* Thanh tóm tắt giao dịch dính đáy trên Mobile */
  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FECDD3;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -10px 28px rgba(30, 27, 46, 0.12);
  }

  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    font-size: 12.5px;
    min-width: 0;
    flex: 1;
  }

  .mobile-sticky-pack {
    font-weight: 800;
    color: var(--coral-hover);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-mobile-sticky-cta {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral-main), var(--coral-hover));
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
  }

  /* Tự động ẩn thanh đáy & nút chat nổi khi bàn phím ảo xuất hiện hoặc mở hộp chat */
  body.is-editing .mobile-sticky-bar,
  body.is-editing .support-chat-toggle[aria-expanded="false"],
  body.chat-open .mobile-sticky-bar {
    visibility: hidden;
    pointer-events: none;
  }

  /* Nút bật chat nổi trên Mobile không đè lên Sticky Bar hay nút chính */
  .support-chat {
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: 14px;
  }

  .support-chat-toggle {
    min-height: 48px;
    padding: 0 16px;
    font-size: 13px;
  }

  /* Khung chat mở rộng trên Mobile dạng Sheet cân đối, dễ đọc & nhắn tin */
  .support-chat-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    height: min(620px, calc(100dvh - 24px - env(safe-area-inset-bottom)));
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
    z-index: 98;
  }
}

/* ==========================================================================
   BREAKPOINT 3: MÀN HÌNH SIÊU NHỎ (SMALL MOBILE - Dưới 360px: iPhone SE cũ, Galaxy Fold ngoài)
   Chống cắt chữ, chống dính mép, chống tràn chiều ngang tuyệt đối
   ========================================================================== */
@media (max-width: 359.98px) {
  .navbar,
  .container,
  .managed-banner,
  .policy-container {
    width: calc(100% - 20px);
  }

  .top-bar {
    padding: 8px 10px;
    font-size: 10.5px;
  }

  .navbar {
    min-height: 64px;
    gap: 8px;
  }

  .brand-logo-img {
    width: 156px;
    max-height: 42px;
  }

  .hero-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 5px 10px;
  }

  .hero-slogan-pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 20.5px;
    line-height: 1.28;
  }

  .hero-lead {
    font-size: 13.5px;
  }

  .hero-note-item {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .service-choice {
    padding: 16px 14px;
  }

  .service-choice-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .service-choice-copy strong {
    font-size: 16px;
  }

  /* Stepper xếp dọc gọn gàng trên màn hình < 360px để không bao giờ tràn ngang */
  .stepper-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .step-arrow {
    display: none;
  }

  .step-indicator {
    width: 100%;
    padding: 9px 14px;
  }

  .card-panel,
  .summary-widget,
  .policy-card,
  .inbox-conversation {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .step-header-red {
    gap: 12px;
  }

  .step-num-badge {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 12px;
  }

  .step-header-red h2 {
    font-size: 17.5px;
  }

  .step-inner-gray-box,
  .card-entry-box {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .form-control,
  .connected-input {
    font-size: 14px;
    padding: 0 12px;
    min-height: 46px;
  }

  .pack-item {
    padding: 12px 10px;
    gap: 10px;
  }

  .pack-img-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .pack-name {
    font-size: 13.5px;
  }

  .pack-cost {
    font-size: 15px;
  }

  .summary-rows-box {
    padding: 6px 12px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .summary-row > strong {
    text-align: left;
  }

  .summary-row.highlight {
    padding: 12px 14px;
  }

  .summary-row.highlight > strong {
    font-size: 19px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-window {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .modal-top {
    padding: 0 28px;
  }

  .receipt-table {
    padding: 12px;
  }

  .receipt-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .receipt-row > strong {
    text-align: left;
  }

  .modal-btn-group,
  .managed-popup-actions {
    flex-direction: column;
  }

  .managed-popup {
    padding: 20px 14px;
    width: calc(100% - 16px);
  }

  /* Khung chat hỗ trợ mở toàn màn hình trên thiết bị siêu nhỏ < 360px */
  .support-chat-panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .support-chat-topics {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .btn-mobile-sticky-cta {
    padding: 0 14px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
