/* Bodrumda — basit yönetim (üst menü) */

.admin-body--simple {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
}

.admin-simple {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px 36px;
  box-sizing: border-box;
}

.admin-simple-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0 14px;
  margin: 0 -12px 16px;
  padding-left: 12px;
  padding-right: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.admin-simple-logo {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.admin-simple-logo:hover {
  color: #1d4ed8;
}

.admin-simple-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
}

.admin-simple-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.admin-simple-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.admin-simple-link.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  font-weight: 600;
}

.admin-simple-link--site {
  color: #6b7280;
}

.admin-simple-exit {
  color: #b91c1c !important;
}

.admin-simple-exit:hover {
  background: #fef2f2 !important;
}

.admin-simple-email {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: auto;
  padding: 4px 8px;
  max-width: min(200px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-simple-email {
    width: 100%;
    margin-left: 0;
    order: 10;
  }

  .admin-simple-nav {
    gap: 4px;
  }
}

.admin-simple-main {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-simple-h1 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Eski kurumsal panel (body sınıfı kullanılmıyor) */

.admin-body--corp {
  margin: 0;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", var(--font, system-ui, -apple-system, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: #1e293b;
  background: #eef2f7;
  -webkit-font-smoothing: antialiased;
}

.admin-body--corp {
  --admin-accent: #2563eb;
  --admin-accent-hover: #1d4ed8;
  --admin-accent-soft: rgba(37, 99, 235, 0.12);
  --admin-sidebar: #0b1220;
  --admin-sidebar-border: rgba(30, 41, 59, 0.85);
  --admin-sidebar-hover: rgba(30, 41, 59, 0.65);
  --admin-sidebar-muted: #94a3b8;
  --admin-surface: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-muted: #64748b;
  --admin-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --admin-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.admin-body--corp.admin-body--nav-open {
  overflow: hidden;
}

.admin-shell--corp {
  display: flex;
  min-height: 100dvh;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* —— Yan menü —— */
.admin-nav {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(175deg, #0f172a 0%, #0b1220 48%, #0a101c 100%);
  color: #f8fafc;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--admin-sidebar-border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.admin-nav__head {
  padding: 1.5rem 1.25rem 1.35rem;
  border-bottom: 1px solid var(--admin-sidebar-border);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

.admin-nav__brand {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.admin-nav__brand:hover {
  color: #bfdbfe;
}

.admin-nav__tagline {
  margin: 0.4rem 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-sidebar-muted);
}

.admin-nav__links {
  flex: 1;
  min-height: 0;
  padding: 0.85rem 0.7rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-nav__spacer {
  flex: 1;
  min-height: 1rem;
}

.admin-nav__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  flex-shrink: 0;
  opacity: 0.88;
}

.admin-nav__ico .fa {
  font-size: 0.95rem;
}

.admin-nav__label {
  min-width: 0;
}

.admin-nav__group {
  margin: 1.05rem 0 0.4rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--admin-sidebar-muted);
}

.admin-nav__group:first-child {
  margin-top: 0.2rem;
}

.admin-nav__a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-nav__a:hover {
  background: var(--admin-sidebar-hover);
  color: #fff;
}

.admin-nav__a.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0.12) 100%);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.35);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15) inset;
}

.admin-nav__a.is-active .admin-nav__ico {
  opacity: 1;
  color: #93c5fd;
}

.admin-nav__a--external {
  color: #94a3b8;
}

.admin-nav__a--external:hover {
  color: #e2e8f0;
}

.admin-nav__a--muted {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.8125rem;
}

.admin-nav__a--muted:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

/* —— Ana alan —— */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8edf4 0%, #eef2f7 120px, #eef2f7 100%);
  z-index: 1;
}

.admin-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 0.35rem;
  flex-shrink: 0;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-menu-btn:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--admin-accent);
}

.admin-menu-btn:focus-visible {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.admin-menu-btn .fa {
  font-size: 1.05rem;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(10px);
}

.admin-top__start {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.admin-top__titles {
  min-width: 0;
}

.admin-breadcrumb {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
}

.admin-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.25;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: #475569;
  max-width: min(320px, 100%);
}

.admin-user-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  flex-shrink: 0;
}

