/* ==========================================================================
   AYŞENUR ATAÇ - YÖNETİM PANELİ (ADMIN DASHBOARD) STİLLERİ
   Konsept: Lüks, Modern Estetik, Rose/Blush Pembe & Koyu Kömür Kontrastı
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --admin-bg: #F8FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-sidebar-bg: #111827;
  --admin-sidebar-hover: #1F2937;
  --admin-text-main: #1F2937;
  --admin-text-muted: #64748B;
  --admin-border: #E2E8F0;
  
  --admin-pink: #EC4899;
  --admin-pink-light: #FDF2F8;
  --admin-rose: #F43F5E;
  --admin-rose-dark: #BE123C;
  --admin-accent-grad: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  --admin-gold: #F59E0B;
  --admin-green: #10B981;
  --admin-blue: #3B82F6;
  --admin-indigo: #6366F1;
  
  --font-brand: 'Cinzel', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px -2px rgba(0,0,0,0.07);
  --shadow-lg: 0 14px 28px -4px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px rgba(244, 63, 94, 0.18);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   1. GİRİŞ & KİLİT EKRANI (AUTH LOCK SCREEN)
   ========================================================================== */
.admin-lock-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(253, 242, 248, 0.95), rgba(248, 250, 252, 1) 90%), url('../images/nail_babyboomer.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.admin-lock-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.15);
  text-align: center;
  animation: fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-lock-logo {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.admin-lock-logo span {
  color: var(--admin-rose);
}

.admin-lock-subtitle {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.admin-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--admin-pink-light);
  color: var(--admin-rose-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   2. ANA PANEL YERLEŞİMİ (LAYOUT: SIDEBAR + MAIN)
   ========================================================================== */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar-bg);
  color: #F9FAFB;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--admin-accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  flex-shrink: 0;
}

.admin-brand-text h3 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  margin: 0;
  color: white;
}

.admin-brand-text span {
  font-size: 0.72rem;
  color: var(--admin-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  font-weight: 600;
}

.admin-nav {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9CA3AF;
  padding: 10px 12px 6px;
  font-weight: 700;
}

.admin-nav-item {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font-sans);
  text-align: left;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #D1D5DB;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 5px;
  cursor: pointer;
}

.admin-nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.admin-nav-item:hover {
  background: var(--admin-sidebar-hover);
  color: white;
}

.admin-nav-item:hover i {
  color: var(--admin-pink);
}

.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.22) 0%, rgba(244, 63, 94, 0.1) 100%);
  color: #FFFFFF;
  border-color: rgba(236, 72, 153, 0.45);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.12);
}

.admin-nav-item.active i {
  color: var(--admin-rose);
}

.nav-badge {
  background: var(--admin-rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.admin-sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--admin-accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-user-details h5 {
  font-size: 0.88rem;
  color: white;
  margin: 0;
}

.admin-user-details span {
  font-size: 0.74rem;
  color: #9CA3AF;
}

/* Main Area */
.admin-main {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.admin-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sidebar-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--admin-text-main);
  cursor: pointer;
}

.page-title-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.system-status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 1.8s infinite;
}

/* Content Body */
.admin-content {
  padding: 28px;
  flex: 1;
}

/* Sections View Switcher */
.admin-view-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-view-pane.active {
  display: block;
}

/* ==========================================================================
   3. KARTLAR & METRİKLER (KPI & STATS)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(236, 72, 153, 0.3);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--admin-accent-grad);
}

.stat-content h6 {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-subtext {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.pink { background: #FDF2F8; color: var(--admin-pink); }
.stat-icon.green { background: #ECFDF5; color: var(--admin-green); }
.stat-icon.rose { background: #FFF1F2; color: var(--admin-rose); }
.stat-icon.blue { background: #EFF6FF; color: var(--admin-blue); }
.stat-icon.purple { background: #F5F3FF; color: var(--admin-indigo); }

/* ==========================================================================
   4. KUTULAR, FORMLAR & TABLOLAR (ADMIN UI COMPONENTS)
   ========================================================================== */
.admin-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}

.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #FAFBFD;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-body {
  padding: 24px;
}

/* Tablolar */
.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.6px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #FFF9FA;
}

