/* ═══════════════════════════════════════════════
   USPAY — PREMIUM FINTECH DASHBOARD
   ═══════════════════════════════════════════════ */

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

:root {
  /* Renkler */
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --red-400:   #f87171;
  --red-500:   #ef4444;
  --yellow-400:#facc15;
  --orange-400:#fb923c;
  --purple-400:#c084fc;
  --cyan-400:  #22d3ee;

  /* Zemin */
  --bg-deep:   #00040f;
  --bg-base:   #020817;
  --bg-card:   #040d1f;
  --bg-card2:  #060f24;
  --bg-hover:  rgba(255,255,255,0.04);
  --bg-input:  rgba(255,255,255,0.05);

  /* Border */
  --border:    rgba(148,163,184,0.12);
  --border-md: rgba(148,163,184,0.2);
  --border-hi: rgba(59,130,246,0.4);

  /* Metin */
  --text:      #f1f5f9;
  --text-soft: #64748b;
  --text-muted:#334155;

  /* Glow efektleri */
  --glow-blue:  0 0 40px rgba(37,99,235,0.3);
  --glow-green: 0 0 40px rgba(34,197,94,0.2);
  --glow-red:   0 0 40px rgba(239,68,68,0.2);

  /* Geçiş */
  --t: all 0.2s cubic-bezier(0.4,0,0.2,1);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Sidebar genişliği */
  --sidebar-w: 260px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; }

/* ── BACKGROUND GLOW ── */
body::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════
   PROFİL SAYFASI
════════════════════════════════════════ */
.profil-avatar-wrap {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.profil-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #22c55e 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.profil-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.profil-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profil-info-item { display: flex; flex-direction: column; gap: 3px; }
.profil-info-key { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 5px; }
.profil-info-key i { font-size: 10px; }
.profil-info-val { font-size: 13px; color: var(--text); font-weight: 500; }

/* ════════════════════════════════════════
   LOGIN SAYFASI
════════════════════════════════════════ */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 20%, rgba(37,99,235,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(34,197,94,0.08) 0%, transparent 50%),
              var(--bg-deep);
}
.login-wrap { width: 100%; max-width: 420px; padding: 24px; }
.login-card {
  background: linear-gradient(145deg, rgba(4,13,31,0.95), rgba(2,6,23,0.98));
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
}
.login-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.login-logo-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  flex-shrink: 0;
}
.login-logo-text { display: flex; flex-direction: column; }
.login-logo-text span:first-child { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.login-logo-text span:last-child  { font-size: 12px; color: var(--text-soft); margin-top: 1px; }

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.layout { display: flex; width: 100%; min-height: 100vh; }

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #020c1e 0%, #010812 100%);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(59,130,246,0.3), transparent 40%, rgba(34,197,94,0.2) 80%, transparent);
  pointer-events: none;
}
.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8 0%, #22c55e 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.sidebar-title { display: flex; flex-direction: column; }
.sidebar-title span:first-child { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sidebar-title span:last-child  { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1px; }

.sidebar-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); padding: 8px 12px 4px;
  font-weight: 600;
}
.nav-list { list-style: none; }
.nav-item { margin-bottom: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text-soft); font-size: 13.5px; font-weight: 500;
  transition: var(--t); position: relative;
}
.nav-link i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-link span { flex: 1; }
.nav-link:hover { background: var(--bg-hover); color: var(--text); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(34,197,94,0.1));
  color: #fff;
  border: 1px solid rgba(59,130,246,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(37,99,235,0.15);
}
.nav-link.active i { color: var(--blue-500); }
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--blue-500);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red-500); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.sidebar-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
}
.sf-user { display: flex; align-items: center; gap: 10px; }
.sf-avatar {
  width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sf-info { display: flex; flex-direction: column; min-width: 0; }
.sf-info span:first-child { font-size: 13px; font-weight: 600; }
.sf-info span:last-child  { font-size: 10px; color: var(--text-soft); }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500); margin-left: auto;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.5} }
.sf-logout {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-soft); transition: var(--t);
}
.sf-logout:hover { color: var(--red-400); }

/* ════════════════════════════════════════
   MAIN
════════════════════════════════════════ */
.main { flex: 1; display: flex; flex-direction: column; padding: 20px; min-width: 0; overflow: hidden; }

/* ════════════════════════════════════════
   TOPBAR
════════════════════════════════════════ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-shrink: 0;
}
.topbar-left { display: flex; flex-direction: column; gap: 3px; }
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-title h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.tb-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: var(--text-soft); cursor: text;
  transition: var(--t); min-width: 200px;
}
.tb-search:hover { border-color: var(--border-md); }
.tb-search i { font-size: 12px; }

.tb-btn {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-soft); transition: var(--t);
  position: relative;
}
.tb-btn:hover { border-color: var(--border-md); color: var(--text); }
.tb-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500); border: 1px solid var(--bg-deep);
}

/* ── Notification Panel ── */
.notif-wrap { position: relative; }
.notif-dot-badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; border: 1.5px solid var(--bg-deep);
  animation: blink 1.5s infinite;
}
.notif-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-height: 420px;
  background: linear-gradient(145deg, #060f24, #040d1f);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  z-index: 500; overflow: hidden;
}
@keyframes slideDown { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: #cbd5e1;
  background: rgba(255,255,255,0.02);
}
.notif-clear-btn {
  font-size: 11px; color: var(--text-soft); background: none; border: none;
  cursor: pointer; padding: 3px 8px; border-radius: 5px; transition: var(--t);
}
.notif-clear-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.notif-items { overflow-y: auto; max-height: 360px; }
.notif-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px 20px; color: var(--text-muted); font-size: 12px;
}
.notif-empty-state i { font-size: 24px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(148,163,184,0.05);
  cursor: pointer; transition: var(--t);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item.read { opacity: 0.6; }
.notif-item-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.ni-green { background: rgba(34,197,94,0.12); color: #4ade80; }
.ni-red   { background: rgba(239,68,68,0.12); color: #f87171; }
.ni-blue  { background: rgba(59,130,246,0.12); color: #93c5fd; }
.ni-orange{ background: rgba(251,146,60,0.12); color: #fb923c; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.notif-item-time { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }

/* ── User Dropdown ── */
.user-menu-wrap { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px 5px 6px;
  transition: var(--t); cursor: pointer;
}
.user-chip:hover { border-color: var(--border-md); background: rgba(255,255,255,0.06); }
.user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 220px;
  background: linear-gradient(145deg, #060f24, #040d1f);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  z-index: 500; overflow: hidden;
}
.user-drop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: rgba(255,255,255,0.02);
}
.user-drop-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-drop-divider { height: 1px; background: var(--border); }
.user-drop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; font-size: 13px; color: var(--text-soft);
  transition: var(--t); cursor: pointer;
}
.user-drop-item:hover { background: var(--bg-hover); color: var(--text); }
.user-drop-item i { width: 16px; text-align: center; font-size: 13px; }
.user-drop-logout { color: #f87171; }
.user-drop-logout:hover { background: rgba(239,68,68,0.08); color: #f87171; }

/* Sidebar footer link */
.sf-user-link { text-decoration: none; transition: var(--t); border-radius: var(--r-sm); padding: 4px; margin: -4px; }
.sf-user-link:hover { background: rgba(255,255,255,0.04); }

.uc-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.uc-info { display: flex; flex-direction: column; line-height: 1.2; }
.uc-info span:first-child { font-size: 12px; font-weight: 600; }
.uc-info span:last-child  { font-size: 10px; color: var(--text-soft); }

.pill {
  font-size: 10px; padding: 2px 9px; border-radius: 999px;
  background: rgba(37,99,235,0.15); color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.2); font-weight: 500;
}
.topbar-left > span { font-size: 12px; color: var(--text-soft); }

/* ════════════════════════════════════════
   CONTENT AREA
════════════════════════════════════════ */
.content {
  flex: 1; border-radius: var(--r-xl);
  background: linear-gradient(145deg, rgba(4,13,31,0.9), rgba(2,6,23,0.95));
  border: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* ════════════════════════════════════════
   STAT KARTLARI
════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: var(--t);
}
.stat-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.stat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
}
.stat-card.sc-green::after  { background: linear-gradient(90deg, transparent, var(--green-500), transparent); }
.stat-card.sc-red::after    { background: linear-gradient(90deg, transparent, var(--red-500), transparent); }
.stat-card.sc-blue::after   { background: linear-gradient(90deg, transparent, var(--blue-500), transparent); }
.stat-card.sc-orange::after { background: linear-gradient(90deg, transparent, var(--orange-400), transparent); }

.stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.sc-green .stat-icon-wrap  { background: rgba(34,197,94,0.12);  color: var(--green-500); }
.sc-red   .stat-icon-wrap  { background: rgba(239,68,68,0.12);  color: var(--red-500); }
.sc-blue  .stat-icon-wrap  { background: rgba(59,130,246,0.12); color: var(--blue-500); }
.sc-orange .stat-icon-wrap { background: rgba(251,146,60,0.12); color: var(--orange-400); }

.stat-value {
  font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin: 4px 0 2px;
}
.stat-bottom { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.stat-delta { display: flex; align-items: center; gap: 3px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.delta-up   { background: rgba(34,197,94,0.12);  color: var(--green-500); }
.delta-down { background: rgba(239,68,68,0.12);  color: var(--red-500); }
.stat-delta-label { color: var(--text-soft); }

/* ════════════════════════════════════════
   KARTLAR
════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.card-header-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: #cbd5e1;
}
.card-header-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.chi-green { background: rgba(34,197,94,0.12);  color: var(--green-500); }
.chi-red   { background: rgba(239,68,68,0.12);  color: var(--red-500); }
.chi-blue  { background: rgba(59,130,246,0.12); color: var(--blue-500); }
.chi-orange{ background: rgba(251,146,60,0.12); color: var(--orange-400); }
.chi-purple{ background: rgba(192,132,252,0.12);color: var(--purple-400); }
.chi-cyan  { background: rgba(34,211,238,0.12); color: var(--cyan-400); }

.card-body { padding: 16px 18px; }
.card-body.p0 { padding: 0; }

/* ════════════════════════════════════════
   TABLO
════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 10px 14px; text-align: left;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255,255,255,0.01);
}
.table th.sortable:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.table th.sortable .sort-ind { font-size: 11px; margin-left: 3px; opacity: 0.7; }
.log-detail-row td { padding: 0 !important; }
.table th {
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  vertical-align: middle;
}
.table tbody tr { transition: var(--t); }
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }
.row-frozen { opacity: 0.45; }
.row-highlight td:first-child { border-left: 3px solid var(--orange-400); }
.row-new { animation: rowFlash 1.5s ease; }
@keyframes rowFlash { 0%,100%{background:transparent} 50%{background:rgba(34,197,94,0.08)} }

/* ════════════════════════════════════════
   BADGE'LER
════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bdg-green  { background: rgba(34,197,94,0.12);   color: #4ade80;  border: 1px solid rgba(34,197,94,0.2); }
.bdg-red    { background: rgba(239,68,68,0.12);   color: #f87171;  border: 1px solid rgba(239,68,68,0.2); }
.bdg-yellow { background: rgba(250,204,21,0.12);  color: #fde047;  border: 1px solid rgba(250,204,21,0.2); }
.bdg-blue   { background: rgba(59,130,246,0.12);  color: #93c5fd;  border: 1px solid rgba(59,130,246,0.2); }
.bdg-orange { background: rgba(251,146,60,0.12);  color: #fb923c;  border: 1px solid rgba(251,146,60,0.2); }
.bdg-purple { background: rgba(192,132,252,0.12); color: #c084fc;  border: 1px solid rgba(192,132,252,0.2); }
.bdg-gray   { background: rgba(100,116,139,0.12); color: #94a3b8;  border: 1px solid rgba(100,116,139,0.2); }
/* Eski isimlere alias */
.badge-success  { background: rgba(34,197,94,0.12);   color:#4ade80;  border:1px solid rgba(34,197,94,0.2);  border-radius:999px; }
.badge-danger   { background: rgba(239,68,68,0.12);   color:#f87171;  border:1px solid rgba(239,68,68,0.2);  border-radius:999px; }
.badge-warning  { background: rgba(250,204,21,0.12);  color:#fde047;  border:1px solid rgba(250,204,21,0.2); border-radius:999px; }
.badge-info     { background: rgba(59,130,246,0.12);  color:#93c5fd;  border:1px solid rgba(59,130,246,0.2); border-radius:999px; }
.badge-secondary{ background: rgba(100,116,139,0.12); color:#94a3b8;  border:1px solid rgba(100,116,139,0.2);border-radius:999px; }
/* Raporlar stat card aliases */
.stat-green .stat-value { color: #4ade80; }
.stat-red   .stat-value { color: #f87171; }
.stat-blue  .stat-value { color: #93c5fd; }
.stat-orange .stat-value { color: #fb923c; }
.stat-green .stat-icon { color: #4ade80; }
.stat-red   .stat-icon { color: #f87171; }
.stat-blue  .stat-icon { color: #93c5fd; }
.stat-orange .stat-icon { color: #fb923c; }

/* ════════════════════════════════════════
   BUTONLAR
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--t); text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}
.btn-success {
  background: rgba(34,197,94,0.15); color: var(--green-400);
  border: 1px solid rgba(34,197,94,0.25);
}
.btn-success:hover { background: rgba(34,197,94,0.25); transform: translateY(-1px); }
.btn-danger {
  background: rgba(239,68,68,0.15); color: var(--red-400);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); transform: translateY(-1px); }
.btn-warning {
  background: rgba(245,158,11,0.15); color: var(--yellow-400);
  border: 1px solid rgba(245,158,11,0.25);
}
.btn-warning:hover { background: rgba(245,158,11,0.25); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border-md); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: 6px; gap: 4px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 14px; }
.btn-group { display: flex; align-items: center; gap: 4px; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ════════════════════════════════════════
   FORM ELEMENTLERİ
════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: #94a3b8; margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  color: var(--text); font-size: 13px;
  outline: none; transition: var(--t);
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
select.form-control option { background: #0d1b2e; color: #e2e8f0; }
textarea.form-control { resize: vertical; min-height: 76px; }
.form-control-sm { padding: 7px 11px; font-size: 12px; border-radius: 7px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-span-2 { grid-column: span 2; }

.input-icon { position: relative; }
.input-icon i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; pointer-events: none; }
.input-icon .form-control { padding-left: 34px; }

.toggle-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-soft); cursor: pointer; user-select: none;
}
.toggle-label input[type=checkbox] {
  width: 14px; height: 14px; accent-color: var(--blue-500); cursor: pointer;
}

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,10,0.75); backdrop-filter: blur(6px);
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-box {
  background: linear-gradient(145deg, #050f26, #020c1e);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: slideUp 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(34,197,94,0.3), transparent);
}
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.modal-lg { max-width: 720px; }
.modal-sm { max-width: 420px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  background: rgba(255,255,255,0.02);
}
.modal-header button {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 7px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 14px; transition: var(--t);
}
.modal-header button:hover { background: rgba(239,68,68,0.15); color: var(--red-400); border-color: rgba(239,68,68,0.3); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
form > .form-grid-2, form > .form-group { padding: 0 20px; }
form > .form-grid-2:first-of-type, form > .form-group:first-of-type { padding-top: 18px; }

/* ════════════════════════════════════════
   HESAP SATIRLARI
════════════════════════════════════════ */
.hesap-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(148,163,184,0.06);
  transition: var(--t);
}
.hesap-row:last-child { border-bottom: none; }
.hesap-row:hover { background: var(--bg-hover); }
.hesap-row-left { display: flex; align-items: center; gap: 11px; }
.bank-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--blue-500); flex-shrink: 0;
}
.bank-icon-sm {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--blue-500); flex-shrink: 0;
}
.hesap-name { font-size: 13px; font-weight: 600; }
.hesap-sub  { font-size: 11px; color: var(--text-soft); margin-top: 1px; }
.hesap-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.limit-bar-wrap { width: 110px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.limit-bar { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.limit-bar-low  { background: linear-gradient(90deg, #22c55e, #4ade80); }
.limit-bar-med  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.limit-bar-high { background: linear-gradient(90deg, #ef4444, #f87171); }
.hesap-amounts  { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; }
.mini-bar-wrap  { width: 55px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini-bar       { height: 100%; background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444); border-radius: 999px; }
.bank-cell      { display: flex; align-items: center; gap: 9px; }

/* ════════════════════════════════════════
   SİTE SATIRLARI
════════════════════════════════════════ */
.site-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid rgba(148,163,184,0.06);
  transition: var(--t);
}
.site-row:last-child { border-bottom: none; }
.site-row:hover { background: var(--bg-hover); }
.site-name { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.site-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); flex-shrink: 0; }
.site-amounts { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; }
.site-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(59,130,246,0.1); color: #93c5fd;
  font-size: 11px; border: 1px solid rgba(59,130,246,0.15); font-weight: 500;
}

/* ════════════════════════════════════════
   ROL BADGE'LERİ
════════════════════════════════════════ */
.role-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.role-admin    { background: rgba(239,68,68,0.15);   color: #f87171;  border: 1px solid rgba(239,68,68,0.2); }
.role-direktor { background: rgba(250,204,21,0.12);  color: #fde047;  border: 1px solid rgba(250,204,21,0.2); }
.role-lider    { background: rgba(59,130,246,0.12);  color: #93c5fd;  border: 1px solid rgba(59,130,246,0.2); }
.role-ekip     { background: rgba(34,197,94,0.12);   color: #4ade80;  border: 1px solid rgba(34,197,94,0.2); }

/* ════════════════════════════════════════
   PAGE ACTIONS
════════════════════════════════════════ */
.page-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════
   API KEY WRAP
════════════════════════════════════════ */
.api-key-wrap { display: flex; align-items: center; gap: 5px; }
.btn-copy {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px 5px; font-size: 12px; transition: var(--t);
}
.btn-copy:hover { color: var(--text-soft); }

/* ════════════════════════════════════════
   LOG ACTION
════════════════════════════════════════ */
.log-action {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(99,102,241,0.1); color: #a5b4fc;
  font-size: 11px; font-family: 'Courier New', monospace;
  border: 1px solid rgba(99,102,241,0.15);
}

/* ════════════════════════════════════════
   USER CELL
════════════════════════════════════════ */
.user-cell { display: flex; align-items: center; gap: 9px; }
.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ════════════════════════════════════════
   ALERT
════════════════════════════════════════ */
.alert {
  padding: 11px 15px; border-radius: var(--r-sm);
  font-size: 13px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.alert-danger  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: #fcd34d; }
.alert-success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.2);  color: #bbf7d0; }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #bfdbfe; }

/* ════════════════════════════════════════
   TOAST BİLDİRİMLERİ
════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 13px 18px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 360px;
  animation: toastIn 0.25s cubic-bezier(0.4,0,0.2,1);
  pointer-events: all;
  backdrop-filter: blur(12px);
}
.toast-success { background: rgba(5,46,22,0.95); border: 1px solid rgba(22,101,52,0.6); color: #bbf7d0; }
.toast-error   { background: rgba(28,7,7,0.95);  border: 1px solid rgba(127,29,29,0.6); color: #fca5a5; }
.toast-warning { background: rgba(28,16,2,0.95); border: 1px solid rgba(120,53,15,0.6); color: #fde68a; }
.toast-info    { background: rgba(2,12,35,0.95); border: 1px solid rgba(30,58,138,0.6); color: #bfdbfe; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ════════════════════════════════════════
   GRID LAYOUT
════════════════════════════════════════ */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2col, .grid-3col { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   CHART CONTAINER
════════════════════════════════════════ */
.chart-wrap { position: relative; height: 200px; padding: 4px 0; }

/* ════════════════════════════════════════
   UTILS
════════════════════════════════════════ */
.text-green  { color: var(--green-500) !important; }
.text-red    { color: var(--red-500) !important; }
.text-blue   { color: var(--blue-500) !important; }
.text-orange { color: var(--orange-400) !important; }
.text-bold   { font-weight: 700; }
.text-soft   { color: var(--text-soft); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 12px; }
.text-xs     { font-size: 11px; }
.font-mono   { font-family: 'Courier New', monospace; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.empty-state { padding: 30px; text-align: center; color: var(--text-soft); font-size: 13px; }
.empty-state i { font-size: 28px; margin-bottom: 8px; display: block; opacity: 0.4; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.25); }

/* ════════════════════════════════════════
   SPARKLINE (mini trend)
════════════════════════════════════════ */
.sparkline-wrap { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.spark-bar { width: 6px; border-radius: 2px; background: rgba(34,197,94,0.4); transition: height 0.3s; }
.spark-bar:last-child { background: var(--green-500); }

/* ════════════════════════════════════════
   TX TİPİ İKONU
════════════════════════════════════════ */
.tx-type-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.tx-yatirim { background: rgba(34,197,94,0.12);  color: var(--green-500); }
.tx-cekim   { background: rgba(239,68,68,0.12);  color: var(--red-500); }

/* ════════════════════════════════════════
   SPLIT PANEL LAYOUT
════════════════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1200px) { .split-layout { grid-template-columns: 1fr; } }

.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: sticky;
  top: 16px;
  overflow: hidden;
}
.detail-panel-header {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex; justify-content: space-between; align-items: center;
}
.detail-panel-title { font-size: 13px; font-weight: 600; color: #cbd5e1; }
.detail-panel-type  { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 16px; border-bottom: 1px solid rgba(148,163,184,0.05);
  font-size: 12.5px; gap: 12px;
}
.detail-key { color: var(--text-muted); white-space: nowrap; flex-shrink: 0; padding-top: 1px; }
.detail-val { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }
.detail-actions {
  padding: 13px 16px; display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); background: rgba(255,255,255,0.01);
}
.detail-empty {
  padding: 52px 18px; text-align: center; color: var(--text-muted); font-size: 13px;
}
.detail-empty i { font-size: 30px; display: block; margin-bottom: 10px; opacity: 0.25; }
.row-selected td { background: rgba(37,99,235,0.07) !important; }
.table tbody tr { cursor: pointer; transition: background 0.12s; }
.table tbody tr:hover td { background: rgba(255,255,255,0.025); }

/* ════════════════════════════════════════
   KASA / TESLİMLER
════════════════════════════════════════ */
.kasa-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .kasa-stats { grid-template-columns: 1fr 1fr; } }
.kasa-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.kasa-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }
.kasa-stat-value { font-size: 22px; font-weight: 700; color: #f1f5f9; }
.kasa-stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.kasa-split { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kasa-split { grid-template-columns: 1fr; } }
.ozet-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 16px;
}
.ozet-header { padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); font-size: 13px; font-weight: 600; color: #cbd5e1; }
.ozet-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(148,163,184,0.05); font-size: 13px; }
.ozet-row-key { color: var(--text-muted); }
.ozet-row-val { font-weight: 600; }
.ozet-total { padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; margin: 0 12px 12px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.ozet-divider { height: 1px; background: var(--border-md); margin: 8px 16px; }

/* ════════════════════════════════════════
   KOMİSYON ORAN SATIRI (hesaplar)
════════════════════════════════════════ */
.komisyon-inline {
  display: inline-flex; align-items: center; gap: 5px;
}
.komisyon-inline input[type=number] {
  width: 64px; padding: 3px 6px; font-size: 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); text-align: right;
}
.komisyon-inline input[type=number]:focus { border-color: var(--blue-500); outline: none; }
.komisyon-save-btn {
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; border-radius: 6px; padding: 3px 7px; font-size: 11px; cursor: pointer;
  transition: var(--t);
}
.komisyon-save-btn:hover { background: rgba(34,197,94,0.3); }

/* ════════════════════════════════════════
   KASA TESLİM UYARI OVERLAY
════════════════════════════════════════ */
#kasa-uyari-overlay {
  align-items: center;
  justify-content: center;
}

@keyframes kasaUyariGiris {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes kasaUyariPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4), 0 0 60px rgba(239,68,68,0.15); }
  50%      { box-shadow: 0 0 0 12px rgba(239,68,68,0), 0 0 80px rgba(239,68,68,0.3); }
}
@keyframes kasaUyariIkon {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes kasaUyariGlow {
  0%,100% { text-shadow: 0 0 20px rgba(239,68,68,0.5); }
  50%      { text-shadow: 0 0 40px rgba(239,68,68,0.9), 0 0 80px rgba(239,68,68,0.4); }
}

.kasa-uyari-box {
  background: linear-gradient(160deg, #1a0a0a 0%, #130d1a 100%);
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  animation: kasaUyariGiris 0.4s cubic-bezier(0.34,1.56,0.64,1) both,
             kasaUyariPulse 2.5s ease-in-out 0.4s infinite;
}

.kasa-uyari-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: 2px solid rgba(239,68,68,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: kasaUyariIkon 2s ease-in-out infinite;
}
.kasa-uyari-icon i {
  font-size: 40px;
  color: #ef4444;
  animation: kasaUyariGlow 2s ease-in-out infinite;
}

.kasa-uyari-baslik {
  font-size: 26px;
  font-weight: 800;
  color: #ef4444;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.kasa-uyari-aciklama {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.kasa-uyari-tutar-wrap {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.kasa-uyari-tutar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.kasa-uyari-tutar-deger {
  font-size: 36px;
  font-weight: 800;
  color: #f87171;
  font-variant-numeric: tabular-nums;
}

.kasa-uyari-bant {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}
.bant-kirmizi {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
.bant-sari {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #fde68a;
}
.bant-kirmizi i, .bant-sari i { margin-right: 6px; }

.kasa-uyari-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin: 20px 0 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.kasa-uyari-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239,68,68,0.5);
  color: #fff;
}

.kasa-uyari-alt {
  color: #334155;
  font-size: 11px;
  margin: 0;
}

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

/* ════════════════════════════════════════
   DESIGN REFINEMENTS
════════════════════════════════════════ */

/* Sidebar: daha rafine logo alanı */
.sidebar-logo {
  background: linear-gradient(135deg, #1e40af 0%, #065f46 100%);
  box-shadow: 0 4px 20px rgba(30,64,175,0.45), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.sidebar-title span:first-child {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Nav link: daha belirgin active state */
.nav-link.active {
  background: linear-gradient(135deg, rgba(30,64,175,0.25), rgba(6,95,70,0.12));
  border-left: 3px solid #3b82f6;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding-left: 9px;
}
.nav-link.active::before { display: none; } /* eski indicator kaldırıldı */
.nav-link.active i { color: #60a5fa; }

/* Topbar: ince alt çizgi efekti */
.topbar { padding-bottom: 16px; border-bottom: 1px solid rgba(148,163,184,0.06); margin-bottom: 20px; }
.topbar-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: #f1f5f9; }
.topbar-left > span { font-size: 11px; color: #334155; margin-top: 2px; }

/* Stat kartları: daha minimal */
.stat-card {
  background: linear-gradient(145deg, rgba(6,15,36,0.9), rgba(4,11,28,0.95));
  border: 1px solid rgba(148,163,184,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.025) inset;
}
.stat-card:hover {
  border-color: rgba(148,163,184,0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.stat-label { font-size: 10.5px; letter-spacing: 0.08em; color: #475569; }
.stat-value { font-size: 24px; font-weight: 800; }

/* Kart: daha incelikli kenarlık */
.card {
  background: linear-gradient(160deg, rgba(5,12,28,0.95), rgba(3,9,21,0.98));
  border: 1px solid rgba(148,163,184,0.09);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(148,163,184,0.14); }
.card-header { background: rgba(255,255,255,0.015); padding: 13px 16px; }
.card-header-title { font-size: 13px; color: #cbd5e1; }

/* Tablo: daha temiz satırlar */
.table th {
  font-size: 10px; letter-spacing: 0.1em; color: #64748b;
  padding: 9px 14px; background: rgba(255,255,255,0.008);
}
.table td { padding: 10px 14px; color: #cbd5e1; }
.table tbody tr:hover { background: rgba(255,255,255,0.025); }

/* Badge: küçük font refinement */
.badge { font-size: 10.5px; padding: 2px 8px; }

/* Content alan: biraz daha az padding */
.content { padding: 18px; }

/* Site-badge refinement */
.site-badge {
  display: inline-flex; padding: 2px 8px;
  background: rgba(99,102,241,0.08); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.15); border-radius: 5px;
  font-size: 11px; font-weight: 500;
}


/* ── KASA DOLULUK UYARI ŞERIDI ───────────────────────── */
#kasa-bar-wrap {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  background: linear-gradient(90deg, rgba(245,158,11,0.12), rgba(239,68,68,0.10));
  border-bottom: 1px solid rgba(245,158,11,0.3);
  backdrop-filter: blur(6px);
  padding: 0 20px;
  align-items: center;
}
#kasa-bar-inner {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 9px 0; font-size: 13px; color: #fde68a;
}
#kasa-bar-text { flex: 1; font-weight: 500; }
#kasa-bar-track {
  width: 140px; height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden; flex-shrink: 0;
}
#kasa-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.4s ease, background 0.4s;
}
#kasa-bar-btn {
  padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
#kasa-bar-btn:hover { background: rgba(245,158,11,0.35); }

/* ════════════════════════════════════════
   MOBİL — SIDEBAR OVERLAY BACKDROP
════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  animation: fadeIn 0.2s ease;
}
.sidebar-overlay.active { display: block; }

/* ════════════════════════════════════════
   HAMBURGer BUTONU
════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 9px;
  align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 15px;
  flex-shrink: 0;
  transition: var(--t);
}
.hamburger-btn:hover { border-color: var(--border-md); color: var(--text); background: rgba(255,255,255,0.07); }

/* ════════════════════════════════════════
   MOBİL — TABLET ( ≤ 768px )
════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Layout: sidebar fixed'tan çıkınca main tam genişlik alır ── */
  .layout { display: block; }

  /* ── Sidebar: off-canvas drawer ── */
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: none;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.7);
  }

  /* ── Main area: tam genişlik ── */
  .main { width: 100%; padding: 10px; }

  /* ── Content ── */
  .content { padding: 14px; border-radius: var(--r-md); }

  /* ── Hamburger görünür ── */
  .hamburger-btn { display: flex; }

  /* ── Topbar ── */
  .topbar {
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    align-items: center;
    border-bottom: 1px solid rgba(148,163,184,0.08);
  }
  .topbar-left { gap: 1px; min-width: 0; flex: 1; overflow: hidden; }
  .topbar-left > span { display: none; }
  .topbar-title { gap: 6px; align-items: center; }
  .topbar-title h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .topbar-title .pill { display: none; }
  .topbar-right { gap: 6px; flex-shrink: 0; align-items: center; }

  /* ── User chip: sadece avatar ── */
  .uc-info { display: none; }
  .user-chip { padding: 5px 8px 5px 6px; gap: 0; }
  .user-chip i.fa-chevron-down { display: none; }

  /* ── Bekleyen badge: kompakt ── */
  #bekleyen-badge { padding: 5px 10px !important; font-size: 11px !important; }

  /* ── Bildirim paneli: bottom sheet ── */
  .notif-panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.8);
  }
  .notif-items { max-height: calc(70vh - 50px); }

  /* ── User dropdown: kısaltılmış ── */
  .user-dropdown { width: 200px; }

  /* ── Stats grid: 2 sütun ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .stat-value { font-size: 19px; }
  .stat-card { padding: 13px 15px; }

  /* ── Kasa stats ── */
  .kasa-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kasa-split { grid-template-columns: 1fr; }
  .ozet-panel { position: static; }

  /* ── Form grid: tek sütun ── */
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: span 1; }

  /* ── Modals: bottom sheet ── */
  .modal { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    max-width: 100%;
    width: 100%;
  }
  .modal-lg, .modal-sm { max-width: 100%; }

  /* ── Tablo ── */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table th { padding: 8px 10px; font-size: 9.5px; }
  .table td { padding: 9px 10px; font-size: 12px; }

  /* ── Hesaplar: kart düzeni ── */
  #hesaplar-table thead { display: none; }

  #hesaplar-table .hesap-row {
    display: block;
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 12px;
    margin: 0 0 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
  }
  #hesaplar-table .hesap-row:hover { background: rgba(255,255,255,0.03); }

  #hesaplar-table .hesap-row td {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.06);
    font-size: 12.5px;
    white-space: normal;
  }
  #hesaplar-table .hesap-row td:last-child { border-bottom: none; }

  #hesaplar-table .hesap-row td::before {
    content: attr(data-label);
    min-width: 62px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
  }

  /* Banka hücresi: başlık gibi, label yok */
  #hesaplar-table .hesap-row td:first-child {
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    font-size: 13px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(148,163,184,0.1);
  }
  #hesaplar-table .hesap-row td:first-child::before { display: none; }

  /* İşlem butonu hücresi: label gizle, butonlar wrap */
  #hesaplar-table .hesap-row td[data-label="İşlem"]::before { display: none; }
  #hesaplar-table .hesap-row td[data-label="İşlem"] .btn-group {
    display: flex; flex-wrap: wrap; gap: 6px; width: 100%;
  }
  #hesaplar-table .hesap-row td[data-label="İşlem"] .btn-group .btn {
    flex: 1; min-width: 44px; justify-content: center;
  }

  /* Mini bar: tam genişlik */
  #hesaplar-table .hesap-row .mini-bar-wrap { flex: 1; max-width: 140px; }

  /* ── Sayfa aksiyonları ── */
  .page-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-row { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }

  /* ── Split panel ── */
  .split-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }

  /* ── Grid yardımcıları ── */
  .grid-2col, .grid-3col { grid-template-columns: 1fr; gap: 12px; }

  /* ── Hesap satırları ── */
  .hesap-row { flex-wrap: wrap; gap: 8px; }
  .hesap-row-right { width: 100%; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .limit-bar-wrap { width: 80px; }

  /* ── Profil sayfası ── */
  .profil-info-grid { grid-template-columns: 1fr; }
  .profil-avatar-wrap { flex-direction: column; align-items: flex-start; }

  /* ── Kasa uyarı bar ── */
  #kasa-bar-inner { flex-wrap: wrap; gap: 6px; padding: 8px 0; font-size: 12px; }
  #kasa-bar-track { width: 70px; }

  /* ── Toast ── */
  #toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: unset; max-width: 100%; }

  /* ── Btn group on mobile ── */
  .btn-group { flex-wrap: wrap; }
}

/* ════════════════════════════════════════
   MOBİL — KÜÇÜK EKRAN ( ≤ 480px )
════════════════════════════════════════ */
@media (max-width: 480px) {
  .main { padding: 8px; }
  .content { padding: 12px; }

  /* Stats: tek sütun */
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .kasa-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat-value { font-size: 18px; }
  .stat-card { padding: 12px 14px; }

  /* Topbar başlık */
  .topbar-title h1 { font-size: 14px; }

  /* Modal form padding küçültme */
  form > .form-grid-2,
  form > .form-group { padding: 0 14px; }
  form > .form-grid-2:first-of-type,
  form > .form-group:first-of-type { padding-top: 14px; }
  .modal-header { padding: 12px 16px; }
  .modal-footer { padding: 10px 16px; }

  /* Bekleyen badge: sadece ikon */
  #bekleyen-count { display: none; }

  /* Kasa uyarı kutusu */
  .kasa-uyari-box { padding: 28px 20px 24px; }
  .kasa-uyari-baslik { font-size: 20px; }
  .kasa-uyari-tutar-deger { font-size: 28px; }
  .kasa-uyari-icon { width: 68px; height: 68px; }
  .kasa-uyari-icon i { font-size: 30px; }
}
