/* ============================================================
   TFNUYSP KONTROL PANELİ — ANA STİL DOSYASI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Rajdhani:wght@600;700&display=swap');

/* ============================================================
   CSS DEĞİŞKENLERİ (TOKEN SİSTEMİ)
   ============================================================ */
:root {
  /* Renkler */
  --bg-primary:     #050508;
  --bg-sidebar:     #07070e;
  --bg-card:        #0c0c1a;
  --bg-card-hover:  #0f0f20;
  --bg-input:       #0a0a16;
  --bg-modal:       #0e0e1c;

  /* Neon Renkler */
  --neon-red:       #ff2244;
  --neon-red-dim:   rgba(255, 34, 68, 0.15);
  --neon-red-glow:  rgba(255, 34, 68, 0.4);
  --neon-blue:      #00c3ff;
  --neon-blue-dim:  rgba(0, 195, 255, 0.12);
  --neon-blue-glow: rgba(0, 195, 255, 0.3);
  --neon-green:     #00ff88;
  --neon-green-dim: rgba(0, 255, 136, 0.12);
  --neon-purple:    #b44fff;
  --neon-yellow:    #ffcc00;
  --neon-orange:    #ff8800;

  /* Yazı */
  --text-primary:   #f0f0f8;
  --text-secondary: #9090b8;
  --text-muted:     #5a5a7a;
  --text-white:     #ffffff;

  /* Kenarlıklar */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-card:    rgba(255, 255, 255, 0.08);
  --border-red:     rgba(255, 34, 68, 0.3);
  --border-blue:    rgba(0, 195, 255, 0.2);

  /* Boyutlar */
  --sidebar-width:  260px;
  --sidebar-collapsed: 68px;
  --topbar-height: 64px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  /* Animasyonlar */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;
}

/* ============================================================
   SIFIRLA & TEMEL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Neon Kareli Grid Arka Plan */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 195, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 195, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 60s linear infinite;
}

/* Köşe Neon Glow'ları */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 0% 0%, rgba(255, 34, 68, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 500px 600px at 100% 100%, rgba(0, 195, 255, 0.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}

/* ============================================================
   LAYOUT — ANA YAPI
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-red);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-normal);
  overflow: hidden;
}

/* Sidebar Sol Neon Çizgisi */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--neon-red) 20%,
    rgba(255, 34, 68, 0.3) 50%,
    var(--neon-red) 80%,
    transparent 100%
  );
  animation: sidebarGlow 4s ease-in-out infinite alternate;
}

@keyframes sidebarGlow {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Logo Alanı */
.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.logo-tf {
  color: var(--neon-red);
  text-shadow: 0 0 20px var(--neon-red-glow), 0 0 40px rgba(255, 34, 68, 0.2);
}

.logo-nuysp {
  color: var(--text-white);
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* Navigasyon */
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-red); border-radius: 2px; }

.nav-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px 6px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 34, 68, 0.4);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 34, 68, 0.14) 0%, transparent 100%);
  border-left-color: var(--neon-red);
  color: var(--text-white);
}

.nav-item.active .nav-icon {
  color: var(--neon-red);
  filter: drop-shadow(0 0 6px var(--neon-red-glow));
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-item:hover .nav-icon {
  color: var(--text-primary);
}

.nav-label {
  font-size: 13.5px;
  font-weight: 500;
}

.nav-badge {
  margin-left: auto;
  background: var(--neon-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Kullanıcı Alanı (Alt) */
.sidebar-user {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--radius-md);
  margin: 8px;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-red), rgba(180, 79, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--neon-red);
  font-weight: 500;
}

.user-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   ANA İÇERİK ALANI
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-height);
  background: rgba(7, 7, 14, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  flex: 1;
}

.topbar-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.topbar-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.topbar-search {
  position: relative;
  width: 280px;
}

.topbar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 16px 8px 38px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition-fast);
}

.topbar-search input:focus {
  border-color: rgba(0, 195, 255, 0.4);
  background: rgba(0, 195, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.1);
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-search .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.topbar-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--neon-red);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

