/* ============================================================
   Bonus Haritam — Tema
   ============================================================ */
:root {
  --bg: #0a0e17;
  --bg-soft: #0f1522;
  --card: #131a28;
  --card-hover: #1a2334;
  --bg-input: #0d1320;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f7;
  --text-secondary: #b6c2d2;
  --muted: #8fa0b5;
  --gold: #f6b93b;
  --gold-strong: #f59e0b;
  --gold-soft: rgba(246, 185, 59, 0.12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd479; }

::selection { background: rgba(246, 185, 59, 0.3); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #223047; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow-container { max-width: 820px; }
.position-relative { position: relative; }

/* ============================================================
   Butonlar
   ============================================================ */
.btn { font-weight: 600; border-radius: var(--radius-sm); transition: all 0.18s ease; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #1b1204;
  border: none;
  padding: 10px 22px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}
.btn-gold:hover, .btn-gold:focus {
  color: #1b1204;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

.btn-outline-gold {
  border: 1px solid rgba(246, 185, 59, 0.4);
  color: var(--gold);
  background: transparent;
  padding: 9px 20px;
}
.btn-outline-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}
.btn-danger-ghost:hover { background: var(--red-soft); color: var(--red); }

.btn-sm { padding: 6px 13px; font-size: 13px; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.site-logo { display: inline-flex; align-items: center; gap: 10px; }
.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #1b1204;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}
.site-logo-text {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.site-logo-text em { font-style: normal; color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.site-nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav-link.active { color: var(--gold); background: var(--gold-soft); }

.site-nav-admin { margin-left: 8px; }
.site-nav-admin-link { color: var(--muted); font-size: 13px; padding: 8px 10px; }
.site-nav-admin-link:hover { color: var(--text-secondary); }

.site-nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  padding: 3px 10px;
}

@media (max-width: 991px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0d1320;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .site-nav.show { display: flex !important; }
  .site-nav-link { padding: 11px 14px; }
  .site-nav-admin { margin: 8px 0 0; }
  .site-nav-admin-link { display: inline-block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.13), transparent 70%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 480px;
  background: radial-gradient(circle, rgba(246, 185, 59, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 185, 59, 0.22);
  margin-bottom: 18px;
}

.hero-heading {
  font-size: clamp(32px, 5.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.text-gradient {
  background: linear-gradient(120deg, #ffd479 0%, #f59e0b 60%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 7px 7px 7px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.hero-search:focus-within { border-color: rgba(246, 185, 59, 0.55); }
.hero-search-icon { color: var(--muted); font-size: 17px; }
.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 8px 4px;
  min-width: 0;
}
.hero-search-input::placeholder { color: #64748b; }
.hero-search-btn { padding: 9px 22px; white-space: nowrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 40px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }

@media (max-width: 576px) {
  .hero { padding: 44px 0 36px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 12px 26px; }
  .hero-stat-value { font-size: 21px; }
  .hero-search { padding: 5px 5px 5px 12px; }
  .hero-search-btn { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 56px 0; }
.section-tinted { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head-center { text-align: center; max-width: 600px; margin: 0 auto 36px; }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

.section-sub { color: var(--muted); font-size: 14.5px; margin: 0; }

.page-heading {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 22px;
}

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active {
  color: #1b1204;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  border-color: transparent;
}

/* ============================================================
   Bonus kartları
   ============================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  transition: all 0.22s ease;
  overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(246, 185, 59, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.bonus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 185, 59, 0.4);
  background: var(--card-hover);
  box-shadow: var(--shadow);
  color: inherit;
}
.bonus-card:hover::before { opacity: 1; }

.bonus-card.is-featured { border-color: rgba(246, 185, 59, 0.35); }

.bonus-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.site-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.site-avatar-lg { width: 62px; height: 62px; font-size: 21px; border-radius: 16px; }
.site-avatar-sm { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }

.bonus-card-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bonus-site { font-weight: 700; font-size: 15px; color: var(--text); }
.bonus-types { font-size: 12px; color: var(--muted); }

.featured-flag { color: var(--gold); font-size: 13px; }

.bonus-card-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.35;
}

.bonus-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bonus-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bonus-wager {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bonus-link { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }

@media (max-width: 991px) {
  .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bonus-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

/* ============================================================
   Rehber kartları
   ============================================================ */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.guide-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 14px;
}
.guide-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.guide-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

@media (max-width: 768px) {
  .guide-grid { grid-template-columns: 1fr; }
  .list-head { align-items: flex-start; }
}

/* ============================================================
   Bonus detay
   ============================================================ */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-size: 10px; opacity: 0.6; }
.crumbs span { color: var(--text-secondary); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.detail-main { display: flex; flex-direction: column; gap: 20px; }
.detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.detail-head-text h1 {
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
  line-height: 1.25;
}
.detail-site-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.detail-site { color: var(--gold); font-weight: 700; }
.detail-dot { opacity: 0.5; }

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.type-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 185, 59, 0.2);
}
.type-chip-sm { font-size: 11px; padding: 2px 8px; margin: 1px 2px; }

.detail-summary { font-size: 15.5px; color: var(--text-secondary); margin: 0 0 22px; }

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.detail-no-link { font-size: 13.5px; color: var(--muted); }

.detail-section-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
}
.detail-section-title i { color: var(--gold); }

.detail-description p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 12px; }
.detail-description p:last-child { margin-bottom: 0; }

.fact-list { margin: 0; }
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.fact-row dt { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.fact-row dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.detail-warn p { font-size: 13.5px; color: var(--muted); margin: 0; }

.related-section { margin-top: 44px; }
.related-section .section-heading { margin-bottom: 20px; }

@media (max-width: 991px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-card { padding: 20px; }
  .detail-head { align-items: flex-start; }
}

/* ============================================================
   Hakkında / prose
   ============================================================ */
.prose-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--text-secondary);
  font-size: 15px;
}
.prose-card h2 { color: var(--text); font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p { margin: 0 0 14px; }
.prose-card ul { margin: 0 0 14px; padding-left: 20px; }
.prose-card li { margin-bottom: 6px; }
.prose-card strong { color: var(--text); }

/* ============================================================
   Hata sayfası
   ============================================================ */
.error-page { padding: 90px 0; }
.error-code {
  display: block;
  font-size: clamp(64px, 12vw, 110px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #ffd479, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

/* ============================================================
   Login
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.login-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-title { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.login-back {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.login-back:hover { color: var(--text-secondary); }

@media (max-width: 576px) {
  .login-card { padding: 26px 20px; }
}

/* ============================================================
   Formlar
   ============================================================ */
.form-label { color: var(--text-secondary); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--gold); }

.form-control, .form-select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 13px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(246, 185, 59, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.12) !important;
  background: var(--bg-input) !important;
}
.form-control::placeholder { color: #5b6b81 !important; }
.form-text { color: var(--muted) !important; font-size: 12px; }
textarea.form-control { min-height: 90px; resize: vertical; }

.form-check-input {
  background-color: var(--bg-input);
  border-color: var(--border-strong);
}
.form-check-input:checked {
  background-color: var(--gold-strong);
  border-color: var(--gold-strong);
}
.form-check-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.15);
}

.form-switches { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 4px; }
.form-check.form-switch { display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 0; }
.form-check.form-switch .form-check-input { margin: 0; float: none; }
.form-check-label { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   Uyarılar
   ============================================================ */
.alert { border-radius: var(--radius-sm); font-size: 14px; padding: 13px 16px; border: 1px solid; }
.alert-error { background: var(--red-soft); border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }
.alert-success { background: var(--green-soft); border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }

/* ============================================================
   Boş durum
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 44px; display: block; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 16px; }

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline { color: var(--muted); font-size: 13.5px; max-width: 340px; margin: 14px 0 0; }

.footer-links-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin: 4px 0 14px; }
.footer-links-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
}
.footer-links-col a:hover { color: var(--gold); }

.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--text-secondary); margin: 0; }
.footer-note { font-size: 12px; color: var(--muted); margin: 0; max-width: 560px; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .site-footer { padding: 36px 0 22px; }
}

/* ============================================================
   Admin — genel düzen
   ============================================================ */
.admin-shell { min-height: 100vh; background: var(--bg); }

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.admin-sidebar-head {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }

.admin-nav-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b6b81;
  padding: 0 12px;
  margin: 16px 0 7px;
}
.admin-nav-label:first-child { margin-top: 0; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s;
}
.admin-nav-link i { font-size: 16px; width: 20px; text-align: center; }
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.admin-nav-link.active { background: var(--gold-soft); color: var(--gold); }

.admin-sidebar-foot {
  padding: 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 17px;
  flex-shrink: 0;
}
.admin-user-info { display: flex; flex-direction: column; min-width: 0; }
.admin-user-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-role { font-size: 11.5px; color: var(--muted); }

.admin-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.15s;
}
.admin-logout-btn:hover { background: var(--red-soft); color: var(--red); border-color: rgba(248, 113, 113, 0.3); }

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}
.admin-overlay.show { display: block; }

.admin-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar-title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.admin-menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  padding: 2px 9px;
}

.admin-content { padding: 26px; flex: 1; }

@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 18px; }
  .admin-topbar { padding: 0 16px; }
}

