/* =========================================================
   Tasarım sistemi
   ========================================================= */
:root {
  --brand: #0d7c66;
  --brand-600: #0a6554;
  --brand-50: #e6f5f1;
  --violet: #0e9488;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #566176; /* #f6f7fb zeminde 5:1+ (WCAG AA) */
  --line: #e6e9f2;
  --bg: #f6f7fb;
  --card: #ffffff;
  --eu-blue: #003399;
  --gold-1: #ffd54a;
  --gold-2: #ff9f1a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --hero-bg:
    radial-gradient(1100px 420px at 85% -10%, rgba(20, 184, 144, .38), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(13, 124, 102, .55), transparent 60%),
    linear-gradient(160deg, #062b27 0%, #0a4a40 60%, #0a6554 100%);

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 13, 124, 102;
  --bs-link-hover-color-rgb: 10, 101, 84;
  --bs-secondary-color: var(--muted);
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3, .h4, .h5 {
  letter-spacing: -.02em;
}

.min-w-0 {
  min-width: 0;
}

/* Kart içi ızgaralar: uzun içerik (dosya yolu, uzun ad) kartı taşırmasın, sütun kart genişliğinde kalsın */
.card-body.d-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* --- Bootstrap ayarları --- */
.btn {
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-600);
  --bs-btn-active-border-color: var(--brand-600);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 6px 16px -8px rgba(13, 124, 102, .8);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-600);
  --bs-btn-active-border-color: var(--brand-600);
}

.btn-light {
  --bs-btn-bg: #f1f4fa;
  --bs-btn-border-color: #f1f4fa;
  --bs-btn-hover-bg: #e6eaf4;
  --bs-btn-hover-border-color: #e6eaf4;
  --bs-btn-color: var(--ink-2);
}

.btn-warning {
  --bs-btn-color: #3a2500;
  --bs-btn-hover-color: #3a2500;
  --bs-btn-active-color: #3a2500;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  border: 0;
  box-shadow: 0 6px 16px -8px rgba(255, 159, 26, .9);
}

.btn-warning:hover {
  filter: brightness(1.05);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--line);
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .22rem rgba(13, 124, 102, .16);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.alert {
  border: 0;
  border-radius: var(--radius-sm);
}

.toast-alert {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast-alert .btn-close {
  filter: invert(1);
}

.nav-pills .nav-link.active {
  background: var(--brand);
}

.list-group {
  --bs-list-group-border-radius: var(--radius);
}

/* --- Üst menü --- */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar-brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  font-size: 1.05rem;
  box-shadow: 0 6px 14px -6px rgba(13, 124, 102, .8);
}

.app-navbar .nav-link {
  color: var(--ink-2);
  font-weight: 600;
  border-radius: 999px;
  padding: .45rem .9rem !important;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: var(--brand);
  background: var(--brand-50);
}

.navbar-toggler {
  border: 0;
  border-radius: 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(13, 124, 102, .2);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .7rem .2rem .2rem;
  border-radius: 999px;
  background: #f1f4fa;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

.user-chip:hover {
  background: #e6eaf4;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: 999px;
  background: #f1f4fa;
  font-size: .78rem;
  font-weight: 800;
}

@media (min-width: 1200px) {
  .lang-switch {
    align-self: center;
  }
}

.lang-switch a {
  padding: .22rem .6rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* --- Ana sayfa hero --- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.75rem;
  background: var(--hero-bg);
  color: #fff;
}

.home-hero::after {
  /* ince ızgara dokusu */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 520px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.1rem;
}

.search-card .form-control {
  border: 0;
  box-shadow: none;
  font-size: 1.15rem;
  min-width: 0;
}

.page-head h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 850;
}

.page-head p {
  color: var(--muted);
  max-width: 640px;
}

.empty-cta {
  padding: 2rem 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  text-align: center;
}

.chip-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* --- Düzen --- */
.feed {
  max-width: 660px;
}

.narrow {
  max-width: 480px;
}

/* --- Gönderiler --- */
.post-card .card-body {
  padding: 1rem 1.1rem;
}

.avatar {
  --h: 220;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 48%));
  color: #fff;
  font-weight: 800;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: .8rem;
}

.post-author {
  font-weight: 700;
}