.admin-user-pill__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content {
  flex: 1;
  padding: 1.5rem 1.75rem 2.75rem;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.admin-p {
  margin: 0 0 1.25rem;
  max-width: 52rem;
  line-height: 1.6;
  color: var(--admin-text-muted);
  font-size: 0.9375rem;
}

/* Özet kartları */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 2.75rem 1.2rem 1.3rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: var(--admin-shadow-md);
  border-left: 3px solid var(--admin-accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.admin-stat-n {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--admin-accent);
  line-height: 1.1;
}

.admin-stat-l {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-stats--dash {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.admin-stat__ico {
  position: absolute;
  top: 1.1rem;
  right: 1.15rem;
  font-size: 1.35rem;
  opacity: 0.22;
  color: var(--admin-accent);
  line-height: 1;
}

.admin-stat__foot {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-stat__link {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-stat__link:hover {
  text-decoration: underline;
}

.admin-stat--accent-blue {
  border-left-color: #2563eb;
}

.admin-stat--accent-blue .admin-stat-n {
  color: #2563eb;
}

.admin-stat--accent-blue .admin-stat__ico {
  color: #2563eb;
}

.admin-stat--accent-emerald {
  border-left-color: #059669;
}

.admin-stat--accent-emerald .admin-stat-n {
  color: #059669;
}

.admin-stat--accent-emerald .admin-stat__ico {
  color: #059669;
}

.admin-stat--accent-amber {
  border-left-color: #d97706;
}

.admin-stat--accent-amber .admin-stat-n {
  color: #c2410c;
}

.admin-stat--accent-amber .admin-stat__ico {
  color: #d97706;
}

.admin-stat--accent-violet {
  border-left-color: #7c3aed;
}

.admin-stat--accent-violet .admin-stat-n {
  color: #6d28d9;
}

.admin-stat--accent-violet .admin-stat__ico {
  color: #7c3aed;
}

.admin-stat--accent-teal {
  border-left-color: #0d9488;
}

.admin-stat--accent-teal .admin-stat-n {
  color: #0f766e;
}

.admin-stat--accent-teal .admin-stat__ico {
  color: #0d9488;
}

.admin-stat--accent-slate {
  border-left-color: #475569;
}

.admin-stat--accent-slate .admin-stat-n {
  color: #334155;
}

.admin-stat--accent-slate .admin-stat__ico {
  color: #475569;
}

.admin-trend-up {
  color: #059669;
  font-weight: 700;
}

.admin-trend-down {
  color: #dc2626;
  font-weight: 700;
}

/* —— Gösterge paneli (özet) —— */
.admin-dashboard {
  margin-top: 0.25rem;
}

.admin-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0.92) 42%, #fff 100%);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-md);
}

.admin-dash-hero__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
             color: #0f172a;
}

.admin-dash-hero__meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.admin-dash-hero__hint {
  flex: 1;
  min-width: min(100%, 260px);
  max-width: 28rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  align-self: center;
}

.admin-dash-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: -0.25rem 0 1.5rem;
}

.admin-chip-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
}

.admin-chip-metric__n {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.admin-chip-metric__l {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.admin-dash-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-dash-actions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
}

.admin-action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--admin-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-action-tile:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.admin-action-tile--ghost {
  background: rgba(255, 255, 255, 0.55);
}

.admin-action-tile--ghost:hover {
  background: #fff;
}

.admin-action-tile--pulse {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.12), var(--admin-shadow);
  animation: admin-pulse-soft 2.4s ease-in-out infinite;
}

@keyframes admin-pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.12), var(--admin-shadow);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16), var(--admin-shadow);
  }
}

.admin-action-tile__ico {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  margin-bottom: 0.15rem;
}

.admin-action-tile__ico .fa {
  font-size: 0.95rem;
}

.admin-action-tile__t {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.admin-action-tile__d {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-badge {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.admin-panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: var(--admin-shadow-md);
}

.admin-panel--stretch {
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .admin-panel--stretch {
    grid-column: span 2;
  }

  .admin-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-panel__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-panel__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.admin-panel__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--admin-accent);
  text-decoration: none;
  white-space: nowrap;
}

.admin-panel__link:hover {
  text-decoration: underline;
}

.admin-panel__empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-week-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 140px;
  padding: 0.25rem 0.15rem 0;
}

