/* ============================================================
   FavSlots — 2026 neon-arcade editorial theme
   ============================================================ */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #10131a;
  --surface-2: #141822;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #98a1b3;
  --lime: #d8ff3e;
  --lime-dim: rgba(216, 255, 62, 0.14);
  --pink: #ff3d81;
  --gold: #ffc94d;
  --red: #ff5d5d;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--lime); color: #0a0b0e; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(216, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); }
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.hl { color: var(--lime); }

.muted { color: var(--muted); }
.block { display: block; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--lime);
  color: #0a0b0e;
  box-shadow: 0 10px 30px -12px rgba(216, 255, 62, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(216, 255, 62, 0.7); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.btn-danger { background: rgba(255, 93, 93, 0.12); color: var(--red); border-color: rgba(255, 93, 93, 0.35); }
.btn-danger:hover { background: rgba(255, 93, 93, 0.2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 34px; height: 34px; padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-icon:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); text-transform: uppercase; }
.field input, .field textarea, .field select, .search-form input, .search-form select, .link-edit-form input, .add-link-form input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.field input[type="color"] { height: 46px; padding: 4px; cursor: pointer; }
.field small { font-size: 0.78rem; }

.stack-form { display: flex; flex-direction: column; gap: 16px; }
.form-actions { margin-top: 22px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip-18 { background: var(--pink); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--lime-dim);
  color: var(--lime);
  border: 1px solid rgba(216, 255, 62, 0.3);
  vertical-align: middle;
}

.pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}
.pill-active, .pill-paid { background: var(--lime-dim); color: var(--lime); border-color: rgba(216, 255, 62, 0.3); }
.pill-pending { background: rgba(255, 201, 77, 0.12); color: var(--gold); border-color: rgba(255, 201, 77, 0.35); }
.pill-banned, .pill-rejected { background: rgba(255, 93, 93, 0.12); color: var(--red); border-color: rgba(255, 93, 93, 0.35); }

.ico { width: 15px; height: 15px; flex: none; }
.ico-star { width: 14px; height: 14px; color: var(--gold); flex: none; }

.flash {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: dropIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-width: min(92vw, 560px);
}
.flash-ok { background: var(--lime); color: #0a0b0e; }
.flash-err { background: var(--red); color: #fff; }
.flash-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: currentColor; opacity: 0.7; }
.inline-flash { position: static; transform: none; margin-bottom: 18px; animation: none; }

@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

/* ---------- ticker ---------- */

.ticker {
  background: var(--lime);
  color: #0a0b0e;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px; white-space: nowrap; }
.ticker-item .ico { width: 9px; height: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(7, 8, 11, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(216, 255, 62, 0.35));
}
.brand-logo-sm { height: 34px; filter: drop-shadow(0 0 12px rgba(216, 255, 62, 0.3)); }
.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transform: skewX(-7deg);
}
.brand-word b { color: var(--text); font-weight: 800; }
.brand-word i { color: var(--lime); font-style: normal; font-weight: 800; }
.brand-word small {
  font-size: 0.58em;
  color: var(--lime);
  opacity: 0.85;
  margin-left: 3px;
  letter-spacing: 0;
}

.site-nav { display: flex; gap: 26px; font-weight: 600; font-size: 0.92rem; }
.site-nav a { color: var(--muted); transition: color 0.15s ease; position: relative; }
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--lime);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */

.site-main { min-height: 60vh; }

