/* ============================================================
   TacPhamSo.com — style.css v2
   Mobile-first · Bottom-nav + i18n flag + new sections
   ============================================================ */

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

:root {
  --c-primary: #1d4ed8;
  --c-primary-dark: #1e40af;
  --c-accent: #f59e0b;
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-muted: #6b7280;
  --c-bg: #ffffff;
  --c-bg-gray: #f9fafb;
  --c-bg-warning: #fffbeb;
  --c-bg-dark: #0f172a;
  --c-border: #e5e7eb;
  --c-success: #16a34a;
  --c-error: #dc2626;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.12);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Be Vietnam Pro', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  /* Padding bottom để chừa chỗ cho bottom-nav mobile */
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 720px) {
  body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }
.container.wide { max-width: 1280px; }

.muted { color: var(--c-text-muted); }
.center { text-align: center; }

/* ════════════════════════════════════════════════════════════
   TOPBAR — compact (48px height)
   ════════════════════════════════════════════════════════════ */
.topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--c-text); font-weight: 700; flex-shrink: 0; min-width: 0; }
.brand:hover { text-decoration: none; color: var(--c-text); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  border-radius: 7px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 6px rgba(29, 78, 216, .25);
  flex-shrink: 0;
}
.brand-name { font-size: 16px; line-height: 1.2; letter-spacing: -0.2px; }
@media (max-width: 480px) {
  .brand-name { font-size: 15px; }
}

.topnav {
  display: none;
  gap: 4px;
  margin-left: 20px;
  flex: 1;
}
.topnav a {
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all .15s;
}
.topnav a:hover { background: var(--c-bg-gray); color: var(--c-text); }
.topnav a.cur { color: var(--c-primary); }
@media (min-width: 900px) {
  .topnav { display: flex; }
}

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.cta-topbar { display: none; }
.cta-topbar { padding: 7px 14px; font-size: 13px; }
@media (min-width: 900px) { .cta-topbar { display: inline-flex; } }

/* Mobile: lang button rút gọn chỉ còn cờ, không text VI/EN */
@media (max-width: 639px) {
  .lang-btn .lang-label,
  .lang-btn svg { display: none; }
  .lang-btn { padding: 7px 9px; }
  .brand-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── Language switcher (native <details>) ── */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: var(--c-bg-gray);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { display: none; }
.lang-switch summary:hover { background: #f1f5f9; }
.lang-btn { /* alias for summary */ }
.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px;
  z-index: 200;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--c-text);
  border-radius: 6px;
}
.lang-item:hover { background: var(--c-bg-gray); text-decoration: none; }
.lang-item.cur { background: rgba(29, 78, 216, .08); color: var(--c-primary); font-weight: 600; }

/* ── Flags (CSS-only) ── */
.flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.flag-vi {
  background: #da251d;
  position: relative;
}
.flag-vi::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff00;
  font-size: 11px;
  line-height: 1;
}
.flag-en {
  background: #00247d;
  position: relative;
  overflow: hidden;
}
.flag-en::before, .flag-en::after {
  content: '';
  position: absolute;
  background: #fff;
}
.flag-en::before {
  top: 50%; left: 0; right: 0;
  height: 4px;
  transform: translateY(-50%);
}
.flag-en::after {
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  transform: translateX(-50%);
}

/* ── CSS-only HAMBURGER MENU (checkbox hack) ── */
/* Hidden checkbox điều khiển menu */
.m-toggle {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: var(--c-bg-gray);
  border: 1px solid var(--c-border);
  border-radius: 7px;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:active { background: #e2e8f0; }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: all .3s;
  width: 100%;
}

/* Khi checked: animate hamburger thành X */
.m-toggle:checked ~ .topbar .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.m-toggle:checked ~ .topbar .hamburger span:nth-child(2) {
  opacity: 0;
}
.m-toggle:checked ~ .topbar .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 900px) { .hamburger { display: none; } }

/* ── Mobile drawer (redesign) ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 340px;
  background: #fff;
  z-index: 105;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -16px 0 40px rgba(15, 23, 42, .15);
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.m-toggle:checked ~ .mobile-drawer {
  transform: translateX(0);
}

/* Drawer header gradient navy */
.drawer-head {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 60%, #0f172a 130%);
  color: #fff;
  padding: 24px 22px 22px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-head .brand-mark {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .15);
  font-size: 14px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .1);
}
.drawer-head-text { flex: 1; min-width: 0; }
.drawer-head-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-head-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .65);
  margin-top: 3px;
  line-height: 1.3;
}
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.drawer-close:hover, .drawer-close:active {
  background: rgba(255, 255, 255, .3);
}

