/* ==========================================================================
   TradingExpert stylesheet v2 — "paper & indigo" editorial layout.
   Hand-written, no build step. Tokens → base → shell → components → pages
   ========================================================================== */

:root {
  --paper: #faf8f3;
  --paper-2: #f2efe6;
  --surface: #ffffff;
  --ink: #15152b;
  --ink-2: #2e2e48;
  --muted: #6b6b82;
  --line: #e6e3d9;
  --line-2: #d3cfc1;
  --primary: #3a3fd6;
  --primary-700: #2b2fa8;
  --primary-50: #eceefc;
  --lime: #c9f25a;
  --lime-700: #6f9a0f;
  --lime-50: #f3fbd9;
  --coral: #ff5c3a;
  --coral-50: #ffece7;
  --green: #1d8a4f;
  --green-50: #e3f6ea;
  --amber: #f2b632;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 21, 43, .05), 0 12px 32px -18px rgba(21, 21, 43, .25);
  --shadow-lg: 0 24px 60px -24px rgba(21, 21, 43, .4);
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --narrow: 820px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--paper); }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: 'opsz' 96; font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
small { font-size: .85em; color: var(--muted); }
code { background: var(--paper-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--narrow); }
.sec { padding: 3.5rem 0; }
.sec--tint { background: var(--paper-2); }
.sec--center { text-align: center; padding: 6rem 0; }
.sec__head { max-width: 720px; margin-bottom: 1.5rem; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sec__title { margin-bottom: .4rem; }
.sec__title--sm { font-size: 1.35rem; margin: 2.25rem 0 1rem; }
.sec__lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.note { font-size: .9rem; color: var(--muted); }
.risk { font-size: .78rem; color: var(--muted); margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7rem 1.15rem; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-700); box-shadow: 0 10px 22px -12px var(--primary); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #b8e33f; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: .5rem .85rem; font-size: .85rem; }
.btn--xs { padding: .4rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn--lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.actions--center { justify-content: center; }

/* ---------- Chips / seg / stars / logo / score ---------- */
.chips { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.chips--lg .chip { padding: .5rem .9rem; font-size: .95rem; }
.chips--tiny .chip { padding: .1rem .45rem; font-size: .72rem; }
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .28rem .65rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.chip--muted { color: var(--muted); }
.chip--btn { cursor: pointer; background: var(--surface); transition: background .15s, border-color .15s, color .15s; }
.chip--btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip--btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--check { cursor: pointer; background: var(--surface); position: relative; padding: .45rem .9rem; font-size: .9rem; }
.chip--check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip--check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--check:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg--wide { display: flex; }
.seg__opt { flex: 1; position: relative; text-align: center; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: block; padding: .55rem .6rem; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; }
.seg__opt:has(input:checked) span { background: var(--ink); color: #fff; }
.seg__opt:has(input:focus-visible) span { outline: 3px solid var(--lime); }
.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.star { position: relative; width: 18px; height: 18px; }
.stars--xs .star { width: 12px; height: 12px; }
.stars--sm .star { width: 14px; height: 14px; }
.stars--lg .star { width: 24px; height: 24px; }
.star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star__base path { fill: var(--line-2); }
.star__fill { clip-path: inset(0 100% 0 0); }
.star.is-full .star__fill { clip-path: none; }
.star.is-half .star__fill { clip-path: inset(0 50% 0 0); }
[dir="rtl"] .star.is-half .star__fill { clip-path: inset(0 0 0 50%); }
.logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--logo-size, 56px); height: var(--logo-size, 56px); border-radius: 24%; background: var(--logo-bg); color: var(--logo-fg); font-family: var(--font-display); font-weight: 700; font-size: calc(var(--logo-size, 56px) * .42); letter-spacing: -.03em; }
.score { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1; }
.score--lg { font-size: 2rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .8); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar strong { color: var(--lime); }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.hdr.is-scrolled { box-shadow: var(--shadow); }
.hdr__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand--light { color: #fff; }
.hdr__nav { flex: 1; }
.hdr__nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.hdr__nav a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.hdr__nav a:hover { background: var(--paper-2); text-decoration: none; }
.hdr__nav a.is-active { color: var(--primary); font-weight: 700; }
.hdr__tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.hsearch { position: relative; }
.hsearch input { width: 150px; padding: .5rem .85rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; transition: width .2s; }
.hsearch input:focus { width: 240px; }
.hsearch__results { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 60; }
.hsearch__results a { display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.hsearch__results a:hover, .hsearch__results a[aria-selected="true"] { background: var(--paper-2); text-decoration: none; }
.hsearch__results .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .5rem .6rem .2rem; }
.hsearch__results .none { padding: .6rem; color: var(--muted); font-size: .9rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle__bar { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Country mega-menu */
.cmenu { position: relative; }
.cmenu__btn { list-style: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }
.cmenu__btn::-webkit-details-marker { display: none; }
.cmenu__btn svg { width: 18px; height: 18px; }
.cmenu__caret { width: 14px !important; height: 14px !important; transition: transform .2s; }
.cmenu[open] .cmenu__caret { transform: rotate(180deg); }
.cmenu__panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: min(92vw, 760px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 70; overflow: hidden; }
.cmenu__head { padding: .9rem; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; }
.cmenu__head input { width: 100%; padding: .65rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); }
.cmenu__body { position: relative; max-height: min(60vh, 440px); overflow: auto; padding: .5rem .9rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.cmenu__region { padding: .5rem 0; }
.cmenu__region h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: .4rem 0 .3rem; }
.cmenu__region ul { list-style: none; margin: 0; padding: 0; }
.cmenu__region li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.cmenu__region li > a { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .32rem .4rem; border-radius: 6px; color: var(--ink); font-size: .92rem; }
.cmenu__region li > a:hover { background: var(--paper-2); text-decoration: none; }
.cmenu__region li > a small { margin-inline-start: auto; }
.cmenu__flag { font-size: 1.05rem; }
.cmenu__langs { display: inline-flex; gap: .2rem; }
.cmenu__langs a { font-size: .65rem; font-weight: 700; padding: .1rem .3rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.cmenu__langs a:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }
.cmenu__empty { grid-column: 1 / -1; color: var(--muted); padding: 1rem 0; }
.cmenu__foot { padding: .7rem .9rem; border-top: 1px solid var(--line); background: var(--paper); font-size: .9rem; font-weight: 600; }
@media (max-width: 960px) {
  .hdr__nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .hdr__nav.is-open { display: block; }
  .hdr__nav ul { flex-direction: column; padding: .6rem 1rem 1rem; }
  .hdr__nav a { padding: .75rem .8rem; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .hsearch { display: none; }
  .cmenu__panel { position: fixed; inset: 66px 0 0; width: auto; border-radius: 0; }
  .cmenu__body { grid-template-columns: 1fr; max-height: none; }
  .topbar span { display: none; }
}
@media (max-width: 600px) { .cmenu__btn span { display: none; } }

/* ---------- Finder hero ---------- */
.fhero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.fhero__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: start; }
.fhero__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; margin-bottom: .75rem; }
.fhero__title em { font-style: italic; color: var(--primary); }
.fhero__lead { font-size: 1.1rem; color: var(--muted); max-width: 58ch; margin-bottom: 1.75rem; }
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.finder__step { position: relative; border: 0; padding: 0 0 0 2.6rem; margin: 0; min-width: 0; }
.finder__num { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.finder__q { display: block; font-weight: 700; margin-bottom: .55rem; color: var(--ink); padding: 0; }
.finder select { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font-size: 1rem; }
.finder__actions { padding-left: 2.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.finder__note { margin: 0; font-size: .82rem; color: var(--muted); max-width: 32ch; }
.fhero__preview { position: sticky; top: 90px; }
.preview { background: var(--ink); color: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.preview__kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-bottom: .5rem; }
.preview__title { color: #fff; font-size: 1.6rem; margin-bottom: .5rem; }
.preview__text { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.preview__facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.preview__facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.preview__facts strong { color: var(--lime); }
.preview__list { list-style: none; padding: 0; margin: .75rem 0 1rem; display: grid; gap: .4rem; }
.preview__list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; background: rgba(255, 255, 255, .06); border-radius: 10px; }
.preview__list li .logo { --logo-size: 32px; }
.preview__list li span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.preview__list li small { color: rgba(255, 255, 255, .6); }
.preview__list li b { font-family: var(--font-display); color: var(--lime); font-size: 1.1rem; }
.preview__list .preview__empty { justify-content: center; color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 960px) { .fhero__grid { grid-template-columns: 1fr; } .fhero__preview { position: static; } }
@media (max-width: 520px) { .finder { padding: 1.1rem; } .finder__step, .finder__actions { padding-left: 0; } .finder__num { position: static; margin-bottom: .4rem; } }

/* ---------- Regulator marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .85); padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee__item { font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; white-space: nowrap; }
.marquee__item::after { content: '·'; margin-inline-start: 2.5rem; color: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Platform table ---------- */
.ptable-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 880px; }
.ptable th, .ptable td { padding: .8rem .85rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable thead th { background: var(--paper-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.ptable thead button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.ptable thead button:hover { color: var(--primary); }
.ptable thead th[aria-sort] button { color: var(--primary); }
.ptable tbody tr:hover { background: var(--paper); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable__rank { width: 2.5rem; color: var(--muted); font-weight: 700; text-align: center; }
.ptable__name a { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.ptable__name a span { display: flex; flex-direction: column; line-height: 1.2; }
.ptable__score { white-space: nowrap; }
.ptable__score .score { display: block; }
.ptable__dep { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ptable__fees { max-width: 220px; }
.ptable__reg { white-space: nowrap; }
.ptable__risk { text-align: center; color: var(--coral); font-weight: 700; }
.ptable__risk--none { color: var(--muted); font-weight: 400; }
.ptable__act { white-space: nowrap; }
.ptable__act .btn { margin-inline-end: .5rem; }
.compare-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); cursor: pointer; }
.listing__empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }

/* ---------- Scoring stacked bar ---------- */
.scoring { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.stack { display: flex; height: 54px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 21, 43, .08); }
.stack__seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; min-width: 0; }
.stack__seg--1, .stack__dot--1 { background: var(--primary); }
.stack__seg--2, .stack__dot--2 { background: #5b60e6; }
.stack__seg--3, .stack__dot--3 { background: #7f83ee; }
.stack__seg--4, .stack__dot--4 { background: #a6a9f4; }
.stack__seg--5, .stack__dot--5 { background: #c9cbf8; }
.stack__seg--5 b { color: var(--ink); }
.stack__legend { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.stack__legend li { display: grid; grid-template-columns: 14px 1fr; gap: .6rem 0.7rem; align-items: baseline; }
.stack__legend small { grid-column: 2; color: var(--muted); }
.stack__dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; position: relative; top: 1px; }
.stack__legend--article { margin-bottom: 2rem; }
@media (max-width: 900px) { .scoring { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Region bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento__cell { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 170px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.bento__cell:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); text-decoration: none; }
.bento__cell--wide { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.bento__flags { display: flex; flex-wrap: wrap; gap: .3rem; font-size: 1.4rem; line-height: 1; }
.bento__body { display: flex; flex-direction: column; gap: .2rem; }
.bento__body strong { font-family: var(--font-display); font-size: 1.35rem; }
.bento__body span { font-size: .88rem; color: var(--muted); }
.bento__cell--wide .bento__body span { color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .bento__cell--wide { grid-column: span 1; } }

/* ---------- Split: log + guides ---------- */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.log { list-style: none; margin: 0 0 1rem; padding: 0; border-inline-start: 2px solid var(--line-2); }
.log__item { position: relative; padding: 0 0 1.25rem 1.5rem; display: grid; gap: .25rem; }
.log__item::before { content: ''; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--line-2); }
.log__item time { font-size: .78rem; color: var(--muted); font-weight: 600; }
.log__kind { justify-self: start; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.log__kind--licence { background: var(--green-50); color: var(--green); }
.log__kind--fees { background: var(--coral-50); color: #b83a1f; }
.log__kind--listing { background: var(--primary-50); color: var(--primary); }
.log__kind--review { background: var(--lime-50); color: var(--lime-700); }
.log__item p { margin: 0; }
.feat { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: var(--ink); color: #fff; border-radius: 14px; margin-bottom: 1rem; transition: transform .15s; }
.feat:hover { transform: translateY(-2px); text-decoration: none; }
.feat__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lime); font-weight: 700; }
.feat strong { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
.feat__excerpt { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.feat__meta { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.feat--big { padding: 2.25rem; }
.feat--big strong { font-size: 1.9rem; }
.minilist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.minilist a { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.minilist a:hover { border-color: var(--primary); text-decoration: none; }
.minilist a span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 700; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Closing cards ---------- */
.sec--close { padding-top: 0; }
.close { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.close__card { display: flex; flex-direction: column; gap: .3rem; padding: 1.75rem; border-radius: 14px; background: var(--lime); color: var(--ink); transition: transform .15s; }
.close__card:hover { transform: translateY(-2px); text-decoration: none; }
.close__card strong { font-family: var(--font-display); font-size: 1.4rem; }
.close__card--alt { background: var(--surface); border: 1px solid var(--line-2); }
@media (max-width: 720px) { .close { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.phead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2rem 0 1.75rem; }
.phead__lead { font-size: 1.08rem; color: var(--muted); max-width: 72ch; margin-bottom: 0; }
.crumbs { display: flex; gap: .5rem; font-size: .82rem; color: var(--muted); margin-bottom: .9rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.chead { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.chead__flag { font-size: 3rem; line-height: 1; }
.lang-switch { grid-column: 2; display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
@media (max-width: 640px) { .chead { grid-template-columns: 1fr; } .lang-switch { grid-column: 1; } }

/* ---------- Shell: sticky sidebar + main ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2rem 0 3.5rem; }
.shell__side, .shell__main { min-width: 0; }
.shell .ptable { min-width: 640px; font-size: .86rem; }
.shell .ptable th, .shell .ptable td { padding: .65rem .55rem; }
.shell .ptable__reg { white-space: normal; }
.shell .ptable__act { white-space: normal; }
.shell .ptable__act .btn { display: inline-flex; margin: 0 0 .35rem; }
.shell .ptable__act .compare-check { display: flex; }
@media (max-width: 1400px) { .shell .ptable__assets { display: none; } }
.side-sticky { position: sticky; top: 84px; display: grid; gap: 1rem; }
.facts-card { background: var(--ink); color: #fff; border-radius: 14px; padding: 1.25rem; }
.facts-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .6rem; }
.facts-card dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.facts-card dd { margin: 0; font-weight: 700; color: var(--lime); }
.facts-card abbr { text-decoration: none; }
.facts-card__note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .8); }
.tb { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: grid; gap: 1rem; }
.tb__group { display: grid; gap: .45rem; }
.tb__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.tb select { padding: .55rem .75rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); width: 100%; }
.checks { display: grid; gap: .35rem; font-size: .9rem; }
.checks label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.tb__group--end { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tb__count { font-size: .85rem; color: var(--muted); }
.tb__count strong { color: var(--ink); font-size: 1.1rem; }
.tb--row { grid-template-columns: repeat(5, auto); align-items: start; }
.jump { display: grid; gap: .1rem; font-size: .9rem; }
.jump a { padding: .4rem .6rem; border-radius: 8px; color: var(--ink-2); }
.jump a:hover { background: var(--paper-2); text-decoration: none; }
.preset-note { background: var(--lime-50); border: 1px solid #dfeeb0; border-radius: 10px; padding: .75rem 1rem; font-size: .92rem; }
@media (max-width: 1080px) { .shell { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .side-sticky { position: static; } .facts-card dl { grid-template-columns: repeat(4, 1fr); } .checks { grid-template-columns: repeat(2, 1fr); } .jump { display: none; } }
@media (max-width: 640px) { .facts-card dl { grid-template-columns: 1fr 1fr; } }

/* ---------- Review cards ---------- */
.revs { display: grid; gap: 1rem; }
.rev { display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.rev__side { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.rev__rank { font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.rev__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .75rem; }
.rev__name { margin: 0; font-size: 1.35rem; }
.rev__name a { color: var(--ink); }
.rev__type { margin: 0; font-size: .85rem; color: var(--muted); }
.rev__score { display: flex; align-items: center; gap: .6rem; }
.rev__score > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.rev__verdict { font-size: 1.05rem; color: var(--ink); }
.rev__local { font-size: .92rem; background: var(--paper-2); border-radius: 10px; padding: .7rem .9rem; }
.rev__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.rev__cols ul { margin: 0; padding-inline-start: 1.2rem; font-size: .92rem; }
.rev__cols > div:first-child h4 { color: var(--green); }
.rev__cols > div:last-child h4 { color: #b83a1f; }
.rev__more { margin-bottom: 1rem; font-size: .95rem; }
.rev__more summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.rev__more h4 { margin-top: 1rem; }
.rev__foot { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.rev__foot .risk { flex-basis: 100%; }
@media (max-width: 640px) { .rev { grid-template-columns: 1fr; padding: 1.15rem; } .rev__side { flex-direction: row; } .rev__cols { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faqgrid__item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.faqgrid__item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.faqgrid__item p { margin: 0; font-size: .93rem; color: var(--ink-2); }
@media (max-width: 720px) { .faqgrid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq__q { margin: 0; font-size: 1rem; font-family: var(--font-body); }
.faq__q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; background: none; border: 0; text-align: start; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer; }
.faq__icon { width: 20px; height: 20px; flex: none; transition: transform .2s; color: var(--muted); }
.faq__q button[aria-expanded="true"] .faq__icon { transform: rotate(180deg); color: var(--primary); }
.faq__a { padding: 0 1.15rem 1.1rem; color: var(--ink-2); }
.faq__a p { margin: 0; }
.disclosure { margin-bottom: 1rem; }
.disclosure details { font-size: .85rem; color: var(--muted); }
.disclosure summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.disclosure p { margin: .5rem 0 0; }

/* ---------- Explore (map + list) ---------- */
.explore { padding: 2rem 0 1rem; }
.explore__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.25rem; align-items: stretch; }
.explore__map { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem; box-shadow: var(--shadow); }
.map { height: 520px; width: 100%; }
.map__legend { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin: .5rem .4rem 0; flex-wrap: wrap; }
.map__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.map__swatch--on { background: var(--primary); }
.map__swatch--off { background: #e3e0d6; }
.map__swatch--dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.jvm-tooltip { background: var(--ink) !important; border-radius: 8px !important; font-family: var(--font-body) !important; font-size: .85rem !important; padding: .4rem .7rem !important; }
.jvm-zoom-btn { background: var(--ink) !important; border-radius: 6px !important; }
.jvm-region { cursor: pointer; }
.explore__list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; max-height: 600px; }
.explore__title { font-size: 1.3rem; margin: 0; }
.explore__search { position: relative; }
.explore__search svg { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.explore__search input { width: 100%; padding: .65rem 1rem .65rem 2.5rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); }
.country-grid { position: relative; display: grid; gap: .4rem; overflow: auto; padding-inline-end: .25rem; }
.country { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.country:hover { border-color: var(--primary); text-decoration: none; }
.country__flag { font-size: 1.3rem; line-height: 1; margin-inline-end: .5rem; }
.country__meta { font-size: .76rem; color: var(--muted); font-weight: 400; }
.country__arrow { color: var(--muted); }
.country-grid__empty { text-align: center; color: var(--muted); padding: 1rem 0; }
@media (max-width: 960px) { .explore__grid { grid-template-columns: 1fr; } .map { height: 400px; } .explore__list { max-height: none; } .country-grid { grid-template-columns: repeat(2, 1fr); max-height: 420px; } }
@media (max-width: 560px) { .map { height: 320px; } .country-grid { grid-template-columns: 1fr; } }
.region { margin-bottom: 2.5rem; }
.region__head { margin-bottom: 1rem; }
.region__head p { color: var(--muted); margin: 0; }
.ccard { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.ccard__flag { font-size: 1.9rem; line-height: 1; }
.ccard__body { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.ccard__body span { font-size: .82rem; color: var(--muted); }
.ccard__langs { color: var(--primary) !important; }
.ccard__arrow { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(21, 21, 43, .6); backdrop-filter: blur(3px); }
.modal__panel { position: relative; background: var(--surface); border-radius: 16px; padding: 1.75rem; width: min(100%, 440px); box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; top: .6rem; inset-inline-end: .6rem; border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.modal__title { margin-bottom: .25rem; }
.modal__sub { color: var(--muted); font-size: .95rem; }
.modal__options { display: grid; gap: .5rem; }
.modal__options a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; }
.modal__options a:hover { border-color: var(--primary); background: var(--primary-50); text-decoration: none; }

/* ---------- Platform page ---------- */
.phero { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; }
.phero__id { display: flex; gap: 1.25rem; align-items: center; }
.phero__ring { width: 150px; text-align: center; }
.ring__num { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--ink); }
.ring__lbl { font-size: 9px; fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.phero__ringmeta { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.phero__cta { display: flex; flex-direction: column; gap: .5rem; max-width: 280px; }
@media (max-width: 900px) { .phero { grid-template-columns: 1fr; } .phero__ring { width: 130px; } }
.pbody__grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.pbody__main h2 { margin-top: 2rem; }
.scorecard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; margin: 1.5rem 0; }
.scorecard h2 { margin-top: 0 !important; font-size: 1.2rem; }
.scorecard__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.scorecard__note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.weight__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .35rem; }
.bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.25rem 0; }
.proscons h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.proscons ul { margin: 0; padding-inline-start: 1.2rem; font-size: .95rem; }
.proscons--card > div { border-radius: 12px; padding: 1.25rem; }
.proscons--card > div:first-child { background: var(--green-50); }
.proscons--card > div:last-child { background: var(--coral-50); }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.features li { display: flex; gap: .5rem; padding: .5rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; }
.features li.is-yes span { color: var(--green); font-weight: 700; }
.features li.is-no { color: var(--muted); }
.sidecard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem; }
.sidecard h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.facts { margin: 0; display: grid; gap: .6rem; }
.facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 500; }
.sidelist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.sidelist a { display: flex; gap: .6rem; align-items: center; color: var(--ink); padding: .4rem; border-radius: 8px; }
.sidelist a:hover { background: var(--paper-2); text-decoration: none; }
.sidelist a span { display: flex; flex-direction: column; line-height: 1.25; }
.sidelist--inline a { border: 1px solid var(--line); padding: .8rem 1rem; background: var(--surface); }
@media (max-width: 900px) { .pbody__grid { grid-template-columns: 1fr; } }

/* ---------- Tables (generic + compare) ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .93rem; margin: 1rem 0 1.5rem; }
.table th, .table td { padding: .7rem .9rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.table tbody th { font-weight: 700; color: var(--ink-2); width: 34%; background: var(--paper); }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table .is-highlight td, .table .is-highlight th { background: var(--lime-50); }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table--compare { min-width: 680px; }
.table--compare thead th { text-align: center; vertical-align: top; }
.table--compare .table__corner { text-align: start; }
.table--compare td { text-align: center; }
.table--compare tbody th { width: 220px; }
.table--compare .is-bool td { font-weight: 700; }
.cmp-head { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.cmp-head a:first-of-type { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.compare { padding: 2rem 0 4rem; }
.picker fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.picker legend { font-weight: 700; margin-bottom: .75rem; }
.picker__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.picker__item { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.picker__item.is-on { border-color: var(--primary); background: var(--primary-50); }
.picker__item span { display: flex; flex-direction: column; line-height: 1.2; font-size: .9rem; }
.picker__actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.picker__hint { color: var(--muted); font-size: .9rem; }
@media (max-width: 1000px) { .picker__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .picker__grid { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: 3rem 1rem; }
.empty p { color: var(--muted); }

/* ---------- Guides / article / forms ---------- */
.mag { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.mag__rest { display: grid; gap: 1rem; }
.gcard { display: flex; flex-direction: column; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; color: var(--ink-2); transition: box-shadow .15s, transform .15s; }
.gcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.gcard__cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.gcard__title { font-size: 1.15rem; margin: 0; }
.gcard p { font-size: .92rem; color: var(--muted); margin: 0; }
.gcard__meta { font-size: .8rem; color: var(--muted); }
@media (max-width: 800px) { .mag { grid-template-columns: 1fr; } }
.article h2 { margin-top: 2rem; }
.article ul { margin-bottom: 1.25rem; }
.tip { background: var(--lime-50); border-inline-start: 4px solid var(--lime); padding: 1rem 1.15rem; border-radius: 8px; margin: 1.5rem 0; }
.formula { background: var(--ink); color: #fff; padding: 1rem 1.25rem; border-radius: 10px; overflow-x: auto; font-size: .95rem; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--primary); }
.stats dd { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; }
.form__row { display: grid; gap: .35rem; }
.form label { font-weight: 700; font-size: .92rem; }
.form input, .form select, .form textarea { padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); width: 100%; }
.form [aria-invalid="true"] { border-color: var(--coral); }
.form__error { margin: 0; color: #b83a1f; font-size: .85rem; }
.form__row--hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.15rem; border-radius: 10px; margin-bottom: 1.25rem; }
.alert--success { background: var(--green-50); color: var(--green); }
.alert--error { background: var(--coral-50); color: #b83a1f; }

/* ---------- Compare tray / cookie banner ---------- */
.compare-tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); padding: .75rem 0; }
.compare-tray__inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.compare-tray__items { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.compare-tray__items .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.compare-tray__items .chip button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 0 0 .3rem; font-size: 1rem; line-height: 1; }
.compare-tray__actions { display: flex; align-items: center; gap: .6rem; }
.compare-tray__hint { font-size: .85rem; opacity: .75; }
.compare-tray .btn--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .4); }
.compare-tray .btn--primary { background: var(--lime); color: var(--ink); }
body.has-tray { padding-bottom: 80px; }
.cookie-banner { position: fixed; bottom: 1rem; inset-inline-start: 1rem; z-index: 85; width: min(100% - 2rem, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; box-shadow: var(--shadow-lg); display: flex; gap: 1rem; align-items: center; }
.cookie-banner p { margin: 0; font-size: .88rem; }
body.has-tray .cookie-banner { bottom: 90px; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 3rem 0 2rem; margin-top: 2rem; }
.ftr__index { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr__index h2 { color: #fff; font-size: 1.4rem; }
.ftr__index-head p { font-size: .9rem; margin: 0; }
.ftr__regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ftr__region h4 { color: var(--lime); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.ftr__region ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; font-size: .85rem; }
.ftr__region a { color: rgba(255, 255, 255, .75); }
.ftr__region a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr__grid h4 { color: #fff; font-size: .9rem; margin-bottom: .75rem; }
.ftr__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .92rem; }
.ftr__grid a { color: rgba(255, 255, 255, .78); }
.ftr__grid a:hover { color: #fff; }
.ftr__brand .brand { margin-bottom: .75rem; }
.ftr__brand p { font-size: .92rem; }
.ftr__legal { padding-top: 1.75rem; font-size: .82rem; color: rgba(255, 255, 255, .62); }
.ftr__legal strong { color: rgba(255, 255, 255, .85); }
.ftr__legal a { color: var(--lime); }
.ftr__copy { margin-top: 1.25rem; }
@media (max-width: 1000px) { .ftr__index { grid-template-columns: 1fr; } .ftr__regions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__regions { grid-template-columns: 1fr 1fr; } .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- RTL + motion ---------- */
[dir="rtl"] .explore__search input { padding: .65rem 2.5rem .65rem 1rem; }
[dir="rtl"] .finder__step { padding: 0 2.6rem 0 0; }
[dir="rtl"] .finder__num { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
