/* ============================================================
   BL TAKİP — Kurumsal Arayüz Teması
   ============================================================ */
:root {
  --bg: #060f1e;
  --bg-2: #0a1930;
  --panel: #0d2038;
  --panel-2: #122a47;
  --panel-3: #173556;
  --line: rgba(140, 175, 215, 0.14);
  --line-strong: rgba(140, 175, 215, 0.28);
  --text: #e9f2fc;
  --muted: #93aac7;
  --muted-2: #6d86a5;
  --gold: #d9b45a;
  --gold-2: #f4dc94;
  --teal: #2fd4c1;
  --blue: #5b9cff;
  --violet: #a78bfa;
  --red: #ff6b6b;
  --green: #4ade80;
  --orange: #fb923c;
  --shadow: 0 18px 45px rgba(2, 8, 20, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 252px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: #060f1e; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: #060f1e;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(91, 156, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(217, 180, 90, 0.10), transparent 60%),
    linear-gradient(160deg, #071426 0%, #060f1e 45%, #050c18 100%);
  background-attachment: fixed;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--gold-2); text-decoration: none; }
::selection { background: rgba(217, 180, 90, 0.35); }
:focus-visible { outline: 2px solid rgba(217, 180, 90, 0.55); outline-offset: 2px; }
.offline-banner {
  position: fixed; z-index: 300; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: #5a1d22; border-bottom: 1px solid rgba(255,107,107,.5);
  color: #ffe0e0; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.offline-banner svg { width: 18px; height: 18px; flex: 0 0 18px; }
.offline-banner > div { flex: 1; }
button:focus:not(:focus-visible), .nav-item:focus:not(:focus-visible) { outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 175, 215, 0.22); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 175, 215, 0.4); background-clip: content-box; }

/* ---------------- Genel bileşenler ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  background: var(--panel-2); color: var(--text); border-color: var(--line);
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
.btn-primary {
  background: linear-gradient(135deg, #e7c568 0%, #d3a63f 55%, #b98c2c 100%);
  color: #17233a; border-color: rgba(255, 235, 180, .35);
  box-shadow: 0 8px 22px rgba(211, 166, 63, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(211, 166, 63, 0.4); }
.btn-ghost { background: rgba(148, 180, 216, 0.06); }
.btn-danger { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.btn-danger:hover { background: rgba(255, 107, 107, 0.2); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(148, 180, 216, 0.06);
  color: var(--muted); cursor: pointer; transition: .2s;
}
.icon-btn:hover { color: var(--gold-2); border-color: rgba(217, 180, 90, .4); background: rgba(217, 180, 90, .08); }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text);
  background: rgba(9, 24, 43, 0.75); border: 1px solid var(--line);
  outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder { color: #5e7794; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: rgba(217, 180, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 180, 90, 0.14);
  background: rgba(11, 29, 51, 0.95);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.select option { background: #0d2038; color: var(--text); }
.input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7) sepia(.3) saturate(3) hue-rotate(5deg); cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); background: rgba(148, 180, 216, .08); color: var(--muted); }
.badge-gold { color: var(--gold-2); border-color: rgba(217, 180, 90, .35); background: rgba(217, 180, 90, .12); }
.badge-green { color: #9af0b8; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .1); }
.badge-red { color: #ffb3b3; border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .1); }
.badge-blue { color: #b7d2ff; border-color: rgba(91, 156, 255, .3); background: rgba(91, 156, 255, .1); }
.badge-teal { color: #a5f3e9; border-color: rgba(47, 212, 193, .3); background: rgba(47, 212, 193, .1); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------- Kabuk ---------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column; gap: 18px; padding: 22px 16px;
  background: linear-gradient(180deg, rgba(13, 32, 56, 0.96) 0%, rgba(7, 19, 36, 0.98) 100%);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
  background: linear-gradient(145deg, #f6e3a8, #d9b45a 45%, #a67c22);
  color: #142033; font-weight: 800; font-size: 14px; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(217, 180, 90, .28), inset 0 1px 0 rgba(255,255,255,.6);
}
.brand-title { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 10.5px; color: var(--muted-2); letter-spacing: .8px; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.nav-sep { margin: 16px 10px 6px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted-2); }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px;
  border: 1px solid transparent; border-radius: 11px; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left;
  transition: .18s;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.nav-item:hover { background: rgba(148, 180, 216, .07); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(217, 180, 90, .16), rgba(217, 180, 90, .03));
  border-color: rgba(217, 180, 90, .28); color: var(--gold-2); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}
.sidebar-footer { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #24476f, #132c4a); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 14px; color: var(--gold-2);
}
.u-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 33, 0.78); backdrop-filter: blur(14px);
}
.topbar-title h1 { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.topbar-title p { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.today { font-size: 12.5px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(148, 180, 216, .05); }
#btnMenu { display: none; }

.content { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1600px; width: 100%; margin: 0 auto; }

/* ---------------- Kartlar ---------------- */
.card {
  background: linear-gradient(165deg, rgba(18, 42, 71, .72), rgba(11, 28, 50, .82));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-title { font-size: 14px; font-weight: 650; letter-spacing: .2px; }
.card-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.card-body { padding: 16px 18px 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative; padding: 16px 16px 15px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 47, 79, .85), rgba(11, 27, 48, .9));
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(2, 8, 20, .35);
}
.kpi::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(217,180,90,.16), transparent 70%); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 11px; letter-spacing: .9px; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(148, 180, 216, .08); border: 1px solid var(--line); color: var(--gold-2); }
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-value { font-size: 26px; font-weight: 750; margin-top: 10px; letter-spacing: .3px; }
.kpi-foot { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-grid .span-2 { grid-column: span 2; }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 300px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }

/* ---------------- Araç çubuğu / filtre ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.search-wrap { position: relative; min-width: 240px; flex: 1; max-width: 380px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search-wrap .input { padding-left: 36px; }

.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filters .span-2 { grid-column: span 2; }
.filters .filter-actions { display: flex; gap: 8px; }

/* ---------------- Tablo ---------------- */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: rgba(7, 19, 35, .35); }
table.table { width: 100%; border-collapse: collapse; min-width: 900px; }
.table thead th {
  position: sticky; top: 0; z-index: 2; text-align: left; font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted-2); font-weight: 650;
  padding: 11px 12px; background: #102641; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table tbody td { padding: 11px 12px; border-bottom: 1px solid rgba(140, 175, 215, .07); font-size: 13px; vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(91, 156, 255, .055); }
.table tbody tr:last-child td { border-bottom: none; }
.table .bl { font-weight: 650; color: var(--gold-2); letter-spacing: .3px; }
.bl-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 0;
  border: none; background: none; color: var(--gold-2); cursor: pointer;
  font-weight: 650; letter-spacing: .3px; font-size: 13px; text-align: left;
}
.bl-link:hover { color: #fff0c2; text-decoration: underline; }
.bl-link-ic { width: 12px; height: 12px; opacity: .55; }
.bl-link:hover .bl-link-ic { opacity: 1; }
.table .sub { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--gold-2); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-btn {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(148, 180, 216, .06); color: var(--muted); cursor: pointer; transition: .18s;
}
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(148, 180, 216, .14); }
.mini-btn.danger:hover { color: #ffc0c0; border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .14); }
.mini-btn:disabled { opacity: .35; cursor: not-allowed; }

.pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.pagination .info { font-size: 12.5px; color: var(--muted-2); margin-right: auto; }
.page-btn { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(148, 180, 216, .05); color: var(--muted); cursor: pointer; font-size: 12.5px; }
.page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.page-btn.active { background: rgba(217, 180, 90, .16); border-color: rgba(217, 180, 90, .5); color: var(--gold-2); font-weight: 700; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------- Boş durum / yükleniyor ---------------- */
.empty { padding: 46px 20px; text-align: center; color: var(--muted-2); }
.empty svg { width: 42px; height: 42px; opacity: .5; margin-bottom: 10px; }
.empty h3 { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { padding: 30px; text-align: center; color: var(--muted-2); }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(3, 9, 18, .72); backdrop-filter: blur(6px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 620px; max-height: 92vh; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #132d4b, #0b1e35);
  border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal.wide { max-width: 820px; }
.modal.narrow { max-width: 440px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 17px; font-weight: 700; }
.modal-head p { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 420px; padding: 13px 15px; border-radius: 12px;
  background: #122a47; border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

/* ---------------- Excel / içe aktarma ---------------- */
.import-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.dropzone {
  display: block;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 34px 20px; text-align: center;
  cursor: pointer; transition: .2s; background: rgba(148, 180, 216, .03);
}
.dropzone:hover, .dropzone.drag { border-color: rgba(217, 180, 90, .6); background: rgba(217, 180, 90, .05); }
.dropzone svg { display: block; width: 38px; height: 38px; color: var(--gold); margin: 0 auto 10px; }
.dropzone h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dropzone p { font-size: 12.5px; color: var(--muted-2); }
.dropzone input[type="file"] { display: none; }

.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; }
.step-num {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(217, 180, 90, .14); border: 1px solid rgba(217, 180, 90, .35); color: var(--gold-2);
  font-size: 12px; font-weight: 700;
}
.step-num svg { width: 14px; height: 14px; }
.step h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.step p { font-size: 12px; color: var(--muted-2); line-height: 1.5; }

.preview-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-table-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.preview-table-wrap table.table { min-width: 1100px; }
.preview-table-wrap thead th { top: 0; }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; border: 1px solid; }
.alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.alert.warn { background: rgba(251, 146, 60, .09); border-color: rgba(251, 146, 60, .3); color: #ffd3ab; }
.alert.info { background: rgba(91, 156, 255, .08); border-color: rgba(91, 156, 255, .28); color: #c3d8ff; }
.alert.ok { background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .28); color: #b9f5c9; }
.alert.err { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .3); color: #ffc4c4; }
.alert ul { margin: 4px 0 0; padding-left: 16px; }

/* ---------------- Log detay ---------------- */
.diff { display: flex; flex-direction: column; gap: 8px; }
.diff-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 12px; border-radius: 9px; background: rgba(148, 180, 216, .05); border: 1px solid var(--line); font-size: 12.5px; }
.diff-row .k { color: var(--muted); }
.diff-row .v { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.diff-old { color: #ffb3b3; text-decoration: line-through; opacity: .8; }
.diff-new { color: #9af0b8; }
.log-detail-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }

/* ---------------- Yerler / BL yığınları ---------------- */
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.place-card .card-body { padding-top: 12px; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 190px; overflow-y: auto; }
.bl-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border-radius: 8px; border: 1px solid rgba(217,180,90,.28);
  background: rgba(217,180,90,.09); color: var(--gold-2);
  font-size: 11.5px; font-weight: 600; cursor: pointer; transition: .16s;
}
.bl-chip:hover { background: rgba(217,180,90,.18); border-color: rgba(217,180,90,.55); }
.bl-chip svg { width: 11px; height: 11px; opacity: .6; }
@media (max-width: 1100px) { .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .place-grid { grid-template-columns: 1fr; } }

/* ---------------- Switch ---------------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: rgba(148, 180, 216, .18); border: 1px solid var(--line-strong); position: relative; transition: .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8aa6c4; transition: .2s; }
.switch input:checked + .track { background: rgba(217, 180, 90, .3); border-color: rgba(217, 180, 90, .55); }
.switch input:checked + .track::after { left: 20px; background: var(--gold-2); }

/* ---------------- Giriş ekranı ---------------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px; background:
    radial-gradient(900px 500px at 20% 10%, rgba(91, 156, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(217, 180, 90, .16), transparent 60%),
    linear-gradient(150deg, #0a1a30, #071426 60%, #050d19);
  border-right: 1px solid var(--line);
}
.login-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140,175,215,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,175,215,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 30%, #000 20%, transparent 75%);
}
.login-art > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand .brand-mark { width: 54px; height: 54px; flex: 0 0 54px; font-size: 17px; border-radius: 16px; }
.login-brand h1 { font-size: 18px; font-weight: 700; }
.login-brand p { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.login-hero h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; font-weight: 750; letter-spacing: -.5px; max-width: 560px; }
.login-hero h2 span { background: linear-gradient(120deg, #f6e3a8, #d9b45a 60%, #b98c2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p { margin-top: 16px; max-width: 500px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.login-features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.login-feature { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(148, 180, 216, .05); font-size: 12.5px; color: var(--muted); }
.login-feature svg { width: 15px; height: 15px; color: var(--gold); }
.login-copy { font-size: 11.5px; color: var(--muted-2); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 24px; font-weight: 750; letter-spacing: -.3px; }
.login-card .sub { margin-top: 6px; color: var(--muted-2); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.login-form .field label { text-transform: none; letter-spacing: .2px; font-size: 12.5px; color: var(--muted); }
.login-error { display: none; }
.login-error.show { display: flex; }
.login-foot { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* ---------------- Duyarlı ---------------- */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar {
    transform: translateX(-105%); transition: transform .25s ease; width: 252px; flex-basis: 252px;
    box-shadow: 30px 0 80px rgba(0,0,0,.5);
  }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  #btnMenu { display: inline-flex; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-grid .span-2 { grid-column: span 1; }
  .import-grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px 18px; }
  .content { padding: 18px 18px 40px; }
  .today { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 680px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .span-2 { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .topbar-title h1 { font-size: 17px; }
  .kpi-value { font-size: 22px; }
  .toolbar .search-wrap { max-width: none; flex: 1 1 100%; }
  .modal { max-height: 94vh; }
  .login-panel { padding: 20px; }
}