/* Drawer section title */
.drawer-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  font-weight: 600;
  padding: 18px 22px 8px;
}

/* Drawer nav links */
.drawer-nav {
  display: flex;
  flex-direction: column;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.drawer-nav a:hover { background: #f8fafc; text-decoration: none; }
.drawer-nav a:active { background: #f1f5f9; }
.dnav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(29, 78, 216, .08);
  border-radius: 7px;
  font-size: 14px;
  flex-shrink: 0;
}

/* CTA box trong drawer */
.drawer-cta {
  margin: 16px 18px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .25);
  position: relative;
  overflow: hidden;
}
.drawer-cta::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(245, 158, 11, .2) 0%, transparent 70%);
}
.drawer-cta strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
  position: relative;
}
.drawer-cta small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 13px;
  line-height: 1.4;
  position: relative;
}
.drawer-cta-btn {
  display: block;
  background: #fff;
  color: var(--c-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  transition: transform .15s;
}
.drawer-cta-btn:hover, .drawer-cta-btn:active {
  background: #fff;
  color: var(--c-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Liên hệ cards */
.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
}
.drawer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-contact a:hover { background: #f8fafc; text-decoration: none; }
.drawer-contact a div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.drawer-contact a strong { font-size: 14px; font-weight: 600; color: var(--c-text); }
.drawer-contact a small { font-size: 11.5px; color: var(--c-text-muted); margin-top: 1px; }

/* Drawer footer */
.drawer-foot {
  padding: 20px 22px 30px;
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 12px;
  color: var(--c-text-muted);
}
.drawer-foot a {
  color: var(--c-accent);
  font-weight: 600;
  margin-left: 4px;
}

/* Backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 104;
  cursor: pointer;
}
.m-toggle:checked ~ .menu-backdrop {
  opacity: 1;
  pointer-events: all;
}

/* Body lock scroll khi menu open */
.m-toggle:checked ~ * { /* nothing */ }
/* Note: cannot easily lock body scroll via CSS-only. Body scroll vẫn được, nhưng drawer fixed nên không có vấn đề. */

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .25);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, .35);
}
.btn-ghost { background: #fff; color: var(--c-primary); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-bg-gray); color: var(--c-primary); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #d97706; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-xl { padding: 17px 32px; font-size: 17px; font-weight: 700; }
.btn-block { display: flex; width: 100%; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  padding: 32px 0 44px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(29, 78, 216, .06) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-bg-gray) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, .05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(29, 78, 216, .08);
  color: var(--c-primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--c-primary); }