/* ============================================================
   Admin — bileşenler
   ============================================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.admin-stat-icon.gold { background: var(--gold-soft); color: var(--gold); }
.admin-stat-icon.green { background: var(--green-soft); color: var(--green); }
.admin-stat-icon.amber { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.admin-stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.admin-stat-value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.admin-stat-label { display: block; font-size: 12.5px; color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-card-head h2 { font-size: 14.5px; font-weight: 700; margin: 0; }
.admin-card-link { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.admin-card-link:hover { color: var(--gold); }

.admin-type-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.admin-type-row { display: flex; align-items: center; justify-content: space-between; }
.admin-type-count { font-size: 14px; font-weight: 700; color: var(--text); }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 13px;
  flex: 1;
  max-width: 460px;
}
.admin-search i { color: var(--muted); font-size: 15px; }
.admin-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 7px 4px;
}
.admin-search input::placeholder { color: #5b6b81; }

.table-responsive-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table { width: 100%; border-collapse: collapse; margin: 0; }
.admin-table thead th {
  text-align: left;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.admin-table-muted { color: var(--muted); }
.admin-title-cell { max-width: 320px; }
.admin-site-cell { display: flex; align-items: center; gap: 9px; }
.admin-actions-cell { white-space: nowrap; }
.admin-actions-cell .btn { margin-left: 4px; }
.admin-count-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}
.pill-success { background: var(--green-soft); color: var(--green); }
.pill-muted { background: rgba(148, 163, 184, 0.14); color: var(--muted); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }

.admin-form { display: flex; flex-direction: column; gap: 18px; max-width: 940px; }
.admin-form-body { padding: 20px; }
.admin-form-actions { display: flex; gap: 12px; align-items: center; }

.narrow-card { max-width: 520px; }

.type-check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.type-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}
.type-check:hover { border-color: rgba(246, 185, 59, 0.4); }
.type-check input {
  accent-color: var(--gold-strong);
  margin: 0;
}
.type-check:has(input:checked) {
  border-color: rgba(246, 185, 59, 0.55);
  background: var(--gold-soft);
  color: var(--gold);
}

@media (max-width: 1200px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .admin-stats { grid-template-columns: 1fr; gap: 10px; }
  .admin-stat { padding: 14px; }
  .admin-toolbar { align-items: stretch; }
  .admin-search { max-width: none; }
  .admin-table thead th, .admin-table tbody td { padding: 10px 12px; white-space: nowrap; }
  .admin-title-cell { max-width: 220px; white-space: normal; }
  .admin-form-body { padding: 16px; }
  .admin-card-head { padding: 13px 16px; }
  .admin-form-actions { flex-direction: column; align-items: stretch; }
  .admin-form-actions .btn { width: 100%; }
}

/* Eski panel sayfalarıyla uyum (dashboard.ejs kullanılmıyorsa zararsız) */
.text-muted { color: var(--muted) !important; }
