/* Sản Phẩm Win: the ongchummo palette (near-black or paper white, hairlines, one red),
   one responsive layout: phones first, a wider grid and a side column from 1024px.
   Every colour is a token; dark is the default, light follows the device or the
   reader's choice (swin-theme.js sets data-theme). */
:root { color-scheme: dark; --bg: #0b0b0c; --panel: #141416; --panel2: #1b1b1e; --line: #2a2a2e; --line2: #4a4a52; --text: #ececee; --text2: #cfcfd4;
  --muted: #a2a2aa; --red: #e5283a; --red2: #ff4d5e; --gold: #f5b301; --gold-text: #f5b301; --green: #22c55e; --green-text: #22c55e; --neutral: #7c7c86;
  --bar: #3a3a42; --shimmer: #232327; --nav-bg: rgba(11, 11, 12, .92); --bar-bg: rgba(20, 20, 22, .96); --rank-bg: rgba(11, 11, 12, .82);
  --offline: #3a2a00; --shadow: rgba(0, 0, 0, .55); --glow: rgba(229, 40, 58, .32); --glow2: rgba(245, 179, 1, .12); --grid: rgba(255, 255, 255, .05);
  --radius: 12px; --tap: 44px; }
:root[data-theme="light"] { color-scheme: light; --bg: #f6f6f8; --panel: #ffffff; --panel2: #f1f1f4; --line: #e3e3e8; --line2: #c7c7cf; --text: #121214;
  --text2: #3b3b44; --muted: #62626c; --red: #d81f30; --red2: #c01427; --gold: #f5b301; --gold-text: #8a5c00; --green: #16a34a; --green-text: #15803d;
  --neutral: #8b8b95; --bar: #d5d5dc; --shimmer: #e8e8ee; --nav-bg: rgba(246, 246, 248, .9); --bar-bg: rgba(255, 255, 255, .96); --rank-bg: rgba(255, 255, 255, .92);
  --offline: #fff1c2; --shadow: rgba(30, 30, 50, .14); --glow: rgba(229, 40, 58, .16); --glow2: rgba(245, 179, 1, .18); --grid: rgba(18, 18, 20, .06); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { color-scheme: light; --bg: #f6f6f8; --panel: #ffffff; --panel2: #f1f1f4; --line: #e3e3e8; --line2: #c7c7cf; --text: #121214;
    --text2: #3b3b44; --muted: #62626c; --red: #d81f30; --red2: #c01427; --gold: #f5b301; --gold-text: #8a5c00; --green: #16a34a; --green-text: #15803d;
    --neutral: #8b8b95; --bar: #d5d5dc; --shimmer: #e8e8ee; --nav-bg: rgba(246, 246, 248, .9); --bar-bg: rgba(255, 255, 255, .96); --rank-bg: rgba(255, 255, 255, .92);
    --offline: #fff1c2; --shadow: rgba(30, 30, 50, .14); --glow: rgba(229, 40, 58, .16); --glow2: rgba(245, 179, 1, .18); --grid: rgba(18, 18, 20, .06); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
a { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--text2); max-width: 720px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav nav a { text-decoration: none; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--red); }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: #fff; font-size: 15px; }
.theme-toggle { display: grid; place-items: center; flex: none; width: var(--tap); height: var(--tap); margin: -4px 0; padding: 0; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--line2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun, :root:not([data-theme]) .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon, :root:not([data-theme]) .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
}
/* A backdrop filter would make the header the box the fixed tab bar is placed in. */
.app-nav { backdrop-filter: none; background: var(--bg); }
.app-nav .theme-toggle { margin-left: auto; }
.app-nav .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; justify-content: space-around; gap: 0; margin: 0;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.app-nav .tabs a { display: flex; flex-direction: column; align-items: center; min-width: 64px; min-height: var(--tap); font-size: 12px; color: var(--muted); }
.app-nav .tabs a span { font-size: 18px; line-height: 1.3; }
.app-nav .tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Buttons and chips */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 10px 18px; border: 1px solid var(--red);
  background: var(--red); color: #fff; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--red2); border-color: var(--red2); }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--muted); background: transparent; }