.hero-sub {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}
.hero-stats > div {
  background: #fff;
  padding: 14px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.hero-stats strong { display: block; font-size: 16px; color: var(--c-primary); font-weight: 700; }
.hero-stats span { display: block; font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

@media (min-width: 720px) {
  .hero { padding: 56px 0 70px; }
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 18px; }
  .hero-stats strong { font-size: 20px; }
  .hero-stats > div { padding: 18px; }
  .hero-stats span { font-size: 13px; }
}

/* Trust strip dưới hero (mobile) */
.trust-strip {
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
}
.trust-strip-inner {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-muted);
}
.trust-strip-inner span { display: inline-flex; align-items: center; gap: 6px; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section.bg-gray { background: var(--c-bg-gray); }
.section.bg-warning { background: var(--c-bg-warning); }
.section.bg-dark { background: var(--c-bg-dark); color: #cbd5e1; }
.section.bg-dark .section-title { color: #fff; }
.section.bg-dark .section-sub { color: #94a3b8; }

.section-pill {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(29, 78, 216, .08);
  color: var(--c-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  color: var(--c-text);
}
.section-sub {
  text-align: center;
  color: var(--c-text-2);
  margin: 0 auto 40px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .section-pill,
.section-header .section-title,
.section-header .section-sub { margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .section-title { font-size: 36px; } }

/* ════════════════════════════════════════════════════════════
   STEPS — How it works
   ════════════════════════════════════════════════════════════ */
.steps {
  display: grid;
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, .3); }
.step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .25);
}
.step h3 { margin: 0 0 10px; font-size: 18px; }
.step p { margin: 0 0 10px; color: var(--c-text-2); font-size: 14px; line-height: 1.6; }
.step ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--c-text-muted); line-height: 1.7; }
.step ul li { margin-bottom: 2px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   WHY US — feature cards
   ════════════════════════════════════════════════════════════ */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(29, 78, 216, .08);
  color: var(--c-primary);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.feature-icon.gold { background: rgba(245, 158, 11, .12); color: var(--c-accent); }
.feature-icon.green { background: rgba(22, 163, 74, .1); color: var(--c-success); }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--c-text-2); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   USE CASES — ai cần
   ════════════════════════════════════════════════════════════ */
.use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.use-case {
  background: #fff;
  padding: 18px 14px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--c-border);
  font-size: 14px;
  transition: all .15s;
}
.use-case:hover { transform: translateY(-2px); border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.use-case-icon { font-size: 28px; margin-bottom: 6px; }
.use-case strong { display: block; margin-bottom: 2px; }
.use-case small { color: var(--c-text-muted); font-size: 12px; }
@media (min-width: 720px) { .use-cases { grid-template-columns: repeat(4, 1fr); } }

/* ════════════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════════════ */
.prices {
  display: grid;
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--c-primary);
  box-shadow: 0 10px 40px rgba(29, 78, 216, .15);
  transform: scale(1.02);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.price-tag { color: var(--c-text-muted); font-size: 14px; font-weight: 500; }
.price-amount { font-size: 32px; font-weight: 800; color: var(--c-text); margin: 6px 0 8px; }
.price-amount .price-unit { font-size: 14px; color: var(--c-text-muted); font-weight: 500; }
.price-desc { color: var(--c-text-2); font-size: 14px; margin-bottom: 18px; min-height: 38px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-features li { padding: 7px 0; color: var(--c-text); font-size: 14px; padding-left: 26px; position: relative; line-height: 1.5; }
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 7px;
  color: var(--c-success);
  font-weight: 700;
}
.price-features li.disabled { color: var(--c-text-muted); }
.price-features li.disabled::before { content: '×'; color: var(--c-text-muted); }
@media (min-width: 980px) { .prices { grid-template-columns: repeat(3, 1fr); } }

/* ════════════════════════════════════════════════════════════
   FAQ — accordion details
   ════════════════════════════════════════════════════════════ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--c-primary);
  flex-shrink: 0;
  transition: transform .25s;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; transform: rotate(0deg); }
.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.75;
}
.faq-item .faq-body p:first-child { margin-top: 0; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .06); }

/* ════════════════════════════════════════════════════════════
   COMPARE — TacPhamSo vs others
   ════════════════════════════════════════════════════════════ */
.compare-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th, .compare-table td {
  padding: 14px 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
}
.compare-table th {
  background: var(--c-bg-gray);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--c-text-2);
  letter-spacing: 0.3px;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-yes { color: var(--c-success); font-weight: 700; }
.compare-no { color: var(--c-error); }
.compare-mid { color: var(--c-accent); }
.compare-wrap { overflow-x: auto; }

/* ════════════════════════════════════════════════════════════
   LEGAL NOTICE
   ════════════════════════════════════════════════════════════ */
.legal-notice {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--c-accent);
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.legal-notice p { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--c-text-2); }
.legal-notice p:last-child { margin: 0; }
.legal-notice strong { color: var(--c-text); }

