/* Quản lý sự cố đường bộ — landing page */
:root {
  --navy: #0c1f3d;
  --navy-mid: #15325c;
  --blue: #1565c0;
  --blue-light: #e8f1fc;
  --orange: #e65100;
  --orange-soft: #fff3e8;
  --teal: #00897b;
  --teal-soft: #e0f2f1;
  --zalo: #0068ff;

  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
  --section-y: clamp(3.5rem, 8vw, 5.5rem);
  --container: min(1140px, 92vw);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy-mid);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.75rem 1.25rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  min-width: 0;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
  font-size: 0.95rem;
}

.brand:hover {
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand img[hidden] {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin: 0 auto;
  padding: 0.28rem;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.nav a {
  padding: 0.42rem 0.9rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover {
  color: var(--navy);
  background: var(--blue-light);
}

.nav a.is-active {
  color: var(--navy);
  background: var(--blue-light);
  box-shadow: inset 0 0 0 1px rgba(21, 101, 192, 0.15);
}

.product-page-hero {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.product-page-hero .product-band h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-cta .btn-header {
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  border-radius: 10px;
  min-height: 38px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0d47a1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

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

.btn-zalo {
  background: var(--zalo);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
}

.btn-zalo:hover {
  background: #0056d6;
  color: #fff;
}

.btn-zalo.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 var(--section-y);
  background: linear-gradient(165deg, #eef4fc 0%, #f8fafc 45%, #fff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

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

.hero-content {
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-mid);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-banner-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
}

.hero-banner-wrap img {
  width: 100%;
}

.hero-banner-wrap--illus {
  background: linear-gradient(160deg, #e8f1fc 0%, #f0f7ff 100%);
  padding: 1rem;
}

.hero-banner-wrap--illus img {
  max-height: 340px;
  object-fit: contain;
  margin: 0 auto;
}

/* —— Tính năng nổi bật (tách khỏi banner) —— */
.highlights-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.highlights-header .eyebrow {
  background: var(--blue-light);
  color: var(--blue);
}

.highlights-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.highlights-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.highlight-top-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) 1.15rem;
  background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.22);
}

.highlight-top-item--teal {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  box-shadow: 0 8px 24px rgba(0, 137, 123, 0.22);
}

.highlight-top-item--orange {
  background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%);
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.22);
}

.highlight-top-item--purple {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
  box-shadow: 0 8px 24px rgba(123, 31, 162, 0.22);
}

.highlight-top-icon--emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.highlight-top-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.highlight-top-icon svg {
  width: 26px;
  height: 26px;
}

.highlight-top-text {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.highlight-top-text--stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.highlight-top-text--stack strong {
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.highlight-top-text--stack small {
  font-size: clamp(0.72rem, 1.25vw, 0.84rem);
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.92;
}

@media (min-width: 901px) {
  .highlights-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .highlight-top-item {
    min-height: 100%;
  }
}

.highlights-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-card {
  text-align: center;
  padding: clamp(1rem, 2vw, 1.35rem) 0.75rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.highlight-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.highlight-card-icon svg {
  width: clamp(28px, 4vw, 36px);
  height: clamp(28px, 4vw, 36px);
}

.highlight-card--blue .highlight-card-icon {
  background: #e3f2fd;
  color: #1565c0;
}

.highlight-card--green .highlight-card-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.highlight-card--orange .highlight-card-icon {
  background: #fff3e0;
  color: #e65100;
}

.highlight-card--purple .highlight-card-icon {
  background: #f3e5f5;
  color: #7b1fa2;
}

.highlight-card--cyan .highlight-card-icon {
  background: #e0f7fa;
  color: #00838f;
}

.highlight-card-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.highlight-card-desc {
  margin: 0;
  font-size: clamp(0.82rem, 1.3vw, 0.92rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-card:nth-child(4),
  .highlight-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .highlights-top {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 1rem;
    text-align: left;
    padding: 1rem 1.15rem;
    align-items: center;
  }

  .highlight-card-icon {
    grid-row: 1 / span 2;
    margin: 0;
    width: 52px;
    height: 52px;
  }

  .highlight-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .highlight-card-title {
    margin: 0;
    align-self: end;
  }

  .highlight-card-desc {
    margin: 0;
    max-width: none;
    align-self: start;
  }
}

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

.stat-card {
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.2;
}

.stat-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* —— Sections —— */
.section {
  padding: var(--section-y) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
}

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

.section-header .eyebrow {
  background: var(--blue-light);
  color: var(--blue);
}

.section-dark .section-header .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}

.section-dark .section-title {
  color: #fff;
}

.section-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.78);
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: var(--blue-light);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--teal-soft);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--orange-soft);
}