.kur-display {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-green);
  cursor: default;
  white-space: nowrap;
}

.kur-display span { color: var(--text-muted); font-size: 10px; margin-right: 4px; }

/* ============================================================
   İÇERİK ALANI
   ============================================================ */
.page-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* ============================================================
   STAT KARTLARI
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--neon-red)), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--card-glow, rgba(255, 34, 68, 0.1));
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-body { flex: 1; min-width: 0; }

.stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-value-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.stat-change.positive { color: var(--neon-green); }
.stat-change.negative { color: var(--neon-red); }
.stat-change.neutral  { color: var(--text-muted); }

.stat-change svg { width: 12px; height: 12px; }

/* Stat Kart Renk Varyantları */
.stat-card--red   { --card-accent: var(--neon-red);    --card-glow: rgba(255, 34, 68, 0.12); }
.stat-card--blue  { --card-accent: var(--neon-blue);   --card-glow: rgba(0, 195, 255, 0.12); }
.stat-card--green { --card-accent: var(--neon-green);  --card-glow: rgba(0, 255, 136, 0.1); }
.stat-card--purple{ --card-accent: var(--neon-purple); --card-glow: rgba(180, 79, 255, 0.1); }
.stat-card--orange{ --card-accent: var(--neon-orange); --card-glow: rgba(255, 136, 0, 0.1); }

.stat-icon--red    { background: rgba(255, 34, 68, 0.15);    color: var(--neon-red); }
.stat-icon--blue   { background: rgba(0, 195, 255, 0.12);   color: var(--neon-blue); }
.stat-icon--green  { background: rgba(0, 255, 136, 0.12);   color: var(--neon-green); }
.stat-icon--purple { background: rgba(180, 79, 255, 0.12);  color: var(--neon-purple); }
.stat-icon--orange { background: rgba(255, 136, 0, 0.12);   color: var(--neon-orange); }

/* ============================================================
   İÇERİK GRID
   ============================================================ */
.content-grid {
  display: grid;
  gap: 20px;
}

.content-grid--2col { grid-template-columns: 1fr 1fr; }
.content-grid--3col { grid-template-columns: 2fr 1fr; }

