/* ==========================================================================
   Quốc Duy IT — Green & White Design System (Light First + Dark Forest)
   ========================================================================== */

:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease);
}

/* Light Theme (Default — Crisp White & Emerald Green) */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f2fbf6;
  --surface: #ffffff;
  --surface-elevated: #f7fdf9;
  --surface-glass: rgba(255, 255, 255, 0.9);

  --text: #0b2217;
  --text-muted: #406150;
  --text-soft: #638272;

  --border: rgba(5, 150, 105, 0.15);
  --border-strong: rgba(5, 150, 105, 0.42);

  --accent-deep: #047857;
  --accent-emerald: #059669;
  --accent-leaf: #10b981;
  --accent-mint: #34d399;
  --accent-primary: #059669;
  --accent-primary-ink: #ffffff;
  --accent-gold: #b7791f;
  --accent-cyan: #0891b2;

  --glow-soft: rgba(16, 185, 129, 0.12);
  --glow-emerald: rgba(5, 150, 105, 0.13);
  --glow-gold: rgba(183, 121, 31, 0.12);
  --glow-cyan: rgba(8, 145, 178, 0.12);

  --shadow-card: 0 18px 42px -22px rgba(6, 78, 59, 0.15);
  --shadow-modal: 0 28px 65px -16px rgba(6, 78, 59, 0.24);
  --grid-line: rgba(5, 150, 105, 0.06);
}

/* Dark Theme (Dark Forest & Emerald) */
html[data-theme="dark"] {
  --bg: #05110b;
  --bg-alt: #091a11;
  --surface: #0e2418;
  --surface-elevated: #143121;
  --surface-glass: rgba(9, 26, 17, 0.84);

  --text: #f2fbf6;
  --text-muted: #9bc4ae;
  --text-soft: #6c9780;

  --border: rgba(52, 211, 153, 0.14);
  --border-strong: rgba(52, 211, 153, 0.42);

  --accent-deep: #6ee7b7;
  --accent-emerald: #10b981;
  --accent-leaf: #34d399;
  --accent-mint: #a7f3d0;
  --accent-primary: #10b981;
  --accent-primary-ink: #041d11;
  --accent-gold: #fbbf24;
  --accent-cyan: #22d3ee;

  --glow-soft: rgba(52, 211, 153, 0.14);
  --glow-emerald: rgba(16, 185, 129, 0.16);
  --glow-gold: rgba(251, 191, 36, 0.14);
  --glow-cyan: rgba(34, 211, 238, 0.14);

  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.85);
  --shadow-modal: 0 32px 80px -20px rgba(0, 0, 0, 0.9);
  --grid-line: rgba(52, 211, 153, 0.05);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1220px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ==========================================================================
   Announcement Bar & Header
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #065f46, #059669, #047857);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  padding: 0.55rem 0;
  color: #ffffff;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 12px #6ee7b7;
  flex-shrink: 0;
}

.announcement-text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.94);
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.78rem;
  transition: transform var(--transition), background-color var(--transition);
}

.promo-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.26);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent-emerald);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-leaf));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn,
.icon-pill,
.cart-trigger {
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}

.icon-btn {
  width: 40px;
}

.icon-pill {
  padding: 0 0.85rem;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-alt,
.lang-sep {
  color: var(--text-soft);
  font-weight: 500;
}

.cart-trigger {
  padding: 0 0.95rem;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.icon-btn:hover,
.icon-pill:hover,
.cart-trigger:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-emerald));
  color: #06130e;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: block;
  color: var(--accent-gold);
}

html[data-theme="light"] .icon-sun {
  display: none;
}

html[data-theme="light"] .icon-moon {
  display: block;
}

.mobile-only {
  display: none;
}

