/* ========================================================
   200 BIỂN BÁO CUỘC ĐỜI — LANDING PAGE THEME 2026
   Phong cách chuẩn Editorial Luxury Book, lấy cảm hứng từ taminhtuan.vn
   ======================================================== */

:root {
  --paper: #fbf7ef;
  --paper2: #f4ecdc;
  --white: #fffdf8;
  --ink: #1f1a17;
  --ink2: #4a4039;
  --muted: #776a5f;
  --line: rgba(80, 60, 30, 0.14);
  
  --gold: #c9a24b;
  --gold2: #e8cf8a;
  --gold3: #9a7426;
  
  --deep: #14213d;
  --deep2: #1d2d52;
  --deep3: #0c1426;
  
  --acc: #c9a24b;
  --acc2: #f1d48a;
  --acc-rgb: 201, 162, 75;
  --on-deep: #f8f1e2;
  --glow: 255, 226, 150;
  
  --danger: #b03a2e;
  --success: #1e7e34;
  
  --serif: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  
  --r: 16px;
  --wrap: 1180px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100% - 40px);
  margin-inline: auto;
}

/* ── Typography & Headings ── */
h1, h2, h3, h4, .font-serif {
  font-family: var(--serif);
  line-height: 1.25;
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--gold3);
}

.kicker {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.sec-title {
  font-size: clamp(30px, 4.5vw, 44px);
  color: var(--ink);
  margin-bottom: 18px;
  text-align: center;
}

.sec-desc {
  font-size: 17px;
  color: var(--ink2);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

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

.btn-main {
  background: linear-gradient(135deg, var(--acc2), var(--acc));
  color: #1b1307;
  box-shadow: 0 10px 25px rgba(var(--acc-rgb), 0.35);
  font-weight: 700;
}

.btn-main:hover {
  box-shadow: 0 16px 36px rgba(var(--acc-rgb), 0.5);
  background: linear-gradient(135deg, #ffe296, #d4a94c);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn .ar {
  transition: transform 0.25s;
}

.btn:hover .ar {
  transform: translateX(4px);
}

/* ── Top Header ── */
.top {
  position: relative;
  z-index: 50;
  color: var(--on-deep);
  background: transparent;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand .mk {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  background: radial-gradient(circle at 35% 30%, var(--acc2), var(--acc) 60%, rgba(0, 0, 0, 0.25));
  color: #1b1307;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.brand small {
  display: block;
  font-size: 11.5px;
  color: var(--gold2);
  letter-spacing: 0.5px;
}

nav.main-nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}

nav.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

nav.main-nav a:hover {
  color: var(--acc2);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 30%, var(--deep2) 0%, var(--deep) 55%, var(--deep3) 100%);
  color: var(--on-deep);
  padding: 20px 0 90px;
  overflow: hidden;
}

.hero .stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70px 140px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(241,212,138,0.8), transparent),
    radial-gradient(1px 1px at 250px 220px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 380px 110px, rgba(255,255,255,0.7), transparent);
  background-size: 450px 350px;
  opacity: 0.45;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
  padding-top: 30px;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.12;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero h1 em {
  color: var(--acc2);
  display: inline-block;
}

.hero .sub {
  font-size: 20px;
  font-weight: 600;
  color: var(--acc2);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero .lead {
  font-size: 16.5px;
  color: #d9cfbb;
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.7;
}

.hero .price-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}

.hero .price-box b {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
}

.hero .price-box del {
  font-size: 18px;
  color: #8c8278;
}

.hero .price-box .badge {
  background: rgba(201, 162, 75, 0.2);
  border: 1px solid var(--acc);
  color: var(--acc2);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero .trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}

.hero .trust span {
  font-size: 13.5px;
  color: #c5bba8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .trust span::before {
  content: "✔";
  color: var(--acc2);
  font-weight: bold;
}

/* ── 3D Book Mockup ── */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.halo {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow), 0.22) 0%, rgba(var(--glow), 0.08) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.rays {
  position: absolute;
  width: 500px;
  height: 500px;
  background: conic-gradient(from 0deg at 50% 50%, rgba(201,162,75,0.06) 0deg, transparent 60deg, rgba(201,162,75,0.08) 120deg, transparent 180deg, rgba(201,162,75,0.06) 240deg, transparent 300deg, rgba(201,162,75,0.06) 360deg);
  border-radius: 50%;
  animation: spinRays 50s linear infinite;
  pointer-events: none;
}