/* ============================================================
   PANEL / KART BÖLÜMÜ
   ============================================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-body { padding: 20px 22px; }

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn--primary {
  background: var(--neon-red);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 34, 68, 0.3);
}

.btn--primary:hover {
  background: #ff3355;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 34, 68, 0.45);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 7px 12px;
}

.btn--ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--sm svg { width: 13px; height: 13px; }

.btn--danger { background: rgba(255, 34, 68, 0.15); color: var(--neon-red); border: 1px solid rgba(255,34,68,0.3); }
.btn--danger:hover { background: rgba(255, 34, 68, 0.25); }

.btn--success { background: rgba(0, 255, 136, 0.12); color: var(--neon-green); border: 1px solid rgba(0,255,136,0.3); }

/* ============================================================
   TABLO
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

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

.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.data-table tbody td {
  padding: 12px 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody td:first-child { color: var(--text-primary); font-weight: 500; }

.td-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.td-amount-usd { color: var(--neon-blue); font-family: 'JetBrains Mono', monospace; }
.td-amount-try { color: var(--neon-green); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }

/* ============================================================
   DURUM BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge--completed {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}
.badge--completed::before { background: var(--neon-green); }

.badge--pending {
  background: rgba(255, 204, 0, 0.1);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 204, 0, 0.2);
}
.badge--pending::before { background: var(--neon-yellow); animation: pulse 1.5s infinite; }

.badge--cancelled {
  background: rgba(255, 34, 68, 0.1);
  color: var(--neon-red);
  border: 1px solid rgba(255, 34, 68, 0.2);
}
.badge--cancelled::before { background: var(--neon-red); }

.badge--processing {
  background: rgba(0, 195, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 195, 255, 0.2);
}
.badge--processing::before { background: var(--neon-blue); animation: pulse 1.5s infinite; }

.badge--income {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge--expense {
  background: rgba(255, 34, 68, 0.1);
  color: var(--neon-red);
  border: 1px solid rgba(255, 34, 68, 0.2);
}

/* ============================================================
   FORM ELEMANLARı
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.1);
  background: rgba(0, 195, 255, 0.04);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select option { background: var(--bg-modal); color: var(--text-primary); }

.form-textarea { resize: vertical; min-height: 80px; }

.input-group {
  display: flex;
  gap: 12px;
}

.input-group .form-group { flex: 1; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover { background: rgba(255,34,68,0.15); color: var(--neon-red); }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   GRAFIK CONTAINER
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
}

/* ============================================================
   FİLTRE ÇUBUĞU
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 140px;
  padding: 8px 12px;
}

.filter-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ============================================================
   BOŞ DURUM
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p { font-size: 14px; }

/* ============================================================
   YÜKLENİYOR
   ============================================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--neon-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* ============================================================
   TOAST BİLDİRİMLER
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease;
  font-size: 13px;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast.fade-out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}

.toast--success { border-left: 3px solid var(--neon-green); }
.toast--error   { border-left: 3px solid var(--neon-red); }
.toast--info    { border-left: 3px solid var(--neon-blue); }
.toast--warning { border-left: 3px solid var(--neon-yellow); }

.toast-icon { width: 16px; height: 16px; flex-shrink: 0; }
.toast--success .toast-icon { color: var(--neon-green); }
.toast--error   .toast-icon { color: var(--neon-red); }
.toast--info    .toast-icon { color: var(--neon-blue); }
.toast--warning .toast-icon { color: var(--neon-yellow); }

/* ============================================================
   PAGİNATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.page-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-primary); }
.page-btn.active { background: var(--neon-red); color: white; border-color: var(--neon-red); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================================================
   GİRİŞ SAYFASI
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 34, 68, 0.06);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-red), var(--neon-blue), transparent);
  animation: loginBorder 3s ease-in-out infinite;
}

@keyframes loginBorder {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-text {
  font-size: 36px;
  display: block;
}

.login-logo .logo-subtitle {
  display: block;
  margin-top: 8px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-white);
}

.login-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition-fast);
}

.password-toggle:hover { color: var(--text-primary); }

.login-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-red), #cc0033);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 20px;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 25px rgba(255, 34, 68, 0.35);
  letter-spacing: 0.5px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(255, 34, 68, 0.5);
}

.login-btn:active { transform: translateY(0); }

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  background: rgba(255, 34, 68, 0.1);
  border: 1px solid rgba(255, 34, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--neon-red);
  margin-top: 12px;
  display: none;
}

.login-error.visible { display: block; }

.login-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   YARDIMCI SINIFLAR
   ============================================================ */
.text-red    { color: var(--neon-red); }
.text-blue   { color: var(--neon-blue); }
.text-green  { color: var(--neon-green); }
.text-yellow { color: var(--neon-yellow); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--text-white); }
.text-mono   { font-family: 'JetBrains Mono', monospace; }
.text-right  { text-align: right; }
.text-center { text-align: center; }

.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }

.w-full { width: 100%; }

/* Top Ürünler Listesi */
.top-products-list { display: flex; flex-direction: column; gap: 0; }

.top-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.top-product-item:last-child { border-bottom: none; }
.top-product-item:hover { padding-left: 6px; }

.product-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-rank--1 { background: rgba(255, 204, 0, 0.15); color: var(--neon-yellow); }
.product-rank--2 { background: rgba(200, 200, 200, 0.1); color: #c0c0c0; }
.product-rank--3 { background: rgba(255, 136, 0, 0.12); color: var(--neon-orange); }

.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-sales { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.product-amount { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--neon-red); font-weight: 600; white-space: nowrap; }

.prod-img-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar Genel */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* API Hata Bildirimi */
.api-warning {
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--neon-yellow);
  margin-bottom: 20px;
}

.api-warning svg { width: 16px; height: 16px; flex-shrink: 0; }
