/* ==========================================================================
   BetRate — Design system (DARK theme, RTL, IRANSansX, accessible)
   ========================================================================== */

/* ---------- IRANSansX webfont ---------- */
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IRANSansX-Regular.woff") format("woff"); }
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/IRANSansX-Medium.woff2") format("woff2"), url("../fonts/IRANSansX-Medium.woff") format("woff"); }
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IRANSansX-DemiBold.woff2") format("woff2"), url("../fonts/IRANSansX-DemiBold.woff") format("woff"); }
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/IRANSansX-Bold.woff2") format("woff2"), url("../fonts/IRANSansX-Bold.woff") format("woff"); }
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/IRANSansX-ExtraBold.woff2") format("woff2"), url("../fonts/IRANSansX-ExtraBold.woff") format("woff"); }
@font-face { font-family: "IRANSansX"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/IRANSansX-Black.woff") format("woff"); }

/* Size-adjusted local fallback — metrics tuned to IRANSansX so the swap
   from system font to the web font causes (near) zero layout shift (CLS). */
@font-face {
  font-family: "IRANSansX-fallback";
  src: local("Tahoma"), local("Arial");
  size-adjust: 96%;
  ascent-override: 90%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  /* Dark palette */
  --bg: #0a1824;
  --surface: #102a3d;
  --surface-2: #16344c;
  --surface-alt: #16344c;
  --panel: #0c2032;            /* hero / footer deep panels */
  --panel-2: #0f2942;
  --ink: #e7f0f8;
  --ink-soft: #aec3d5;
  --muted: #97acbe;   /* lightened to meet WCAG AA 4.5:1 on dark surfaces */
  --heading: #f3f9fe;
  --line: #234863;
  --line-soft: #1a3450;
  --gold: #f6c655;
  --gold-2: #e6b23e;
  --on-gold: #0a1824;
  --accent: #4bb3d6;
  --pos: #4fd08e;
  --pos-bg: rgba(79, 208, 142, .14);
  --neg: #ff8078;
  --neg-bg: rgba(255, 128, 120, .14);
  --neu: #ecc85e;
  --neu-bg: rgba(236, 200, 94, .15);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --maxw: 1160px;
  --font: "IRANSansX", "IRANSansX-fallback", "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}
h1, h2, h3, h4 { line-height: 1.5; color: var(--heading); margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 900; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* In-text links must be distinguishable by more than colour (WCAG 1.4.1) */
.prose a, .article-content a, .method-badge a, .hero-method a, .section-note a { text-decoration: underline; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
strong, b { color: var(--heading); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.1rem; }
.muted { color: var(--muted); }
.sr-only, .sr-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .06s ease, background .15s ease, box-shadow .15s; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 18px rgba(246,198,85,.2); }
.btn--primary:hover { background: var(--gold-2); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--on-gold); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #1c3f5c; }
.btn--block { width: 100%; }
.btn--sm { min-height: 34px; padding: .3rem .8rem; font-size: .85rem; }

/* ---------- Age bar & header ---------- */
.age-bar {
  background: #061019; color: #cfe0ee; font-size: .8rem; text-align: center;
  padding: .45rem 1rem; display: flex; gap: .5rem; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line-soft);
}
.age-bar span { background: var(--gold); color: var(--on-gold); font-weight: 800; border-radius: 6px; padding: 0 .4rem; }

.site-header { background: rgba(12,32,50,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand-logo { display: inline-flex; align-items: center; gap: .45rem; font-weight: 900; color: var(--heading); font-size: 1.3rem; }
.brand-logo:hover { text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 1.4rem; }
.main-nav { display: flex; gap: .3rem; margin-inline-start: auto; flex-wrap: wrap; }
.main-nav a { padding: .45rem .7rem; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--heading); }
.header-search { display: flex; gap: .3rem; }
.header-search input { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; min-width: 170px; font-family: inherit; background: var(--bg); color: var(--ink); }
.header-search button { border: none; background: var(--gold); color: var(--on-gold); border-radius: 8px; padding: 0 .9rem; cursor: pointer; font-family: inherit; font-weight: 700; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 3; margin-inline-start: auto; }
  .main-nav { display: none; width: 100%; flex-direction: column; order: 5; }
  .main-nav.open { display: flex; }
  .header-search { order: 4; width: 100%; }
  .header-search input { flex: 1; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 140% at 85% 0%, #17405e 0%, var(--panel) 55%, #081420 100%); color: #eaf3fb; padding-block: clamp(2rem, 6vw, 3.8rem); border-bottom: 1px solid var(--line-soft); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero-lead { font-size: 1.1rem; color: #cfe0ee; max-width: 40ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero-method { font-size: .9rem; color: #a7c0d6; }
.hero-method a { color: var(--gold); }
.hero-search { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.2rem; backdrop-filter: blur(4px); }
.hero-search label { display: block; font-weight: 700; margin-bottom: .5rem; color: #fff; }
.hero-search-row { display: flex; gap: .5rem; }
.hero-search-row input { flex: 1; border: none; border-radius: 9px; padding: .7rem .9rem; font-family: inherit; font-size: 1rem; background: #dfeaf2; color: #0a1824; }
.hero-quick { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.hero-quick a { background: rgba(255,255,255,.1); color: #eaf3fb; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; }
@media (max-width: 780px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.section--alt { background: var(--panel-2); border-block: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section-more { font-weight: 700; white-space: nowrap; color: var(--gold); }
.section-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Ranking table ---------- */
.ranking-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.ranking-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ranking-table th, .ranking-table td { padding: .85rem .7rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranking-table thead th { background: var(--surface-2); font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.ranking-table tbody tr:hover { background: #14344c; }
.rank-cell { font-weight: 900; font-size: 1.15rem; color: var(--gold); width: 3rem; }
.brand-cell a { display: flex; align-items: center; gap: .7rem; color: var(--heading); font-weight: 700; }
.brand-cell img { width: 52px; height: 52px; border-radius: 10px; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand-cell small { display: block; color: var(--muted); font-weight: 500; }
.sent-cell { white-space: nowrap; }
.sent-cell .pos, td.pos { color: var(--pos); font-weight: 700; }
.sent-cell .neg, td.neg { color: var(--neg); font-weight: 700; }

/* ---------- Score badge & stars ---------- */
.score-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; font-weight: 900; line-height: 1;
  border: 3px solid var(--gold); color: var(--heading); background: rgba(246,198,85,.08);
}
.score-badge--high { border-color: var(--pos); background: var(--pos-bg); }
.score-badge--mid { border-color: var(--gold); background: rgba(246,198,85,.1); }
.score-badge--low { border-color: var(--neg); background: var(--neg-bg); }
.score-badge--none { border-color: var(--line); color: var(--muted); background: transparent; }
.score-badge-value { font-size: 1.25rem; }
.score-badge-max { font-size: .6rem; color: var(--muted); font-weight: 600; }
.score-badge-label { font-size: .75rem; text-align: center; color: var(--muted); margin-top: .2rem; }

.stars { display: inline-flex; align-items: center; gap: 1px; direction: ltr; }
.star { color: var(--line); font-size: 1rem; }
.star--full { color: var(--gold); }
.star--half { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-num { margin-inline-start: .35rem; font-weight: 700; color: var(--heading); direction: rtl; font-size: .9rem; }
.stars--empty { color: var(--muted); font-size: .85rem; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.pill--pos { background: var(--pos-bg); color: var(--pos); }
.pill--neg { background: var(--neg-bg); color: var(--neg); }
.pill--neu { background: var(--neu-bg); color: var(--neu); }
.count-badge { background: var(--gold); color: var(--on-gold); font-size: .8rem; border-radius: 999px; padding: .05rem .55rem; vertical-align: middle; font-weight: 800; }

.feat { font-weight: 700; font-size: .85rem; }
.feat--yes { color: var(--pos); }
.feat--no { color: var(--neg); }
.feat--unknown { color: var(--muted); font-weight: 600; }

/* ---------- Brand grid / cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; transition: border-color .15s, transform .1s; }
.brand-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.brand-card-rank { position: absolute; inset-inline-start: .7rem; top: .7rem; background: var(--gold); color: var(--on-gold); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.brand-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.brand-card-logo { width: 76px; height: 76px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.brand-card-name { display: block; font-weight: 800; color: var(--heading); font-size: 1.05rem; }
.brand-card-en { display: block; font-size: .8rem; color: var(--muted); }
.brand-card-body { display: flex; align-items: center; gap: .9rem; }
.brand-card-count { font-size: .85rem; color: var(--ink-soft); }
.brand-card-sent { font-size: .8rem; }
.brand-card-sent .pos { color: var(--pos); } .brand-card-sent .neg { color: var(--neg); }
.brand-card-summary { font-size: .88rem; color: var(--ink-soft); margin: .8rem 0; flex: 1; }
.brand-card-cta { margin-top: auto; }

/* ---------- Mini rank / reviews strip ---------- */
.mini-rank { list-style: none; padding: 0; margin: 0; }
.mini-rank li { display: flex; justify-content: space-between; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.mini-rank a { color: var(--ink); }
.mini-rank-val { font-weight: 700; color: var(--pos); }
.mini-rank-val--neg { color: var(--neg); }
.review-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; }
.mini-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.mini-review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.mini-review h3 { font-size: 1rem; margin-bottom: .3rem; }
.mini-review p { font-size: .9rem; color: var(--ink-soft); }
.mini-review footer { font-size: .82rem; color: var(--muted); }
.mini-review a { color: var(--gold); }

/* ---------- Method / CTA sections ---------- */
.section--method { background: linear-gradient(160deg, #0e2a40, #081521); color: #d7e6f2; border-block: 1px solid var(--line-soft); }
.section--method h2 { color: #fff; }
.method-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.method-points { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.method-point { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .8rem; }
.method-point strong { display: block; color: var(--gold); }
.method-point span { font-size: .85rem; }
.section--cta { background: linear-gradient(120deg, var(--gold), var(--gold-2)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2, .cta-inner p { color: #23180a; }
.section--cta .btn--primary { background: #0a1824; color: var(--gold); }
@media (max-width: 680px) { .method-grid { grid-template-columns: 1fr; } }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 1rem; }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.article-card:hover { border-color: var(--gold); }
.article-card a { display: block; padding: 1rem; color: inherit; }
.article-card a:hover { text-decoration: none; }
.article-cat { display: inline-block; background: var(--surface-2); color: var(--gold); font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; margin-bottom: .5rem; }
.article-card h2, .article-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.article-card p { font-size: .88rem; color: var(--ink-soft); }
.article-date { font-size: .78rem; color: var(--muted); }

/* ---------- Page heads / breadcrumbs ---------- */
.page-head { padding-block: 1.6rem 1rem; }
.page-lead { color: var(--ink-soft); max-width: 65ch; }
.breadcrumbs { font-size: .82rem; margin-bottom: .6rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: .3rem; color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--muted); }
.method-badge { font-size: .85rem; background: var(--surface-2); border-radius: 8px; padding: .5rem .8rem; display: inline-block; }

/* ---------- Brands listing layout ---------- */
.brands-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 3rem; }
.brand-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.brand-filters label { font-weight: 600; font-size: .9rem; }
.brand-filters input[type=search], .brand-filters select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; font-family: inherit; margin-top: .3rem; background: var(--bg); color: var(--ink); }
.filter-checks { border: 1px solid var(--line); border-radius: 8px; padding: .7rem; }
.filter-checks legend { font-weight: 700; font-size: .85rem; padding-inline: .3rem; }
.check { display: flex; align-items: center; gap: .4rem; font-weight: 500; cursor: pointer; margin-block: .25rem; }
.check--inline { margin: 0; }
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
@media (max-width: 820px) { .brands-layout { grid-template-columns: 1fr; } .brand-filters { position: static; } }

/* ---------- Empty / alerts ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .92rem; border: 1px solid transparent; }
.alert--success { background: var(--pos-bg); color: var(--pos); border-color: rgba(79,208,142,.35); }
.alert--error { background: var(--neg-bg); color: var(--neg); border-color: rgba(255,128,120,.35); }
.alert--error ul { margin: .4rem 0 0; }
.alert--info { background: rgba(75,179,214,.12); color: #7fd0ec; border-color: rgba(75,179,214,.3); }

/* ---------- Brand page ---------- */
.brand-header { background: radial-gradient(120% 160% at 90% 0%, #184766 0%, var(--panel) 55%, #071320 100%); color: #eaf3fb; padding-block: 1.8rem 2.2rem; border-bottom: 1px solid var(--line-soft); }
.brand-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.brand-identity { display: flex; gap: 1.2rem; align-items: center; }
.brand-logo-lg { width: 120px; height: 120px; border-radius: 20px; background: #fff; padding: 10px; object-fit: contain; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.brand-header h1 { color: #fff; margin-bottom: .3rem; }
.brand-en { font-size: 1rem; color: var(--gold); font-weight: 600; }
.brand-summary { color: #cfe0ee; margin: 0; }
.brand-header-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #a7c0d6; margin-top: .5rem; align-items: center; }
.confidence { padding: .1rem .5rem; border-radius: 999px; font-weight: 700; }
.confidence--high { background: var(--pos-bg); color: var(--pos); }
.confidence--mid { background: var(--neu-bg); color: var(--neu); }
.confidence--low { background: var(--neg-bg); color: var(--neg); }
.brand-scorecard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.1rem; min-width: 240px; backdrop-filter: blur(4px); }
.scorecard-main { display: flex; justify-content: center; margin-bottom: .8rem; }
.scorecard-breakdown { display: grid; gap: .4rem; margin: 0 0 .9rem; }
.scorecard-breakdown div { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.scorecard-breakdown dt { color: #a7c0d6; }
.scorecard-breakdown dd { margin: 0; font-weight: 700; color: #fff; }
.brand-header-cta { display: grid; gap: .5rem; }

.brand-body { display: grid; grid-template-columns: 1fr 300px; gap: 1.8rem; padding-block: 1.8rem 3rem; align-items: start; }
.brand-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.brand-section h2 { border-bottom: 2px solid var(--line); padding-bottom: .5rem; }
.prose { color: var(--ink-soft); }
.prose a { color: var(--gold); text-decoration: underline; }
.unverified-note { color: var(--muted); font-style: italic; background: var(--surface-2); padding: .7rem; border-radius: 8px; }

.trust-snapshot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .8rem; }
.trust-cell { text-align: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem .4rem; }
.trust-cell--pos { background: var(--pos-bg); } .trust-cell--neg { background: var(--neg-bg); }
.trust-num { display: block; font-size: 1.4rem; font-weight: 900; color: var(--heading); }
.trust-num-sm { display: block; font-size: .9rem; font-weight: 700; color: var(--heading); }
.trust-label { font-size: .76rem; color: var(--ink-soft); }
.trust-warning { margin: .9rem 0 0; font-size: .85rem; color: var(--neu); background: var(--neu-bg); padding: .6rem .8rem; border-radius: 8px; }

.dist { display: grid; gap: .4rem; }
.dist-row { display: grid; grid-template-columns: 3rem 1fr 2.5rem; align-items: center; gap: .6rem; }
.dist-star { font-size: .85rem; font-weight: 700; }
.dist-bar { background: var(--surface-2); border-radius: 999px; height: 12px; overflow: hidden; }
.dist-fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.dist-count { font-size: .82rem; color: var(--ink-soft); text-align: start; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pros h3 { color: var(--pos); } .cons h3 { color: var(--neg); }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li { padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 560px) { .pros-cons-grid { grid-template-columns: 1fr; } }

.feature-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .1rem .8rem; }
.feature-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem .3rem; border-bottom: 1px solid var(--line); }
.feature-name { font-size: .9rem; }
.info-list { display: grid; gap: .1rem; margin: 0; }
.info-list div { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--ink-soft); font-weight: 600; }
.info-list dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .info-list div { grid-template-columns: 1fr; gap: .2rem; } }
.disclaimer-inline { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

.tag-cloud { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag-chip { background: var(--surface-2); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.tag-chip--sm { font-size: .75rem; padding: .15rem .55rem; }

/* ---------- Reviews ---------- */
.review-list { display: grid; gap: 1rem; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); }
.review-card--editorial { border-color: var(--gold); background: rgba(246,198,85,.06); }
.review-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.review-name { font-weight: 800; color: var(--heading); }
.author-badge { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; margin-inline-start: .4rem; }
.author-badge--editorial, .author-badge--admin_note { background: var(--gold); color: var(--on-gold); }
.author-badge--brand { background: var(--accent); color: #05202b; }
.review-meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.review-title { font-size: 1.05rem; margin: .3rem 0; }
.review-body { color: var(--ink); }
.review-brand { font-size: .82rem; color: var(--muted); }
.edit-note { font-size: .8rem; color: var(--neu); background: var(--neu-bg); padding: .4rem .7rem; border-radius: 8px; }
.review-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.review-actions { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.helpful-label { font-size: .82rem; color: var(--ink-soft); }
.helpful-btn, .report-btn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; cursor: pointer; font-family: inherit; color: var(--ink); }
.helpful-btn:hover { background: #1c3f5c; }
.helpful-btn[disabled] { opacity: .6; cursor: default; }
.helpful-btn.voted { background: var(--pos-bg); border-color: rgba(79,208,142,.4); color: var(--pos); }
.report-btn { margin-inline-start: auto; color: var(--muted); }
.review-replies { margin-top: .8rem; display: grid; gap: .6rem; }
.review-reply { background: var(--surface-2); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.reply-label { font-size: .75rem; font-weight: 800; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: .05rem .5rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label, .review-form > .field > label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password],
input[type=number], input[type=date], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .6rem .75rem;
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.req { color: var(--neg); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; direction: rtl; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; padding: 0 .1rem; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.sentiment-input, .tag-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.radio-pill, .tag-pill { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.radio-pill input, .tag-pill input { accent-color: var(--gold); }
.review-form-section .muted { margin-bottom: 1rem; }

.char-counter { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.char-counter--short { color: var(--neu); }
.char-counter--ok { color: var(--pos); font-weight: 700; }

.responsible-inline { background: var(--neu-bg); color: var(--neu); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .85rem; }
.responsible-inline a { color: var(--gold); }
.response-toggle summary, .faq-item summary { cursor: pointer; font-weight: 700; padding: .5rem 0; color: var(--heading); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .5rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem .9rem; }

/* ---------- Sidebar ---------- */
.brand-sidebar { display: grid; gap: 1.2rem; position: sticky; top: 90px; }
.sidebar-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.sidebar-box h3 { font-size: 1rem; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list a { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.related-list img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 4px; }
.related-score { margin-inline-start: auto; font-weight: 800; color: var(--gold); }
.sidebar-method a { font-weight: 700; color: var(--gold); }
@media (max-width: 900px) { .brand-body { grid-template-columns: 1fr; } .brand-sidebar { position: static; } .brand-header-inner { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.compare-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.5rem; }
.compare-picker-row { display: flex; gap: .5rem; margin: .5rem 0; flex-wrap: wrap; }
.compare-picker-row select { flex: 1; min-width: 200px; }
.compare-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.compare-chip { background: var(--surface-2); border-radius: 999px; padding: .3rem .4rem .3rem .8rem; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }
.compare-chip button { border: none; background: var(--neg); color: #fff; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { padding: .8rem; text-align: center; border: 1px solid var(--line); }
.compare-table thead th a { display: grid; gap: .3rem; justify-items: center; color: var(--heading); }
.compare-table thead th img { width: 64px; height: 64px; border-radius: 12px; background: #fff; padding: 5px; object-fit: contain; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.compare-table tbody th { text-align: start; background: var(--surface-2); font-weight: 700; color: var(--heading); }

/* ---------- Articles single / static ---------- */
.article-single, .static-page { max-width: 780px; padding-block: 1.6rem 3rem; }
.article-byline { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.article-content, .static-page .prose { font-size: 1.05rem; color: var(--ink); }
.static-updated { color: var(--muted); font-size: .82rem; margin-top: 2rem; }
.articles-layout { display: grid; grid-template-columns: 1fr 240px; gap: 1.6rem; padding-bottom: 3rem; }
.cat-list { list-style: none; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
@media (max-width: 780px) { .articles-layout { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.6rem; padding-bottom: 3rem; align-items: start; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Message / error pages ---------- */
.message-page, .error-page { max-width: 640px; text-align: center; padding-block: 3rem; margin-inline: auto; }
.message-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.error-code { font-size: 4rem; font-weight: 900; color: var(--gold); }
.error-actions { display: flex; gap: .7rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #071320; color: #b6cadb; margin-top: 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; padding-block: 2.4rem 1.5rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col a { display: block; color: #9db6cb; padding: .25rem 0; font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand { color: #fff; margin-bottom: .6rem; }
.footer-about p { font-size: .9rem; color: #93aec4; }
.footer-note { font-size: .82rem; color: #7e99b0; }
.responsible-note { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding-block: 1rem; font-size: .84rem; color: #93aec4; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 1.2rem; font-size: .84rem; flex-wrap: wrap; gap: .5rem; }
.footer-social a { color: var(--gold); margin-inline-start: .8rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
