/* ============ AllCheatsHere — fresh minimal theme ============ */

:root {
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 68px;
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --border: #e5e5e0;
  --border-strong: #d4d4cd;
  --text: #141412;
  --text-2: #5c5c56;
  --muted: #8b8b82;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --accent-text: #ffffff;
  --star: #f59e0b;
  --shadow: 0 1px 2px rgba(20, 20, 18, 0.05);
  --shadow-lg: 0 12px 32px -8px rgba(20, 20, 18, 0.12);
  --hero-overlay: linear-gradient(180deg, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.72));
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c0c0e;
  --bg-2: #101013;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --border: #26262b;
  --border-strong: #34343b;
  --text: #f2f2f0;
  --text-2: #a3a39b;
  --muted: #6f6f68;
  --accent: #818cf8;
  --accent-hover: #93a0fa;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --accent-text: #0c0c0e;
  --star: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.55);
  --hero-overlay: linear-gradient(180deg, rgba(8, 8, 10, 0.6), rgba(8, 8, 10, 0.8));
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: var(--accent-text); }

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  transition: transform 0.25s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg); }

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

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

.theme-toggle, .icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, transform 0.3s ease;
}
.theme-toggle:hover, .icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle:hover { transform: rotate(18deg); }
.theme-toggle svg, .icon-btn svg { width: 17px; height: 17px; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.burger span { display: block; height: 1.6px; background: var(--text); border-radius: 2px; }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.12) translateY(-14px); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 70px 24px 30px;
}

.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #a5b4fc, #e0e7ff 45%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 20px 24px 42px;
  flex-wrap: wrap;
  text-align: center;
}
.hero-stat { text-align: center; color: #fff; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.hero-stat span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ============ Sections ============ */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-tag svg { width: 13px; height: 13px; color: var(--accent); }

.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--text-2); max-width: 560px; margin-bottom: 44px; }
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============ Comparison slider ============ */

.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 8.2;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  max-width: 920px;
  margin: 0 auto;
  background: #0c0c0e;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare .compare-before { filter: grayscale(0.9) brightness(0.82) contrast(0.95); }
.compare .compare-after {
  clip-path: inset(0 0 0 var(--split, 50%));
  filter: saturate(1.25) contrast(1.06);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.35);
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.compare-knob svg { width: 15px; height: 15px; flex-shrink: 0; }

.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.compare-label.before { left: 14px; background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.85); }
.compare-label.after { right: 14px; background: rgba(79,70,229,0.85); color: #fff; }

/* ============ Feature cards ============ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }

.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text-2); }

/* ============ Page header (inner pages) ============ */

.page-hero {
  position: relative;
  padding: 84px 0 64px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 15px; }

/* ============ Catalog ============ */

.toolbar { display: grid; gap: 16px; margin-bottom: 30px; }

.search-input {
  position: relative;
}
.search-input svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-input input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mods-count { font-size: 13.5px; color: var(--muted); }

.select {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
}
.select:focus { border-color: var(--accent); }

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.mod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.mod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.mod-thumb { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--surface-2); }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mod-card:hover .mod-thumb img { transform: scale(1.06); }

.mod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.mod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mod-title { font-size: 17.5px; font-weight: 600; }
.mod-desc {
  font-size: 13px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.mod-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.mod-meta svg { width: 13px; height: 13px; }
.mod-meta .rating { color: var(--star); font-weight: 600; }
.mod-meta .rating svg { fill: var(--star); stroke: var(--star); }

.mod-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.mod-link:hover { gap: 10px; }
.mod-link svg { width: 14px; height: 14px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty-state b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* ============ Pagination ============ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s;
}
.page-btn svg { width: 14px; height: 14px; }
.page-btn:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.page-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ============ Subscribe / CTA ============ */

.subscribe {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.subscribe input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  padding: 72px 32px;
  text-align: center;
  color: #fff;
  border: 1px solid var(--border);
}
.cta-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.cta-band h2, .cta-band p, .cta-band .btn { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 28px; }

/* ============ Mod detail ============ */

.mod-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.mod-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mod-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.25), rgba(8,8,10,0.88));
}
.mod-hero-content { position: relative; z-index: 2; padding: 56px 0 40px; width: 100%; }
.mod-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 12px; }
.mod-hero .hero-desc { max-width: 640px; color: rgba(255,255,255,0.75); margin-bottom: 24px; }