.hero { position: relative; padding: clamp(44px, 8vw, 96px) clamp(16px, 4vw, 44px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(560px 380px at 12% 18%, rgba(216, 255, 62, 0.13), transparent 62%),
    radial-gradient(620px 420px at 88% 8%, rgba(255, 61, 129, 0.11), transparent 65%),
    radial-gradient(700px 500px at 50% 110%, rgba(56, 189, 248, 0.07), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-inner > * { min-width: 0; }

.hero-copy > * { animation: fadeUp 0.7s both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.44s; }
.featured-card { animation: fadeUp 0.8s 0.25s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  margin: 18px 0 16px;
  text-wrap: balance;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 54ch; }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-row .ico { color: var(--lime); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat-row dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.stat-row dd { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 700; margin-top: 6px; }
.stat-row dd small { font-size: 0.55em; color: var(--muted); font-weight: 500; }

/* ---------- featured card ---------- */

.featured-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(216, 255, 62, 0.35);
  border-radius: 26px;
  padding: 30px 28px 26px;
  box-shadow: 0 40px 90px -50px rgba(216, 255, 62, 0.4), var(--shadow);
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  background: radial-gradient(420px 200px at 85% -10%, rgba(216, 255, 62, 0.12), transparent 70%);
  pointer-events: none;
}
.ribbon {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--lime);
  color: #0a0b0e;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(216, 255, 62, 0.8);
}

.featured-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.featured-id { flex: 1; min-width: 0; }
.featured-name { font-size: 1.5rem; margin-top: 4px; }

.logo-tile {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand, var(--lime)), color-mix(in srgb, var(--brand, var(--lime)) 55%, #000));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.logo-tile span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #0a0b0e;
  letter-spacing: -0.03em;
}
.logo-lg { width: 76px; height: 76px; border-radius: 22px; }
.logo-lg span { font-size: 1.45rem; }
.logo-xs { width: 38px; height: 38px; border-radius: 11px; }
.logo-xs span { font-size: 0.78rem; }

.banner-tile img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.banner-lg img { height: 78px; max-width: 250px; border-radius: 14px; }
.banner-preview { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.banner-preview img {
  max-height: 84px;
  max-width: 280px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 201, 77, 0.1);
  border: 1px solid rgba(255, 201, 77, 0.3);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}
.rating .ico-star { width: 13px; height: 13px; align-self: center; }
.rating span { font-size: 0.7em; color: rgba(255, 201, 77, 0.65); font-weight: 500; }
.rating-lg { padding: 9px 14px; font-size: 1.15rem; }

.bonus-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-top: 22px;
  color: var(--lime);
  line-height: 1.1;
}
.bonus-sub { color: var(--text); font-weight: 600; font-size: 1.02rem; margin-top: 4px; }

.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 22px; }
.meta { color: var(--muted); font-size: 0.86rem; font-weight: 600; }

/* ---------- CTA (hidden URL button) ---------- */

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #0a0b0e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 16px 40px -18px rgba(216, 255, 62, 0.75);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -18px rgba(216, 255, 62, 0.9); filter: saturate(1.1); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.cta:hover::after { left: 130%; }
.cta .ico-arrow { width: 18px; height: 18px; transition: transform 0.18s ease; }
.cta:hover .ico-arrow { transform: translateX(4px); }
.cta-lg { padding: 19px 32px; font-size: 1.06rem; }
.cta-disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  font-family: var(--font-body);
  font-weight: 600;
}
.cta.is-loading { pointer-events: none; filter: grayscale(0.25); opacity: 0.8; }
.cta.is-loading .cta-label::after { content: " ..."; }
.cta-note { display: block; text-align: center; color: var(--muted); font-size: 0.74rem; margin-top: 10px; }
.cta-note.center { text-align: center; }

.terms { margin-top: 16px; font-size: 0.84rem; }
.terms summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.terms summary::before { content: "+"; font-weight: 800; color: var(--lime); }
.terms[open] summary::before { content: "−"; }
.terms summary::-webkit-details-marker { display: none; }
.terms p { color: var(--muted); margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); }

/* ---------- offers list ---------- */

.offers-section { padding: clamp(36px, 6vw, 76px) clamp(16px, 4vw, 44px); max-width: 1240px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 10px; }
.section-note { color: var(--muted); font-size: 0.84rem; }

.offer-list { list-style: none; display: flex; flex-direction: column; gap: 16px; counter-reset: rank; }

