/* Yönetim Paneli - Sinem & Atalay
   Landing sayfasının (main.css) dilinden türetilmiştir:
   kremsi açık zemin + leylak/mor vurgular. Tek tema (açık), tek vurgu ailesi. */

:root {
  /* Landing sayfasından birebir alınan değerler */
  --bg: #f5eef8;
  --bg-soft: #efe3f4;
  --surface: #fffdf8;
  --ink: #2b1a3d;
  --ink-soft: #6b5a80;
  --ink-faint: #8d7aa0;
  --line: #dccfe6;
  --accent: #7a4db8;
  --accent-strong: #5b3a94;
  --accent-ink: #ffffff;
  --accent-soft: #eadcf4;
  --accent-faint: #f4edfb;
  --shadow-card: 0 1px 2px rgba(36, 26, 51, 0.05), 0 18px 40px -24px rgba(122, 77, 184, 0.25);
  --shadow-soft: 0 1px 2px rgba(36, 26, 51, 0.05);
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-input: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Jost", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Türetilmiş / semantik */
  --surface-muted: #faf5fb;
  --line-strong: #c9b6dd;
  --danger: #b3382a;
  --danger-soft: #fbeae8;
  --ok: #2f7d43;
  --ok-soft: #e6f4ea;
  --pending: #7d5a15;
  --pending-soft: #f7eed3;
  --focus-ring: color-mix(in srgb, var(--accent) 24%, transparent);

  /* Katmanlar */
  --sidebar-w: 256px;
  --z-content: 1;
  --z-topbar: 30;
  --z-overlay: 35;
  --z-drawer: 40;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.admin {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.serif { font-family: var(--font-serif); font-weight: 600; }
.ph { font-size: 1.2em; line-height: 1; }

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

/* ---------- Ambient zemin (landing'den sakinleştirilmiş) ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient .ambient-blob { position: absolute; border-radius: 50%; }
.ambient .ab-1 {
  width: 46vw; height: 46vw; top: -14vw; left: -10vw;
  background: radial-gradient(circle at 35% 35%, rgba(122, 77, 184, 0.30), transparent 64%);
}
.ambient .ab-2 {
  width: 38vw; height: 38vw; top: 34vh; right: -12vw;
  background: radial-gradient(circle at 60% 40%, rgba(168, 128, 224, 0.24), transparent 62%);
}
.ambient .ab-3 {
  width: 40vw; height: 40vw; bottom: -16vw; left: 22vw;
  background: radial-gradient(circle at 45% 50%, rgba(196, 146, 220, 0.20), transparent 60%);
}

/* ---------- Giriş ---------- */

.login-view {
  position: relative;
  z-index: var(--z-content);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 23rem;
  padding: 2.6rem 2.4rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.login-brand { display: block; font-size: 2rem; line-height: 1.1; }
.login-sub {
  display: block;
  margin: 0.5rem 0 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Alanlar ---------- */

.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.45rem; font-size: 0.86rem; font-weight: 500; color: var(--ink); }

input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="url"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

input.readonly, input[readonly] {
  opacity: 0.8;
  background: color-mix(in srgb, var(--line) 30%, var(--bg));
}

input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-input);
  border: 1px dashed var(--line-strong);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.88rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  margin-right: 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}
.checkbox-field input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ---------- Butonlar (landing dili) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.msg { margin-top: 0.9rem; font-size: 0.88rem; text-align: center; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* ---------- Panel gövdesi ---------- */

.panel-view { position: relative; z-index: var(--z-content); min-height: 100dvh; }

.shell { display: flex; min-height: 100dvh; }

/* Üst bar (yalnızca mobilde görünür) */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: none;
  align-items: center;
  gap: 0.8rem;
  height: 60px;
  padding: 0 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { font-size: 1.2rem; }
.topbar .btn-sm { min-height: 2.5rem; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Kenar çubuğu ---------- */

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.sidebar-head { padding: 1.7rem 1.5rem 1.3rem; border-bottom: 1px solid var(--line); }
.sidebar-brand { display: block; font-size: 1.55rem; line-height: 1.1; }
.sidebar-brand em { font-style: italic; color: var(--accent); }
.sidebar-sub {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sidebar .nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.1rem 0.9rem; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.62rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  border-radius: var(--radius-input);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}
.nav-item .ph { font-size: 1.15rem; color: var(--ink-faint); transition: color 0.2s ease; }
.nav-item:hover { color: var(--ink); background: var(--accent-faint); }
.nav-item:hover .ph { color: var(--accent); }
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-item:active { transform: scale(0.985); }

.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-item.active .ph { color: var(--accent); }

.sidebar-foot { margin-top: auto; padding: 0.9rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }

/* Kapatma perdesi (mobil çekmece) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(43, 26, 61, 0.34);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.drawer-open .drawer-overlay { opacity: 1; }

/* ---------- İçerik ---------- */

.panel-main { flex: 1; min-width: 0; padding: 2rem clamp(1.25rem, 3.5vw, 2.75rem) 3.2rem; }
.panel-main .page-head, .panel-main .panel-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.panel-section { display: none; }
.panel-section.active { display: block; animation: panelIn 0.4s var(--ease); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.page-head p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 46ch; }
.page-head .head-note { margin: 0; color: var(--ink-faint); font-size: 0.86rem; }
.page-head p#ov-meta a { display: inline-block; padding: 0.2rem 0.1rem; margin: -0.2rem -0.1rem; }

/* ---------- Genel Bakış ---------- */

.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.ov-grid > * { min-width: 0; }

.ov-block { margin-bottom: 1.6rem; }
.ov-title {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ov-next {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: none;
  color: var(--accent-ink);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.6rem;
}
.ov-next .ph { font-size: 1.6rem; opacity: 0.9; }
.ov-next-label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.82; }
.ov-next-name { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin-top: 0.15rem; }
.ov-next-date { display: block; font-size: 0.9rem; opacity: 0.9; margin-top: 0.1rem; }

.summary-panel {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.summary-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.summary-item { padding: 1.2rem 1.1rem 1.15rem; text-align: center; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-item b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.summary-item span { display: block; margin-top: 0.3rem; font-size: 0.76rem; color: var(--ink-faint); }
.summary-item.accent b { color: var(--accent); }

.pending-list { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden; }
.pending-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s ease;
}
.pending-row + .pending-row { border-top: 1px solid var(--line); }
.pending-row:hover { background: var(--accent-faint); }
.pending-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pending-ico {
  width: 2.3rem; height: 2.3rem; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}
.pending-txt { flex: 1; min-width: 0; }
.pending-txt b { display: block; font-size: 0.95rem; font-weight: 500; }
.pending-txt span { display: block; font-size: 0.8rem; color: var(--ink-faint); }
.pending-count {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.pending-row .ph-caret-right { color: var(--ink-faint); font-size: 1rem; }
.pending-empty { padding: 1.4rem 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }

.recent-list { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden; }
.recent-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.2rem; }
.recent-row + .recent-row { border-top: 1px solid var(--line); }
.recent-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { text-align: right; flex: none; }
.recent-meta .recent-count { display: block; font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.recent-meta .recent-date { display: block; font-size: 0.74rem; color: var(--ink-faint); }

/* ---------- Tablolar ---------- */

.table-wrap {
  overflow-x: auto;
  min-width: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-muted);
}
td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.18s ease; }
tbody tr:hover { background: var(--accent-faint); }
td b, td .cell-strong { font-weight: 500; color: var(--ink); }
td .cell-sub { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.15rem; }

.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.link-cell { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); display: inline-block; padding: 0.3rem 0.15rem; }
.link-cell a { text-decoration: underline; text-underline-offset: 2px; }

.copy-cell { display: flex; align-items: center; gap: 0.5rem; }

.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--bg); }
.thumb-video { position: relative; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #000; }
.thumb-video video { width: 100%; height: 100%; object-fit: cover; }
.thumb-video i { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; background: rgba(20, 12, 30, 0.28); }

/* Durum rozetleri */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-yes { background: var(--ok-soft); color: var(--ok); }
.badge-no { background: var(--danger-soft); color: var(--danger); }
.badge-maybe { background: var(--accent-soft); color: var(--accent); }
.badge-pending { background: var(--pending-soft); color: var(--pending); }

/* ---------- Form panelleri ---------- */

.form-panel {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.6rem 1.8rem;
  margin-bottom: 1.6rem;
}
.form-panel h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
}
.form-panel .form-intro { margin: 0 0 1.3rem; font-size: 0.88rem; color: var(--ink-soft); }