.admin-week-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.admin-week-chart__bar-wrap {
  width: 100%;
  max-width: 48px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, rgba(248, 250, 252, 0.3) 100%);
  border-radius: 8px;
}

.admin-week-chart__bar {
  width: 58%;
  min-height: 3px;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  transition: height 0.25s ease;
}

.admin-week-chart__label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-week-chart__n {
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.1rem;
}

.admin-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-bar-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(60px, 2.2fr) 2rem;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.admin-bar-list__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-list__name:hover {
  color: var(--admin-accent);
}

.admin-bar-list__track {
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.admin-bar-list__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.admin-bar-list__n {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--admin-text-muted);
  text-align: right;
}

.admin-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-feed--dense {
  gap: 0.45rem;
}

.admin-feed__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-feed__verb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-feed__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-feed__link:hover {
  text-decoration: underline;
}

.admin-feed__stars {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #d97706;
}

.admin-feed__meta {
  font-size: 0.7rem;
  color: var(--admin-text-muted);
}

.admin-dashboard__foot {
  margin-top: 2rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .admin-dash-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel--stretch {
    grid-column: 1;
  }

  .admin-bar-list__row {
    grid-template-columns: 1fr 4rem;
    grid-template-areas:
      "name n"
      "track track";
  }

  .admin-bar-list__name {
    grid-area: name;
  }

  .admin-bar-list__n {
    grid-area: n;
  }

  .admin-bar-list__track {
    grid-area: track;
  }

  .admin-dash-hero {
    padding: 1rem 1.1rem;
  }

  .admin-dash-hero__title {
    font-size: 1.2rem;
  }
}

/* Formlar */
.admin-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-form-wide {
  max-width: 48rem;
}

.admin-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.admin-input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:hover {
  border-color: #cbd5e1;
}

.admin-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #334155;
}

.admin-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.admin-fieldset {
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  background: #fafbfc;
}

.admin-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #334155;
}

.admin-help {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
  line-height: 1.45;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  background: var(--admin-accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.admin-btn:hover {
  background: var(--admin-accent-hover);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Tablolar */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
}

.admin-table a {
  color: var(--admin-accent);
  font-weight: 600;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.td-muted {
  color: var(--admin-text-muted);
  font-size: 0.8125rem;
}

.td-wrap {
  max-width: 20rem;
}

.td-actions {
  white-space: nowrap;
}

.inline-form {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn-sm {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  background: var(--admin-surface);
  font-weight: 600;
}

.btn-sm:hover {
  background: #f1f5f9;
}

.btn-ok {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.btn-bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.admin-inline-form {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
}

.admin-sub {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

/* Uyarılar (genel site sınıflarıyla uyum) */
.admin-content .alert {
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.admin-content .btn-submit {
  font-family: inherit;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: var(--admin-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}

.admin-content .btn-submit:hover {
  background: var(--admin-accent-hover);
}

/* Giriş / kurulum */
.admin-login-body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "Plus Jakarta Sans", var(--font, system-ui, sans-serif);
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #f1f5f9 45%, #f1f5f9 100%);
}

@media (max-width: 640px) {
  .admin-login-body {
    background: #f1f5f9;
  }
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
}

.admin-login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.admin-login-card .admin-login-kicker {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.admin-login-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem !important;
}

.admin-login-foot {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.admin-login-foot a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.admin-login-foot a:hover {
  text-decoration: underline;
}

.setup-hint {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.admin-service-block {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--admin-surface);
}

.admin-input-compact {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .admin-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .admin-nav-backdrop[hidden] {
    display: none !important;
  }

  .admin-shell--corp .admin-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(292px, 90vw);
    max-width: 100%;
    transform: translateX(-104%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
    z-index: 70;
    box-shadow: none;
    border-right: 1px solid var(--admin-sidebar-border);
  }

  .admin-shell--corp.admin-shell--nav-open .admin-nav {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.22);
  }

  .admin-menu-btn {
    display: inline-flex;
  }

  .admin-main {
    width: 100%;
  }

  .admin-top {
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .admin-title {
    font-size: 1.2rem;
  }

  .admin-user-pill {
    max-width: min(240px, 55vw);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .admin-content {
    padding: 1.15rem 1rem 2.25rem;
  }
}
