:root {
  --navy: #0F3E8A;
  --navy-dark: #0A2960;
  --navy-soft: #EAF1FC;
  --brand-blue: #1967E5;
  --coral: #EA6322;
  --coral-dark: #C94E14;
  --coral-soft: #FFF2EB;
  --brand-gold: #FFB830;
  --emerald: #127D55;
  --emerald-soft: #E8F6F0;
  --bg: #FFFBF5;
  --bg-alt: #F6EFE6;
  --surface: #FFFFFF;
  --ink: #162235;
  --muted: #4F5F78;
  --border: #E5DDD2;
  --shadow-sm: 0 4px 14px rgba(15, 62, 138, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 62, 138, 0.11);
  --shadow-lg: 0 24px 56px rgba(15, 62, 138, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #2563EB);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(19, 61, 135, 0.22);
}

.brand-logo-svg {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(19, 61, 135, 0.2));
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo-svg {
  transform: translateY(-1px) scale(1.04);
}
.brand-logo-svg svg {
  width: 44px;
  height: 44px;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-name { font-size: 1.08rem; color: var(--navy); font-weight: 800; letter-spacing: -0.015em; }
.brand-name-edu { color: #EA6322; }
.brand-sub { font-size: 0.74rem; color: var(--muted); font-weight: 700; letter-spacing: 0.01em; }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex-shrink: 0;
}
.footer-tagline-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFD066;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active {
  color: var(--navy);
  font-weight: 800;
  border-bottom-color: var(--coral);
}

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1.5px solid #D3DFEE;
  background: var(--surface);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-btn:hover {
  border-color: var(--navy);
  background: var(--navy-soft);
}
.lang-code {
  opacity: 0.45;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.lang-code.active {
  opacity: 1;
  color: var(--coral-dark);
  font-weight: 800;
}
.lang-sep {
  opacity: 0.35;
  font-weight: 500;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.mobile-nav-strip {
  display: none;
  border-top: 1px solid rgba(231, 222, 211, 0.75);
  background: rgba(255, 255, 255, 0.85);
}
.mobile-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  scrollbar-width: none;
}
.mobile-nav-inner::-webkit-scrollbar { display: none; }
.mobile-nav-inner a.active { color: var(--coral-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #F07B3F);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 98, 56, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-dark), var(--coral));
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(19, 61, 135, 0.2);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid #D3DFEE;
}
.btn-secondary:hover { background: var(--navy-soft); border-color: var(--navy); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Sections & Typography */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-navy { background: var(--navy-soft); color: var(--navy); }
.eyebrow-emerald { background: var(--emerald-soft); color: var(--emerald); }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.section-title { font-size: clamp(1.65rem, 3.2vw, 2.3rem); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 1rem; color: var(--muted); margin: 0; }

/* Storefront Hub Hero */
.hub-hero {
  padding: 58px 0 46px;
  background: radial-gradient(circle at 85% 15%, rgba(232, 98, 56, 0.12), transparent 44%),
              radial-gradient(circle at 12% 80%, rgba(19, 61, 135, 0.09), transparent 45%),
              var(--bg);
  text-align: center;
}

.hub-title {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  font-weight: 800;
  color: var(--navy);
  max-width: 860px;
  margin: 0 auto 14px;
}
.hub-title span { color: var(--coral); }

.hub-lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.cat-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.book-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 2px solid var(--coral);
  box-shadow: var(--shadow-lg);
}

.book-card-media {
  position: relative;
  min-height: 220px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.book-card.featured .book-card-media {
  padding: 20px;
  background: linear-gradient(160deg, #FBF6EC 0%, #EFE5D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.book-card-media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 14px 34px rgba(15, 62, 138, 0.18);
  transition: transform 0.35s ease;
}
.book-card:hover .book-card-media img {
  transform: scale(1.025);
}

.book-placeholder {
  color: #fff;
  text-align: left;
  width: 100%;
  padding: 12px;
}
.book-placeholder-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.book-placeholder h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: #fff;
}

.book-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
}
.book-status.live { background: var(--coral); color: #fff; }

.book-card-body h3 { font-size: 1.3rem; color: var(--navy); }
.book-author { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.book-sub { font-size: 0.93rem; color: var(--muted); margin: 0; }

.book-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
}
.book-bullets li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  margin-right: 8px;
}

.book-price-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.price-now { font-size: 1.65rem; font-weight: 800; color: var(--coral-dark); }
.price-old { font-size: 0.95rem; color: #93A0B4; text-decoration: line-through; }

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Detail Page Top Bar */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}
.back-link:hover { color: var(--coral); }

/* Book Detail Hero (2-column inspired by thinhvuongcungai.com) */
.hero {
  padding: 48px 0 64px;
  background: radial-gradient(circle at 85% 15%, rgba(232, 98, 56, 0.11), transparent 42%),
              radial-gradient(circle at 10% 80%, rgba(19, 61, 135, 0.08), transparent 45%),
              var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: start;
}

.hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero-title span { color: var(--coral); }

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--navy-dark);
  background: var(--surface);
  border-left: 4px solid var(--coral);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
}

.hero-lead { font-size: 1rem; color: var(--muted); margin: 0 0 22px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.h-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

/* Right Offer Card */
.offer-card {
  background: var(--surface);
  border: 2px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  overflow: hidden;
}
.offer-cover-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.offer-cover-row > div {
  flex: 1;
  min-width: 0;
}
.offer-cover-row .price-row {
  flex-wrap: wrap;
}
.offer-cover-row img {
  width: 104px;
  height: auto;
  aspect-ratio: 480 / 643;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
}
.offer-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  margin-right: 8px;
}

/* Grids for Detail Page */
.pain-grid, .preview-grid, .bonus-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.parts-grid, .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pain-card, .part-card, .sample-card, .bonus-card, .quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pain-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--coral-soft); color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 12px;
}
.pain-card h3, .part-card h3, .bonus-card h3 { font-size: 1.04rem; color: var(--navy); margin-bottom: 8px; }
.pain-card p, .part-tagline, .bonus-card p { font-size: 0.89rem; color: var(--muted); margin: 0 0 10px; }
.q-pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--navy-soft); color: var(--navy);
}

