/* ═══════════════════════════════════════
   ADMIN DASHBOARD — STYLESHEET
   ═══════════════════════════════════════ */

/* ─── TOKENS DARK (default) ─── */
:root {
  --bg:       #0F1117;
  --surface:  #1A1D27;
  --surface2: #222635;
  --surface3: #2A2E40;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.12);
  --text:     #E8E6E1;
  --text-sub: #8A8FA8;
  --text-dim: #555B73;
  --gold:     #C9A84C;
  --gold-lt:  #E2C47A;
  --teal:     #4CC9C9;
  --purple:   #A084E8;
  --red:      #E05252;
  --green:    #52C97A;
  --wine:     #6B1A2A;
  --sidebar-w: 240px;
  --sidebar-w-col: 64px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.4,0,.2,1);
  --r: 10px;
}

/* ─── TOKENS LIGHT ─── */
[data-theme="light"] {
  --bg:       #F4F5F8;
  --surface:  #FFFFFF;
  --surface2: #F0F1F5;
  --surface3: #E8E9EF;
  --border:   rgba(0,0,0,.08);
  --border2:  rgba(0,0,0,.14);
  --text:     #1A1D27;
  --text-sub: #555B73;
  --text-dim: #9EA5BE;
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-weight: 400; line-height: 1.5; overflow-x: hidden; transition: background .3s, color .3s; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, li { list-style: none; }
img { display: block; }
canvas { display: block; width: 100%; }

/* ─── LAYOUT ─── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width .3s var(--ease);
  z-index: 200; overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-w-col); }
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .3s var(--ease);
}
.sidebar.collapsed ~ .main { margin-left: var(--sidebar-w-col); }

/* ─── SIDEBAR HEADER ─── */
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: .75rem; overflow: hidden; }
.brand-icon { width: 32px; height: 32px; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; border-radius: 6px; }
.brand-text { overflow: hidden; white-space: nowrap; }
.brand-name { display: block; font-weight: 600; font-size: .9rem; color: var(--text); }
.brand-sub  { display: block; font-size: .68rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: .1em; }
.sidebar-toggle { color: var(--text-sub); padding: 4px; border-radius: 4px; transition: color .2s, background .2s; flex-shrink: 0; }
.sidebar-toggle:hover { color: var(--text); background: var(--surface2); }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item span:not(.nav-badge),
.sidebar.collapsed .user-info,
.sidebar.collapsed .user-logout { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0 .5rem; }
.sidebar.collapsed .nav-badge { display: none; }

/* ─── SIDEBAR NAV ─── */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-group { margin-bottom: 1.5rem; }
.nav-label { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-dim); padding: 0 1rem; margin-bottom: .4rem; }
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 1rem; margin: 1px .5rem;
  border-radius: 7px; font-size: .85rem; color: var(--text-sub);
  transition: background .15s, color .15s;
  white-space: nowrap; cursor: pointer;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: rgba(201,168,76,.12); color: var(--gold); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; font-size: .65rem; font-weight: 600;
  background: var(--surface3); color: var(--text-sub);
  padding: .1rem .45rem; border-radius: 20px;
}
.nav-badge.new { background: var(--gold); color: #000; }

/* ─── SIDEBAR FOOTER ─── */
.sidebar-footer { padding: .75rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-card { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: 8px; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--gold), var(--wine)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: #fff; flex-shrink: 0; }
.user-info { flex: 1; overflow: hidden; }
.user-name { display: block; font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: .68rem; color: var(--text-sub); white-space: nowrap; }
.user-logout { color: var(--text-dim); padding: 4px; border-radius: 4px; transition: color .2s; }
.user-logout:hover { color: var(--red); }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; background: var(--surface);
  border-bottom: 1px solid var(--border); gap: 1rem; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.mob-menu-btn { display: none; color: var(--text-sub); padding: 4px; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; }
.breadcrumb-root { color: var(--text-dim); }
.breadcrumb svg { color: var(--text-dim); }
.breadcrumb-current { color: var(--text); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.search-wrap { display: flex; align-items: center; gap: .5rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: .35rem .75rem; }
.search-wrap svg { color: var(--text-dim); flex-shrink: 0; }
.topbar-search { background: none; border: none; outline: none; font-size: .82rem; width: 160px; color: var(--text); }
.topbar-search::placeholder { color: var(--text-dim); }
.topbar-icon-btn { position: relative; color: var(--text-sub); padding: 6px; border-radius: 7px; transition: background .15s, color .15s; }
.topbar-icon-btn:hover { background: var(--surface2); color: var(--text); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; border: 2px solid var(--surface); }
.theme-toggle { padding: 6px; border-radius: 7px; cursor: pointer; color: var(--text-sub); transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--surface2); color: var(--text); }
.topbar-date { font-size: .75rem; color: var(--text-dim); white-space: nowrap; font-family: 'JetBrains Mono', monospace; }

/* ─── NOTIFICATION PANEL ─── */
.notif-panel {
  position: fixed; top: calc(var(--topbar-h) + 8px); right: 1.5rem;
  width: 320px; background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r); box-shadow: 0 20px 60px rgba(0,0,0,.4);
  z-index: 300; overflow: hidden;
}
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 600; }
.notif-panel-head button { color: var(--text-sub); font-size: .8rem; }
.notif-item { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(201,168,76,.04); }
.notif-dot-s { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .3rem; }
.notif-item strong { font-size: .82rem; display: block; }
.notif-item p { font-size: .78rem; color: var(--text-sub); }
.notif-item time { font-size: .7rem; color: var(--text-dim); }

