:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-ink: #78350f;
  --blue: #0284c7;
  --blue-soft: #e0f2fe;
  --green: #059669;
  --green-soft: #d1fae5;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --hero-bg: #0b1120;
  --hero-card: rgba(18, 26, 44, 0.92);
  --hero-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] {
  --bg: #090d16;
  --surface: #0f1624;
  --surface-2: #162033;
  --card: #121a2b;
  --border: #233048;
  --border-strong: #334566;
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-ink: #fde68a;
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.14);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.14);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

.nav-links a:hover {
  color: #fbbf24;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-zalo {
  background: #0068ff;
  color: #ffffff;
}

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

.btn-sm {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 13px;
}

.btn-icon {
  min-height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 15px;
}

/* HERO */
.hero {
  background:
    radial-gradient(circle at 18% 15%, rgba(245, 158, 11, 0.14), transparent 42%),
    radial-gradient(circle at 86% 22%, rgba(2, 132, 199, 0.16), transparent 44%),
    var(--hero-bg);
  color: #f8fafc;
  padding: 56px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #fbbf24;
}

.hero-lead {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
}

.hero-stat-lbl {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

/* HERO RIGHT CARD */
.hero-card {
  background: var(--hero-card);
  border: 1px solid var(--hero-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
}

.hero-stack-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: #e2e8f0;
}

.check-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.34);
  margin-bottom: 14px;
}

.hero-price-old {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.hero-price-now {
  font-size: 24px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
}

.hero-card-note {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
}

/* SECTIONS */
.section {
  padding: 64px 0;
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--muted);
}

/* CARDS & GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.pain-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* COMPARISON BOX */
.compare-wrap {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-box {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--card);
}

.compare-box.good {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.08);
}

.compare-box h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.compare-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* TABS */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
}

.tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* COURSE CARDS */
.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.course-card.hidden {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  width: fit-content;
  margin-bottom: 10px;
}

.pill-free { background: var(--green-soft); color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-gold { background: var(--accent-soft); color: var(--accent-ink); }

.course-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.course-points li::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 800;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.course-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.course-price.free {
  color: var(--green);
}

/* TOC THUMBNAIL INSIDE COURSE CARD */
.course-toc-thumb {
  position: relative;
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d2757;
  cursor: zoom-in;
}

.course-toc-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.course-toc-thumb:hover img {
  transform: scale(1.03);
}

.toc-zoom-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(11, 17, 32, 0.88);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

/* DEDICATED TOC GALLERY SECTION */
.toc-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.toc-showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.toc-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.toc-showcase-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.toc-showcase-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.toc-showcase-img-wrap {
  position: relative;
  background: #0b2452;
  cursor: zoom-in;
}

.toc-showcase-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.toc-add-btn {
  display: none;
  margin-top: 18px;
}

html.edit-mode-active .toc-add-btn {
  display: inline-flex;
}

/* FULLSCREEN LIGHTBOX */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 14px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-top {
  width: 100%;
  max-width: 1160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f8fafc;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lb-nav:hover {
  background: #f59e0b;
  color: #0b1120;
  border-color: #f59e0b;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

.lightbox-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 13.5px;
}

/* LEAD MAGNET BANNER */
.gift-banner {
  background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
  color: #f8fafc;
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.gift-banner h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 12px;
}

.gift-banner p {
  color: #cbd5e1;
  font-size: 14.5px;
  margin-bottom: 20px;
}

.gift-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.gift-preview img {
  width: 100%;
  height: auto;
}

.gift-preview-cap {
  padding: 10px 14px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
}

/* PRICING GRID */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 26px 22px;
}

.pricing-card.featured {
  border: 2px solid var(--accent-bright);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.16);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  left: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-tag {
  margin: 14px 0 16px;
}

.price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-main {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.pricing-card.featured .price-main {
  color: var(--accent);
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.price-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.price-list li span.ok {
  color: var(--green);
  font-weight: 900;
}

/* STEPS TIMELINE */
.step-card {
  position: relative;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-item summary {
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-soft);
}

/* FOOTER */
.footer {
  background: #0b1120;
  color: #cbd5e1;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer h4 {
  color: #ffffff;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #94a3b8;
}

/* FLOATING ZALO BUTTON */
.floating-zalo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0068ff;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 104, 255, 0.38);
}

.floating-zalo:hover {
  background: #0056d6;
}

/* CHECKOUT MODAL (VIETQR) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 20px;
  align-items: start;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.field input, .field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.field input:focus, .field select:focus {
  border-color: var(--accent);
}

.bank-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  font-size: 13.5px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.bank-row:last-child {
  border-bottom: none;
}

.copy-mini {
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.copy-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.qr-panel {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.qr-panel img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 8px auto 10px;
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
}

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

/* ================= INLINE VISUAL EDITOR ================= */
.floating-edit-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.92);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.48);
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-family: inherit;
}

.floating-edit-btn:hover {
  background: #1e293b;
  border-color: #fbbf24;
}

html[data-hide-edit-btn="true"]:not(.edit-mode-active) .floating-edit-btn {
  display: none;
}

#editor-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 70;
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 17, 32, 0.96);
  color: #f8fafc;
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  width: max-content;
  max-width: calc(100vw - 24px);
}

html.edit-mode-active .toast {
  bottom: 82px;
}

html.edit-mode-active #editor-bar {
  display: flex;
}

html.edit-mode-active .floating-edit-btn,
html.edit-mode-active .floating-zalo {
  display: none;
}

.editor-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
}

.editor-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 4px;
}

html.edit-mode-active [data-editable="true"] {
  outline: 1.5px dashed rgba(245, 158, 11, 0.52);
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color 0.15s ease, background 0.15s ease;
}

html.edit-mode-active [data-editable="true"]:hover {
  outline-color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

html.edit-mode-active [data-editable="true"]:focus {
  outline: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}

.editable-img-wrap {
  position: relative;
}

.img-replace-badge {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(11, 17, 32, 0.9);
  color: #fde68a;
  border: 1.5px solid #f59e0b;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

html.edit-mode-active .img-replace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html.edit-mode-active .gift-preview img {
  cursor: pointer;
}

.cfg-price-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.cfg-price-row input {
  min-height: 36px;
  padding: 6px 9px;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid, .gift-banner, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .compare-wrap, .checkout-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding: 36px 0 44px;
  }
  .section {
    padding: 46px 0;
  }
  .gift-banner {
    padding: 22px;
  }
  .nav-actions .btn-zalo {
    display: none;
  }
}

/* === ADS-COMPLIANT LEAD FORM & LEGAL MODALS === */
#btn-add-toc-img {
  display: none;
}
html.edit-mode-active #btn-add-toc-img {
  display: inline-flex;
}
.lead-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  border-color: var(--accent);
}
.lead-success {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.lead-success.show {
  display: block;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.policy-links button {
  background: none;
  border: none;
  padding: 0;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.policy-links button:hover {
  color: #fbbf24;
}
.policy-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}
.policy-body h4 {
  color: var(--ink);
  font-size: 15px;
  margin-top: 4px;
}
.policy-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.disclaimer-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .lead-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}