/* ============================================================
   KAI Deals USA — style.css (navy · gold · red, US bold)
   ============================================================ */
:root {
  --bg: #06132b;
  --bg2: #091b3a;
  --panel: #0d2350;
  --panel2: #0f2856;
  --line: rgba(229,181,58,.16);
  --line2: rgba(255,255,255,.08);
  --ink: #f3f6fc;
  --muted: #9fb2d4;
  --faint: #6c80a6;
  --gold: #e5b53a;
  --gold-soft: #f0c85a;
  --gold-ink: #f2cf6b;
  --red: #e02434;
  --red-soft: #ff4d5a;
  --blue: #2e78e0;
  --green: #35d07f;
  --disp: "Anton", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #123063 0%, transparent 55%),
    var(--bg);
  color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.red { color: var(--red-soft) !important; }
.gold { color: var(--gold) !important; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.grab {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--body); font-weight: 800; font-size: 14.5px; letter-spacing: .01em;
  color: #fff; background: linear-gradient(180deg, #e83a46, var(--red) 60%, #b81420);
  border: none; border-radius: 11px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(224,36,52,.6), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .13s, box-shadow .13s;
}
.grab:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(224,36,52,.7); }
.grab.big { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 22px; background: rgba(255,255,255,.03);
}
.ghost:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 60; background: rgba(6,19,43,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold), 0 3px 10px #0008; }
.brand-name { font-family: var(--disp); font-size: 20px; letter-spacing: .02em; color: #fff; }
.brand-name b { color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 11px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fb-cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: #fff; background: #1877f2; border-radius: 10px; padding: 9px 15px; }
.fb-cta:hover { filter: brightness(1.08); }
.fb-cta svg { fill: #fff; }
.burger { display: none; background: none; border: 1px solid var(--line2); border-radius: 9px; color: var(--gold); padding: 8px; cursor: pointer; }
.nav-mobile { display: none; }
.nav-mobile.open { display: flex; flex-direction: column; padding: 8px 22px 16px; gap: 2px; border-top: 1px solid var(--line2); }
.nav-mobile a { padding: 11px 4px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line2); }

/* ---------- ticker ---------- */
.ticker-wrap { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #0a1c3d, #0d2350 50%, #0a1c3d); overflow: hidden; }
.ticker-marquee { overflow: hidden; }
/* --tk-dur do build.mjs tinh theo so deal (9s/muc) -> toc do chay LUON NHU NHAU
   du co 5 hay 50 deal. Truoc day de cung 42s nen cang nhieu deal cang chay nhanh. */
.tk-track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; padding: 9px 0; animation: tkslide var(--tk-dur, 120s) linear infinite; }
.ticker-marquee:hover .tk-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } }
@keyframes tkslide { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.tk .tkn { color: var(--ink); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tk .tkw { text-decoration: line-through; color: var(--faint); font-size: 12px; }
.tk .tknow { color: var(--gold); font-weight: 800; font-family: var(--mono); }
.tk .tkp { color: #fff; background: var(--red); font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; }
.tk.ev .tkp { background: var(--gold); color: #221a06; }
.tk-sep { color: var(--gold); opacity: .5; font-size: 8px; }

/* ---------- store badge ---------- */
.store-badge { font-family: var(--body); font-weight: 800; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--sc); padding: 3px 9px; border-radius: 6px; box-shadow: 0 2px 6px #0006; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-glow { position: absolute; top: -30%; left: 40%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(46,120,224,.35), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 56px 22px 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow svg { width: 15px; height: 15px; stroke: var(--gold); }
h1 { font-family: var(--disp); font-size: clamp(40px, 6.4vw, 82px); line-height: .92; letter-spacing: .005em; color: #fff; text-transform: uppercase; }
h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--gold); }
h1 .red { color: var(--red-soft); }
.hero-sub { color: var(--muted); font-size: 16.5px; max-width: 52ch; margin: 22px 0 26px; }
.hero-sub b { color: #fff; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.hero-stats .dv { width: 1px; height: 34px; background: var(--line); }
.sn { font-family: var(--disp); font-size: 30px; color: #fff; line-height: 1; }
.sl { font-size: 12px; color: var(--faint); margin-top: 5px; text-transform: uppercase; letter-spacing: .06em; }
.hero-banner img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px -20px #000c, 0 0 0 1px var(--line); }

/* ---------- sections ---------- */
.section { padding: 40px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-kick { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 8px; }
.sec-kick svg { width: 14px; height: 14px; color: var(--gold); }
.sec-head h2 { font-family: var(--disp); font-size: clamp(24px, 3.2vw, 34px); color: #fff; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- event card ---------- */
.event-card { position: relative; background: linear-gradient(135deg, #1a1305, #2a1f08 55%, #14100a); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; padding: 24px; overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 40px rgba(229,181,58,.12); pointer-events: none; }
.ev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.ev-kick { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.ev-kick svg { width: 14px; height: 14px; }
.ev-title { font-family: var(--disp); font-size: clamp(26px, 3.4vw, 38px); color: #fff; text-transform: uppercase; margin: 8px 0 4px; }
.ev-tag { color: var(--gold-soft); font-weight: 700; font-size: 15px; }
.ev-blurb { color: var(--muted); font-size: 14.5px; margin: 16px 0; max-width: 70ch; }
.ev-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ev-day { background: rgba(0,0,0,.28); border: 1px solid var(--line2); border-radius: 11px; padding: 12px 13px; }
.ev-day b { display: block; font-family: var(--mono); color: var(--gold); font-size: 12.5px; margin-bottom: 5px; }
.ev-day span { color: var(--muted); font-size: 12.5px; }

.sec-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--gold-ink); white-space: nowrap; }

/* ---------- category tiles (Shop by category) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line2); border-radius: 15px; overflow: hidden; transition: transform .14s, border-color .14s, box-shadow .14s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 36px -18px #000e; }
.ct-media { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 40%, #12356e, #0a1d3f); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ct-media img { width: 100%; height: 100%; object-fit: cover; }
.ct-ico { font-size: 46px; filter: drop-shadow(0 4px 12px #0009); }
.ct-count { position: absolute; bottom: 8px; right: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border: 1px solid var(--line2); padding: 3px 8px; border-radius: 999px; }
.ct-name { font-weight: 800; font-size: 14.5px; color: #fff; padding: 12px 14px 3px; }
.ct-blurb { color: var(--muted); font-size: 12px; padding: 0 14px 14px; }

/* ---------- category page ---------- */
.cat-head { padding: 30px 22px 6px; }
.crumb { display: inline-block; color: var(--faint); font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.crumb:hover { color: var(--gold-ink); }
.cat-hero { display: flex; align-items: center; gap: 16px; }
.cat-hero-ico { font-size: 46px; }
.cat-hero h1 { font-family: var(--disp); font-size: clamp(30px, 4vw, 46px); color: #fff; text-transform: uppercase; line-height: 1; }
.cat-hero p { color: var(--muted); margin-top: 6px; }
.cat-more { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line2); }
.cat-more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-more-links a { font-weight: 600; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; }
.cat-more-links a:hover { color: var(--gold-ink); border-color: var(--gold); }

/* ---------- board layout ---------- */
.board-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; cursor: pointer; transition: all .13s; }
.chip:hover { color: #fff; }
.chip.active { background: var(--gold); color: #221a06; border-color: var(--gold); }
.filter-sort { margin-left: auto; font-size: 12px; color: var(--faint); }

.deal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.deal { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .14s, border-color .14s, box-shadow .14s; }
.deal:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -18px #000e; }
.deal.hot { border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.d-media { position: relative; aspect-ratio: 16/10; background: #0a1a38; overflow: hidden; }
.d-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.d-media .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--sc) 35%, #0a1a38), #081124); }
.d-media .ph .ico { font-size: 44px; filter: drop-shadow(0 4px 10px #0008); }
.d-media .ph .phc { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pct-badge { position: absolute; top: 10px; left: 10px; font-family: var(--disp); font-size: 19px; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 8px; box-shadow: 0 4px 12px #0008, inset 0 1px 0 rgba(255,255,255,.3); transform: rotate(-3deg); }
.hot-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 10.5px; letter-spacing: .06em; color: #fff; background: linear-gradient(180deg,#ff5a3c,#e0231f); padding: 3px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(224,36,52,.6); }
.hot-badge svg { fill: #ffe08a; }
.d-media .store-badge { position: absolute; top: 10px; right: 10px; }
.d-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.d-hook { color: var(--gold-ink); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.d-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; }
.d-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.d-price .now { font-family: var(--disp); font-size: 27px; color: var(--gold); line-height: 1; }
.d-price .was { text-decoration: line-through; color: var(--faint); font-size: 14px; }
.dtags { display: inline-flex; gap: 5px; margin-left: auto; }
.dtag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-ink); background: rgba(229,181,58,.12); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
.d-proof { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.d-proof .pr { display: inline-flex; align-items: center; gap: 4px; }
.d-proof .pr b { color: #fff; }
.d-proof .bought { color: var(--green); font-weight: 600; }
.deal.clickable { cursor: pointer; }
.d-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-ship { font-size: 11.5px; color: var(--faint); }
.d-ver { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--green); }
.d-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.d-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff7a3c); border-radius: 999px; }
.d-barlbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.d-cta { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--gold-ink); background: rgba(229,181,58,.1); border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 9px; padding: 0 12px; cursor: pointer; }
.code-chip:hover { border-style: solid; }
.d-cta .grab { flex: 1; }

.board-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-top: 16px; }
.board-note svg { color: var(--gold); flex-shrink: 0; }

/* ---------- sidebar ---------- */
.board-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 82px; }
.side-card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line2); border-radius: 14px; padding: 15px 16px; }
.side-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: #fff; margin-bottom: 12px; }
.side-head svg { color: var(--gold); }
.side-head .side-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; color: var(--green); text-transform: uppercase; }
.side-head .side-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); animation: pulse 1.6s infinite; }
.scan-log { font-family: var(--mono); font-size: 11.5px; display: flex; flex-direction: column; gap: 7px; max-height: 220px; overflow: hidden; }
.scan-log .lg { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-log .lg .ok { color: var(--green); }
.scan-log .lg b { color: var(--red-soft); }
.top-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line2); }
.top-row:first-of-type { border-top: none; }
.top-row .ti { font-family: var(--disp); color: var(--gold); width: 18px; }
.top-row .tn { flex: 1; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .tp { font-family: var(--mono); font-weight: 700; color: var(--red-soft); font-size: 12.5px; }
.disc-card p { font-size: 12.5px; color: var(--muted); }
.disc-card b { color: #fff; }
.side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 12.5px; color: var(--gold-ink); }
.side-empty { color: var(--faint); font-size: 12.5px; }

/* ---------- cta + footer ---------- */
.cta-sec { text-align: center; }
.cta-in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }
.cta-in img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 8px 24px #000a; }
.cta-in h2 { font-family: var(--disp); font-size: clamp(26px, 3.4vw, 38px); color: #fff; text-transform: uppercase; }
.cta-in p { color: var(--muted); max-width: 46ch; }
.cta-btns { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.footer { border-top: 1px solid var(--line); background: #050f24; margin-top: 20px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 32px 22px 18px; }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold); }
.f-name { font-family: var(--disp); font-size: 19px; color: #fff; }
.f-name b { color: var(--gold); font-weight: 400; }
.f-tag { color: var(--muted); font-size: 12.5px; }
.f-soc { display: flex; gap: 10px; flex-wrap: wrap; }
.f-soc a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--muted); border: 1px solid var(--line2); border-radius: 9px; padding: 9px 14px; }
.f-soc a:hover { color: var(--gold-ink); border-color: var(--gold); }
.f-disc { color: var(--faint); font-size: 11.5px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line2); margin-top: 6px; }
.f-bottom { color: var(--faint); font-size: 11.5px; padding-bottom: 26px; }
.f-bottom a { color: var(--gold-ink); }

/* ---------- disclosure page ---------- */
.page-head { padding: 44px 22px 8px; }
.page-head h1 { font-family: var(--disp); font-size: clamp(30px, 4vw, 46px); color: #fff; text-transform: uppercase; }
.prose p { color: var(--muted); margin-bottom: 15px; }
.prose b { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero-banner { order: -1; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .board-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .board-side .side-card { flex: 1; min-width: 240px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .fb-cta { display: none; }
  .live-pill { display: none; }
  .deal-grid { grid-template-columns: 1fr; }
  .ev-days { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