.feature-card:nth-child(4) .feature-icon {
  background: #f3e8ff;
}

.feature-card:nth-child(5) .feature-icon {
  background: #fef3c7;
}

.feature-card:nth-child(6) .feature-icon {
  background: #fce4ec;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* —— Screenshots (ảnh to, nét) —— */
.container-wide {
  width: min(920px, 92vw);
}

.screenshots-showcase {
  padding-bottom: calc(var(--section-y) + 0.5rem);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.shot-card {
  text-align: center;
  width: 100%;
}

.shot-card button.shot-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: center;
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shot-card button.shot-zoom:hover {
  transform: translateY(-3px);
}

.shot-card button.shot-zoom:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 152px;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: clamp(12px, 1.2vw, 16px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(56px, 8vw, 72px);
  height: 6px;
  background: #475569;
  border-radius: 999px;
  z-index: 2;
}

.shot-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  image-rendering: auto;
}

.shot-zoom-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  background: #1e293b;
}

.shot-caption {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  padding: 0 0.15rem;
}

/* Lightbox phóng to */
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 31, 61, 0.92);
  backdrop-filter: blur(8px);
}

.shot-lightbox[hidden] {
  display: none !important;
}

.shot-lightbox-inner {
  margin: 0;
  max-width: min(520px, 100%);
  max-height: 92vh;
  text-align: center;
}

.shot-lightbox-inner img {
  width: 100%;
  max-height: calc(92vh - 3rem);
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.shot-lightbox-inner figcaption {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
}

.shot-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.shot-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* —— Videos (khung dọc 9:16 — quay màn hình điện thoại) —— */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.video-card:hover {
  box-shadow: var(--shadow);
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0.85rem auto 0;
  aspect-ratio: 9 / 16;
  height: auto;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #1e293b,
    0 0 0 5px #334155,
    var(--shadow-sm);
}

.video-embed iframe,
.video-embed .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  text-align: center;
  padding: 1rem;
  font-size: 0.82rem;
}

.video-body {
  width: 100%;
  padding: 0.9rem 0.75rem 1.1rem;
  text-align: center;
}

.video-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

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

/* —— Register —— */
.register-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.register-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}

.register-intro > p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.register-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.register-steps li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.register-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.register-form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.form-hint {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.form-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #dc2626;
}

.form-error.visible {
  display: block;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.25rem;
}

.form-status.error {
  color: #dc2626;
}

.form-status.success {
  color: #16a34a;
  font-weight: 600;
}

.register-form-card.is-submitted {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.04);
}

/* —— Contact strip —— */
.contact-strip {
  padding: var(--section-y) 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, var(--blue-light) 0%, #fff 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-strip-text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.contact-strip-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zalo-phone-display {
  font-size: 1.05rem;
  color: var(--navy);
}

/* —— Zalo float —— */
.zalo-float-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
}

.zalo-float-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zalo-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 104, 255, 0.25);
  text-decoration: none;
}

.zalo-float-btn-icon {
  flex-shrink: 0;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.35);
}

.zalo-float-btn-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-right: 0.25rem;
}

.zalo-float-btn-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.zalo-float-btn-phone {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0068ff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.zalo-float:not(.zalo-float-stack) {
  display: none;
}

/* legacy single float — ẩn nếu còn class cũ */
.zalo-float:not(.zalo-float-stack) {
  display: none;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 52px;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* —— Accounting page —— */
.page-accounting {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.accounting-main {
  flex: 1;
  padding: var(--section-y) 0;
}

.accounting-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.accounting-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--teal);
}

.lead-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
}

