/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --primary:       #F97316;
  --primary-dark:  #EA6C08;
  --primary-light: #FFF7ED;
  --primary-glow:  rgba(249,115,22,.18);
  --sidebar:       #0F172A;
  --sidebar2:      #1E293B;
  --sidebar3:      #334155;
  --green:         #22C55E;
  --green-light:   #DCFCE7;
  --green-dark:    #16A34A;
  --red:           #EF4444;
  --red-light:     #FEF2F2;
  --yellow:        #EAB308;
  --yellow-light:  #FEFCE8;
  --blue:          #3B82F6;
  --blue-light:    #EFF6FF;
  --purple:        #8B5CF6;
  --purple-light:  #F5F3FF;
  --bg:            #F1F5F9;
  --card:          #FFFFFF;
  --border:        #E2E8F0;
  --text:          #0F172A;
  --text-2:        #334155;
  --text-muted:    #64748B;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;
  --shadow-xs:     0 1px 3px rgba(0,0,0,.06);
  --shadow:        0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,.12);
  --shadow-xl:     0 24px 64px rgba(0,0,0,.16);
  --font:          'Inter', system-ui, sans-serif;
  --transition:    .18s cubic-bezier(.4,0,.2,1);
}

/* ── DARK MODE ── */
body.dark {
  --bg:         #0F172A;
  --card:       #1E293B;
  --border:     #334155;
  --text:       #F1F5F9;
  --text-2:     #CBD5E1;
  --text-muted: #94A3B8;
  --primary-light: rgba(249,115,22,.15);
  --green-light:   rgba(34,197,94,.15);
  --red-light:     rgba(239,68,68,.15);
  --yellow-light:  rgba(234,179,8,.15);
  --blue-light:    rgba(59,130,246,.15);
  --purple-light:  rgba(139,92,246,.15);
  --shadow-xs: 0 1px 3px rgba(0,0,0,.3);
  --shadow:    0 4px 20px rgba(0,0,0,.4);
}
body.dark .login-right    { background: #1E293B; }
body.dark .login-left     { background: #0F172A; }
body.dark input, body.dark select, body.dark textarea {
  background: #0F172A; color: var(--text); border-color: var(--border);
}
body.dark .kitchen-ticket-header { background: #0F172A; }
body.dark .stat-card { background: var(--card); }
body.dark .nav-item:hover { background: rgba(255,255,255,.06); }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); height: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
input, select, button, textarea { font-family: inherit; }
button { cursor: pointer; border: none; outline: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--sidebar); color: white; padding: 14px 18px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; min-width: 260px;
  animation: slideUp .3s var(--transition);
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: var(--blue); }
.toast-icon { font-size: 18px; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── LOGIN ── */
#login-screen {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
}
.login-left {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.login-right {
  width: 480px; min-height: 100vh; background: var(--card);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 52px; box-shadow: var(--shadow-xl);
}
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 48px; }
.login-brand-icon {
  width: 52px; height: 52px; background: var(--primary); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.login-brand-name { font-size: 26px; font-weight: 800; color: var(--text); }
.login-brand-tagline { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.login-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.login-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 36px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-field input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; transition: border-color var(--transition), box-shadow var(--transition);
  background: #FAFAFA;
}
.form-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: white; }
.login-btn {
  width: 100%; padding: 14px; background: var(--primary); color: white;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 8px; box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.login-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,.4); }
.login-btn:active { transform: translateY(0); }
.login-roles { display: flex; gap: 8px; margin-top: 28px; }
.role-chip {
  flex: 1; padding: 8px 4px; border-radius: var(--radius-xs);
  text-align: center; font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
}
.role-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.login-decoration { text-align: center; }
.login-decoration h2 { font-size: 36px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 16px; }
.login-decoration p { color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.6; max-width: 400px; }
.login-features { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.login-feature { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.8); font-size: 14px; }
.login-feature-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }

/* ── APP LAYOUT ── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── */
#sidebar {
  width: 240px; min-width: 240px; background: var(--sidebar);
  display: flex; flex-direction: column; transition: width var(--transition), min-width var(--transition);
  overflow: hidden; z-index: 50; position: relative;
}
#sidebar.collapsed { width: 68px; min-width: 68px; }
#sidebar.collapsed .sidebar-brand-name,
#sidebar.collapsed .nav-label,
#sidebar.collapsed .nav-badge-text,
#sidebar.collapsed .sidebar-user-info { display: none !important; }
#sidebar.collapsed .sidebar-brand { padding: 20px 0; justify-content: center; }
#sidebar.collapsed .nav-item { justify-content: center; padding: 13px; }
#sidebar.collapsed .sidebar-user { justify-content: center; padding: 16px 0; }

.sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.sidebar-brand-name { font-size: 17px; font-weight: 800; color: white; white-space: nowrap; }
.sidebar-brand-version { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 1px; }

.nav-section { padding: 10px 12px 4px; flex-shrink: 0; }
.nav-section-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .8px; text-transform: uppercase; padding: 0 6px; }

.nav-list { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  color: rgba(255,255,255,.55); font-size: 14px; font-weight: 500;
  transition: all var(--transition); position: relative; margin-bottom: 2px; white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(249,115,22,.35); }
.nav-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge-text {
  background: rgba(255,255,255,.2); color: white; border-radius: 20px;
  padding: 2px 7px; font-size: 11px; font-weight: 700; margin-left: auto;
}
.nav-item.active .nav-badge-text { background: rgba(255,255,255,.25); }
.nav-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  position: absolute; top: 10px; left: 26px; border: 2px solid var(--sidebar);
  display: none;
}
#sidebar.collapsed .nav-badge-dot { display: block; }

