/* ===== Bonus Kutum - Tema ===== */
:root {
  --bg: #080b12;
  --bg-soft: #0c111b;
  --surface: #101623;
  --surface-2: #151d2e;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #eef1f8;
  --text-soft: #c3cadb;
  --muted: #8b93a7;
  --primary: #7c5cff;
  --primary-light: #a78bfa;
  --primary-glow: rgba(124, 92, 255, 0.35);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --gold: #fbbf24;
  --orange: #fb923c;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  --container: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1; }

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

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

/* ===== Butonlar ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6344e6 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 68, 230, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(99, 68, 230, 0.45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-soft);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: rgba(239, 68, 68, 0.14); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.24); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-card {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 11px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.18s ease;
}
.btn-card:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 20px var(--primary-glow); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f3ad4 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(99, 68, 230, 0.4);
}
.brand-text { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.brand-text em { font-style: normal; color: var(--primary-light); }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: #fff; background: rgba(124, 92, 255, 0.16); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-form .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-form input {
  width: 210px;
  padding: 9px 14px 9px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  font-size: 13.5px;
  transition: border-color 0.15s, box-shadow 0.15s, width 0.2s;
}
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16); width: 240px; }
.search-form input::placeholder { color: var(--muted); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dfe4f0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #dfe4f0;
  cursor: pointer;
}

.mobile-search { display: none; }
.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
}
.mobile-search input:focus { border-color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22) 0%, rgba(124, 92, 255, 0) 68%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 22px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(120deg, #a78bfa 0%, #7c5cff 45%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-stat {
  background: rgba(16, 22, 35, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
}
.hero-stat strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); }
.hero-stat span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ===== Bölümler ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); }
.section-featured { padding-bottom: 20px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(23px, 3vw, 31px); font-weight: 750; letter-spacing: -0.9px; }
.result-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.link-arrow { color: var(--primary-light); font-weight: 600; font-size: 14px; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Öne çıkan ===== */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.feature-media { height: 160px; background: var(--surface-2); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 18px; }
.feature-site {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.feature-body h3 { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -0.3px; margin-bottom: 8px; }
.feature-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.feature-cta { font-size: 13.5px; font-weight: 700; color: var(--primary-light); }

/* ===== Filtre ===== */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 18px var(--primary-glow); }
.chip-clear { color: #f87171; }

/* ===== Bonus kartı ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}
.bonus-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bonus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.bonus-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.bonus-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.bonus-card:hover .bonus-card-media img { transform: scale(1.04); }
.bonus-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 197, 94, 0.1));
  font-size: 44px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.bonus-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
}
.badge-yatirimsiz { background: rgba(34, 197, 94, 0.9); color: #06230f; }
.badge-hosgeldin { background: rgba(251, 191, 36, 0.92); color: #2b1c00; }
.badge-freespin { background: rgba(124, 92, 255, 0.92); color: #fff; }
.badge-sm { font-size: 10px; padding: 3px 8px; }

.bonus-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.bonus-card-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 9px;
}
.site-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2);
}
.site-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-light);
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.bonus-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.25px; margin-bottom: 7px; }
.bonus-card-title a:hover { color: var(--primary-light); }
.bonus-card-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.bonus-card-wagering {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 9px;
  font-size: 11.8px;
  line-height: 1.45;
  color: var(--green);
  margin-top: auto;
}
.bonus-card-wagering svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* ===== Sayfalama ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.page-btn {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: #fff; }
.page-info { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ===== Bilgi kartları ===== */
.section-info { border-top: 1px solid var(--border); background: var(--bg-soft); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-icon { font-size: 26px; margin-bottom: 12px; }
.info-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; }
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ===== Detay ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .current { color: var(--text-soft); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 22px;
}
.detail-media img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-media .bonus-card-placeholder { aspect-ratio: 16 / 7; }

.detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-views { margin-left: auto; font-size: 12px; color: var(--muted); }
.detail-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; margin-bottom: 14px; }
.detail-summary { font-size: 16px; color: var(--text-soft); line-height: 1.75; margin-bottom: 22px; }

.detail-highlight {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 13px;
  margin-bottom: 26px;
}
.detail-highlight svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; }
.detail-highlight span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--green); margin-bottom: 2px; }
.detail-highlight strong { font-size: 15px; font-weight: 650; }

