:root {
  --cs-primary: #2563eb;
  --cs-dark: #0f172a;
  --cs-muted: #64748b;
  --cs-bg: #f1f5f9;
  --app-primary: var(--cs-primary);
  --app-dark: var(--cs-dark);
  --app-bg: var(--cs-bg);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.public-body {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%);
  min-height: 100vh;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  padding: 2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
}

.track-brand-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.track-brand-logo-wrap {
  flex-shrink: 0;
  line-height: 0;
}

.track-brand-logo {
  display: block;
  max-width: min(200px, 100%);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.track-brand-letter {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--cs-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.track-brand-meta {
  min-width: 0;
}

.track-brand-name {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}

.track-timeline {
  position: relative;
  padding-left: 0.25rem;
}

.track-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-left: 2px solid #e2e8f0;
  margin-left: 0.55rem;
  padding-left: 1.25rem;
}

.track-step:last-child {
  border-left-color: transparent;
}

.track-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-left: -1.44rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.track-step--done .track-dot {
  background: #16a34a;
}

.track-step--active .track-dot {
  background: var(--cs-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.track-step--active strong {
  color: var(--cs-primary);
}

.track-step--pending {
  opacity: 0.55;
}

.stat-card.border-success {
  border: 2px solid #22c55e !important;
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 140px;
  padding-top: 0.5rem;
}

.dash-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.dash-chart-bar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 6px 6px 2px 2px;
  min-height: 8px;
}

.dash-chart-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.35rem;
}

.dash-chart-label {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.service-photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.service-photo-item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.service-photo-del {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.service-photo-del:hover {
  background: #dc2626;
  color: #fff;
}

.admin-body {
  background: var(--cs-bg);
}

/* Takili Bootstrap perdesi (eski sekme / yenileme) */
body:not(.modal-open) .modal-backdrop {
  display: none !important;
  pointer-events: none !important;
}

.modal-backdrop.fade:not(.show) {
  display: none !important;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--cs-dark);
  color: #e2e8f0;
  padding: 1.25rem;
}

.admin-sidebar .brand {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.admin-sidebar .brand small {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.admin-sidebar .user-chip {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.admin-sidebar .user-chip span {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-sidebar .admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-sidebar nav a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(37, 99, 235, 0.25);
  color: #fff;
}

.admin-nav-group {
  margin-bottom: 0.15rem;
}

.admin-nav-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.admin-nav-group__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.admin-nav-group__chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.admin-nav-group.is-open .admin-nav-group__chevron {
  transform: rotate(180deg);
}

.admin-nav-group__items {
  display: none;
  padding-left: 0.35rem;
  margin-bottom: 0.15rem;
}

.admin-nav-group.is-open .admin-nav-group__items {
  display: block;
}

.admin-nav-group__items a {
  font-size: 0.92rem;
  padding-left: 0.95rem;
}

.admin-nav-logout {
  margin-top: 0.5rem;
  padding-top: 0.65rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
  padding: 1.25rem 1.5rem 2rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-top h1 {
  font-size: 1.5rem;
  margin: 0;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

.stat-card .label {
  color: var(--cs-muted);
  font-size: 0.85rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* Mobil/tablet: admin-mobile.css */