/* ─── PAGES ─── */
.page { display: none; padding: 1.5rem; flex: 1; }
.page.active { display: block; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.page-sub { font-size: .82rem; color: var(--text-sub); margin-top: .2rem; }
.page-actions { display: flex; align-items: center; gap: .75rem; }
.period-select, .filter-select {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  font-size: .8rem; padding: .45rem .75rem; border-radius: 7px; cursor: pointer; outline: none;
}
.btn-export {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-sub); font-size: .8rem; padding: .45rem .9rem; border-radius: 7px;
  transition: color .2s, border-color .2s;
}
.btn-export:hover { color: var(--text); border-color: var(--border2); }
.btn-primary-sm {
  background: var(--gold); color: #000; font-size: .8rem; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 7px; transition: opacity .2s, transform .15s;
}
.btn-primary-sm:hover { opacity: .9; transform: translateY(-1px); }

/* ─── KPI GRID ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.kpi-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.kpi-label { font-size: .75rem; font-weight: 500; color: var(--text-sub); text-transform: uppercase; letter-spacing: .08em; }
.kpi-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }
.kpi-icon.ca  { background: rgba(201,168,76,.15); color: var(--gold); }
.kpi-icon.cov { background: rgba(76,201,201,.15); color: var(--teal); }
.kpi-icon.res { background: rgba(160,132,232,.15); color: var(--purple); }
.kpi-icon.note{ background: rgba(82,201,122,.15); color: var(--green); }
.kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 500; line-height: 1; color: var(--text); }
.kpi-unit { font-size: .73rem; color: var(--text-dim); margin: .3rem 0 .5rem; }
.kpi-delta { font-size: .73rem; font-weight: 500; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-spark { width: 100%; height: 36px; margin-top: .75rem; }
.star-row { position: relative; height: 4px; background: var(--surface3); border-radius: 2px; margin-top: .8rem; overflow: hidden; }
.star-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); border-radius: 2px; }

/* ─── CARDS ─── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-title { font-size: .9rem; font-weight: 600; }
.card-sub { font-size: .75rem; color: var(--text-sub); }
.card-link { font-size: .78rem; color: var(--gold); }
.chart-legend { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--text-sub); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.leg-dot.gold { background: var(--gold); }
.leg-dot.teal { background: var(--teal); }
.badge-live { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(82,201,122,.15); color: var(--green); padding: .2rem .55rem; border-radius: 20px; }

/* ─── DASHBOARD GRID ─── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chart-card { grid-column: 1 / 2; }
.service-card { grid-column: 2 / 3; }
.table-card { grid-column: 1 / 2; }
.dishes-card { grid-column: 2 / 3; }
.hour-card { grid-column: 1 / 2; }
.actions-card { grid-column: 2 / 3; }
.chart-wrap { padding: 1rem; }

/* ─── TABLE MAP ─── */
.service-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; padding: 1rem 1.25rem; }
.svc-stat { text-align: center; }
.svc-n { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 500; }
.svc-l { font-size: .7rem; color: var(--text-sub); }
.table-map { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; padding: 0 1.25rem 1rem; }
.t-cell { aspect-ratio: 1; border-radius: 5px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 600; color: var(--text-dim); transition: transform .15s; cursor: default; }
.t-cell:hover { transform: scale(1.1); }
.t-cell.occ  { background: rgba(201,168,76,.2); border-color: rgba(201,168,76,.4); color: var(--gold); }
.t-cell.res  { background: rgba(160,132,232,.15); border-color: rgba(160,132,232,.3); color: var(--purple); }
.t-cell.free { background: rgba(82,201,122,.08); border-color: rgba(82,201,122,.2); color: var(--green); }
.svc-footer { display: flex; gap: 1.5rem; justify-content: center; padding: 0 1.25rem 1rem; }
.svc-legend { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--text-sub); }
.dot { width: 8px; height: 8px; border-radius: 2px; }
.dot-occ  { background: var(--gold); }
.dot-res  { background: var(--purple); }
.dot-free { background: var(--green); }

