/* ============ Tokens ============ */
:root {
  --bg: #F6F6F2;
  --surface: #FFFFFF;
  --surface-2: #EEEEE8;
  --ink: #15161A;
  --ink-2: #4A4D55;
  --line: #DADAD2;
  --line-strong: #B9B9AF;

  --primary: #D7261E;          /* nút, khối nhấn */
  --primary-hover: #B91C15;
  --on-primary: #FFFFFF;
  --primary-text: #B91C15;     /* chữ đỏ trên nền sáng */
  --primary-soft: #FDE8E6;

  --court: #0D7A4C;
  --court-soft: #E2F3EA;
  --gold: #F5B301;
  --on-gold: #1A1400;
  --warn-soft: #FFF4D6;
  --warn-text: #7A5200;

  --hero-bg: #15161A;
  --hero-ink: #F6F6F2;

  --s1: #D7261E; /* series màu cho radar */
  --s2: #1F5FD6;
  --s3: #B86A00;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px -8px rgba(0,0,0,.12);
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F12; --surface: #17191E; --surface-2: #20232A;
    --ink: #F2F2EE; --ink-2: #A9ADB7; --line: #2C3038; --line-strong: #444955;
    --primary-text: #FF7A6E; --primary-soft: #3A1A18;
    --court: #3DD68C; --court-soft: #10291D;
    --warn-soft: #2E2510; --warn-text: #F5C451;
    --hero-bg: #070708;
    --s1: #FF5A4E; --s2: #6EA0FF; --s3: #F2B23A;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F12; --surface: #17191E; --surface-2: #20232A;
  --ink: #F2F2EE; --ink-2: #A9ADB7; --line: #2C3038; --line-strong: #444955;
  --primary-text: #FF7A6E; --primary-soft: #3A1A18;
  --court: #3DD68C; --court-soft: #10291D;
  --warn-soft: #2E2510; --warn-text: #F5C451;
  --hero-bg: #070708;
  --s1: #FF5A4E; --s2: #6EA0FF; --s3: #F2B23A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary-text); text-underline-offset: 3px; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--primary); }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; }
.brand-name b { color: var(--primary-text); }
.main-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s var(--ease), color .2s var(--ease); }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 -3px 0 var(--primary); }
.nav-count:not(:empty) { background: var(--primary); color: var(--on-primary); border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 4px 8px; padding-top: 6px; }
  .theme-toggle { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0 -4px; }
  .main-nav a { padding: 8px 10px; font-size: .9rem; }
}

