/* StoreReviews — ToolWizHub dark-glass theme. Vanilla, no framework. */
:root {
  --bg: #07070d; --bg-2: #0c0d17;
  --text: #eef0f8; --soft: #b6bcd0; --muted: #808799; --faint: #565d73;
  --panel: rgba(255,255,255,.04); --panel-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --c1: #22d3ee; --c2: #818cf8; --c3: #e879f9;
  --grad: linear-gradient(110deg, #22d3ee, #818cf8 55%, #e879f9);
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --crit: #fb7185; --high: #fb923c; --med: #fbbf24; --low: #64748b;
  --r: 18px; --r-sm: 12px; --r-pill: 999px; --maxw: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
body::before { content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none; filter: blur(80px);
  background: radial-gradient(36% 34% at 82% 8%, rgba(129,140,248,.22), transparent 60%), radial-gradient(40% 40% at 12% 22%, rgba(34,211,238,.14), transparent 62%), radial-gradient(40% 40% at 90% 60%, rgba(232,121,249,.12), transparent 62%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }

/* splash */
.splash { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, rgba(129,140,248,.16), transparent 70%), var(--bg); transition: opacity .5s, visibility .5s; }
.splash.is-hiding { opacity: 0; visibility: hidden; }
.no-splash .splash { display: none; }
.splash__stage { display: grid; place-items: center; gap: 16px; }
.splash__glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(129,140,248,.32), transparent 65%); filter: blur(18px); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.06); } }
.splash__logo { width: clamp(120px,30vw,170px); height: auto; position: relative; filter: drop-shadow(0 12px 30px rgba(129,140,248,.5)); }
.splash__word { font-family: var(--display); font-weight: 700; font-size: 22px; }
.splash__bar { width: 150px; height: 4px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.splash__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); animation: bar 1.4s ease forwards; }
@keyframes bar { to { width: 100%; } }

/* appbar */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 6px; }
.brand {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 10px 16px 10px 12px; border-radius: var(--r-pill); text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s, transform .25s var(--ease);
}
.brand:hover { transform: translateY(-1px); border-color: var(--line-2); }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand__text strong { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.brand__text span { font-size: 9px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav__pill { font-size: 12.5px; font-weight: 600; color: var(--ok); padding: 7px 13px; border-radius: var(--r-pill); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.28); white-space: nowrap; }
.nav__link { font-size: 13.5px; color: var(--soft); }
.nav__link:hover { color: var(--text); }

/* intro */
.intro { max-width: 760px; margin: clamp(24px,6vw,64px) auto; text-align: center; }
.intro__title { font-family: var(--display); font-weight: 700; font-size: clamp(32px,6vw,58px); letter-spacing: -1.5px; line-height: 1.05; }
.intro__sub { color: var(--soft); font-size: clamp(14px,1.8vw,17px); margin: 20px auto 0; max-width: 620px; }
.fetch { margin: 34px auto 0; }
.fetch__row { display: flex; gap: 10px; flex-wrap: wrap; }
.input { flex: 1; min-width: 220px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; color: var(--text); font-size: 14.5px; }
.input:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 3px rgba(129,140,248,.2); }
.sel { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sel:focus { outline: none; border-color: var(--c2); }
.sel option { background: #12131f; }
.fetch__hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.storetoggle {
  display: inline-flex; gap: 4px; margin: 0 auto 20px; padding: 5px;
  border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.st {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--soft); font-family: inherit;
  padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), transform .12s var(--ease);
}
.st__ic { width: 15px; height: 15px; flex: none; opacity: .9; }
.st:hover:not(.is-on) { color: var(--text); background: var(--panel-2); }
.st:active { transform: scale(.96); }
.st:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }
.st.is-on {
  color: #0a0a12;
  background: var(--grad);
  box-shadow: 0 6px 20px -4px rgba(129,140,248,.55), inset 0 0 0 1px rgba(255,255,255,.12);
}
.st.is-on .st__ic { opacity: 1; }
.adv { margin-top: 14px; text-align: center; }
.adv__sum { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; user-select: none; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--panel); transition: color .15s, border-color .15s; }
.adv__sum::-webkit-details-marker { display: none; }
.adv__sum::marker { content: ""; }
.adv__sum:hover { color: var(--text); border-color: var(--c2); }
.adv[open] .adv__sum { color: var(--text); }
.adv__cty { color: var(--soft); background: var(--panel-2); border-radius: var(--r-pill); padding: 1px 9px; font-family: var(--mono); font-size: 11px; }
.adv__body { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; }
.adv__lbl { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: var(--r-pill); padding: 12px 22px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s var(--ease), box-shadow .2s, border-color .2s, background .2s, color .2s; }
.btn--primary { background: var(--grad); color: #0a0a12; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(129,140,248,.5); }
.btn--ghost { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--c2); color: #cbd3ff; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .55; pointer-events: none; }
.samples { margin-top: 18px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.chipbtn { font-size: 13px; font-weight: 600; color: var(--soft); padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; transition: .15s; }
.chipbtn:hover { color: #fff; border-color: var(--c2); }
.feats3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 40px; text-align: left; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.feat b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 6px; }
.feat span { color: var(--muted); font-size: 13px; }

/* loading */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--soft); }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--line-2); border-top-color: var(--c2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* workbench */
.wb { margin: 16px 0 40px; }
.wb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wb__app { display: flex; align-items: center; gap: 14px; }
.wb__icon { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line); object-fit: cover; background: var(--panel); }
.wb__name { font-family: var(--display); font-size: 20px; }
.wb__meta { font: 600 12.5px var(--mono); color: var(--muted); }
.wb__exports { display: flex; gap: 8px; flex-wrap: wrap; }

