:root {
  /* Theme primary — purple, used for CTAs, brand TOPLIST, vibe-coded text, accents */
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --primary-deep: #6D28D9;
  --primary-bright: #C084FC;
  --primary-soft: #F4F1FF;
  --primary-tint: rgba(139, 92, 246, 0.10);
  --primary-tint-2: rgba(139, 92, 246, 0.18);

  /* Accent (rarely used) */
  --accent-pink: #EC4899;
  --gradient-hero: linear-gradient(135deg, #8B5CF6 0%, #C084FC 100%);
  --gradient-line: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);

  /* Light surfaces (body theme) */
  --page-bg: #F7F5FF;
  --surface: #FFFFFF;
  --surface-2: #FAF8FF;
  --text: #1E1B33;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-strong: #D9D5EA;

  /* Dark surfaces (nav, footer, hero overlay) */
  --bg-dark: #0F0F1E;
  --bg-dark-2: #1A1A2E;
  --bg-dark-3: #252538;
  --text-on-dark: #F1F5F9;
  --text-on-dark-muted: #94A3B8;
  --border-dark: #2D2D44;

  /* Status / medals */
  --gold: #F7B731;
  --silver: #C0C5CD;
  --bronze: #CD7F32;
  --ok: #10B981;
  --warn: #F59E0B;
  --err: #EF4444;
  --info: #3B82F6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
pre.code {
  background: #0F0F1E;
  border: 1px solid var(--border-dark);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  color: #E2E8F0;
  white-space: pre;
}
.muted { color: var(--text-muted); }

/* ========== Top nav (dark) ========== */
.topnav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  position: sticky; top: 0; z-index: 50;
}
.topnav__inner {
  max-width: 1380px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
}
.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex; gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand__vibe { color: #FFFFFF; }
.brand__top { color: var(--primary-bright); }
.brand--small { font-size: 18px; }
.topnav__links {
  display: flex; gap: 26px;
  font-size: 14px; font-weight: 600;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.topnav__links a {
  color: rgba(241, 245, 249, 0.85);
  position: relative;
  padding: 4px 0;
  line-height: 1.4;
  transition: color .12s;
}
.topnav__links a:hover { color: #fff; text-decoration: none; }
.topnav__links a.active { color: #fff; }
.topnav__links a.active::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: -2px;
  height: 1.5px;
  background: var(--gradient-line);
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(192, 132, 252, 0.35);
}
.topnav__search {
  position: relative;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.topnav__search-icon {
  position: absolute; left: 12px;
  color: rgba(241,245,249,0.55);
  pointer-events: none;
}
.topnav__search input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 34px;
  font-size: 13px;
  font-family: inherit;
  width: 200px;
  transition: background .12s, border-color .12s, width .15s;
}
.topnav__search input::placeholder { color: rgba(241,245,249,0.55); }
.topnav__search input:focus {
  outline: none;
  background: rgba(255,255,255,0.10);
  border-color: var(--primary);
  width: 240px;
}
.topnav__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ========== Buttons (purple primary, smaller default) ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 7px 16px; border-radius: 9px;
  font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn__icon { flex-shrink: 0; }
.btn--primary {
  background: var(--primary); color: white;
  box-shadow: 0 3px 12px rgba(139, 92, 246, 0.38);
}
.btn--primary:hover {
  background: var(--primary-hover); color: white;
  box-shadow: 0 5px 18px rgba(139, 92, 246, 0.55);
}
.btn--glass {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 6px 22px rgba(15, 15, 30, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white;
  border-color: rgba(255, 255, 255, 0.50);
  box-shadow:
    0 8px 26px rgba(15, 15, 30, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.btn--white {
  background: rgba(255,255,255,0.94); color: var(--text);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn--white:hover { background: #fff; color: var(--primary-hover); }
.btn--vote {
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 50%, var(--primary-hover) 100%);
  color: white;
  font-weight: 800; letter-spacing: 0.06em;
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(124, 58, 237, 0.35);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: saturate(1.1);
  backdrop-filter: saturate(1.1);
}
.btn--vote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.btn--vote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn--vote:hover {
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 60%, var(--primary-hover) 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 6px 22px rgba(124, 58, 237, 0.52);
  transform: translateY(-1px);
}
.btn--vote:hover::after { transform: translateX(100%); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-dark); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-on-dark); }
.btn--ghost-light { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--ghost-light:hover { background: var(--primary-soft); color: var(--primary-hover); border-color: var(--primary-tint-2); }
.btn--admin { color: var(--gold); border-color: rgba(247, 183, 49, 0.3); }
.btn--danger { background: var(--err); color: white; }
.btn--danger:hover { background: #DC2626; color: white; }
.btn--md { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 10px 22px; font-size: 14px; }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== Hero banner (image bg) ========== */
.hero-banner {
  position: relative;
  width: 100%;
  background-color: #98C4E8;
  min-height: 260px;
  padding: 46px 24px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-banner__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* object-position + transform are set inline from header_settings */
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,15,30,0.10) 0%, rgba(15,15,30,0.50) 100%);
  pointer-events: none;
}
.hero-banner__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-banner__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 4px 22px rgba(15, 15, 30, 0.6), 0 2px 8px rgba(15, 15, 30, 0.55);
  letter-spacing: -0.025em;
}
.hero-banner__hl {
  color: #C084FC;
  -webkit-text-fill-color: #C084FC;
  text-shadow:
    0 0 14px rgba(192, 132, 252, 0.65),
    0 0 28px rgba(192, 132, 252, 0.40),
    0 2px 6px rgba(15, 15, 30, 0.50);
}
.hero-banner__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 22px;
  text-shadow: 0 2px 12px rgba(15, 15, 30, 0.6);
  font-weight: 500;
}
.hero-banner__cta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 720px) {
  .hero-banner { min-height: 200px; padding: 30px 18px 38px; }
  .hero-banner__title { font-size: 32px; }
  .hero-banner__sub { font-size: 14px; }
}

/* ========== Stats bar (under hero, light, with icons) ========== */
.hero-stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-stats-bar__inner {
  max-width: 1380px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 12px 24px;
}
.hero-stats-bar__inner > div {
  display: flex; align-items: center; gap: 12px;
  border-right: 1px solid var(--border);
  padding: 4px 16px;
}
.hero-stats-bar__inner > div:last-child { border-right: none; }
.hero-stats-bar__inner > div:first-child { padding-left: 0; }
.hero-stats-bar__icon {
  width: 28px; height: 28px;
  padding: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  flex-shrink: 0;
}
.hero-stats-bar__col { display: flex; flex-direction: column; line-height: 1.15; }
.hero-stats-bar__col strong {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stats-bar__col span {
  font-size: 11px; color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .hero-stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stats-bar__inner > div:nth-child(2) { border-right: none; }
}

/* ========== Featured 728x90 banner (above listings) ========== */
/* Active state: just the banner image, no chrome */
.featured-banner-active {
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 auto 14px;
  text-decoration: none;
}
.featured-banner-active img {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}
/* Empty placeholder: keep panel chrome — only shown when slot is unsold */
.featured-banner {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
  text-decoration: none;
  text-align: center;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.featured-banner:hover { transform: translateY(-1px); border-color: var(--primary-tint-2); box-shadow: 0 6px 18px rgba(31, 27, 51, 0.07); text-decoration: none; }
.featured-banner__label {
  position: absolute;
  top: 6px; left: 8px;
  background: rgba(15, 15, 30, 0.78);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.featured-banner--empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 92px;
  background:
    repeating-linear-gradient(45deg, var(--primary-tint) 0 12px, transparent 12px 24px),
    var(--primary-soft);
  border: 1px dashed var(--border-strong);
  padding: 16px;
  gap: 4px;
}
.featured-banner__empty-title { color: var(--text); font-weight: 700; font-size: 14px; }
.featured-banner__empty-sub { color: var(--text-muted); font-size: 12px; }
/* Right-rail active ad: no panel, no label, just the image */
.rail-ad {
  display: block;
  margin-bottom: 18px;
  text-decoration: none;
}
.rail-ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ========== Layout ========== */
.page { max-width: 1380px; margin: 0 auto; padding: 24px; min-height: calc(100vh - 220px); }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; }
.page-head__sub { color: var(--text-muted); margin: 0; }

.home-grid {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 200px 1fr; }
  .home-rail { grid-column: 1 / -1; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-sidebar { order: 2; }
}

/* ========== Browse Categories panel (light) ========== */
.cat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
  position: sticky; top: 78px;
}
.cat-panel__head {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.10em;
  margin: 4px 6px 10px;
}
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.cat-list__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.cat-list__link:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
  text-decoration: none;
}
.cat-list__link--active {
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 700;
}
.cat-list__icon { flex-shrink: 0; color: var(--primary); }
.cat-list__name { flex: 1; }
.cat-list__count {
  font-size: 12px; color: var(--text-muted);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.cat-list__link--active .cat-list__count { color: var(--primary-hover); }
.cat-panel__view-all {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 14px;
  background: var(--primary);
  color: white !important;
  border-radius: 10px;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
  transition: background .12s, transform .12s;
}
.cat-panel__view-all:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ========== Listings: rank cards (light theme) ========== */
.list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
}
.list-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.list-panel__head h2 { margin: 0; font-size: 18px; font-weight: 800; }

.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-card {
  display: grid;
  grid-template-columns: 56px 1fr 110px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rank-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.12);
}