/* ============ Buttons, chips, form ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--hero-ink); color: #15161A; }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip-red { background: var(--primary-soft); color: var(--primary-text); }
.chip-green { background: var(--court-soft); color: var(--court); }
.chip-warn { background: var(--warn-soft); color: var(--warn-text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.input, .select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px; width: 100%; }
.input:focus, .select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; pointer-events: none; }
.search-wrap .input { padding-left: 40px; }

.toggle-group { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.toggle span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .15s var(--ease); }
.toggle input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.toggle input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.toggle:hover span { border-color: var(--line-strong); }

/* ============ Hero ============ */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::before { /* vạch sân */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent 18%, #fff 18%, #fff calc(18% + 2px), transparent calc(18% + 2px), transparent 82%, #fff 82%, #fff calc(82% + 2px), transparent calc(82% + 2px)),
    linear-gradient(90deg, transparent 8%, #fff 8%, #fff calc(8% + 2px), transparent calc(8% + 2px), transparent 92%, #fff 92%, #fff calc(92% + 2px), transparent calc(92% + 2px));
}
.hero-inner { position: relative; display: grid; gap: 28px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.25fr .75fr; align-items: end; padding-top: 80px; padding-bottom: 80px; } }
.hero h1 { margin-bottom: .3em; line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--hero-bg); background: var(--gold); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-lead { font-size: 1.12rem; max-width: 56ch; color: #CFD0D4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .btn-outline { color: var(--hero-ink); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.hero-stat { background: var(--hero-bg); padding: 18px 16px; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: #fff; }
.hero-stat span { font-size: .85rem; color: #B4B6BC; }
.hero-stat:first-child b { color: var(--gold); }

/* ============ Sections ============ */
.section { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head p { margin: 0; max-width: 60ch; }
.kicker { display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary-text); font-size: .95rem; margin-bottom: 4px; }

/* quick entry blocks */
.quick-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: -28px; position: relative; z-index: 2; }
.quick-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s var(--ease); min-height: 120px; }
.quick-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.quick-card .qi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.quick-card .qi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-card b { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.quick-card span { font-size: .9rem; color: var(--ink-2); }

/* ============ Catalog ============ */
.catalog { display: grid; gap: 24px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 18px; }
@media (min-width: 1024px) { .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.filters-toggle { display: none; }
@media (max-width: 1023px) {
  .filters-toggle { display: inline-flex; }
  .filters:not(.open) { display: none; }
}
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { padding: 0; margin-bottom: 8px; }
.range-row { display: flex; gap: 8px; align-items: center; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.catalog-bar .search-wrap { flex: 1 1 260px; }
.catalog-bar .select { width: auto; flex: 0 1 220px; }
.result-count { font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; gap: 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.brand-tag { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--ink-2); }
.card h3 { margin: 2px 0 0; font-size: 1.5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* toàn thẻ bấm được */
.card h3 a:hover { text-decoration: underline; }
.card .price { font-weight: 700; white-space: nowrap; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; position: relative; z-index: 1; }
.card-actions .btn { flex: 1; }
.btn-compare[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ảnh vợt — nền trắng để hoà với ảnh sản phẩm (ảnh gốc nền trắng) */
.racket-media { background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: #B9B9AF; }
:root[data-theme="dark"] .racket-media { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.racket-media img { width: 100%; height: 100%; object-fit: contain; }
.racket-media .racket-ph { height: 80%; width: auto; }
.card-media { height: 240px; margin: -4px -4px 0; padding: 8px 0; }
.card-media img { transition: transform .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.media-lg { aspect-ratio: 1; max-height: 420px; width: 100%; margin-bottom: 6px; }
.detail-photo { display: block; border-radius: 10px; cursor: zoom-in; }
.photo-credit { font-size: .75rem; color: var(--ink-2); margin: 0 0 12px; text-align: right; }
.photo-credit a { color: var(--ink-2); }
.card-row { flex-direction: row; align-items: center; padding: 10px 12px; gap: 12px; }
.card-row-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.media-thumb { width: 64px; height: 84px; flex: none; }
.media-compare { width: 100%; max-width: 140px; height: 120px; margin-bottom: 8px; }
.media-rec { width: 64px; height: 90px; }
.rec-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 520px) { .media-rec { width: 52px; height: 72px; } .card-media { height: 200px; } }

/* thanh điểm */
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 78px 1fr 22px; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.bar-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--ink); }
.bar[data-k="power"] .bar-fill { background: var(--primary); }
.bar b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* chỉ báo điểm cân bằng */
.balance { display: grid; gap: 4px; }
.balance-rail { position: relative; height: 26px; }
.balance-rail svg { width: 100%; height: 26px; overflow: visible; }
.balance-value { font-size: .85rem; color: var(--ink-2); }
.balance-value b { color: var(--ink); }
.balance-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-2); margin-top: -2px; }

.empty { text-align: center; padding: 48px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }

/* ============ Compare tray ============ */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #15161A; color: #F6F6F2; border-top: 1px solid #2C3038; padding: 10px 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.25); transform: translateY(0); transition: transform .25s var(--ease); }
.compare-tray[hidden] { display: block; transform: translateY(110%); visibility: hidden; }
.tray-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tray-items { display: flex; gap: 8px; flex: 1 1 300px; flex-wrap: wrap; }
.tray-item { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.12); border-radius: 10px; padding: 4px 4px 4px 12px; font-weight: 600; font-size: .9rem; }
:root[data-theme="dark"] .tray-item, .compare-tray .tray-item { color: inherit; }
.tray-item button { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.tray-item button:hover { background: rgba(255,255,255,.15); }
.tray-item svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.tray-slot { display: inline-flex; align-items: center; padding: 0 12px; min-height: 44px; border: 1.5px dashed rgba(255,255,255,.3); border-radius: 10px; font-size: .85rem; opacity: .75; }
.tray-actions { display: flex; gap: 8px; }
.compare-tray .btn-ghost { color: inherit; opacity: .85; }
.compare-tray .btn-ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.tray-summary { display: none; font-weight: 700; }
body.has-tray { padding-bottom: 76px; }
@media (max-width: 640px) {
  .tray-items { display: none; }
  .tray-summary { display: block; flex: 1; }
  .tray-inner { flex-wrap: nowrap; }
}

/* ============ Compare page ============ */
.compare-pickers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 24px; }
.compare-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .compare-layout { grid-template-columns: 380px 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.radar-wrap > svg { width: 100%; height: auto; max-width: 400px; margin: 0 auto; }
.radar-legend { margin-top: 12px; }
.radar-legend li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.radar-legend li svg { flex: none; }
.radar-legend ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-display); font-size: 1.15rem; text-transform: none; }
.spec-table tbody th { width: 170px; color: var(--ink-2); font-weight: 600; background: var(--surface); position: sticky; left: 0; }
.spec-table tr.group th { background: var(--surface-2); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-size: .95rem; }
.spec-table td.best { background: var(--court-soft); color: var(--court); font-weight: 700; }
.spec-table td.best::after { content: " ▲"; font-size: .7em; }
.spec-table tr.diff td { box-shadow: inset 3px 0 0 var(--gold); }
.spec-table tr.diff td ~ td { box-shadow: none; }
.series-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.verdict { display: grid; gap: 10px; }
.verdict li { margin-bottom: 6px; }

/* ============ Advisor ============ */
.advisor { display: grid; gap: 24px; }
@media (min-width: 1024px) { .advisor { grid-template-columns: 420px 1fr; align-items: start; } }
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .quiz { position: sticky; top: 84px; } }
.quiz fieldset { border: 0; margin: 0; padding: 0; }
.quiz legend { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; padding: 0; }
.quiz .hint { font-size: .85rem; color: var(--ink-2); margin: 0 0 10px; }
.opt-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label, .opt .opt-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .15s var(--ease); background: var(--surface); }
.opt b { font-size: .95rem; }
.opt small { color: var(--ink-2); font-size: .78rem; line-height: 1.35; }
.opt input:checked + .opt-body { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--primary); outline-offset: 2px; }
.opt:hover .opt-body { border-color: var(--line-strong); }