@keyframes spinRays {
  100% { transform: rotate(360deg); }
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.book3d-wrap {
  position: relative;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.55)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  animation: floatBook 6s ease-in-out infinite;
  perspective: 2000px;
}

.book3d {
  position: relative;
  width: min(320px, 68vw);
  aspect-ratio: 1410 / 2250;
  transform: perspective(2000px) rotateY(-24deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
}

.book3d:hover {
  transform: perspective(2000px) rotateY(-10deg) rotateX(2deg);
}

.book3d .cv {
  position: absolute;
  inset: 0;
  transform: translateZ(16px);
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 2px 0 4px rgba(255,255,255,0.2);
}

.book3d .cv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book3d .cv::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, rgba(0,0,0,0.35) 0, rgba(255,255,255,0.2) 2%, rgba(0,0,0,0.15) 4%, transparent 9%, transparent 80%, rgba(255,255,255,0.08) 92%, rgba(0,0,0,0.1)),
    linear-gradient(155deg, rgba(255,255,255,0.25) 0%, transparent 40%);
}

.book3d .pg {
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: -16px;
  width: 32px;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #d9cfbb, #fbf6ea 20%, #efe7d6 50%, #fbf6ea 80%, #d9cfbb),
              repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 3px);
  background-blend-mode: multiply;
  border-radius: 0 2px 2px 0;
}

.book3d .bk {
  position: absolute;
  inset: 0;
  transform: translateZ(-16px);
  border-radius: 3px 8px 8px 3px;
  background: var(--deep);
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item b {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ── Section Styling ── */
.sec {
  padding: 85px 0;
  position: relative;
}

.sec-dark {
  background: var(--deep);
  color: var(--on-deep);
}

.sec-paper2 {
  background: var(--paper2);
}

/* ── Hook & Pain Points ── */
.hook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.hook-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.hook-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.hook-card h3 {
  font-size: 20px;
  color: var(--deep);
  margin-bottom: 12px;
}

.hook-card p {
  font-size: 15.5px;
  color: var(--ink2);
}

/* ── The Cost of Not Knowing ── */
.pain-box {
  background: #10192a;
  color: #fff;
  border-radius: 20px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 30px 0;
}

.pain-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pain-item .bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(176, 58, 46, 0.2);
  border: 1px solid var(--danger);
  color: #ff7675;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-item h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.pain-item p {
  font-size: 14.5px;
  color: #b2becd;
}

/* ── 7 Elements of Every Sign ── */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.element-pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.element-pill .badge-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper2);
  color: var(--gold3);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.element-pill h4 {
  font-size: 17px;
  color: var(--deep);
  margin-bottom: 4px;
}

.element-pill p {
  font-size: 14px;
  color: var(--muted);
}

/* ── 10 Topics Grid ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  transition: all 0.3s;
}

.topic-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(201, 162, 75, 0.15);
}

.topic-card .top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.topic-card .tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold3);
  letter-spacing: 1px;
}

.topic-card h3 {
  font-size: 19px;
  color: var(--deep);
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 14.5px;
  color: var(--ink2);
}

/* ── Grand Slam Offer & Value Stack ── */
.offer-box {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 45px 40px;
  box-shadow: 0 20px 40px rgba(20, 33, 61, 0.08);
  margin-top: 30px;
}

.offer-stack-list {
  list-style: none;
  margin: 30px 0;
}

.offer-stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}

.offer-stack-item .item-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
}

.offer-stack-item .item-val {
  color: var(--muted);
  font-size: 15px;
}

.offer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

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

.offer-total-row .sale-price {
  font-size: 38px;
  font-weight: 700;
  color: var(--gold3);
  font-family: var(--serif);
}

/* ── Bonus Cards ── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.bonus-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.bonus-card .badge-gift {
  display: inline-block;
  background: var(--gold);
  color: #1b1307;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.bonus-card h4 {
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 8px;
}

.bonus-card p {
  font-size: 14px;
  color: var(--ink2);
}

.bonus-special {
  grid-column: span 3;
  background: linear-gradient(135deg, #14213d, #1d2d52);
  color: #fff;
  border: 2px solid var(--gold);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
}

.bonus-special h4 {
  color: #fff;
  font-size: 22px;
}

.bonus-special p {
  color: #d9cfbb;
}

/* ── Author Section ── */
.author-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}