.mod-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.mod-hero-meta .meta-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.mod-hero-meta svg { width: 15px; height: 15px; }
.mod-hero-meta .rating svg { fill: var(--star); stroke: var(--star); }

.badge-inline {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 26px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 15px; height: 15px; }

/* ============ Steps ============ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-num {
  position: absolute;
  top: 6px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}
[data-theme="dark"] .step-num { color: rgba(129,140,248,0.13); }

.step-card h3 { font-size: 16px; margin-bottom: 8px; position: relative; }
.step-card p { font-size: 13px; color: var(--text-2); position: relative; }

.steps-list { display: grid; gap: 14px; }

.step-row {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.step-row-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.step-row h3 { font-size: 15.5px; margin-bottom: 5px; }
.step-row p { font-size: 13.5px; color: var(--text-2); }

.tip {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 13.5px;
  color: var(--text-2);
}
.tip svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.tip b { color: var(--text); }

/* ============ Docs layout (tutorials / terms / privacy) ============ */

.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.docs-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.docs-toc-title svg { width: 14px; height: 14px; }
.docs-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-2);
  transition: all 0.15s;
}
.docs-toc a:hover { color: var(--text); background: var(--surface-2); }
.docs-toc a.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }

.docs-content h2 {
  font-size: 24px;
  margin: 48px 0 14px;
  padding-top: 12px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content > p { color: var(--text-2); margin-bottom: 22px; max-width: 720px; }

.doc-section h3 { font-size: 18px; margin-bottom: 10px; }
.doc-section p, .doc-section li { color: var(--text-2); font-size: 14.5px; }
.doc-section ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 7px; }
.doc-section { margin-bottom: 34px; }
.doc-section a { color: var(--accent); font-weight: 500; }
.doc-note {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  font-size: 13.5px;
  color: var(--text-2);
}

/* ============ Contact form ============ */

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card h2 { text-align: center; font-size: 24px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  margin: 22px 0;
}
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.check-row a { color: var(--accent); font-weight: 500; }

/* ============ FAQ ============ */

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-strong); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-q svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--text-2); margin-left: 18px; }
.footer-bottom a:hover { color: var(--text); }

/* ============ Toast ============ */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 14px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .burger { display: flex; }
  .header-actions .btn span, .header-actions .btn { display: none; }
  .section { padding: 60px 0; }
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .form-card { padding: 28px 22px; }
}

/* ============ Custom select ============ */

.cselect { position: relative; display: inline-block; }

.cselect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 175px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cselect-btn:hover { border-color: var(--border-strong); }
.cselect.open .cselect-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cselect-btn svg { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
.cselect.open .cselect-btn svg { transform: rotate(180deg); }

.cselect-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
  max-height: 280px;
  overflow: auto;
}
.cselect.open .cselect-list { opacity: 1; visibility: visible; transform: none; }

.cselect-list li {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cselect-list li:hover { background: var(--surface-2); color: var(--text); }
.cselect-list li.selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.cselect.block { display: block; }
.cselect.block .cselect-btn {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14px;
}
.cselect.block .cselect-list { left: 0; right: 0; }
.cselect-btn .placeholder { color: var(--muted); }

/* ============ Switch ============ */

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.2s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ============ Login ============ */

.login-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(600px 300px at 15% 10%, var(--accent-soft), transparent 60%),
    radial-gradient(500px 260px at 85% 90%, var(--accent-soft), transparent 60%);
}
.login-card { width: 100%; max-width: 420px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.login-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.login-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-2);
}
.login-back:hover { color: var(--text); }

/* ============ Admin ============ */

.admin-mode .header { display: none; }
.admin-mode { --header-h: 0px; }

.admin-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  padding: 4px 10px 20px;
}
.admin-logo .logo-mark { width: 28px; height: 28px; font-size: 14px; }
.admin-logo span:last-child { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: auto; letter-spacing: 0.06em; text-transform: uppercase; }

