/* Yönetici paneli — dashboard düzeni, tema ile uyumlu */
.admin-dashboard {
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-dashboard .auth-ambient {
  opacity: 0.85;
}

.admin-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Üst sekmeler — ana site panel sekmeleriyle uyumlu */
.admin-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tg-fg, #fff) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--tg-fg, #fff) 10%, transparent);
}

.admin-hub-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 11px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: color-mix(in srgb, var(--tg-fg, #fff) 78%, transparent);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-hub-tab:hover {
  color: var(--tg-fg, #fff);
  background: color-mix(in srgb, var(--tg-fg, #fff) 8%, transparent);
}

.admin-hub-tab[aria-selected="true"] {
  color: var(--tg-fg, #fff);
  border-color: color-mix(in srgb, var(--tg-accent, #c9a227) 45%, transparent);
  background: color-mix(in srgb, var(--tg-accent, #c9a227) 16%, transparent);
}

.admin-hub-tabs--sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-top: -0.25rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem !important;
  background: color-mix(in srgb, var(--canvas, #050508) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--tg-fg, #fff) 8%, transparent);
}

html[data-theme="light"] .admin-hub-tabs--sticky {
  background: color-mix(in srgb, var(--canvas, #fafafa) 92%, transparent);
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-panel--flush {
  border-radius: 16px;
  margin-top: 0.5rem;
}

.admin-complaints-hint {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tg-fg, #fff) 4%, transparent);
  border: 1px dashed color-mix(in srgb, var(--tg-fg, #fff) 12%, transparent);
}

.admin-select--inline {
  min-width: 0;
  max-width: 11rem;
  padding: 0.35rem 0.5rem;
  min-height: 38px;
  font-size: 0.82rem;
}

/* Sağlayıcı dizini (dövmeci, stüdyo, bağlantılar) */
.admin-directory-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-bottom: 1rem;
}

.admin-directory-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-directory-block__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
  background: color-mix(in srgb, var(--tg-fg, #fff) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tg-fg, #fff) 12%, transparent);
}

.admin-directory-block__hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.68;
}

.admin-table-wrap--wide {
  border-radius: 14px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--tg-fg, #fff) 2%, transparent);
}

/* ——— Üst bar ——— */
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
  margin-bottom: 1.5rem;
}

.admin-nav__home {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.admin-nav__logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--admin-accent, #6ee7c5), #94a3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-nav__crumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.admin-nav__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
}

.admin-user-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* ——— Hero ——— */
.admin-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.admin-hero__desc {
  margin: 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.72;
}

.admin-hero__actions {
  display: flex;
  gap: 0.5rem;
}

/* ——— İstatistik kartları ——— */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.admin-stats--summary {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.admin-summary-block {
  padding-bottom: 0.25rem;
}

.admin-hero--compact {
  align-items: center;
}

.admin-hero__title--sub {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-summary-foot {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  opacity: 0.72;
}

.admin-stat {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

html[data-theme="light"] .admin-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
}

.admin-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.admin-stat--total::before {
  background: linear-gradient(135deg, #64748b, transparent);
}
.admin-stat--pending::before {
  background: linear-gradient(135deg, #f59e0b, transparent);
}
.admin-stat--approved::before {
  background: linear-gradient(135deg, #22c55e, transparent);
}
.admin-stat--rejected::before {
  background: linear-gradient(135deg, #ef4444, transparent);
}

.admin-stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.admin-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ——— Panel ——— */
.admin-panel {
  border-radius: 20px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
  background: rgba(8, 8, 12, 0.45);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

html[data-theme="light"] .admin-panel {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.07);
}

.admin-panel__bar {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-field--grow {
  flex: 1 1 220px;
}

.admin-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.admin-select,
.admin-input {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.14));
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

html[data-theme="light"] .admin-select,
html[data-theme="light"] .admin-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

.admin-input::placeholder {
  opacity: 0.45;
}

.admin-select:focus,
.admin-input:focus {
  outline: none;
  border-color: rgba(110, 231, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 231, 197, 0.12);
}

.admin-select {
  min-width: 160px;
  cursor: pointer;
}

html:not([data-theme="light"]) .admin-select {
  color-scheme: dark;
}

html[data-theme="light"] .admin-select {
  color-scheme: light;
}

/* ——— Uyarı ——— */
.admin-alert {
  margin: 0 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.admin-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

html[data-theme="light"] .admin-alert--error {
  color: #991b1b;
}

/* ——— Boş durum ——— */
.admin-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.admin-empty-state__icon {
  margin: 0 auto 1rem;
  opacity: 0.35;
}

.admin-empty-state__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-empty-state__hint {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ——— Tablo ——— */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.06));
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.55;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

html[data-theme="light"] .admin-table th {
  background: rgba(250, 250, 252, 0.95);
}

.admin-table tbody tr {
  transition: background 0.12s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .admin-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-td-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  opacity: 0.85;
}

.admin-cell-loc {
  max-width: 220px;
  line-height: 1.45;
}

.admin-cell-user {
  max-width: 200px;
}

.admin-cell-user__mail {
  word-break: break-word;
  font-size: 0.82rem;
}

.admin-cell-user__dn {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

.admin-cell-date {
  white-space: nowrap;
  font-size: 0.82rem;
  opacity: 0.85;
}

.admin-cell-actions {
  white-space: nowrap;
}

/* Mobil: kart satırları */
@media (max-width: 960px) {
  .admin-table thead {
    display: none;
  }

  .admin-table tbody tr {
    display: block;
    margin: 0.75rem 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.03);
  }

  html[data-theme="light"] .admin-table tbody tr {
    background: rgba(255, 255, 255, 0.55);
  }

  .admin-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.06));
  }

  .admin-table tbody td:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }

  .admin-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    padding-top: 0.2rem;
  }

  .admin-cell-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-cell-actions::before {
    flex-basis: 100%;
    max-width: 38%;
  }

  .admin-cell-loc,
  .admin-cell-user {
    max-width: none;
  }
}

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-badge--type {
  background: rgba(110, 231, 197, 0.14);
  color: #5eead4;
  border: 1px solid rgba(110, 231, 197, 0.25);
}

html[data-theme="light"] .admin-badge--type {
  color: #0d9488;
}

.admin-badge--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.admin-badge--approved {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.admin-badge--rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}

.admin-btn:active {
  transform: scale(0.98);
}

.admin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-btn--primary {
  border-color: rgba(110, 231, 197, 0.35);
  background: linear-gradient(145deg, rgba(110, 231, 197, 0.18), rgba(148, 163, 255, 0.12));
  color: #a7f3d0;
}

html[data-theme="light"] .admin-btn--primary {
  color: #0f766e;
}

.admin-btn--primary:hover {
  background: linear-gradient(145deg, rgba(110, 231, 197, 0.28), rgba(148, 163, 255, 0.18));
}

.admin-btn--ok {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
}

html[data-theme="light"] .admin-btn--ok {
  color: #15803d;
}

.admin-btn--danger {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

html[data-theme="light"] .admin-btn--danger {
  color: #b91c1c;
}

.admin-btn + .admin-btn {
  margin-left: 0.35rem;
}

@media (max-width: 960px) {
  .admin-btn + .admin-btn {
    margin-left: 0;
  }

  .admin-cell-actions .admin-btn {
    margin: 0.2rem 0 0.2rem 0.35rem;
  }
}