/* Onay bekleyen mesaj: sadece yazanı görür */
.post-card.is-pending { border: 1.5px dashed #fcd34d; }
.post-pending {
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}

.post-time {
  color: var(--muted);
  font-size: .82rem;
}

.post-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.post-media {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
}


.manage-nav .nav-link {
  border-radius: 10px;
}

.tag-emoji {
  font-size: 1.25rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* --- "Bu site satılıktır" --- */
/* Demo veri uyarısı: vitrin amaçlı örnek veri yüklüyken her sayfada */
.demo-notice {
  padding: .4rem 1rem;
  background: #e6f5f1;
  color: #312e81;
  border-bottom: 1px solid #c7d2fe;
  font-size: .85rem;
  text-align: center;
}

/* Admin bir üyenin gözünden bakarken (salt okunur) her sayfanın üstünde */
.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 1080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  padding: .45rem 1rem;
  background: #7c2d12;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}

.impersonation-banner form {
  margin: 0;
}

/* Yönetim genel arama kutusu (kenar menüsü) */
.admin-search .form-control {
  border-radius: 999px;
}

.alert-card.is-unread {
  border-left: 4px solid var(--gold-2);
  background: #fffbeb;
}

/* Yazdırırken sadece etiket çıksın */
@media print {
  body * {
    visibility: hidden;
  }

.cookie-notice,
  .no-print {
    display: none !important;
  }
}

/* --- Yasal metinler --- */
.legal {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 850;
  margin-bottom: 1rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.legal p,
.legal li {
  line-height: 1.65;
  color: var(--ink-2);
}

.legal .table {
  font-size: .9rem;
}

/* Doldurulmamış veri sorumlusu bilgisi */
.legal-todo {
  padding: .05rem .35rem;
  border-radius: 6px;
  background: #fef08a;
  color: #713f12;
  font-weight: 700;
}

.consent-box {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(640px, calc(100% - 32px));
  padding: .75rem 1rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice a {
  color: #93c5fd;
}

/* --- Sahiplik doğrulama --- */

.status-rejected {
  background: #ffe4e6;
  color: #9f1239;
}

/* --- Moderasyon: mesaj akışı --- */
.bulk-bar {
  position: sticky;
  top: 64px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
}

.mod-post {
  border-radius: 12px;
}

.mod-thumb {
  max-height: 120px;
  max-width: 180px;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Yönetim kenar menüsü --- */
.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1rem;
}

.admin-sidebar,
.admin-main {
  min-width: 0;
}

.admin-page-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 850;
  margin-bottom: 1rem;
}

.admin-sidebar-head {
  margin-bottom: .5rem;
}

.admin-sidebar-title {
  font-weight: 850;
  font-size: 1.1rem;
}

.admin-sidebar-role {
  color: var(--muted);
  font-size: .8rem;
}

.admin-nav-label {
  display: none;
}

/* Dar ekran: menü üstte, yatay kayan çipler */
.admin-nav {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}

.admin-nav + .admin-nav {
  margin-top: .25rem;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  text-decoration: none;
}

.admin-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-link.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.admin-nav-admin .admin-link {
  border-color: #fde68a;
}

.admin-nav-admin .admin-link.active {
  background: #92400e;
  border-color: #92400e;
  color: #fff;
}

/* Geniş ekran: solda sabit dikey menü */
@media (min-width: 992px) {
  .admin-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .admin-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 1rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
  }

  .admin-sidebar-head {
    padding: 0 .5rem .75rem;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    flex-direction: column;
    gap: .1rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-nav + .admin-nav {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
  }

  .admin-nav-label {
    display: block;
    padding: 0 .6rem .25rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .admin-link,
  .admin-nav-admin .admin-link {
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    padding: .45rem .6rem;
    white-space: normal;
  }

  .admin-link:hover {
    background: var(--brand-50);
  }
}

/* --- Moderasyon --- */
.nav-mod {
  color: #b45309 !important;
}

.mod-panel {
  padding: .8rem 1rem;
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius);
  background: #fffbeb;
}

.mod-stat {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

a.mod-stat:hover {
  border-color: var(--brand);
  color: inherit;
}

.mod-stat.is-alert {
  border-color: #fda4af;
  background: #fff1f3;
}

.mod-stat-value {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.mod-stat-label {
  color: var(--muted);
  font-size: .85rem;
}

.report-card .post-text {
  padding: .6rem .8rem;
  border-radius: 12px;
  background: #f6f7fb;
}

.mod-note {
  padding: .5rem .75rem;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-50);
}

.mod-status-form {
  display: grid;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 576px) {
  .mod-status-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* --- Şikayet görüşmesi --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-open { background: #fef3c7; color: #92400e; }
.status-resolved { background: #dcfce7; color: #166534; }
.status-dismissed { background: #f1f5f9; color: #475569; }

.list-group-item.has-unread {
  border-left: 4px solid #e11d48;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.bubble-row {
  display: flex;
}

.bubble-row.is-mine {
  justify-content: flex-end;
}

.bubble {
  max-width: 85%;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.bubble-row.is-mine .bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--brand-50);
  border-color: #dbe3ff;
}

.bubble-mod {
  border-color: #fde68a;
  background: #fffbeb;
}

.bubble-meta {
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.bubble-system {
  align-self: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--ink-2);
  font-size: .78rem;
  text-align: center;
}

.bell-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1f3;
  text-decoration: none;
  animation: bell-ring 1.6s ease-in-out 2;
}

.bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bell-link { animation: none; }
}

.reason-list {
  display: grid;
  gap: .5rem;
}

.reason-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.reason-option:hover {
  border-color: #fda4af;
}

.reason-input:checked + .reason-option {
  border-color: #e11d48;
  background: #fff1f3;
}

.reason-input:focus-visible + .reason-option {
  box-shadow: 0 0 0 .22rem rgba(225, 29, 72, .2);
}

.reason-emoji {
  font-size: 1.2rem;
}

/* --- Paylaşım --- */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

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

.share-x:hover { background: #000; border-color: #000; color: #fff; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-ig:hover { background: #e1306c; border-color: #e1306c; color: #fff; }
.share-copy:hover, .share-native:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.share-copy.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* --- İletişim --- */
.contact-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.contact-line:hover {
  color: var(--brand);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

/* Bal küpü alanı ekranda görünmez */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Footer --- */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: #0b1220;
  color: rgba(255, 255, 255, .7);
}

.site-footer .footer-brand {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer h3,
.site-footer .footer-heading {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: .55rem;
}

.footer-icon svg {
  width: 16px;
  height: 16px;
}

.site-footer .share-btn {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}

/* =========================================================
   Topluluk
   ========================================================= */
.min-w-0 { min-width: 0; }

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.score-card { border-color: var(--brand); }

details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }

@keyframes stolen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.ws-title { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 850; }

/* =========================================================
   Duyurular
   ========================================================= */
.ann-list { display: grid; gap: .6rem; }

.ann {
  --ann: var(--brand);
  --ann-bg: var(--brand-50);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--ann) 30%, transparent);
  border-left: 5px solid var(--ann);
  background: var(--ann-bg);
}

.ann-success { --ann: #16a34a; --ann-bg: #effaf3; }
.ann-warning { --ann: #d97706; --ann-bg: #fff8eb; }
.ann-important { --ann: #dc2626; --ann-bg: #fff1f1; }

.ann-emoji { font-size: 1.4rem; line-height: 1.2; }
.ann-content { flex-grow: 1; min-width: 0; }
.ann-title { font-weight: 800; }
.ann-body { color: var(--ink-2); font-size: .93rem; margin-top: .15rem; white-space: pre-line; }
.ann-link { display: inline-block; margin-top: .35rem; font-weight: 700; color: var(--ann); }
.ann-pin { font-size: .85rem; }

.ann-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  padding: 0 .25rem;
}

.ann-close:hover { color: var(--ink); }

.ann-kind-option {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}

.ann-kind-option:has(input:checked) { border-color: var(--ann, var(--brand)); background: var(--ann-bg, var(--brand-50)); }
.ann-kind-option.ann-info { --ann: var(--brand); --ann-bg: var(--brand-50); }

/* =========================================================
   Hata sayfaları
   ========================================================= */
.error-page { max-width: 560px; padding: 2rem 0 3rem; }
.error-emoji { font-size: 4.5rem; line-height: 1; }
.error-code {
  font-size: clamp(3.5rem, 16vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin: .5rem 0 1rem;
  background: var(--hero-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page .search-card { box-shadow: var(--shadow); border: 1px solid var(--line); }

/* =========================================================
   İki adımlı doğrulama
   ========================================================= */
.twofa-qr { width: 180px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.twofa-qr svg { display: block; width: 100%; height: auto; }
.twofa-code { letter-spacing: .35em; font-weight: 800; font-variant-numeric: tabular-nums; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.recovery-codes code { display: block; padding: .3rem .5rem; background: #fff; border-radius: 8px; color: var(--ink); text-align: center; font-size: .95rem; }

/* =========================================================
   Admin: Sistem sayfası
   ========================================================= */
.system-tile { height: 100%; padding: .75rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Sistem bilgisi: etiket | değer satırları; dar ekranda alt alta */
.system-info-row { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: .25rem 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.system-info-row:first-child { border-top: 0; }
.system-info dt { font-weight: 600; font-size: .875rem; color: var(--muted, inherit); }
.system-info dd { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.system-info-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
@media (max-width: 575.98px) {
    .system-info-row { grid-template-columns: 1fr; gap: .1rem; }
}
.log-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #0f172a; padding: .5rem; }
.log-line { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: #e2e8f0; white-space: pre-wrap; word-break: break-word; padding: .2rem .35rem; border-radius: 6px; }
.log-line + .log-line { margin-top: 2px; }
.log-wrn { color: #fde68a; }
.log-err, .log-ftl { color: #fecaca; background: rgba(220, 38, 38, .18); }


/* =========================================================
   Admin: İstatistik
   ========================================================= */
.chart-wrap { width: 100%; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { font-size: 11px; fill: var(--muted); }
.chart-bar { fill: var(--brand); }
.chart-hit { fill: transparent; }
.chart-bar-group:hover .chart-bar, .chart-bar-group:focus .chart-bar { fill: var(--brand-600); }
.chart-bar-group:focus { outline: none; }
.chart-bar-group:focus .chart-hit { fill: var(--brand-50); }
.rank-bar { position: relative; display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; margin-bottom: 4px; border-radius: 8px; overflow: hidden; font-size: .85rem; }
.rank-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand-50); border-radius: 8px; z-index: 0; }
.rank-bar-label, .rank-bar-value { position: relative; z-index: 1; min-width: 0; }
.rank-bar-value { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   Karanlık mod
   <html data-theme="dark"> sayfa çizilmeden önce (head içindeki küçük betik) ayarlanır:
   tercih yoksa sistemin ayarını izler. Renk değişkenleri yeniden tanımlanır; sabit beyaz
   kullanan bileşenler aşağıda tek tek koyulaştırılır.
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #34d3a6;
  --brand-600: #6ee7c5;
  --brand-50: #10332c;
  --violet: #5eead4;
  --ink: #e6e9f2;
  --ink-2: #c3cad9;
  --muted: #8f9ab0;
  --line: #263049;
  --bg: #0b1020;
  --card: #131a2c;
  --soft: #1b2338;
  --soft-hover: #232c45;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --bs-secondary-bg: var(--soft);
  --bs-tertiary-bg: var(--soft);
}

[data-theme="dark"] .app-navbar { background: rgba(11, 16, 32, .85); }
[data-theme="dark"] .btn-light {
  --bs-btn-bg: var(--soft);
  --bs-btn-border-color: var(--soft);
  --bs-btn-hover-bg: var(--soft-hover);
  --bs-btn-hover-border-color: var(--soft-hover);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--soft-hover);
  --bs-btn-color: var(--ink-2);
}
[data-theme="dark"] .user-chip,
[data-theme="dark"] .lang-switch { background: var(--soft); }
[data-theme="dark"] .user-chip:hover { background: var(--soft-hover); }
[data-theme="dark"] .lang-switch a.active { background: var(--card); }

[data-theme="dark"] .search-card,
[data-theme="dark"] .chip,
[data-theme="dark"] .tag-btn,
[data-theme="dark"] .quick-alert,
[data-theme="dark"] .bubble,
[data-theme="dark"] .reason-option,
[data-theme="dark"] .share-btn,
[data-theme="dark"] .ann-kind-option,
[data-theme="dark"] .recovery-codes code,
[data-theme="dark"] .country-select option { background: var(--card); }

[data-theme="dark"] .chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
[data-theme="dark"] .report-card .post-text,
[data-theme="dark"] .bubble-system { background: var(--soft); }
[data-theme="dark"] .status-open { background: rgba(245, 158, 11, .18); color: #fbbf24; }
[data-theme="dark"] .legal-todo { background: rgba(250, 204, 21, .2); }

/* Koyu zemin + beyaz yazı kullanan bildirimler: koyu modda --ink açık renk olduğu için sabit koyu ton */
[data-theme="dark"] .toast-alert,
[data-theme="dark"] .cookie-notice,
[data-theme="dark"] .map-tip { background: #1f2a44; color: var(--ink); }

[data-theme="dark"] .ann-info { --ann: #8ba3ff; --ann-bg: rgba(91, 124, 255, .14); }
[data-theme="dark"] .ann-success { --ann: #4ade80; --ann-bg: rgba(34, 197, 94, .12); }
[data-theme="dark"] .ann-warning { --ann: #fbbf24; --ann-bg: rgba(245, 158, 11, .14); }
[data-theme="dark"] .ann-important { --ann: #f87171; --ann-bg: rgba(239, 68, 68, .14); }
[data-theme="dark"] .ann-body { color: var(--ink-2); }


[data-theme="dark"] .log-list { background: #05080f; }

[data-theme="dark"] .text-muted { color: var(--muted) !important; }

/* Tema düğmesi */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f4fa;
  font-size: 1rem;
  line-height: 1;
}
[data-theme="dark"] .theme-toggle { background: var(--soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Uygulamayı yükle düğmesi (PWA) */
.install-app { display: inline-flex; align-items: center; gap: .35rem; }

/* Karanlık mod: açık sarı/pembe/yeşil uyarı zeminleri */
[data-theme="dark"] .mod-panel,
[data-theme="dark"] .verify-banner,
[data-theme="dark"] .post-pending,
[data-theme="dark"] .alert-card.is-unread,
[data-theme="dark"] .bubble-mod { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: var(--ink); }
[data-theme="dark"] .mod-panel.is-suspended,
[data-theme="dark"] .mod-stat.is-alert,
[data-theme="dark"] .bell-link,
[data-theme="dark"] .reason-input:checked + .reason-option { background: rgba(244, 63, 94, .14); border-color: rgba(244, 63, 94, .4); }

[data-theme="dark"] .consent-box,
[data-theme="dark"] .status-dismissed { background: var(--soft); color: var(--ink-2); }
[data-theme="dark"] .status-rejected { background: rgba(244, 63, 94, .16); color: #fda4af; }

/* =========================================================
   Hakkımızda ve SSS
   ========================================================= */
.faq-list { display: grid; gap: .5rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { padding: .9rem 1rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: .75rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--brand); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1rem 1rem; color: var(--ink-2); line-height: 1.6; }
.about-steps { display: grid; gap: .6rem; }

/* =========================================================
   Erişilebilirlik
   ========================================================= */
/* "İçeriğe geç" bağlantısı: sadece klavyeyle odaklanınca görünür */
.skip-link {
  position: absolute;
  left: .75rem;
  top: -100px;
  z-index: 2000;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; color: #fff; }
main:focus { outline: none; }

/* Klavyeyle gezinirken her odak belirgin olsun */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.chip:focus-visible,
.tag-btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Hareket hassasiyeti: animasyon ve geçişleri kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Erişilebilirlik: renk kontrastı (WCAG AA, metin için en az 4.5:1)
   ========================================================= */
:root {
  /* Bootstrap'in mavi/kırmızı metin tonları açık zeminde 4.2:1 kalıyordu */
  --bs-primary-rgb: 10, 101, 84;
  --bs-danger-rgb: 192, 32, 48;
  --bs-link-color-rgb: 10, 101, 84;
}
:root[data-theme="dark"] {
  --bs-primary-rgb: 125, 150, 255;
  --bs-danger-rgb: 248, 113, 113;
  --bs-link-color-rgb: 139, 163, 255;
  --bs-link-hover-color-rgb: 170, 188, 255;
}
.btn-outline-secondary { --bs-btn-color: #4b5563; --bs-btn-border-color: #8a939e; }
[data-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: #4b5875; --bs-btn-hover-bg: var(--soft-hover); --bs-btn-hover-color: var(--ink); }
:root:not([data-theme="dark"]) .ann-success .ann-link { color: #15803d; }
:root:not([data-theme="dark"]) .ann-warning .ann-link { color: #a3470b; }
:root:not([data-theme="dark"]) .ann-important .ann-link { color: #b91c1c; }
:root:not([data-theme="dark"]) .nav-mod.active,
:root:not([data-theme="dark"]) .nav-mod:hover { color: #92400e; }

/* =========================================================
   Bildirimler, özel mesaj, işlem kaydı
   ========================================================= */
.notif-option {
  padding: .55rem .75rem .55rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.device-row,
.reminder-row,
.service-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.device-row { justify-content: space-between; }


/* Özel mesaj */
.chat-row.is-unread { background: var(--brand-50); }
.chat-row .chat-preview { max-width: 100%; color: var(--ink-2); }
.bubble-other { background: var(--brand-50); border-color: #c9d4ff; }

.anon-note {
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* Şikayet edilen yorum / mesaj alıntısı */
.reported-quote {
  margin: 0;
  padding: .6rem .85rem;
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .92rem;
}

/* Takip ettiklerim */

/* Toplu işlem çubuğunda ortak not */
.bulk-bar { flex-wrap: wrap; }
.bulk-note { flex: 1 1 180px; max-width: 320px; }

.staff-log-time {
  flex: 0 0 auto;
  width: 2.8rem;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: var(--muted);
}

[data-theme="dark"] .bubble-other { background: var(--brand-50); border-color: #2c3a75; }

/* Kayıtlar: uygulama logları */
.app-log-row {
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--line);
}

.app-log-msg {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82rem;
  word-break: break-word;
}

.app-log-detail {
  max-height: 260px;
  margin: .25rem 0 0;
  padding: .5rem .6rem;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-level,
.log-count {
  display: inline-block;
  padding: .05rem .45rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.log-count { padding: .2rem .6rem; font-size: .8rem; }
.lvl-err { background: #fee2e2; color: #991b1b; }
.lvl-wrn { background: #fef3c7; color: #92400e; }
.lvl-inf { background: var(--brand-50); color: var(--brand-600); }
.lvl-dbg { background: var(--bg); color: var(--muted); }

[data-theme="dark"] .lvl-err { background: rgba(248, 113, 113, .15); color: #fca5a5; }
[data-theme="dark"] .lvl-wrn { background: rgba(245, 158, 11, .15); color: #fcd34d; }

/* Roller ve yetkiler */
.perm-group { margin-bottom: 1rem; }

.perm-group-title {
  margin-bottom: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .5rem;
}

.perm-option {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}

.perm-option .form-check-input { flex: 0 0 auto; margin-top: .2rem; }
.perm-option.is-on { border-color: var(--brand); background: var(--brand-50); }

/* Veritabanı sayfası */
.db-table td, .db-table th { white-space: nowrap; }
.db-table td:first-child { white-space: normal; min-width: 12rem; }

.db-bar {
  height: 4px;
  margin-top: .3rem;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.db-bar > span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--brand);
}

/* Kullanıcı detayı: giriş geçmişi */
.login-list > li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.login-list > li:last-child { border-bottom: 0; }

.login-failed {
  padding: .5rem .65rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .35);
}

/* ---------- Haber yönetimi (CMS) ---------- */
.content-editor { min-height: 360px; font-size: 1rem; background: var(--card); }
.content-editor .ql-editor { min-height: 360px; line-height: 1.65; }

.content-reaction-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.content-reaction-stat { display: flex; flex-direction: column; align-items: center; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.content-tag-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

.content-editor.is-invalid, .content-editor.is-invalid + * { border-color: var(--bs-danger) !important; }

.plan-name { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 850; }

/* =========================================================
   İçerik ön yüzü: makale ve kartlar
   ========================================================= */
.article { max-width: 720px; }
.article-title { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.article-lead { font-size: 1.1rem; color: var(--ink-2); }
.article-cover { width: 100%; height: auto; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.article-body { font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: .5rem 0 1rem; }
.article-body figure { margin: 1rem 0 1.5rem; }
.article-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.article-body blockquote { border-left: 4px solid var(--brand, #0d7c66); padding: .25rem 0 .25rem 1rem; color: var(--ink-2); }
.article-body .ql-align-center { text-align: center; }
.content-card { overflow: hidden; color: inherit; }
.content-card-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
[data-theme="dark"] .demo-notice { background: #1e1b4b; color: #c7d2fe; border-bottom-color: #312e81; }

/* ================= Yönetim listeleri: ortak sayfalama ve tablo (admin-grid) ================= */
.pager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: .75rem 0;
}
.pager-info { font-size: .85rem; color: var(--muted); margin-right: auto; }
.pager-size { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin: 0; }
.pager-size .form-select { width: auto; }
.pager-bar .page-link { color: var(--ink-2); background: var(--card); border-color: var(--line); }
.pager-bar .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-bar .page-item.disabled .page-link { color: var(--muted); background: var(--bg); }

/* Satırları birbirine benzeyen, çok kayıtlı listeler: sıkı satırlar, yapışkan başlık, zebra */
.admin-grid-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 75vh;
}
.admin-grid {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
  color: var(--ink);
}
.admin-grid th,
.admin-grid td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.admin-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}
.admin-grid tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
.admin-grid tbody tr:hover td { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.admin-grid tbody tr:last-child td { border-bottom: 0; }
.admin-grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-grid .nowrap { white-space: nowrap; }
.admin-grid .cell-text { min-width: 14rem; max-width: 32rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-grid .actions { text-align: right; white-space: nowrap; }
.admin-grid .actions form { display: inline-block; margin: 0; }
.admin-grid tr.is-attention td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.admin-grid tr.is-muted td { color: var(--muted); }

/* Telefonda her satır başlık etiketli küçük karta dönüşür (td data-label) */
@media (max-width: 767.98px) {
  .admin-grid-wrap { max-height: none; overflow: visible; background: transparent; border: 0; }
  .admin-grid thead { display: none; }
  .admin-grid,
  .admin-grid tbody,
  .admin-grid tr,
  .admin-grid td { display: block; width: 100%; }
  .admin-grid tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .6rem;
    padding: .35rem 0;
  }
  .admin-grid tbody tr:nth-child(even) td,
  .admin-grid tbody tr:hover td { background: transparent; }
  .admin-grid td { border: 0; padding: .25rem .85rem; text-align: left; }
  .admin-grid td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
  }
  .admin-grid .num,
  .admin-grid .actions { text-align: left; white-space: normal; }
  .admin-grid .cell-text { min-width: 0; max-width: none; }
  .admin-grid tr.is-attention { border-left: 3px solid #f59e0b; }
  .admin-grid tr.is-attention td:first-child { box-shadow: none; }
}

/* Harici giriş (Google): markanın istediği beyaz düğme + "ya da" ayırıcı */
.btn-external {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 600;
  font-size: 1rem;
}
.btn-external:hover,
.btn-external:focus-visible { background: #f8f9fa; color: #1f1f1f; border-color: #c6c9cd; }
.btn-external-logo { width: 20px; height: 20px; flex-shrink: 0; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
[data-theme="dark"] .btn-external { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-theme="dark"] .btn-external:hover { background: #1f1f20; color: #e3e3e3; }

/* Facebook düğmesi: markanın mavisi, beyaz "f" */
.btn-external-facebook,
[data-theme="dark"] .btn-external-facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.btn-external-facebook:hover,
.btn-external-facebook:focus-visible,
[data-theme="dark"] .btn-external-facebook:hover { background: #166fe5; border-color: #166fe5; color: #fff; }

/* Yönetim menüsünde bekleyen iş sayısı */
.admin-badge {
  margin-left: auto;
  min-width: 1.4rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.admin-badge.is-danger {
  background: #dc2626;
}

/* Durum sayfası */
.status-banner {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: #fff;
}

.status-banner.is-ok { background: #15803d; }
.status-banner.is-warn { background: #b45309; }
.status-banner.is-down { background: #b91c1c; }
.status-banner.is-maint { background: #1d4ed8; }

.status-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #fff;
}

.status-pill {
  font-size: .8rem;
  font-weight: 700;
}

.status-pill.is-ok { color: #15803d; }
.status-pill.is-warn { color: #b45309; }
.status-pill.is-down { color: #b91c1c; }
.status-pill.is-maint { color: #1d4ed8; }

/* İçerik sürüm farkı */
.diff-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  max-height: 70vh;
  overflow: auto;
}

.diff-view > div {
  padding: .1rem .4rem;
  white-space: pre-wrap;
}

.diff-added { background: rgba(22, 163, 74, .15); }
.diff-removed { background: rgba(220, 38, 38, .15); text-decoration: line-through; }
.diff-same { color: var(--muted); }
