:root {
  --bg-deep: #2a1b54;
  --bg-deeper: #1f1240;
  --bg-panel: #38256e;
  --bg-card: #4a2f8a;
  --bg-card-hover: #5b3aa8;
  --accent-pink: #ff3d8b;
  --accent-pink-hover: #ff5a9d;
  --accent-purple: #8a5cf6;
  --accent-cyan: #2dd4ff;
  --accent-gold: #ffb800;
  --text-primary: #ffffff;
  --text-muted: #b8aed5;
  --text-faded: #8678ad;
  --border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 24px rgba(255, 61, 139, 0.4);
  --sidebar-w: 88px;
  --header-h: 64px;
  --max-w: 1440px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image: radial-gradient(ellipse at top, #3a2370 0%, var(--bg-deep) 50%, var(--bg-deeper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-pink-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== Layout shell ===== */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar (desktop) ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-deeper);
  padding: 16px 0;
  border-right: 1px solid var(--border);
  z-index: 50;
  overflow-y: auto;
  display: none;
}

.sidebar-logo {
  display: block;
  width: 56px;
  margin: 0 auto 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 0 8px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-nav .icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* ===== Main area ===== */
.main {
  flex: 1;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  .sidebar { display: block; }
  .main { margin-left: var(--sidebar-w); }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(31, 18, 64, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: none;
  gap: 8px;
  margin-left: 24px;
  flex: 1;
}

.header-nav a {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), #ff5a9d);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-pink-hover), #ff75ad);
  color: var(--text-primary);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.burger svg { width: 22px; height: 22px; }

@media (min-width: 1200px) {
  .header-nav { display: flex; }
  .burger { display: none; }
  .header-login { display: inline-flex; }
}

@media (max-width: 1199px) {
  .header-login { display: none; }
}

/* ===== Mobile drawer ===== */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: none;
}

.drawer.open { display: block; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: var(--bg-deeper);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  color: var(--text-primary);
  font-size: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.drawer-nav a:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* ===== Content wrapper ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 24px 0;
}

@media (min-width: 768px) {
  .section { padding: 32px 0; }
  .container { padding: 0 24px; }
}

/* ===== Hero banner ===== */
.hero {
  margin: 16px 0 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(31, 18, 64, 0.92) 0%, rgba(58, 31, 120, 0.75) 35%, rgba(107, 63, 181, 0.3) 65%, rgba(45, 212, 255, 0.15) 100%),
    url('../img/banner-welcome.jpg') right center / cover no-repeat;
  background-color: #3a1f78;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 32px;
  color: var(--text-primary);
  text-decoration: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(255, 184, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(45, 212, 255, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero--sport {
  background:
    linear-gradient(90deg, rgba(31, 18, 64, 0.92) 0%, rgba(74, 47, 138, 0.7) 40%, rgba(45, 212, 255, 0.2) 100%),
    url('../img/banner-sport.jpg') right center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.92;
}

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

@media (min-width: 768px) {
  .hero { min-height: 340px; padding: 48px; }
}

/* ===== Section heads ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-title-lg { font-size: 22px; }

.section-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* ===== Category strip ===== */
.cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
  transition: background 0.15s, color 0.15s;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent-purple);
  color: var(--text-primary);
}

.cat-pill .ico {
  width: 28px;
  height: 28px;
}

/* ===== Game grid ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }

.game-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1 / 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 36px;
  height: 36px;
}

.game-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Banner row ===== */
.banner-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}

@media (min-width: 768px) {
  .banner-row { grid-template-columns: repeat(2, 1fr); }
}

.banner-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
  color: var(--text-primary);
  text-decoration: none;
}

.banner-card:hover { transform: scale(1.01); color: var(--text-primary); }

.banner-card img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 22px;
  gap: 6px;
  background: linear-gradient(90deg, rgba(31, 18, 64, 0.88) 0%, rgba(58, 31, 120, 0.55) 45%, rgba(31, 18, 64, 0) 75%);
  color: var(--text-primary);
  pointer-events: none;
}

.banner-card-eyebrow {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.banner-card-title {
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 60%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.banner-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-pink);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(255, 61, 139, 0.4);
}

@media (max-width: 480px) {
  .banner-card-overlay { padding: 12px 14px; gap: 4px; }
  .banner-card-title { max-width: 70%; }
}

/* ===== Provider grid ===== */
.provider-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 640px) { .provider-row { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .provider-row { grid-template-columns: repeat(8, 1fr); } }

.provider-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}

.provider-card:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ===== Steps cards ===== */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: var(--text-primary);
  font-weight: 900;
  font-size: 22px;
  border-radius: 50%;
}

