/* SEO Rank — The Rope. Dark technical dashboard. */

@font-face {
  font-family: 'TT Fors';
  src: url('fonts/TTFors-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'TT Fors';
  src: url('fonts/TTFors-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: #0d0d0d;
  --panel-2: #131313;
  --border: rgba(255, 255, 255, .13);
  --border-strong: rgba(255, 255, 255, .3);
  --text: #fff;
  --par: rgba(255, 255, 255, .8);
  --muted: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .35);
  --red: #f43;
  --red-deep: #d00;
  --green: #00d084;
  --amber: #fcb900;
  --blue: #0693e3;
  --font: 'TT Fors', 'TT Fors Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--par);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--text); }
a:hover { color: var(--red); }
::selection { background: var(--red-deep); color: #fff; }

/* ── Topbar ─────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-size: 18px; font-weight: 500; letter-spacing: .04em; color: #fff; }
.brand-mark em { font-style: normal; color: var(--red); }
.brand-by { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topnav-user { font-size: 13px; color: var(--muted); margin: 0 4px; }
.lang-switch { font-size: 12.5px; letter-spacing: .06em; margin-right: 6px; }
.lang-switch a { color: var(--faint); text-decoration: none; }
.lang-switch a.is-active { color: #fff; }
.lang-switch a:hover { color: var(--red); }
.lang-switch i { color: var(--faint); font-style: normal; margin: 0 4px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-size: 14px; font-family: var(--font);
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: #fff; text-decoration: none; cursor: pointer;
  transition: all .18s ease; letter-spacing: .02em; white-space: nowrap;
}
.btn:hover { border-color: #fff; color: #fff; }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover, .btn-ghost.is-active { color: #fff; border-color: var(--border-strong); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { border-color: var(--red-deep); color: var(--red); }
.btn-danger:hover { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ── Layout / flash ──────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px); }
.wrap-app { max-width: 1320px; padding-top: 24px; }
.wrap-narrow { max-width: 560px; }

.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid var(--border); }
.flash-ok { background: rgba(0, 208, 132, .1); border-color: rgba(0, 208, 132, .35); color: #9ff0d2; }
.flash-err { background: rgba(221, 0, 0, .12); border-color: rgba(255, 68, 51, .4); color: #ffb3ac; }
.flash a { color: #fff; }

.footer { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer a { color: var(--par); }

/* ── Auth ─────────────────────────────────── */
.authcard {
  margin-top: 24px; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: 18px; background: var(--panel);
}
.authcard h1 { font-size: 28px; margin-bottom: 8px; }
.authsub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.authform .field { margin-bottom: 16px; }
.authform .btn { width: 100%; margin-top: 6px; }
.authalt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

.field label {
  display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field label .hint { text-transform: none; letter-spacing: 0; color: var(--faint); }
.field input, .field select, textarea {
  width: 100%; padding: 12px 15px; font-size: 15px; font-family: var(--font);
  background: #000; color: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, textarea:focus { border-color: var(--red); }
textarea { resize: vertical; }

/* ── Onboarding ───────────────────────────── */
.onboard { max-width: 620px; margin: 40px auto; text-align: center; }
.onboard h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.onboard p { color: var(--muted); margin-bottom: 28px; }
.onboard-form { text-align: left; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); display: grid; gap: 16px; }

/* ── Domain bar ───────────────────────────── */
.domainbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.domain-switch { position: relative; }
.domain-current {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  color: #fff; font-size: 19px; padding: 10px 16px; cursor: pointer; font-family: var(--font);
}
.domain-current-ro { cursor: default; }
.domain-current strong { font-weight: 500; }
.domain-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.domain-owner { font-size: 12px; color: var(--faint); }
.caret { color: var(--muted); font-size: 13px; }
.domain-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; z-index: 60;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); max-height: 60vh; overflow: auto;
}
.domain-menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 15px;
}
.domain-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.domain-menu a.is-active { background: rgba(255, 68, 51, .12); }
.domain-menu a small { color: var(--faint); font-size: 12px; }
.domain-add {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 9px;
  background: transparent; border: 1px dashed var(--border-strong); color: var(--muted);
  cursor: pointer; font-family: var(--font); font-size: 14px;
}
.domain-add:hover { color: #fff; border-color: #fff; }
.domain-updated { font-size: 13px; color: var(--muted); }
.domainbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Refresh progress ─────────────────────── */
.refresh-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rp-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rp-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
#rpText { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ── Stats row ────────────────────────────── */
.stats-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; min-width: 170px; }
.stat-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stat-change { display: flex; gap: 16px; font-size: 26px; }
.chg-up { color: var(--green); }
.chg-down { color: var(--red); }
.stat-big { font-size: 30px; color: #fff; }
.stat-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.dist-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.dist-seg { display: block; height: 100%; }
.dist-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.dist-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.dist-legend b { color: var(--par); font-weight: 500; }

/* ── Keyword toolbar ──────────────────────── */
.kw-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.device-tabs { display: flex; gap: 6px; }
.dev-tab {
  padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--font); font-size: 14px;
}
.dev-tab b { color: var(--faint); font-weight: 500; margin-left: 3px; }
.dev-tab:hover { color: #fff; }
.dev-tab.is-active { background: var(--panel-2); border-color: var(--border); color: #fff; }
.dev-tab.is-active b { color: var(--red); }
.kw-search {
  flex: 1 1 180px; max-width: 320px; padding: 9px 14px; font-size: 14px; font-family: var(--font);
  background: var(--panel); color: #fff; border: 1px solid var(--border); border-radius: 10px; outline: none;
}
.kw-search:focus { border-color: var(--red); }
.kw-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Keyword table ────────────────────────── */
.kw-tablewrap { border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; background: var(--panel); }
.kw-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.kw-table th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.kw-table th.sortable { cursor: pointer; user-select: none; }
.kw-table th.sortable:hover { color: #fff; }
.kw-table th.sortable::after { content: '↕'; opacity: .35; margin-left: 5px; font-size: 10px; }
.kw-table th.sort-asc::after { content: '↑'; opacity: 1; color: var(--red); }
.kw-table th.sort-desc::after { content: '↓'; opacity: 1; color: var(--red); }
.kw-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.kw-table tbody tr:last-child td { border-bottom: none; }
.kw-row { cursor: pointer; transition: background .12s; }
.kw-row:hover { background: rgba(255, 255, 255, .04); }
.kw-empty { text-align: center; color: var(--muted); padding: 40px !important; cursor: default; }
.col-check { width: 34px; }
.col-star { width: 34px; }
.col-pos, .col-delta, .col-best, .col-vol { white-space: nowrap; }
.kw-text { color: #fff; }
.kw-meta { display: block; margin-top: 3px; }
.chip {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .07); color: var(--muted); margin-right: 5px;
}
.chip-feat { cursor: help; }
.pos { font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.pos-top { color: var(--red); font-weight: 500; }
.pos-first { color: #fff; }
.d-up { color: var(--green); font-size: 13px; white-space: nowrap; }
.d-down { color: var(--red); font-size: 13px; white-space: nowrap; }
.d-flat { color: var(--faint); }
.d-new { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.found-url { color: var(--muted); font-size: 13px; text-decoration: none; }
.found-url:hover { color: var(--red); }
.col-upd { color: var(--faint); font-size: 13px; white-space: nowrap; }
.star {
  background: none; border: none; color: rgba(255, 255, 255, .18); font-size: 16px;
  cursor: pointer; padding: 2px;
}
.star.is-on { color: var(--amber); }
.star[disabled] { cursor: default; }
.badge-self {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
  background: rgba(255, 68, 51, .16); border: 1px solid rgba(255, 68, 51, .4); color: #ff9d92;
  margin-left: 6px; white-space: nowrap; vertical-align: 2px; letter-spacing: .03em;
}
.chip-feat-self { background: rgba(255, 68, 51, .18); color: #ff9d92; border: 1px solid rgba(255, 68, 51, .4); }

/* ── CTA banner The Rope ──────────────────── */
.cta-banner {
  margin-top: 30px; padding: clamp(20px, 3vw, 30px);
  border: 1px dashed var(--border-strong); border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 19px; margin-bottom: 6px; }
.cta-banner p { font-size: 14px; color: var(--muted); max-width: 560px; }

/* ── Drawer dettaglio ─────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 96vw); z-index: 90;
  background: #0a0a0a; border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
  transform: translateX(8px); opacity: 0; transition: all .18s ease;
}
.drawer.is-open { transform: none; opacity: 1; }
.drawer-inner { height: 100%; overflow-y: auto; padding: 28px clamp(18px, 3vw, 34px); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; }
.drawer-close {
  position: absolute; top: 16px; right: 18px; background: none; border: 1px solid var(--border);
  color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.drawer-close:hover { color: #fff; border-color: #fff; }
.drawer-head h2 { font-size: 24px; margin-bottom: 6px; padding-right: 40px; }
.drawer-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer-stats { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.dstat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; min-width: 100px; }
.dstat .n { font-size: 22px; color: #fff; }
.dstat .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chart-head h3 { font-size: 15px; }
.chart-ranges { display: flex; gap: 4px; }
.chart-ranges button {
  background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 12px;
  padding: 4px 10px; border-radius: 8px; cursor: pointer; font-family: var(--font);
}
.chart-ranges button.is-active { background: var(--panel-2); border-color: var(--border); color: #fff; }
.chart-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-empty { color: var(--faint); text-align: center; padding: 40px 0; font-size: 14px; }

.drawer-tabs { display: flex; gap: 6px; margin: 22px 0 12px; border-bottom: 1px solid var(--border); }
.dtab {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted);
  font-family: var(--font); font-size: 14px; padding: 8px 14px; cursor: pointer;
}
.dtab.is-active { color: #fff; border-bottom-color: var(--red); }
.serp-list { list-style: none; }
.serp-list li {
  display: flex; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; align-items: baseline;
}
.serp-list li.is-self { background: rgba(255, 68, 51, .12); outline: 1px solid rgba(255, 68, 51, .3); }
.serp-list li.is-comp { background: rgba(6, 147, 227, .1); }
.serp-pos { color: var(--muted); min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.serp-body { min-width: 0; }
.serp-title { color: var(--par); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-url { color: var(--faint); font-size: 12px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-url:hover { color: var(--red); }
.phist-list { list-style: none; }
.phist-list li { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; display: flex; gap: 14px; align-items: baseline; }
.phist-date { color: var(--muted); min-width: 90px; flex: none; font-variant-numeric: tabular-nums; }
.phist-pos { min-width: 40px; color: #fff; flex: none; }

/* ── Competitor section ───────────────────── */
.comp-section { margin-top: 26px; }
.comp-section h2 { font-size: 18px; margin-bottom: 12px; }
.comp-table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; background: var(--panel); }
.comp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comp-table th { text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.comp-table th:first-child { text-align: left; }
.comp-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); text-align: center; font-variant-numeric: tabular-nums; }
.comp-table td:first-child { text-align: left; color: #fff; }
.comp-table .win { color: var(--green); font-weight: 500; }
.comp-table .lose { color: var(--red); }
.comp-self-col { background: rgba(255, 68, 51, .07); }

/* ── Modali ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .65); padding: 20px; }
.modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
}
.modal-card h2 { font-size: 21px; margin-bottom: 10px; }
.modal-card h3 { font-size: 15px; margin: 22px 0 6px; }
.modal-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-msg { margin-top: 12px; font-size: 13.5px; color: var(--amber); }
.modal-msg.ok { color: var(--green); }
.modal-msg.err { color: var(--red); }
.modal-hr { border: none; border-top: 1px solid var(--border); margin: 22px 0 16px; }
.ak-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.ak-devices { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ak-devices label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ak-loc { flex: 1; min-width: 220px; position: relative; }
.ak-loc label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ak-loc input[type="text"] { width: 100%; padding: 9px 12px; background: #000; border: 1px solid var(--border-strong); border-radius: 9px; color: #fff; font-family: var(--font); font-size: 14px; }
.loc-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #000; border: 1px solid var(--border-strong); border-radius: 10px; max-height: 200px; overflow: auto; }
.loc-results button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: none; color: var(--par); font-family: var(--font); font-size: 13.5px; cursor: pointer; }
.loc-results button:hover { background: rgba(255, 255, 255, .08); }
.loc-results small { color: var(--faint); }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; margin: 14px 0; }
.toggle input { display: none; }
.toggle-track {
  width: 44px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .15);
  position: relative; flex: none; transition: background .18s;
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.toggle input:checked + .toggle-track { background: var(--red-deep); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }

.share-url { display: flex; gap: 8px; margin: 14px 0; }
.share-url input { flex: 1; padding: 10px 14px; background: #000; border: 1px solid var(--border-strong); border-radius: 10px; color: #fff; font-family: var(--mono); font-size: 13px; }

.comp-list { list-style: none; margin: 8px 0; }
.comp-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; font-size: 14px; }
.comp-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.comp-del:hover { color: var(--red); }
.comp-add { display: flex; gap: 8px; }
.comp-add input { flex: 1; padding: 9px 12px; background: #000; border: 1px solid var(--border-strong); border-radius: 9px; color: #fff; font-family: var(--font); font-size: 14px; }

.share-cta { margin-top: 34px; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ── Landing ──────────────────────────────── */
.hero { padding: clamp(30px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); max-width: 880px; }
.hero .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); margin-bottom: 18px; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--par); max-width: 640px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--faint); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: clamp(26px, 5vw, 54px) 0; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.feature .f-icon { font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

.how { margin: clamp(26px, 5vw, 54px) 0; }
.how h2, .faq h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 22px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: step; }
.how-step { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; counter-increment: step; }
.how-step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--red); font-size: 13px; letter-spacing: .15em; display: block; margin-bottom: 12px; }
.how-step h3 { font-size: 16px; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--muted); }

.faq { margin: clamp(26px, 5vw, 54px) 0; max-width: 780px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 16px; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--red); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; font-size: 14.5px; color: var(--muted); }

.cta-final { margin: clamp(30px, 6vw, 64px) 0 20px; text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: clamp(30px, 5vw, 56px); }
.cta-final h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 12px; }
.cta-final p { color: var(--muted); margin-bottom: 24px; }

/* ── Admin ───────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 26px; }
.admin-table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; background: var(--panel); margin-bottom: 30px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.admin-h2 { font-size: 18px; margin: 26px 0 12px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.badge-ok { background: rgba(0, 208, 132, .15); color: #7fe7c0; }
.badge-warn { background: rgba(252, 185, 0, .15); color: #ffd766; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr; }
  .domainbar-actions { margin-left: 0; width: 100%; }
  .kw-actions { margin-left: 0; width: 100%; }
}