.detail-terms {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.detail-terms h2 { font-size: 20px; font-weight: 750; letter-spacing: -0.5px; margin-bottom: 18px; }
.terms-body p.terms-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 9px;
}
.terms-body p.terms-heading:first-child { margin-top: 0; }
.terms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.terms-list li {
  position: relative;
  padding-left: 19px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.terms-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
}

.detail-side { position: sticky; top: 92px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.side-site { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.site-logo-lg { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: var(--surface-2); font-size: 22px; }
.side-site-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; }
.side-site strong { font-size: 17px; font-weight: 700; }
.side-facts { display: grid; gap: 14px; margin-bottom: 20px; }
.side-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.side-facts dd { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.side-card .btn + .btn { margin-top: 9px; }
.side-disclaimer { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ===== Site sayfası ===== */
.site-hero { padding: 44px 0 34px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.site-hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-hero-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--surface-2); font-size: 28px; }
.site-hero-inner h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -1px; }
.site-hero-inner p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.site-hero-inner .btn { margin-left: auto; }

/* ===== Boş durum ===== */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { font-size: 46px; margin-bottom: 14px; }
.empty-state h1, .empty-state h3 { font-size: 24px; font-weight: 750; margin-bottom: 8px; letter-spacing: -0.5px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.footer-brand-col p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 14px 0; max-width: 360px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  font-size: 12px;
  font-weight: 800;
}
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--primary-light); }
.footer-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ===== Auth ===== */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.2), transparent 55%),
    var(--bg);
  padding: 24px;
}
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-card h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.6px; margin-bottom: 6px; }
.auth-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.auth-error {
  padding: 11px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 18px;
}
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label span { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.auth-form input {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16); }

/* ===== Admin ===== */
.admin-body { display: block; background: var(--bg); }
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  z-index: 60;
  overflow-y: auto;
}
.admin-brand { padding: 0 8px 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
  padding: 16px 10px 7px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  transition: all 0.15s;
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active { background: rgba(124, 92, 255, 0.14); color: var(--primary-light); }
.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 10px 0;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.admin-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #4f3ad4);
  font-weight: 800;
  font-size: 14px;
}
.admin-user strong { display: block; font-size: 13px; }
.admin-user span { font-size: 11.5px; color: var(--muted); }

.admin-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 28px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.admin-nav-toggle { display: none; }
.admin-content { padding: 28px; display: grid; gap: 20px; align-content: start; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.admin-stat span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.admin-stat strong { font-size: 30px; font-weight: 800; letter-spacing: -1px; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-card-head h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.3px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left;
  padding: 12px 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 13px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--text); font-weight: 600; }
.admin-table a:hover { color: var(--primary-light); }
.admin-actions { display: flex; align-items: center; gap: 7px; }
.admin-actions form { display: inline; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.status-on { background: var(--green-soft); color: #4ade80; }
.status-off { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.admin-form { padding: 24px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field > span { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}
.checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.site-admin-list { display: grid; }
.site-admin-row {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.site-admin-row:last-child { border-bottom: none; }
.site-admin-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-admin-info strong { display: block; font-size: 13.5px; }
.site-admin-info .muted { font-size: 11.5px; color: var(--muted); }
.input-sm {
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  min-width: 0;
  outline: none;
}
.input-sm:focus { border-color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .site-admin-row { grid-template-columns: 180px repeat(2, 1fr) auto; }
  .site-admin-row input:nth-of-type(3), .site-admin-row input:nth-of-type(4) { grid-column: span 2; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15px; }
  .mobile-search { display: block; padding: 4px 0 8px; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 14px; }
  .search-form input { width: 150px; }
  .search-form input:focus { width: 175px; }

  .hero { padding: 52px 0 46px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .admin-sidebar { transform: translateX(-100%); transition: transform 0.22s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-nav-toggle { display: flex; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 18px; }
  .admin-topbar { padding: 0 18px; }
  .form-row { grid-template-columns: 1fr; }
  .site-admin-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 44px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .detail-terms { padding: 20px; }
  .search-form { display: none; }
  .hero-title { letter-spacing: -1.2px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