/* Rozetler (Badges) */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-onay { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.badge-tamam { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-iptal { background: #FFF1F2; color: #B91C1C; border: 1px solid #FECDD3; }
.badge-bekleme { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

.badge-package-tekli {
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-package-coklu {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-visits {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-status-generic {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-block;
}

/* Form Elemanları */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group .form-hint {
  font-size: 0.76rem;
  color: #6B7280;
  margin-top: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--admin-accent-grad);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35);
}

.btn-outline {
  background: white;
  color: #374151;
  border-color: var(--admin-border);
}

.btn-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-danger {
  background: #EF4444;
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-danger-outline {
  background: #FFFFFF;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

.btn-danger-outline:hover {
  background: #FFF1F2;
  border-color: #FDA4AF;
  color: #BE123C;
}

.btn-success {
  background: #10B981;
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-success-outline {
  background: #FFFFFF;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.btn-success-outline:hover {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #047857;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.74rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-admin-logout {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-admin-logout:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.6);
  color: #FFFFFF;
}

.auth-error-banner {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-pink { color: var(--admin-rose) !important; }
.text-success { color: var(--admin-green) !important; }
.text-danger { color: #EF4444 !important; }
.text-muted { color: var(--admin-text-muted) !important; }
.font-bold { font-weight: 700 !important; }

.app-main-admin {
  min-height: 100vh;
  width: 100%;
  background: var(--admin-bg);
  position: relative;
  z-index: 10;
}

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

@media (max-width: 992px) {
  .admin-sidebar-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }
}

/* ==========================================================================
   5. SLOT MATRİSİ & TAKVİM YÖNETİMİ
   ========================================================================== */
.slots-day-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1450px) {
  .slots-day-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .slots-day-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .slots-day-grid {
    grid-template-columns: 1fr;
  }
}

.admin-slot-card {
  background: #FFFFFF;
  border: 1.5px solid var(--admin-border);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.admin-slot-card.available {
  border-color: #A7F3D0;
  background: #F8FDFB;
}

.admin-slot-card.booked {
  border-color: #FECDD3;
  background: #FFF8F9;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.06);
}

.admin-slot-card.blocked {
  border-color: #E2E8F0;
  background: #F1F5F9;
  opacity: 0.85;
}

.admin-slot-time {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.admin-slot-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.admin-slot-card.available .admin-slot-status { color: #059669; }
.admin-slot-card.booked .admin-slot-status { color: #E11D48; }
.admin-slot-card.blocked .admin-slot-status { color: #64748B; }

.admin-slot-client {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

/* ==========================================================================
   6. MODALLAR & DANIŞAN GEÇMİŞİ (2 YILLIK TIMELINE)
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-container {
  width: 100%;
  max-width: 720px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative !important;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFBFD;
  position: relative !important;
  flex-shrink: 0;
}

.admin-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.admin-modal-close-btn,
.admin-modal-container .modal-close-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  font-size: 1.1rem !important;
  transform: none !important;
}

.admin-modal-close-btn:hover,
.admin-modal-container .modal-close-btn:hover {
  background: #FEE2E2 !important;
  color: #EF4444 !important;
  border-color: #FCA5A5 !important;
  transform: rotate(90deg) !important;
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #FAFBFD;
  flex-shrink: 0;
}

/* 2 Yıllık Müşteri Çizelgesi (Timeline) */
.timeline-container {
  position: relative;
  padding-left: 28px;
  margin-top: 18px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 9px;
  width: 2px;
  background: #E2E8F0;
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--admin-rose);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-card {
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.timeline-card-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

/* 5 Yıllık Danışan Geçmişi & Profil Kartı Stilleri */
.customer-avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--admin-accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.3);
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.year-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.year-pill-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-pill-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.year-pill-btn.active {
  background: var(--admin-accent-grad);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.25);
}

.timeline-badge-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.customer-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--admin-accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
}

.client-kpi-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .client-kpi-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .client-kpi-banner {
    grid-template-columns: 1fr;
  }
}

.client-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.client-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.client-stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .client-stats-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-stats-mini-card {
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.client-stats-mini-card .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  display: block;
}

.client-stats-mini-card .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  display: block;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.verified-pill.yes {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.verified-pill.no {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   7. ÖDEME & ENTEGRASYON KARTLARI (İYZİCO VS PAYTR)
   ========================================================================== */
.gateway-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.gateway-card {
  border: 2px solid var(--admin-border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.gateway-card:hover {
  border-color: var(--admin-pink);
}

.gateway-card.active {
  border-color: var(--admin-rose);
  background: #FFF9FA;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.12);
}

.gateway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gateway-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gateway-badge {
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   8. TOAST BİLDİRİMLERİ & ANİMASYONLAR
   ========================================================================== */
#adminToastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-toast {
  background: #111827;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.admin-toast.success { border-left: 4px solid var(--admin-green); }
.admin-toast.warning { border-left: 4px solid var(--admin-gold); }
.admin-toast.error { border-left: 4px solid var(--admin-rose); }
.admin-toast.info { border-left: 4px solid var(--admin-blue); }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .slots-day-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gateway-select-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .slots-day-grid {
    grid-template-columns: 1fr;
  }
  .admin-content {
    padding: 16px;
  }
}
