/* ============================================================
   CafeQR Admin — AdminLayout.css
   Premium Dark Theme — tek kaynak, tüm admin sayfaları bunu kullanır
   ============================================================ */

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

/* ---------- TOKENS ---------- */
:root{
  /* surfaces */
  --bg:        #0B0B12;
  --bg2:       #0D0D14;
  --bg3:       #14141F;
  --bg4:       #1A1A28;
  --surface:   #15151F;
  --surface2:  #1B1B29;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);

  /* text */
  --text:      #F2EFEA;
  --text2:     #B9B4AC;
  --text3:     #7C7870;
  --text4:     #57544E;

  /* brand */
  --accent:      #FF6B35;
  --accent-dim:  #C9501F;
  --accent-bg:   rgba(255,107,53,.12);
  --accent2:     #FF9D6B;
  --purple:      #9B7FFF;
  --purple-bg:   rgba(155,127,255,.12);
  --blue:        #4B9FFF;
  --blue-bg:     rgba(75,159,255,.12);
  --green:       #2DD482;
  --green-bg:    rgba(45,212,130,.12);
  --red:         #FF5C5C;
  --red-bg:      rgba(255,92,92,.12);
  --amber:       #F5C147;
  --amber-bg:    rgba(245,193,71,.12);

  /* radii / shadow / motion */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.28);
  --shadow:    0 8px 28px rgba(0,0,0,.38);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --ease: cubic-bezier(.4,0,.2,1);

  --sidebar-w: 240px;
  --topbar-h: 60px;
}

/* ---------- RESET ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg2);
  color:var(--text);
  font-family:'Manrope',-apple-system,Segoe UI,sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.sidebar-footer{
    display:none;
}
a {
    color: inherit;
    text-decoration: none;
}
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
::selection{ background:rgba(255,107,53,.32); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--border2); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.22); }

h1,h2,h3,h4{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--text);
  margin:0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar{
  position:fixed; left:0; top:0; bottom:0;
  width:var(--sidebar-w);
  background:linear-gradient(180deg,var(--bg3) 0%,var(--bg2) 100%);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  padding:20px 14px;
  overflow-y:auto;
  z-index:50;
}
.sidebar-logo{
  display:flex; align-items:center; gap:11px;
  padding:6px 8px 22px;
  margin-bottom:6px;
  border-bottom:1px solid var(--border);
}
.sidebar-logo-mark{
  width:38px; height:38px; border-radius:11px; flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),#FF3D7A 120%);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:13px; color:#fff;
  box-shadow:0 6px 18px rgba(255,107,53,.35);
  letter-spacing:.02em;
}
.sidebar-logo-text{
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px;
  color:var(--text); letter-spacing:-.01em; line-height:1.1;
}
.sidebar-logo-sub{ font-size:11px; color:var(--text3); margin-top:1px; font-weight:500; }

.nav-section{
  font-size:10.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--text4); padding:18px 12px 8px;
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  padding:9px 12px; border-radius:var(--r-sm);
  font-size:13.5px; font-weight:600; color:var(--text2);
  transition:background .16s var(--ease), color .16s var(--ease);
  position:relative;
}
.nav-item svg{ width:17px; height:17px; flex-shrink:0; opacity:.85; }
.nav-item:hover{ background:var(--bg4); color:var(--text); }
.nav-item.active{
  background:var(--accent-bg); color:var(--accent);
}
.nav-item.active svg{ opacity:1; }
.nav-item.active::before{
  content:''; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:3px; height:16px; border-radius:3px; background:var(--accent);
}

.sidebar-footer{ margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
.sidebar-user{ display:flex; align-items:center; gap:10px; padding:8px; }
.sidebar-user-avatar{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:12px; color:#fff;
}
.sidebar-user-name{ font-size:13px; font-weight:700; color:var(--text); }
.sidebar-user-role{ font-size:11px; color:var(--text3); }

/* ============================================================
   MAIN / TOPBAR
   ============================================================ */
.admin-main{
  margin-left:var(--sidebar-w);
  min-height:100vh;
  background:var(--bg2);
}
.admin-topbar{
  position:sticky; top:0; z-index:40;
  height:var(--topbar-h);
  display:flex; align-items:center; gap:14px;
  padding:0 28px;
  background:rgba(13,13,20,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.topbar-breadcrumb{ font-size:13px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; }
.topbar-breadcrumb-sep{ color:var(--text4); }
.topbar-spacer{ flex:1; }
.topbar-icon-btn{
  width:34px; height:34px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--bg4); border:1px solid var(--border); color:var(--text2);
  cursor:pointer; transition:all .16s var(--ease);
}
.topbar-icon-btn:hover{ background:var(--surface2); color:var(--accent); border-color:var(--border2); }
.topbar-icon-btn svg{ width:16px; height:16px; }

.admin-page{ padding:28px 32px 60px; max-width:1480px; }

.page-header{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:26px; flex-wrap:wrap;
}
.page-title{
  font-family:'Space Grotesk',sans-serif; font-size:25px; font-weight:700;
  letter-spacing:-.015em; color:var(--text); position:relative; padding-left:14px;
}
.page-title::before{
  content:''; position:absolute; left:0; top:4px; bottom:4px; width:3px;
  border-radius:3px; background:linear-gradient(180deg,var(--accent),var(--accent2));
}
.page-subtitle{ font-size:13px; color:var(--text3); margin-top:5px; padding-left:14px; }
.page-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}
.stat-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:18px 18px 16px; position:relative; overflow:hidden;
  transition:transform .16s var(--ease), border-color .16s var(--ease);
}
.stat-card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--stat-color,var(--accent));
}
.stat-card:hover{ transform:translateY(-2px); border-color:var(--border2); }
.stat-label{ font-size:11.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; }
.stat-value{ font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:700; color:var(--text); letter-spacing:-.02em; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:20px 22px;
}
.card.hoverable{ transition:transform .16s var(--ease), border-color .16s var(--ease); cursor:pointer; }
.card.hoverable:hover{ transform:translateY(-3px); border-color:var(--border2); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media(max-width:920px){ .two-col{ grid-template-columns:1fr; } }
.section-title{
  font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700;
  color:var(--text); margin-bottom:14px; display:flex; align-items:center; justify-content:space-between;
}

.form-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:22px 24px;
}
.form-panel-title{
  font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:700;
  color:var(--text); margin-bottom:16px;
}
.form-section-label{
  font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.07em;
}
.form-divider{ border-top:1px solid var(--border); margin:6px 0 14px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; }
.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-group-full{ grid-column:1 / -1; }
.form-label{ font-size:11.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.05em; }
.required{ color:var(--red); }
.form-hint{ font-size:11px; color:var(--text4); margin-top:2px; }

.form-input,
input[type=text], input[type=number], input[type=password], input[type=email],
input[type=date], input[type=datetime-local], input[type=tel], input[type=file],
select, textarea{
  background:var(--bg4); border:1px solid var(--border); border-radius:var(--r-sm);
  padding:9px 12px; font-size:13.5px; color:var(--text); font-family:inherit; outline:none;
  transition:border-color .15s var(--ease), background .15s var(--ease);
  width:100%;
}
.form-input::placeholder, input::placeholder, textarea::placeholder{ color:var(--text4); }
.form-input:focus, input:focus, select:focus, textarea:focus{
  border-color:var(--accent); background:var(--bg3);
}
textarea.form-input{ resize:vertical; }
select{ cursor:pointer; }
select:disabled{ opacity:.5; cursor:not-allowed; }

.form-check{ display:flex; align-items:center; gap:9px; cursor:pointer; user-select:none; }
.form-check-label{ font-size:13px; color:var(--text2); font-weight:600; }
input[type=checkbox]{ accent-color:var(--accent); width:16px; height:16px; cursor:pointer; }

.img-upload-box{
  border:1.5px dashed var(--border2); border-radius:var(--r); padding:22px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text3); cursor:pointer; transition:border-color .16s var(--ease), background .16s var(--ease);
  text-align:center;
}
.img-upload-box:hover{ border-color:var(--accent); background:var(--accent-bg); color:var(--accent); }
.img-upload-box svg{ width:26px; height:26px; opacity:.7; }
.img-upload-placeholder{ font-size:12.5px; font-weight:600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 18px; border-radius:var(--r-sm); border:none; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.01em;
  transition:transform .12s var(--ease), filter .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:linear-gradient(135deg,var(--accent),#FF8A55); color:#fff; box-shadow:0 6px 18px rgba(255,107,53,.28); }
.btn-primary:hover{ filter:brightness(1.07); }
.btn-secondary{ background:var(--bg4); color:var(--text); border:1px solid var(--border2); }
.btn-secondary:hover{ background:var(--surface2); }
.btn-success{ background:var(--green-bg); color:var(--green); border:1px solid rgba(45,212,130,.28); }
.btn-success:hover{ background:rgba(45,212,130,.2); }
.btn-danger{ background:var(--red-bg); color:var(--red); border:1px solid rgba(255,92,92,.28); }
.btn-danger:hover{ background:rgba(255,92,92,.2); }
.btn-warning{ background:var(--amber-bg); color:var(--amber); border:1px solid rgba(245,193,71,.28); }
.btn-warning:hover{ background:rgba(245,193,71,.2); }
.btn-ghost{ background:transparent; color:var(--text2); border:1px solid var(--border2); }
.btn-ghost:hover{ background:var(--bg4); color:var(--text); }
.btn-sm{ padding:5px 12px; font-size:11.5px; border-radius:7px; }
.btn-lg{ padding:12px 24px; font-size:14px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden;
}
.table-wrap-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--border);
}
.table-wrap-title{ font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:700; color:var(--text); }
.table-responsive{ overflow-x:auto; }

table.admin-table, .area-table, .user-table, .prod-table, table.camp-table{
  width:100%; border-collapse:collapse; font-size:13px;
}
.admin-table thead th, .area-table thead th, .user-table th{
  background:var(--bg3); color:var(--text3); font-size:10.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; text-align:left;
  padding:11px 16px; border-bottom:1px solid var(--border); white-space:nowrap;
}
.admin-table tbody td, .area-table td, .user-table td{
  padding:12px 16px; border-bottom:1px solid var(--border); color:var(--text2); vertical-align:middle;
}
.admin-table tbody tr:last-child td, .area-table tbody tr:last-child td{ border-bottom:none; }
.admin-table tbody tr:hover, .area-table tbody tr:hover, .user-table tr:hover{ background:rgba(255,255,255,.025); }
.td-main{ color:var(--text); font-weight:700; }
.td-muted{ color:var(--text3); }
.td-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.td-img{
  width:38px; height:38px; border-radius:var(--r-sm); overflow:hidden;
  background:var(--bg4); display:flex; align-items:center; justify-content:center; font-size:16px;
  border:1px solid var(--border);
}
.td-img img{ width:100%; height:100%; object-fit:cover; }
.admin-table-empty, .empty-msg{
  text-align:center; padding:48px 20px; color:var(--text3); font-size:13.5px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge{
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 11px; border-radius:30px; font-size:11px; font-weight:700; letter-spacing:.02em;
}
.badge-green{ background:var(--green-bg); color:var(--green); }
.badge-red{ background:var(--red-bg); color:var(--red); }
.badge-amber{ background:var(--amber-bg); color:var(--amber); }
.badge-blue{ background:var(--blue-bg); color:var(--blue); }
.badge-purple{ background:var(--purple-bg); color:var(--purple); }
.status-active{ color:var(--green); font-weight:700; }
.status-passive{ color:var(--red); font-weight:700; }
.role-badge{ display:inline-block; padding:3px 11px; border-radius:30px; font-size:11px; font-weight:700; }
.role-admin, .role-superadmin{ background:var(--red-bg); color:#ff8a8a; }
.role-garson{ background:var(--green-bg); color:var(--green); }
.role-muhasebe, .role-supermuhasebe{ background:var(--amber-bg); color:var(--amber); }
.role-subeadmin{ background:var(--blue-bg); color:var(--blue); }
.role-subemuhasebe{ background:var(--purple-bg); color:var(--purple); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:13px 18px;
}
.filter-bar label{ font-size:12px; font-weight:700; color:var(--text3); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay, .modal{
  position:fixed; inset:0; z-index:1000; display:none;
  background:rgba(5,5,9,.62); backdrop-filter:blur(5px);
  align-items:center; justify-content:center;
  animation:fadeIn .18s var(--ease);
}
.modal-overlay.open, .modal.open{ display:flex; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.modal-box{
  background:var(--bg3); border:1px solid var(--border2); border-radius:var(--r-xl);
  width:560px; max-width:92vw; max-height:88vh; overflow-y:auto;
  box-shadow:var(--shadow-lg);
  animation:modalIn .2s var(--ease);
}
.modal-box-sm{ width:420px; }
@keyframes modalIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--border);
  position:sticky; top:0; background:var(--bg3); z-index:2;
}
.modal-title{ font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--text); }
.modal-close{
  background:var(--bg4); border:1px solid var(--border); color:var(--text2);
  width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s var(--ease);
}
.modal-close:hover{ background:var(--red-bg); color:var(--red); border-color:rgba(255,92,92,.3); }
.modal-body{ padding:20px 22px; }
.modal-foot{
  display:flex; justify-content:flex-end; gap:10px;
  padding:16px 22px; border-top:1px solid var(--border);
  position:sticky; bottom:0; background:var(--bg3);
}

/* ============================================================
   TOAST
   ============================================================ */
.admin-toast, .toast{
  position:fixed; bottom:26px; right:26px; z-index:2000;
  background:var(--bg4); border:1px solid var(--border2); color:var(--text);
  padding:12px 20px; border-radius:var(--r); font-size:13px; font-weight:600;
  box-shadow:var(--shadow);
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:all .25s var(--ease);
}
.admin-toast.show, .toast.show{ opacity:1; transform:translateY(0); }
.admin-toast.success, .toast.success{ background:var(--green); color:#06140d; border-color:var(--green); }
.admin-toast.error, .toast.error{ background:var(--red); color:#1a0606; border-color:var(--red); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,107,53,.10), transparent 45%),
    radial-gradient(circle at 86% 78%, rgba(155,127,255,.08), transparent 45%),
    var(--bg2);
  padding:24px;
}
.login-box{
  width:380px; max-width:100%;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl);
  padding:36px 32px; box-shadow:var(--shadow-lg);
}
.login-logo{ display:flex; align-items:center; gap:11px; margin-bottom:28px; }
.login-logo-mark{
  width:42px; height:42px; border-radius:13px;
  background:linear-gradient(135deg,var(--accent),#FF3D7A 120%);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px; color:#fff;
  box-shadow:0 6px 18px rgba(255,107,53,.35);
}
.login-logo-text{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:19px; color:var(--text); }
.login-title{ font-family:'Space Grotesk',sans-serif; font-size:21px; font-weight:700; color:var(--text); margin-bottom:6px; }
.login-sub{ font-size:13px; color:var(--text3); margin-bottom:24px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-10{ margin-top:10px; } .mb-10{ margin-bottom:10px; }
.text-muted{ color:var(--text3); font-size:12px; }

@media(max-width:1024px){
  .admin-sidebar{ transform:translateX(-100%); transition:transform .2s var(--ease); }
  .admin-main{ margin-left:0; }
}



/* ============================================================
   ACCOUNTING SAYFASI EK STRİLLERİ
   ============================================================ */
.acc-tab-bar {
  display:flex; gap:4px; background:var(--bg4);
  border-radius:50px; padding:4px; margin-bottom:22px;
  border:1px solid var(--border); max-width:520px;
}
.acc-tab {
  flex:1; padding:9px 6px; border-radius:46px; border:none; cursor:pointer;
  font-size:.82rem; font-weight:700; color:var(--text3);
  background:transparent; font-family:inherit; transition:all .2s; white-space:nowrap;
}
.acc-tab.active { background:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(255,107,53,.3); }

.acc-kpi-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px; margin-bottom:22px;
}
.acc-kpi {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:16px 18px;
  border-left:3px solid var(--kpi-c,var(--accent)); position:relative;
}
.acc-kpi-label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:7px; }
.acc-kpi-val   { font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; color:var(--text); line-height:1; }
.acc-kpi-sub   { font-size:11px; color:var(--text3); margin-top:5px; font-weight:600; }

.acc-filter {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:13px 17px; margin-bottom:18px;
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
}
.period-btn {
  padding:6px 14px; border-radius:30px; border:1.5px solid var(--border);
  background:var(--bg4); color:var(--text2); font-size:12px; font-weight:700;
  cursor:pointer; font-family:inherit; transition:all .18s var(--ease);
}
.period-btn:hover { background:var(--surface2); }
.period-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }

.profit-box {
  border-radius:var(--r-lg); padding:18px 22px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
}
.profit-box.profit { background:var(--green-bg); border:1.5px solid rgba(45,212,130,.3); }
.profit-box.loss   { background:var(--red-bg);   border:1.5px solid rgba(255,92,92,.3); }
.profit-box-label  { font-size:13px; font-weight:800; }
.profit-box.profit .profit-box-label { color:var(--green); }
.profit-box.loss   .profit-box-label { color:var(--red); }
.profit-box-val {
  font-family:'Space Grotesk',sans-serif; font-size:32px; font-weight:700; letter-spacing:-1px;
}
.profit-box.profit .profit-box-val { color:var(--green); }
.profit-box.loss   .profit-box-val { color:var(--red); }

.pl-summary-row {
  display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; margin-bottom:18px;
}
.pl-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:16px 18px; text-align:center;
}
.pl-card-label { font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.pl-card-val   { font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:700; }

.expense-form-panel {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:18px 20px; margin-bottom:18px;
}
.expense-form-title { font-size:13px; font-weight:800; color:var(--text); margin-bottom:16px; display:flex; align-items:center; gap:7px; }
.expense-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.expense-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }

.receipt-upload {
  border:1.5px dashed var(--border2); border-radius:var(--r);
  padding:14px; text-align:center; cursor:pointer; background:var(--bg4);
  transition:border-color .18s; position:relative;
}
.receipt-upload:hover { border-color:var(--accent); }
.receipt-upload input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.receipt-preview { max-width:100%; max-height:100px; border-radius:var(--r-sm); margin-top:8px; display:none; }

.expense-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.expense-table th {
  background:var(--bg3); color:var(--text3); padding:10px 13px;
  text-align:left; font-weight:700; font-size:10.5px; letter-spacing:.06em;
  text-transform:uppercase; border-bottom:1px solid var(--border);
}
.expense-table td { padding:10px 13px; border-bottom:1px solid var(--border); color:var(--text2); }
.expense-table tr:last-child td { border-bottom:none; }
.expense-table tr:hover td { background:rgba(255,255,255,.025); }
.receipt-thumb { width:36px; height:36px; border-radius:var(--r-sm); object-fit:cover; cursor:pointer; border:1px solid var(--border); }

.cat-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.cat-chip {
  display:flex; align-items:center; gap:6px;
  padding:5px 13px; border-radius:30px;
  background:var(--bg4); border:1px solid var(--border);
  font-size:12px; font-weight:700; color:var(--text2);
}
.cat-chip-del {
  background:none; border:none; cursor:pointer; color:var(--text3);
  font-size:.85rem; padding:0; line-height:1;
}
.cat-chip-del:hover { color:var(--red); }