/* ─── DATA TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { text-align: left; padding: .65rem 1.25rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--surface2); }
.full-table .data-table { display: block; overflow-x: auto; }
.badge-status { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 20px; white-space: nowrap; }
.badge-status.ok  { background: rgba(82,201,122,.12); color: var(--green); }
.badge-status.wait{ background: rgba(201,168,76,.12); color: var(--gold); }
.badge-status.cancel{ background: rgba(224,82,82,.12); color: var(--red); }
.badge-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.table-toolbar { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-search { flex: 1; min-width: 180px; background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: .45rem .75rem; font-size: .82rem; color: var(--text); outline: none; }
.table-search::placeholder { color: var(--text-dim); }
.table-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-sub); }
.action-btns { display: flex; gap: .4rem; }
.action-btn { padding: .25rem .6rem; border-radius: 5px; font-size: .72rem; border: 1px solid var(--border); color: var(--text-sub); transition: color .15s, border-color .15s; }
.action-btn:hover { color: var(--text); border-color: var(--border2); }
.action-btn.del:hover { color: var(--red); border-color: var(--red); }

/* ─── DISHES ─── */
.dishes-list { padding: .75rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.dish-row { display: flex; align-items: center; gap: .75rem; }
.dish-rank { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--text-dim); width: 18px; flex-shrink: 0; text-align: right; }
.dish-name { flex: 1; font-size: .85rem; }
.dish-bar-wrap { width: 100px; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.dish-bar { height: 100%; background: var(--gold); border-radius: 2px; }
.dish-cnt { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--text-sub); width: 30px; text-align: right; }

/* ─── HOUR BARS ─── */
.hour-bars { display: flex; align-items: flex-end; gap: 6px; padding: 1rem 1.25rem; height: 120px; }
.h-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.h-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--surface3); position: relative; transition: background .2s; flex-shrink: 0; }
.h-bar.peak { background: var(--gold); }
.h-bar.mid  { background: rgba(201,168,76,.45); }
.h-label { font-size: .58rem; color: var(--text-dim); white-space: nowrap; }

/* ─── QUICK ACTIONS ─── */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1rem 1.25rem; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; padding: 1.25rem .75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; font-size: .8rem; color: var(--text-sub);
  transition: background .15s, border-color .15s, color .15s;
}
.quick-btn svg { width: 22px; height: 22px; }
.quick-btn:hover { background: var(--surface3); border-color: var(--border2); color: var(--gold); }

/* ─── ORDERS ─── */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.order-num { font-weight: 600; font-size: .85rem; }
.order-time { font-size: .72rem; color: var(--text-sub); font-family: 'JetBrains Mono', monospace; }
.order-items { padding: .75rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.order-item { display: flex; justify-content: space-between; font-size: .8rem; }
.order-item span:last-child { color: var(--text-sub); }
.order-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.order-total { font-family: 'JetBrains Mono', monospace; font-size: .9rem; font-weight: 600; color: var(--gold); }
.order-status { font-size: .72rem; }

/* ─── MENU ADMIN ─── */
.menu-tabs-admin { display: flex; gap: 0; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.tab-a { padding: .65rem 1.25rem; font-size: .82rem; color: var(--text-sub); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tab-a.active { color: var(--gold); border-bottom-color: var(--gold); }
.menu-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; }
.menu-admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.mac-head { display: flex; justify-content: space-between; align-items: start; padding: 1rem; border-bottom: 1px solid var(--border); }
.mac-name { font-weight: 600; font-size: .9rem; }
.mac-price { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--gold); }
.mac-body { padding: .75rem 1rem; }
.mac-desc { font-size: .8rem; color: var(--text-sub); line-height: 1.5; margin-bottom: .75rem; }
.mac-footer { display: flex; align-items: center; justify-content: space-between; }
.mac-tag { font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(201,168,76,.12); color: var(--gold); padding: .15rem .5rem; border-radius: 4px; }
.mac-actions { display: flex; gap: .4rem; }
.mac-btn { padding: .3rem .65rem; border-radius: 5px; font-size: .72rem; background: var(--surface2); border: 1px solid var(--border); color: var(--text-sub); transition: all .15s; }
.mac-btn:hover { color: var(--text); }
.mac-btn.mac-del:hover { color: var(--red); border-color: var(--red); }

/* ─── CLIENTS ─── */
.fidelity { display: flex; gap: 2px; }
.fidelity-star { font-size: .7rem; }
.fidelity-star.on { color: var(--gold); }
.fidelity-star.off { color: var(--text-dim); }

/* ─── STAFF ─── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.staff-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; text-align: center; transition: border-color .2s; }
.staff-card:hover { border-color: var(--border2); }
.staff-av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--wine)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; margin: 0 auto .75rem; }
.staff-name { font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.staff-role { font-size: .75rem; color: var(--text-sub); margin-bottom: .6rem; }
.staff-status { display: inline-block; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 20px; }
.staff-status.on { background: rgba(82,201,122,.1); color: var(--green); }
.staff-status.off { background: rgba(138,143,168,.1); color: var(--text-sub); }

/* ─── FINANCE ─── */
.finance-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.fin-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.fin-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-sub); margin-bottom: .5rem; }
.fin-kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 500; }
.fin-kpi-delta { font-size: .73rem; margin-top: .3rem; }

