/* Subscription Price Monitor — design system (no build step). Light + dark themes, RTL-aware, mobile-first. */
:root {
  --bg: #f7f8fb; --surface: #ffffff; --surface-2: #f0f3f8; --border: #e2e7ef; --text: #0e1525; --muted: #627089;
  --accent: #0a8fb0; --accent-2: #0c6f8c; --cheap: #15924a; --dear: #d32f2f; --warn: #b26a00;
  --cheap-soft: rgba(21,146,74,.11); --dear-soft: rgba(211,47,47,.10); --warn-soft: rgba(217,135,0,.13); --accent-soft: rgba(10,143,176,.11);
  --shadow: 0 1px 2px rgba(14,21,37,.05), 0 10px 28px -16px rgba(14,21,37,.22);
  --radius: 16px; --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
.dark {
  --bg: #070b14; --surface: #0d1426; --surface-2: #131d34; --border: #1f2b47; --text: #e4e9f2; --muted: #93a1ba;
  --accent: #2fd2ef; --accent-2: #22b5d0; --cheap: #4ade80; --dear: #f87171; --warn: #fbbf24;
  --cheap-soft: rgba(74,222,128,.12); --dear-soft: rgba(248,113,113,.12); --warn-soft: rgba(251,191,36,.12); --accent-soft: rgba(47,210,239,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ── layout ── */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.section { margin-top: 56px; }
.page { padding-top: 28px; padding-bottom: 8px; }
.prod-head { align-items: flex-start; gap: 16px; }
@media (max-width: 760px) { .prod-head { flex-wrap: wrap; } .prod-head > .grow { flex-basis: calc(100% - 82px); } .prod-head > .row { width: 100%; } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.with-aside { display: grid; gap: 28px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 1024px) { .with-aside { grid-template-columns: minmax(0,1fr) 320px; } .aside-sticky { position: sticky; top: 84px; align-self: start; } }
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 14px; }
.center { text-align: center; } .end { text-align: end; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide-sm { display: none; } @media (min-width: 768px) { .hide-sm { display: initial; } .show-sm { display: none !important; } }

/* ── text ── */
.muted { color: var(--muted); } .accent { color: var(--accent); } .cheap { color: var(--cheap); } .dear { color: var(--dear); } .warn { color: var(--warn); }
.small { font-size: 13.5px; } .xs { font-size: 12px; } .xxs { font-size: 11px; } .bold { font-weight: 700; } .xbold { font-weight: 800; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.page-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.lead { color: var(--muted); font-size: 16.5px; margin-top: 8px; max-width: 760px; }
.h2 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 720px; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── surfaces ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px; } @media (min-width: 640px) { .pad { padding: 22px; } }
.soft { background: var(--surface-2); border-radius: 12px; }
a.card { text-decoration: none; display: block; transition: transform .15s ease, border-color .15s; }
a.card.row { display: flex; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.divide > * + * { border-top: 1px solid var(--border); }

/* ── buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font: 700 14px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #0891b2, #0e7490); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-vpn { color: #fff; background: linear-gradient(135deg, #16a34a, #0d9488); }
.btn-vpn:hover { filter: brightness(1.08); color: #fff; }
.btn-danger { color: var(--dear); background: var(--surface); border-color: var(--border); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 14.5px var(--font); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { font-family: var(--mono); font-size: 12.5px; min-height: 90px; }
.input-auto, select.input.input-auto, .tbl-tools .input { width: auto; }
.label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field { display: block; }
.hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .form-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .form-grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.span-all { grid-column: 1 / -1; }

/* ── chips, badges ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; text-decoration: none; background: var(--surface); color: var(--text); }
a.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-cheap { background: var(--cheap-soft); color: var(--cheap); } .badge-dear { background: var(--dear-soft); color: var(--dear); }
.badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-accent { background: var(--accent-soft); color: var(--accent); } .badge-muted { background: var(--surface-2); color: var(--muted); }

/* ── header ── */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.hdr-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; text-decoration: none; flex-shrink: 0; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-txt { display: grid; line-height: 1.02; }
.brand-txt b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.brand-txt span { font-size: 17px; white-space: nowrap; }
.nav { display: none; gap: 2px; font-size: 14px; font-weight: 600; }
.nav a, .nav summary { white-space: nowrap; padding: 8px 9px; border-radius: 9px; color: var(--muted); text-decoration: none; cursor: pointer; list-style: none; }
.nav a:hover, .nav summary:hover { background: var(--surface-2); color: var(--text); }
.nav summary::-webkit-details-marker { display: none; }
@media (min-width: 1180px) { .nav { display: flex; align-items: center; } .burger { display: none; } }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; z-index: 50; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); }
.hdr-search { flex: 1; max-width: 320px; margin-inline-start: auto; display: none; }
@media (min-width: 900px) and (max-width: 1179px), (min-width: 1440px) { .hdr-search { display: block; } }
.hdr-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
@media (min-width: 900px) and (max-width: 1179px), (min-width: 1440px) { .hdr-tools { margin-inline-start: 0; } }
.prefs { display: none; gap: 6px; } @media (min-width: 640px) { .prefs { display: flex; } }
.mini-select { padding: 7px 26px 7px 9px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12.5px var(--font); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; font-size: 16px; }
.burger summary { list-style: none; }
.burger summary::-webkit-details-marker { display: none; }
.mobile-menu { position: fixed; inset-inline: 12px; top: 70px; max-height: calc(100vh - 90px); overflow: auto; padding: 14px; z-index: 60; }
.mobile-menu .grid { grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.mobile-menu a:hover { background: var(--surface-2); }

/* ── search ── */
.search { position: relative; }
.search input { padding-inline-start: 36px; }
.search .ico { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-big { display: grid; gap: 8px; padding: 8px; }
@media (min-width: 760px) { .search-big { grid-template-columns: 1fr auto auto auto; align-items: center; } }
.search-big .input { border: 0; box-shadow: none; padding-top: 13px; padding-bottom: 13px; font-size: 16px; }
.search-big select.input { border: 1px solid var(--border); font-size: 14px; }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 70; padding: 6px; max-height: 70vh; overflow: auto; display: none; }
.suggest.open { display: block; }
.suggest .grp { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.suggest a.act, .suggest a:hover { background: var(--surface-2); color: var(--text); }
.suggest .ic { width: 22px; text-align: center; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 44px 0 20px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 50% at 18% 0%, rgba(34,211,238,.18), transparent 70%), radial-gradient(40% 45% at 92% 8%, rgba(22,163,74,.14), transparent 70%); }
.hero h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 800; letter-spacing: -.035em; max-width: 900px; margin: 18px auto 0; text-wrap: balance; }
.hero .lead { margin: 14px auto 0; text-align: center; text-wrap: balance; }
.hero-search { max-width: 980px; margin: 30px auto 0; }

/* ── stats ── */
.stat { padding: 16px 18px; }
.stat-label { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 25px; font-weight: 800; margin-top: 4px; }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.highlight { background: var(--cheap-soft); border-color: transparent; }

/* ── logos & flags ── */
.logo-mono { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 11px; color: #fff; font-weight: 800; }
.logo-img { border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.logo-fav { position: relative; display: inline-block; flex-shrink: 0; }
.logo-fav > .logo-mono { position: absolute; inset: 0; }
.logo-fav > img { position: absolute; inset: 0; margin: auto; z-index: 1; border-radius: 6px; object-fit: contain; }
.logo-fav:has(> img) > .logo-mono { background: #fff !important; color: transparent; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
.flag { font-size: 20px; line-height: 1; display: inline-flex; align-items: center; }
.flag-l { font-size: 34px; line-height: 1; display: inline-flex; align-items: center; }

/* ── tables ── */
.tbl-wrap { overflow-x: auto; scrollbar-width: thin; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; padding: 11px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); vertical-align: middle; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl tr.sel { background: var(--surface-2); }
.tbl .e { text-align: end; }
.tbl tfoot td { font-weight: 800; background: var(--surface-2); }
.price-big { font-size: 16px; font-weight: 800; }
.cell-country { display: flex; align-items: center; gap: 9px; font-weight: 650; text-decoration: none; }
.info { cursor: help; color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.note-line { font-size: 11px; color: var(--muted); max-width: 300px; margin-top: 2px; }
.tbl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tbl-tools .input { width: auto; min-width: 180px; }
.hidden-row { display: none; }
.vpn-mini { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); font-size: 12px; font-weight: 800; color: var(--cheap); text-decoration: none; white-space: nowrap; }
.vpn-mini:hover { background: var(--cheap-soft); color: var(--cheap); }
/* responsive price cards */
.m-cards { display: grid; gap: 8px; }
.m-card { padding: 12px; }
.m-card summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (min-width: 860px) { .m-cards { display: none; } }
@media (max-width: 859px) { .d-table { display: none; } }

/* ── map ── */
.map-svg { display: block; width: 100%; height: auto; }
.map-country { transition: opacity .15s, fill .2s; stroke: var(--bg); stroke-width: .6; }
.map-country.has { cursor: pointer; }
.map-country.has:hover { opacity: .78; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.map-tip { position: absolute; pointer-events: none; padding: 10px 12px; min-width: 170px; font-size: 13px; z-index: 5; display: none; }
.map-tip.on { display: block; }
.map-top { display: grid; gap: 4px 16px; grid-template-columns: repeat(2, minmax(0,1fr)); font-size: 13.5px; }
@media (min-width: 640px) { .map-top { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.map-top li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cheapest-box { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--cheap-soft); }

/* ── bars & charts ── */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 11px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar-cheap { background: var(--cheap); } .bar-dear { background: var(--dear); } .bar-mid { background: var(--accent); }
.bar-val { min-width: 5.5rem; text-align: end; font-weight: 700; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; margin-top: 8px; }
.chart-legend i { display: inline-block; width: 16px; height: 4px; border-radius: 4px; margin-inline-end: 6px; vertical-align: middle; }

/* ── VPN, notes, ads ── */
.vpn-card { position: relative; overflow: hidden; padding: 20px; }
.vpn-card h3 { font-size: 16px; font-weight: 800; margin-top: 6px; }
.vpn-card p { margin-top: 6px; }
.vpn-glow { position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, rgba(34,211,238,.28), rgba(22,163,74,.24)); filter: blur(28px); pointer-events: none; }
.vpn-icon { font-size: 26px; }
.note-warn { padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); font-size: 12.5px; line-height: 1.55; }
.ad-slot { margin: 28px auto 0; }
.ad-box { margin: 0 auto; }
.ad-label { text-align: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-inner { width: 100%; overflow: hidden; border-radius: 10px; }
.ad-inner img { width: 100%; height: 100%; object-fit: cover; }
.flash { margin: 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.flash-ok { background: var(--cheap-soft); color: var(--cheap); } .flash-err { background: var(--dear-soft); color: var(--dear); }

/* ── misc components ── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs [aria-current] { color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
details.faq { padding: 16px 18px; } details.faq summary { cursor: pointer; font-weight: 700; } details.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.prose { line-height: 1.75; font-size: 16px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; } .prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 12px 0; } .prose ul, .prose ol { margin: 12px 0; padding-inline-start: 22px; } .prose li { margin: 5px 0; }
.prose a { color: var(--accent); } .prose blockquote { margin: 14px 0; padding-inline-start: 14px; border-inline-start: 4px solid var(--border); font-style: italic; }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.ms { position: relative; }
.ms-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 46px; padding: 6px 8px; cursor: text; }
.ms-box input { border: 0; outline: 0; background: transparent; color: var(--text); font: 14px var(--font); flex: 1; min-width: 8rem; padding: 4px; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.ms-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 6px; }
.ms-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; padding: 4px; max-height: 260px; overflow: auto; display: none; }
.ms-list.open { display: block; }
.ms-list button { display: block; width: 100%; text-align: start; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 14px var(--font); cursor: pointer; }
.ms-list button:hover { background: var(--surface-2); }
.share { position: relative; }
.share summary { list-style: none; } .share summary::-webkit-details-marker { display: none; }
.share .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); width: 220px; padding: 6px; z-index: 30; }
.share .menu a, .share .menu button { display: block; width: 100%; text-align: start; padding: 9px 11px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 14px var(--font); cursor: pointer; text-decoration: none; }
.share .menu a:hover, .share .menu button:hover { background: var(--surface-2); }
.footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface-2); }
.footer-grid { display: grid; gap: 32px; padding: 44px 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h3 { font-size: 14px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 12px; color: var(--muted); }
.cat-ico { font-size: 24px; }
.deal-pct { font-size: 18px; font-weight: 800; color: var(--cheap); }

/* ── admin ── */
.admin { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .admin { grid-template-columns: 250px minmax(0, 1fr); } }
textarea.input { font: inherit; line-height: 1.5; }
.admin-side .brand { font-size: 18px; }
.admin-side { background: var(--surface-2); border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .admin-side { border-bottom: 0; border-inline-end: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-nav { display: flex; gap: 2px; overflow-x: auto; padding: 0 10px 12px; font-size: 14px; }
@media (min-width: 1024px) { .admin-nav { flex-direction: column; overflow: visible; } }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; text-decoration: none; white-space: nowrap; color: var(--text); }
.admin-nav a:hover { background: var(--surface); }
.admin-nav a.on { background: var(--surface); font-weight: 800; color: var(--accent); }
.admin-main { padding: 20px 16px 60px; min-width: 0; }
@media (min-width: 640px) { .admin-main { padding: 28px 32px 60px; } }
.admin h1 { font-size: 24px; font-weight: 800; }
.panel { padding: 20px; margin-top: 20px; }
.panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
details.panel > summary { cursor: pointer; font-weight: 700; }
.alert-box { padding: 13px 15px; border-radius: 12px; font-size: 14px; margin-top: 14px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.checklist { max-height: 300px; overflow: auto; display: grid; gap: 4px; padding: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form .input { width: auto; }
@media print { .hdr, .footer, .ad-slot, .vpn-card { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* day / night switch */
.theme-switch { position: relative; width: 62px; height: 32px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: space-between; padding-inline: 8px; }
.theme-switch svg { width: 16px; height: 16px; position: relative; z-index: 1; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: color .25s, opacity .25s; }
.theme-switch .ts-moon { fill: currentColor; stroke: none; }
.theme-switch .ts-sun { color: #b45309; }
.theme-switch .ts-moon { color: var(--muted); opacity: .7; }
.ts-knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s ease; }
.dark .theme-switch { background: #0b1220; }
.dark .ts-knob { transform: translateX(30px); background: #1e293b; }
html.dark[dir="rtl"] .ts-knob { transform: translateX(-30px); }
.dark .theme-switch .ts-sun { color: var(--muted); opacity: .6; }
.dark .theme-switch .ts-moon { color: #fde68a; opacity: 1; }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* SVG flags (replace emoji, which Windows renders as two letters) */
.fl { display: inline-block; width: 1.333em; height: 1em; vertical-align: -0.14em; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,23,42,.12); flex-shrink: 0; }
.flag .fl, .flag-l .fl { width: 1.2em; height: .9em; }
.dark .fl { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