.button.danger { background: transparent; color: var(--red2); }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.button.big { min-height: 52px; padding: 12px 22px; font-size: 17px; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.button.save { background: transparent; border-color: var(--line2); color: var(--text); }
.button.save:hover { border-color: var(--gold); }
.button.save.on { background: transparent; border-color: var(--gold); color: var(--gold-text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chip { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--panel2); font-size: 12px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; }

/* Blocks */
.block { margin: 28px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.narrow { max-width: 520px; margin: 32px auto; }
.notice { padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel); border-radius: 8px; }
.notice.error { border-left-color: var(--red); }
.offline { position: sticky; top: 56px; z-index: 5; margin: 0 0 12px; padding: 8px 12px; background: var(--offline); border-radius: 8px; font-size: 14px; }
.soon { text-align: center; padding: 15vh 0; }

/* Home: a glowing hero with real captures of the extension, each labelled */
.hero { position: relative; isolation: isolate; padding: 36px 0 24px; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -80px calc(50% - 50vw) -40px; pointer-events: none;
  background: radial-gradient(520px 320px at 72% 32%, var(--glow), transparent 70%), radial-gradient(460px 260px at 12% 8%, var(--glow2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 35%, transparent 80%); }
.hero h1 { font-size: clamp(34px, 7.4vw, 64px); line-height: 1.08; letter-spacing: -.02em; max-width: 760px; margin: 14px 0 16px; }
.hero h1 span { background: linear-gradient(90deg, var(--red2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--text2); font-weight: 600; font-size: 13px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.section-lead { margin: -6px 0 18px; }
.home-h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; }
.kicker { margin: 0 0 6px; color: var(--red2); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* The extension: one bright call to install it, free */
.ext-cta { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, var(--red), var(--gold)) border-box; border: 2px solid transparent;
  box-shadow: 0 16px 40px -18px var(--glow); transition: transform .15s; }
.ext-cta:hover { transform: translateY(-2px); }
.ext-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--red), #ff7a45); color: #fff; }
.ext-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ext-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ext-text b { font-size: 17px; line-height: 1.3; }
.ext-text small { color: var(--muted); font-size: 13px; }
.free { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.ext-banner { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 28px 20px; border-radius: 20px; color: #fff;
  background: radial-gradient(400px 200px at 90% 0%, rgba(245, 179, 1, .45), transparent 70%), linear-gradient(135deg, #b3122a, #e5283a 55%, #ff6a3d); }
.ext-banner h2 { font-size: clamp(24px, 4vw, 36px); line-height: 1.15; margin: 0; color: #fff; }
.ext-banner p { margin: 0; color: rgba(255, 255, 255, .9); }
.ext-banner .free { background: #fff; color: #b3122a; align-self: start; justify-self: start; }
.ext-banner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ext-banner li { position: relative; padding-left: 28px; color: #fff; }
.ext-banner li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.button.white { background: #fff; border-color: #fff; color: #b3122a; font-weight: 800; justify-content: center; text-align: center; }
.button.white:hover { background: #fff3f3; border-color: #fff3f3; }
.ext-note { font-size: 13px !important; color: rgba(255, 255, 255, .82) !important; }

/* Stats band: real counts, counted up once on screen */
.stats-band { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.stat { display: grid; gap: 4px; padding: 18px 20px; background: var(--panel); }
.stat b { font-size: clamp(32px, 6vw, 48px); line-height: 1; letter-spacing: -.02em; font-weight: 800;
  background: linear-gradient(180deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* Real captures in the hero */
.dash { position: relative; margin: 28px 0 0; display: grid; gap: 10px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.dots i:first-child { background: var(--red); }
.float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  box-shadow: 0 14px 30px -14px var(--shadow); font-size: 13px; font-weight: 700; white-space: nowrap; }
.float.f1 { top: -14px; right: 10px; z-index: 3; color: var(--green-text); }
.dash figcaption, .illus figcaption { color: var(--muted); font-size: 12px; text-align: center; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cards article, .plan, .faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cards p, .plan ul { color: var(--text2); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 4px; padding: 16px 16px 16px 60px; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; }
.steps span { color: var(--text2); }
.steps a { color: var(--red2); font-weight: 700; }
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; padding-top: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; }
.plan .price { font-size: 28px; font-weight: 800; margin: 0; }
.plan ul { padding-left: 18px; flex: 1; }
.plan.vip { border-color: var(--gold); }
.plan.best { border-color: var(--red); box-shadow: 0 16px 40px -24px var(--glow); }
.ribbon { position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.ribbon.gold { background: var(--gold); color: #1a1300; }
.per-day { margin: 0; color: var(--gold-text); font-weight: 700; font-size: 14px; }
.faq { display: grid; gap: 8px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.faq p { color: var(--text2); margin: 8px 0 0; }
.cta-end { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.cta-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 220px at 50% 0%, var(--glow), transparent 70%); }
.cta-end h2 { font-size: clamp(22px, 4vw, 32px); line-height: 1.2; margin: 0; max-width: 680px; }
.cta-end p { margin: 0; }
.cta-end .actions { justify-content: center; margin: 4px 0 0; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9; display: flex; }
.sticky-cta .button { flex: 1; box-shadow: 0 6px 24px var(--shadow); }
.shots { display: flex; gap: 12px; overflow-x: auto; }
.shots img { flex: none; width: 220px; border-radius: var(--radius); border: 1px solid var(--line); }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; }
.features article { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.features article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); opacity: .8; }
.features h3 { margin: 0; font-size: 17px; }
.features p { margin: 0; color: var(--text2); }
/* Web app captures: dark like the app, so they stay dark in the light theme too */
.app-shot { display: block; overflow: hidden; border: 1px solid var(--line2); border-radius: 12px; background: #0b0b0c; }
.app-shot img { display: block; width: 100%; height: auto; }
.app-shot.phone { justify-self: center; width: 100%; max-width: 280px; margin-bottom: 8px; border: 5px solid #26262b; border-radius: 22px; box-shadow: 0 18px 40px -26px var(--shadow); }
.compare { display: grid; gap: 12px; }
.compare-col { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.compare-col.win { border-color: var(--red); background: linear-gradient(160deg, var(--glow), var(--panel) 60%); }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; color: var(--text2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green-text); font-weight: 800; }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 860px; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.video.tiktok { aspect-ratio: 9 / 16; max-width: 360px; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.video .play { position: relative; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.video .video-open { position: absolute; right: 10px; bottom: 8px; font-size: 13px; color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Guides */
.guides { display: grid; gap: 12px; grid-template-columns: 1fr; }
.guide { position: relative; display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide img, .cover-blank { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel2); }
.guide h3, .guide p { padding: 0 14px; }
.guide h3 { margin-top: 12px; }
.guide p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pager { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.article { max-width: 760px; margin: 0 auto; }
.prose { font-size: 17px; }
.prose img { border-radius: 8px; margin: 12px 0; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--red); color: var(--text2); }
.prose code { background: var(--panel2); padding: 1px 6px; border-radius: 4px; }
.table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.cta-box { margin: 28px 0; padding: 20px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--panel); }

/* Product pages */
.in-app main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product-actions.big { margin: 12px 0; }
/* Product cards: the whole card opens the product, the save button sits above the link */
.product { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.p-media { position: relative; aspect-ratio: 1; background: var(--panel2); }
.p-media img, .p-media .img-blank { width: 100%; height: 100%; object-fit: cover; }
.rank { position: absolute; top: 8px; left: 8px; min-width: 32px; padding: 2px 8px; border-radius: 8px; background: var(--rank-bg); color: var(--text); font-weight: 800; font-size: 14px; text-align: center; }
.level { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel2); }
.level.rising { background: var(--gold); color: #1a1300; }
.level.strong { background: var(--green); color: #031a0b; }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 0; flex: 1; }
.product h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.35; margin: 0; }
.p-link { text-decoration: none; }
.p-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.p-link:focus-visible { outline: none; }
.p-link:focus-visible::after { outline: 2px solid var(--red2); outline-offset: -2px; }
.p-price { margin: 0; font-weight: 700; }
.p-earn { margin: 0; font-size: 14px; color: var(--muted); }
.p-earn b { color: var(--gold-text); font-size: 17px; }
.p-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--muted); }
.up { color: var(--green-text); font-weight: 700; }
.down { color: var(--red2); font-weight: 700; }
.p-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.p-warn { margin: 0; color: var(--gold-text); font-size: 12px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; margin-top: auto; }
.p-cta { color: var(--red2); font-weight: 700; font-size: 14px; }
.p-foot .button { position: relative; z-index: 2; }
.ghost-card { pointer-events: none; }
.ghost-card .p-body i, .ghost-card.detail-media, .ghost-card.detail-body, .ghost-card.tall, .ghost-card .p-media {
  display: block; background: linear-gradient(90deg, var(--panel2), var(--shimmer), var(--panel2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.ghost-card .p-body i { height: 12px; margin: 4px 0; }
.ghost-card .p-body i:last-child { width: 60%; margin-bottom: 14px; }
.ghost-card.detail-media { aspect-ratio: 1; max-width: 420px; }
.ghost-card.detail-body { min-height: 260px; }
.ghost-card.tall { min-height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Charts */
.spark { width: 100%; height: 32px; display: block; }
.spark .line, .chart .line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .area, .chart .area { fill: var(--green); opacity: .16; stroke: none; }
.spark.down .line { stroke: var(--red2); }
.spark.down .area { fill: var(--red2); }
.chart { margin: 0; display: grid; gap: 6px; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 14px; }
.chart figcaption b { color: var(--text); font-size: 18px; }
.chart .plot { width: 100%; height: 140px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis-row { display: flex; justify-content: space-between; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.chart .bar { fill: var(--bar); }
.chart .bar.last { fill: var(--red); }
.chart .split { height: 12px; border-radius: 6px; }
.ch-video { fill: var(--red); }
.ch-live { fill: var(--gold); }
.ch-card { fill: var(--neutral); }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legend .ch-video::before { background: var(--red); }
.legend .ch-live::before { background: var(--gold); }
.legend .ch-card::before { background: var(--neutral); }
.meter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meter .bars { display: inline-flex; gap: 2px; }
.meter i { width: 6px; height: 12px; border-radius: 2px; background: var(--line); }
.meter.m1 i:nth-child(1) { background: var(--green); }
.meter.m2 i:nth-child(-n+2) { background: var(--gold); }
.meter.m3 i { background: var(--red2); }

/* Product detail */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.kpi { display: grid; gap: 2px; align-content: start; padding: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.kpi em { font-style: normal; font-size: 12px; }
.charts { display: grid; gap: 20px; margin: 16px 0 8px; }
.d-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 8px 0; font-size: 26px; font-weight: 800; }
.d-price s { color: var(--muted); font-size: 15px; font-weight: 400; }
.off { padding: 1px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 13px; }
.earn-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--gold); background: var(--glow2); border-radius: 10px; }
.earn-box b { color: var(--gold-text); font-size: 24px; }
.verdict-panel { border-left: 4px solid var(--line); }
.verdict-panel.v-go { border-left-color: var(--green); }
.verdict-panel.v-try { border-left-color: var(--gold); }
.verdict-panel.v-watch { border-left-color: var(--neutral); }
.verdict-panel.v-skip { border-left-color: var(--red); }
.verdict-panel > p { margin: 0 0 6px; }
.verdict.big { font-size: 24px; }
.detail-grid { display: grid; gap: 0 16px; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 16px;
  border: 1px solid var(--gold); border-radius: var(--radius); background: linear-gradient(120deg, var(--glow2), transparent 60%); }
.upsell p { margin: 2px 0 0; }
.section-head { margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 2px 0 0; }
.detail-bar { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 8; display: flex; gap: 8px; padding: 8px 12px;
  background: var(--bar-bg); border-top: 1px solid var(--line); }
.detail-bar .button { flex: 1; }
.in-app main:has(.detail-bar) { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.results { margin-top: 16px; }
.back { display: inline-block; margin: 4px 0 12px; text-decoration: none; color: var(--muted); }
.detail { display: grid; gap: 16px; }
.detail-media img, .detail-media .img-blank { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--panel2); }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
.verdict { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.warnings { margin: 6px 0; padding-left: 18px; color: var(--gold-text); }
.sessions { list-style: none; padding: 0; display: grid; gap: 8px; }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.img-blank { background: var(--panel2); }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { color: var(--text2); }
.in-app .foot { display: none; }

@media (max-width: 639px) {
  .product:not(.mock-card):not(.ghost-card) { display: grid; grid-template-columns: 112px 1fr; }
  .product:not(.mock-card) .p-media { width: 112px; height: 112px; margin: 12px 0 0 12px; border-radius: 8px; overflow: hidden; }
  .product:not(.mock-card) .level { top: auto; bottom: 6px; left: 6px; right: auto; font-size: 11px; }
  .product:not(.mock-card) .p-foot { grid-column: 1 / -1; }
  .detail-media img, .detail-media .img-blank { max-width: 300px; margin: 0 auto; }
  .nav nav { gap: 10px; }
  .nav nav > a:not(.button) { display: none; }
}
@media (min-width: 640px) {
  .cards, .guides, .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .ext-banner { padding: 36px 32px; }
}
@media (min-width: 1024px) {
  main { padding: 24px 24px 48px; }
  .in-app main { padding-bottom: 48px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .guides { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 48px; }
  .dash { margin: 0; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .ext-banner { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px; padding: 44px 48px; }
  .ext-banner .ext-go { display: grid; gap: 10px; justify-items: start; }
  .sticky-cta { display: none; }
  .app-nav .theme-toggle { order: 3; margin-left: 8px; }
  .app-nav .tabs { position: static; background: none; border: 0; padding: 0; gap: 4px; margin-left: auto; }
  .app-nav .tabs a { flex-direction: row; gap: 6px; min-width: 0; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
  .app-nav .tabs a span { font-size: 16px; }
  .app-nav .tabs a[aria-current="page"] { background: var(--panel2); }
  .detail { grid-template-columns: 420px 1fr; gap: 32px; }
  .product:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 16px 30px -20px var(--shadow); }
  .detail-bar { display: none; }
  .in-app main:has(.detail-bar) { padding-bottom: 48px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .charts { grid-template-columns: repeat(2, 1fr); }
  .chart .plot { height: 180px; }
  .detail-grid { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 1440px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Extension toolkit: free and Pro tools side by side */
.tool-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.tool-sum div { display: grid; gap: 4px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.tool-sum b { font-size: clamp(28px, 5vw, 40px); line-height: 1; background: linear-gradient(90deg, var(--red2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-sum span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.tool-groups { display: grid; gap: 16px; }
.tool-group { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.tool-group.pro { background: radial-gradient(420px 220px at 100% 0, var(--glow), transparent 70%), var(--panel); border-color: var(--red); }
.tool-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.pro-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--red), #ff7a45); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools li { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px; align-content: start; padding: 12px; background: var(--panel2); border-radius: 14px; transition: transform .2s; }
.tools li:hover { transform: translateY(-2px); }
.tool-icon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 20px; }
.tools b { font-size: 15px; line-height: 1.3; }
.tools li > span:last-child { font-size: 14px; line-height: 1.45; color: var(--text2); }
.toolkit-cta { margin-top: 18px; }
@media (min-width: 640px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tools { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tools { grid-template-columns: repeat(4, 1fr); } .tool-group { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .tools li { transition: none; } .tools li:hover { transform: none; } }

/* Motion: one easing, rise-and-fade entrances, slow ambient light. Content is fully
   visible without JS or motion; every animation sits behind no-preference. */
:root { --ease: cubic-bezier(.2, 0, 0, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero::after { content: ""; position: absolute; z-index: -1; top: -160px; right: calc(50% - 50vw); width: min(560px, 100vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--glow), transparent 62%), radial-gradient(circle at 70% 65%, var(--glow2), transparent 60%); filter: blur(24px); }
.kicker { display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 20px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.button { transition: background-color .15s, border-color .15s, transform .15s var(--ease), box-shadow .3s var(--ease); }
.button.big:not(.ghost) { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 10px 28px -12px var(--glow); }
.button.big:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--glow); }
.button.big:not(.ghost):active { transform: scale(.98); }
.button.big:not(.ghost)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); }
.button.big.white::after { background: linear-gradient(110deg, transparent 30%, rgba(229, 40, 58, .16) 50%, transparent 70%); }
.button.big:not(.ghost):hover::after { transform: translateX(130%); transition: transform .8s var(--ease); }
.ext-cta { background: linear-gradient(var(--panel), var(--panel)) padding-box, conic-gradient(from var(--ang), var(--red), var(--gold), #ff7a45, var(--red)) border-box; }
.ext-icon { transition: transform .3s var(--ease-back); }
.ext-cta:hover .ext-icon { transform: rotate(-8deg) scale(1.06); }
.features article, .plan, .steps li, .compare-col { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease); }
.features article:hover, .plan:hover, .steps li:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 20px 40px -26px var(--glow); }

/* Toolkit icons: green for free, the brand gradient for Pro */
.tool-icon { color: var(--green-text); background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(34, 197, 94, .04)); border-color: rgba(34, 197, 94, .35); transition: transform .3s var(--ease-back); }
.tool-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-group.pro .tool-icon { color: #fff; background: linear-gradient(135deg, var(--red), #ff7a45); border-color: transparent; box-shadow: 0 8px 18px -10px var(--glow); }
.tools li:hover .tool-icon { transform: scale(1.08) rotate(-4deg); }

/* Real niche names drifting past under the stats */
.niche-strip { display: grid; gap: 10px; margin: -8px 0 28px; }
.niche-strip p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; flex: none; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 600; white-space: nowrap; }
.marquee li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red2); }
.marquee li:nth-child(3n+2)::before { background: var(--gold); }
.marquee li:nth-child(3n)::before { background: var(--green); }

/* Real captures of the extension on TikTok, framed like a browser; each opens full size */
.frame { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 30px 70px -40px var(--glow), 0 10px 26px -18px var(--shadow); }
.shot { display: block; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.shot:hover img { transform: scale(1.02); }
.shot.inset { position: relative; z-index: 2; width: 86%; margin: -44px 0 0 auto; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 0 0 4px var(--bg), 0 24px 50px -20px var(--shadow); }
.real-shots { display: grid; gap: 12px; margin-top: 18px; }
.real-shots .shot { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -28px var(--shadow); }
.real-note { margin: 8px 0 0; text-align: center; font-size: 12.5px; }
.toolkit-head { display: grid; gap: 22px; align-items: center; margin-bottom: 18px; }
.toolkit-head .tool-sum { margin: 0; }
.illus { margin: 0; display: grid; gap: 8px; }
.b-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); font-size: 12px; }
.b-url { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-ext { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--red), #ff7a45); color: #fff; }
.b-ext svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 900px) { .real-shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .toolkit-head { grid-template-columns: 1fr 1.05fr; gap: 40px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .dash { animation: rise-big .9s .18s var(--ease) both; }
  .dash .shot.inset { animation: rise .7s .55s var(--ease) both; }
  .float { animation: bob 5s ease-in-out infinite alternate; }
  .hero::after { animation: drift 18s ease-in-out infinite alternate; }
  .hero h1 span { background-image: linear-gradient(90deg, var(--red2), var(--gold), #ff7a45, var(--red2)); background-size: 300% 100%; animation: sheen 8s ease-in-out infinite alternate; }
  .hero .actions .button.big:not(.ghost)::after, .cta-end .button.big:not(.ghost)::after { animation: shine 5s 1.4s ease-in-out infinite; }
  .ext-cta { animation: spin-ang 6s linear infinite; }
  .marquee ul { animation: marquee 50s linear infinite; }
  .marquee:hover ul { animation-play-state: paused; }
  /* Scroll reveal: site-public.js adds reveal-on, then in/live as each part comes into view. */
  .reveal-on .rv { opacity: 0; transform: translateY(24px); }
  .reveal-on .rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-big { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes bob { to { transform: translateY(-8px); } }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes sheen { to { background-position: 100% 0; } }
@keyframes shine { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(130%); } }
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes beacon { 50% { box-shadow: 0 0 0 5px var(--glow2); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; row-gap: 10px; }
  .marquee ul + ul { display: none; }
}