/* ════════════════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  padding: 50px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, .25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .1) 0%, transparent 50%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: 28px; margin: 0 0 10px; font-weight: 800; }
.cta-banner p { font-size: 16px; opacity: .9; margin: 0 0 24px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--c-primary); }
.cta-banner .btn-primary:hover { background: #fff; transform: translateY(-2px); }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer { background: var(--c-bg-dark); color: #cbd5e1; padding: 50px 0 0; margin-top: 0; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 30px; }
.footer-col-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-col-brand .muted { color: #94a3b8; font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-col strong { display: block; color: #fff; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.footer-col a { display: block; color: #94a3b8; padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: #020617; padding: 18px 0; font-size: 12px; color: #64748b; text-align: center; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}

/* ════════════════════════════════════════════════════════════
   BOTTOM-NAV — siêu compact (~48px)
   ════════════════════════════════════════════════════════════ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--c-border);
  z-index: 95;
  padding: 2px 0 calc(2px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) { .bottom-nav { display: none; } }

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 2px;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 500;
  transition: color .15s;
  min-height: 44px;
  justify-content: center;
  letter-spacing: -0.1px;
}
.bn-item:hover, .bn-item:active { color: var(--c-primary); text-decoration: none; }
.bn-item.cur { color: var(--c-primary); }
.bn-item svg { width: 19px; height: 19px; transition: transform .15s; }
.bn-item:active svg { transform: scale(0.9); }

/* Center bubble */
.bn-center { position: relative; }
.bn-center-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  border-radius: 50%;
  margin-top: -8px;
  margin-bottom: 0;
  box-shadow: 0 3px 10px rgba(29, 78, 216, .4);
}
.bn-center-bubble svg { width: 18px; height: 18px; }
.bn-center span:not(.bn-center-bubble) { font-weight: 600; }
.bn-center.cur .bn-center-bubble { background: linear-gradient(135deg, var(--c-accent), #d97706); }

/* ════════════════════════════════════════════════════════════
   FORMS (re-use)
   ════════════════════════════════════════════════════════════ */
.form-page { padding: 30px 16px 60px; }
.page-title { font-size: 26px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.3px; }
.page-sub { color: var(--c-text-2); margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.link-back { color: var(--c-text-muted); font-size: 14px; }

.card-form { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-form fieldset { border: 0; padding: 0; margin: 0 0 26px; border-bottom: 1px solid var(--c-border); padding-bottom: 22px; }
.card-form fieldset:last-of-type { border-bottom: 0; margin-bottom: 16px; padding-bottom: 0; }
.card-form legend { font-weight: 700; font-size: 15px; padding: 0; margin: 0 0 12px; color: var(--c-text); }

label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; color: var(--c-text); }
.req { color: var(--c-error); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--c-border); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--c-text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-primary); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 80px; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 580px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.radio-group { display: grid; gap: 8px; }
.radio { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; font-weight: 400; margin: 6px 0; }
.radio input { margin-top: 3px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; font-weight: 400; line-height: 1.55; }
.checkbox input { margin-top: 3px; flex-shrink: 0; }

.upload-zone { position: relative; border: 2px dashed var(--c-border); border-radius: var(--radius); padding: 30px 20px; text-align: center; background: var(--c-bg-gray); cursor: pointer; transition: all .2s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--c-primary); background: rgba(29, 78, 216, .04); }
.upload-zone.has-file { border-color: var(--c-success); background: rgba(22, 163, 74, .04); border-style: solid; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-info strong { display: block; margin-bottom: 4px; color: var(--c-text); }
.upload-info small { color: var(--c-text-muted); font-size: 13px; }
.file-name { margin-top: 12px; font-size: 14px; }

.pkg-banner { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pkg-banner strong { font-size: 15px; }
.pkg-banner a { margin-left: auto; background: rgba(255, 255, 255, .15); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.pkg-banner a.active { background: #fff; color: var(--c-primary); }
.pkg-banner a:hover { text-decoration: none; background: rgba(255, 255, 255, .25); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: var(--radius); margin: 14px 0; font-size: 14px; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.err { background: #fee2e2; color: #991b1b; }

.big-code { background: var(--c-bg-gray); padding: 14px; border-radius: var(--radius); font-family: 'SF Mono', Menlo, Monaco, monospace; font-size: 22px; font-weight: 700; text-align: center; letter-spacing: 2px; color: var(--c-primary); margin: 10px 0; }

.info-card { background: var(--c-bg-gray); padding: 18px; border-radius: var(--radius); margin: 16px 0; }
.info-card h3 { margin: 0 0 8px; font-size: 16px; }
.info-card p { margin: 0 0 8px; font-size: 14px; }
.info-card p:last-child { margin: 0; }

.upsell { background: #fff7ed; border: 1px solid #fed7aa; padding: 18px; border-radius: var(--radius); margin-top: 24px; }
.upsell h3 { margin: 0 0 8px; color: #9a3412; }
.upsell ul { margin: 10px 0 14px 18px; font-size: 14px; color: #7c2d12; }
.upsell ul li { padding: 2px 0; }

/* Hide on mobile/desktop helpers */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }
