/* ═══════════════════════════════════════════════════════
   HGS SİSTEM — ORTAK STİLLER
   Tüm sayfalarda kullanılan CSS buradadır.
   Sayfa özel stiller kendi <style> tagında kalır.
═══════════════════════════════════════════════════════ */

/* ── 1. GOOGLE FONT ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS DEĞİŞKENLERİ ────────────────────────────── */
:root {
  --bg:     #060912;
  --s1:     #0c1120;
  --s2:     #111827;
  --s3:     #162033;
  --or:     #ff6b35;
  --or2:    #ff9a00;
  --or-rgb: 255,107,53;
  --tl:     #00d4aa;
  --tl2:    #00a87e;
  --bl:     #3b82f6;
  --txt:    #f0f4ff;
  --sub:    #5c6b8a;
  --dim:    #1e2d4a;
  --bdr:    rgba(255,255,255,0.07);
  --glow:   rgba(255,107,53,0.09);
  --sw:     252px;
}

/* ── 3. RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
}

/* ── 4. SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sub); }

/* ── 5. SIDEBAR ─────────────────────────────────────── */
.sidebar {
  width: var(--sw);
  background: linear-gradient(180deg, #0e1525 0%, #0a1020 100%);
  border-right: 1px solid var(--bdr);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 40px rgba(0,0,0,.35);
  overflow: hidden;
}
.sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 49;
  backdrop-filter: blur(4px);
}
.sb-overlay.on { display: block; }

/* Hamburger */
.hbg {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  background: var(--s2); border: 1px solid var(--bdr);
  border-radius: 10px; width: 36px; height: 36px;
  cursor: pointer; padding: 0;
  transition: all .18s; flex-shrink: 0;
}
.hbg:hover { border-color: rgba(var(--or-rgb),.4); background: rgba(var(--or-rgb),.07); }
.hbg:active { transform: scale(.92); }
.hbg-line {
  width: 15px; height: 1.5px; background: var(--txt);
  border-radius: 2px; transition: all .26s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hbg.is-open .hbg-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbg.is-open .hbg-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbg.is-open .hbg-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sidebar desktop collapse */
@media (min-width: 769px) {
  .sidebar.sb-collapsed { width: 64px !important; }
  .sidebar.sb-collapsed .ni-txt,
  .sidebar.sb-collapsed .nav-section,
  .sidebar.sb-collapsed .sb-text,
  .sidebar.sb-collapsed .sb-footer-extra { display: none !important; }
  .sidebar.sb-collapsed .ni { justify-content: center; padding: .62rem; }
  .sidebar.sb-collapsed .ni-ico { margin: 0; }
  .main.sb-icon-only { margin-left: 64px !important; }
}

/* Sidebar brand / logo */
.sb-logo {
  padding: 1.5rem 1.25rem 1.2rem;
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; gap: .7rem;
  background: linear-gradient(135deg, rgba(var(--or-rgb),.06) 0%, transparent 80%);
  flex-shrink: 0;
}
.sb-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--or), var(--or2));
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(var(--or-rgb),.4), 0 0 0 1px rgba(var(--or-rgb),.2);
}
.sb-text .t1 { font-size: .97rem; font-weight: 800; letter-spacing: -.02em; }
.sb-text .t2 { font-size: .6rem; color: var(--sub); font-weight: 500; margin-top: 2px; letter-spacing: .03em; }

.sb-nav { padding: .85rem .65rem; flex: 1; overflow-y: auto; }
.sb-nav::-webkit-scrollbar { display: none; }

.nav-section {
  padding: .7rem .75rem .3rem;
  font-size: .57rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(92,107,138,.6);
}

/* Nav items */
.ni {
  display: flex; align-items: center; gap: .6rem;
  padding: .62rem .75rem;
  cursor: pointer; font-size: .85rem; font-weight: 600;
  color: var(--sub); border-radius: 12px;
  transition: all .18s; margin: .06rem 0;
  position: relative; text-decoration: none;
  border: 1px solid transparent;
}
.ni:hover { color: var(--txt); background: rgba(255,255,255,.04); }
.ni.on, .ni.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--or-rgb),.2), rgba(255,154,0,.1));
  border-color: rgba(var(--or-rgb),.25);
  box-shadow: 0 2px 12px rgba(var(--or-rgb),.15);
}
.ni .ni-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: rgba(255,255,255,.05); transition: all .18s;
}
.ni.on .ni-ico, .ni.active .ni-ico {
  background: linear-gradient(135deg, var(--or), var(--or2));
  box-shadow: 0 3px 10px rgba(var(--or-rgb),.35);
}
.ni.on::before, .ni.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0; margin-left: -.65rem;
  background: linear-gradient(180deg, var(--or), var(--or2));
  box-shadow: 0 0 8px var(--or);
}
/* Manager teal nav active */
.ni.active.teal-active {
  background: rgba(0,212,170,.08);
  border-color: rgba(0,212,170,.15);
  color: var(--tl);
}
.ni.active.teal-active .ni-ico {
  background: linear-gradient(135deg, var(--tl), var(--tl2));
  box-shadow: 0 3px 10px rgba(0,212,170,.35);
}

.sb-sep { height: 1px; background: var(--bdr); margin: .5rem 1rem; }

/* Sidebar user footer */
.sb-footer {
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--bdr);
  background: rgba(0,0,0,.2);
  flex-shrink: 0;
}
.sb-user {
  padding: .9rem 1rem;
  border-top: 1px solid var(--bdr);
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0;
}
.sb-av {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--or), var(--or2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; font-weight: 700; color: #fff;
}
.sb-uname { font-size: .78rem; font-weight: 700; line-height: 1.3; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-urole { font-size: .65rem; color: var(--tl); font-weight: 600; }
.sb-logout { margin-left: auto; background: none; border: none; color: var(--sub); font-size: .9rem; cursor: pointer; padding: .25rem; border-radius: 6px; transition: color .15s; flex-shrink: 0; }
.sb-logout:hover { color: var(--or); }

/* Connection dot */
.adot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: all .3s; flex-shrink: 0; }
.adot.on  { background: var(--tl); box-shadow: 0 0 8px var(--tl); }
.adot.off { background: var(--or); box-shadow: 0 0 8px var(--or); }

/* ── 6. TOPBAR ──────────────────────────────────────── */
.topbar {
  background: rgba(6,9,18,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bdr);
  padding: .85rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.topbar-left  { display: flex; align-items: center; gap: .75rem; }
.topbar-right { display: flex; gap: .5rem; align-items: center; }
.page-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.page-sub   { font-size: .7rem; color: var(--sub); font-weight: 500; margin-top: 1px; }
/* manager compat */
.tb-title { font-size: .95rem; font-weight: 800; }
.tb-sub   { font-size: .72rem; color: var(--sub); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.tb-branch { font-size: .72rem; font-weight: 700; color: var(--tl); background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.2); border-radius: 8px; padding: .25rem .6rem; }

/* ── 7. MAIN LAYOUT ─────────────────────────────────── */
.main {
  margin-left: var(--sw);
  flex: 1; display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  position: relative; z-index: 1;
}
.content { padding: 1.5rem 1.75rem; flex: 1; overflow-y: auto; }
.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 4px; }

/* ── 8. PAGES ───────────────────────────────────────── */
.pg { display: none; animation: pgUp .22s ease both; }
.pg.on, .pg.active { display: block; }
@keyframes pgUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── 9. BUTONLAR ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border: none; border-radius: 10px;
  font-size: .82rem; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer; transition: all .15s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-or  { background: linear-gradient(135deg, var(--or), var(--or2)); color: #fff; box-shadow: 0 4px 16px rgba(var(--or-rgb),.3); }
.btn-or:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(var(--or-rgb),.45); }
.btn-tl  { background: linear-gradient(135deg, var(--tl), var(--tl2)); color: #000; box-shadow: 0 4px 16px rgba(0,212,170,.25); }
.btn-tl:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(0,212,170,.4); }
.btn-bl  { background: linear-gradient(135deg, var(--bl), #2563eb); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.3); }
.btn-ghost { background: var(--s2); border: 1px solid var(--bdr); color: var(--txt); }
.btn-ghost:hover { background: var(--s3); }
.btn-del { background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.2); color: #ff6b6b; }
.btn-del:hover { background: rgba(255,80,80,.2); }
.btn-sm  { padding: .32rem .65rem; font-size: .75rem; }
.btn-xs  { padding: .2rem .5rem; font-size: .7rem; border-radius: 7px; }

/* ── 10. KARTLAR ────────────────────────────────────── */
.card {
  background: var(--s1); border: 1px solid var(--bdr);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
  transition: box-shadow .18s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.22); }
.card-h {
  padding: 1rem 1.35rem; border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.02);
}
.card-title { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; }
.card-body  { padding: 1.25rem 1.35rem; }
.pip    { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--or), var(--or2)); box-shadow: 0 0 10px rgba(var(--or-rgb),.5); }
.pip-tl { background: linear-gradient(135deg, var(--tl), var(--tl2)); box-shadow: 0 0 10px rgba(0,212,170,.5); }
.pip-bl { background: var(--bl); box-shadow: 0 0 10px rgba(59,130,246,.5); }
/* manager compat pip */
.pip.mgr { width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--tl), var(--bl)); }

/* ── 11. STAT KARTLARI ──────────────────────────────── */
.stat-card {
  background: var(--s1); border: 1px solid var(--bdr);
  border-radius: 20px; padding: 1.35rem 1.25rem 1.1rem;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; }
.sc-or::before { background: linear-gradient(90deg, transparent, var(--or), transparent); }
.sc-tl::before { background: linear-gradient(90deg, transparent, var(--tl), transparent); }
.sc-bl::before { background: linear-gradient(90deg, transparent, var(--bl), transparent); }
.sc-dim::before{ background: linear-gradient(90deg, transparent, var(--sub), transparent); }
.stat-card::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; pointer-events: none; opacity: .05; }
.sc-or::after  { background: var(--or); }
.sc-tl::after  { background: var(--tl); }
.sc-bl::after  { background: var(--bl); }
.sc-dim::after { background: var(--sub); }
.stat-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .9rem; }
.sc-or .stat-ico { background: rgba(var(--or-rgb),.12); box-shadow: 0 0 0 1px rgba(var(--or-rgb),.2); }
.sc-tl .stat-ico { background: rgba(0,212,170,.1);     box-shadow: 0 0 0 1px rgba(0,212,170,.2); }
.sc-bl .stat-ico { background: rgba(59,130,246,.1);    box-shadow: 0 0 0 1px rgba(59,130,246,.2); }
.sc-dim .stat-ico{ background: rgba(92,107,138,.1);    box-shadow: 0 0 0 1px rgba(92,107,138,.2); }
.stat-val { font-size: 1.85rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat-val.or,   .stat-val.orange { color: var(--or); }
.stat-val.tl,   .stat-val.teal   { color: var(--tl); }
.stat-val.bl,   .stat-val.blue   { color: var(--bl); }
.stat-lbl { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); margin-top: .45rem; }
.stat-body { display: flex; flex-direction: column; }
/* manager stat mini */
.stat { background: var(--s1); border: 1px solid var(--bdr); border-radius: 16px; padding: 1rem 1.1rem; position: relative; overflow: hidden; transition: transform .17s, box-shadow .17s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.stat::after { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; border-radius:0 2px 2px 0; }
.stat.s-tl::after { background: var(--tl); }
.stat.s-or::after { background: var(--or); }
.stat.s-bl::after { background: var(--bl); }
.stat.s-gr::after { background: #22c55e; }
.stat.s-vi::after { background: #a78bfa; }
.stat.s-rd::after { background: #f87171; }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.stat-ico-wrap { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.stat.s-tl .stat-ico-wrap { background: rgba(0,212,170,.12); }
.stat.s-or .stat-ico-wrap { background: rgba(255,107,53,.12); }
.stat.s-bl .stat-ico-wrap { background: rgba(59,130,246,.12); }
.stat.s-gr .stat-ico-wrap { background: rgba(34,197,94,.12); }
.stat.s-vi .stat-ico-wrap { background: rgba(167,139,250,.12); }
.stat.s-rd .stat-ico-wrap { background: rgba(248,113,113,.12); }
.stat-sub { font-size: .68rem; margin-top: .35rem; color: var(--sub); }

/* ── 12. TABLO ──────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sub); padding: .65rem .85rem; border-bottom: 1px solid var(--bdr); text-align: left; white-space: nowrap; }
td { padding: .7rem .85rem; border-bottom: 1px solid var(--bdr); font-size: .83rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.pass-row:hover td, .veh-row:hover td { background: rgba(255,255,255,.025); }
.empty-cell td { text-align: center; color: var(--sub); padding: 2rem; font-size: .82rem; }

/* ── 13. FORM GRUPLARI ──────────────────────────────── */
.fg { margin-bottom: .85rem; }
.fg label {
  display: block; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--sub); margin-bottom: .35rem;
}
.fg input, .fg select, .fg textarea {
  width: 100%; background: var(--s2); border: 1.5px solid var(--bdr);
  border-radius: 10px; color: var(--txt);
  padding: .7rem .9rem; font-size: .88rem; font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: rgba(var(--or-rgb),.5);
  box-shadow: 0 0 0 3px rgba(var(--or-rgb),.08);
}
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.smsg, .msg {
  padding: .55rem .85rem; border-radius: 10px;
  font-size: .78rem; font-weight: 500; margin-top: .6rem;
}
.smsg.ok,  .msg.ok  { background: rgba(0,212,170,.08); color: var(--tl); border: 1px solid rgba(0,212,170,.2); }
.smsg.err, .msg.err { background: rgba(var(--or-rgb),.08); color: var(--or); border: 1px solid rgba(var(--or-rgb),.2); }

/* Filter bar */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .85rem; }
.filter-bar input, .filter-bar select {
  background: var(--s2); border: 1px solid var(--bdr); border-radius: 10px;
  color: var(--txt); padding: .45rem .75rem; font-size: .82rem;
  font-family: 'Space Grotesk', sans-serif; outline: none; transition: border-color .2s;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: rgba(0,212,170,.4); }

/* ── 14. MODAL ──────────────────────────────────────── */
.overlay, .modal-wrap {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.overlay.open, .modal-wrap.open { display: flex; }
/* admin compat */
.modal {
  background: var(--s1); border: 1px solid var(--bdr);
  border-radius: 20px; padding: 1.75rem;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 2px; }
.modal-h, .modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--bdr);
  background: rgba(var(--or-rgb),.04);
}
.modal-title { font-size: 1rem; font-weight: 800; }
.modal-x, .modal-close {
  background: rgba(255,255,255,.06); border: 1px solid var(--bdr);
  color: var(--sub); font-size: 1.2rem; cursor: pointer;
  line-height: 1; padding: .2rem .5rem; border-radius: 8px; transition: all .15s;
}
.modal-x:hover, .modal-close:hover { color: var(--or); background: rgba(var(--or-rgb),.1); }
/* manager modal-box compat */
.modal-box {
  background: var(--s1); border: 1px solid var(--bdr);
  border-radius: 20px; padding: 1.75rem;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  position: relative;
}

/* ── 15. TOAST ──────────────────────────────────────── */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(0,212,170,.15); backdrop-filter: blur(16px);
  border: 1px solid rgba(0,212,170,.3); color: var(--tl);
  padding: .7rem 1.4rem; border-radius: 14px;
  font-size: .83rem; font-weight: 700; z-index: 9999;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── 16. BADGE ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; border-radius: 7px; padding: .2rem .55rem; }
.b-ok   { background: rgba(0,212,170,.1);   color: var(--tl);  border: 1px solid rgba(0,212,170,.2); }
.b-low  { background: rgba(255,154,0,.1);   color: var(--or2); border: 1px solid rgba(255,154,0,.2); }
.b-blue { background: rgba(59,130,246,.12); color: #3b82f6;    border: 1px solid rgba(59,130,246,.25); }
.b-red  { background: rgba(239,68,68,.1);   color: #f87171;    border: 1px solid rgba(239,68,68,.2); }
.b-dim  { background: var(--s2); color: var(--sub); border: 1px solid var(--bdr); }

/* ── 17. CHİPLER ────────────────────────────────────── */
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.chip {
  background: var(--s2); border: 1px solid var(--bdr);
  border-radius: 8px; padding: .32rem .75rem;
  font-size: .72rem; font-weight: 700;
  cursor: pointer; color: var(--sub); transition: all .15s; white-space: nowrap;
}
.chip:hover { color: var(--txt); border-color: rgba(255,255,255,.15); }
.chip-on, .chip.chip-on { background: rgba(var(--or-rgb),.1); border-color: rgba(var(--or-rgb),.3); color: var(--or); }
/* manager teal chips */
.chip-on.tl { background: rgba(0,212,170,.1); border-color: rgba(0,212,170,.3); color: var(--tl); }

/* ── 18. PLAKA ETİKETİ ──────────────────────────────── */
.ptag {
  display: inline-flex; align-items: center; gap: 0;
  border: 2px solid rgba(255,255,255,.18); border-radius: 7px;
  overflow: hidden; font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; background: var(--s3);
}
.ptag-eu {
  background: #003399; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: .12rem .28rem; font-size: .45rem; line-height: 1.1;
  color: #fff; flex-shrink: 0;
}
.eu-stars { font-size: .38rem; letter-spacing: -.04em; }
.eu-tr    { font-size: .46rem; font-weight: 900; color: #fff; }
.ptag-num { padding: .1rem .5rem; font-size: .78rem; color: var(--txt); }

/* ── 19. SPİNER ─────────────────────────────────────── */
.sp {
  width: 20px; height: 20px;
  border: 2px solid rgba(var(--or-rgb),.2);
  border-top-color: var(--or);
  border-radius: 50%; animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 20. AYARLAR ────────────────────────────────────── */
.ay-wrap { max-width: 560px; display: flex; flex-direction: column; gap: .65rem; }
.ay-sec-title { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sub); padding: .3rem .25rem .1rem; }
.ay-card { background: var(--s1); border: 1px solid var(--bdr); border-radius: 18px; overflow: hidden; }
.sw-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--bdr);
}
.sw-row:last-child { border-bottom: none; }
.sw-lbl { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; }
.sw-lbl span { font-size: 1rem; }
.sw { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw-sl { position: absolute; inset: 0; background: var(--dim); border-radius: 24px; transition: .2s; cursor: pointer; }
.sw-sl:before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sw input:checked + .sw-sl { background: var(--or); }
.sw input:checked + .sw-sl:before { transform: translateX(18px); }
.ay-row-link { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--bdr); cursor: pointer; transition: background .15s; }
.ay-row-link:last-child { border-bottom: none; }
.ay-row-link:hover { background: var(--s2); }

/* ── 21. EXCEL BAR ──────────────────────────────────── */
.excel-bar {
  display: flex; gap: .65rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1rem; background: var(--s1); border: 1px solid var(--bdr);
  border-radius: 16px; padding: .75rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.xl-btn-group { display: flex; gap: .4rem; flex-wrap: wrap; }
.xl-btn { font-size: .78rem !important; padding: .38rem .75rem !important; gap: .35rem; display: flex; align-items: center; }

/* ── 22. PERM CHİPLER ───────────────────────────────── */
.perm-chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .38rem .85rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; cursor: default;
  border: 1.5px solid var(--bdr); background: var(--s2); color: var(--sub);
  transition: all .15s; user-select: none;
}
.perm-chip.on  { background: rgba(var(--or-rgb),.14); border-color: rgba(var(--or-rgb),.55); color: var(--or); }
.perm-chip.off { opacity: .45; text-decoration: line-through; }
.perm-chip .pcb { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; flex-shrink: 0; font-size: .65rem; }

/* ── 23. LIQUID GLASS ───────────────────────────────── */
.calc-btn {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: var(--txt); font-size: 1.05rem; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif; padding: .7rem .3rem;
  cursor: pointer; transition: all .12s; text-align: center;
  backdrop-filter: blur(4px);
}
.calc-btn:hover  { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.16); }
.calc-btn:active { transform: scale(.93); }
.calc-btn.op   { background: rgba(var(--or-rgb),.18); border-color: rgba(var(--or-rgb),.25); color: var(--or); }
.calc-btn.op:hover { background: rgba(var(--or-rgb),.3); }
.calc-btn.spec { background: rgba(255,255,255,.05); color: var(--sub); border-color: rgba(255,255,255,.07); }
.calc-btn.eq   { background: linear-gradient(135deg, var(--or), var(--or2)); border: none; color: #fff; box-shadow: 0 4px 16px rgba(var(--or-rgb),.4); }
.calc-btn.eq:hover { filter: brightness(1.12); }

/* ── 24. SLİDESHOW ARKA PLAN ────────────────────────── */
#bg-slider { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.bg-slide.active { opacity: 1; }
#bg-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,9,18,.45) 0%, rgba(6,9,18,.28) 50%, rgba(6,9,18,.45) 100%);
}
.bg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  transition: all .25s; padding: 0;
}
.bg-dot.active { background: #fff; transform: scale(1.25); }
.bg-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 20;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; width: 38px; height: 38px; color: #fff; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .2s;
}
.bg-arrow:hover { background: rgba(255,255,255,.22); }

/* ── 25. AI CHAT WİDGET ─────────────────────────────── */
#ai-fab-wrap { position:fixed; bottom:1.75rem; right:1.75rem; z-index:9990; }
.ai-uv-btn { --black-700:hsla(0 0% 12%/1);--border_radius:9999px;--transtion:0.3s ease-in-out;cursor:pointer;position:relative;display:flex;align-items:center;gap:0.5rem;transform-origin:center;padding:.65rem 1.25rem;background-color:transparent;border:none;border-radius:var(--border_radius);transform:scale(calc(1 + (var(--active,0)*0.1)));transition:transform var(--transtion); }
.ai-uv-btn::before { content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;background-color:var(--black-700);border-radius:var(--border_radius);box-shadow:inset 0 0.5px hsl(0,0%,100%),inset 0 -1px 2px 0 hsl(0,0%,0%),0px 4px 10px -4px hsla(0 0% 0%/calc(1 - var(--active,0))),0 0 0 calc(var(--active,0)*0.375rem) hsl(260 97% 50%/0.75);transition:all var(--transtion);z-index:0; }
.ai-uv-btn::after { content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;background-color:hsla(260 97% 61%/0.75);background-image:radial-gradient(at 51% 89%,hsla(266,45%,74%,1) 0px,transparent 50%),radial-gradient(at 100% 100%,hsla(266,36%,60%,1) 0px,transparent 50%),radial-gradient(at 22% 91%,hsla(266,36%,60%,1) 0px,transparent 50%);opacity:var(--active,0);border-radius:var(--border_radius);transition:opacity var(--transtion);z-index:2; }
.ai-uv-btn:is(:hover,:focus-visible) { --active:1; }
.ai-uv-btn:active { transform:scale(1); }
.ai-uv-btn .dots_border { --size_border:calc(100% + 2px);overflow:hidden;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:var(--size_border);height:var(--size_border);background-color:transparent;border-radius:var(--border_radius);z-index:-10; }
.ai-uv-btn .dots_border::before { content:"";position:absolute;top:30%;left:50%;transform-origin:left;transform:rotate(0deg);width:100%;height:2rem;background-color:white;mask:linear-gradient(transparent 0%,white 120%);animation:ai-rotate 2s linear infinite; }
@keyframes ai-rotate { to { transform:rotate(360deg); } }
.ai-uv-btn .sparkle { position:relative;z-index:10;width:1.4rem; }
.ai-uv-btn .sparkle .path { fill:currentColor;stroke:currentColor;transform-origin:center;color:hsl(0,0%,100%); }
.ai-uv-btn:is(:hover,:focus) .sparkle .path { animation:ai-path 1.5s linear 0.5s infinite; }
.ai-uv-btn .sparkle .path:nth-child(1) { --scale_path_1:1.2; }
.ai-uv-btn .sparkle .path:nth-child(2) { --scale_path_2:1.2; }
.ai-uv-btn .sparkle .path:nth-child(3) { --scale_path_3:1.2; }
@keyframes ai-path { 0%,34%,71%,100%{transform:scale(1)} 17%{transform:scale(var(--scale_path_1,1))} 49%{transform:scale(var(--scale_path_2,1))} 83%{transform:scale(var(--scale_path_3,1))} }
.ai-uv-btn .text_button { position:relative;z-index:10;background-image:linear-gradient(90deg,hsla(0 0% 100%/1) 0%,hsla(0 0% 100%/var(--active,0)) 120%);background-clip:text;font-size:.82rem;font-weight:700;font-family:'Space Grotesk',sans-serif;color:transparent; }
#ai-panel {
  display: none; flex-direction: column;
  position: fixed; bottom: 5.5rem; right: 1.75rem; z-index: 9989;
  width: 340px; max-height: 500px;
  background: #110d1f; border: 1px solid rgba(249,115,22,.25);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
