:root {
  --bg: #0b1020;
  --bg-2: #131a33;
  --card: #19223f;
  --text: #e6ecff;
  --muted: #9aa6c7;
  --accent: #00b9f3;
  --accent-2: #06a0d0;
  --imdb: #f5c518;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #5fd1ff; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1d264b;
}
.brand { font: 700 18px/1 system-ui; color: var(--text); }
.top nav a { color: var(--muted); margin-right: 16px; }

.container { max-width: 1280px; margin: 0 auto; padding: 24px; }

.page-title { margin: 4px 0 18px; font-size: 22px; }

/* Film grid */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.card {
  display: block;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 185, 243, 0.15);
}
.poster-wrap {
  position: relative; aspect-ratio: 2 / 3; background: #0a0f22;
}
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge {
  position: absolute;
  font: 600 11px/1 system-ui;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}
.badge.uhd { top: 8px; left: 8px; background: var(--accent-2); }
.badge.imdb { top: 8px; right: 8px; color: #000; background: var(--imdb); }

.meta { padding: 10px 12px 12px; }
.meta .title { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.meta .alt { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.meta .row { display: flex; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.meta .row .trz { color: #88d0ff; }
.meta .genres {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pagination */
.pgntn {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin: 32px 0 12px;
}
.pg {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 6px;
  background: var(--card); color: var(--text);
  font: 600 13px system-ui;
}
.pg:hover { background: var(--bg-2); }
.pg.current { background: var(--accent); color: #00253a; }
.pg.disabled { opacity: .35; pointer-events: none; }
.pg.gap { background: transparent; }

/* Footer */
.footer {
  text-align: center; color: var(--muted);
  padding: 28px 0; border-top: 1px solid #1d264b; margin-top: 40px;
}

/* Film detay */
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); }
.film-detay {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .film-detay { grid-template-columns: 1fr; }
}
.player-card {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.player-card .plyr,
.player-card .plyr__video-wrapper { border-radius: 12px; background: #000; }
.player-card .plyr { height: 100%; }
.player-card .plyr__poster { display: none; }
.player-card .plyr__control--overlaid { z-index: 4; }

/* Plyr koyu tema override'ları */
.player-card {
  --plyr-color-main: var(--accent);
  --plyr-video-background: #000;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-video-control-background-hover: var(--accent);
  --plyr-menu-background: rgba(15, 21, 42, 0.96);
  --plyr-menu-color: var(--text);
  --plyr-menu-arrow-color: rgba(15, 21, 42, 0.96);
  --plyr-menu-back-border-color: rgba(255, 255, 255, 0.12);
  --plyr-menu-radius: 8px;
  --plyr-tooltip-background: rgba(15, 21, 42, 0.96);
  --plyr-tooltip-color: var(--text);
  --plyr-tooltip-radius: 6px;
  --plyr-control-icon-size: 18px;
  --plyr-control-spacing: 9px;
  --plyr-range-fill-background: var(--accent);
  --plyr-range-thumb-background: var(--accent);
  --plyr-captions-background: rgba(0, 0, 0, 0.6);
  --plyr-captions-text-color: #fff;
  --plyr-font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.player-card .plyr__controls {
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,0) 100%);
  padding: 16px 14px 10px;
}
.player-card .plyr__control--overlaid {
  background: var(--accent);
  color: #002338;
}
.player-card .plyr__menu__container {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.player-card .plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
  background: var(--accent);
}

/* Özel ses menüsü */
.audio-menu { position: relative; }
.audio-menu__toggle svg { width: 18px; height: 18px; }
.audio-menu__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: rgba(15, 21, 42, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 5;
  display: flex; flex-direction: column;
}
.audio-menu__header {
  font: 600 11px system-ui;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 10px 4px;
}
.audio-menu__item {
  appearance: none;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--text);
  font: 13px/1.2 system-ui;
  cursor: pointer;
}
.audio-menu__item:hover { background: rgba(255,255,255,0.07); }
.audio-menu__item.is-active {
  background: var(--accent);
  color: #002338;
  font-weight: 600;
}

/* Cinematic hero (oynatma öncesi) — pure visual, click'ler Plyr'a geçer */
.player-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
  animation: hero-in .5s ease both;
}
.player-hero.is-hidden {
  opacity: 0;
  transform: scale(1.03);
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.player-hero__backdrop {
  position: absolute;
  inset: -8%;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.55) saturate(1.3);
  z-index: 0;
  transform: scale(1.05);
}
.player-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 25% 60%, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 100%),
    linear-gradient(160deg, rgba(11,16,32,.45) 0%, rgba(11,16,32,.15) 45%, rgba(11,16,32,.92) 100%);
  z-index: 1;
}

.player-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 4vw, 48px);
  width: 100%;
  height: 100%;
  align-items: flex-end;
}