.form-section { margin-top: 1.4rem; }
.form-section:first-child { margin-top: 0; }
.form-section > h4 {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-section .form-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.form-grid .field { margin-bottom: 0; }
.form-grid .field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Araç çubuğu ---------- */

.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.toolbar input[type="search"] { flex: 1; min-width: 190px; max-width: 340px; }
.toolbar select { width: auto; min-width: 180px; }
.toolbar .spacer { flex: 1; }

/* ---------- Boş durumlar ---------- */

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}
.empty i.ph {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 auto 0.9rem;
  opacity: 0.85;
}
.empty b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.3rem; }
.empty span { font-size: 0.9rem; }
.empty .empty-act { margin-top: 1.1rem; }

/* ---------- İskelet yükleme ---------- */

.skeleton { display: grid; gap: 0.75rem; padding: 1.4rem; }
.skeleton i {
  display: block;
  height: 0.95rem;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, var(--bg)) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton i:nth-child(2) { width: 88%; }
.skeleton i:nth-child(3) { width: 70%; }
.skeleton i:nth-child(4) { width: 56%; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Mobil çekmece & üst bar ---------- */

@media (max-width: 879px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(80vw, 300px);
    z-index: var(--z-drawer);
    height: 100dvh;
    transform: translateX(-104%);
    transition: transform 0.38s var(--ease);
    box-shadow: none;
  }
  body.drawer-open .sidebar { transform: translateX(0); box-shadow: 24px 0 60px -30px rgba(36, 26, 51, 0.4); }
  body.drawer-open { overflow: hidden; }

  .topbar { display: flex; }
  .view-site-top { display: inline-flex; }
  .sidebar-foot .view-site { display: none; }
}

