/* ═══════════════════════════════════════════════════════════════════
   FisBot v5.0 — styles.css
   Tema: Mat & Pastel — #f4f3ee · #b1ada1 · sisli beyaz · pastel kırmızı
═══════════════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── RENK DEĞİŞKENLERİ ───────────────────────────────────────────── */
:root {
  /* Ana Arka Plan & Yüzeyler */
  --bg:          #f4f3ee;          /* krem beyaz zemin */
  --surface:     #faf9f7;          /* hafif sisli beyaz kart */
  --surface-2:   #f0eeea;          /* biraz daha koyu yüzey */

  /* Kenarlıklar */
  --border:      rgba(177,173,161,0.35);
  --border-hi:   rgba(177,173,161,0.6);

  /* Vurgu */
  --accent:      rgb(183,12,23);
  --accent-hi:   rgb(210,30,42);
  --accent-soft: rgba(183,12,23,0.08);

  /* Durum Renkleri */
  --success:     #6a9e7f;          /* mat yeşil */
  --warning:     #c4924a;          /* mat amber */
  --danger:      rgb(183,12,23);

  /* Metin */
  --text:        #2c2a27;          /* koyu kahve-siyah */
  --muted:       #b1ada1;          /* orta gri-bej */
  --subtle:      #e8e6e1;          /* açık bej */

  /* Gölge */
  --shadow-sm:   0 1px 3px rgba(44,42,39,0.08);
  --shadow-md:   0 4px 16px rgba(44,42,39,0.10);
  --shadow-lg:   0 8px 32px rgba(44,42,39,0.12);
}

/* ── TEMEL ───────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* login sayfası overflow gizli */
body.login-page {
  overflow: hidden;
}

/* ── SCROLLBAR ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 10px; opacity: 0.5; }

/* ── ARKA PLAN DOKU ──────────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(177,173,161,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177,173,161,0.18) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Login sayfası için parlak alan */
.bg-glow {
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 7s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,243,238,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.nav-logo {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: -0.05em;
  box-shadow: 0 2px 8px rgba(192,57,43,0.25);
}

.nav-title {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--text);
}

.nav-title span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-user {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
}

.nav-session-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
}

.nav-session-badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  animation: blink 2s ease-in-out infinite;
}

.btn-logout {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-logout:hover {
  color: var(--danger);
  border-color: rgba(192,57,43,0.3);
  background: rgba(192,57,43,0.04);
}

/* ── ANA İÇERİK ──────────────────────────────────────────────────── */
.main {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 2rem;
}

/* ── İSTATİSTİK KARTLARI ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
}

.stat-card-value {
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: 0em; color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.3s;
}

.stat-card-sub {
  font-size: 10px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.stat-card.accent .stat-card-value { color: var(--accent); }
.stat-card.success .stat-card-value { color: var(--success); }
.stat-card.warning .stat-card-value { color: var(--warning); }

/* ── ÜST PANEL ───────────────────────────────────────────────────── */
.top-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem; margin-bottom: 1.5rem;
}

/* ── KART GENEL ──────────────────────────────────────────────────── */
.upload-card, .action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.action-card {
  display: flex; flex-direction: column; gap: 10px;
}

.card-eyebrow {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
}

.card-eyebrow::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%; background: var(--accent);
}