.player-hero__poster {
  flex: 0 0 auto;
  width: clamp(110px, 18%, 180px);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .4s ease;
}
.player-hero:hover .player-hero__poster {
  transform: translateY(-4px) scale(1.02);
}
.player-hero__poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.player-hero__info {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-hero__title {
  font: 800 clamp(22px, 2.8vw, 36px)/1.1 system-ui;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  letter-spacing: -0.015em;
  margin: 0;
}
.player-hero__sub {
  color: rgba(255,255,255,.72);
  font: 500 clamp(13px, 1.2vw, 15px) system-ui;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.player-hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero-badge {
  padding: 5px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  font: 600 12px system-ui;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge--imdb {
  background: var(--imdb);
  color: #000;
  border-color: transparent;
}
.player-hero__hint {
  margin-top: 14px;
  font: 600 12px system-ui;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .player-hero__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
  }
  .player-hero__poster {
    width: 80px;
  }
  .player-hero__hint { display: none; }
}

/* ===== Sorun Bildir butonu (player sağ üst) ===== */
.report-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font: 600 12px system-ui;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: .65;
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
.report-btn:hover {
  opacity: 1;
  background: rgba(220, 53, 53, .85);
  border-color: rgba(220, 53, 53, .6);
  transform: translateY(-1px);
}
.report-btn svg { width: 14px; height: 14px; }
.player-card:hover .report-btn { opacity: 1; }

/* ===== Modal ===== */
.report-modal[hidden] { display: none !important; }
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s ease;
}
.report-modal__card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.report-modal.is-open .report-modal__overlay { opacity: 1; }
.report-modal.is-open .report-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.report-modal__close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0;
  color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.report-modal__close:hover { color: #fff; background: rgba(255,255,255,.06); }
.report-modal__card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #fff;
}
.report-modal__hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.report-modal__label {
  display: block;
  margin-bottom: 12px;
  font: 600 12px system-ui;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.report-modal__label select,
.report-modal__label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font: 14px system-ui;
  resize: vertical;
}
.report-modal__label textarea { min-height: 76px; }
.report-modal__label select:focus,
.report-modal__label textarea:focus {
  outline: 0;
  border-color: var(--accent);
}
.report-modal__actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 4px;
}
.btn-primary, .btn-ghost {
  font: 600 13px system-ui;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #002338;
}
.btn-primary:hover { background: #28c8ff; }
.btn-primary:disabled { opacity: .5; cursor: wait; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.report-modal__status {
  margin-top: 12px;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 6px;
}
.report-modal__status.is-pending { background: rgba(255,255,255,.06); color: var(--muted); }
.report-modal__status.is-ok      { background: rgba(40, 180, 100, .15); color: #5ee2a3; }
.report-modal__status.is-err     { background: rgba(220, 53, 53, .15); color: #ff8a8a; }

/* ===== Log paneli (sidebar'da) ===== */
.err-panel {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
}
.err-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font: 600 12px system-ui;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.err-panel__count {
  display: inline-block;
  min-width: 18px; padding: 0 6px;
  margin-left: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 11px;
}
.err-panel__clear {
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  font: 600 11px system-ui;
  text-transform: uppercase; letter-spacing: .05em;
}
.err-panel__clear:hover { color: #fff; }
.err-panel__list {
  list-style: none; margin: 0; padding: 0;
  max-height: 240px; overflow: auto;
}
.err-panel__empty {
  padding: 14px; color: var(--muted); font-size: 13px;
}
.err-panel__item {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-left: 3px solid transparent;
  font-size: 12.5px;
}
.err-panel__item:last-child { border-bottom: 0; }
.err-panel__item--warn  { border-left-color: #f0b429; }
.err-panel__item--fatal { border-left-color: #ff5b6e; background: rgba(255,91,110,.06); }
.err-panel__row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 2px;
}
.err-panel__time { color: var(--muted); font-size: 11px; }
.err-panel__src {
  background: rgba(255,255,255,.08);
  padding: 1px 5px; border-radius: 3px;
  font: 600 10px system-ui; letter-spacing: .04em;
  color: #cdd9ff;
}
.err-panel__msg { color: var(--text); line-height: 1.35; }
.err-panel__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-family: ui-monospace, Consolas, monospace;
}

.film-meta h1 { margin: 0 0 4px; font-size: 26px; }
.film-meta h2 { margin: 0 0 12px; font-size: 16px; color: var(--muted); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badges .badge { position: static; background: var(--bg-2); }
.badges .badge.imdb { background: var(--imdb); color: #000; }
.badges .badge.src  { background: var(--accent-2); }
.summary { color: #c9d3ee; line-height: 1.55; }
.info {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 6px; column-gap: 10px;
  margin: 14px 0;
  font-size: 13px;
}
.info dt { color: var(--muted); }
.info dd { margin: 0; }

.debug { margin-top: 14px; font-size: 12px; color: var(--muted); }
.debug code { word-break: break-all; color: #9bd0ff; }


/* ---------------------------------------------------------------------------
   Diziler — anasayfa, detay, bölüm sayfası
   --------------------------------------------------------------------------- */

.section-title {
  margin: 28px 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid #1d264b;
}

/* Dizi detay sayfası */
.dizi-detay { display: block; }
.dizi-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .dizi-header { grid-template-columns: 1fr; }
}
.dizi-poster {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}
.dizi-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dizi-info h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; }
.dizi-info .summary {
  margin: 14px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.dizi-info .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.dizi-info .badge {
  position: static;
  display: inline-flex; align-items: center;
}

.terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.term-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font: 600 11.5px system-ui;
}

.seasons {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 24px;
}
.seasons-label {
  font-size: 12.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.season-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 600 12px system-ui;
}

/* Bölüm sayfası — alt kaynak ve diğer bölümler */
.ep-sources {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 14px;
}
.source-pill {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 32px; height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--card); color: var(--text);
  font: 600 13px system-ui;
}
.source-pill:hover { background: var(--bg-2); color: var(--text); }
.source-pill.is-active {
  background: var(--accent); color: #00253a; cursor: default;
}

.next-ep {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--accent); color: #00253a;
  font: 700 13px system-ui;
}
.next-ep:hover { background: #5fd1ff; color: #00253a; }

.ep-siblings-title {
  margin: 24px 0 10px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ep-siblings {
  list-style: none;
  padding: 0; margin: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #1d264b;
  border-radius: 8px;
}
.ep-siblings li {
  padding: 8px 12px;
  border-bottom: 1px solid #1d264b;
  font-size: 13px;
}
.ep-siblings li:last-child { border-bottom: none; }
.ep-siblings li a { color: var(--text); display: block; }
.ep-siblings li a:hover { color: var(--accent); }
.ep-siblings li .is-active {
  color: var(--accent); font-weight: 700;
  display: block;
}

/* ---------------------------------------------------------------------------
   Admin panel
   --------------------------------------------------------------------------- */

.admin-shell {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.admin-page {
  max-width: 980px;
  margin: 0 auto;
}
.admin-page--provider {
  max-width: 1180px;
}
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-head h1,
.admin-card h1,
.admin-card h2,
.admin-card h3 {
  margin: 0;
}
.admin-head p,
.admin-card p {
  color: var(--muted);
}
.admin-head--provider h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}
.admin-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 800 11px/1 system-ui;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 22px;
}
.admin-card--wide {
  width: 100%;
  margin-bottom: 16px;
}
.admin-form {
  display: grid;
  gap: 14px;
}
.admin-form--row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .8fr) auto;
  align-items: end;
}
.admin-form--site {
  grid-template-columns: minmax(220px, 1fr) 150px minmax(220px, 1fr) auto;
  align-items: end;
}
@media (max-width: 760px) {
  .admin-form--row,
  .admin-form--site { grid-template-columns: 1fr; }
  .admin-head { flex-direction: column; }
  .admin-head__actions { width: 100%; }
}
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font: 600 12px system-ui;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-form input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font: 14px system-ui;
}
.admin-form input:focus {
  outline: 0;
  border-color: var(--accent);
}
.admin-primary,
.admin-secondary,
.admin-danger {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 700 13px system-ui;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-primary {
  background: var(--accent);
  color: #002338;
}
.admin-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.14);
}
.admin-danger {
  background: rgba(220, 53, 53, .14);
  color: #ff9b9b;
  border-color: rgba(220, 53, 53, .28);
}
.admin-primary--compact,
.admin-secondary--compact,
.admin-danger--compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.admin-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.admin-alert--ok {
  background: rgba(40,180,100,.14);
  color: #66e4a5;
}
.admin-alert--error {
  background: rgba(220,53,53,.16);
  color: #ff9b9b;
}
.admin-table {
  display: grid;
  gap: 8px;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 6px;
}
.admin-row strong,
.admin-row span {
  display: block;
}
.admin-row span,
.admin-muted {
  color: var(--muted);
  font-size: 13px;
}
.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-chips span {
  padding: 5px 9px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font: 600 12px system-ui;
}
.admin-chips--env span {
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-stats div,
.admin-keydrop {
  background: #10182d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.admin-stats div {
  padding: 16px;
}
.admin-stats strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.admin-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.admin-keydrop {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  border-color: rgba(0,185,243,.35);
}
.admin-keydrop span {
  color: var(--accent);
  font: 800 11px/1 system-ui;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-keydrop strong {
  display: block;
  margin-top: 6px;
}
.admin-keydrop p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-keydrop code {
  display: block;
  padding: 12px;
  overflow-x: auto;
  background: #070b15;
  color: #9be8ff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.admin-layout {
  display: grid;
  gap: 16px;
}
.admin-card--focus {
  border-color: rgba(0,185,243,.22);
}
.customer-table {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.customer-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(250px, 1.35fr) 88px 70px 80px minmax(190px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 6px;
}
.customer-row--head {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font: 800 11px/1 system-ui;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.customer-row strong,
.customer-row small {
  display: block;
}
.customer-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}
.customer-row code {
  padding: 7px 8px;
  overflow-x: auto;
  background: rgba(0,0,0,.2);
  color: #9bd0ff;
  border-radius: 5px;
  font: 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font: 800 11px/1 system-ui;
  text-transform: uppercase;
}
.status-pill--active {
  color: #75edaa;
  background: rgba(40,180,100,.14);
}
.status-pill--suspended {
  color: #ffb1b1;
  background: rgba(220,53,53,.14);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.admin-table--origins {
  margin-top: 14px;
}
.admin-muted--spaced {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .admin-stats,
  .admin-keydrop,
  .customer-row,
  .customer-row--head {
    grid-template-columns: 1fr;
  }
  .customer-row--head {
    display: none;
  }
  .admin-actions {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------------------
   API dokümanları
   --------------------------------------------------------------------------- */

.docs-shell {
  --doc-ink: #f4f0e8;
  --doc-muted: #b8c0bb;
  --doc-line: rgba(244, 240, 232, .12);
  --doc-panel: #111827;
  --doc-panel-2: #151b23;
  --doc-cyan: #27d1c1;
  --doc-amber: #f0b84c;
  --doc-green: #77d37b;
  color: var(--doc-ink);
}
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: end;
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--doc-line);
}
.docs-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--doc-cyan);
  font: 800 12px/1 system-ui;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.docs-hero h1 {
  max-width: 820px;
  margin: 0;
  font: 800 clamp(32px, 5vw, 58px)/.98 system-ui;
  letter-spacing: 0;
}
.docs-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--doc-muted);
  font-size: 16px;
  line-height: 1.65;
}
.docs-status {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #0d121a;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
}
.docs-status div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--doc-panel);
  border-radius: 6px;
}
.docs-status strong {
  color: var(--doc-amber);
  font: 900 22px/1 system-ui;
}
.docs-status span {
  color: var(--doc-muted);
  font-size: 13px;
}
.docs-tabs {
  position: sticky;
  top: 57px;
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 18px;
  background: rgba(11, 16, 32, .88);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.docs-tabs a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--doc-muted);
  background: var(--doc-panel);
  border: 1px solid var(--doc-line);
  border-radius: 6px;
  font: 800 12px/1 system-ui;
}
.docs-tabs a:hover {
  color: #081016;
  background: var(--doc-cyan);
  border-color: transparent;
}
.docs-section {
  scroll-margin-top: 128px;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--doc-line);
}
.docs-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.docs-section__head span {
  color: var(--doc-green);
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.docs-section__head h2 {
  margin: 0;
  font: 800 clamp(22px, 3vw, 32px)/1.1 system-ui;
}
.docs-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-line);
  margin-bottom: 18px;
}
.docs-flow div {
  min-height: 132px;
  padding: 18px;
  background: #10161f;
}
.docs-flow strong,
.doc-panel h3 {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
}
.docs-flow p,
.doc-panel p {
  margin: 0;
  color: var(--doc-muted);
  line-height: 1.55;
}
.docs-note {
  margin-top: 12px !important;
  padding: 10px 12px;
  color: #d7eadf !important;
  background: rgba(39, 209, 193, .08);
  border: 1px solid rgba(39, 209, 193, .16);
  border-radius: 6px;
  font-size: 13px;
}
.docs-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
  display: grid;
  gap: 8px;
}
.docs-steps li {
  counter-increment: docs-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--doc-muted);
  line-height: 1.5;
}
.docs-steps li::before {
  content: counter(docs-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #081016;
  background: var(--doc-cyan);
  border-radius: 999px;
  font: 900 12px/1 system-ui;
}
.docs-grid {
  display: grid;
  gap: 16px;
}
.docs-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.docs-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-panel {
  min-width: 0;
  padding: 18px;
  background: var(--doc-panel);
  border: 1px solid var(--doc-line);
  border-radius: 8px;
}
.doc-panel--wide {
  margin-top: 16px;
}
.doc-panel pre {
  margin: 12px 0 0;
  max-width: 100%;
  overflow: auto;
  background: #090d13;
  border: 1px solid rgba(39, 209, 193, .16);
  border-radius: 6px;
}
.doc-panel code {
  display: block;
  min-width: 0;
  padding: 14px;
  color: #d7eadf;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}
.docs-callout {
  margin-top: 16px;
  padding: 16px 18px;
  color: #20200f;
  background: var(--doc-amber);
  border-radius: 8px;
  line-height: 1.55;
}
.docs-callout strong {
  color: #080b07;
}
.docs-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
}
.docs-table div {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 16px;
  background: var(--doc-panel);
  border-bottom: 1px solid var(--doc-line);
}
.docs-table div:nth-child(even) {
  background: var(--doc-panel-2);
}
.docs-table div:last-child {
  border-bottom: 0;
}
.docs-table strong {
  color: var(--doc-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-word;
}
.docs-table span {
  color: var(--doc-muted);
}

@media (max-width: 920px) {
  .docs-hero,
  .docs-grid--two,
  .docs-grid--three,
  .docs-flow,
  .docs-table div {
    grid-template-columns: 1fr;
  }
  .docs-tabs {
    top: 53px;
  }
}

@media (max-width: 560px) {
  .docs-hero {
    padding-top: 20px;
  }
  .docs-status div {
    grid-template-columns: 1fr;
  }
  .doc-panel,
  .docs-flow div {
    padding: 14px;
  }
  .doc-panel code {
    font-size: 12px;
  }
}