.lightbox-overlay {
  display:none; position:fixed; inset:0; background:rgba(5,5,9,.85);
  z-index:2000; align-items:center; justify-content:center;
  backdrop-filter:blur(8px);
}
.lightbox-overlay.open { display:flex; animation:fdin .2s ease; }
@keyframes fdin { from{opacity:0} to{opacity:1} }
.lightbox-overlay img { max-width:90vw; max-height:88vh; border-radius:var(--r-lg); box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position:absolute; top:16px; right:20px; background:rgba(255,255,255,.1);
  border:none; color:#fff; font-size:1.5rem; cursor:pointer; width:40px; height:40px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
}
@media(max-width:700px) {
  .expense-grid, .expense-grid-3, .pl-summary-row { grid-template-columns:1fr; }
  .acc-kpi-grid { grid-template-columns:1fr 1fr; }
}

/* ============================================================
   BRANCHES SAYFASI EK STRİLLERİ
   ============================================================ */
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.section-divider { border:none; border-top:1px dashed var(--border); margin:22px 0 16px; }
.section-title-sm { font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }

.logo-upload-box {
  display:flex; align-items:center; gap:14px; background:var(--bg4);
  border:1.5px dashed var(--border2); border-radius:var(--r); padding:12px 16px;
  cursor:pointer; transition:border-color .18s var(--ease);
}
.logo-upload-box:hover { border-color:var(--accent); background:var(--accent-bg); }
.logo-preview {
  width:64px; height:64px; border-radius:var(--r); object-fit:cover; border:1px solid var(--border);
  background:var(--bg3); flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:26px; color:var(--text4); overflow:hidden;
}
.logo-preview img { width:64px; height:64px; border-radius:var(--r); object-fit:cover; }
.logo-upload-info { flex:1; }
.logo-upload-info strong { display:block; font-size:13.5px; color:var(--text); }
.logo-upload-info small { color:var(--text3); font-size:11.5px; }
.logo-upload-btn { background:var(--accent); color:#fff; border:none; border-radius:var(--r-sm); padding:7px 14px; cursor:pointer; font-size:12.5px; font-weight:700; white-space:nowrap; }

.modal-logo-box { display:flex; align-items:center; gap:12px; background:var(--bg4); border:1.5px dashed var(--border2); border-radius:var(--r); padding:10px 14px; margin-bottom:15px; }
.modal-logo-preview { width:52px; height:52px; border-radius:var(--r-sm); object-fit:cover; border:1px solid var(--border); background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--text4); flex-shrink:0; overflow:hidden; }
.modal-logo-preview img { width:52px; height:52px; border-radius:var(--r-sm); object-fit:cover; }
.modal-logo-upload-btn { background:var(--accent); color:#fff; border:none; border-radius:var(--r-sm); padding:6px 12px; cursor:pointer; font-size:12px; font-weight:700; }

.social-links a { font-size:17px; text-decoration:none; margin-right:6px; }
.branch-thumb { width:30px; height:30px; border-radius:var(--r-sm); object-fit:cover; vertical-align:middle; margin-right:8px; border:1px solid var(--border); }

/* ============================================================
   CAMPAIGNS SAYFASI EK STRİLLERİ
   ============================================================ */
.filter-bar select{ background:var(--bg4); border:1px solid var(--border); border-radius:var(--r-sm); padding:8px 13px; font-size:13px; color:var(--text); outline:none; font-family:inherit; }
.filter-bar select:focus{ border-color:var(--accent); }
table.camp-table{ width:100%; border-collapse:collapse; font-size:13px; }
table.camp-table th{ background:var(--bg3); color:var(--text3); font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:11px 14px; text-align:left; white-space:nowrap; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:5; }
table.camp-table td{ padding:10px 14px; border-bottom:1px solid var(--border); color:var(--text2); vertical-align:middle; }
table.camp-table tr:hover{ background:rgba(255,255,255,.025); }
.campaign-thumb{ width:40px; height:40px; object-fit:cover; border-radius:var(--r-sm); border:1px solid var(--border); }
.campaign-active  { color:var(--green); font-weight:700; }
.campaign-inactive{ color:var(--red); font-weight:700; }
.campaign-expired { color:var(--amber); font-weight:700; }
.ch-badge{ display:inline-flex; align-items:center; gap:3px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.ch-badge.table   { background:var(--amber-bg); color:var(--amber); }
.ch-badge.delivery{ background:var(--green-bg); color:var(--green); }
.type-badge{ display:inline-block; padding:3px 11px; border-radius:14px; font-size:11px; font-weight:700; }
.type-badge.percentage   { background:var(--green-bg);  color:var(--green); }
.type-badge.fixed        { background:var(--blue-bg);   color:var(--blue); }
.type-badge.bundle       { background:var(--amber-bg);  color:var(--amber); }
.type-badge.quantity     { background:var(--purple-bg); color:var(--purple); }
.type-badge.cart         { background:var(--accent-bg); color:var(--accent); }
.type-badge.freedelivery    { background:var(--green-bg);  color:var(--green); }
.type-badge.deliverydiscount{ background:var(--blue-bg);   color:var(--blue); }
.type-badge.deliveryfixed   { background:var(--purple-bg); color:var(--purple); }
.type-badge.firstorderfree  { background:var(--amber-bg);  color:var(--amber); }
.type-badge.deliverycart    { background:var(--green-bg);  color:var(--green); }
.modal-box{ width:700px; }
.channel-picker{ display:flex; gap:10px; margin-bottom:20px; }
.ch-btn{ flex:1; padding:16px; border:1.5px solid var(--border); border-radius:var(--r); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:6px; background:var(--bg4); font-size:13px; font-weight:700; color:var(--text3); transition:all .18s var(--ease); font-family:inherit; }
.ch-btn .ico{ font-size:1.8rem; }
.ch-btn:hover{ border-color:var(--accent); background:var(--accent-bg); color:var(--accent); }
.ch-btn.active{ border-color:var(--accent); background:var(--accent-bg); color:var(--accent); }
.ch-btn.active.delivery{ border-color:var(--green); background:var(--green-bg); color:var(--green); }
.field-hint{ font-size:11px; color:var(--text4); margin-top:4px; }
.img-box{ border:1.5px dashed var(--border2); border-radius:var(--r); padding:14px; text-align:center; cursor:pointer; position:relative; background:var(--bg4); }
.img-box:hover{ border-color:var(--accent); }
.img-box img{ max-width:100%; max-height:130px; border-radius:var(--r-sm); display:block; margin:0 auto 8px; }
.img-box .ph{ color:var(--text3); font-size:13px; }
.img-box input[type=file]{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.prod-list{ max-height:180px; overflow-y:auto; border:1px solid var(--border); border-radius:var(--r-sm); padding:8px; background:var(--bg4); }
.prod-item{ display:flex; align-items:center; gap:8px; padding:5px 2px; border-bottom:1px solid var(--border); }
.prod-item:last-child{ border-bottom:none; }
.prod-item label{ flex:1; font-size:13px; cursor:pointer; color:var(--text2); }
.info-box{ border-radius:var(--r-sm); padding:11px 14px; font-size:13px; font-weight:600; margin-bottom:14px; }
.info-box.table-info   { background:var(--amber-bg); border:1px solid rgba(245,193,71,.28); color:var(--amber); }
.info-box.delivery-info{ background:var(--green-bg); border:1px solid rgba(45,212,130,.28); color:var(--green); }
.empty-msg{ text-align:center; padding:32px; color:var(--text3); font-size:14px; }
.main-tab-bar{ display:flex; gap:4px; background:var(--bg4); border-radius:50px; padding:4px; margin-bottom:22px; max-width:420px; border:1px solid var(--border); }
.main-tab-btn{ flex:1; padding:9px; border-radius:46px; border:none; cursor:pointer; font-size:.82rem; font-weight:700; color:var(--text3); background:transparent; font-family:inherit; transition:all .2s; white-space:nowrap; }
.main-tab-btn.active{ background:var(--accent); color:#fff; }

/* ============================================================
   CATEGORIES SAYFASI EK STRİLLERİ
   ============================================================ */
.icon-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;padding:10px;border:1px solid var(--border);border-radius:var(--r);background:var(--bg4);max-height:190px;overflow-y:auto;}
.icon-opt{font-size:24px;padding:7px;text-align:center;cursor:pointer;border-radius:var(--r-sm);border:2px solid transparent;transition:all .18s var(--ease);background:var(--surface);}
.icon-opt:hover{background:var(--surface2);}
.icon-opt.selected{border-color:var(--accent);background:var(--accent-bg);}
.icon-preview{font-size:32px;text-align:center;padding:12px;background:var(--bg4);border-radius:var(--r);margin-bottom:10px;border:1px solid var(--border);}
.icon-search{width:100%;background:var(--bg4);border:1px solid var(--border);border-radius:var(--r-sm);padding:9px 12px;font-size:13px;color:var(--text);font-family:inherit;outline:none;margin-bottom:8px;}
.icon-search:focus{border-color:var(--accent);}

/* ============================================================
   COURIERS SAYFASI EK STRİLLERİ
   ============================================================ */
.couriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.courier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.courier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.courier-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 4px 0 0 4px;
}
.courier-card.status-available::before { background: var(--green); }
.courier-card.status-onroad::before   { background: var(--purple); }
.courier-card.status-busy::before     { background: var(--amber); }
.courier-card.status-offline::before  { background: var(--border2); }

.courier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.courier-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.courier-avatar.status-available { background: rgba(45,212,130,.15); color: var(--green); }
.courier-avatar.status-onroad    { background: rgba(139,92,246,.15); color: var(--purple); }
.courier-avatar.status-busy      { background: rgba(245,158,11,.15); color: var(--amber); }
.courier-avatar.status-offline   { background: var(--bg4); color: var(--text3); }

.courier-name  { font-size: 14px; font-weight: 800; color: var(--text); }
.courier-phone { font-size: 11.5px; color: var(--text3); margin-top: 2px; }

.courier-status-badge {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 30px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.courier-status-badge.available { background: var(--green-bg); color: var(--green); }
.courier-status-badge.onroad    { background: var(--purple-bg); color: var(--purple); }
.courier-status-badge.busy      { background: var(--amber-bg);  color: var(--amber); }
.courier-status-badge.offline   { background: var(--bg4); color: var(--text3); }

.courier-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.metric-box {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  text-align: center;
}
.metric-label { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.metric-value { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }
.metric-value.green  { color: var(--green); }
.metric-value.red    { color: var(--red); }
.metric-value.purple { color: var(--purple); }
.metric-value.amber  { color: var(--amber); }

.courier-progress-wrap { margin-bottom: 12px; }
.courier-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: var(--text3);
  margin-bottom: 5px;
}
.courier-progress-bar {
  height: 5px; background: var(--bg4);
  border-radius: 3px; overflow: hidden;
}
.courier-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width .5s ease;
}
.courier-progress-fill.green  { background: var(--green); }
.courier-progress-fill.red    { background: var(--red); }
.courier-progress-fill.amber  { background: var(--amber); }

.courier-active-orders {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.courier-active-title {
  font-size: 10.5px; font-weight: 800;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 7px;
}
.courier-order-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 5px;
  font-size: 12px;
}
.courier-order-pill .pill-name { flex: 1; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.courier-order-pill .pill-status { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pill-status.yolda    { background: var(--purple-bg); color: var(--purple); }
.pill-status.bekliyor { background: var(--amber-bg);  color: var(--amber); }
.pill-status.hazirlaniyor { background: var(--blue-bg); color: var(--blue); }

.courier-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 13px 17px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.status-filter-btn {
  padding: 6px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--bg4);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.status-filter-btn:hover  { background: var(--surface2); }
.status-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.perf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.perf-table th {
  background: var(--bg3);
  color: var(--text3);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.perf-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
.perf-table tr:last-child td { border-bottom: none; }
.perf-table tr:hover td { background: rgba(255,255,255,.025); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text3);
}
.rank-badge.gold   { background: rgba(212,167,67,.15); border-color: rgba(212,167,67,.4); color: #c98a1f; }
.rank-badge.silver { background: rgba(150,150,150,.12); border-color: rgba(150,150,150,.3); color: #888; }
.rank-badge.bronze { background: rgba(180,120,60,.12); border-color: rgba(180,120,60,.3); color: #a0622a; }

.mini-progress { display: flex; align-items: center; gap: 8px; }
.mini-bar { flex: 1; height: 5px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 3px; }
.mini-fill.green  { background: var(--green); }
.mini-fill.amber  { background: var(--amber); }
.mini-fill.red    { background: var(--red); }

.courier-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.summary-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  border-left: 3px solid var(--kpi-c, var(--accent));
}
.summary-kpi-label { font-size: 10.5px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.summary-kpi-val   { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }

.courier-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text3); font-size: 14px;
}
.courier-empty .ico { font-size: 3rem; margin-bottom: 12px; }

.last-activity { font-size: 11px; color: var(--text3); margin-top: 4px; }
@media(max-width: 700px) {
  .couriers-grid { grid-template-columns: 1fr; }
  .courier-summary-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   DELIVERY SETTINGS SAYFASI EK STRİLLERİ
   ============================================================ */
.toggle-wrap{ display:flex; align-items:center; gap:12px; padding:12px 0; }
.toggle{ position:relative; width:44px; height:24px; flex-shrink:0; }
.toggle input{ opacity:0; width:0; height:0; }
.toggle-slider{ position:absolute; inset:0; background:var(--bg4); border:1px solid var(--border2); border-radius:24px; cursor:pointer; transition:.25s; }
.toggle-slider:before{ content:''; position:absolute; width:17px; height:17px; left:3px; top:2px; background:var(--text2); border-radius:50%; transition:.25s; }
.toggle input:checked+.toggle-slider{ background:var(--accent); border-color:var(--accent); }
.toggle input:checked+.toggle-slider:before{ background:#fff; transform:translateX(20px); }
.toggle-label{ font-size:13.5px; font-weight:700; color:var(--text); }
.province-tag{ font-size:10px; font-weight:700; color:#fff; background:var(--purple); padding:2px 9px; border-radius:10px; margin-right:6px; }
.info-box{ background:var(--purple-bg); border:1px solid rgba(155,127,255,.28); border-radius:var(--r); padding:12px 16px; margin-bottom:16px; font-size:12.5px; color:#c9bbff; line-height:1.6; }
.fee-badge{ font-size:11.5px; font-weight:700; color:var(--purple); }
.fee-default{ color:var(--text3); font-style:italic; }
.zero-area-warning{
  background:var(--amber-bg); border:1px solid rgba(245,193,71,.3); border-radius:var(--r);
  padding:13px 16px; margin-bottom:18px; font-size:13px; color:var(--amber); font-weight:600;
  display:flex; align-items:flex-start; gap:10px;
}
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:22px; }
@media(max-width:920px){ .grid-2{ grid-template-columns:1fr; } }
.area-table thead th{ background:var(--purple-bg); color:#c9bbff; }

/* ============================================================
   LOYALTY SAYFASI EK STRİLLERİ
   ============================================================ */
.ly-section {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:22px 24px; margin-bottom:20px;
}
.ly-section-title {
  font-family:'Space Grotesk',sans-serif; font-size:14px; font-weight:700;
  color:var(--text); margin-bottom:16px; padding-bottom:12px;
  border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px;
}
.ly-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.ly-field { display:flex; flex-direction:column; gap:5px; }
.ly-field label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; }

.ly-kpi-row {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px; margin-bottom:20px;
}
.ly-kpi {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:14px 16px; border-left:3px solid var(--kpi-c,var(--accent));
}
.ly-kpi-label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.ly-kpi-val { font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:700; color:var(--text); line-height:1; }

.ly-customer-row {
  display:flex; align-items:center; gap:14px; padding:12px 16px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  margin-bottom:8px;
}
.ly-customer-name { flex:1; font-size:13px; font-weight:700; color:var(--text); }
.ly-customer-info { font-size:11.5px; color:var(--text3); margin-top:2px; }
.ly-points-badge {
  background:var(--accent-bg); color:var(--accent);
  font-size:13px; font-weight:800; padding:5px 14px; border-radius:20px;
  white-space:nowrap;
}
.ly-actions { display:flex; gap:6px; }

.ly-modal-overlay {
  display:none; position:fixed; inset:0; background:rgba(5,5,9,.65);
  z-index:1000; backdrop-filter:blur(5px); align-items:center; justify-content:center;
}
.ly-modal-overlay.open { display:flex; }
.ly-modal-box {
  background:var(--bg3); border:1px solid var(--border2); border-radius:var(--r-xl);
  width:460px; max-width:92vw; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.ly-modal-title { font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--text); margin-bottom:16px; }

.toggle-switch {
  position:relative; width:44px; height:24px; cursor:pointer;
}
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-switch .toggle-slider {
  position:absolute; inset:0; background:var(--border2); border-radius:24px;
  transition:background .2s;
}
.toggle-switch .toggle-slider::before {
  content:''; position:absolute; left:3px; top:3px; width:18px; height:18px;
  background:#fff; border-radius:50%; transition:transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background:var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

.pagination { display:flex; gap:6px; align-items:center; justify-content:center; padding-top:18px; }
.page-btn {
  padding:7px 14px; border-radius:var(--r-sm); border:1px solid var(--border);
  background:var(--bg4); color:var(--text2); cursor:pointer; font-size:12.5px; font-weight:700;
  transition:all .15s; font-family:inherit;
}
.page-btn:disabled { opacity:.4; cursor:not-allowed; }

.tab-nav { display:flex; gap:4px; background:var(--bg4); border-radius:var(--r); padding:4px; margin-bottom:20px; }
.tab-nav-btn {
  flex:1; padding:9px; border-radius:var(--r-sm); border:none; cursor:pointer;
  background:transparent; font-size:12.5px; font-weight:700; color:var(--text3);
  transition:all .2s; font-family:inherit;
}
.tab-nav-btn.active { background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }

/* ============================================================
   MATERIALS SAYFASI EK STRİLLERİ
   ============================================================ */
.stock-bar-wrap { width:100%; height:6px; background:var(--bg4); border-radius:3px; overflow:hidden; margin-top:4px; }
.stock-bar-fill { height:100%; border-radius:3px; transition:width .4s ease; }
.stock-bar-fill.ok       { background:var(--green); }
.stock-bar-fill.low      { background:var(--amber); }
.stock-bar-fill.critical { background:var(--red); }

.stock-badge { display:inline-block; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:700; }
.stock-badge.ok       { background:var(--green-bg); color:var(--green); }
.stock-badge.low      { background:var(--amber-bg); color:var(--amber); }
.stock-badge.critical { background:var(--red-bg);   color:var(--red); }
.stock-badge.notrack  { background:var(--bg4);      color:var(--text3); }

.movement-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.movement-table th { background:var(--bg3); color:var(--text3); padding:8px 12px; text-align:left; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; border-bottom:1px solid var(--border); }
.movement-table td { padding:9px 12px; border-bottom:1px solid var(--border); color:var(--text2); }
.movement-table tr:last-child td { border-bottom:none; }
.mv-in     { color:var(--green); font-weight:700; }
.mv-out    { color:var(--red);   font-weight:700; }
.mv-adjust { color:var(--blue);  font-weight:700; }

.stock-summary-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-bottom:22px; }
.stock-kpi { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:14px 16px; border-left:3px solid var(--kpi-c,var(--accent)); }
.stock-kpi-label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.stock-kpi-val   { font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:700; color:var(--text); line-height:1; }

.tab-row-mat { display:flex; gap:4px; background:var(--bg4); border-radius:30px; padding:4px; margin-bottom:18px; width:fit-content; }
.tab-btn-mat { padding:8px 18px; border-radius:30px; border:none; cursor:pointer; background:transparent; font-size:12.5px; font-weight:700; color:var(--text2); transition:all .2s; font-family:inherit; }
.tab-btn-mat.active { background:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(255,107,53,.3); }

.stock-adjust-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 18px; margin-bottom:16px; }
.stock-adjust-title { font-size:12.5px; font-weight:800; color:var(--text); margin-bottom:12px; }
.adjust-row { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }

/* ============================================================
   ORDERS SAYFASI EK STRİLLERİ
   ============================================================ */
.tables-grid { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0 24px; }
.table-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; min-width:120px; text-align:center; cursor:pointer; transition:all .2s var(--ease); }
.table-card:hover, .table-card.active { background:var(--accent-bg); border-color:var(--accent); transform:translateY(-2px); }
.table-name { font-size:15px; font-weight:700; color:var(--text); font-family:'Space Grotesk',sans-serif; }
.table-total { font-size:14px; color:var(--accent); margin-top:6px; font-weight:700; }
.bill-request { background:var(--amber-bg); color:var(--amber); font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:30px; margin-top:8px; display:inline-block; }

.modal-orders-container { max-height:480px; overflow-y:auto; margin:15px 0; }
.order-card { background:var(--bg4); border-radius:var(--r); padding:12px 14px; margin-bottom:9px; border-left:3px solid var(--accent); cursor:pointer; transition:all .18s var(--ease); }
.order-card:hover { background:var(--surface2); }
.order-card.selected { background:var(--green-bg); border-left-color:var(--green); }
.order-card .order-header { display:flex; justify-content:space-between; align-items:center; }
.order-product { font-weight:700; font-size:14.5px; color:var(--text); }
.order-price { color:var(--accent); font-weight:700; }
.order-card.selected .order-price { color:var(--green); }
.order-note { font-size:11.5px; color:var(--text3); margin-top:5px; }
.completed-order { display:none; }
/* ★ YENİ: iptal edilen siparişler de modal listesinden gizlenir (tam geçmiş Rapor > İşlem Geçmişi'nde) */
.cancelled-order { display:none; }
.order-cancel-btn { font-size:10.5px; font-weight:700; color:var(--red); background:var(--red-bg); padding:3px 9px; border-radius:30px; cursor:pointer; white-space:nowrap; }
.order-cancel-btn:hover { opacity:.8; }
.table-card.table-waiter-call { border-color:var(--amber); box-shadow:0 0 0 2px rgba(245,166,35,.18); }
.waiter-call-request { background:var(--amber-bg); color:var(--amber); font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:30px; margin-top:6px; display:inline-block; }
.selected-summary { background:var(--green-bg); color:var(--green); padding:10px; border-radius:var(--r-sm); margin:14px 0; text-align:center; display:none; font-weight:700; }
.payment-select { padding:9px 14px; border:1px solid var(--border); border-radius:var(--r-sm); margin-right:10px; background:var(--bg4); color:var(--text); }
.btn-close-modal { padding:10px 20px; border-radius:var(--r-sm); cursor:pointer; margin:5px; font-weight:700; font-size:13px; display:inline-block; background:var(--green-bg); color:var(--green); border:1px solid rgba(45,212,130,.28); }
.btn-close-all-modal { background:var(--red-bg); color:var(--red); border:1px solid rgba(255,92,92,.28); }
.orders-container { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:6px; margin-top:10px; }
.empty-text { text-align:center; padding:48px; color:var(--text3); }
.section-title-row { display:flex; justify-content:space-between; align-items:center; margin-top:26px; margin-bottom:6px; }
.online-badge { background:var(--green-bg); color:var(--green); padding:3px 12px; border-radius:30px; font-size:11.5px; margin-left:10px; font-weight:700; }
.last-update { font-size:11.5px; color:var(--text3); margin-left:14px; }
.order-header-row { display:flex; background:var(--bg3); color:var(--text3); padding:11px 14px; border-radius:var(--r-sm); font-weight:700; margin-bottom:6px; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; }
.order-row { display:flex; padding:11px 14px; border-bottom:1px solid var(--border); align-items:center; font-size:13px; color:var(--text2); }
.order-row:hover { background:rgba(255,255,255,.025); }
.order-row.completed { opacity:.55; }
.order-note-small { font-size:11px; color:var(--text3); }
.col-table { width:110px; font-weight:700; color:var(--accent); }
.col-product { flex:2; }
.col-quantity { width:60px; text-align:center; }
.col-price { width:100px; text-align:right; font-weight:700; color:var(--accent); }
.col-status { width:140px; text-align:center; }
.col-time { width:70px; text-align:center; font-size:11.5px; color:var(--text3); }
.col-date { width:90px; text-align:center; font-size:11.5px; color:var(--text3); }
.order-header-row .col-table, .order-header-row .col-price { color:var(--text3); }
.status-badge { display:inline-block; padding:4px 11px; border-radius:30px; font-size:10.5px; font-weight:700; }
.status-badge.status-Bekliyor      { background:var(--amber-bg); color:var(--amber); }
.status-badge.status-Hazırlanıyor  { background:var(--blue-bg); color:var(--blue); }
.status-badge.status-Serviste      { background:var(--green-bg); color:var(--green); }
.status-badge.status-Tamamlandı    { background:rgba(255,255,255,.08); color:var(--text3); }
.status-badge.status-Yolda         { background:var(--purple-bg); color:var(--purple); }
.status-badge.status-Teslim-Edildi { background:var(--green-bg); color:var(--green); }
.status-badge.status-İptal         { background:var(--red-bg); color:var(--red); }
.status-badge.status-Kurye-Atandı  { background:rgba(255,193,7,.15); color:#ffc107; }

.filter-tabs { display:flex; gap:8px; margin:14px 0; flex-wrap:wrap; }
.filter-tab { padding:7px 18px; background:var(--bg4); border:1px solid var(--border); border-radius:30px; cursor:pointer; font-size:12.5px; font-weight:700; color:var(--text2); transition:all .18s var(--ease); }
.filter-tab:hover { background:var(--surface2); }
.filter-tab.active { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(255,107,53,.3); }

.date-filter-row { display:flex; align-items:center; gap:10px; margin:6px 0 16px; padding:12px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); flex-wrap:wrap; }
.date-filter-group { display:flex; align-items:center; gap:6px; }
.date-filter-group label { font-size:12px; font-weight:700; color:var(--text3); }
.date-input { padding:7px 10px; border:1px solid var(--border); border-radius:var(--r-sm); font-size:12.5px; outline:none; min-width:170px; background:var(--bg4); color:var(--text); }
.date-input:focus { border-color:var(--accent); }
.btn-filter-apply, .btn-filter-clear { padding:7px 16px; border-radius:var(--r-sm); cursor:pointer; font-weight:700; font-size:12.5px; border:none; }
.btn-filter-apply { background:var(--accent); color:#fff; }
.btn-filter-apply:hover { filter:brightness(1.08); }
.btn-filter-clear { background:var(--bg4); color:var(--text2); border:1px solid var(--border2); }
.btn-filter-clear:hover { background:var(--surface2); }

.order-row.ev-row { background:var(--purple-bg); border-left:3px solid var(--purple); }
.order-row.ev-row:hover { background:rgba(155,127,255,.18); }
.ev-badge { display:inline-block; padding:1px 7px; border-radius:10px; font-size:9px; font-weight:800; background:var(--purple); color:#fff; letter-spacing:.04em; vertical-align:middle; margin-left:4px; }
.col-price.ev { color:var(--purple); }

.dlv-modal-content { background:var(--bg3); border:1px solid var(--border2); margin:0; padding:0; width:680px; max-width:94vw; border-radius:var(--r-xl); max-height:92vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.dlv-modal-head { padding:18px 22px 14px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; background:var(--bg3); z-index:2; border-radius:var(--r-xl) var(--r-xl) 0 0; }
.dlv-modal-head h3 { margin:0; color:var(--purple); font-size:15px; font-family:'Space Grotesk',sans-serif; }
.dlv-body { padding:18px 22px 0; }
.dlv-customer-box { background:var(--purple-bg); border:1px solid rgba(155,127,255,.22); border-radius:var(--r); padding:14px 16px; display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; margin-bottom:16px; }
.dlv-field .lbl { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--purple); margin-bottom:3px; }
.dlv-field .val { font-size:13px; font-weight:600; color:var(--text); }
.dlv-field.full { grid-column:1 / -1; }
.dlv-items-tbl { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:14px; }
.dlv-items-tbl th { background:var(--bg4); padding:9px 10px; text-align:left; color:var(--purple); font-weight:700; }
.dlv-items-tbl td { padding:9px 10px; border-bottom:1px solid var(--border); color:var(--text2); }
.dlv-totals { border-top:1px solid var(--border); padding:10px 0 0; }
.dlv-total-line { display:flex; justify-content:space-between; padding:5px 0; font-size:13px; }
.dlv-total-line .lbl { color:var(--text3); }
.dlv-total-line .val { font-weight:700; color:var(--text); }
.dlv-total-line.grand .lbl { font-size:15px; font-weight:800; color:var(--text); }
.dlv-total-line.grand .val { font-size:16px; font-weight:800; color:var(--purple); }
.dlv-actions { padding:14px 22px 18px; border-top:1px solid var(--border); background:var(--bg2); display:flex; gap:8px; flex-wrap:wrap; border-radius:0 0 var(--r-xl) var(--r-xl); align-items:center; }
.dlv-btn { padding:9px 15px; border:none; border-radius:var(--r-sm); cursor:pointer; font-weight:700; font-size:12px; transition:all .18s; }
.dlv-btn:hover { filter:brightness(1.12); }
.dlv-btn-cook   { background:var(--blue-bg); color:var(--blue); }
.dlv-btn-road   { background:var(--purple-bg); color:var(--purple); }
.dlv-btn-done   { background:var(--green-bg); color:var(--green); }
.dlv-btn-cancel { background:var(--red-bg); color:var(--red); }
.dlv-btn-print  { background:var(--purple); color:#fff; margin-left:auto; }

.courier-assign-box {
  background:var(--bg3); border:1px solid var(--border2); border-radius:var(--r);
  padding:13px 16px; margin:14px 22px 0;
}
.courier-assign-title {
  font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.07em;
  color:#ffc107; margin-bottom:10px; display:flex; align-items:center; gap:6px;
}
.courier-assign-row { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.courier-select {
  flex:1; min-width:160px; padding:8px 12px;
  background:var(--bg4); border:1px solid var(--border);
  border-radius:var(--r-sm); color:var(--text); font-size:13px;
  outline:none; font-family:inherit;
}
.courier-select:focus { border-color:#ffc107; }
.courier-select option { background:var(--bg2); }
.btn-assign-courier {
  padding:8px 18px; background:#ffc107; color:#000;
  border:none; border-radius:var(--r-sm); font-weight:700;
  font-size:12.5px; cursor:pointer; transition:all .18s; white-space:nowrap;
}
.btn-assign-courier:hover { filter:brightness(1.1); }
.courier-assigned-info {
  background:rgba(255,193,7,.1); border:1px solid rgba(255,193,7,.3);
  border-radius:var(--r-sm); padding:9px 13px; margin-top:10px;
  font-size:13px; font-weight:600; color:#ffc107;
  display:flex; align-items:center; gap:7px;
}

#toastMsg {
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(14px);
  background:var(--bg4); color:var(--text); padding:10px 22px; border-radius:30px; border:1px solid var(--border2);
  font-size:13px; font-weight:700; opacity:0; pointer-events:none; z-index:9999;
  transition:all .28s ease; white-space:nowrap; box-shadow:var(--shadow);
}
#toastMsg.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ============================================================
   PRODUCTS SAYFASI EK STRİLLERİ
   ============================================================ */
.toolbar { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.table-container { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:auto; box-shadow:var(--shadow-sm); }
.product-table { width:100%; border-collapse:collapse; font-size:13px; min-width:1300px; }
.product-table th {
  background:var(--bg3); color:var(--text3); padding:11px 10px; text-align:left;
  font-weight:700; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  white-space:nowrap; position:sticky; top:0; z-index:10; border-bottom:1px solid var(--border);
}
.product-table td { padding:8px 10px; border-bottom:1px solid var(--border); vertical-align:middle; color:var(--text2); }
.product-table tr:hover { background:rgba(255,255,255,.025); }
.product-table tr.new-row { background:var(--green-bg); }
.product-table tr.new-row:hover { background:rgba(45,212,130,.18); }
.product-table tbody tr.row-even { background:transparent; }
.product-table tbody tr.row-odd  { background:rgba(255,255,255,.015); }
.product-table select, .product-table input[type="text"], .product-table input[type="number"], .product-table textarea {
  width:100%; padding:7px 9px; border:1px solid var(--border); border-radius:var(--r-sm);
  font-size:12px; background:var(--bg4); color:var(--text); outline:none; transition:border-color .15s var(--ease);
}
.product-table select:focus, .product-table input:focus, .product-table textarea:focus { border-color:var(--accent); background:var(--bg3); }
.product-table textarea { resize:vertical; min-height:35px; max-height:80px; }
.product-table .image-cell { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.product-table .image-cell img { width:40px; height:40px; object-fit:cover; border-radius:var(--r-sm); cursor:pointer; border:1px solid var(--border); }
.product-table .image-cell .file-input { display:none; }
.product-table .checkbox-cell { display:flex; align-items:center; justify-content:center; }
.product-table .checkbox-cell input[type="checkbox"] { width:17px; height:17px; cursor:pointer; accent-color:var(--accent); }
.product-table .action-cell { display:flex; gap:4px; flex-wrap:wrap; }
.product-table .id-cell { font-weight:700; color:var(--text3); text-align:center; }
.product-table .new-row .id-cell { color:var(--green); }
.product-table .price-input { width:80px; text-align:right; }

.modal-content .material-item { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--border); }
.modal-content .material-item label { cursor:pointer; flex:1; color:var(--text2); font-size:13px; }
.modal-content .material-item input[type="checkbox"] { width:17px; height:17px; cursor:pointer; accent-color:var(--accent); }
.modal-content .material-item .price-tag { color:var(--amber); font-size:11.5px; font-weight:700; }
.modal-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }

.size-row {
  display:grid; grid-template-columns:1fr 120px 80px 36px; gap:8px; align-items:center;
  margin-bottom:8px; padding:8px 10px; background:var(--bg4);
  border-radius:var(--r-sm); border:1px solid var(--border);
}
.size-row input { padding:7px 9px; border:1px solid var(--border); border-radius:var(--r-sm); font-size:12.5px; background:var(--bg3); color:var(--text); outline:none; width:100%; }
.size-row input:focus { border-color:var(--accent); }
.size-row .del-btn { background:var(--red-bg); border:1px solid rgba(255,92,92,.3); color:var(--red); border-radius:var(--r-sm); cursor:pointer; width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.size-row .del-btn:hover { background:var(--red); color:#fff; }
.size-header { display:grid; grid-template-columns:1fr 120px 80px 36px; gap:8px; padding:0 10px 6px; }
.size-header span { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; }
#sizesList { max-height:320px; overflow-y:auto; }
.has-sizes-badge { display:inline-block; padding:2px 7px; border-radius:20px; font-size:10px; font-weight:800; background:rgba(109,63,201,.15); color:#9163e8; border:1px solid rgba(109,63,201,.3); margin-left:4px; }

.empty-row td { padding:48px; text-align:center; color:var(--text3); }
@media(max-width:768px) {
  .product-table { font-size:11px; }
  .product-table td, .product-table th { padding:5px 6px; }
  .product-table .price-input { width:60px; }
}

/* ============================================================
   REPORTS SAYFASI EK STRİLLERİ
   ============================================================ */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease);
}
.kpi-card:hover { transform: translateY(-2px); }
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--kpi-color, var(--accent));
  border-radius: 4px 0 0 4px;
}
.kpi-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.kpi-value { font-size: 26px; font-weight: 800; color: var(--text); font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.kpi-sub   { font-size: 11px; color: var(--text3); margin-top: 6px; font-weight: 600; }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; margin-top: 5px; }
.kpi-trend.up   { color: var(--green); }
.kpi-trend.down { color: var(--red); }

.report-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.period-tabs { display: flex; gap: 6px; }
.period-tab {
  padding: 7px 15px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--bg4);
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s var(--ease);
  font-family: inherit;
}
.period-tab:hover { background: var(--surface2); }
.period-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,.3);
}
.date-range-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-range-group label { font-size: 12px; font-weight: 700; color: var(--text3); }
.date-range-group input[type="date"],
.date-range-group input[type="datetime-local"] {
  padding: 7px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg4);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
}
.date-range-group input:focus { border-color: var(--accent); }
.btn-apply {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-apply:hover { filter: brightness(1.08); }

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.charts-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.chart-card-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.chart-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-title span.badge-count {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text3);
  font-weight: 700;
}
canvas { max-height: 260px; }

.report-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.report-table-wrap .table-wrap-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-table-title { font-size: 13px; font-weight: 800; color: var(--text); }
.report-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.report-table th {
  background: var(--bg3);
  color: var(--text3);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.report-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
.report-table tr:last-child td { border-bottom: none; }
.report-table tr:hover td { background: rgba(255,255,255,.025); }
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg4);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--text3);
}
.rank-num.gold   { background: rgba(212,167,67,.15); border-color: rgba(212,167,67,.4); color: #c98a1f; }
.rank-num.silver { background: rgba(150,150,150,.12); border-color: rgba(150,150,150,.3); color: #888; }
.rank-num.bronze { background: rgba(180,120,60,.12);  border-color: rgba(180,120,60,.3); color: #a0622a; }

.progress-bar-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s ease; }
.progress-bar-fill.green  { background: var(--green); }
.progress-bar-fill.purple { background: var(--purple); }
.progress-bar-fill.amber  { background: var(--amber); }
.progress-pct { font-size: 11px; font-weight: 700; color: var(--text3); min-width: 38px; text-align: right; }

.btn-export {
  padding: 7px 15px;
  background: var(--bg4);
  color: var(--text2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-export:hover { background: var(--surface2); }

.report-loading {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,9,.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.report-loading.show { display: flex; }
.report-loading-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 28px 40px;
  text-align: center;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text3);
  font-size: 13px;
}
.empty-state .ico { font-size: 2.4rem; margin-bottom: 10px; }

.grand-total-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.grand-total-label { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }
.grand-total-value { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -1px; }

@media(max-width: 900px) {
  .charts-row, .charts-row-3 { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .report-kpi-grid { grid-template-columns: 1fr 1fr; }
  .period-tabs { flex-wrap: wrap; }
}

/* ============================================================
   REVIEWS SAYFASI EK STRİLLERİ
   ============================================================ */
.rv-filter {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:14px 18px; margin-bottom:18px;
  display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end;
}
.rv-filter-group { display:flex; flex-direction:column; gap:5px; min-width:140px; }
.rv-filter-group label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; }

.review-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:18px 20px; margin-bottom:14px; position:relative;
}
.review-card.reported { border-left:3px solid var(--red); }
.review-card.branch-review { border-left:3px solid var(--purple); }

.rv-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.rv-meta { flex:1; min-width:0; }
.rv-reviewer { font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:3px; }
.rv-sub { font-size:11.5px; color:var(--text3); display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.rv-product-tag {
  background:var(--accent-bg); color:var(--accent); padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700;
}
.rv-branch-tag {
  background:var(--purple-bg); color:var(--purple); padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700;
}
.rv-source-tag {
  background:var(--blue-bg); color:var(--blue); padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700;
}
.rv-reported-tag {
  background:var(--red-bg); color:var(--red); padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700;
}

.stars { display:flex; gap:2px; align-items:center; }
.star { font-size:16px; }
.star.filled { color:#f59e0b; }
.star.empty  { color:var(--text4); }
.rv-rating-num { font-size:13px; font-weight:700; color:var(--text2); margin-left:6px; }

.rv-comment {
  font-size:13.5px; color:var(--text2); line-height:1.6;
  background:var(--bg4); border-radius:var(--r-sm); padding:12px 15px;
  margin-bottom:12px; border-left:3px solid var(--border2);
}
.rv-no-comment { font-size:12px; color:var(--text4); font-style:italic; margin-bottom:12px; }

.rv-reply {
  background:var(--accent-bg); border-radius:var(--r-sm); padding:11px 14px;
  margin-bottom:12px; border-left:3px solid var(--accent);
}
.rv-reply-label { font-size:10.5px; font-weight:700; color:var(--accent); margin-bottom:4px; text-transform:uppercase; letter-spacing:.05em; }
.rv-reply-text { font-size:13px; color:var(--text2); }

.rv-reply-form { margin-top:10px; }
.rv-reply-form textarea {
  width:100%; padding:10px 13px;
  background:var(--bg4); border:1px solid var(--border2); border-radius:var(--r-sm);
  color:var(--text); font-size:13px; resize:vertical; min-height:70px; outline:none;
  font-family:inherit; transition:border-color .15s;
}
.rv-reply-form textarea:focus { border-color:var(--accent); }
.rv-reply-actions { display:flex; gap:8px; margin-top:8px; align-items:center; }

.rv-actions { display:flex; gap:7px; flex-wrap:wrap; }

.rv-kpi-row {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px; margin-bottom:20px;
}
.rv-kpi {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:14px 16px; border-left:3px solid var(--kpi-c,var(--accent));
}
.rv-kpi-label { font-size:10.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.rv-kpi-val { font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; color:var(--text); line-height:1; }

.empty-reviews { text-align:center; padding:60px 20px; color:var(--text3); font-size:13.5px; }

/* ============================================================
   SETTINGS SAYFASI EK STRİLLERİ
   ============================================================ */
.settings-container{ max-width:980px; margin:0 auto; padding:32px 28px 60px; }
.header-info{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.user-info{ font-size:13px; color:var(--text3); }
.section{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:22px 24px; margin-top:20px; position:relative; overflow:hidden; }
.section::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--section-color,var(--accent)); }
.section h3{ margin:0 0 16px; font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
.row{ display:flex; gap:16px; flex-wrap:wrap; }
.col{ flex:1; min-width:220px; }
.divider{ border-top:1px solid var(--border); margin:26px 0; }
hr{ border:none; border-top:1px solid var(--border); margin:0 0 22px; }
.page-top-title{ font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:10px; }

.logoutbtn{background-color:#5c0000;border:none;color:#fff;padding:5px;font-weight:bold;cursor:pointer;}
.logoutbtn:hover{background-color:#840000;}
.logoutbtn2{background-color:#5c0000;border:none;color:#fff;font-weight:bold;align-items:center;gap:11px;padding:11px 12px;border-radius:var(--r-sm);font-size:13.5px;cursor:pointer;}
.logoutbtn2:hover{background-color:#840000;}

.WifiActive span, .WifiActive label{
  cursor:pointer;
}
/* ============================================================
   CafeQR Admin — AdminLayout.css
   Premium Dark Theme — tek kaynak, tüm admin sayfaları bunu kullanır
   ============================================================ */

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

/* ---------- TOKENS ---------- */
:root{
  /* surfaces */
  --bg:        #0B0B12;
  --bg2:       #0D0D14;
  --bg3:       #14141F;
  --bg4:       #1A1A28;
  --surface:   #15151F;
  --surface2:  #1B1B29;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);

  /* text */
  --text:      #F2EFEA;
  --text2:     #B9B4AC;
  --text3:     #7C7870;
  --text4:     #57544E;

  /* brand */
  --accent:      #FF6B35;
  --accent-dim:  #C9501F;
  --accent-bg:   rgba(255,107,53,.12);
  --accent2:     #FF9D6B;
  --purple:      #9B7FFF;
  --purple-bg:   rgba(155,127,255,.12);
  --blue:        #4B9FFF;
  --blue-bg:     rgba(75,159,255,.12);
  --green:       #2DD482;
  --green-bg:    rgba(45,212,130,.12);
  --red:         #FF5C5C;
  --red-bg:      rgba(255,92,92,.12);
  --amber:       #F5C147;
  --amber-bg:    rgba(245,193,71,.12);

  /* radii / shadow / motion */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.28);
  --shadow:    0 8px 28px rgba(0,0,0,.38);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --ease: cubic-bezier(.4,0,.2,1);

  --sidebar-w: 240px;
  --topbar-h: 60px;
}

/* ---------- RESET ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg2);
  color:var(--text);
  font-family:'Manrope',-apple-system,Segoe UI,sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.sidebar-footer{
    display:none;
}
a {
    color: inherit;
    text-decoration: none;
}
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
::selection{ background:rgba(255,107,53,.32); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--border2); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.22); }

h1,h2,h3,h4{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--text);
  margin:0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar{
  position:fixed; left:0; top:0; bottom:0;
  width:var(--sidebar-w);
  background:linear-gradient(180deg,var(--bg3) 0%,var(--bg2) 100%);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  padding:20px 14px;
  overflow-y:auto;
  z-index:50;
}
.sidebar-logo{
  display:flex; align-items:center; gap:11px;
  padding:6px 8px 22px;
  margin-bottom:6px;
  border-bottom:1px solid var(--border);
}
.sidebar-logo-mark{
  width:38px; height:38px; border-radius:11px; flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),#FF3D7A 120%);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:13px; color:#fff;
  box-shadow:0 6px 18px rgba(255,107,53,.35);
  letter-spacing:.02em;
}
.sidebar-logo-text{
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px;
  color:var(--text); letter-spacing:-.01em; line-height:1.1;
}
.sidebar-logo-sub{ font-size:11px; color:var(--text3); margin-top:1px; font-weight:500; }

.nav-section{
  font-size:10.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--text4); padding:18px 12px 8px;
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  padding:9px 12px; border-radius:var(--r-sm);
  font-size:13.5px; font-weight:600; color:var(--text2);
  transition:background .16s var(--ease), color .16s var(--ease);
  position:relative;
}
.nav-item svg{ width:17px; height:17px; flex-shrink:0; opacity:.85; }
.nav-item:hover{ background:var(--bg4); color:var(--text); }
.nav-item.active{
  background:var(--accent-bg); color:var(--accent);
}
.nav-item.active svg{ opacity:1; }
.nav-item.active::before{
  content:''; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:3px; height:16px; border-radius:3px; background:var(--accent);
}

.sidebar-footer{ margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
.sidebar-user{ display:flex; align-items:center; gap:10px; padding:8px; }
.sidebar-user-avatar{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:12px; color:#fff;
}
.sidebar-user-name{ font-size:13px; font-weight:700; color:var(--text); }
.sidebar-user-role{ font-size:11px; color:var(--text3); }

/* ============================================================
   MAIN / TOPBAR
   ============================================================ */
.admin-main{
  margin-left:var(--sidebar-w);
  min-height:100vh;
  background:var(--bg2);
}
.admin-topbar{
  position:sticky; top:0; z-index:40;
  height:var(--topbar-h);
  display:flex; align-items:center; gap:14px;
  padding:0 28px;
  background:rgba(13,13,20,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.topbar-breadcrumb{ font-size:13px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; }
.topbar-breadcrumb-sep{ color:var(--text4); }
.topbar-spacer{ flex:1; }
.topbar-icon-btn{
  width:34px; height:34px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--bg4); border:1px solid var(--border); color:var(--text2);
  cursor:pointer; transition:all .16s var(--ease);
}
.topbar-icon-btn:hover{ background:var(--surface2); color:var(--accent); border-color:var(--border2); }
.topbar-icon-btn svg{ width:16px; height:16px; }

.admin-page{ padding:28px 32px 60px; max-width:1480px; }

.page-header{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:26px; flex-wrap:wrap;
}
.page-title{
  font-family:'Space Grotesk',sans-serif; font-size:25px; font-weight:700;
  letter-spacing:-.015em; color:var(--text); position:relative; padding-left:14px;
}
.page-title::before{
  content:''; position:absolute; left:0; top:4px; bottom:4px; width:3px;
  border-radius:3px; background:linear-gradient(180deg,var(--accent),var(--accent2));
}
.page-subtitle{ font-size:13px; color:var(--text3); margin-top:5px; padding-left:14px; }
.page-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}
.stat-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:18px 18px 16px; position:relative; overflow:hidden;
  transition:transform .16s var(--ease), border-color .16s var(--ease);
}
.stat-card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--stat-color,var(--accent));
}
.stat-card:hover{ transform:translateY(-2px); border-color:var(--border2); }
.stat-label{ font-size:11.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; }
.stat-value{ font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:700; color:var(--text); letter-spacing:-.02em; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:20px 22px;
}
.card.hoverable{ transition:transform .16s var(--ease), border-color .16s var(--ease); cursor:pointer; }
.card.hoverable:hover{ transform:translateY(-3px); border-color:var(--border2); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media(max-width:920px){ .two-col{ grid-template-columns:1fr; } }
.section-title{
  font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700;
  color:var(--text); margin-bottom:14px; display:flex; align-items:center; justify-content:space-between;
}

.form-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:22px 24px;
}
.form-panel-title{
  font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:700;
  color:var(--text); margin-bottom:16px;
}
.form-section-label{
  font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.07em;
}
.form-divider{ border-top:1px solid var(--border); margin:6px 0 14px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; }
.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-group-full{ grid-column:1 / -1; }
.form-label{ font-size:11.5px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.05em; }
.required{ color:var(--red); }
.form-hint{ font-size:11px; color:var(--text4); margin-top:2px; }

.form-input,
input[type=text], input[type=number], input[type=password], input[type=email],
input[type=date], input[type=datetime-local], input[type=tel], input[type=file],
select, textarea{
  background:var(--bg4); border:1px solid var(--border); border-radius:var(--r-sm);
  padding:9px 12px; font-size:13.5px; color:var(--text); font-family:inherit; outline:none;
  transition:border-color .15s var(--ease), background .15s var(--ease);
  width:100%;
}
.form-input::placeholder, input::placeholder, textarea::placeholder{ color:var(--text4); }
.form-input:focus, input:focus, select:focus, textarea:focus{
  border-color:var(--accent); background:var(--bg3);
}
textarea.form-input{ resize:vertical; }
select{ cursor:pointer; }
select:disabled{ opacity:.5; cursor:not-allowed; }

.form-check{ display:flex; align-items:center; gap:9px; cursor:pointer; user-select:none; }
.form-check-label{ font-size:13px; color:var(--text2); font-weight:600; }
input[type=checkbox]{ accent-color:var(--accent); width:16px; height:16px; cursor:pointer; }

.img-upload-box{
  border:1.5px dashed var(--border2); border-radius:var(--r); padding:22px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text3); cursor:pointer; transition:border-color .16s var(--ease), background .16s var(--ease);
  text-align:center;
}
.img-upload-box:hover{ border-color:var(--accent); background:var(--accent-bg); color:var(--accent); }
.img-upload-box svg{ width:26px; height:26px; opacity:.7; }
.img-upload-placeholder{ font-size:12.5px; font-weight:600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 18px; border-radius:var(--r-sm); border:none; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.01em;
  transition:transform .12s var(--ease), filter .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:linear-gradient(135deg,var(--accent),#FF8A55); color:#fff; box-shadow:0 6px 18px rgba(255,107,53,.28); }
.btn-primary:hover{ filter:brightness(1.07); }
.btn-secondary{ background:var(--bg4); color:var(--text); border:1px solid var(--border2); }
.btn-secondary:hover{ background:var(--surface2); }
.btn-success{ background:var(--green-bg); color:var(--green); border:1px solid rgba(45,212,130,.28); }
.btn-success:hover{ background:rgba(45,212,130,.2); }
.btn-danger{ background:var(--red-bg); color:var(--red); border:1px solid rgba(255,92,92,.28); }
.btn-danger:hover{ background:rgba(255,92,92,.2); }
.btn-warning{ background:var(--amber-bg); color:var(--amber); border:1px solid rgba(245,193,71,.28); }
.btn-warning:hover{ background:rgba(245,193,71,.2); }
.btn-ghost{ background:transparent; color:var(--text2); border:1px solid var(--border2); }
.btn-ghost:hover{ background:var(--bg4); color:var(--text); }
.btn-sm{ padding:5px 12px; font-size:11.5px; border-radius:7px; }
.btn-lg{ padding:12px 24px; font-size:14px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden;
}
.table-wrap-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--border);
}
.table-wrap-title{ font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:700; color:var(--text); }
.table-responsive{ overflow-x:auto; }

table.admin-table, .area-table, .user-table, .prod-table, table.camp-table{
  width:100%; border-collapse:collapse; font-size:13px;
}
.admin-table thead th, .area-table thead th, .user-table th{
  background:var(--bg3); color:var(--text3); font-size:10.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; text-align:left;
  padding:11px 16px; border-bottom:1px solid var(--border); white-space:nowrap;
}
.admin-table tbody td, .area-table td, .user-table td{
  padding:12px 16px; border-bottom:1px solid var(--border); color:var(--text2); vertical-align:middle;
}
.admin-table tbody tr:last-child td, .area-table tbody tr:last-child td{ border-bottom:none; }
.admin-table tbody tr:hover, .area-table tbody tr:hover, .user-table tr:hover{ background:rgba(255,255,255,.025); }
.td-main{ color:var(--text); font-weight:700; }
.td-muted{ color:var(--text3); }
.td-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.td-img{
  width:38px; height:38px; border-radius:var(--r-sm); overflow:hidden;
  background:var(--bg4); display:flex; align-items:center; justify-content:center; font-size:16px;
  border:1px solid var(--border);
}
.td-img img{ width:100%; height:100%; object-fit:cover; }
.admin-table-empty, .empty-msg{
  text-align:center; padding:48px 20px; color:var(--text3); font-size:13.5px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge{
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 11px; border-radius:30px; font-size:11px; font-weight:700; letter-spacing:.02em;
}
.badge-green{ background:var(--green-bg); color:var(--green); }
.badge-red{ background:var(--red-bg); color:var(--red); }
.badge-amber{ background:var(--amber-bg); color:var(--amber); }
.badge-blue{ background:var(--blue-bg); color:var(--blue); }
.badge-purple{ background:var(--purple-bg); color:var(--purple); }
.status-active{ color:var(--green); font-weight:700; }
.status-passive{ color:var(--red); font-weight:700; }
.role-badge{ display:inline-block; padding:3px 11px; border-radius:30px; font-size:11px; font-weight:700; }
.role-admin, .role-superadmin{ background:var(--red-bg); color:#ff8a8a; }
.role-garson{ background:var(--green-bg); color:var(--green); }
.role-muhasebe, .role-supermuhasebe{ background:var(--amber-bg); color:var(--amber); }
.role-subeadmin{ background:var(--blue-bg); color:var(--blue); }
.role-subemuhasebe{ background:var(--purple-bg); color:var(--purple); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:13px 18px;
}
.filter-bar label{ font-size:12px; font-weight:700; color:var(--text3); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay, .modal{
  position:fixed; inset:0; z-index:1000; display:none;
  background:rgba(5,5,9,.62); backdrop-filter:blur(5px);
  align-items:center; justify-content:center;
  animation:fadeIn .18s var(--ease);
}
.modal-overlay.open, .modal.open{ display:flex; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.modal-box{
  background:var(--bg3); border:1px solid var(--border2); border-radius:var(--r-xl);
  width:560px; max-width:92vw; max-height:88vh; overflow-y:auto;
  box-shadow:var(--shadow-lg);
  animation:modalIn .2s var(--ease);
}
.modal-box-sm{ width:420px; }
@keyframes modalIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--border);
  position:sticky; top:0; background:var(--bg3); z-index:2;
}
.modal-title{ font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--text); }
.modal-close{
  background:var(--bg4); border:1px solid var(--border); color:var(--text2);
  width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s var(--ease);
}
.modal-close:hover{ background:var(--red-bg); color:var(--red); border-color:rgba(255,92,92,.3); }
.modal-body{ padding:20px 22px; }
.modal-foot{
  display:flex; justify-content:flex-end; gap:10px;
  padding:16px 22px; border-top:1px solid var(--border);
  position:sticky; bottom:0; background:var(--bg3);
}

/* ============================================================
   TOAST
   ============================================================ */
.admin-toast, .toast{
  position:fixed; bottom:26px; right:26px; z-index:2000;
  background:var(--bg4); border:1px solid var(--border2); color:var(--text);
  padding:12px 20px; border-radius:var(--r); font-size:13px; font-weight:600;
  box-shadow:var(--shadow);
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:all .25s var(--ease);
}
.admin-toast.show, .toast.show{ opacity:1; transform:translateY(0); }
.admin-toast.success, .toast.success{ background:var(--green); color:#06140d; border-color:var(--green); }
.admin-toast.error, .toast.error{ background:var(--red); color:#1a0606; border-color:var(--red); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,107,53,.10), transparent 45%),
    radial-gradient(circle at 86% 78%, rgba(155,127,255,.08), transparent 45%),
    var(--bg2);
  padding:24px;
}
.login-box{
  width:380px; max-width:100%;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl);
  padding:36px 32px; box-shadow:var(--shadow-lg);
}
.login-logo{ display:flex; align-items:center; gap:11px; margin-bottom:28px; }
.login-logo-mark{
  width:42px; height:42px; border-radius:13px;
  background:linear-gradient(135deg,var(--accent),#FF3D7A 120%);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px; color:#fff;
  box-shadow:0 6px 18px rgba(255,107,53,.35);
}
.login-logo-text{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:19px; color:var(--text); }
.login-title{ font-family:'Space Grotesk',sans-serif; font-size:21px; font-weight:700; color:var(--text); margin-bottom:6px; }
.login-sub{ font-size:13px; color:var(--text3); margin-bottom:24px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-10{ margin-top:10px; } .mb-10{ margin-bottom:10px; }
.text-muted{ color:var(--text3); font-size:12px; }

@media(max-width:1024px){
  .admin-sidebar{ transform:translateX(-100%); transition:transform .2s var(--ease); }
  .admin-main{ margin-left:0; }
}