/* Age Tabs */
.age-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.age-tab {
  padding: 9px 17px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); font-family: inherit; font-weight: 700; font-size: 0.86rem;
  color: var(--muted); cursor: pointer;
}
.age-tab.active, .age-tab:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.age-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 36px;
}
.age-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.age-chip {
  background: var(--bg); border: 1px solid var(--border); padding: 7px 12px;
  border-radius: 10px; font-size: 0.85rem; font-weight: 600;
}

/* Part Cards */
.part-card { display: flex; flex-direction: column; gap: 10px; }
.part-top { display: flex; justify-content: space-between; align-items: center; }
.part-badge { font-size: 0.74rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: var(--navy); color: #fff; }
.part-range { font-size: 0.8rem; font-weight: 700; color: var(--coral-dark); }
.part-list { margin: 0; padding-left: 18px; font-size: 0.87rem; }
.part-compass {
  margin-top: auto; background: var(--bg); border-left: 3px solid var(--emerald);
  padding: 9px 12px; border-radius: 0 8px 8px 0; font-size: 0.83rem;
}

/* Sample Cards */
.sample-card { display: flex; flex-direction: column; gap: 10px; }
.sample-meta { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 800; color: var(--coral-dark); }
.sample-en { background: var(--navy-soft); color: var(--navy-dark); padding: 11px; border-radius: 10px; font-weight: 600; font-size: 0.89rem; }
.sample-vi { font-size: 0.87rem; color: var(--muted); margin: 0; }
.sample-tip { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.81rem; color: var(--emerald); font-weight: 600; }

/* Author */
.author-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 36px; align-items: center; }
.author-photo-wrap { background: #fff; padding: 14px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1.5px solid var(--border); max-width: 340px; margin-inline: auto; width: 100%; }
.author-photo-wrap img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.author-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.cred-badge { background: var(--navy-soft); color: var(--navy); font-size: 0.79rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

/* Pricing */
.price-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card.featured { border: 2.5px solid var(--coral); box-shadow: var(--shadow-lg); }
.price-badge {
  display: inline-block; align-self: flex-start; font-size: 0.73rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); margin-bottom: 12px;
}
.price-card.featured .price-badge { background: var(--coral); color: #fff; }
.price-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-desc { font-size: 0.87rem; color: var(--muted); margin: 0 0 16px; }
.price-features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 0.87rem; }
.price-features li { display: flex; gap: 9px; align-items: flex-start; }
.price-features li::before {
  content: "✓"; flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  background: var(--emerald-soft); color: var(--emerald); font-weight: 800; font-size: 0.72rem;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.price-card .btn { margin-top: auto; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq-item summary {
  padding: 17px 20px; font-weight: 700; color: var(--navy); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--coral); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 20px 17px; font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #DCE6F7; padding: 46px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-title { color: #fff; font-size: 1.08rem; font-weight: 800; margin-bottom: 10px; }
.footer-text { font-size: 0.85rem; color: #B7C8E6; margin: 0 0 8px; }
.footer-bottom { padding-top: 16px; font-size: 0.79rem; color: #9FB4D9; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Checkout Modal (3-field Guest Checkout + Dynamic VietQR) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 42, 96, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-header h3 { font-size: 1.2rem; color: var(--navy); }
.modal-close {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--coral-soft); color: var(--coral-dark); }

.pkg-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.pkg-opt {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}
.pkg-opt strong { display: block; font-size: 0.79rem; color: var(--navy); }
.pkg-opt span { display: block; font-size: 0.89rem; font-weight: 800; color: var(--coral-dark); }
.pkg-opt.active { border-color: var(--coral); background: var(--coral-soft); }

.form-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.83rem; font-weight: 700; color: var(--navy); }
.form-group input, .form-group select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #D9CFC3;
  border-radius: 10px; font-family: inherit; font-size: 0.92rem;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--navy); }

.vietqr-panel { text-align: center; }
.vietqr-img-wrap {
  background: #fff; border: 1.5px solid #DCE5F2; border-radius: 14px;
  padding: 12px; margin: 0 auto 14px; max-width: 270px;
}
.vietqr-img-wrap img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.bank-info-list { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 14px; }
.bank-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.bank-row-label { font-size: 0.73rem; color: var(--muted); display: block; }
.bank-row-val { font-size: 0.9rem; font-weight: 800; color: var(--navy); word-break: break-word; }
.copy-btn {
  padding: 5px 10px; border-radius: 8px; border: 1px solid #CFD9E8;
  background: #fff; color: var(--navy); font-family: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: var(--navy); color: #fff; }

/* Floating Circular Zalo & Messenger Popup Buttons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2.5px solid #fff;
}
.fab-btn:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); }

.fab-zalo {
  background: linear-gradient(135deg, #0068FF, #0091FF);
  animation: pulseRing 2.6s infinite;
}
.fab-messenger {
  background: linear-gradient(135deg, #0084FF, #A033FF, #FF5280);
}

.fab-tooltip {
  position: absolute;
  right: 66px;
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.fab-btn:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.45), 0 10px 24px rgba(0, 0, 0, 0.2); }
  70% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0), 0 10px 24px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0), 0 10px 24px rgba(0, 0, 0, 0.2); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .book-card.featured,
  .catalog-grid,
  .hero-grid,
  .author-grid,
  .pricing-grid,
  .parts-grid,
  .pain-grid,
  .preview-grid,
  .bonus-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .pkg-selector { grid-template-columns: 1fr; }
  .floating-contact { right: 14px; bottom: 18px; gap: 10px; }
  .fab-btn { width: 50px; height: 50px; }
  .fab-tooltip { display: none; }
}


/* ==================== SALES TOP 1% SPECIAL EDITION STYLES ==================== */
.hero-quote-st {
  margin: 14px 0 16px;
  padding: 14px 18px;
  border-left: 4px solid #F07D0A;
  background: linear-gradient(90deg, rgba(240, 125, 10, 0.08), rgba(23, 66, 138, 0.03));
  border-radius: 0 12px 12px 0;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: #17428A;
}

.st-book-frame {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(224, 165, 38, 0.5);
  box-shadow: 0 24px 55px rgba(23, 66, 138, 0.22);
}
.hero-cover-wrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}
.book-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.cover-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.metric-pill {
  background: #FFFFFF;
  border: 1px solid rgba(23, 66, 138, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.metric-pill strong {
  display: block;
  color: #17428A;
  font-size: 1rem;
  font-weight: 800;
}
.metric-pill span {
  font-size: 0.76rem;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.st-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(23, 66, 138, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.st-stat-card.accent {
  border-color: #F07D0A;
  background: linear-gradient(180deg, #FFFDF7, #FFF6E8);
}

.st-stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: #17428A;
  line-height: 1.05;
  margin-bottom: 10px;
}

.st-stat-card.accent .st-stat-num {
  color: #F07D0A;
}

.st-stat-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0F172A;
}

.st-stat-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.st-theater {
  max-width: 880px;
  margin: 0 auto;
  background: #0F1B33;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 27, 51, 0.25);
}

.st-trailer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.st-tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.st-tab:hover {
  background: rgba(255, 255, 255, 0.16);
}

.st-tab.active {
  background: #F07D0A;
  border-color: #F07D0A;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(240, 125, 10, 0.35);
}

.st-video-shell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.st-video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.st-video-caption {
  margin: 12px 0 2px;
  text-align: center;
  font-size: 0.88rem;
  color: #CBD5E1;
}

.st-layers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.st-layer-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid rgba(23, 66, 138, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
}

.st-layer-card.featured-layer {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #17428A, #1E54A8);
  color: #FFFFFF;
  border-color: #17428A;
}

.st-layer-no {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(23, 66, 138, 0.1);
  color: #17428A;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}

.st-layer-card.featured-layer .st-layer-no {
  background: #F07D0A;
  color: #FFFFFF;
}

.st-layer-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.st-layer-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.st-layer-card.featured-layer p {
  color: #E2E8F0;
}

.st-preview-box {
  background: #FFFFFF;
  border: 1px solid rgba(23, 66, 138, 0.14);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.st-preview-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.st-pv-item {
  background: #F8FAFC;
  border-left: 3px solid #17428A;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: #334155;
}

.st-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.st-pdf-viewer {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #1E293B;
}

.st-pdf-viewer iframe {
  width: 100%;
  height: 680px;
  border: 0;
  display: block;
}

.st-sheets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.st-sheet-chip {
  background: #FFFFFF;
  border: 1px solid rgba(23, 66, 138, 0.18);
  color: #17428A;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.pricing-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .book-card.featured {
    grid-template-columns: 1fr;
  }
  .book-card.featured .book-card-media {
    min-height: 0;
    padding: 22px 20px 14px;
  }
  .book-card.featured .book-card-media img {
    max-width: 240px;
    margin: 0 auto;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-stat-grid,
  .st-layers-grid,
  .st-preview-highlights,
  .pricing-grid-2 {
    grid-template-columns: 1fr;
  }
  .st-pdf-viewer iframe {
    height: 460px;
  }
}


/* ==================== MULTI-BOOK CART, LANGUAGE TOGGLE & BACK-TO-TOP ==================== */
.price-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-dialog-wide {
  width: min(640px, 100%);
}

.cart-section-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.cart-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-book-item {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.cart-book-item.selected {
  border-color: var(--coral);
  background: #FFFCF9;
  box-shadow: 0 6px 18px rgba(232, 98, 56, 0.1);
}

.cart-book-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cart-book-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-book-info {
  flex: 1;
  min-width: 0;
}
.cart-book-title {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.28;
}
.cart-book-author {
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-toggle-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.cart-toggle-btn:hover {
  background: var(--navy-soft);
}
.cart-toggle-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.cart-pkg-pills {
  display: grid;
  gap: 8px;
}

.cart-summary-bar {
  background: var(--navy-soft);
  border: 1px solid #CFDDF2;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 6px;
}
.cart-empty-msg {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--coral-dark);
  text-align: center;
}
.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-summary-row strong {
  color: var(--navy);
  font-size: 0.9rem;
}
.cart-saved-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 800;
}
.cart-total-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cart-old-total {
  font-size: 0.84rem;
  color: #8896AB;
  text-decoration: line-through;
}
.cart-now-total {
  font-size: 1.25rem !important;
  color: var(--coral-dark) !important;
  font-weight: 800;
}

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

.fab-top {
  background: var(--navy);
  cursor: pointer;
}
.fab-top:hover {
  background: var(--coral);
}

.footer-top-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}
.footer-top-link:hover {
  background: var(--coral);
  border-color: var(--coral);
}

@media (max-width: 960px) {
  .mobile-nav-strip {
    display: block;
  }
}

@media (max-width: 640px) {
  .form-row-2,
  .cart-pkg-pills {
    grid-template-columns: 1fr !important;
  }
  .cart-book-top {
    flex-wrap: wrap;
  }
  .header-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.79rem;
  }
}


/* ==================== KHO TRI THỨC & TIN BỔ ÍCH (EDITORIAL MAGAZINE) ==================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .mobile-nav-strip { display: block; }
}

.ed-hero {
  padding: 46px 0 34px;
}
.ed-hero-news {
  background: radial-gradient(circle at 82% 18%, rgba(18, 125, 85, 0.12), transparent 45%),
              radial-gradient(circle at 12% 80%, rgba(19, 61, 135, 0.08), transparent 45%),
              var(--bg);
}

.ed-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.ed-search-wrap {
  width: min(460px, 100%);
}
.ed-search-input {
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ed-search-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(19, 61, 135, 0.12);
}

/* Featured Spotlight Card */
.ed-featured-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ed-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ed-visual-cover {
  position: relative;
  min-height: 250px;
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.ed-visual-cover::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.ed-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}
.ed-visual-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.ed-visual-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}
.ed-visual-quote {
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.38;
  font-weight: 600;
  color: #fff;
  margin-top: 18px;
}
.ed-visual-brand {
  z-index: 1;
  font-size: 0.76rem;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 14px;
}

.ed-featured-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.ed-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.ed-cat-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 800;
}
.ed-cat-badge.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.ed-featured-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--navy);
  line-height: 1.3;
}
.ed-featured-body h2 a:hover,
.ed-card-body h3 a:hover {
  color: var(--coral-dark);
}
.ed-excerpt {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.62;
}
.ed-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ed-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--navy);
}
.ed-avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-read-link {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--coral-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ed-read-link:hover {
  color: var(--navy);
}

/* Editorial Cards Grid */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ed-card-banner {
  height: 128px;
  padding: 18px 20px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ed-card-banner::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.ed-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ed-card-body h3 {
  font-size: 1.06rem;
  color: var(--navy);
  line-height: 1.36;
}
.ed-card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.58;
}

/* Home Editorial Split Showcase */
.ed-home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ed-home-col {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-home-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ed-home-col-head h3 {
  font-size: 1.18rem;
  color: var(--navy);
}
.ed-mini-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ed-mini-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid rgba(231, 222, 211, 0.7);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.ed-mini-item:hover {
  border-color: var(--coral);
  transform: translateX(3px);
}
.ed-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.ed-mini-item h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.ed-mini-meta {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

/* Article Reader View */
.article-reader {
  padding: 40px 0 60px;
}
.article-container {
  max-width: 800px;
}
.article-header-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.article-h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.26;
  margin: 12px 0 14px;
}
.article-lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.65;
}
.article-takeaways {
  background: var(--navy-soft);
  border-left: 4px solid var(--navy);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.article-takeaways h3 {
  font-size: 0.96rem;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-takeaways ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.92rem;
  color: var(--ink);
}
.article-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-prose p {
  margin: 0 0 18px;
}
.article-prose h3 {
  font-size: 1.28rem;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article-prose ul,
.article-prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--coral);
  background: var(--coral-soft);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy-dark);
}
.ed-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 62, 138, 0.04);
}
.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  min-width: 520px;
  background: #fff;
}
.ed-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 0.84rem;
}
.ed-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.ed-table tr:nth-child(even) td {
  background: #FCF9F4;
}
.ed-script-box {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #F4F8FF;
  border: 1px solid #CFE0FA;
  border-left: 4px solid var(--brand-blue);
  font-size: 0.95rem;
}
.ed-script-box strong {
  color: var(--navy);
}
.article-source-box {
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px dashed #CBD8EE;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.article-source-box strong {
  color: var(--navy);
}
.article-toc {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.article-toc-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 8px;
}
.article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
}
.article-toc a {
  color: var(--brand-blue);
  font-weight: 600;
}
.article-toc a:hover {
  color: var(--coral-dark);
  text-decoration: underline;
}
.article-next-bar {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1.5px solid #D3E1F8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.article-next-bar small {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
  margin-bottom: 3px;
}
.article-next-bar strong {
  font-size: 1rem;
  color: var(--navy);
}
.article-cta-box {
  margin-top: 28px;
  background: linear-gradient(135deg, #133D87, #1E54A8);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.article-cta-box h3 {
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.article-cta-box p {
  margin: 0;
  font-size: 0.9rem;
  color: #DCE6F7;
  max-width: 480px;
}

@media (max-width: 960px) {
  .ed-featured-card,
  .ed-grid,
  .ed-home-split {
    grid-template-columns: 1fr;
  }
  .article-header-card,
  .article-prose {
    padding: 22px 18px;
  }
}


/* ==================== LAPTOP + SMARTPHONE PRO UX, CRO & LOGO SYNC ==================== */
html, body {
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 2px;
}

/* Reading Progress Bar (Top of Viewport) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  z-index: 95;
  background: linear-gradient(90deg, var(--navy), var(--coral), #FFB830);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Marketing Trust Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 auto 24px;
  max-width: 960px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 3px 10px rgba(19, 61, 135, 0.05);
}

/* Unified Quang Châu Edu Brand Identity Lockup (Sapphire Blue + Sunrise Orange) */
.qce-brand {
  display: inline;
  font-weight: 800;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.qce-b-main {
  color: #0F3E8A;
}
.qce-b-edu {
  color: #EA6322;
}
.site-footer .qce-b-main,
.ed-visual-cover .qce-b-main,
.book-placeholder .qce-b-main,
.article-cta-box .qce-b-main,
.qce-brand-inv .qce-b-main {
  color: #FFFFFF;
}
.site-footer .qce-b-edu,
.ed-visual-cover .qce-b-edu,
.book-placeholder .qce-b-edu,
.article-cta-box .qce-b-edu,
.qce-brand-inv .qce-b-edu {
  color: #FF8B28;
}
.eyebrow-brand {
  background: #FFFFFF;
  border: 1.5px solid #D5E3F7;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 62, 138, 0.06);
  padding: 6px 15px;
}
.eyebrow-brand img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
}
.ed-avatar-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(15, 62, 138, 0.16);
}

/* Synchronized Official Logo Badges in Modals, VietQR & Placeholders */
.modal-brand-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(19, 61, 135, 0.16);
}
.vietqr-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.77rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.vietqr-trust-chip img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}
.ed-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ed-brand-inline img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.placeholder-brand-stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.92;
}
.placeholder-brand-stamp img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  object-fit: contain !important;
}