/* ── DROP ZONE ───────────────────────────────────────────────────── */
.drop-zone {
  border: 1.5px dashed var(--border-hi);
  border-radius: 12px; padding: 2rem;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: var(--bg);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-zone input { display: none; }

.drop-icon {
  width: 44px; height: 44px;
  background: var(--subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

.drop-title {
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}

.drop-sub {
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── FILE CHIPS ──────────────────────────────────────────────────── */
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }

.chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.18);
  color: var(--accent);
  font-size: 10px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px; border-radius: 100px;
  max-width: 180px;
}

.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip-remove {
  background: none; border: none; cursor: pointer;
  color: inherit; padding: 0; font-size: 10px;
  flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s;
}
.chip-remove:hover { opacity: 1; }

/* ── BUTONLAR ────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  background: var(--accent); color: #fff;
  border: none; border-radius: 12px; padding: 13px;
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.25);
  position: relative; overflow: hidden;
}

.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(192,57,43,0.35);
}

.btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed;
  box-shadow: none; transform: none;
}

.btn-secondary {
  width: 100%;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hi);
  background: var(--subtle);
}

.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
  background: none; border: none;
  color: var(--danger);
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding: 4px;
  opacity: 0.6; transition: opacity 0.2s;
}
.btn-danger:hover { opacity: 1; }

.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── PROGRESS ────────────────────────────────────────────────────── */
.progress-wrap { display: none; flex-direction: column; gap: 6px; }
.progress-wrap.show { display: flex; }

.progress-label {
  font-size: 10px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  display: flex; justify-content: space-between;
}

.progress-bar-bg {
  height: 4px; background: var(--subtle);
  border-radius: 10px; overflow: hidden;
}

.progress-bar {
  height: 100%; background: var(--accent);
  border-radius: 10px; width: 0%;
  transition: width 0.3s ease;
}

/* ── SPINNER ─────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-primary.loading .spinner { display: block; }

/* ── TABLO ───────────────────────────────────────────────────────── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header {
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.table-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
}

.table-title::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%; background: var(--accent);
}

.table-count {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  color: var(--muted); background: var(--subtle);
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--border);
}

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }

thead tr {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 10px 14px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  white-space: nowrap; text-align: left;
}

tbody tr {
  border-bottom: 1px solid rgba(177,173,161,0.15);
  transition: background 0.15s;
}

tbody tr:hover { background: rgba(177,173,161,0.08); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: 10px 14px; color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

td.bold  { color: var(--text); font-weight: 600; }
td.accent { color: var(--accent); font-weight: 700; }
td.mono  { font-size: 11px; }
td.truncate { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.empty-state { padding: 5rem 2rem; text-align: center; }

.empty-icon {
  width: 56px; height: 56px;
  background: var(--subtle); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

.empty-title { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.empty-sub   { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--border-hi); }

/* ── TOAST ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 12px 18px;
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none; max-width: 360px;
  color: var(--text);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(106,158,127,0.4); }
.toast.error   { border-color: rgba(192,57,43,0.35); }
.toast.info    { border-color: rgba(177,173,161,0.5); }

.toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.toast.success .toast-dot { background: var(--success); }
.toast.error   .toast-dot { background: var(--danger); }
.toast.info    .toast-dot { background: var(--muted); }

/* ── SESSION UYARI MODALI ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44,42,39,0.45);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 20px; padding: 2rem;
  max-width: 380px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.3s cubic-bezier(0.16,1,0.3,1);
}

.modal-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

.modal-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }

.modal-desc {
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.5rem; line-height: 1.6;
}

.modal-btn {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 12px;
  font-family: 'Syne', sans-serif; font-size: 12px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.modal-btn:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* ── LOGIN SAYFASI ───────────────────────────────────────────────── */
.layout {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px 1fr;
  align-items: center;
}

.brand-side {
  padding: 3rem;
  animation: slide-in-left 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}

.brand-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.18);
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2rem;
}

.brand-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}

.brand-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 600; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 1.25rem;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.brand-title .highlight { color: var(--accent); }

.brand-desc {
  font-size: 0.95rem; color: var(--muted);
  line-height: 1.7; max-width: 340px; font-weight: 400;
}

.stat-row { display: flex; gap: 2rem; margin-top: 3rem; }

.stat-num {
  font-size: 1.6rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

.stat-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

/* ── GİRİŞ KARTI ─────────────────────────────────────────────────── */
.card-wrap {
  animation: slide-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 2.5rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,57,43,0.4), transparent);
}

.card-eyebrow-login {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.card-title {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 2rem;
  color: var(--text);
}

/* ── FORM ────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }

.field label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.input-wrap { position: relative; }

.input-wrap .icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  transition: color 0.2s;
}

.input-wrap input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px 13px 40px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
  border-color: var(--accent);
  background: rgba(192,57,43,0.03);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.input-wrap:focus-within .icon { color: var(--accent); }
.input-wrap input::placeholder { color: var(--border-hi); }

.pwd-toggle {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  padding: 2px; transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--text); }

/* ── ALERT KUTUSU ────────────────────────────────────────────────── */
.alert-box {
  display: none; align-items: center; gap: 10px;
  border-radius: 10px; padding: 12px 14px;
  margin-bottom: 1.25rem; font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.alert-box.error {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--accent);
}

.alert-box.show {
  display: flex;
  animation: shake 0.35s ease;
}

/* ── SUBMIT BUTONU ───────────────────────────────────────────────── */
.submit-btn {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 12px; padding: 14px;
  font-family: 'Syne', sans-serif; font-size: 13px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.25);
  position: relative; overflow: hidden;
}

.submit-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(192,57,43,0.35);
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.spinner-login {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.loading .spinner-login { display: block; }
.submit-btn.loading .btn-text { opacity: 0.7; }

/* ── KART FOOTER ─────────────────────────────────────────────────── */
.card-footer {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.footer-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── ANİMASYONLAR ────────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.fade-in { animation: fade-in 0.25s ease forwards; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .top-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem; gap: 2rem;
    overflow-y: auto; align-items: start;
  }
  .brand-side  { padding: 0; }
  .brand-title { font-size: 2rem; }
  .right-side  { display: none; }
  body.login-page { overflow: auto; }
}

@media (max-width: 640px) {
  .main        { padding: 1rem; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .nav         { padding: 0 1rem; }
  .nav-user, .nav-session-badge { display: none; }
}

.btn-admin {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-admin:hover {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.35);
}

/* ═══════════════════════════════════════════════════════════════════
   2FA SAYFASI — verify_2fa.html
═══════════════════════════════════════════════════════════════════ */

.code-input-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 1.5rem 0;
}

.code-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--accent);
}

