/* ===========================================================
   PopZars — design system (Clean Blue Theme)
   Flat, minimal UI. No web fonts, no icon font, no CDN.
   =========================================================== */

/* ---------- tokens ---------- */
:root {
  /* Replaced vibrant neon colors with a clean, flat blue palette */
  --blue: #2563eb;
  --blue-lite: #3b82f6;
  --violet: var(--blue);
  --violet-lite: var(--blue-lite);
  --cyan: #60a5fa;
  --gold: #f59e0b;
  --pink: #ec4899;
  --green: #22c55e;
  --red: #ef4444;

  /* Replaced heavy gradients with solid or subtle flat colors */
  --grad-gem: var(--blue);
  --grad-gold: var(--gold);

  /* Clean, light backgrounds */
  --bg: #f8f9fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --raise: #f1f5f9;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  /* High contrast, standard typography colors */
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;

  /* Standardized, softer border radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Flat, subtle shadows replacing heavy drop-shadows */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ring: 0 0 0 2px #bfdbfe;

  --wrap: 1200px;
  --header-h: 68px;

  color-scheme: light;
}

/* Kept the light theme block for toggle compatibility, matching root */
[data-theme="light"] {
  --bg: #f8f9fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --raise: #f1f5f9;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;

  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1);

  color-scheme: light;
}

/* Added dark mode toggle fallback (optional, if user clicks moon icon) */
[data-theme="dark"] {
  --bg: #0f172a; --bg-2: #1e293b; --surface: #1e293b; --surface-solid: #1e293b;
  --raise: #334155; --line: #334155; --line-2: #475569;
  --text: #f8fafc; --muted: #cbd5e1; --dim: #94a3b8;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Removed background decorative gradients for a clean look */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: none; 
}
[data-theme="light"] body::before {
  background: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--raise); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.site-main { min-height: 60vh; padding-block: 1.5rem 4rem; }
.section { margin-block: 3rem; }
.section:first-child { margin-top: 1.5rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); display: flex; align-items: center; gap: .6rem; }
.section-head h2 .ico { width: 1.1em; height: 1.1em; color: var(--blue); }
.section-head .more { color: var(--muted); font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.section-head .more:hover { color: var(--blue); }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 900px) {
    .card { backdrop-filter: none; } /* Removed blur for clean look */
    .site-header .bar { backdrop-filter: none; }
  }
}