.lead-summary dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.lead-summary dd {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

.bank-box {
  padding: 1.15rem 1.25rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  border: 1px dashed var(--teal);
  margin: 1.25rem 0;
}

.bank-box p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }

  .video-embed {
    max-width: 200px;
  }

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

  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
  }

  .phone-frame {
    max-width: 155px;
  }
}

@media (max-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 400px;
  }

  .phone-frame {
    max-width: 150px;
  }
}

@media (max-width: 1100px) {
  .brand span {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }

  .header-cta .btn-header {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.65rem;
  }

  .brand span {
    max-width: none;
  }

  .nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .header-cta .btn-secondary {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .register-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-pills,
  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-strip-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 0.85rem;
  }

  .video-embed {
    max-width: 100%;
    margin-top: 0.65rem;
    border-radius: 12px;
  }

  .video-body {
    padding: 0.65rem 0.4rem 0.85rem;
  }

  .video-card h3 {
    font-size: 0.88rem;
  }

  .video-card p {
    font-size: 0.78rem;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
    gap: 0.75rem;
  }

  .phone-frame {
    max-width: 130px;
    padding: 6px;
  }

  .shot-lightbox-inner {
    max-width: 100%;
  }

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

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

  .brand span {
    font-size: 0.85rem;
  }

  .header-cta .btn-zalo {
    display: none;
  }

  .zalo-float-btn-label {
    display: none;
  }

  .zalo-float-btn-phone {
    font-size: 0.88rem;
  }

  .zalo-float-btn-icon {
    width: 44px;
    height: 44px;
  }

  .zalo-float-stack {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* —— Multi-product landing —— */
.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-product-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--navy);
}

.hero-product-card strong {
  font-size: 1rem;
}