/* ==========================================================================
   Buttons & Cards
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald), #14b8a6);
  color: var(--accent-primary-ink);
  box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px -12px rgba(16, 185, 129, 0.75);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.spotlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--glow-emerald),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: var(--border-strong);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.75rem) 0 clamp(3rem, 5vw, 4.75rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
}

.hero-glow-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -80px;
  background: var(--glow-emerald);
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -60px;
  background: var(--glow-gold);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.75rem);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-gold) 5%, var(--accent-emerald) 55%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 1.85rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Hero Featured Card */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vault-card {
  padding: 1.5rem;
}

.vault-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.vault-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--glow-gold);
  color: var(--accent-gold);
  border: 1px solid rgba(231, 195, 122, 0.28);
}

.vault-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--accent-emerald);
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.vault-featured-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vault-featured-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.vault-featured-sub {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vault-featured-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.vault-featured-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vault-featured-list svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.vault-featured-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vault-price-block {
  display: flex;
  flex-direction: column;
}

.vault-price-now {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.vault-price-old {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: line-through;
}

.vault-card-footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.vault-security {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.75rem;
}

.section-head-left {
  text-align: left;
  margin: 0 0 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   About Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  padding: 1.5rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--glow-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.pillar-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Catalog & Products
   ========================================================================== */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.search-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 2.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--glow-emerald);
}

.search-clear {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.sort-wrap {
  flex: 0 0 auto;
}

.sort-select {
  height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, var(--accent-emerald), #14b8a6);
  color: var(--accent-primary-ink);
  border-color: transparent;
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.8;
}

.catalog-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  transition: transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sw-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.sw-logo-img {
  width: 56%;
  height: 56%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

/* Hide the monogram when a brand icon is shown; it reappears if the image fails (img removed) */
.sw-logo-img + .sw-logo-text {
  display: none;
}

.product-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.26rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.badge-hot {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
}

.badge-best {
  background: var(--glow-gold);
  color: var(--accent-gold);
  border-color: rgba(231, 195, 122, 0.35);
}

.badge-new {
  background: var(--glow-cyan);
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.32);
}

.badge-sale {
  background: var(--glow-emerald);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.32);
}

.product-cat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.product-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.product-tagline {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 2.75em;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.spec-chip {
  font-size: 0.75rem;
  padding: 0.22rem 0.58rem;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.product-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-plan-label {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.price-old {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-soft);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-step {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glow-gold);
  border: 1px solid rgba(231, 195, 122, 0.35);
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: none;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Contact & Booking Section
   ========================================================================== */
.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-cards {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.contact-mini {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-mini-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  word-break: break-word;
}

.contact-links a {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-links a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.contact-form-card {
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--glow-emerald);
}

.form-group input.is-invalid {
  border-color: #ef4444;
}

.form-success {
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.success-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--glow-emerald);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-summary {
  margin: 1rem 0 1.4rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  text-align: left;
  color: var(--text-muted);
  white-space: pre-line;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.25rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-col a,
.footer-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Modals, Drawers & Toasts
   ========================================================================== */
.modal-backdrop,
.drawer-backdrop,
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  z-index: 90;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100% - 1.5rem));
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 1.75rem;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.modal-features {
  list-style: none;
  margin: 1rem 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.48rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-features svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1.4rem;
}

.plan-option {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.plan-option.is-selected {
  border-color: var(--accent-emerald);
  background: var(--glow-emerald);
}

.plan-option strong {
  font-size: 0.9rem;
}

.plan-option .mono {
  color: var(--accent-gold);
  font-weight: 700;
}

.modal-buy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: 100;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
}

.cart-drawer[hidden],
.modal[hidden],
.mobile-nav[hidden] {
  display: none;
}

.drawer-head {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty svg {
  margin: 0 auto 1rem;
  color: var(--text-soft);
}

.cart-items-list {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}

.cart-item-info h4 {
  margin: 0;
  font-size: 0.95rem;
}

.cart-item-plan {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0.15rem 0 0.5rem;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-weight: 700;
}

.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 0.84rem;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-decoration: underline;
}

.cart-remove-btn:hover {
  color: #f87171;
}

.drawer-foot {
  padding: 1.15rem 1.35rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.promo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.promo-form input {
  flex: 1;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}

.promo-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: var(--accent-emerald);
}

.promo-feedback.is-error {
  color: #f87171;
}

.promo-remove {
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-muted);
}

.cart-totals {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.total-row.discount {
  color: var(--accent-emerald);
}

.total-row.grand {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1.05rem;
}

.total-row.grand strong {
  color: var(--accent-gold);
}

/* Checkout */
.back-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.back-link:hover {
  color: var(--text);
}

.checkout-form {
  display: grid;
  gap: 1rem;
}

.checkout-form h3 {
  margin: 0;
  font-family: var(--font-display);
}

.pay-methods {
  display: grid;
  gap: 0.5rem;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.form-group .pay-option input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.pay-option span {
  flex: 1;
  text-align: left;
}

.pay-option:hover {
  border-color: var(--border-strong);
}

.pay-option:has(input:checked) {
  border-color: var(--accent-emerald);
  background: var(--glow-emerald);
}

.demo-notice {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.checkout-receipt {
  text-align: center;
  padding-top: 1rem;
}

.receipt-box {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.receipt-line.key-line {
  flex-direction: column;
  align-items: stretch;
}

.key-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px dashed var(--accent-gold);
}

.key-copy-row code {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

/* Payment / QR step */
.checkout-payment {
  display: grid;
  gap: 0.9rem;
}

.checkout-payment h3 {
  margin: 0;
  font-family: var(--font-display);
}

.payment-sub,
.payment-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.payment-note {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--glow-gold);
  border: 1px dashed var(--accent-gold);
  color: var(--text);
}

.payment-qr-box {
  display: flex;
  justify-content: center;
}

.qr-frame {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.qr-error {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
}

.qr-placeholder {
  width: 100%;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--accent-emerald);
}

.qr-placeholder strong {
  color: var(--text);
  font-size: 0.95rem;
}

.qr-placeholder p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.qr-contact-row,
.receipt-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.receipt-contact-actions {
  margin: 0 0 1rem;
}

.receipt-contact-actions .btn {
  flex: 1 1 160px;
}

#paymentAccountLines {
  display: grid;
  gap: 0.85rem;
}

#paymentAccountLines:empty {
  display: none;
}

.copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-align: right;
  word-break: break-all;
}

.payment-amount {
  color: var(--accent-gold);
  font-size: 1rem;
}

.copy-chip {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.copy-chip:hover {
  background: var(--accent-emerald);
  color: var(--accent-primary-ink);
}

.payment-back {
  justify-self: center;
  margin: 0;
}

.payment-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.payment-confirm-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

#paymentDoneBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pending-badge {
  background: var(--glow-gold);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Brand QD Logo & Top Hero Banner */
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 12px -4px rgba(8, 25, 47, 0.45);
}

.hero-banner-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 2.25rem;
}

.hero-banner-link {
  display: block;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-modal);
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 100;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links {
  display: grid;
  gap: 0.45rem;
}

.mobile-link {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-link:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: grid;
  gap: 0.6rem;
  pointer-events: none;
  transition: right 0.25s var(--ease);
}

/* Khi mở giỏ hàng: đẩy thông báo sang trái ngăn kéo để không che nút thanh toán */
body.drawer-open .toast-container {
  right: calc(min(440px, 100vw) + 1.25rem);
}

@media (max-width: 760px) {
  body.drawer-open .toast-container {
    right: 50%;
    bottom: auto;
    top: 1rem;
    transform: translateX(50%);
    width: max-content;
    max-width: calc(100vw - 2rem);
  }
}

.toast {
  padding: 0.82rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  animation: toastIn 0.28s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .hero-layout,
  .faq-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cart-label {
    display: none;
  }

  .pillars-grid,
  .process-grid,
  .products-grid,
  .footer-grid,
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 1.25rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