.code-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.code-digit.filled { border-color: var(--border-hi); }

.timer-wrap {
  text-align: center;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  margin-bottom: 1rem;
}

.timer-wrap span {
  color: var(--accent);
  font-weight: 700;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.auth-app-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 1rem;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PANELİ — admin.html
═══════════════════════════════════════════════════════════════════ */

.admin-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 76px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
}

.sidebar-title::before {
  content: ''; width: 3px; height: 3px;
  border-radius: 50%; background: var(--accent);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none; background: none;
  font-family: 'Syne', sans-serif;
  text-align: left; width: 100%;
}

.sidebar-item:hover { background: var(--subtle); color: var(--text); }

.sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(192,57,43,0.15);
}

/* ── PANEL ── */
.panel { display: none; }
.panel.active { display: block; }

.panel-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text);
}

/* ── KULLANICI KARTI ── */
.user-list { display: flex; flex-direction: column; gap: 8px; }

.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s;
}

.user-card:hover { border-color: var(--border-hi); }

.user-card-left { display: flex; align-items: center; gap: 12px; }

.user-avatar {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; gap: 3px; }

.user-name {
  font-size: 13px; font-weight: 700;
  color: var(--text);
}

.user-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
}

.badge-admin {
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--accent);
}

.badge-active {
  background: rgba(106,158,127,0.1);
  border: 1px solid rgba(106,158,127,0.2);
  color: var(--success);
}

.badge-inactive {
  background: rgba(177,173,161,0.15);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-2fa {
  background: rgba(196,146,74,0.1);
  border: 1px solid rgba(196,146,74,0.2);
  color: var(--warning);
}

.badge-key {
  background: rgba(106,158,127,0.1);
  border: 1px solid rgba(106,158,127,0.2);
  color: var(--success);
}

.user-actions { display: flex; gap: 6px; flex-shrink: 0; }

.icon-btn {
  width: 32px; height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  color: var(--muted);
}

.icon-btn:hover { border-color: var(--border-hi); color: var(--text); }
.icon-btn.danger:hover { border-color: rgba(192,57,43,0.3); color: var(--danger); }

/* ── MODAL FORM & FOOTER ── */
.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.modal-footer {
  display: flex; gap: 8px;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-cancel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 10px;
  cursor: pointer; transition: border-color 0.2s;
}

.btn-cancel:hover { border-color: var(--border-hi); color: var(--text); }

.btn-confirm {
  background: var(--accent); color: #fff;
  border: none; font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 10px;
  cursor: pointer; transition: background 0.2s;
}

.btn-confirm:hover { background: var(--accent-hi); }
.btn-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── QR KOD ── */
.qr-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.qr-wrap img { width: 200px; height: 200px; border-radius: 8px; }

.qr-hint {
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  color: var(--muted); text-align: center; line-height: 1.6;
}

/* ── LOG TABLOSU ── */
.log-filters {
  display: flex; gap: 8px;
  margin-bottom: 1rem; flex-wrap: wrap;
}

.filter-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.filter-input:focus { border-color: var(--accent); }
.filter-input::placeholder { color: var(--muted); }

.btn-filter {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 16px;
  font-size: 11px; font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}

.btn-filter:hover { background: var(--accent-hi); }

/* ── BOŞ DURUM ── */
.empty-panel {
  text-align: center; padding: 4rem 2rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ── KULLANIM DÜZELTMESİ LOG SATIRI ── */
tr.log-adjustment {
  background: rgba(183,12,23,0.04);
}

tr.log-adjustment:hover {
  background: rgba(183,12,23,0.08);
}

.badge-adj {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(183,12,23,0.12);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}

.adj-val {
  color: var(--accent);
  font-weight: 600;
}

.btn-reset-usage {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed var(--border-hi);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-reset-usage:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── RESPONSIVE (Admin) ── */
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ── KULLANIM BARLARI (admin kullanıcı kartı & profil panel) ── */
.usage-row {
  margin-bottom: 8px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.usage-nums {
  color: var(--text);
  font-size: 10px;
}

.usage-bar-bg {
  height: 4px;
  background: var(--subtle);
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* ── ADMIN KULLANICI KARTI GÜNCELLEMESİ ── */
.user-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-usage {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── PROFİL BUTONU ── */
.btn-profile {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-profile:hover {
  background: var(--subtle);
  border-color: var(--border-hi);
}

/* ── PROFİL AÇILIR PANEL ── */
.profile-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 999;
  display: none;
}

.profile-panel.show {
  display: block;
  animation: fadeIn 0.15s ease;
}

.profile-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.profile-action-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
}