.rank-card__rank {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.rank-card__medal { display: block; }
.rank-card__medal--gold { color: var(--gold); filter: drop-shadow(0 2px 5px rgba(247, 183, 49, 0.45)); }
.rank-card__medal--silver { color: #9CA3AF; filter: drop-shadow(0 2px 5px rgba(156, 163, 175, 0.40)); }
.rank-card__medal--bronze { color: var(--bronze); filter: drop-shadow(0 2px 5px rgba(205, 127, 50, 0.45)); }
.rank-num {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.rank-card--gold {
  background:
    linear-gradient(135deg, rgba(247, 183, 49, 0.16), rgba(247, 183, 49, 0.04)),
    var(--surface);
  border-color: rgba(247, 183, 49, 0.50);
  box-shadow:
    0 0 0 1px rgba(247, 183, 49, 0.18),
    0 6px 18px rgba(247, 183, 49, 0.10);
}
.rank-card--silver {
  background:
    linear-gradient(135deg, rgba(156, 163, 175, 0.14), rgba(156, 163, 175, 0.03)),
    var(--surface);
  border-color: rgba(156, 163, 175, 0.45);
  box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.16);
}
.rank-card--bronze {
  background:
    linear-gradient(135deg, rgba(205, 127, 50, 0.16), rgba(205, 127, 50, 0.04)),
    var(--surface);
  border-color: rgba(205, 127, 50, 0.45);
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.16);
}
/* Premium / Gold listing — visual highlight only, no rank push.
   Gradient stroke via padding-box/border-box dual-bg trick. */
.rank-card--premium {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #FFFAF0 0%, #FFFFFF 60%) padding-box,
    linear-gradient(135deg, #F7B731 0%, #FFE082 30%, #FFD45E 50%, #FFE082 70%, #F7B731 100%) border-box;
  box-shadow:
    0 8px 24px rgba(247, 183, 49, 0.22),
    0 2px 8px rgba(247, 183, 49, 0.12);
  overflow: hidden;
}
.rank-card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top right, rgba(247, 183, 49, 0.20) 0%, transparent 60%),
    linear-gradient(135deg, rgba(247, 183, 49, 0.10), transparent 65%);
  z-index: 0;
}
.rank-card--premium > * { position: relative; z-index: 1; }
.rank-card__ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  width: 130px;
  background: linear-gradient(135deg, #F7B731 0%, #FFE082 50%, #F7B731 100%);
  color: #1E1B33;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 5px 0;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow:
    0 3px 8px rgba(247, 183, 49, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(150, 100, 0, 0.20);
  z-index: 4;
  pointer-events: none;
}
.rank-card--premium:hover {
  box-shadow:
    0 12px 32px rgba(247, 183, 49, 0.32),
    0 4px 12px rgba(247, 183, 49, 0.18);
}

.rank-card__body {
  display: flex; flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rank-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700;
  line-height: 1.2;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.rank-card__title a { color: var(--text); text-decoration: none; }
.rank-card__title a:hover { color: var(--primary); }

.rank-card__banner {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-soft);
  width: 100%;
  aspect-ratio: 728 / 90;
  max-width: 728px;
}
.rank-card__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rank-card__banner-placeholder {
  width: 100%; height: 100%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 18px;
  color: #fff; letter-spacing: 0.03em;
}

.rank-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-card__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-card__side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.rank-card__votes {
  text-align: center;
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
}
.rank-card__votes strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 800;
  line-height: 1.1;
  color: var(--primary-hover);
  font-variant-numeric: tabular-nums;
}
.rank-card__votes span {
  font-size: 10px; color: var(--text-muted);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rank-card__side .btn--vote { width: 100%; }

@media (max-width: 720px) {
  .rank-card { grid-template-columns: 44px 1fr; gap: 10px; }
  .rank-card__side { grid-column: 1 / -1; flex-direction: row; }
  .rank-card__votes { flex: 1; }
  .rank-card__side .btn--vote { flex: 1; }
}

.home-main__cta { text-align: center; margin-top: 18px; }

/* ========== Tags & badges ========== */
.tag {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--primary-tint);
  color: var(--primary-deep);
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--gradient { background: var(--gradient-hero); color: white; letter-spacing: 0.03em; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; vertical-align: middle; }
.badge--gold { background: linear-gradient(135deg, #F7B731, #F59E0B); color: #1A1006; }
.badge--sponsored { background: var(--primary); color: white; }

.status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.status--pending { background: rgba(245, 158, 11, 0.18); color: #92400E; }
.status--active { background: rgba(16, 185, 129, 0.18); color: #047857; }
.status--paused { background: rgba(148, 163, 184, 0.20); color: #475569; }
.status--removed { background: rgba(239, 68, 68, 0.18); color: #B91C1C; }
.status--draft { background: rgba(148, 163, 184, 0.20); color: #475569; }
.status--scheduled { background: rgba(139, 92, 246, 0.18); color: #6D28D9; }
.status--published { background: rgba(16, 185, 129, 0.18); color: #047857; }

/* ========== Blog ========== */
.blog-index { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.blog-index__head { text-align: center; margin-bottom: 32px; }
.blog-index__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); padding: 4px 10px; border-radius: 999px; background: rgba(139, 92, 246, 0.1); }
.blog-index__title { font-family: 'Outfit', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 14px 0 8px; }
.blog-index__hl { color: var(--bright); }
.blog-index__sub { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12); }
.blog-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--bright)); overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__media--placeholder { background: linear-gradient(135deg, #8B5CF6, #C084FC); }
.blog-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; margin-bottom: 8px; }
.blog-card__title { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.blog-card__excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.55; flex: 1; margin: 0 0 14px; }
.blog-card__cta { color: var(--primary); font-weight: 600; font-size: 14px; }

.blog-post { max-width: 760px; margin: 24px auto 60px; padding: 0 20px; }
.blog-post__back { color: var(--text-muted); font-size: 14px; }
.blog-post__back a { color: inherit; text-decoration: none; }
.blog-post__back a:hover { color: var(--primary); }
.blog-post__hero { margin: 16px 0 24px; border-radius: 14px; overflow: hidden; max-height: 440px; }
.blog-post__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-post__head { margin-bottom: 32px; }
.blog-post__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); }
.blog-post__title { font-family: 'Outfit', sans-serif; font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin: 8px 0 12px; }
.blog-post__meta { font-size: 13px; color: var(--text-muted); }
.blog-post__rule { display: block; width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--bright)); border-radius: 3px; margin-top: 18px; }
.blog-post__content { font-size: 16px; line-height: 1.85; color: var(--text); }
.blog-post__content h2 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 700; margin: 1.6em 0 0.5em; }
.blog-post__content h3 { font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 700; margin: 1.4em 0 0.4em; }
.blog-post__content p { margin: 0.9em 0; }
.blog-post__content a { color: var(--primary); }
.blog-post__content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.4em 0; }
.blog-post__content blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 18px; color: #6B7280; margin: 1.4em 0; font-style: italic; }
.blog-post__content ul, .blog-post__content ol { padding-left: 1.6em; }
.blog-post__content li { margin: 0.4em 0; }
.blog-post__content pre { background: #FAFAFA; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; overflow-x: auto; font-size: 14px; }
.blog-post__content code { background: rgba(139, 92, 246, 0.08); color: var(--primary-deep); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.blog-post__content pre code { background: transparent; padding: 0; color: inherit; }

.blog-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 20px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.blog-post__share-label { font-size: 13px; color: var(--text-muted); margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.15s; }
.share-btn:hover { transform: translateY(-1px); }
.share-btn--x:hover { background: #000; color: #fff; border-color: #000; }
.share-btn--fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn--li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-btn--wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn--copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.blog-post__cta { margin-top: 40px; padding: 28px 32px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(192, 132, 252, 0.06)); border: 1px solid var(--border); border-radius: 14px; text-align: center; }
.blog-post__cta h3 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.blog-post__cta p { color: var(--text-muted); margin: 0 0 16px; }

/* ========== Listing detail page ========== */
.listing-page { max-width: 1100px; margin: 24px auto 60px; padding: 0 20px; }

.listing-page__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .listing-page__hero { grid-template-columns: 1fr; gap: 14px; }
}

.listing-page__rank { text-align: center; padding: 12px 18px; background: linear-gradient(135deg, var(--primary), var(--bright)); color: #fff; border-radius: 12px; min-width: 110px; }
.listing-page__rank-prefix { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.9; }
.listing-page__rank-num { display: block; font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; line-height: 1.1; margin-top: 2px; }

.listing-page__title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-page__title { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0; line-height: 1.15; }
.listing-page__tagline { color: var(--text-muted); font-size: 16px; margin: 6px 0 10px; }
.listing-page__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.listing-page__cta { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
@media (max-width: 760px) { .listing-page__cta { flex-direction: row; flex-wrap: wrap; } }

.listing-page__banner { margin: 0 auto 18px; text-align: center; }
.listing-page__banner img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

.listing-page__video { margin-bottom: 18px; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(31, 27, 51, 0.08);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.listing-page__shots { margin-bottom: 24px; }
.listing-page__h2 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 14px; }

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.shot-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #000;
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.shot-thumb:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 18px rgba(139, 92, 246, 0.18); }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot-lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 14, 35, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.shot-lightbox[hidden] { display: none; }
.shot-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.shot-lightbox__close, .shot-lightbox__prev, .shot-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.shot-lightbox__close:hover, .shot-lightbox__prev:hover, .shot-lightbox__next:hover { background: rgba(255, 255, 255, 0.25); }
.shot-lightbox__close { top: 24px; right: 24px; }
.shot-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.shot-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.shot-lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; opacity: 0.7; }

.listing-page__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 860px) { .listing-page__grid { grid-template-columns: 1fr; } }

/* ========== Screenshot manager (dashboard) ========== */
.shot-manager { padding: 4px 0; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.shot-grid__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.shot-grid__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.shot-grid__item form { padding: 8px; text-align: right; background: #FAFAFA; border-top: 1px solid var(--border); }

.shot-upload {
  background: #FAFAFA;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.shot-upload label { flex: 1; min-width: 240px; }

/* ========== Right rail (light) ========== */
.banner-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
}
.banner-slot__label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px; font-weight: 700;
}
.banner-slot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.banner-slot__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--primary-tint) 0 12px, transparent 12px 24px),
    var(--primary-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  text-align: center; padding: 16px;
  color: var(--text-muted);
  text-decoration: none;
  gap: 6px;
}
.banner-slot__empty:hover { border-color: var(--primary); color: var(--text); text-decoration: none; }
.banner-slot__empty-title { color: var(--text); font-weight: 700; }
.banner-slot__empty-sub { font-size: 12px; }