.admin-nav-label {
  padding: 12px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-nav a, .admin-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 11px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a:hover, .admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active { background: var(--accent-soft); color: var(--accent); }
.admin-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav .logout { margin-top: auto; color: var(--muted); }
.admin-nav .logout:hover { color: #e11d48; background: rgba(225, 29, 72, 0.08); }

.admin-main { padding: 36px 40px 60px; min-width: 0; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-head h1 { font-size: 27px; }
.admin-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
}
.admin-user .avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-user .avatar svg { width: 15px; height: 15px; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat-card .stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.stat-card .stat-icon svg { width: 16px; height: 16px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat-card .stat-delta.up { color: #16a34a; }
.stat-card .stat-delta.down { color: #e11d48; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.panel + .panel { margin-top: 20px; }
.panel-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.panel-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

.admin-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }

.bar-row { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; }
.bar-row .bar-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.bar-row .bar-val { text-align: right; color: var(--muted); font-size: 12.5px; }

.activity-item {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.activity-item:first-of-type { border-top: none; }
.activity-item .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.activity-item .time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.admin-form-grid .field.wide { grid-column: 1 / -1; }
.char-count { text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }

.admin-table-wrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .cell-game { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.admin-table .cell-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.admin-table .tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.icon-danger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  transition: all 0.15s;
}
.icon-danger:hover { color: #e11d48; border-color: rgba(225,29,72,0.35); background: rgba(225,29,72,0.07); }
.icon-danger svg { width: 15px; height: 15px; }

.admin-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

.info-list { display: grid; gap: 0; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.info-row:first-child { border-top: none; }
.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 500; text-align: right; }
.status-ok { display: inline-flex; align-items: center; gap: 7px; color: #16a34a; font-weight: 600; }
.status-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

@media (max-width: 960px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-logo { padding: 4px 10px; width: 100%; }
  .admin-nav-label { display: none; }
  .admin-nav { display: contents; }
  .admin-nav a, .admin-nav button { width: auto; }
  .admin-nav .logout { margin-top: 0; margin-left: auto; }
  .admin-main { padding: 26px 20px 50px; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* ============ Admin extras (React) ============ */

.loader {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.loader span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.img-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.img-field input { flex: 1; min-width: 0; }
.img-preview {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  overflow: hidden;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview svg { width: 18px; height: 18px; }

.file-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.file-current {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-current.empty { color: var(--muted); }
.file-current svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

.row-actions { display: flex; gap: 8px; }
.icon-danger.edit:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }

.empty-hint { padding: 24px 0; text-align: center; color: var(--muted); font-size: 13.5px; }

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.editor-head .panel-sub { margin-bottom: 0; }

.steps-editor { display: grid; gap: 12px; margin-top: 18px; }
.steps-editor-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.steps-editor-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.steps-editor-fields input, .steps-editor-fields textarea,
.faq-edit-fields input, .faq-edit-fields textarea,
.feature-editor-grid input, .feature-editor-grid textarea,
.stats-editor-row input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.steps-editor-fields textarea, .faq-edit-fields textarea, .feature-editor-grid textarea { resize: vertical; min-height: 64px; }
.steps-editor-fields input:focus, .steps-editor-fields textarea:focus,
.faq-edit-fields input:focus, .faq-edit-fields textarea:focus,
.feature-editor-grid input:focus, .feature-editor-grid textarea:focus,
.stats-editor-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feature-editor {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.feature-editor:first-of-type { border-top: none; }
.feature-editor-grid { flex: 1; display: grid; grid-template-columns: 170px 1fr; gap: 10px; min-width: 0; }
.feature-editor-grid .wide { grid-column: 1 / -1; }

.stats-editor { display: grid; gap: 10px; }
.stats-editor-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }

.page-editor { padding: 16px 0; border-top: 1px solid var(--border); }
.page-editor:first-of-type { border-top: none; padding-top: 0; }

.faq-edit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.faq-edit-item:first-of-type { border-top: none; padding-top: 0; }
.faq-edit-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }

@media (max-width: 720px) {
  .feature-editor-grid { grid-template-columns: 1fr; }
  .stats-editor-row { grid-template-columns: 1fr; }
  .img-field { flex-wrap: wrap; }
  .img-field input { flex-basis: 100%; order: 3; }
}
