/* WorthIt 0.1.0: dark "living room" theme */
:root {
  --bg: #090e1c;
  --bg2: #0d1428;
  --panel: #111a31;
  --panel2: #16213e;
  --panel3: #1c2a4c;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f1f5f9;
  --soft: #cbd5e1;
  --muted: #8f9bb3;
  --accent: #ff6b35;
  --accent2: #ff8f5a;
  --accent-soft: rgba(255, 107, 53, .14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .14);
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, .14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, .14);
  --violet: #a78bfa;
  --sky: #38bdf8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.ic { flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(9, 14, 28, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-weight: 800; font-size: 25px; letter-spacing: -.04em; color: #fff; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: var(--soft); }
.top-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.top-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); padding: 0 48px 0 40px; font: inherit; font-size: 14px; }
.top-search .ic { position: absolute; left: 14px; top: 11px; color: var(--muted); }
.top-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 760px) { .nav { display: none; } .top-search { display: none; } .top.inner .top-search { display: block; } .top .wrap { gap: 12px; } }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.btn:hover { border-color: rgba(255, 255, 255, .28); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff8546); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 107, 53, .7); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; color: var(--soft); white-space: nowrap; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; }
.tag-fact { background: rgba(56, 189, 248, .14); color: var(--sky); }
.tag-obs { background: var(--amber-soft); color: var(--amber); }
.tag-ai { background: rgba(167, 139, 250, .16); color: var(--violet); }
.flash { margin: 16px auto 0; max-width: 760px; background: var(--amber-soft); border: 1px solid rgba(245, 165, 36, .35); color: #fde3b0; padding: 12px 16px; border-radius: 12px; font-size: 14px; }

/* ---------- home ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(255, 107, 53, .16), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.045em; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--soft); max-width: 540px; }
.research-form { margin-top: 26px; max-width: 600px; }
.url-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid rgba(255, 107, 53, .45); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 0 0 6px rgba(255, 107, 53, .07), var(--shadow); }
.url-box .ic { color: var(--accent2); }
.url-box input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; outline: none; }
.url-box button { height: 48px; border-radius: 999px; border: 0; padding: 0 22px; background: linear-gradient(135deg, var(--accent), #ff8546); color: #fff; font: inherit; font-weight: 800; font-size: 13.5px; letter-spacing: .04em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.url-box button:disabled { opacity: .7; }
.form-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); padding: 0 8px; }
.hand { font-family: "Caveat", cursive; font-size: 24px; color: var(--soft); transform: rotate(-4deg); }
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat { width: 82px; padding: 12px 6px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); text-align: center; font-size: 12px; cursor: pointer; font: inherit; font-size: 12px; }
.cat .ic { margin: 0 auto 6px; color: var(--accent2); }
.cat:hover { border-color: rgba(255, 107, 53, .5); }
.cats-label { font-size: 13px; color: var(--muted); margin-top: 26px; }
.hero-tv { position: relative; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tv { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .url-box { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .url-box input { padding: 0 6px; flex-basis: calc(100% - 40px); }
  .url-box button { width: 100%; justify-content: center; }
}

.section { padding: 48px 0; }
.section h2 { font-size: 28px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat .ic { color: var(--accent2); margin-bottom: 10px; }
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: how; }
.how div { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.how div::before { counter-increment: how; content: counter(how); position: absolute; top: 16px; right: 18px; font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .06); }
.how h3 { font-size: 16px; }
.how p { color: var(--muted); font-size: 14px; margin: 0; }
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rep-card { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); }
.rep-card:hover { text-decoration: none; border-color: var(--line2); }
.rep-card .thumb { width: 56px; height: 56px; border-radius: 10px; background: #f8fafc; flex: none; display: grid; place-items: center; overflow: hidden; }
.rep-card .thumb img { max-width: 48px; max-height: 48px; object-fit: contain; }
.rep-card .nm { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-score { font-weight: 800; font-size: 13px; }
@media (max-width: 900px) { .feat-grid, .how { grid-template-columns: 1fr; } .rep-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rep-grid { grid-template-columns: 1fr; } }

/* ---------- the TV ---------- */
.tv { position: relative; background: linear-gradient(180deg, #121212, #050505); border-radius: 14px; padding: 10px 10px 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(255, 140, 80, .35); }
.tv-bar { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 4px 6px; font-size: 12px; color: #d4d4d4; }
.tv-bar .adlbl { background: #f5c518; color: #111; font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.tv-bar .live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #a3a3a3; }
.tv-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s infinite; }
.tv-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tv-screen .ad-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tv-screen ins.adsbygoogle { display: inline-block; }
.tv-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 35%); }
.tv-foot { height: 6px; }
.tv-led { position: absolute; bottom: 4px; left: 50%; width: 5px; height: 3px; margin-left: -2px; border-radius: 2px; background: #ff3b30; opacity: .8; }
.tv-stand { width: 34%; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #1a1a1a, #0a0a0a); border-radius: 0 0 6px 6px; }
@keyframes blink { 50% { opacity: .25; } }

/* house bumper (shown when no ad is available) */
.bumper { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 40%, #1f2b52, #070b17 70%); padding: 6%; }
.bumper .bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); opacity: 0; animation: bars 9s infinite; }
.bumper .bars i:nth-child(1) { background: #c0c0c0; } .bumper .bars i:nth-child(2) { background: #c0c000; } .bumper .bars i:nth-child(3) { background: #00c0c0; }
.bumper .bars i:nth-child(4) { background: #00c000; } .bumper .bars i:nth-child(5) { background: #c000c0; } .bumper .bars i:nth-child(6) { background: #c00000; } .bumper .bars i:nth-child(7) { background: #0000c0; }
@keyframes bars { 0%, 7% { opacity: 1; } 10%, 100% { opacity: 0; } }
.bumper .brk { font-size: clamp(30px, 9cqw, 74px); font-weight: 800; letter-spacing: .14em; line-height: 1; text-shadow: 0 0 30px rgba(255, 107, 53, .6); }
.bumper .brk em { font-style: normal; color: var(--accent); }
.bumper .sub { margin-top: 10px; font-size: clamp(11px, 2.6cqw, 17px); color: var(--soft); min-height: 2.6em; transition: opacity .4s; }
.bumper .chan { position: absolute; top: 8px; right: 12px; font-weight: 800; font-size: clamp(10px, 2.2cqw, 14px); opacity: .9; }
.bumper .chan b { color: var(--accent); }
.bumper .ticker { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(18px, 6cqw, 30px); background: var(--accent); color: #fff; font-weight: 700; font-size: clamp(10px, 2.3cqw, 14px); display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.bumper .ticker span { display: inline-block; padding-left: 100%; animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
.tv-screen, .pip .tv-screen { container-type: inline-size; }

/* ---------- Break stage ---------- */
.stage { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: 560px; }
.room { position: absolute; inset: 0; background:
  radial-gradient(ellipse 30% 45% at 8% 52%, rgba(255, 170, 90, .30), transparent 70%),
  radial-gradient(ellipse 22% 35% at 96% 30%, rgba(255, 150, 80, .22), transparent 70%),
  radial-gradient(ellipse 60% 60% at 70% 40%, rgba(255, 120, 60, .10), transparent 70%),
  linear-gradient(180deg, #2a1a12 0%, #1d140f 55%, #120d0a 100%); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 14, 28, .97) 0%, rgba(9, 14, 28, .88) 30%, rgba(9, 14, 28, .25) 55%, rgba(9, 14, 28, 0) 70%); }
.room svg { position: absolute; }
.room .r-wood { left: 0; right: 0; top: 0; height: 100%; width: 100%; opacity: .5; }
.room .r-lamp { left: 2%; bottom: 120px; height: 300px; }
.room .r-plant { right: 2%; bottom: 140px; height: 300px; }
.room .r-front { left: 0; bottom: 70px; width: 100%; height: 190px; z-index: 3; }
.stage-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.12fr; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 230px; }
.stage-copy h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.04em; margin: 16px 0 12px; }
.stage-copy h1 em { font-style: normal; color: var(--accent); }
.stage-copy .lead { color: var(--soft); font-size: 16.5px; max-width: 470px; }
.status-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 107, 53, .25); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tasks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.tasks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--soft); }
.tasks .ti { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--muted); flex: none; transition: all .3s; }
.tasks li.active .ti { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px -4px var(--accent); }
.tasks li.done .ti { background: var(--green-soft); border-color: rgba(34, 197, 94, .5); color: var(--green); }
.tasks li.warn .ti { background: var(--amber-soft); border-color: rgba(245, 165, 36, .5); color: var(--amber); }
.tasks li.done { color: var(--text); }
.tasks .td { font-size: 12.5px; color: var(--muted); display: block; }
.stage-tv { position: relative; z-index: 2; }
.console { height: 30px; margin: 0 -6%; background: linear-gradient(180deg, #5a3a22, #3a2414 60%, #2a190e); border-radius: 4px; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 200, 150, .15); }
.console::after { content: ""; display: block; height: 50px; margin: 30px 8% 0; background: linear-gradient(180deg, #2a190e, rgba(42, 25, 14, 0)); }

.progress-dock { position: relative; z-index: 4; margin-top: -90px; padding-bottom: 32px; }
.dock { background: rgba(13, 20, 40, .92); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.dock-row { display: grid; grid-template-columns: 250px 1fr 130px; gap: 22px; align-items: center; }
.dock-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dock-prod .thumb { width: 64px; height: 64px; border-radius: 12px; background: #f1f5f9; flex: none; display: grid; place-items: center; overflow: hidden; color: #94a3b8; }
.dock-prod .thumb img { max-width: 56px; max-height: 56px; object-fit: contain; }
.dock-prod .lbl { font-size: 12px; color: var(--muted); }
.dock-prod .nm { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track .st { position: relative; padding-top: 34px; font-size: 12.5px; min-width: 0; }
.track .st::before { content: ""; position: absolute; top: 12px; left: 26px; right: -2px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.track .st:last-child::before { display: none; }
.track .st.done::before { background: var(--green); }
.track .st.active::before { background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, .1)); }
.track .dot { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); background: var(--bg2); display: grid; place-items: center; }
.track .st.done .dot { background: var(--green); border-color: var(--green); color: #052e12; }
.track .st.warn .dot { background: var(--amber); border-color: var(--amber); color: #2b1a02; }
.track .st.active .dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 53, .2); }
.track .st.active .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.track .st .t { font-weight: 700; display: block; padding-right: 8px; }
.track .st .d { color: var(--muted); font-size: 11.5px; display: block; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { text-align: right; border-left: 1px solid var(--line); padding-left: 18px; }
.timer b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; }
.timer span { font-size: 12px; color: var(--muted); }
.fun-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.fun { display: flex; gap: 12px; align-items: center; background: rgba(13, 20, 40, .92); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13.5px; }
.fun .ic { color: var(--accent2); }
.fun b { display: block; font-weight: 700; }
.fun span { color: var(--muted); }
.fail-box { display: none; margin-top: 18px; background: var(--red-soft); border: 1px solid rgba(239, 68, 68, .4); border-radius: 14px; padding: 16px; }
.fail-box.show { display: block; }

/* back-from-break: the TV shrinks into the PIP corner */
.tv-shrink { position: fixed !important; z-index: 80; transition: all .9s cubic-bezier(.6, .05, .3, 1) !important; }
.back-banner { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(9, 14, 28, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.back-banner.show { opacity: 1; }
.back-banner div { font-size: clamp(28px, 5vw, 54px); font-weight: 800; text-align: center; letter-spacing: -.03em; }
.back-banner div small { display: block; font-size: 16px; color: var(--soft); font-weight: 500; letter-spacing: 0; margin-top: 8px; }

@media (max-width: 980px) {
  .stage-grid { grid-template-columns: 1fr; padding-top: 22px; padding-bottom: 110px; }
  .stage-tv { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .room::after { background: linear-gradient(180deg, rgba(9, 14, 28, 0) 0%, rgba(9, 14, 28, .6) 40%, rgba(9, 14, 28, .95) 60%); }
  .room .r-lamp, .room .r-plant, .room .r-front { display: none; }
  .stage-copy h1 { font-size: 34px; }
  .dock-row { grid-template-columns: 1fr; gap: 16px; }
  .timer { text-align: left; border-left: 0; padding-left: 0; display: flex; align-items: baseline; gap: 10px; }
  .fun-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .track { grid-template-columns: 1fr; gap: 10px; }
  .track .st { padding: 2px 0 0 38px; min-height: 26px; }
  .track .st::before { left: 12px; top: 28px; bottom: -12px; right: auto; width: 3px; height: auto; }
  .track .st .d { white-space: normal; }
  .fun-cards { grid-template-columns: 1fr; }
  .fun:nth-child(n+3) { display: none; }
  .tasks { display: none; }
}

/* ---------- report ---------- */
.rep-head { padding: 28px 0 8px; }
.rep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.rep-layout > * { min-width: 0; }
.prod-card { display: grid; grid-template-columns: 200px 1fr 210px; gap: 24px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.prod-img { background: #f8fafc; border-radius: 16px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; color: #94a3b8; }
.prod-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.prod-info h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.price-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin: 6px 0 12px; }
.price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.price-lbl { font-size: 12px; color: var(--muted); }
.stars { color: #fbbf24; letter-spacing: 1px; }
.score-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring .val b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.ring .val span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.v-yes { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34, 197, 94, .45); }
.v-maybe { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245, 165, 36, .45); }
.v-no { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239, 68, 68, .45); }
.verdict-panel { margin-top: 18px; border-radius: 20px; padding: 20px 22px; border: 1px solid var(--line2); background: var(--panel); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.verdict-panel.v-yes, .verdict-panel.v-no, .verdict-panel.v-maybe { color: var(--text); }
.verdict-panel .q { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.verdict-panel .a { font-size: 21px; font-weight: 700; line-height: 1.35; margin: 4px 0 0; }
.verdict-panel ul { margin: 10px 0 0; padding-left: 18px; color: var(--soft); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { position: sticky; top: 64px; z-index: 30; background: rgba(9, 14, 28, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 22px 0 0; }
.tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { padding: 14px 12px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs a.on { color: var(--text); text-decoration: none; border-bottom-color: var(--accent); }
.blk { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-top: 18px; scroll-margin-top: 130px; }
.blk > h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.blk > h2 .ic { color: var(--accent2); }
.blk-sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 14px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.list li .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.mk.g { background: var(--green-soft); color: var(--green); }
.mk.r { background: var(--red-soft); color: var(--red); }
.mk.a { background: var(--amber-soft); color: var(--amber); }
.evs { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.ev { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--panel3); border-radius: 5px; padding: 1px 5px; }
.ev:hover { color: var(--text); text-decoration: none; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 46px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 9px; background: rgba(255, 255, 255, .07); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--sky), #6366f1); }
.bar-row .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.score-item .top-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.score-item .top-row span { color: var(--muted); font-weight: 500; font-size: 12px; }
.score-item .bar i { background: linear-gradient(90deg, var(--accent), #ffb347); }
.score-item p { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ca-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ca-row:first-of-type { border-top: 0; }
.ca-row .at { font-weight: 700; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.who { border-radius: 14px; padding: 14px; background: var(--panel2); border: 1px solid var(--line); }
.who h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.who.g h3 { color: var(--green); } .who.s h3 { color: var(--sky); } .who.a h3 { color: var(--amber); } .who.r h3 { color: var(--red); }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.who li b { display: block; font-size: 14px; }
.who li span { font-size: 12.5px; color: var(--muted); }
.ntu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ntu-card { border-radius: 16px; padding: 18px; background: linear-gradient(160deg, rgba(255, 107, 53, .12), var(--panel2) 55%); border: 1px solid rgba(255, 107, 53, .25); }
.ntu-card h3 { font-size: 16.5px; }
.ntu-card p { font-size: 13.5px; margin: 8px 0 0; color: var(--soft); }
.ntu-card .tag { margin-right: 6px; }
.bb { counter-reset: bb; display: grid; gap: 10px; }
.bb-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.bb-item .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--accent2); display: grid; place-items: center; color: var(--accent2); }
.bb-item b { display: block; font-size: 14.5px; }
.bb-item span { font-size: 13px; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 38%; }
.specs tr:first-child td { border-top: 0; }
.alt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.alt { border-radius: 16px; padding: 16px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.alt .lbl { align-self: flex-start; }
.alt h3 { font-size: 16px; margin: 0; }
.alt p { font-size: 13.5px; color: var(--soft); margin: 0; flex: 1; }
.alt .links { display: flex; gap: 12px; font-size: 13px; }
.src { display: grid; gap: 8px; }
.src-item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; scroll-margin-top: 130px; }
.src-item:target { border-color: var(--accent); }
.src-item .ref { font-weight: 800; color: var(--muted); }
.src-item .tt { display: block; font-weight: 600; word-break: break-word; }
.src-item .mm { display: block; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.conf.High { color: var(--green); } .conf.Medium { color: var(--amber); } .conf.Low { color: var(--red); }
.notice { background: var(--panel2); border: 1px dashed var(--line2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--soft); }
.toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); z-index: 90; background: var(--panel3); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; opacity: 0; transition: all .4s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* PIP mini TV */
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.pip { border-radius: 16px; }
.pip .tv { padding: 7px 7px 9px; border-radius: 12px; }
.pip-cap { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.pip-cap button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.pip.min .tv-screen { display: none; }
.pip-in { animation: pipin 1s cubic-bezier(.2, .8, .2, 1); transform-origin: top right; }
@keyframes pipin { from { transform: scale(1.9) translate(-30%, 10%); opacity: .2; } to { transform: none; opacity: 1; } }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 13.5px; }
.side-card h3 { font-size: 14px; margin-bottom: 8px; }
.pip-mobile { display: none; margin-top: 18px; }

@media (max-width: 1060px) {
  .rep-layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .pip-mobile { display: block; }
  .prod-card { grid-template-columns: 150px 1fr; }
  .score-box { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; }
}
@media (max-width: 700px) {
  .prod-card { grid-template-columns: 1fr; padding: 16px; }
  .prod-img { max-width: 220px; width: 100%; margin: 0 auto; }
  .score-box { justify-content: center; flex-wrap: wrap; }
  .verdict-panel { grid-template-columns: 1fr; }
  .cols2, .ntu, .alt-grid, .score-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
  .ca-row { grid-template-columns: 1fr; gap: 4px; }
  .blk { padding: 16px; border-radius: 16px; }
}
@media (max-width: 420px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- generic pages, footer ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 40px 16px 60px; }
.page h1 { font-size: 34px; }
.page h2 { font-size: 20px; margin-top: 28px; }
.page p, .page li { color: var(--soft); }
.msg { text-align: center; padding: 80px 16px; }
.msg h1 { font-size: 36px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 13px; margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot a { color: var(--soft); }
.foot-links { display: flex; gap: 18px; }

/* ---------- forms / admin ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--soft); }
.field input, .field select, .field textarea { height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); padding: 0 12px; font: inherit; font-size: 14px; }
.field small { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { background: var(--red-soft); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.ok { background: var(--green-soft); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.admin { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); font-size: 13.5px; font-weight: 600; }
.admin-nav a.on { background: var(--accent-soft); color: var(--accent2); border-color: rgba(255, 107, 53, .4); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { font-size: 26px; display: block; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.tbl-wrap { overflow-x: auto; }
.usage-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.usage-bar i { display: block; height: 100%; background: var(--green); }
.usage-bar i.hot { background: var(--amber); } .usage-bar i.full { background: var(--red); }
pre.log { background: #05080f; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; overflow: auto; max-height: 520px; white-space: pre-wrap; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .grid2 { grid-template-columns: 1fr; } }

.noimg { display: grid; place-items: center; }
.noimg::after { content: ""; width: 44%; height: 44%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E"); }