.sitewide-banner { text-align: center; padding: 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.sitewide-banner img { max-width: 100%; height: auto; border-radius: 6px; }

/* ========== Filter bar (light) ========== */
.filter-bar { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 9px 12px;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.pagination {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin: 22px 0 6px; color: var(--text-muted); flex-wrap: wrap;
}
.pagination__btn {
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.pagination__btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-tint-2);
  color: var(--primary-hover);
  text-decoration: none;
}
.pagination__btn--disabled {
  opacity: 0.45; pointer-events: none; user-select: none;
}
.pagination__pages { display: flex; gap: 4px; align-items: center; }
.pagination__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.pagination__num:hover {
  background: var(--primary-soft);
  border-color: var(--primary-tint-2);
  color: var(--primary-hover);
  text-decoration: none;
}
.pagination__num--current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pagination__num--current:hover {
  color: white;
  background: var(--primary);
}
.pagination__ellipsis { padding: 0 4px; color: var(--text-muted); }
.pagination__total { text-align: center; margin: 6px 0 12px; font-size: 12px; }

.empty { padding: 32px; text-align: center; color: var(--text-muted); }

/* ========== Forms / auth (light) ========== */
.auth-card {
  max-width: 420px; margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(31, 27, 51, 0.06);
}
.auth-card h1 { margin: 0 0 8px; }
.auth-card__sub { color: var(--text-muted); margin: 0 0 20px; }
.auth-card__links { margin-top: 16px; display: flex; justify-content: space-between; font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form--lg { gap: 18px; }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.form--inline-tight { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label, .form > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.form input, .form select, .form textarea {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 10px 12px;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.form small { color: var(--text-muted); font-size: 12px; }
.form textarea { resize: vertical; }

/* ========== Flashes & alerts ========== */
.flashes { max-width: 1380px; margin: 0 auto; padding: 14px 24px 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; border: 1px solid var(--border); background: var(--surface); }
.flash--success { background: rgba(16, 185, 129, 0.10); color: #047857; border-color: rgba(16,185,129,0.35); }
.flash--error { background: rgba(239, 68, 68, 0.10); color: #B91C1C; border-color: rgba(239,68,68,0.35); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface); }
.alert--info { background: rgba(59,130,246,0.08); color: #1E40AF; border-color: rgba(59,130,246,0.3); }
.alert--warn { background: rgba(245,158,11,0.10); color: #92400E; border-color: rgba(245,158,11,0.3); }
.alert--err { background: rgba(239,68,68,0.10); color: #B91C1C; border-color: rgba(239,68,68,0.3); }

/* ========== Listing detail page (light) ========== */
.listing-detail { max-width: 980px; margin: 0 auto; }
.listing-detail__head {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 18px; align-items: center; margin-bottom: 18px;
}
.listing-detail__rank {
  font-family: 'Outfit', sans-serif;
  font-size: 42px; font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
  text-align: center;
}
.listing-detail__title { margin: 0; font-size: 28px; }
.listing-detail__tagline { color: var(--text-muted); margin: 4px 0 8px; }
.listing-detail__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-detail__action { display: flex; flex-direction: column; gap: 8px; }
.listing-detail__banner { margin-bottom: 18px; text-align: center; }
.listing-detail__banner img { max-width: 100%; border-radius: 8px; }
.listing-detail__grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
@media (max-width: 800px) { .listing-detail__grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.prose { white-space: pre-wrap; }
.recent-votes { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.recent-votes li { padding: 6px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
.recent-votes__when { color: var(--text-muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(31, 27, 51, 0.03);
}
.panel--side { padding: 18px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel__head h3 { margin: 0; }
.panel__subhead { margin: 18px 0 8px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

.moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.moderation-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.moderation-tile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
}
.moderation-tile strong { color: var(--primary-deep); font-size: 15px; }
.moderation-tile span { color: var(--text-muted); font-size: 13px; }

/* ========== Vote screen ========== */
.vote-screen { max-width: 600px; margin: 40px auto; }
.vote-screen__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(31, 27, 51, 0.06);
}
.vote-screen__card--success { border-color: var(--ok); }
.vote-screen__card--warn { border-color: var(--warn); }
.vote-screen__check {
  width: 64px; height: 64px; line-height: 64px;
  margin: 0 auto 14px;
  background: var(--ok); color: white;
  border-radius: 50%; font-size: 32px; font-weight: 700;
}
.vote-screen__banner { max-width: 100%; height: auto; margin-bottom: 18px; border-radius: 6px; }
.vote-screen__ref { color: var(--text-muted); margin: -6px 0 18px; }
.vote-screen__note { color: var(--text-muted); font-size: 12px; margin-top: 14px; }
.vote-screen__actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.vote-screen__back { margin-top: 22px; }

/* ========== Dashboard (light) ========== */
.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) { .dashboard { grid-template-columns: 1fr; } }
.dashboard__nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: sticky; top: 78px;
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
}
.dashboard__nav h3 { margin: 0 0 10px; font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.10em; font-weight: 800; }
.dashboard__nav a {
  display: block; padding: 8px 12px;
  margin-bottom: 2px;
  color: var(--text); font-size: 14px; border-radius: 8px; font-weight: 600;
  text-decoration: none;
}
.dashboard__nav a:hover { background: var(--primary-soft); color: var(--primary-hover); text-decoration: none; }
.dashboard__nav a.active { background: var(--primary); color: white; }
.dashboard__nav--admin a.active { background: var(--gold); color: #1A1006; }
.dashboard__main { min-width: 0; }
.dashboard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.dashboard__head h1 { margin: 0; }
.dashboard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 920px) { .dashboard__grid { grid-template-columns: 1fr; } }

.dash-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 27, 51, 0.03);
}
.dash-table thead { background: var(--primary-soft); }
.dash-table th, .dash-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.dash-table th { font-size: 11px; color: var(--primary-deep); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table--compact th, .dash-table--compact td { padding: 6px 10px; font-size: 13px; }
.row-actions { display: flex; gap: 10px; }

.danger-zone { margin-top: 32px; padding: 16px; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 10px; background: rgba(239,68,68,0.04); }

/* ========== Admin stats (light) ========== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 800px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(31, 27, 51, 0.03);
}
.stat-card strong { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-card span { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.stat-card--accent {
  background: linear-gradient(135deg, rgba(247,183,49,0.10), rgba(139,92,246,0.06)), var(--surface);
  border-color: rgba(247, 183, 49, 0.4);
}
.stat-card--accent strong { color: #B45309; }

.log-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.log-list li { padding: 8px 0; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.log-list__when { color: var(--text-muted); min-width: 130px; font-family: ui-monospace, monospace; font-size: 12px; }
.log-list__who { font-weight: 700; }
.log-list__action { color: var(--primary); }

/* ========== Advertise — ad slot grid ========== */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(31, 27, 51, 0.04);
  display: flex; flex-direction: column;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.ad-card:hover { transform: translateY(-2px); border-color: var(--primary-tint-2); box-shadow: 0 8px 22px rgba(31, 27, 51, 0.08); }
.ad-card--full { opacity: 0.85; }
.ad-card__top { margin-bottom: 14px; }
.ad-card__title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ad-card__title { margin: 0; font-size: 16px; font-weight: 800; }
.ad-card__crown {
  background: linear-gradient(135deg, #F7B731, #F59E0B);
  color: #1A1006;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
}
.ad-card__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.ad-card__price {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 900;
  color: var(--primary-deep);
  line-height: 1;
}
.ad-card__price-unit { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ad-card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.ad-card__dim {
  background: var(--primary-soft); color: var(--primary-deep);
  padding: 2px 8px; border-radius: 6px; font-weight: 700;
}
.ad-card__rot {
  background: var(--surface-2); color: var(--text-muted);
  padding: 2px 8px; border-radius: 6px; font-weight: 600;
  border: 1px solid var(--border);
}
.ad-card__rot--solo {
  background: rgba(247, 183, 49, 0.12);
  color: #92400E;
  border-color: rgba(247, 183, 49, 0.4);
}
.ad-card__preview { display: flex; justify-content: center; padding: 12px 0 16px; }
.ad-card__preview-box {
  width: var(--w);
  height: var(--h);
  max-width: 100%;
  max-height: 180px;
  background: repeating-linear-gradient(45deg, var(--primary-tint) 0 10px, transparent 10px 20px), var(--primary-soft);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  border-radius: 6px;
}
.ad-card__capacity { margin-bottom: 14px; }
.ad-card__capacity-pill {
  display: inline-block;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 8px;
}
.ad-card__capacity-pill--ok { background: rgba(16, 185, 129, 0.12); color: #047857; }
.ad-card__capacity-pill--full { background: rgba(239, 68, 68, 0.10); color: #B91C1C; }
.ad-card__capacity-pill--hold { background: rgba(245, 158, 11, 0.14); color: #92400E; }
.ad-card__capacity-pill--hold .js-countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.ad-card__capacity-bar {
  height: 6px; background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden;
  margin-bottom: 4px;
}
.ad-card__capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  border-radius: 999px;
  transition: width .3s;
}
.ad-card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.ad-card__actions small { display: block; }

.advertise-faq { margin-top: 28px; }
.advertise-faq ul { padding-left: 22px; }
.advertise-faq li { margin-bottom: 8px; line-height: 1.5; }

/* Backwards-compat: if anything still uses banner-grid */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.banner-grid__card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }

/* ========== Banner checkout (countdown timer) ========== */
.checkout-countdown {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  min-width: 130px;
}
.checkout-countdown--warning { border-color: var(--warn); background: rgba(245, 158, 11, 0.08); }
.checkout-countdown--expired { border-color: var(--err); background: rgba(239, 68, 68, 0.10); }
.checkout-countdown__label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.checkout-countdown__time {
  font-size: 26px; font-weight: 900;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.checkout-countdown--warning .checkout-countdown__time { color: var(--warn); }
.checkout-countdown--expired .checkout-countdown__time { color: var(--err); font-size: 18px; }

.checkout-pay {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.checkout-pay__price strong {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 900;
  color: var(--primary-deep);
  display: block; line-height: 1;
}
.checkout-pay__price span {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

.docs { max-width: 880px; margin: 0 auto; }
.docs h2 { margin-top: 32px; color: var(--text); }
.docs h3 { margin-top: 22px; color: var(--primary); }

/* ========== Header preview (admin tool) ========== */
.header-preview {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #98C4E8;
  position: relative;
  cursor: grab;
  user-select: none;
  border: 2px solid var(--border);
  margin-bottom: 18px;
  overflow: hidden;
}
.header-preview--dragging { cursor: grabbing; border-color: var(--primary); }
.header-preview__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,15,30,0.05) 0%, rgba(15,15,30,0.45) 100%);
}
.header-preview__crosshair {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  background: rgba(0,0,0,0.20);
  position: relative;
}
.header-preview__crosshair::before, .header-preview__crosshair::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.85);
}
.header-preview__crosshair::before { left: 50%; top: -8px; bottom: -8px; width: 2px; transform: translateX(-50%); }
.header-preview__crosshair::after { top: 50%; left: -8px; right: -8px; height: 2px; transform: translateY(-50%); }
.header-preview__hint {
  margin-top: 14px;
  background: rgba(15,15,30,0.65);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.header-controls {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.header-controls label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.header-controls input {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 9px 12px;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.header-controls input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.header-controls__actions { display: flex; gap: 10px; }
@media (max-width: 700px) {
  .header-controls { grid-template-columns: 1fr; }
}
/* ========== Premium purchase (dashboard) ========== */
.premium-benefits {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.premium-benefits li { line-height: 1.5; color: var(--text); }
.premium-form__label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.premium-form__label select {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 10px 12px;
  border-radius: 8px; font-size: 14px; font-family: inherit;
  width: 100%;
}
.premium-form__label select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.premium-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 760px) { .premium-tiers { grid-template-columns: 1fr; } }
.premium-tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.premium-tier:hover {
  border-color: var(--primary-tint-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.10);
}
.premium-tier--popular {
  border-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(247, 183, 49, 0.10), rgba(247, 183, 49, 0.02) 60%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(247, 183, 49, 0.25);
}
.premium-tier__ribbon {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--gold);
  color: #1E1B33;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.premium-tier__title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 800;
  margin: 0;
  color: var(--text);
}
.premium-tier__price {
  display: flex; align-items: baseline; gap: 2px;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
}
.premium-tier__currency { font-size: 20px; font-weight: 700; color: var(--text-muted); }
.premium-tier__amount { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; }
.premium-tier__perday {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.premium-tier__save {
  background: var(--ok); color: white;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.premium-tier__bullets {
  list-style: none; margin: 4px 0 12px; padding: 0;
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 4px;
}
.premium-tier__bullets li { display: flex; gap: 6px; }
.premium-tier__bullets li::before {
  content: "✓"; color: var(--ok); font-weight: 700;
}
.premium-tier__cta { margin-top: auto; }
.premium-checkout-form { margin-top: 16px; }
.status--paid { background: rgba(16, 185, 129, 0.18); color: #047857; }
.status--cancelled { background: rgba(107, 114, 128, 0.18); color: #4B5563; }

/* Header upload form */
.header-upload-form { display: flex; flex-direction: column; gap: 14px; }
.header-upload-form__file {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.header-upload-form__file input[type="file"] {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 10px 12px;
  border-radius: 8px; font-size: 14px; font-family: inherit;
  cursor: pointer;
}
.header-upload-form__file input[type="file"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* ========== Footer (dark) ========== */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-dark);
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.footer__inner {
  max-width: 1380px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 30px 24px;
}
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
.footer__col h4 { font-size: 11px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.footer__col a { display: block; color: var(--text-on-dark); font-size: 14px; margin-bottom: 4px; text-decoration: none; }
.footer__col a:hover { color: var(--primary); }
.footer__tag { color: var(--text-on-dark-muted); font-size: 13px; margin: 6px 0 0; }
.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding: 12px 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-on-dark-muted);
  max-width: 1380px; margin: 0 auto;
}

.errpage { text-align: center; padding: 80px 20px; }
.errpage h1 { font-size: 80px; background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.errpage p { font-size: 18px; color: var(--text-muted); margin: 14px 0 24px; }

.check { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1100px) {
  .topnav__links { display: none; }
}
@media (max-width: 760px) {
  .topnav__search { display: none; }
}

/* Breadcrumbs (above page-head h1) */
.breadcrumbs {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: #6B7280;
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__link {
  color: #6B7280;
  text-decoration: none;
}
.breadcrumbs__link:hover { color: #8B5CF6; text-decoration: underline; }
.breadcrumbs__sep {
  margin: 0 6px;
  color: #C4C4D8;
}
.breadcrumbs__current {
  color: #111827;
  font-weight: 500;
}

/* Category page intro paragraph */
.category-intro {
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 14px 24px 0;
  color: #4B5563;
  line-height: 1.55;
  font-size: 15px;
}

/* ========== Related games (listing detail) ========== */
.related-games {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.related-games__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.related-games__head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.related-games__see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.related-games__see-all:hover { color: var(--primary-hover); text-decoration: underline; }
.related-games__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.related-card:hover {
  border-color: var(--primary-tint-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.10);
}
.related-card__banner {
  display: block;
  aspect-ratio: 728 / 90;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
}
.related-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-card__banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  padding: 0 12px;
  text-align: center;
}
.related-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.related-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.related-card__title a {
  color: var(--text);
  text-decoration: none;
}
.related-card__title a:hover { color: var(--primary); }
.related-card__tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.related-card__votes {
  font-size: 12px;
  color: var(--text-muted);
}
.related-card__votes strong {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.badge--xs {
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

/* ========== Cornerstone article (/what-is-vibe-coding) ========== */
.cornerstone {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
}
.cornerstone__head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.cornerstone__title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.cornerstone__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.cornerstone__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.cornerstone__meta span + span::before {
  content: " ";
}
.cornerstone__toc {
  background: var(--primary-soft);
  border: 1px solid var(--primary-tint-2);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 36px;
}
.cornerstone__toc-head {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  margin: 0 0 10px;
}
.cornerstone__toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  font-size: 14.5px;
}
.cornerstone__toc a {
  color: var(--text);
  text-decoration: none;
}
.cornerstone__toc a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 600px) {
  .cornerstone__toc ol { grid-template-columns: 1fr; }
}

.cornerstone__section {
  margin: 0 0 38px;
  scroll-margin-top: 18px;
}
.cornerstone__section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--text);
}
.cornerstone__section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 22px 0 8px;
  color: var(--text);
}
.cornerstone__section p {
  margin: 0 0 14px;
}
.cornerstone__section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.cornerstone__section a:hover { color: var(--primary-hover); text-decoration: underline; }
.cornerstone__section ul, .cornerstone__section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.cornerstone__section li { margin-bottom: 8px; }
.cornerstone__section strong { color: var(--text); font-weight: 700; }
.cornerstone__section em { font-style: italic; color: var(--text-muted); }

.cornerstone__compare li {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  list-style: none;
  margin-left: -22px;
}
.cornerstone__compare li + li { margin-top: 10px; }

.cornerstone__steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.cornerstone__steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px 14px 56px;
  margin-bottom: 14px;
  position: relative;
}
.cornerstone__steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
}
.cornerstone__steps h3 { margin-top: 0; margin-bottom: 6px; }
.cornerstone__steps p { margin-bottom: 0; }

.cornerstone__cta {
  margin-top: 44px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #FFF 100%);
  border: 1px solid var(--primary-tint-2);
  border-radius: 12px;
  text-align: center;
}
.cornerstone__cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.cornerstone__cta p {
  margin: 0 0 16px;
  color: var(--text-muted);
}
.cornerstone__cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cornerstone__cta .btn--white {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-tint-2);
}
.cornerstone__cta .btn--white:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .cornerstone__title { font-size: 32px; }
  .cornerstone__section h2 { font-size: 24px; }
  .cornerstone { font-size: 16px; padding: 24px 18px 40px; }
}