.offer-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px auto 1fr 220px;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.offer-row:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 255, 62, 0.4);
  box-shadow: 0 30px 70px -40px rgba(216, 255, 62, 0.35), var(--shadow);
}

.rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
}
.offer-row:hover .rank { -webkit-text-stroke-color: var(--lime); }

.offer-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.offer-name { font-size: 1.25rem; margin: 5px 0 6px; }
.offer-bonus b { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: 1.02rem; }
.offer-bonus span { color: var(--text); font-weight: 600; margin-left: 8px; }
.offer-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.offer-meta b { color: var(--text); }

.offer-action { display: flex; flex-direction: column; }
.offer-action .cta { padding: 15px 24px; }

.commission-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 76ch;
  padding-left: 16px;
  border-left: 3px solid var(--lime);
}

/* ---------- how ---------- */

.how-section { padding: clamp(36px, 6vw, 76px) clamp(16px, 4vw, 44px); max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.08rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 0.92rem; }

.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.trust-strip li {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.trust-strip b { display: block; font-family: var(--font-display); font-size: 0.9rem; }
.trust-strip span { color: var(--muted); font-size: 0.82rem; }

/* ---------- faq ---------- */

.faq-section { padding: 0 clamp(16px, 4vw, 44px) clamp(60px, 8vw, 110px); max-width: 1240px; margin: 0 auto; }
.faq-section h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 24px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 800; }
.faq[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 44px) 28px; }
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-blurb { color: var(--muted); font-size: 0.88rem; margin: 16px 0 14px; max-width: 42ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.footer-col a { color: var(--text); opacity: 0.82; font-size: 0.9rem; }
.footer-col a:hover { color: var(--lime); opacity: 1; }
.footer-bottom {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-badges { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; letter-spacing: 0.06em; }
.footer-badges i { font-style: normal; opacity: 0.4; }

/* ---------- legal ---------- */

.legal-page { max-width: 820px; margin: 0 auto; padding: clamp(44px, 7vw, 90px) clamp(16px, 4vw, 44px); }
.legal-page.narrow { max-width: 560px; text-align: center; }
.page-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 14px 0 16px; }
.page-lede { color: var(--muted); max-width: 62ch; }
.legal-body { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.legal-body h2 { font-size: 1.15rem; }
.legal-body p { color: var(--muted); margin-top: 10px; }
.legal-foot { margin-top: 44px; color: var(--muted); font-size: 0.8rem; }

/* ---------- auth ---------- */

.auth-main { display: grid; place-items: center; padding: clamp(40px, 7vw, 90px) 16px; }
.auth-card {
  width: min(440px, 100%);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.auth-switch { margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.auth-switch a { color: var(--lime); font-weight: 600; }
.auth-card .cta-note { text-align: center; }
.auth-card .cta-note a { color: var(--lime); }

/* ---------- dashboard (admin) ---------- */

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.stat-card span { display: block; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.stat-card b { font-family: var(--font-display); font-size: 1.5rem; display: inline-block; margin-top: 8px; }
.stat-card b small { font-size: 0.6em; color: var(--muted); }
.stat-card.accent { border-color: rgba(216, 255, 62, 0.4); }
.stat-card.accent b { color: var(--lime); }
.stat-card.warn { border-color: rgba(255, 201, 77, 0.45); }
.stat-card.warn b { color: var(--gold); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.dash-card.span-2 { grid-column: 1 / -1; }
.dash-card h2 { font-size: 1.05rem; margin-bottom: 18px; }
.dash-card h2 .muted { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
.table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table .pos { color: var(--lime); }
.table .neg { color: var(--red); }
.row-off td { opacity: 0.5; }
.card .table-wrap { margin: 0 -4px; }

.code { font-family: ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, 0.06); padding: 3px 8px; border-radius: 7px; font-size: 0.82rem; }
.strong-link { font-weight: 700; }
.strong-link:hover { color: var(--lime); }
.truncate { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- admin ---------- */

.admin-main { max-width: 1280px; margin: 0 auto; padding: 34px clamp(16px, 3vw, 36px) 80px; }
.admin-main > * + * { margin-top: 22px; }

.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px clamp(16px, 3vw, 36px);
}
.admin-tag {
  vertical-align: middle;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
}
.admin-nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.admin-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.admin-nav a.active { background: var(--lime); color: #0a0b0e; }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.admin-head > div p { margin-top: 6px; }

.form-card { padding: 26px; }
.form-card h2 { font-size: 1rem; margin-bottom: 18px; }
.form-card h2 .muted { font-family: var(--font-body); font-weight: 400; font-size: 0.84rem; }
.form-grid { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 180px; }
.form-section { font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime); margin-top: 8px; }
.form-row.checks { align-items: center; gap: 24px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--lime); }
.field-color { max-width: 120px; }

.cell-offer { display: flex; align-items: center; gap: 12px; }
.cell-offer small { display: block; font-size: 0.76rem; }

.link-edit-cell { padding: 10px 8px !important; }
.link-edit-form { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; min-width: 620px; }
.link-edit-form .input-grow { flex: 1; font-size: 0.84rem; }
.link-edit-form .input-narrow { width: 110px; }
.link-edit-form .input-tiny { width: 74px; }
.add-link-form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.add-link-form input:first-child { flex: 1; min-width: 260px; }
.add-link-form input:nth-child(2) { width: 120px; }
.add-link-form input:nth-child(3) { width: 90px; }

.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input { min-width: 260px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--lime), rgba(216, 255, 62, 0.25)); min-height: 4px; transition: height 0.4s ease; }
.chart-col small { color: var(--muted); font-size: 0.68rem; }

.meter-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.meter-head { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 7px; }
.meter-head .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.meter { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .featured-card { max-width: 560px; }
  .offer-row { grid-template-columns: 56px auto 1fr; grid-template-areas: "rank logo info" ". . action"; }
  .offer-row .rank { grid-area: rank; }
  .offer-row .logo-tile { grid-area: logo; }
  .offer-row .banner-tile { grid-area: logo; }
  .offer-row .offer-info { grid-area: info; }
  .offer-row .offer-action { grid-area: action; max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .admin-header-inner { flex-wrap: wrap; }
  .admin-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .nav-login { display: none; }
  .brand-logo { height: 34px; }
  .brand-word { font-size: 1rem; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 0.82rem; }
  .hero { padding-top: 34px; }
  .hero-cta-row .btn { flex: 1; }
  .trust-row li { font-size: 0.74rem; padding: 6px 10px; }
  .offer-row { grid-template-columns: 48px 1fr; grid-template-areas: "rank logo" "info info" "action action"; row-gap: 14px; padding: 18px; }
  .offer-row .offer-action { max-width: none; }
  .rank { font-size: 2rem; }
  .logo-tile { width: 48px; height: 48px; border-radius: 14px; }
  .logo-lg { width: 64px; height: 64px; }
  .banner-tile img { height: 48px; max-width: 150px; }
  .banner-lg img { height: 60px; max-width: 180px; }
  .featured-card { padding: 26px 20px 22px; border-radius: 22px; }
  .featured-name { font-size: 1.2rem; }
  .bonus-headline { font-size: 1.5rem; }
  .stat-row { gap: 16px 8px; }
  .trust-strip { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card b { font-size: 1.2rem; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .flash { top: auto; bottom: 16px; font-size: 0.84rem; }
  .flash-close { display: none; }
  .add-link-form input { width: 100% !important; min-width: 0 !important; }
  .search-form { width: 100%; }
  .search-form input { min-width: 0; flex: 1; }
  .chart { gap: 5px; }
  .chart-col small { font-size: 0.58rem; }
  .admin-header-actions .btn-ghost:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