.author-box img {
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
  font-size: 28px;
  color: var(--deep);
  margin-bottom: 8px;
}

.author-info .role {
  color: var(--gold3);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}

.author-info p {
  font-size: 15.5px;
  color: var(--ink2);
  margin-bottom: 14px;
}

/* ── Reviews / Testimonials ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f1c40f;
  font-size: 16px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 15px;
  color: var(--ink2);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.review-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper2);
  color: var(--gold3);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.review-author b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.review-author span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── FAQ Accordion ── */
.faq-wrap {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--gold);
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  font-size: 15.5px;
  color: var(--ink2);
  line-height: 1.7;
}

.faq-item.active .faq-body {
  padding-bottom: 20px;
}

/* ── Order Section (Checkout) ── */
.order-sec {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
  padding: 90px 0;
}

.order-box {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(20, 33, 61, 0.08);
}

.order-info h3 {
  font-size: 32px;
  color: var(--deep);
  margin-bottom: 12px;
}

.order-info .order-pricing {
  margin: 20px 0 25px;
  padding: 20px;
  background: var(--paper);
  border-radius: 14px;
  border-left: 4px solid var(--gold);
}

.order-info .order-pricing .now-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold3);
  font-family: var(--serif);
}

.order-info .order-pricing .was-price {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 10px;
}

.order-info ul {
  list-style: none;
  margin: 25px 0;
}

.order-info ul li {
  font-size: 15px;
  color: var(--ink2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-info ul li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* Order Form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(80, 60, 30, 0.2);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

.order-form .btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  margin-top: 10px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

/* ── Payment Modal (SePay & QR VietQR) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 38, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: grid;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--line);
  position: relative;
}

@keyframes modalPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  background: linear-gradient(135deg, var(--deep), var(--deep2));
  color: #fff;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.modal-header h3 {
  font-size: 22px;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #d9cfbb;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 30px;
}

/* QR Code Display */
.qr-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.qr-img-wrap {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.qr-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-guide {
  font-size: 13.5px;
  color: var(--ink2);
}

.qr-guide b {
  color: var(--deep);
}

/* Bank Details Table */
.bank-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

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

.bank-info-label {
  color: var(--muted);
}

.bank-info-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--deep);
}

.btn-copy {
  background: var(--paper2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--gold);
  color: #1b1307;
}

/* Polling & Live Status */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: #eef4fc;
  border: 1px solid #c2d8f2;
  border-radius: 12px;
  color: #154374;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(21, 67, 116, 0.2);
  border-top-color: #154374;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Success State in Modal */
.modal-success-state {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.modal-success-state.active {
  display: block;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(30, 126, 52, 0.15);
  color: var(--success);
  font-size: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.modal-success-state h3 {
  font-size: 26px;
  color: var(--deep);
  margin-bottom: 8px;
}

.modal-success-state p {
  font-size: 15px;
  color: var(--ink2);
  margin-bottom: 24px;
}

.success-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* ── Sticky Mobile CTA Bar ── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 33, 61, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 20px;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar .info b {
  font-size: 20px;
  color: var(--acc2);
  display: block;
}

.sticky-bar .info span {
  font-size: 12px;
  color: #c5bba8;
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 85px;
  right: 25px;
  background: var(--deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10000;
  display: none;
  animation: toastIn 0.3s forwards;
}

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
footer {
  background: var(--deep3);
  color: #9b9287;
  padding: 60px 0 35px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a:hover {
  color: var(--acc2);
}

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

.footer-brand b {
  color: #fff;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  color: #6d6459;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-in {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero .lead, .hero .trust, .cta-row, .hero .price-box {
    justify-content: center;
    margin-inline: auto;
  }
  .stage {
    min-height: 400px;
  }
  .hook-grid, .reviews-grid, .bonus-grid {
    grid-template-columns: 1fr;
  }
  .bonus-special {
    grid-column: span 1;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .topics-grid, .pain-list {
    grid-template-columns: 1fr;
  }
  .order-box {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav.main-nav {
    display: none;
  }
  .qr-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qr-img-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ── Hero Book Presentation (BIA SACH BIEN BAO CUOC DOI) ── */
.hero-book-wrap {
  position: relative;
  max-width: 460px;
  width: 100%;
  cursor: pointer;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: floatBook 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-wrap:hover {
  transform: translateY(-10px) scale(1.03);
}

.hero-book-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