.step-title { font-size: 16px; font-weight: 700; }
.step-text { font-size: 14px; color: var(--text-muted); }

/* ===== Feature row ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}

@media (min-width: 640px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-row { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.feature-card-title { font-size: 15px; font-weight: 700; }
.feature-card-text { font-size: 13px; color: var(--text-muted); }

/* ===== Bonus highlight ===== */
.bonus-banner {
  background:
    linear-gradient(135deg, rgba(255, 61, 139, 0.78) 0%, rgba(138, 92, 246, 0.78) 100%),
    url('../img/banner-welcome.jpg') center / cover no-repeat;
  background-color: #8a5cf6;
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bonus-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 184, 0, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.bonus-amount {
  position: relative;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.bonus-subline {
  position: relative;
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.bonus-banner .btn { position: relative; }

/* ===== Auth card ===== */
.auth-card {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 460px;
  margin: 24px auto;
  border: 1px solid var(--border);
}

.auth-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.auth-card-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.form-field { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--accent-purple); }

.form-input-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-faded);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.form-input-link:hover {
  border-color: var(--accent-purple);
  color: var(--text-muted);
  background: rgba(138, 92, 246, 0.08);
}

.form-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ===== Phone mockup (app page) ===== */
.phone-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .phone-hero { grid-template-columns: 3fr 2fr; }
}

.phone-mock {
  background: linear-gradient(135deg, #ff3d8b 0%, #8a5cf6 60%, #2dd4ff 100%);
  border-radius: 32px;
  aspect-ratio: 1 / 1.6;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.phone-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background-image: radial-gradient(circle at center, rgba(255, 184, 0, 0.25) 0%, transparent 60%);
}

.phone-mock .ico {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  position: relative;
}

.phone-mock .label {
  font-size: 18px;
  font-weight: 800;
  position: relative;
}

/* ===== SEO content block ===== */
.seo {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  margin: 32px 0;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .seo { padding: 40px 48px; }
}

.seo h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.seo h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.seo h3 {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.seo h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.seo p {
  margin-bottom: 14px;
  color: var(--text-primary);
}

.seo ul, .seo ol {
  margin: 0 0 16px 22px;
  color: var(--text-primary);
}

.seo li {
  margin-bottom: 6px;
}

.seo strong { color: var(--text-primary); font-weight: 700; }

.seo a { color: var(--accent-cyan); }
.seo a:hover { color: var(--text-primary); }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.seo table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.seo th, .seo td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.seo thead {
  background: var(--bg-card);
}

.seo th {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.seo tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.seo blockquote {
  border-left: 3px solid var(--accent-pink);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--text-muted);
}

.seo hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-deeper);
  padding: 40px 0 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(5, 1fr); gap: 28px 24px; } }

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-list a:hover { color: var(--text-primary); }

.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bar { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (min-width: 768px) { .footer-meta { align-items: flex-start; } }

.footer-pays {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pay-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  background: #ffffff;
  color: #1f1240;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-extras {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-pill, .chat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-primary);
}

.chat-pill { background: var(--accent-cyan); color: #0a0820; }

.footer-bottom {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faded);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 8px auto;
}

/* ===== Cookie strip ===== */
.cookie {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--accent-purple);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie a { color: var(--text-primary); text-decoration: underline; }
.cookie button {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--text-primary);
  color: var(--accent-purple);
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
}

.cookie.hidden { display: none; }

/* ===== Anchor list (in-page jump) ===== */
.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}

.anchor-list a {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.anchor-list a:hover { background: var(--accent-purple); color: var(--text-primary); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 404 ===== */
.notfound {
  min-height: calc(100vh - var(--header-h) - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.notfound-code {
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.notfound-text {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.notfound-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 460px;
}

/* ===== Language switcher ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: calc(var(--radius-md) - 3px);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-opt:hover { color: var(--text-primary); }

.lang-opt.active {
  background: var(--accent-pink);
  color: var(--text-primary);
  pointer-events: none;
}

.lang-opt .lang-flag { font-size: 14px; line-height: 1; }

@media (max-width: 520px) {
  .lang-switch { padding: 2px; }
  .lang-opt { padding: 5px 7px; font-size: 11px; }
  .lang-opt .lang-code { display: none; }
}

.lang-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-pill-group .lang-pill {
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-pill-group a.lang-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.lang-pill-group .lang-pill.active {
  background: var(--accent-pink);
  color: var(--text-primary);
}

.drawer-lang {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.drawer-lang .lang-opt {
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 14px;
}

.drawer-lang .lang-opt.active {
  background: var(--accent-pink);
  color: var(--text-primary);
}