.profile-box { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.profile-box h3 { color: #fff; }
.profile-box p { color: #CFD0D4; margin-bottom: .6em; }
.profile-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.profile-specs div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.profile-specs small { display: block; color: #B4B6BC; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.profile-specs b { color: #fff; }

.rec-list { display: grid; gap: 12px; counter-reset: rec; list-style: none; padding: 0; margin: 0; }
.rec { display: grid; gap: 12px; grid-template-columns: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rec-rank { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--line-strong); min-width: 34px; }
.rec:first-child { border-color: var(--primary); }
.rec:first-child .rec-rank { color: var(--primary-text); }
.rec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.rec h3 { margin: 0; }
.rec h3 a { color: var(--ink); text-decoration: none; }
.rec h3 a:hover { text-decoration: underline; }
.match { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--court); white-space: nowrap; }
.reasons { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; }
.reasons li { display: flex; gap: 8px; align-items: start; }
.reasons svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.reasons .pos svg { stroke: var(--court); }
.reasons .neg svg { stroke: var(--warn-text); }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ============ Detail ============ */
.detail-head { display: grid; gap: 18px; padding: 32px 0 8px; }
@media (min-width: 900px) { .detail-head { grid-template-columns: 1fr 360px; align-items: start; } }
.breadcrumb { font-size: .88rem; margin-bottom: 10px; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }
.detail-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.kv dd { font-weight: 600; }
.sources { font-size: .85rem; word-break: break-all; padding-left: 18px; }
.confidence { display: inline-flex; gap: 6px; align-items: center; }

/* ============ Guide ============ */
.guide { display: grid; gap: 20px; }
@media (min-width: 960px) { .guide { grid-template-columns: 240px 1fr; align-items: start; } }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; }
.toc a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; min-height: 40px; display: flex; align-items: center; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 959px) { .toc { position: static; display: flex; overflow-x: auto; } .toc a { white-space: nowrap; } }
.article { display: grid; gap: 20px; }
.article section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 90px; }
.article p, .article li { max-width: 72ch; }
.article table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 14px; }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--surface-2); }
.article .table-scroll { border: 0; }
.callout { border-left: 4px solid var(--gold); background: var(--warn-soft); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--ink); }
.style-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.style-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.style-card h4 { font-size: 1.25rem; margin-bottom: 6px; }
.style-card p { font-size: .9rem; margin-bottom: 8px; }

/* ============ Nơi bán / affiliate ============ */
.offers { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.offers-title { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; margin-bottom: 10px; }
.offers-title svg, .offer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.offer-best { border-color: var(--court); box-shadow: inset 3px 0 0 var(--court); }
.offer-store { display: grid; gap: 2px; min-width: 0; }
.offer-store small { color: var(--ink-2); font-size: .8rem; }
.offer-store .chip svg { width: 13px; height: 13px; }
.offer-price { font-weight: 800; font-family: var(--font-display); font-size: 1.35rem; text-align: right; white-space: nowrap; }
.offer-price small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--court); font-weight: 700; }
.offer-search { grid-template-columns: 1fr auto; background: var(--surface-2); border-style: dashed; }
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr auto; }
  .offer > .btn { grid-column: 1 / -1; }
  .offer-search { grid-template-columns: 1fr; }
}
.disclosure { font-size: .78rem; color: var(--ink-2); margin: 10px 0 0; line-height: 1.45; }
.card-actions .btn-ghost { flex: 0 1 auto; }
.pair-link { text-decoration: none; }
.h3 { font-size: 1.45rem; font-weight: 700; text-transform: none; }
.h4 { font-size: 1.25rem; margin-bottom: 6px; }

/* trang tĩnh: tiêu đề trang */
.page-head { padding-top: 32px; padding-bottom: 8px; }
.hub-list { columns: 2 280px; column-gap: 24px; padding-left: 18px; }
.hub-list li { break-inside: avoid; margin-bottom: 6px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-head p { max-width: 70ch; }
.top-list .rec { grid-template-columns: auto 1fr; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { text-decoration: none; }

/* ============ Footer / toast ============ */
.footer-links { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-links h2 { font-size: 1rem; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 8px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 40px; font-size: .9rem; }
.footer-inner p { margin: 0 0 6px; max-width: 90ch; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Motion ============ */
.view > * { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