.hero-product-card span:last-child {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-product-card-badge {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-product-card--blue {
  background: linear-gradient(135deg, #e8f1fc, #fff);
}
.hero-product-card--blue .hero-product-card-badge {
  background: rgba(21, 101, 192, 0.12);
  color: var(--blue);
}

.hero-product-card--teal {
  background: linear-gradient(135deg, #e0f2f1, #fff);
}
.hero-product-card--teal .hero-product-card-badge {
  background: rgba(0, 137, 123, 0.12);
  color: var(--teal);
}

.hero-product-card--orange {
  background: linear-gradient(135deg, #fff3e8, #fff);
}
.hero-product-card--orange .hero-product-card-badge {
  background: rgba(230, 81, 0, 0.12);
  color: var(--orange);
}

.products-section {
  padding: var(--section-y) 0;
  background: #fff;
}

.products-showcase {
  display: grid;
  gap: 1.25rem;
}

.product-showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-showcase-card--blue {
  background: linear-gradient(135deg, #f5f9ff 0%, #fff 55%);
}
.product-showcase-card--teal {
  background: linear-gradient(135deg, #f0faf9 0%, #fff 55%);
}
.product-showcase-card--orange {
  background: linear-gradient(135deg, #fff8f3 0%, #fff 55%);
}

.product-showcase-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.product-showcase-badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  color: var(--navy-mid);
}

.product-showcase-card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--navy);
}

.product-showcase-platform {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-showcase-tagline {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  max-width: 62ch;
}

.product-showcase-perks {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.product-showcase-perks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.product-showcase-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.product-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.product-detail {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--border);
}

.product-detail--blue {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.product-detail--teal {
  background: linear-gradient(180deg, #f3fbf9 0%, #fff 100%);
}
.product-detail--orange {
  background: linear-gradient(180deg, #fff9f5 0%, #fff 100%);
}

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

.product-band-badge {
  display: inline-flex;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(21, 101, 192, 0.1);
  color: var(--blue);
}

.product-detail--teal .product-band-badge {
  background: rgba(0, 137, 123, 0.1);
  color: var(--teal);
}
.product-detail--orange .product-band-badge {
  background: rgba(230, 81, 0, 0.1);
  color: var(--orange);
}

.product-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--navy);
}

.product-band p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-secondary);
}

.product-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product-banner-img {
  max-width: 920px;
  margin: 0 auto;
}

.excel-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px dashed var(--border-strong);
}

.excel-flow-step {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
}

.excel-flow-step--tool {
  background: var(--blue-light);
  color: var(--blue);
}

.excel-flow-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tool-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-perks li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tool-perks strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

/* —— Tool product: features + video ngang —— */
.product-features-section .highlights-header .section-sub {
  margin: 0.75rem auto 0;
  max-width: 640px;
}

.product-features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-intro-video {
  max-width: 920px;
  margin: 0 auto;
}

.product-intro-video .video-embed--landscape {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-intro-video .video-embed--landscape iframe,
.product-intro-video .video-embed--landscape .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .product-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .products-showcase {
    grid-template-columns: 1fr;
  }
}

/* —— Catalog grid (menu sản phẩm) —— */
.catalog-page-header {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(21, 101, 192, 0.08), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.catalog-page-header-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.catalog-page-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
}

.catalog-page-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.catalog-page-sub {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.catalog-page-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.catalog-page-chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.catalog-page-chips li:last-child {
  background: var(--blue-light);
  border-color: rgba(21, 101, 192, 0.18);
  color: var(--blue);
}

.catalog-section {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.catalog-more-wrap {
  margin: 2rem 0 0;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-wrap {
  padding-top: 1rem;
}

.breadcrumb-wrap .breadcrumb {
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Trang danh mục Phần mềm */
body[data-page="catalog"] .catalog-section .container {
  width: min(1280px, 94vw);
}

body[data-page="catalog"] .products-catalog-grid {
  gap: 1.35rem;
  align-items: stretch;
}

body[data-page="catalog"] .product-catalog-card {
  height: 100%;
  border-radius: var(--radius-lg);
  border-top: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body[data-page="catalog"] .product-catalog-card--blue {
  border-top-color: var(--blue);
}

body[data-page="catalog"] .product-catalog-card--teal {
  border-top-color: var(--teal);
}

body[data-page="catalog"] .product-catalog-card--orange {
  border-top-color: var(--orange);
}

body[data-page="catalog"] .product-catalog-card--purple {
  border-top-color: #7b1fa2;
}

body[data-page="catalog"] .product-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

body[data-page="catalog"] .product-catalog-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

body[data-page="catalog"] .product-catalog-card--blue .product-catalog-media {
  background: linear-gradient(160deg, #eef4ff 0%, #fff 100%);
}

body[data-page="catalog"] .product-catalog-card--teal .product-catalog-media {
  background: linear-gradient(160deg, #e8f5f3 0%, #fff 100%);
}

body[data-page="catalog"] .product-catalog-card--orange .product-catalog-media {
  background: linear-gradient(160deg, #fff6ef 0%, #fff 100%);
}

body[data-page="catalog"] .product-catalog-card--purple .product-catalog-media {
  background: linear-gradient(160deg, #f6effc 0%, #fff 100%);
}

body[data-page="catalog"] .product-catalog-media img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

body[data-page="catalog"] .product-catalog-card:hover .product-catalog-media img {
  transform: scale(1.03);
}

body[data-page="catalog"] .product-catalog-media.product-media--contain img {
  padding: 0;
}

body[data-page="catalog"] .product-catalog-app-icon {
  width: 148.5px;
  height: 148.5px;
}

body[data-page="catalog"] .product-catalog-body {
  padding: 1rem 1.1rem 1.15rem;
  gap: 0.35rem;
}

body[data-page="catalog"] .product-catalog-platform {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body[data-page="catalog"] .product-catalog-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
}

body[data-page="catalog"] .product-catalog-summary {
  -webkit-line-clamp: 3;
  margin-bottom: 0.35rem;
}

body[data-page="catalog"] .product-catalog-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.2s ease;
}

body[data-page="catalog"] .product-catalog-card:hover .product-catalog-more {
  gap: 0.45rem;
}

/* Trang chi tiết sản phẩm: ảnh hero 75%, giữ nguyên cỡ chữ */
body[data-page="product"] .product-shop-hero .container {
  width: min(1680px, 96vw);
}

body[data-page="product"] .product-shop-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
}

body[data-page="product"] .product-shop-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-width: min(360px, 100%);
  margin: 0 auto;
}

body[data-page="product"] .product-shop-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

body[data-page="product"] .product-shop-media.product-media--contain img {
  padding: 0;
}

body[data-page="product"] .product-shop-placeholder {
  min-height: 440px;
}

@media (min-width: 1100px) {
  .products-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.products-catalog-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  text-decoration: none;
  color: var(--text);
}

.product-catalog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}

.product-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-catalog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-mid);
}

.product-catalog-card--blue .product-catalog-placeholder {
  background: linear-gradient(135deg, #e8f1fc, #dbeafe);
}
.product-catalog-card--teal .product-catalog-placeholder {
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}
.product-catalog-card--orange .product-catalog-placeholder {
  background: linear-gradient(135deg, #fff3e8, #ffe0b2);
}
.product-catalog-card--purple .product-catalog-placeholder {
  background: linear-gradient(135deg, #f3e8ff, #e1bee7);
}

.product-catalog-placeholder--app {
  background: linear-gradient(145deg, #dce9fb 0%, #eef4ff 50%, #dbeafe 100%);
}

.product-catalog-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  object-fit: contain;
}

.product-catalog-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.product-catalog-badge--hot {
  background: #e65100;
}
.product-catalog-badge--new {
  background: #c62828;
}
.product-catalog-badge--free {
  background: #2e7d32;
}

.product-catalog-badge--tag {
  background: #5e35b1;
}

.product-catalog-platform {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-catalog-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}

.product-catalog-body {
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-catalog-body h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.product-catalog-summary {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-catalog-price {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-product-stack {
    max-width: 420px;
    margin: 0 auto;
  }

  .product-shop-grid {
    grid-template-columns: 1fr;
  }

  .product-trust-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Trang chi tiết sản phẩm (shop hero) —— */
.product-shop-hero {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.product-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.product-shop-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg);
}

.product-shop-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-shop-media.product-media--contain,
.product-catalog-media.product-media--contain {
  background: #fff;
}

.product-shop-media.product-media--contain img,
.product-catalog-media.product-media--contain img {
  object-fit: contain;
  padding: 0.5rem;
}

.product-shop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 220px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

.product-shop-placeholder small {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-shop-placeholder--blue {
  background: linear-gradient(145deg, #e8f1fc, #dbeafe);
}
.product-shop-placeholder--teal {
  background: linear-gradient(145deg, #e0f2f1, #b2dfdb);
}
.product-shop-placeholder--orange {
  background: linear-gradient(145deg, #fff3e8, #ffe0b2);
}
.product-shop-placeholder--purple {
  background: linear-gradient(145deg, #f3e5f5, #e1bee7);
}

.product-shop-info h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

.product-shop-desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.product-shop-pricing {
  margin-bottom: 1.15rem;
  line-height: 1.3;
}

.product-shop-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1b5e20;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid rgba(46, 125, 50, 0.22);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.product-shop-trial-badge::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #2e7d32;
}

.product-price-old {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: #c62828;
}

.product-price-free {
  color: #2e7d32;
}

.product-shop-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-shop-cta-download {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-shop-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-shop-cta-download .btn-shop-download {
  width: 100%;
  padding: 0.78rem 1rem;
}

.product-shop-play-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-shop-play-note a {
  color: var(--accent, #1565c0);
  text-decoration: none;
}

.product-shop-play-note a:hover {
  text-decoration: underline;
}

.site-footer--compact {
  padding: 1.25rem 0;
}

.site-footer--compact .footer-bottom {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
}

.footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  text-align: center;
}

.footer-compact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
}

.footer-compact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.footer-compact-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.footer-compact-links a:hover {
  color: #fff;
}

.btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-shop:hover {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 0.92;
}

.btn-shop-download {
  background: #2e7d32;
  color: #fff;
}

.btn-shop-buy {
  background: #c62828;
  color: #fff;
}

.btn-shop-dispatch {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  border-color: transparent;
}

.btn-shop-dispatch:hover {
  filter: brightness(1.06);
}

.btn-shop-user {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-color: transparent;
}

.btn-shop-user:hover {
  filter: brightness(1.06);
}

.btn-shop-trial {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-shop-icon {
  font-size: 1rem;
  line-height: 1;
}

.product-trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-trust-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.84rem;
}

.product-trust-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.75rem;
}

.product-trust-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
}

.product-trust-list span {
  display: block;
  color: var(--text-muted);
  line-height: 1.4;
}

body[data-product-id="app-quan-ly-su-co"] .product-trust-list {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body[data-product-id="app-quan-ly-su-co"] .highlight-top-icon {
  width: 36px;
  height: 36px;
}

body[data-product-id="app-quan-ly-su-co"] .highlight-top-icon svg {
  width: 20px;
  height: 20px;
}

body[data-product-id="app-quan-ly-su-co"] .highlight-top-item {
  padding: 0.85rem 1rem;
  gap: 0.65rem;
}

body[data-product-id="app-quan-ly-su-co"] .highlight-card-icon {
  width: clamp(44px, 6vw, 52px);
  height: clamp(44px, 6vw, 52px);
  margin-bottom: 0.65rem;
}

body[data-product-id="app-quan-ly-su-co"] .highlight-card-icon svg {
  width: clamp(22px, 3vw, 26px);
  height: clamp(22px, 3vw, 26px);
}

body[data-product-id="app-quan-ly-su-co"] .highlight-card {
  padding: 0.85rem 0.5rem;
}

body[data-product-id="app-quan-ly-su-co"] .feature-icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .product-shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-trust-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
  }
}

/* —— Trang đăng ký riêng (form gọn) —— */
.register-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  background: #eef1f5;
}

.register-page-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.register-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  text-align: center;
  color: var(--navy);
}

.register-page-sub {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.register-locked-product {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.register-page-form .form-group {
  margin-bottom: 0.85rem;
}

.register-page-form .form-group input,
.register-page-form .form-group textarea,
.register-page-form .form-group select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.register-page-form .form-group input::placeholder,
.register-page-form .form-group textarea::placeholder {
  color: #9ca3af;
}

.register-page-form .form-group input:focus,
.register-page-form .form-group textarea:focus,
.register-page-form .form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.register-page-form .form-group select {
  color: #6b7280;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.25rem;
}

.register-page-form .form-group select:valid {
  color: var(--text);
}

.btn-register-submit {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 6px;
  background: #2e7d32;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-register-submit:hover {
  background: #1b5e20;
  color: #fff;
}

.btn-register-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.register-page-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.register-page-foot a {
  color: var(--blue);
  font-weight: 500;
}

.site-header--minimal {
  box-shadow: 0 1px 0 var(--border);
}

.site-footer--minimal {
  padding: 1rem 0;
  background: transparent;
}

.site-footer--minimal .footer-bottom {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.register-page-card.is-submitted {
  text-align: center;
}

/* —— Trang mua / thanh toán QR —— */
.purchase-card.is-payment-shown {
  max-width: 480px;
}

.purchase-price-line {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--navy);
  text-align: center;
}

.purchase-price-line strong {
  color: #c62828;
  font-size: 1.05rem;
}

.btn-purchase-submit {
  background: #c62828;
}

.btn-purchase-submit:hover {
  background: #b71c1c;
}

.purchase-payment-panel .purchase-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  background: #ffebee;
  color: #c62828;
}

.payment-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.payment-qr-img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  border-radius: 8px;
}

.bank-box--payment {
  background: #f1f8e9;
  border-color: #7cb342;
  border-style: solid;
}

.payment-account-number,
.payment-transfer-note {
  font-weight: 700;
  color: #c62828;
  word-break: break-word;
}

.payment-transfer-note {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.payment-note-row {
  margin-top: 0.65rem !important;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

.purchase-summary {
  margin-top: 1.25rem;
}

/* CTA đăng ký trên trang sản phẩm / catalog */
.register-cta-section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.register-cta-section--inline {
  padding-top: 0;
}

.register-cta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.register-cta-card h2 {
  margin: 0.5rem 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--navy);
}

.register-cta-card p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* —— Mobile — tối ưu điện thoại —— */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --section-y: clamp(1.75rem, 5vw, 2.75rem);
    --container: min(1140px, 92vw);
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 12px);
  }

  body {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .header-inner {
    min-height: var(--header-h);
    padding: 0.4rem 0;
    gap: 0.5rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 7.5rem);
  }

  .brand span {
    white-space: normal;
    line-height: 1.25;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .header-cta {
    gap: 0.35rem;
  }

  .header-cta .btn-header {
    padding: 0.48rem 0.7rem;
    font-size: 0.78rem;
    min-height: 40px;
    border-radius: 8px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav.is-open {
    max-height: calc(100vh - var(--header-h) - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-page-header {
    padding-top: 1.25rem;
  }

  .catalog-page-title {
    font-size: 1.35rem;
  }

  .catalog-page-sub {
    font-size: 0.88rem;
  }

  .catalog-page-chips {
    gap: 0.4rem;
    margin-top: 0.9rem;
  }

  .catalog-page-chips li {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .catalog-section {
    padding: 1.35rem 0 2rem;
  }

  body[data-page="catalog"] .products-catalog-grid {
    gap: 0.85rem;
  }

  body[data-page="catalog"] .product-catalog-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  body[data-page="catalog"] .product-catalog-body h3 {
    font-size: 0.88rem;
  }

  body[data-page="catalog"] .product-catalog-platform {
    font-size: 0.65rem;
  }

  body[data-page="catalog"] .product-catalog-more {
    font-size: 0.76rem;
    padding-top: 0.35rem;
  }

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

  body[data-page="catalog"] .product-catalog-media {
    aspect-ratio: 1 / 1;
  }

  .product-catalog-media {
    aspect-ratio: 1 / 1;
  }

  .product-catalog-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .product-catalog-body h3 {
    font-size: 0.86rem;
    line-height: 1.35;
    margin: 0 0 0.35rem;
  }

  .product-catalog-summary {
    font-size: 0.76rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .product-catalog-badge {
    top: 0.45rem;
    left: 0.45rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }

  .product-catalog-app-icon {
    width: 64px;
    height: 64px;
  }

  body[data-page="catalog"] .product-catalog-app-icon {
    width: 48px;
    height: 48px;
  }

  .product-shop-hero {
    padding: 1rem 0 1.75rem;
  }

  .product-shop-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem;
  }

  .product-shop-media {
    max-width: min(560px, 100%);
    margin: 0 auto;
  }

  body[data-page="product"] .product-shop-media {
    min-height: 280px;
  }

  body[data-page="product"] .product-shop-media img {
    min-height: 0;
  }

  .product-shop-info {
    text-align: center;
  }

  .product-shop-info h1 {
    font-size: 1.28rem;
  }

  .product-shop-desc {
    font-size: 0.9rem;
  }

  .product-shop-pricing {
    margin-bottom: 1rem;
  }

  .product-price-current {
    font-size: 1.3rem;
  }

  .product-shop-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .product-shop-cta-row {
    grid-template-columns: 1fr;
  }

  .product-shop-cta .btn-shop {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .product-trust-list {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
  }

  .breadcrumb-wrap {
    padding-top: 0.65rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .highlights-section {
    padding: var(--section-y) 0;
  }

  .highlights-header {
    text-align: center;
  }

  .highlights-title {
    font-size: 1.25rem;
  }

  .highlight-top-item {
    padding: 0.85rem 1rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .video-embed--landscape {
    border-radius: 12px;
  }

  .register-page {
    min-height: auto;
    align-items: flex-start;
    padding: 1.25rem 0.85rem 2rem;
  }

  .register-page-card,
  .purchase-card {
    padding: 1.35rem 1.1rem;
    border-radius: 12px;
  }

  .register-page-form .form-group input,
  .register-page-form .form-group textarea,
  .register-page-form .form-group select,
  .lp-register-form input,
  .lp-register-form textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .btn-register-submit,
  .btn-block {
    min-height: 48px;
    width: 100%;
  }

  .site-footer--compact {
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-compact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-compact-links {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .zalo-float-stack {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .zalo-float-btn {
    padding: 0.35rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .zalo-float-btn-body {
    display: none;
  }

  .zalo-float-btn-icon {
    width: 52px;
    height: 52px;
  }

  .payment-qr-wrap {
    padding: 0.5rem;
  }

  .payment-qr-img {
    width: min(240px, 100%);
  }

  .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (max-width: 400px) {
  .products-catalog-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="catalog"] .products-catalog-grid {
    max-width: min(480px, 92vw);
  }

  .product-catalog-media {
    aspect-ratio: 16 / 10;
  }

  .brand span {
    font-size: 0.76rem;
  }

  .header-cta .btn-header {
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
  }
}