#ai-msgs {
  flex: 1; overflow-y: auto; padding: .85rem;
  display: flex; flex-direction: column; gap: .6rem; max-height: 370px;
}
#ai-msgs::-webkit-scrollbar { width: 4px; }
#ai-msgs::-webkit-scrollbar-thumb { background: rgba(124,58,237,.3); border-radius: 4px; }
.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 14px 14px 4px 14px; padding: .55rem .85rem;
  font-size: .8rem; color: #fff; max-width: 82%; line-height: 1.45;
}
.ai-msg-bot {
  align-self: flex-start;
  background: rgba(124,58,237,.13); border: 1px solid rgba(124,58,237,.15);
  border-radius: 14px 14px 14px 4px; padding: .55rem .85rem;
  font-size: .8rem; color: #e0d8ff; max-width: 82%; line-height: 1.45;
}

/* ── 26. POPUP OVERLAY ──────────────────────────────── */
.event-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.8); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.event-overlay.show { display: flex; }
.event-img-wrap {
  position: relative; max-width: 720px; width: 100%;
  border-radius: 20px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.event-img-wrap img { width: 100%; display: block; border-radius: 20px; }
.event-close-btn {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(0,0,0,.5); border: none; border-radius: 50%;
  width: 36px; height: 36px; color: #fff; font-size: 1.1rem;
  cursor: pointer; line-height: 1; backdrop-filter: blur(4px);
}

/* ── 27. MOBİL KARTLAR ──────────────────────────────── */
.m-card { background: var(--s1); border: 1px solid var(--bdr); border-radius: 16px; padding: .85rem 1rem; margin-bottom: .5rem; }
.m-card-top  { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.m-card-main { font-size: .9rem; font-weight: 700; }
.m-card-sub  { font-size: .75rem; color: var(--sub); margin-top: .15rem; }
.m-card-val  { font-size: 1rem; font-weight: 800; color: var(--or); }
.m-card-acts { display: flex; gap: .4rem; flex-shrink: 0; }

/* ── 28. TEMA — AÇIK MOD ────────────────────────────── */
[data-theme="light"] {
  --bg: #f0f4fb; --s1: #ffffff; --s2: #eaeff8; --s3: #dde4f0;
  --txt: #0f1829; --sub: #6b7a99; --bdr: rgba(0,0,0,0.08); --dim: #c8d0e0;
}
[data-theme="light"] body::before { display: none; }
[data-theme="light"] .sidebar { background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%) !important; box-shadow: 2px 0 24px rgba(0,0,0,.07); }
[data-theme="light"] .topbar { background: rgba(248,250,254,.95) !important; border-bottom-color: rgba(0,0,0,.08); }
[data-theme="light"] .ni { color: #344060; }
[data-theme="light"] .ni:hover { background: rgba(var(--or-rgb),.07); color: var(--or); }
[data-theme="light"] .ni.on, [data-theme="light"] .ni.active { background: rgba(var(--or-rgb),.12); color: var(--or); border-color: rgba(var(--or-rgb),.2); }
[data-theme="light"] .chip { color: #4a5880; background: #eaeff8; border-color: rgba(0,0,0,.09); }
[data-theme="light"] .chip:hover { background: #dde4f0; color: #0f1829; }
[data-theme="light"] .chip-on { background: rgba(var(--or-rgb),.1); border-color: rgba(var(--or-rgb),.3); color: var(--or); }
[data-theme="light"] .btn-ghost { color: #344060; background: #eaeff8; border-color: rgba(0,0,0,.09); }
[data-theme="light"] .btn-ghost:hover { background: #dde4f0; }
[data-theme="light"] .btn-del { background: rgba(220,50,50,.07); border-color: rgba(220,50,50,.18); color: #c0392b; }
[data-theme="light"] th { color: #6b7a99; border-bottom-color: rgba(0,0,0,.08); }
[data-theme="light"] td { border-bottom-color: rgba(0,0,0,.04); }
[data-theme="light"] .pass-row:hover td, [data-theme="light"] .veh-row:hover td { background: rgba(0,0,0,.025); }
[data-theme="light"] .empty-cell td { color: #8a9bbf; }
[data-theme="light"] .ptag { background: #e2e8f5; border-color: rgba(0,0,0,.14); }
[data-theme="light"] .ptag-num { color: #0f1829; }
[data-theme="light"] .ptag-eu { background: #003399; }
[data-theme="light"] .card { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
[data-theme="light"] .stat-card { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
[data-theme="light"] .modal, [data-theme="light"] .modal-box { background: #ffffff; border-color: rgba(0,0,0,.08); box-shadow: 0 8px 40px rgba(0,0,0,.14); }
[data-theme="light"] .fg input, [data-theme="light"] .fg select, [data-theme="light"] .fg textarea { background: #eaeff8; border-color: rgba(0,0,0,.09); color: #0f1829; }
[data-theme="light"] .filter-bar input, [data-theme="light"] .filter-bar select { background: #eaeff8; border-color: rgba(0,0,0,.09); color: #0f1829; }
[data-theme="light"] .excel-bar { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
[data-theme="light"] #toast { background: #ffffff; border-color: rgba(0,0,0,.1); box-shadow: 0 4px 24px rgba(0,0,0,.12); color: #0f1829; }
[data-theme="light"] .ay-card { box-shadow: 0 1px 6px rgba(0,0,0,.05); }
[data-theme="light"] .perm-chip { background: var(--s3); }
[data-theme="light"] .perm-chip.on { background: rgba(var(--or-rgb),.1); border-color: rgba(var(--or-rgb),.4); }

/* ── 29. MOBİL RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; width: 280px !important; max-width: calc(100vw - 60px) !important; }
  .sidebar.open { transform: translateX(0) !important; box-shadow: 6px 0 40px rgba(0,0,0,.6); }
  .main { margin-left: 0 !important; }
  .topbar { padding: .75rem 1rem; }
  .content { padding: .75rem; }
  .fg-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { font-size: 16px; }
  .chip { font-size: .72rem; padding: .35rem .75rem; }
  .btn { min-height: 40px; }
  .excel-bar { flex-direction: column; align-items: stretch; }
  .excel-bar .btn { width: 100%; justify-content: center; }
  #ai-fab-wrap { bottom: 1rem; right: 1rem; }
  #ai-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 4.5rem; }
}