/* ─── REVIEWS ─── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.review-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: .75rem; }
.review-name { font-weight: 600; font-size: .88rem; }
.review-date { font-size: .72rem; color: var(--text-sub); }
.review-stars { color: var(--gold); font-size: .85rem; margin-bottom: .6rem; }
.review-text { font-size: .82rem; color: var(--text-sub); line-height: 1.6; }

/* ─── SETTINGS ─── */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 1.25rem; }
.settings-section { padding: 1.5rem; }
.settings-title { font-size: .95rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.settings-form { display: flex; flex-direction: column; gap: .85rem; }
.sf-group { display: flex; flex-direction: column; gap: .3rem; }
.sf-group label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-sub); }
.sf-group input, .sf-group textarea {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 7px;
  padding: .5rem .75rem; font-size: .85rem; color: var(--text); outline: none; transition: border-color .2s;
}
.sf-group input:focus, .sf-group textarea:focus { border-color: var(--gold); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: .25rem 0; }
.toggle-row span:first-child { font-size: .85rem; }
.toggle-row input { display: none; }
.tog { width: 36px; height: 20px; background: var(--surface3); border-radius: 10px; position: relative; transition: background .2s; flex-shrink: 0; }
.tog::after { content: ''; width: 14px; height: 14px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s; }
.toggle-row input:checked + .tog { background: var(--gold); }
.toggle-row input:checked + .tog::after { transform: translateX(16px); }

/* ─── MODAL ─── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; width: 100%; max-width: 520px; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 1rem; font-weight: 600; }
.modal-close { color: var(--text-sub); font-size: .9rem; padding: 4px 8px; border-radius: 5px; }
.modal-close:hover { color: var(--text); background: var(--surface2); }
.modal-form { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mf-group { display: flex; flex-direction: column; gap: .3rem; }
.mf-group label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-sub); }
.mf-group input, .mf-group select, .mf-group textarea {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 7px;
  padding: .5rem .75rem; font-size: .85rem; color: var(--text); outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.mf-group input:focus, .mf-group select:focus, .mf-group textarea:focus { border-color: var(--gold); }
.mf-group select option { background: var(--surface); }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; padding-top: .5rem; }
.btn-cancel { background: var(--surface2); border: 1px solid var(--border); color: var(--text-sub); font-size: .82rem; padding: .5rem 1.1rem; border-radius: 7px; }
.btn-cancel:hover { color: var(--text); }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 600; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--surface); border: 1px solid var(--border2); border-left: 3px solid var(--gold); border-radius: 8px; padding: .75rem 1rem; font-size: .82rem; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: toastIn .3s var(--ease); }
.toast.error { border-left-color: var(--red); }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .finance-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .chart-card, .service-card, .table-card, .dishes-card, .hour-card, .actions-card { grid-column: 1; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; transition: transform .3s var(--ease); }
  .sidebar.mob-open { transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(-100%); }
  .main { margin-left: 0 !important; }
  .mob-menu-btn { display: flex; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar-search { width: 100px; }
  .topbar-date { display: none; }
  .modal-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .finance-kpis { grid-template-columns: 1fr; }
  .page { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .search-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