.sidebar-user {
  display: flex; align-items: center; gap: 11px; padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
  cursor: pointer; transition: background var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white;
}
.sidebar-user-name { font-size: 14px; font-weight: 600; color: white; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }
.sidebar-logout { margin-left: auto; color: rgba(255,255,255,.35); font-size: 16px; padding: 4px; transition: color var(--transition); }
.sidebar-logout:hover { color: var(--red); }

/* ── MAIN ── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── TOPBAR ── */
#topbar {
  background: var(--card); height: 64px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-toggle {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs); background: var(--bg); color: var(--text-muted);
  font-size: 18px; transition: all var(--transition);
}
.topbar-toggle:hover { background: var(--border); color: var(--text); }
#page-title { font-size: 20px; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-time { font-size: 22px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.topbar-date { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.topbar-badge {
  padding: 6px 14px; background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}
.topbar-badge:hover { background: var(--primary); color: white; }

/* ── PAGES ── */
.page { display: none; flex: 1; overflow-y: auto; padding: 28px; }
.page.active { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-xs); font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(249,115,22,.4); transform: translateY(-1px); }
.btn-success { background: var(--green); color: white; box-shadow: 0 2px 8px rgba(34,197,94,.3); }
.btn-success:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-danger  { background: var(--red); color: white; }
.btn-danger:hover  { background: #DC2626; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost   { background: var(--bg); color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-xs); background: var(--bg); color: var(--text-muted); border: 1.5px solid var(--border); font-size: 16px; }
.btn-icon:hover { background: var(--border); color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ── CARDS ── */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-xs);
  border: 1px solid var(--border); overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px 22px; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  opacity: .08;
}
.stat-card.orange::before { background: var(--primary); }
.stat-card.green::before  { background: var(--green); }
.stat-card.blue::before   { background: var(--blue); }
.stat-card.purple::before { background: var(--purple); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.stat-card.orange .stat-icon { background: var(--primary-light); }
.stat-card.green  .stat-icon { background: var(--green-light); }
.stat-card.blue   .stat-icon { background: var(--blue-light); }
.stat-card.purple .stat-icon { background: var(--purple-light); }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-card.orange .stat-value { color: var(--primary); }
.stat-card.green  .stat-value { color: var(--green-dark); }
.stat-card.blue   .stat-value { color: var(--blue); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-trend { font-size: 12px; margin-top: 6px; font-weight: 600; }
.stat-trend.up { color: var(--green); }
.stat-trend.neutral { color: var(--text-muted); }

/* ── DASHBOARD GRID ── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid .full { grid-column: 1 / -1; }
.dash-list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); transition: background var(--transition); cursor: pointer;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item:hover { background: var(--bg); }
.dash-list-name { flex: 1; font-size: 14px; font-weight: 600; }
.dash-list-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dash-list-value { font-size: 15px; font-weight: 800; color: var(--green-dark); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-empty    { background: #F0FDF4; color: #16A34A; }
.badge-occupied { background: var(--red-light); color: var(--red); }
.badge-reserved { background: var(--yellow-light); color: #A16207; }
.badge-bill     { background: #EFF6FF; color: var(--blue); }
.badge-pending  { background: var(--yellow-light); color: #A16207; }
.badge-preparing{ background: #FFF7ED; color: var(--primary); }
.badge-ready    { background: var(--green-light); color: var(--green-dark); }
.badge-served   { background: #F1F5F9; color: var(--text-muted); }
.badge-paid     { background: var(--green-light); color: var(--green-dark); }
.badge-confirmed{ background: var(--green-light); color: var(--green-dark); }
.badge-cancelled{ background: var(--red-light); color: var(--red); }

/* ── TOOLBAR ── */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.toolbar-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.filter-pill {
  padding: 7px 15px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 2px 8px rgba(249,115,22,.25); }

/* ── TABLES PAGE ── */
.section-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.section-tab {
  padding: 9px 18px; font-size: 14px; font-weight: 600; background: none;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.section-tab:hover { color: var(--primary); }
.section-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.table-card {
  background: var(--card); border-radius: var(--radius); padding: 20px 16px;
  text-align: center; cursor: pointer; border: 2px solid var(--border);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.table-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,.08));
  pointer-events: none;
}
.table-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.table-card.empty    { border-color: #BBF7D0; background: linear-gradient(145deg, #fff, #F0FDF4); }
.table-card.occupied { border-color: #FECACA; background: linear-gradient(145deg, #fff, #FEF2F2); }
.table-card.reserved { border-color: #FDE68A; background: linear-gradient(145deg, #fff, #FEFCE8); }
.table-card.bill     { border-color: #BFDBFE; background: linear-gradient(145deg, #fff, #EFF6FF); }
.table-card-icon { font-size: 38px; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.1)); }
.table-card-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.table-card-cap  { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.table-card-total { font-size: 16px; font-weight: 800; color: var(--green-dark); margin-top: 6px; }
.table-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: absolute; top: 10px; right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.table-options-btn {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 6px; background: rgba(0,0,0,.06); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.table-card:hover .table-options-btn { opacity: 1; }

/* ── ORDERS PAGE ── */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow var(--transition); box-shadow: var(--shadow-xs);
}
.order-card:hover { box-shadow: var(--shadow); }
.order-card-header {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: #FAFAFA;
}
.order-id { font-size: 16px; font-weight: 800; color: var(--primary); min-width: 50px; }
.order-table-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--primary-light); color: var(--primary);
}
.order-time-tag { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.order-card-body { padding: 12px 18px; display: flex; align-items: center; gap: 16px; }
.order-items-preview { flex: 1; font-size: 13px; color: var(--text-2); }
.order-total { font-size: 20px; font-weight: 800; color: var(--green-dark); }
.order-card-footer { display: flex; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--border); background: #FAFAFA; }

/* ── KITCHEN ── */
.kitchen-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.kitchen-stats { display: flex; gap: 20px; }
.kitchen-stat { font-size: 15px; font-weight: 700; padding: 8px 16px; border-radius: 20px; }
.kitchen-stat.pending   { background: var(--yellow-light); color: #A16207; }
.kitchen-stat.preparing { background: #FFF7ED; color: var(--primary); }
.kitchen-stat.ready     { background: var(--green-light); color: var(--green-dark); }
.kitchen-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.kitchen-col { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.kitchen-col-header {
  padding: 14px 18px; font-size: 14px; font-weight: 800; letter-spacing: .3px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.kitchen-col-header.pending   { background: #FEFCE8; color: #A16207; }
.kitchen-col-header.preparing { background: var(--primary-light); color: var(--primary-dark); }
.kitchen-col-header.ready     { background: var(--green-light); color: var(--green-dark); }
.kitchen-col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 100px; }
.kitchen-ticket {
  background: var(--card); border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.kitchen-ticket:hover { box-shadow: var(--shadow-md); }
.kitchen-ticket-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 16px; background: #FAFAFA; border-bottom: 1px solid var(--border);
  font-weight: 800; font-size: 16px; gap: 8px;
}
.kitchen-timer {
  padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 800;
}
.timer-ok   { background: var(--green-light); color: var(--green-dark); }
.timer-warn { background: var(--yellow-light); color: #A16207; }
.timer-late { background: var(--red-light); color: var(--red); animation: timerPulse 1s infinite; }
@keyframes timerPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes kds-pulse  { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.4)} 50%{box-shadow:0 0 0 8px rgba(220,38,38,0)} }
.kitchen-ticket-note { padding: 8px 16px; background: #FFFBEB; font-size: 13px; color: #92400E; border-bottom: 1px solid #FDE68A; }
.kitchen-ticket-items { padding: 10px 16px; }
.kitchen-ticket-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 16px; flex-wrap: wrap; }
.kitchen-ticket-item:last-child { border-bottom: none; }
.kit-qty { background: var(--primary); color: white; border-radius: 6px; padding: 4px 10px; font-weight: 900; font-size: 18px; min-width: 36px; text-align: center; }
.kit-item-note { font-size: 12px; color: #e67e22; width: 100%; padding-left: 46px; }
.kitchen-ticket-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ── CASHIER ── */
.cashier-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 116px); }
.cashier-sidebar { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.cashier-main { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.cashier-table-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition);
}
.cashier-table-item:hover { background: var(--bg); }
.cashier-table-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.cashier-table-icon { font-size: 22px; }
.cashier-table-name { flex: 1; font-weight: 700; font-size: 14px; }
.cashier-table-total { font-weight: 800; color: var(--green-dark); font-size: 15px; }

/* BILL */
.bill-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bill-title { font-size: 22px; font-weight: 800; }
.bill-items { margin-bottom: 16px; }
.bill-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bill-item-emoji { font-size: 18px; }
.bill-item-name { flex: 1; }
.bill-item-qty { color: var(--text-muted); font-size: 13px; }
.bill-item-price { font-weight: 700; color: var(--text-2); }
.bill-totals { border-top: 2px solid var(--border); padding-top: 14px; }
.bill-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.bill-total-grand { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 24px; font-weight: 900; color: var(--text); margin-top: 8px; border-top: 1px solid var(--border); }
.bill-total-grand span:last-child { color: var(--primary); }
.bill-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── ORDER PANEL (FULL SCREEN) ── */
#order-panel {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: var(--bg);
}
.op-header {
  background: var(--card); padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; flex-shrink: 0; box-shadow: var(--shadow-xs);
}
.op-header-info h2 { font-size: 20px; font-weight: 800; }
.op-header-info p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.op-body { display: flex; flex: 1; overflow: hidden; }

/* Left: Order items */
.op-left {
  width: 380px; min-width: 380px; background: var(--card);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
}
.op-left-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.op-items { flex: 1; overflow-y: auto; padding: 12px; }
.op-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid var(--border);
}
.op-item-emoji { font-size: 24px; flex-shrink: 0; }
.op-item-info { flex: 1; min-width: 0; }
.op-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-item-price { font-size: 13px; color: var(--text-muted); }
.op-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 7px; background: var(--card);
  border: 1.5px solid var(--border); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.qty-val { font-weight: 800; font-size: 15px; min-width: 22px; text-align: center; }
.op-item-total { font-weight: 800; font-size: 14px; color: var(--green-dark); min-width: 58px; text-align: right; }
.op-remove { color: var(--red); opacity: .5; transition: opacity var(--transition); font-size: 16px; padding: 4px; background: none; }
.op-remove:hover { opacity: 1; }
.op-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.op-empty-icon { font-size: 48px; margin-bottom: 12px; }

.op-bottom { padding: 16px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.op-totals { margin-bottom: 14px; }
.op-total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 3px 0; }
.op-total-grand { display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.op-total-grand span:last-child { color: var(--primary); }
.op-note input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.op-note input:focus { outline: none; border-color: var(--primary); }
.op-btns { display: flex; gap: 8px; }
.op-btns .btn { flex: 1; padding: 12px; font-size: 14px; }

/* Right: Menu */
.op-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.menu-search-bar { padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--border); }
.menu-search-bar input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); }
.menu-search-bar input:focus { outline: none; border-color: var(--primary); background: white; }
.menu-search-wrap { position: relative; }
.menu-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; pointer-events: none; }
.menu-cats { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--card); }
.menu-cat-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  white-space: nowrap; background: var(--bg); color: var(--text-muted);
  border: 1.5px solid var(--border); transition: all var(--transition); cursor: pointer;
}
.menu-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-cat-btn.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.menu-items-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; padding: 16px 18px; align-content: start; }
.menu-item-card {
  background: var(--card); border-radius: var(--radius-sm); padding: 16px 12px;
  text-align: center; cursor: pointer; border: 2px solid var(--border);
  transition: all var(--transition); position: relative;
}
.menu-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.menu-item-card:active { transform: translateY(0); }
.menu-item-card.unavailable { opacity: .4; pointer-events: none; }
.menu-card-emoji { font-size: 34px; margin-bottom: 8px; }
.menu-card-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.menu-card-price { font-size: 16px; font-weight: 900; color: var(--primary); }
.menu-card-add {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  background: var(--primary); color: white; border-radius: 6px; font-size: 14px;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity var(--transition);
}
.menu-item-card:hover .menu-card-add { opacity: 1; }