/* ===========================================================
   Header - Changed to a solid blue bar like the image reference
   =========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .bar {
  background: var(--blue); /* Solid blue header */
  border-bottom: none;
  color: #ffffff; /* Force text to white on blue */
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; flex: none; color: #ffffff; }
.logo .gem { width: 30px; height: 30px; color: #ffffff; fill: currentColor; stroke: none; filter: none; } /* Removed drop-shadow */
.logo .name { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ffffff; } /* Removed text gradient */
.logo img { width: auto; height: 34px; }

.header-search { flex: 1; max-width: 520px; margin-inline: auto; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .ico { position: absolute; left: .85rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input {
  width: 100%; padding: .62rem 1rem .62rem 2.6rem;
  background: #ffffff; border: 1px solid #ffffff; /* White input inside blue header */
  border-radius: 999px; color: var(--text); font-size: .92rem;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: #ffffff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: #ffffff; /* White nav links */
  background: none; border: 0;
}
.nav a:hover, .nav button:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.nav .ico { width: 17px; height: 17px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 50%;
  min-width: 260px; padding: .4rem;
  background: var(--surface-solid); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity .16s, translate .16s, visibility .16s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; translate: -50% 0;
}
.dropdown-menu a { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 8px; color: var(--text); font-size: .88rem; }
.dropdown-menu a:hover { color: var(--blue); background: var(--raise); }
.dropdown-menu .ico { width: 18px; height: 18px; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: none; background: rgba(255,255,255,0.15); color: #ffffff;
}
.icon-btn:hover { color: #ffffff; background: rgba(255,255,255,0.25); }
.icon-btn .ico { width: 19px; height: 19px; }
.burger { display: none; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 100;
  background: var(--surface-solid); border-right: 1px solid var(--line-2);
  translate: -100% 0; transition: translate .25s ease;
  overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .1rem;
}
.drawer[data-open="true"] { translate: 0 0; }
.drawer .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; color: var(--text); }
.drawer a { display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.drawer a:hover { background: var(--raise); color: var(--blue); }
.drawer .ico { width: 19px; height: 19px; }
.drawer .label { margin: 1rem 0 .35rem .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.scrim {
  position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--surface-solid); /* Removed heavy radial gradients */
  margin-block: 1rem 2.5rem;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(1.75rem, 5.2vw, 3.1rem); max-width: 20ch; margin-bottom: .85rem; }
.hero h1 .shine { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--blue); } /* Flat text */
.hero p { color: var(--muted); max-width: 60ch; font-size: clamp(.95rem, 2vw, 1.08rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.5rem; font-weight: 800; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.hero-stats span { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: translate .15s, box-shadow .15s, background .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); } /* Flat background */
.btn-primary:hover { box-shadow: var(--shadow-lg); background: var(--blue-lite); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--raise); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ===========================================================
   App cards - Flat layout, subtle borders
   =========================================================== */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.grid > * { content-visibility: auto; contain-intrinsic-size: auto 250px; }

.app-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: .9rem; border-radius: var(--radius);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: none; /* Removed default box-shadow */
  transition: border-color .18s, translate .18s, box-shadow .18s;
}
.app-card:hover { border-color: var(--blue); translate: 0 -2px; box-shadow: var(--shadow); }

.app-card .thumb {
  position: relative; aspect-ratio: 1; border-radius: 20%; /* App-store style rounding */
  overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--line); /* White background for icons */
}
.app-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.app-card h3 {
  font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden;
}
.app-card .cat { font-size: .72rem; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.app-card .meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; font-size: .78rem; color: var(--muted); }

.badges { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .22rem .5rem; border-radius: 999px;
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.badge .ico { width: 11px; height: 11px; }
.badge-hot { background: var(--red); color: #fff; }
.badge-featured { background: var(--blue); color: #fff; }
.badge-choice { background: var(--gold); color: #fff; }
.badge-web { background: var(--cyan); color: #fff; }
.badge-affiliate { background: var(--green); color: #fff; }

/* rating */
.stars { display: inline-flex; gap: 1px; color: var(--gold); vertical-align: -2px; }
.stars .star { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .empty { color: var(--line-2); fill: none; stroke: currentColor; }
.stars-lg .star { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 700;
  background: var(--raise); color: var(--muted); border: 1px solid var(--line);
}
.pill .ico { width: 12px; height: 12px; }

/* ===========================================================
   Category cards
   =========================================================== */
.cat-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.cat-card {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem; border-radius: var(--radius);
  background: var(--surface-solid); border: 1px solid var(--line);
  transition: border-color .18s, translate .18s;
}
.cat-card:hover { translate: 0 -2px; border-color: var(--blue); }
.cat-card .bubble {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--raise); /* Removed weird color mixing */
  border: 1px solid var(--line);
}
.cat-card .bubble .ico { width: 23px; height: 23px; color: var(--blue); }
.cat-card b { display: block; font-size: .93rem; color: var(--text); }
.cat-card span { font-size: .78rem; color: var(--dim); }

/* ===========================================================
   App detail
   =========================================================== */
.breadcrumbs { margin-bottom: 1.25rem; font-size: .82rem; color: var(--dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--text); }

.app-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.app-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-hero .icon { width: 104px; height: 104px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); }
.app-hero .icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero h1 { font-size: clamp(1.4rem, 3.6vw, 2.05rem); margin-bottom: .3rem; color: var(--text); }
.app-hero .dev { color: var(--muted); font-size: .9rem; }
.app-hero .dev a { color: var(--blue); font-weight: 600; }
.app-hero .quick { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .85rem; font-size: .85rem; color: var(--muted); }
.app-hero .quick span { display: inline-flex; align-items: center; gap: .35rem; }
.app-hero .quick .ico { width: 15px; height: 15px; color: var(--dim); }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem;
}
.spec-grid div { background: var(--surface-solid); padding: .85rem 1rem; }
.spec-grid dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 700; margin-bottom: .2rem; }
.spec-grid dd { margin: 0; font-size: .88rem; font-weight: 600; word-break: break-word; color: var(--text); }

/* download panel */
.dl-panel { position: sticky; top: calc(var(--header-h) + 1rem); }
.dl-card { padding: 1.35rem; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dl-card .price { font-size: 1.6rem; font-weight: 800; margin-bottom: .2rem; color: var(--text); }
.dl-card .price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.dl-card .size { color: var(--dim); font-size: .85rem; margin-bottom: 1.1rem; }

.verified {
  display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; padding: .8rem;
  border-radius: var(--radius-sm); font-size: .8rem; line-height: 1.5;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
}
.verified .ico { width: 17px; height: 17px; color: var(--green); margin-top: 1px; }
[data-theme="light"] .verified { color: #166534; }
.verified a { color: inherit; text-decoration: underline; }

.checksum {
  margin-top: .75rem; padding: .7rem .8rem; border-radius: var(--radius-sm);
  background: var(--raise); border: 1px solid var(--line);
  font-size: .68rem; word-break: break-all; color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.checksum b { display: block; color: var(--text); margin-bottom: .25rem; letter-spacing: .04em; }

.notice {
  display: flex; gap: .7rem; padding: .95rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .85rem; line-height: 1.55; margin-top: 1rem;
}
.notice .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice-affiliate { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.notice-risk { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice-info { background: var(--raise); border: 1px solid var(--line); color: var(--muted); }
[data-theme="light"] .notice-affiliate { color: #1e3a8a; }
[data-theme="light"] .notice-risk { color: #991b1b; }
.notice b { display: block; margin-bottom: .15rem; color: var(--text); }

.shots { display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { flex: none; width: 190px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); scroll-snap-align: start; }

/* prose */
.prose { font-size: 1rem; line-height: 1.75; color: var(--text); }
[data-theme="light"] .prose { color: var(--text); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose h2, .prose h3 { color: var(--text); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .4rem; }
.prose strong { color: var(--text); }
.prose img { border-radius: 12px; margin-inline: auto; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; }
.prose th { background: var(--raise); color: var(--text); }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-solid); padding: 0 1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary {
  cursor: pointer; padding: .95rem 0; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; color: var(--dim); transition: rotate .2s; }
.faq details[open] summary .ico { rotate: 180deg; color: var(--blue); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: .9rem 0 1.1rem; color: var(--muted); font-size: .93rem; line-height: 1.7; }

/* author box */
.author-box { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); }
.author-box .avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--raise); display: grid; place-items: center; color: var(--dim); border: 1px solid var(--line); overflow: hidden; }
.author-box .avatar .ico { width: 26px; height: 26px; }
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box b { font-size: .95rem; color: var(--text); }
.author-box .role { font-size: .78rem; color: var(--blue); font-weight: 600; margin-bottom: .4rem; }
.author-box p { font-size: .86rem; color: var(--muted); line-height: 1.6; }

/* reviews */
.review { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.review .who { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--raise); color: var(--text); border: 1px solid var(--line); flex: none; }
.review .name { font-weight: 600; font-size: .9rem; color: var(--text); }
.review .when { font-size: .75rem; color: var(--dim); }
.review p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

.form-row { display: grid; gap: .35rem; margin-bottom: 1rem; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--text); }
.input, .form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--text); font-size: .93rem;
}
.input:focus, .form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--blue); box-shadow: var(--ring);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: .76rem; color: var(--dim); }

.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; position: relative; }
.star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-pick label { cursor: pointer; color: var(--line-2); }
.star-pick label .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--gold); }
.star-pick input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }

/* ===========================================================
   Listing / filters
   =========================================================== */
.page-head { margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .4rem; color: var(--text); }
.page-head p { color: var(--muted); max-width: 72ch; font-size: .95rem; }
.count { font-size: .85rem; color: var(--dim); margin-top: .5rem; }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.filters select {
  padding: .6rem 2.2rem .6rem .9rem; border-radius: 999px;
  background-color: var(--surface-solid); border: 1px solid var(--line-2); color: var(--text);
  font-size: .87rem; font-weight: 600; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
}
.filters select:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--muted);
}
.chip:hover { color: var(--blue); border-color: var(--blue); }
.chip[aria-current="page"] { background: var(--blue); color: #fff; border-color: transparent; }

.empty { text-align: center; padding: 4rem 1rem; }
.empty .ico { width: 46px; height: 46px; color: var(--dim); margin: 0 auto 1rem; }
.empty h3 { margin-bottom: .5rem; color: var(--text); }
.empty p { color: var(--muted); margin-bottom: 1.5rem; }

.pagination-nav { margin-top: 2.5rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; }
.page-link {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: .75rem;
  border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--line-2);
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.page-link:hover { color: var(--blue); border-color: var(--blue); }
.page-link.active { background: var(--blue); color: #fff; border-color: transparent; }
.page-dots { display: grid; place-items: center; min-width: 32px; height: 40px; color: var(--dim); }

/* flash */
.flash { padding: .9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.flash-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
[data-theme="light"] .flash-success { color: #166534; }
[data-theme="light"] .flash-error { color: #991b1b; }
[data-theme="light"] .flash-warning { color: #92400e; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 4rem; }
.footer-risk {
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; font-size: .82rem; line-height: 1.65;
  display: flex; gap: .75rem; margin-top: 2rem;
}
.footer-risk .ico { width: 19px; height: 19px; color: var(--red); flex: none; margin-top: 2px; }
.footer-risk strong { color: var(--text); }

.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr repeat(3, 1fr); padding-block: 3rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .85rem; max-width: 42ch; line-height: 1.7; }
.footer-col h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--muted); font-size: .88rem; }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .83rem; color: var(--dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--blue); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 1fr; }
  .dl-panel { position: static; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-search { display: none; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats b { font-size: 1.25rem; }
}
@media (min-width: 861px) { .mobile-search { display: none; } }
.mobile-search { margin-bottom: 1rem; }

@media (max-width: 620px) {
  .app-hero { grid-template-columns: 1fr; text-align: center; padding: 1.25rem; }
  .app-hero .icon { width: 88px; height: 88px; margin-inline: auto; }
  .app-hero .quick { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: .75rem; }
  .btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
  .shots img { width: 152px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .site-header, .site-footer, .dl-panel, .scrim, .drawer { display: none; }
  body::before { display: none; }
}
/* Override to make the header search input a bit grey */
.site-header .search-box input {
  background-color: #f1f5f9; /* A soft, light grey */
  border-color: #e2e8f0;     /* A slightly darker grey border */
}

/* Make it pop to pure white when the user clicks into it */
.site-header .search-box input:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}