.cart-bundle-nudge {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #B9CEEE;
  font-size: 0.79rem;
  color: var(--navy);
  font-weight: 600;
}

/* Laptop Viewport Precision Tuning (13" - 14" Windows/Mac Laptops at 125%-150% DPI) */
@media (min-width: 1061px) and (max-width: 1280px) {
  .header-inner {
    gap: 10px;
  }
  .nav-links {
    gap: 11px;
    font-size: 0.815rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-sub {
    font-size: 0.69rem;
  }
  .header-actions .btn-sm {
    padding: 8px 13px;
    font-size: 0.81rem;
  }
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .mobile-nav-strip { display: block; }
}

/* Mobile Sticky Quick-Buy Bar (Hidden on Desktop, Shown on Mobile Book Pages) */
.mobile-sticky-bar {
  display: none;
}

/* Comprehensive Smartphone Optimization (iOS & Android 360px - 768px) */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on form focus */
  .form-group input,
  .form-group select,
  .ed-search-input {
    font-size: 16px !important;
  }

  .header-inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-logo-svg,
  .brand-logo-svg svg {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 0.96rem;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-btn {
    padding: 6px 8px;
    font-size: 0.73rem;
    gap: 3px;
  }
  .lang-btn svg {
    width: 14px;
    height: 14px;
  }
  #headerCartBtn {
    padding: 8px 11px;
    font-size: 0.77rem;
    gap: 5px;
  }

  .mobile-nav-inner {
    gap: 8px;
    padding: 7px 0;
  }
  .mobile-nav-inner a {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.79rem;
    transition: all 0.16s ease;
  }
  .mobile-nav-inner a.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }

  .hub-hero {
    padding: 34px 0 26px;
  }
  .hub-lead {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .trust-strip {
    gap: 7px;
    margin-bottom: 18px;
  }
  .trust-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .hero {
    padding: 28px 0 44px;
  }
  .hero-grid {
    gap: 24px;
  }
  .offer-card {
    padding: 18px 16px;
  }
  .offer-cover-row {
    gap: 12px;
    align-items: flex-start;
  }
  .offer-cover-row img {
    width: 88px;
    height: auto;
  }
  .book-actions .btn,
  .hero-cta .btn {
    width: 100%;
  }

  /* Native App-Style Bottom Sheet Modal on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-dialog,
  .modal-dialog-wide {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile Sticky Conversion Bar */
  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 78;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -8px 26px rgba(15, 34, 68, 0.12);
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .mobile-sticky-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .mobile-sticky-thumb {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
  }
  .mobile-sticky-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.22;
  }
  .mobile-sticky-text strong {
    font-size: 0.83rem;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-sticky-text span {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--coral-dark);
  }
  .mobile-sticky-actions .btn-sm {
    padding: 10px 16px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  body.has-mobile-sticky {
    padding-bottom: 74px;
  }
  body.has-mobile-sticky .floating-contact {
    bottom: 84px;
  }
}

@media (max-width: 390px) {
  .brand-sub {
    display: none;
  }
}