/* ── PAYMENT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--card); border-radius: var(--radius); width: 480px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
  animation: modalIn .2s var(--transition);
}
@keyframes modalIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.modal-close:hover { background: var(--red-light); color: var(--red); }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: white;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* PAYMENT METHODS */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pay-method-btn {
  padding: 14px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  text-align: center; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); background: var(--card);
}
.pay-method-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pay-method-btn.active { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(249,115,22,.3); }
.pay-method-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.payment-summary { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; max-height: 180px; overflow-y: auto; }
.payment-summary-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.payment-total-box { background: var(--primary-light); border-radius: var(--radius-sm); padding: 14px 18px; text-align: center; margin-bottom: 16px; }
.payment-total-label { font-size: 13px; color: var(--primary-dark); font-weight: 600; margin-bottom: 4px; }
.payment-total-value { font-size: 32px; font-weight: 900; color: var(--primary); }
.cash-calc { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.cash-calc label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.change-display { display: flex; justify-content: space-between; margin-top: 10px; background: var(--green-light); border-radius: 8px; padding: 10px 14px; font-weight: 700; color: var(--green-dark); }

/* ── RECEIPT ── */
.receipt-paper {
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.9;
  max-width: 340px; margin: 0 auto; background: white;
}
.receipt-header { text-align: center; margin-bottom: 10px; }
.receipt-divider { border: none; border-top: 1px dashed #999; margin: 8px 0; }
.receipt-row { display: flex; justify-content: space-between; }
.receipt-grand { display: flex; justify-content: space-between; font-weight: 900; font-size: 16px; border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 6px 0; margin: 8px 0; }
.receipt-footer { text-align: center; margin-top: 12px; font-size: 12px; color: #666; }

/* ── REPORTS ── */
.reports-toolbar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.reports-toolbar label { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; flex-direction: column; gap: 5px; }
.reports-toolbar input { padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.report-stat { background: var(--card); border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--border); text-align: center; }
.report-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.report-stat-value { font-size: 26px; font-weight: 900; color: var(--primary); }
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reports-grid .span-2 { grid-column: 1 / -1; }
.chart-wrap { padding: 20px; min-height: 220px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bar-fill { width: 100%; border-radius: 5px 5px 0 0; min-height: 4px; transition: height .4s ease; }
.bar-label { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.2; }
.bar-val { font-size: 10px; font-weight: 700; color: var(--text-2); }
.top-items-list { padding: 0 22px 16px; }
.top-item-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.top-item-rank { font-size: 13px; font-weight: 800; color: var(--text-muted); min-width: 22px; }
.top-item-emoji { font-size: 20px; }
.top-item-name { flex: 1; font-size: 14px; font-weight: 600; }
.top-item-bar-wrap { width: 100px; background: var(--bg); border-radius: 20px; height: 6px; overflow: hidden; }
.top-item-bar { height: 100%; background: var(--primary); border-radius: 20px; }
.top-item-qty { font-size: 13px; font-weight: 800; color: var(--text-2); min-width: 36px; text-align: right; }

/* ── MENU MANAGEMENT ── */
.menu-mgmt-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.menu-cat-list { display: flex; flex-direction: column; }
.cat-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition);
}
.cat-row:hover { background: var(--bg); }
.cat-row.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.cat-row-icon { font-size: 22px; }
.cat-row-name { flex: 1; font-weight: 600; font-size: 14px; }
.cat-row-count { font-size: 12px; color: var(--text-muted); }
.menu-item-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.menu-item-row:hover { background: var(--bg); }
.menu-item-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.menu-item-info { flex: 1; }
.menu-item-name { font-size: 15px; font-weight: 700; }
.menu-item-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.menu-item-price { font-size: 18px; font-weight: 900; color: var(--green-dark); min-width: 70px; text-align: right; }
.menu-item-actions { display: flex; gap: 6px; }

/* TOGGLE */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #CBD5E1; border-radius: 24px; transition: .25s; cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .25s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
input:checked + .toggle-slider { background: var(--green); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── STAFF ── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.staff-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.staff-avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: white; flex-shrink: 0; }
.staff-info { flex: 1; }
.staff-name { font-size: 15px; font-weight: 700; }
.staff-role-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.staff-actions { display: flex; gap: 6px; }

/* ROLE COLORS */
.role-admin   { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.role-waiter  { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.role-kitchen { background: linear-gradient(135deg, #F97316, #C2410C); }
.role-cashier { background: linear-gradient(135deg, #22C55E, #15803D); }

/* ── SETTINGS ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-form { padding: 20px 22px; display: flex; flex-direction: column; gap: 0; }
.settings-section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin: 22px 0 12px; padding: 0 2px; }
.settings-grid > .card { transition: transform var(--transition), box-shadow var(--transition); }
.settings-grid > .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.form-help { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.settings-account-card { transition: transform var(--transition), box-shadow var(--transition); }
.settings-account-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,101,52,.15); }

/* Toggle row (checkbox + label) */
.toggle-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--text); transition: border-color .2s; }
.toggle-row:hover { border-color: var(--primary); }
.toggle-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
body.dark .toggle-row { background: rgba(255,255,255,.03); }

/* KDS compact mode */
body.kds-compact .kds-ticket { padding: 8px 10px; font-size: 13px; }
body.kds-compact .kds-ticket-header { font-size: 13px; }
body.kds-compact .kds-items { gap: 4px; }
body.kds-compact .kds-item { padding: 4px 6px; font-size: 13px; }
body.kds-compact .kds-cols { gap: 10px; padding: 12px; }
body.kds-compact .kds-col-body { padding: 8px; gap: 8px; }

/* ── SUBSCRIPTION PAGE ── */
.sub-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sub-plan-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.sub-plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.1); border-color: var(--primary); }
.sub-plan-card.featured { border: 2px solid var(--primary); position: relative; }
.sub-plan-card.featured::before { content: 'ÖNERİLEN'; position: absolute; top: -10px; right: 16px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; letter-spacing: .5px; }
.sub-plan-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.sub-plan-price { font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.sub-plan-price small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sub-plan-features { list-style: none; padding: 0; margin: 16px 0; flex: 1; }
.sub-plan-features li { padding: 6px 0; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.sub-plan-features li::before { content: '✓'; color: #15803D; font-weight: 800; }

@media (max-width: 900px) {
  .sub-plans-grid { grid-template-columns: 1fr; }
}

/* ── RESERVATIONS ── */
.reservation-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; transition: background var(--transition); cursor: pointer; }
.reservation-card:hover { background: var(--bg); }
.res-time-block { text-align: center; min-width: 70px; }
.res-time { font-size: 22px; font-weight: 900; color: var(--primary); }
.res-date-sub { font-size: 11px; color: var(--text-muted); }
.res-info { flex: 1; }
.res-name { font-size: 15px; font-weight: 700; }
.res-details { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.res-actions { display: flex; gap: 6px; align-items: center; }

/* ── ACTIVITY LOG ── */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex-shrink: 0; }
.activity-meta { color: var(--text-muted); margin-top: 2px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-muted); }
.empty-icon { font-size: 56px; margin-bottom: 14px; opacity: .5; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.empty-desc { font-size: 14px; }

/* ── LOADING ── */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PRINT ── */
@media print {
  body > *:not(#print-frame) { display: none !important; }
  #print-frame { display: block !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .kitchen-cols { grid-template-columns: 1fr; }
  .cashier-layout { grid-template-columns: 1fr; }
}

/* ── ORDER PANEL: tablet/mobile (cart becomes slide-up bottom sheet) ── */
.op-sheet-close { display: none; }
.op-cart-bar { display: none; }
.op-sheet-backdrop { display: none; }

@media (max-width: 900px) {
  /* Menü tam genişlikte; sepet alt-panel olarak slide-up yapar */
  .op-body { flex-direction: column; }
  .op-right { flex: 1; min-height: 0; }
  .menu-items-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  .op-left {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; min-width: 0; max-height: 85vh;
    border-right: none; border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.25);
    transform: translateY(110%); transition: transform .25s ease;
    z-index: 220;
  }
  .op-left.sheet-open { transform: translateY(0); }
  .op-left-header { display: flex; align-items: center; justify-content: space-between; }
  .op-sheet-close {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; background: var(--bg);
    font-size: 16px; color: var(--text-muted);
  }

  /* Sabit alt çubuk — ürün sayısı + toplam + aç */
  .op-cart-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    padding: 14px 20px; background: var(--primary); color: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2); cursor: pointer;
  }
  .op-cart-bar-info { display: flex; flex-direction: column; gap: 2px; }
  .op-cart-bar-count { font-size: 12px; opacity: .85; }
  .op-cart-bar-total { font-size: 20px; font-weight: 900; }
  .op-cart-bar-action { font-size: 14px; font-weight: 700; }

  .op-sheet-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.5);
    z-index: 215; opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .op-sheet-backdrop.show { display: block; opacity: 1; pointer-events: auto; }

  /* Menü ızgarasının altında çubuk için boşluk bırak */
  .op-right .menu-items-grid { padding-bottom: 80px; }
}

@media (max-width: 768px) {
  /* ── SIDEBAR: off-canvas drawer ── */
  #sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: 240px; min-width: 240px;
    transform: translateX(-100%); transition: transform .25s ease; z-index: 400;
  }
  #sidebar.mobile-open { transform: translateX(0); }
  #sidebar.collapsed { width: 240px; min-width: 240px; }
  #sidebar.collapsed .sidebar-brand-name, #sidebar.collapsed .nav-label,
  #sidebar.collapsed .nav-badge-text, #sidebar.collapsed .sidebar-user-info { display: revert !important; }
  #sidebar.collapsed .nav-item { justify-content: flex-start; padding: 11px 12px; }
  #sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 390;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  #sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

  /* ── TOPBAR: compact ── */
  #topbar { padding: 0 14px; height: 56px; }
  #page-title { font-size: 16px; }
  .topbar-time { font-size: 17px; }
  .topbar-date { display: none; }
  .topbar-left { gap: 10px; }
  .topbar-right { gap: 8px; }

  /* ── PAGES & GRIDS ── */
  .page { padding: 16px 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; }
  .dash-grid, .reports-grid, .settings-grid, .menu-mgmt-layout,
  .sub-plans-grid, .cashier-layout, .z-report-layout,
  .staff-grid { grid-template-columns: 1fr !important; }
  .report-stats, .dev-stats-grid, .z-stats-grid,
  .kitchen-stats { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .tables-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── CARD HEADERS wrap ── */
  .card-header { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .card-body { padding: 14px 16px; }

  /* ── MODALS: full-width, scrollable ── */
  .modal-box { width: calc(100vw - 24px) !important; max-width: 480px; max-height: 88vh; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 110px; }
  .form-row { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }

  /* ── DATA TABLES: horizontal scroll ── */
  .table-wrap, .data-table-wrap,
  [style*="overflow-x"] { -webkit-overflow-scrolling: touch; }

  /* ── ORDER PANEL HEADER ── */
  .op-header { padding: 12px 14px; gap: 10px; }
  .op-header-info h2 { font-size: 17px; }

  /* ── LOGIN ── */
  .login-left { display: none; }
  .login-right { width: 100%; padding: 32px 20px; }

  /* ── TOUCH TARGETS ── */
  .btn { padding: 10px 16px; }
  .btn-sm { padding: 8px 13px; }
  .nav-item { padding: 13px 12px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tables-grid { grid-template-columns: 1fr 1fr; }
}

/* ── STOCK PAGE ── */
.stock-item-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.stock-item-row:hover { background: var(--bg); }
.stock-item-emoji { font-size: 28px; width: 40px; text-align: center; flex-shrink: 0; }
.stock-item-info { flex: 1; }
.stock-item-name { font-size: 14px; font-weight: 700; }
.stock-item-cat  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stock-qty-input {
  width: 80px; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); font-size: 14px; font-weight: 700; text-align: center;
}
.stock-qty-input:focus { outline: none; border-color: var(--primary); }
.stock-unit { font-size: 13px; color: var(--text-muted); width: 40px; }
.stock-low-badge { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--red-light); color: var(--red); }
.stock-ok-badge  { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--green-light); color: var(--green-dark); }
.stock-off-badge { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--text-muted); }
.stock-low-alert {
  background: var(--red-light); border: 1px solid #FECACA; border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--red); font-size: 14px; font-weight: 600;
}
.stock-adjust-btn { padding: 6px 12px; font-size: 12px; font-weight: 700; border-radius: 6px; border: 1.5px solid var(--border); background: var(--card); color: var(--text-2); cursor: pointer; transition: all var(--transition); }
.stock-adjust-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.movement-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.movement-type { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.movement-type.sale { background: var(--red-light); color: var(--red); }
.movement-type.adjust { background: var(--blue-light); color: var(--blue); }
.movement-type.in { background: var(--green-light); color: var(--green-dark); }

/* ── Z REPORT PAGE ── */
.z-report-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.z-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.z-stat { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--border); }
.z-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.z-stat-value { font-size: 22px; font-weight: 900; color: var(--primary); }
.z-history-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.z-history-row:hover { background: var(--bg); }
.z-history-date { font-size: 13px; font-weight: 700; min-width: 100px; }
.z-history-info { flex: 1; font-size: 13px; color: var(--text-muted); }
.z-history-total { font-size: 16px; font-weight: 800; color: var(--green-dark); }

/* ── SPLIT BILL ── */
.split-item-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.split-item-row:last-child { border-bottom: none; }
.split-item-check { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.split-item-name { flex: 1; font-size: 14px; font-weight: 600; }
.split-item-qty-wrap { display: flex; align-items: center; gap: 6px; }
.split-qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.split-qty-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.split-qty-val { font-weight: 800; min-width: 24px; text-align: center; font-size: 14px; }
.split-item-price { font-weight: 700; min-width: 70px; text-align: right; color: var(--green-dark); font-size: 14px; }

/* ── TAKEAWAY TAG ── */
.order-takeaway-tag { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #EFF6FF; color: var(--blue); }

/* ── DEVELOPER DASHBOARD ── */
.dev-table-row { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.dev-table-row:hover { background: var(--bg); }
.dev-table-row td { padding: 11px 14px; vertical-align: middle; }
.dev-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.dev-status-trial   { background: #EFF6FF; color: var(--blue); }
.dev-status-paid    { background: var(--green-light); color: var(--green-dark); }
.dev-status-expired { background: var(--red-light); color: var(--red); }
.dev-status-pending { background: var(--yellow-light); color: #A16207; }
.dev-status-active  { background: var(--green-light); color: var(--green-dark); }
.dev-user-row { display:flex; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid var(--border); font-size:13px; }
.dev-user-row:hover { background: var(--bg); }
.dev-sys-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:13px; }
.dev-sys-row:last-child { border-bottom:none; }
.dev-sys-label { color: var(--text-muted); font-weight:500; }
.dev-sys-val { font-weight:700; }
.dev-reg-bar { display:flex; align-items:flex-end; gap:4px; height:80px; }
.dev-reg-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; }
.dev-reg-fill { width:100%; border-radius:4px 4px 0 0; background:var(--purple); min-height:4px; transition:.3s; }
.dev-reg-label { font-size:9px; color:var(--text-muted); }
.dev-reg-val { font-size:10px; font-weight:700; color:var(--purple); }
.dev-action-btn { padding:4px 10px; border-radius:6px; font-size:12px; font-weight:600; border:1.5px solid var(--border); background:var(--card); color:var(--text-2); cursor:pointer; transition:all var(--transition); white-space:nowrap; }
.dev-action-btn:hover { border-color:var(--primary); color:var(--primary); }
.dev-action-btn.danger:hover { border-color:var(--red); color:var(--red); }

/* ── DEVELOPER TABS ── */
.dev-tab { padding:8px 16px; border-radius:7px; font-size:13px; font-weight:600; border:none; background:transparent; color:var(--text-muted); cursor:pointer; transition:all var(--transition); }
.dev-tab:hover { background:var(--card); color:var(--text); }
.dev-tab.active { background:var(--card); color:var(--primary); box-shadow:var(--shadow-xs); }
.dev-pane { display:none; }
.dev-pane.active { display:block; }
.dev-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dev-info-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.dev-info-row:last-child { border-bottom:none; }
.dev-info-label { color:var(--text-muted); font-weight:500; }
.dev-info-val { font-weight:600; text-align:right; max-width:60%; word-break:break-all; }
.dev-badge { display:inline-block; padding:2px 8px; border-radius:12px; font-size:11px; font-weight:700; }
.dev-badge-ok   { background:var(--green-light); color:var(--green-dark); }
.dev-badge-warn { background:var(--yellow-light); color:#92400e; }
.dev-badge-err  { background:var(--red-light); color:var(--red); }
.dev-badge-info { background:var(--blue-light); color:var(--blue); }

/* ── BACKUP LIST ── */
.backup-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.backup-row:hover { background: var(--bg); }
.backup-row-name { flex: 1; font-size: 13px; font-weight: 600; font-family: monospace; }
.backup-row-size { font-size: 12px; color: var(--text-muted); min-width: 60px; text-align: right; }

/* ── MISC ── */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-green { color: var(--green-dark); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* ── STOCK TABS ── */
.stock-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px;
}
.stock-tab {
  padding: 10px 18px; background: transparent; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.stock-tab:hover { color: var(--text); }
.stock-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── COMPREHENSIVE DARK MODE OVERRIDES ── */
body.dark .card,
body.dark .modal-content,
body.dark .modal-header,
body.dark .modal-footer { background: var(--card); color: var(--text); }
body.dark .card-header,
body.dark .modal-header,
body.dark .modal-footer { border-color: var(--border); }
body.dark #topbar { background: var(--card); border-color: var(--border); }
body.dark #sidebar { background: #0B1220; }
body.dark .nav-item.active { background: var(--primary-light); color: var(--primary); }
body.dark .form-input,
body.dark .form-control,
body.dark input, body.dark select, body.dark textarea {
  background: #0F172A; color: var(--text); border-color: var(--border);
}
body.dark .form-help, body.dark .form-hint { color: var(--text-muted); }
body.dark .toast { background: var(--card); color: var(--text); border: 1px solid var(--border); }
body.dark .stat-card,
body.dark .table-card,
body.dark .order-card,
body.dark .staff-card,
body.dark .sub-plan-card,
body.dark .z-stat,
body.dark .dash-list-item { background: var(--card); color: var(--text); }
body.dark .dash-list-item:hover { background: rgba(255,255,255,.04); }
body.dark .empty-state { color: var(--text-muted); }
body.dark .badge { background: rgba(255,255,255,.08); color: var(--text-2); }
body.dark .badge-served { background: rgba(255,255,255,.06); color: var(--text-muted); }
body.dark .order-card-header { background: rgba(255,255,255,.02); border-color: var(--border); }
body.dark .sidebar-user { background: rgba(255,255,255,.02); border-color: var(--border); }
body.dark .dev-tab { color: var(--text-muted); }
body.dark .dev-tab.active { background: var(--card); color: var(--text); }
body.dark table { color: var(--text); }
body.dark th { background: rgba(255,255,255,.04); color: var(--text-2); }
body.dark td { border-color: var(--border); }
body.dark tr:hover { background: rgba(255,255,255,.03); }
body.dark .kitchen-ticket { background: var(--card); color: var(--text); border-color: var(--border); }
body.dark .stock-tab:hover { color: var(--text); }
body.dark .stock-item-row { border-color: var(--border); }
body.dark .stock-item-row:hover { background: rgba(255,255,255,.03); }
body.dark .stock-adjust-btn { background: rgba(255,255,255,.04); color: var(--text-2); border-color: var(--border); }
body.dark .stock-adjust-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
body.dark .section-tabs { border-color: var(--border); }
body.dark .section-tab { color: var(--text-muted); }
body.dark hr { border-color: var(--border); }
body.dark .btn-ghost,
body.dark .btn-outline,
body.dark .btn-icon {
  background: rgba(255,255,255,.04); color: var(--text-2); border-color: var(--border);
}
body.dark .btn-ghost:hover,
body.dark .btn-outline:hover,
body.dark .btn-icon:hover { background: rgba(255,255,255,.08); color: var(--text); }
body.dark .topbar-toggle { background: rgba(255,255,255,.04); color: var(--text-muted); }
body.dark .topbar-toggle:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Accent-tinted cards in dark mode */
body.dark .settings-account-card,
body.dark [class*="account-card"] {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(16,185,129,.06)) !important;
  border-color: rgba(34,197,94,.25) !important;
  color: var(--text) !important;
}
body.dark .sub-hero,
body.dark .subscription-hero,
body.dark [class*="subscription-hero"] {
  background: linear-gradient(135deg, rgba(249,115,22,.15), rgba(234,108,8,.05)) !important;
  border-color: rgba(249,115,22,.25) !important;
  color: var(--text) !important;
}
body.dark .danger-zone,
body.dark .tehlikeli-bolge,
body.dark [class*="danger"] {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.25) !important;
  color: var(--text) !important;
}
body.dark .bank-info,
body.dark .bank-box,
body.dark [class*="bank-info"] {
  background: rgba(234,179,8,.1) !important;
  border-color: rgba(234,179,8,.25) !important;
  color: var(--text) !important;
}
body.dark .trial-badge,
body.dark .sidebar-trial { background: rgba(249,115,22,.2); color: #FED7AA; }

/* Soft-color inline backgrounds — neutralize in dark */
body.dark [style*="background:#F0FDF4"],
body.dark [style*="background: #F0FDF4"],
body.dark [style*="background:#ECFDF5"],
body.dark [style*="background: #ECFDF5"] {
  background: rgba(34,197,94,.1) !important; color: var(--text) !important;
}
body.dark [style*="background:#FFF7ED"],
body.dark [style*="background: #FFF7ED"],
body.dark [style*="background:#FEF3C7"],
body.dark [style*="background: #FEF3C7"] {
  background: rgba(249,115,22,.1) !important; color: var(--text) !important;
}
body.dark [style*="background:#FEF2F2"],
body.dark [style*="background: #FEF2F2"] {
  background: rgba(239,68,68,.1) !important; color: var(--text) !important;
}
body.dark [style*="background:#F8FAFC"],
body.dark [style*="background: #F8FAFC"],
body.dark [style*="background:#F1F5F9"],
body.dark [style*="background: #F1F5F9"],
body.dark [style*="background:#FFFFFF"],
body.dark [style*="background: #FFFFFF"],
body.dark [style*="background:#FAFAFA"],
body.dark [style*="background: #FAFAFA"] {
  background: var(--card) !important; color: var(--text) !important;
}
body.dark [style*="background:linear-gradient(135deg,#F8FAFC,#F1F5F9)"],
body.dark [style*="background: linear-gradient(135deg,#F8FAFC,#F1F5F9)"] {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) !important;
  color: var(--text) !important;
}
body.dark [style*="background:linear-gradient(135deg,#F0FDF4,#ECFDF5)"],
body.dark [style*="background: linear-gradient(135deg,#F0FDF4,#ECFDF5)"] {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(16,185,129,.06)) !important;
  color: var(--text) !important;
}
body.dark [style*="color:#0F172A"],
body.dark [style*="color: #0F172A"],
body.dark [style*="color:#1E293B"],
body.dark [style*="color: #1E293B"] { color: var(--text) !important; }
body.dark [style*="color:#334155"],
body.dark [style*="color: #334155"] { color: var(--text-2) !important; }
body.dark [style*="color:#64748B"],
body.dark [style*="color: #64748B"] { color: var(--text-muted) !important; }
body.dark [style*="border:1px solid #E2E8F0"],
body.dark [style*="border: 1px solid #E2E8F0"],
body.dark [style*="border-color:#E2E8F0"],
body.dark [style*="border-color: #E2E8F0"] { border-color: var(--border) !important; }

/* ── DARK MODE — INPUT FIXES (comprehensive) ──────────────────────────────── */
body.dark input,
body.dark select,
body.dark textarea,
body.dark .form-input {
  background: #0F172A !important;
  color: #F1F5F9 !important;
  border-color: #334155 !important;
}
body.dark input::placeholder,
body.dark textarea::placeholder { color: #64748B !important; }
body.dark input[readonly],
body.dark .form-input[readonly] { background: #1E293B !important; color: #94A3B8 !important; }
body.dark input[type="password"],
body.dark input[type="text"],
body.dark input[type="email"],
body.dark input[type="tel"],
body.dark input[type="number"],
body.dark input[type="date"] {
  background: #0F172A !important;
  color: #F1F5F9 !important;
}
body.dark .modal input,
body.dark .modal select,
body.dark .modal textarea,
body.dark .modal-content input,
body.dark .modal-content select,
body.dark .modal-content textarea {
  background: #0F172A !important;
  color: #F1F5F9 !important;
  border-color: #334155 !important;
}
body.dark label { color: #CBD5E1 !important; }
body.dark .form-help, body.dark small { color: #64748B !important; }
body.dark input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }

/* ═══════════════════════════════════════════════════════════════
   DOKUNMATİK MOD — büyük butonlar, geniş dokunma alanları
   body.touch-mode ile aktifleşir (localStorage: servopos_ui_mode)
   ═══════════════════════════════════════════════════════════════ */
body.touch-mode { font-size: 16px; }

/* Butonlar — minimum 52px dokunma yüksekliği */
body.touch-mode .btn {
  min-height: 52px; padding: 14px 22px; font-size: 16px; font-weight: 700;
}
body.touch-mode .btn-sm {
  min-height: 44px; padding: 10px 16px; font-size: 14px;
}
body.touch-mode .login-btn { min-height: 56px; font-size: 17px; }

/* Sol menü — daha büyük dokunma alanları */
body.touch-mode .nav-item { padding: 16px 16px; font-size: 16px; }
body.touch-mode .nav-icon { font-size: 22px; }

/* Form alanları — daha büyük */
body.touch-mode .form-input,
body.touch-mode input,
body.touch-mode select,
body.touch-mode textarea {
  min-height: 50px; font-size: 16px; padding: 12px 14px;
}
body.touch-mode textarea { min-height: 90px; }

/* Masalar — daha büyük kartlar */
body.touch-mode .table-card { padding: 22px 16px; }
body.touch-mode .table-card-icon { font-size: 48px; }
body.touch-mode .table-card-name { font-size: 18px; }
body.touch-mode .table-card-cap { font-size: 14px; }
body.touch-mode .table-card-total { font-size: 19px; }

/* Menü ürün kartları (sipariş ekranı) — büyük, kolay dokunulur */
body.touch-mode .menu-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
body.touch-mode .menu-item-card { padding: 16px 12px; min-height: 110px; }
body.touch-mode .menu-item-card .mi-name,
body.touch-mode .menu-item-card .menu-item-name { font-size: 15px; }
body.touch-mode .menu-item-card .mi-price,
body.touch-mode .menu-item-card .menu-item-price { font-size: 16px; font-weight: 800; }

/* Kategori sekmeleri — büyük */
body.touch-mode .menu-cats { padding: 14px 18px; gap: 10px; }
body.touch-mode .cat-chip,
body.touch-mode .menu-cat-chip {
  min-height: 48px; padding: 12px 20px; font-size: 15px;
}

/* Sipariş kartları */
body.touch-mode .order-card-body { padding: 16px 20px; }
body.touch-mode .order-card-footer { padding: 14px 20px; }

/* Modal butonları */
body.touch-mode .modal-footer .btn,
body.touch-mode .modal-actions .btn { min-height: 54px; font-size: 16px; }

/* İkon butonlar — büyük */
body.touch-mode .btn-icon,
body.touch-mode .dev-action-btn {
  min-width: 44px; min-height: 44px; font-size: 18px;
}

/* Tablo satırları — daha ferah */
body.touch-mode table td,
body.touch-mode table th { padding: 14px 14px; }

/* Adet artır/azalt butonları — sipariş panelinde kritik */
body.touch-mode .qty-btn,
body.touch-mode .q%-btn,
body.touch-mode button[onclick*="qty"],
body.touch-mode .panel-item-qty button {
  min-width: 44px; min-height: 44px; font-size: 20px;
}

/* Ödeme yöntemi butonları */
body.touch-mode .pay-method-btn,
body.touch-mode [class*="payment"] button { min-height: 56px; font-size: 16px; }
