/* Trang bán hàng bản 2: icon, hiệu ứng, khối mới (dùng cùng style.css) */
.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 28px; height: 28px; }

/* Hiện dần khi cuộn tới */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* Thanh trên dính */
.topbar { position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(45, 27, 78, .25); }
.top-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 10px; font-size: .95rem; min-height: 40px; }
.top-cta:hover { background: #ffd666; }

/* Hero mới */
.hero2 { position: relative; overflow: hidden; padding: 72px 0 84px; background: radial-gradient(ellipse at 85% 10%, #FFD9E0 0%, transparent 55%), radial-gradient(ellipse at 0% 100%, #EFE4FF 0%, transparent 50%), var(--bg); }
.hero2 .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.mark { position: relative; white-space: nowrap; color: var(--accent); }
.mark::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; background: var(--yellow); opacity: .55; border-radius: 6px; z-index: -1; transform-origin: left; animation: markIn 1s .4s ease both; }
@keyframes markIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .95rem; font-weight: 500; box-shadow: 0 2px 8px rgba(45, 27, 78, .06); }
.chips .i { width: 18px; height: 18px; color: var(--accent); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { width: 18px; height: 18px; color: #1E6B45; }

/* Nút mua: lấp lánh lướt qua */
.buy-btn { position: relative; overflow: hidden; }
.buy-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3.6s 1.2s infinite; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.buy-btn .i { width: 24px; height: 24px; }

/* Bộ ảnh bìa bay lơ lửng */
.collage { position: relative; aspect-ratio: 1 / .86; }
.collage img { position: absolute; width: 62%; border-radius: 10px; box-shadow: 0 18px 40px rgba(45, 27, 78, .25); background: #fff; }
.collage .c1 { left: 0; top: 4%; transform: rotate(-7deg); animation: float1 6s ease-in-out infinite; z-index: 1; }
.collage .c2 { right: 0; top: 0; transform: rotate(6deg); animation: float2 7s ease-in-out infinite; z-index: 2; }
.collage .c3 { left: 18%; bottom: 0; transform: rotate(-2deg); animation: float3 6.5s ease-in-out infinite; z-index: 3; width: 66%; }
@keyframes float1 { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-10px); } }
@keyframes float2 { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-12px); } }
@keyframes float3 { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.badge-float { position: absolute; z-index: 4; background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 28px rgba(45, 27, 78, .18); font-size: .88rem; font-weight: 600; animation: float2 5s ease-in-out infinite; }
.badge-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E4F4EA; color: #1E6B45; }
.badge-float.b1 { left: -2%; top: -4%; }
.badge-float.b2 { right: -2%; bottom: -5%; animation-delay: -2s; }
.badge-float .dot.pink { background: var(--soft); color: var(--accent); }

/* Tim bay nền hero */
.hearts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hearts span { position: absolute; bottom: -40px; color: var(--accent); opacity: .16; animation: rise 14s linear infinite; }
.hearts span:nth-child(1) { left: 6%; animation-duration: 16s; }
.hearts span:nth-child(2) { left: 22%; animation-delay: -5s; transform: scale(.7); }
.hearts span:nth-child(3) { left: 48%; animation-delay: -9s; animation-duration: 18s; }
.hearts span:nth-child(4) { left: 70%; animation-delay: -3s; transform: scale(.8); }
.hearts span:nth-child(5) { left: 90%; animation-delay: -11s; animation-duration: 15s; }
@keyframes rise { from { transform: translateY(0) rotate(0); } to { transform: translateY(-115vh) rotate(25deg); } }

/* Dải "làm file cho" */
.strip { background: var(--ink); color: #fff; padding: 22px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 34px; font-family: 'Fredoka', sans-serif; font-size: 1.15rem; }
.strip span { display: inline-flex; align-items: center; gap: 10px; opacity: .92; }
.strip .i { color: var(--yellow); }

/* Nỗi khó */
.pain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.pain .card { border-top: 4px solid var(--accent); }
.pain .icon-x { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.turn { text-align: center; margin-top: 44px; font-family: 'Fredoka', sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.turn .arrow { display: block; margin: 0 auto 10px; color: var(--accent); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* Khung trình duyệt cho ảnh chụp app */
.browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(45, 27, 78, .18); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F4EEF0; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; display: inline-block; }
.browser-bar i:nth-child(2) { background: #FBBF24; } .browser-bar i:nth-child(3) { background: #34D399; }
.browser-bar b { margin-left: 10px; font: 500 .78rem 'Inter', sans-serif; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; }
.browser img { width: 100%; }
.solution { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 36px; }
.promise { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.promise li { display: flex; gap: 14px; align-items: flex-start; }
.promise .icon-dot { margin: 0; flex: none; }

/* Con số */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; text-align: center; }
.stat b { display: block; font-family: 'Fredoka', sans-serif; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--yellow); }
.stat span { font-size: .92rem; opacity: .9; }

/* Các bước: số + icon */
.step-text .step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); margin-bottom: 12px; }
.step-text h3::before { display: none; }
.step-num { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--accent-hover); text-transform: uppercase; margin-bottom: 6px; }

/* Dải ảnh trượt vô tận */
.marquee { overflow: hidden; margin-top: 34px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 230px; width: auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; box-shadow: 0 8px 22px rgba(45, 27, 78, .12); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Lợi ích */
.benefits .card { transition: transform .2s, box-shadow .2s; }
.benefits .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(45, 27, 78, .14); }

/* So sánh */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 30px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(45, 27, 78, .06); }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; background: #F7F1F3; }
.compare thead th.us { background: var(--accent); color: #fff; }
.compare td .i { vertical-align: -5px; margin-right: 6px; }
.compare td.no { color: var(--muted); }
.compare td.no .i { color: #B8243D; }
.compare td.yes { background: #FFF8FA; font-weight: 500; }
.compare td.yes .i { color: #1E6B45; }

/* Gói */
.package { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.package img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(45, 27, 78, .16); }

/* Bảo đảm */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: #fff; border: 2px dashed var(--accent); border-radius: 24px; padding: 30px; }
.seal { width: 120px; height: 120px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-family: 'Fredoka', sans-serif; font-weight: 600; line-height: 1.05; box-shadow: 0 0 0 8px var(--soft); }
.seal b { display: block; font-size: 2.2rem; }

/* Hộp mua cuối */
.buy-box ul.ticks { text-align: left; max-width: 440px; margin: 18px auto 22px; }
.secure { display: inline-flex; align-items: center; gap: 6px; }

/* Thanh mua dính (điện thoại) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--border); padding: 10px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .3s; }
.sticky-buy.show { transform: none; }
.sticky-buy .buy-btn { min-height: 48px; font-size: 1.05rem; padding: 0 20px; width: auto; }
.sticky-buy strong { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }

details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }

@media (max-width: 960px) {
  .pain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 860px) {
  .hero2 { padding: 44px 0 56px; }
  .hero2 .wrap, .solution, .package { grid-template-columns: 1fr; gap: 34px; }
  .collage { max-width: 520px; margin: 0 auto; width: 100%; }
  .sticky-buy { display: flex; }
  .compare thead { display: none; }
  .compare tr { display: grid; }
  .compare td:first-child { background: #F7F1F3; font-weight: 600; }
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .top-cta span { display: none; }
}
@media (max-width: 560px) {
  .pain { grid-template-columns: 1fr; }
  .marquee img { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Bản 3: màu sắc rực hơn, loại sách, độ cay ---- */
.center-eyebrow { display: table; margin: 0 auto 14px; }
.niches-sec { background: linear-gradient(180deg, var(--bg) 0%, #FFF0F4 100%); }
.niches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.niche { --c: #D6304B; --b: #FDE6EA; background: #fff; border-radius: 18px; padding: 18px 16px 16px; border: 1px solid var(--border); border-top: 5px solid var(--c); box-shadow: 0 6px 18px rgba(45, 27, 78, .07); transition: transform .2s, box-shadow .2s; }
.niche:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 16px 30px rgba(45, 27, 78, .14); }
.niche .ni { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--b); color: var(--c); margin-bottom: 10px; }
.niche b { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }
.niche small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; margin-top: 4px; }
.t-pink { --c: #E7337A; --b: #FDE3EE; } .t-violet { --c: #7C3AED; --b: #EEE6FC; } .t-coral { --c: #F0624D; --b: #FDE7E3; }
.t-gold { --c: #B7791F; --b: #FBF0D9; } .t-red { --c: #D6304B; --b: #FDE6EA; } .t-hot { --c: #C2185B; --b: #FCE1EC; }
.t-teal { --c: #0F8A80; --b: #DDF3EF; } .t-orange { --c: #E8740C; --b: #FEEBD8; } .t-green { --c: #2F855A; --b: #E3F4EA; } .t-blue { --c: #2563EB; --b: #E3ECFD; }

.heat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.heat-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 26px; text-align: center; box-shadow: 0 8px 24px rgba(45, 27, 78, .08); }
.heat-card .flames { display: flex; justify-content: center; gap: 4px; color: #F59E0B; margin-bottom: 8px; }
.heat-card .flames .i { width: 30px; height: 30px; fill: #FDE68A; }
.heat-label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.heat-ex { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.heat-ex li { background: var(--bg); border: 1px dashed #E8B4C0; border-radius: 10px; padding: 8px 10px; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--ink); }
.heat-card.hot { background: linear-gradient(160deg, #C2185B 0%, #7B1D4B 100%); color: #fff; border: 0; transform: scale(1.04); box-shadow: 0 20px 44px rgba(194, 24, 91, .35); }
.heat-card.hot .heat-label { color: #FFD1E3; }
.heat-card.hot .flames { color: #FFC93C; }
.heat-card.hot .flames .i { fill: #FF7A59; }
.heat-card.hot .heat-ex li { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }

.colorful .card:nth-child(4n+1) { border-top: 4px solid #E7337A; }
.colorful .card:nth-child(4n+2) { border-top: 4px solid #7C3AED; }
.colorful .card:nth-child(4n+3) { border-top: 4px solid #F59E0B; }
.colorful .card:nth-child(4n+4) { border-top: 4px solid #0F8A80; }
.colorful .card:nth-child(4n+2) .icon-dot, .colorful .card:nth-child(4n+2) .icon-x { background: #EEE6FC; color: #7C3AED; }
.colorful .card:nth-child(4n+3) .icon-dot, .colorful .card:nth-child(4n+3) .icon-x { background: #FEF3C7; color: #B45309; }
.colorful .card:nth-child(4n+4) .icon-dot, .colorful .card:nth-child(4n+4) .icon-x { background: #DDF3EF; color: #0F8A80; }
.dark { background: linear-gradient(120deg, #2D1B4E 0%, #5B2167 55%, #B8243D 100%); }

@media (max-width: 1080px) { .niches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .heat { grid-template-columns: 1fr; } .heat-card.hot { transform: none; } }
@media (max-width: 560px) { .niches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-box .buy-img { display: block; width: 100%; height: auto; border-radius: 16px; margin: 18px auto 0; box-shadow: 0 10px 28px rgba(45, 27, 78, .14); }