/* analytics cards */
.cards { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 14px; margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.avg { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.avg b { font-family: var(--display); font-size: 34px; line-height: 1; }
.avg span { color: var(--muted); font-size: 12.5px; }
.dist { display: flex; flex-direction: column; gap: 5px; }
.dist__row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dist__row i { width: 30px; font-style: normal; color: var(--soft); }
.dist__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.dist__bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.dist__note { margin-top: 12px; font-size: 11px; line-height: 1.5; color: var(--faint); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 24px 0 6px; }
.pager__btn { min-width: 36px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--soft); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.pager__btn:hover:not(:disabled) { color: var(--text); border-color: var(--c2); }
.pager__btn.is-active { background: var(--grad); color: #0a0a12; border-color: transparent; }
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__gap { color: var(--faint); padding: 0 2px; }
.sent { display: flex; gap: 8px; }
.sent__pill { flex: 1; text-align: center; border-radius: var(--r-sm); padding: 12px 6px; border: 1px solid var(--line); }
.sent__pill b { display: block; font-family: var(--display); font-size: 22px; }
.sent__pill span { font-size: 11px; color: var(--muted); }
.sent__pill.neg { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.3); }
.sent__pill.neu { background: rgba(148,163,184,.08); }
.sent__pill.pos { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.themes { display: flex; flex-wrap: wrap; gap: 7px; }
.theme { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line); color: var(--soft); }
.theme b { color: var(--c1); margin-left: 4px; font-family: var(--mono); font-size: 11px; }

/* filters */
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.input--search { flex: 0 1 240px; min-width: 160px; padding: 9px 13px; font-size: 13.5px; }
.filters .sel { padding: 9px 12px; }
.filters__count { margin-left: auto; font: 600 12.5px var(--mono); color: var(--muted); }

/* review list */
.list { display: flex; flex-direction: column; gap: 12px; }
.rev { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; border-left: 4px solid var(--low); transition: border-color .18s, background .18s; }
.rev:hover { background: var(--panel-2); }
.rev[data-pl="critical"] { border-left-color: var(--crit); }
.rev[data-pl="high"] { border-left-color: var(--high); }
.rev[data-pl="medium"] { border-left-color: var(--med); }
.rev__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stars { color: var(--warn); font-size: 14px; letter-spacing: 1px; }
.stars i { color: var(--faint); font-style: normal; }
.rev__author { font-weight: 600; font-size: 13.5px; }
.rev__dot { color: var(--faint); }
.rev__date, .rev__ver { font: 600 11.5px var(--mono); color: var(--muted); }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .02em; }
.badge--pl { margin-left: auto; }
.badge--critical { background: rgba(251,113,133,.16); color: #fda4af; }
.badge--high { background: rgba(251,146,60,.16); color: #fdba74; }
.badge--medium { background: rgba(251,191,36,.16); color: #fde047; }
.badge--low { background: rgba(148,163,184,.14); color: #cbd5e1; }
.sbadge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.sbadge--negative { background: rgba(251,113,133,.14); color: #fda4af; }
.sbadge--neutral { background: rgba(148,163,184,.12); color: #cbd5e1; }
.sbadge--positive { background: rgba(52,211,153,.14); color: #6ee7b7; }
.rev__title { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.rev__text { color: var(--soft); font-size: 13.5px; line-height: 1.55; }
.rev__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cat { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line); color: var(--soft); }
.rev__status { margin-left: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; color: var(--soft); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rev.is-done { opacity: .62; }
.notebtn { background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.notebtn:hover { color: var(--text); }
.notebtn.has-note { color: var(--c1); border-color: var(--c1); }
.rev__note { margin-top: 10px; width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 13px; resize: vertical; min-height: 40px; }
.list-empty { padding: 60px 0; text-align: center; color: var(--faint); }

/* footer + toast */
.app-footer { max-width: var(--maxw); margin: 40px auto 0; padding: 26px clamp(18px,4vw,44px) 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.app-footer__brand { display: inline-flex; align-items: center; gap: 9px; opacity: .6; transition: opacity .2s; }
.app-footer__brand:hover { opacity: 1; }
.app-footer__brand img { height: 20px; }
.app-footer__brand span { font-size: 12px; font-weight: 600; color: var(--muted); }
.app-footer__copy { font-size: 12px; color: var(--faint); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px); z-index: 200; opacity: 0; pointer-events: none; background: rgba(16,16,26,.96); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; padding: 11px 18px; border-radius: var(--r-pill); box-shadow: 0 12px 32px rgba(0,0,0,.5); transition: opacity .2s, transform .2s var(--ease); }
.toast.is-show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 820px) {
  .feats3 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav__link { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