@media (max-width: 879px) and (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
  .drawer-overlay { transition: none; }
}

/* ---------- Mobil tablo & yerleşim ---------- */

@media (max-width: 767px) {
  .panel-main { padding: 1.3rem 1rem 2.4rem; }

  .ov-grid { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .summary-item:nth-child(odd) { border-left: none; }

  table, thead, tbody, tr, td { display: block; }
  table { width: 100%; min-width: 0; }
  thead { display: none; }
  .table-wrap { border-radius: var(--radius-card); }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: var(--accent-faint); }
  td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem 0.9rem; padding: 0.25rem 0; border: none; align-items: baseline; }
  td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  td:not([data-label]) { grid-template-columns: 1fr; }
  td:not([data-label])::before { display: none; }
  .row-actions { justify-content: flex-start; margin-top: 0.3rem; }
  .thumb { width: 3.6rem; height: 3.6rem; }
  .thumb-video { width: 3.6rem; height: 3.6rem; }
  .link-cell { max-width: none; white-space: normal; }
  .copy-cell { flex-wrap: wrap; }
  .toolbar select { width: 100%; min-width: 0; }
  .toolbar .btn { flex: 1 1 auto; justify-content: center; min-height: 2.6rem; }
  .row-actions .btn { min-height: 2.6rem; }
  .page-head { align-items: flex-start; }
}

/* ---------- Küçük ekran ince ayarları ---------- */

@media (max-width: 480px) {
  .login-card { padding: 2rem 1.5rem; }
  .summary-item { padding: 1rem 0.6rem; }
  .summary-item b { font-size: 1.45rem; }
  .view-site-top .view-site-label { display: none; }
  .view-site-top { padding: 0.55rem 0.7rem; }
  .form-panel { padding: 1.3rem 1.1rem 1.5rem; }
}

/* ---------- Önizleme Modalı ---------- */

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 16, 32, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.preview-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.preview-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.preview-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.preview-close:hover { background: var(--danger); color: #fff; transform: scale(1.08); }

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .panel-section.active { animation: none; }
  .skeleton i { animation: none; }
}