[v-cloak] { display: none !important; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #059669; --primary-dark: #047857; --primary-light: #d1fae5; --primary-lighter: #ecfdf5;
    --accent: #d97706; --accent-light: #fef3c7;
    --success: #16a34a; --success-light: #dcfce7;
    --warning: #d97706; --warning-light: #fef3c7;
    --danger: #dc2626; --danger-light: #fee2e2;
    --info: #0284c7; --info-light: #e0f2fe;
    --sidebar-bg: #0f172a; --sidebar-hover: #1e293b; --sidebar-active: rgba(5,150,105,0.15);
    --sidebar-text: #94a3b8; --sidebar-text-active: #f1f5f9;
    --bg: #f1f5f9; --surface: #fff; --surface-raised: #fff;
    --text: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8;
    --border: #e2e8f0; --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06),0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.06),0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08),0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius-sm: 6px; --radius: 10px; --radius-md: 14px; --radius-lg: 20px;
    --font-sans: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --font-serif: 'Playfair Display',Georgia,serif;
    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
}
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { cursor: pointer; text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
#app { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 270px; background: var(--sidebar-bg); color: #fff; display: flex;
    flex-direction: column; position: fixed; inset: 0; z-index: 1000;
    transition: transform var(--transition-slow); overflow-y: auto;
}
@media (max-width:768px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.sidebar-overlay { display: none; }
@media (max-width:768px) { .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; } }
.sidebar-brand {
    display: flex; align-items: center; gap: 12px; padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-icon { font-size: 28px; }
.brand-text { font-family: var(--font-serif); font-size: 22px; font-weight: 700; background: linear-gradient(135deg,#fff,#94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.user-avatar {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg,var(--primary),var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; color: #fff;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 14px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: var(--sidebar-text); text-transform: capitalize; }
.sidebar-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; transition: all var(--transition); text-decoration: none;
    color: var(--sidebar-text); position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--primary); border-radius: 0 2px 2px 0; }
.nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.nav-text { flex: 1; }
.nav-badge {
    padding: 2px 8px; border-radius: 10px; background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
}
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; margin-left: 270px; min-height: 100vh; display: flex; flex-direction: column; }
@media (max-width:768px) { .main-content { margin-left: 0; } }

/* ===== TOPBAR ===== */
.topbar {
    display: flex; align-items: center; padding: 0 28px; height: 64px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    gap: 16px; position: sticky; top: 0; z-index: 100;
}
.menu-toggle { display: none; font-size: 22px; background: none; border: none; padding: 4px; color: var(--text); }
@media (max-width:768px) { .menu-toggle { display: block; } }
.topbar h2 { font-size: 18px; font-weight: 600; flex: 1; letter-spacing: var(--tracking-tight); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.notif-btn {
    position: relative; width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg); border: none; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.notif-btn:hover { background: var(--border); }
.notif-dot {
    position: absolute; top: -2px; right: -2px; background: var(--danger);
    color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700;
    min-width: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface);
}

/* ===== NOTIFICATIONS PANEL ===== */
.notif-panel {
    position: fixed; top: 0; right: 0; width: 380px; max-width: 100vw; height: 100vh;
    background: var(--surface); box-shadow: var(--shadow-xl); z-index: 500;
    display: flex; flex-direction: column; animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.notif-header h3 { font-size: 16px; font-weight: 700; }
.notif-header button { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); border: none; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: pointer; transition: background var(--transition); }
.notif-header button:hover { background: var(--border); }
.notif-list { flex: 1; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.15s; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-lighter); }
.notif-icon { font-size: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body p { font-size: 13px; line-height: 1.4; color: var(--text); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }
.notif-empty { padding: 48px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ===== CONTENT BODY ===== */
.content-body { padding: 28px; flex: 1; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 24px;
    display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light); transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; flex-shrink: 0;
}
.stat-icon.revenue { background: var(--primary-lighter); color: var(--primary); }
.stat-icon.orders { background: var(--info-light); color: var(--info); }
.stat-icon.avg { background: var(--accent-light); color: var(--accent); }
.stat-icon.pending { background: var(--danger-light); color: var(--danger); }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: var(--tracking-tight); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ===== CARDS ===== */
.card {
    background: var(--surface); border-radius: var(--radius-md);
    padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
    border: 1px solid var(--border-light); transition: all var(--transition);
}
.card:hover { border-color: var(--border); }
.card-header { margin-bottom: 16px; }
.card-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:900px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ===== PENDING ORDERS LIST ===== */
.pending-list { display: flex; flex-direction: column; gap: 4px; }
.pending-item {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    border-radius: var(--radius); cursor: pointer; transition: background 0.15s;
}
.pending-item:hover { background: var(--bg); }
.pending-item + .pending-item { border-top: 1px solid var(--border-light); }
.table-tag {
    background: #0f172a; color: #fff; padding: 4px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: 0.3px;
}
.pending-info { flex: 1; display: flex; flex-direction: column; }
.order-num { font-size: 13px; font-weight: 600; }
.order-time { font-size: 11px; color: var(--text-muted); }
.pending-status { font-size: 11px; padding: 3px 10px; border-radius: 6px; text-transform: capitalize; font-weight: 600; }
.pending-status.pending { background: var(--warning-light); color: #92400e; }
.pending-status.accepted { background: var(--info-light); color: #075985; }
.pending-status.preparing { background: var(--primary-lighter); color: #065f46; }
.pending-status.ready { background: var(--success-light); color: #166534; }

/* ===== REVENUE CHART ===== */
.revenue-chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 12px 4px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bar {
    width: 100%; max-width: 40px; background: linear-gradient(180deg,var(--primary),#34d399);
    border-radius: 4px 4px 0 0; transition: height 0.5s ease; min-height: 4px;
}
.chart-label { font-size: 10px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ===== TOP ITEMS ===== */
.top-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.top-item + .top-item { border-top: 1px solid var(--border-light); }
.top-rank {
    width: 28px; height: 28px; border-radius: 8px; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.top-item:first-child .top-rank { background: var(--accent-light); color: var(--accent); }
.top-item:nth-child(2) .top-rank { background: var(--info-light); color: var(--info); }
.top-item:nth-child(3) .top-rank { background: var(--primary-lighter); color: var(--primary); }
.top-name { flex: 1; font-size: 13px; font-weight: 500; }
.top-qty { font-size: 12px; color: var(--text-muted); }
.top-rev { font-size: 13px; font-weight: 700; color: var(--primary); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    z-index: 600; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(4px); animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: var(--surface); border-radius: var(--radius-lg);
    width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
    box-shadow: var(--shadow-xl); animation: scaleIn 0.25s ease;
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-sm { max-width: 440px; }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-header button {
    width: 32px; height: 32px; border-radius: 8px; background: var(--bg);
    border: none; font-size: 16px; display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary); cursor: pointer;
    transition: background var(--transition);
}
.modal-header button:hover { background: var(--border); }
.modal-body { padding: 24px 28px; }
.modal-actions {
    padding: 16px 28px 24px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; flex-wrap: wrap;
}

/* ===== DETAIL ROWS ===== */
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.detail-row:last-of-type { border-bottom: none; }
.detail-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--text-secondary); }
.status-badge { font-size: 12px; padding: 4px 12px; border-radius: 6px; text-transform: capitalize; font-weight: 600; }
.status-badge.pending { background: var(--warning-light); color: #92400e; }
.status-badge.accepted { background: var(--info-light); color: #075985; }
.status-badge.preparing { background: var(--primary-lighter); color: #065f46; }
.status-badge.ready { background: var(--success-light); color: #166534; }
.status-badge.delivered { background: #f3e5f5; color: #6a1b9a; }

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 22px; border: none; border-radius: 8px; font-size: 13px;
    font-weight: 600; transition: all var(--transition); font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(5,150,105,0.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(217,119,6,0.3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; border-radius: 8px; background: none; border: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: background var(--transition); }
.btn-icon:hover { background: var(--bg); }

/* ===== VIEW HEADER ===== */
.view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.view-header h3 { font-size: 22px; font-weight: 700; letter-spacing: var(--tracking-tight); }
.view-actions { display: flex; gap: 10px; align-items: center; }

/* ===== FORM ELEMENTS ===== */
.input-sm { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); transition: all var(--transition); }
.input-sm:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 13px; font-family: inherit;
    background: var(--surface); color: var(--text); transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== TOGGLE ===== */
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ===== MENU MANAGEMENT ===== */
.menu-category-group { margin-bottom: 28px; }
.cat-group-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; background: var(--bg); border-radius: var(--radius) var(--radius) 0 0;
    font-size: 15px; font-weight: 600;
}
.cat-group-header .btn-sm { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.cat-group-header .btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.menu-table { background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; border: 1px solid var(--border-light); }
.menu-table-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    border-bottom: 1px solid var(--border-light); font-size: 13px;
    transition: background 0.15s;
}
.menu-table-row:last-child { border-bottom: none; }
.menu-table-row:hover { background: var(--border-light); }
.mt-info { flex: 1; min-width: 0; }
.mt-name { font-weight: 600; display: block; }
.mt-desc { font-size: 11px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.mt-price { font-weight: 700; color: var(--primary); min-width: 70px; text-align: right; }
.mt-time { color: var(--text-muted); font-size: 11px; min-width: 50px; text-align: center; }

/* ===== ORDERS GRID ===== */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 16px; }
.order-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 20px;
    box-shadow: var(--shadow-sm); cursor: pointer; transition: all var(--transition);
    border: 1px solid var(--border-light); border-left: 4px solid var(--border);
    position: relative; overflow: hidden;
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.order-card.pending { border-left-color: var(--warning); }
.order-card.accepted { border-left-color: var(--info); }
.order-card.preparing { border-left-color: var(--primary); }
.order-card.ready { border-left-color: var(--success); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.order-table { font-size: 13px; font-weight: 600; }
.order-status-badge { font-size: 10px; padding: 3px 10px; border-radius: 6px; text-transform: capitalize; font-weight: 600; background: var(--bg); }
.payment-badge { font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.payment-badge.paid { background: var(--success-light); color: #166534; }
.payment-badge.unpaid { background: var(--warning-light); color: #92400e; }
.order-card-body { margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
.order-time-label { font-size: 11px; color: var(--text-muted); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; }
.order-amount { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: var(--tracking-tight); }
.order-items-count { font-size: 11px; color: var(--text-muted); }
.order-card-items { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.order-item-tag { background: var(--bg); padding: 3px 8px; border-radius: 4px; font-size: 10px; color: var(--text-secondary); }

/* ===== KITCHEN DISPLAY ===== */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 18px; }
.kitchen-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 24px;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    border: 1px solid var(--border-light); border-top: 4px solid var(--warning);
    transition: all var(--transition);
}
.kitchen-card.accepted { border-top-color: var(--info); }
.kitchen-card.preparing { border-top-color: var(--primary); box-shadow: 0 0 0 0 rgba(5,150,105,0.3); animation: pulse-glow 2s infinite; }
.kitchen-card.ready { border-top-color: var(--success); }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.3); } 50% { box-shadow: 0 0 0 12px rgba(5,150,105,0); } }
.kitchen-card-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.kitchen-table { font-weight: 700; font-size: 16px; }
.kitchen-time { font-size: 12px; color: var(--text-muted); }
.kitchen-order-num { font-size: 12px; color: var(--text-muted); font-family: monospace; margin-bottom: 14px; }
.kitchen-items { margin-bottom: 18px; }
.kitchen-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-light); font-size: 14px; }
.kitchen-item:last-child { border-bottom: none; }
.kitchen-item-qty { font-weight: 700; color: var(--primary); min-width: 28px; }
.kitchen-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kitchen-timer {
    position: absolute; top: 16px; right: 16px;
    background: var(--sidebar-bg); color: #fff; padding: 4px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 600;
}

/* ===== TABLES & QR ===== */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.table-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 24px;
    box-shadow: var(--shadow-sm); text-align: center; transition: all var(--transition);
    border: 1px solid var(--border-light);
}
.table-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.table-card-header { font-size: 16px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.table-card-icon { font-size: 20px; }
.table-card-branch { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.table-card-body { }
.qr-code-wrap {
    background: #fff; padding: 16px; border-radius: var(--radius);
    display: inline-block; margin-bottom: 14px; border: 2px dashed var(--border);
}
.qr-code-wrap img { width: 170px; height: 170px; display: block; margin: 0 auto; }
.qr-link { display: flex; gap: 4px; margin-bottom: 10px; }
.qr-link input {
    flex: 1; font-size: 10px; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 6px; text-align: center; background: var(--bg); color: var(--text);
}
.copy-btn { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 14px; }
.qr-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.table-card-footer { display: flex; gap: 10px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }

/* ===== USERS TABLE ===== */
.users-table { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.users-table-header { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr 80px 50px; gap: 8px; padding: 14px 18px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); background: var(--bg); letter-spacing: 0.5px; }
.users-table-row { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr 80px 50px; gap: 8px; padding: 14px 18px; font-size: 13px; align-items: center; border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
.users-table-row:last-child { border-bottom: none; }
.users-table-row:hover { background: var(--border-light); }
.ut-name { font-weight: 600; }
.ut-email { color: var(--text-secondary); font-size: 12px; }
.role-badge { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.role-badge.admin { background: var(--danger-light); color: #991b1b; }
.role-badge.branch_manager { background: var(--info-light); color: #075985; }
.role-badge.kitchen_staff { background: var(--accent-light); color: #92400e; }
.role-badge.account { background: var(--success-light); color: #166534; }
.role-badge.pos_operator { background: #f3e5f5; color: #6a1b9a; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.active { background: var(--success); box-shadow: 0 0 0 2px var(--success-light); }
.status-dot.inactive { background: #cbd5e1; }

/* ===== STATUS BREAKDOWN ===== */
.status-breakdown { display: flex; flex-direction: column; gap: 10px; }
.status-row { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.status-name { min-width: 90px; text-transform: capitalize; font-weight: 500; }
.status-bar-bg { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.status-bar-fill { height: 100%; background: linear-gradient(90deg,var(--primary),#34d399); border-radius: 5px; transition: width 0.5s ease; }
.status-count { font-weight: 700; min-width: 30px; text-align: right; color: var(--text-secondary); }

/* =============================================
   LANDING PAGE STYLES
   ============================================= */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 40%,#0f2937 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle,rgba(5,150,105,0.1) 0%,transparent 70%);
    top: -300px; right: -200px; border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle,rgba(217,119,6,0.06) 0%,transparent 70%);
    bottom: -150px; left: -150px; border-radius: 50%;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
    position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.06);
    border-radius: 50%; animation: float 20s infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
.hero-content {
    text-align: center; z-index: 2; padding: 40px 24px; max-width: 850px;
    animation: fadeUp 1s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-logo { font-size: 72px; margin-bottom: 16px; display: block; }
.hero-title {
    font-family: var(--font-serif); font-size: clamp(42px,7vw,76px);
    font-weight: 800; color: #fff; margin-bottom: 18px; line-height: 1.1;
}
.hero-title span { background: linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
    font-size: clamp(16px,2.5vw,20px); color: rgba(255,255,255,0.5);
    margin-bottom: 44px; line-height: 1.7; font-weight: 300;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn {
    padding: 16px 36px; border-radius: 50px; font-size: 16px; font-weight: 600;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; font-family: inherit;
}
.hero .btn-primary { background: linear-gradient(135deg,var(--primary),#047857); color: #fff; box-shadow: 0 8px 32px rgba(5,150,105,0.3); }
.hero .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(5,150,105,0.4); }
.hero .btn-outline { border: 2px solid rgba(255,255,255,0.2); color: #fff; background: transparent; }
.hero .btn-outline:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.hero .btn-secondary { background: #fff; color: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.hero .btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

/* Stats Bar */
.stats-bar {
    background: rgba(255,255,255,0.03); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06); padding: 28px;
    display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: #fff; display: block; letter-spacing: var(--tracking-tight); }
.stat-item .stat-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* Features Section */
.features { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 6px 18px; background: var(--primary-lighter);
    color: var(--primary-dark); border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.section-title { font-family: var(--font-serif); font-size: clamp(28px,4vw,40px); font-weight: 700; color: var(--text); }
.section-sub { color: var(--text-secondary); font-size: 16px; margin-top: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 28px; }
.feature-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 40px 32px;
    box-shadow: var(--shadow-sm); transition: all 0.3s; border: 1px solid var(--border-light);
    position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon { font-size: 40px; margin-bottom: 18px; display: block; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; font-size: 14px; }
.feature-card .feature-number {
    position: absolute; top: 16px; right: 24px; font-size: 56px; font-weight: 900;
    color: rgba(5,150,105,0.06); line-height: 1;
}

/* How It Works */
.how-it-works { background: var(--surface); padding: 100px 24px; }
.how-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 48px; position: relative; }
.how-step { text-align: center; }
.step-number {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg,var(--primary),var(--accent));
    color: #fff; font-size: 24px; font-weight: 800; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 18px;
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.how-step p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* Demo Section */
.demo-section { padding: 100px 24px; text-align: center; background: var(--bg); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 24px; max-width: 950px; margin: 44px auto 0; }
.demo-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 32px 24px;
    box-shadow: var(--shadow-sm); transition: all 0.3s; cursor: pointer;
    border: 1px solid var(--border-light);
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.demo-card .demo-email { font-size: 13px; color: var(--text-secondary); background: var(--bg); padding: 6px 14px; border-radius: 8px; font-family: monospace; margin: 6px 0; display: inline-block; }
.demo-card .demo-pass { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.demo-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.demo-card .demo-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 11px;
    font-weight: 600; text-transform: capitalize; margin-bottom: 10px;
}

/* Footer */
.footer { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border-light); }

/* Responsive Landing */
@media (max-width:600px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-bar { gap: 28px; }
    .features-grid { grid-template-columns: 1fr; }
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    font-family: var(--font-sans); background: linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f2937 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    -webkit-font-smoothing: antialiased; position: relative; overflow: hidden;
}
.login-page::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle,rgba(5,150,105,0.08) 0%,transparent 70%);
    top: -200px; left: -200px; border-radius: 50%;
}
.login-page::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle,rgba(217,119,6,0.05) 0%,transparent 70%);
    bottom: -100px; right: -100px; border-radius: 50%;
}
.login-container { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 1; }
.login-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 44px 36px 36px;
    box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg,var(--primary),var(--accent));
}
.login-header { text-align: center; margin-bottom: 36px; }
.login-logo { font-size: 48px; margin-bottom: 10px; display: block; }
.login-header h1 { font-family: var(--font-serif); font-size: 28px; color: var(--text); }
.login-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.login-page .form-group { margin-bottom: 18px; }
.login-page .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.login-page .form-group input {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    transition: all 0.2s; background: var(--bg); color: var(--text);
}
.login-page .form-group input:focus {
    outline: none; border-color: var(--primary); background: var(--surface);
    box-shadow: 0 0 0 4px rgba(5,150,105,0.08);
}
.login-btn {
    width: 100%; padding: 15px; background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all var(--transition); font-family: inherit;
    box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,0.35); }
.login-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.login-page .error-msg { color: var(--danger); font-size: 13px; text-align: center; margin-top: 12px; padding: 12px; background: var(--danger-light); border-radius: 8px; display: none; }
.login-page .error-msg.show { display: block; }
.login-page .demo-info { margin-top: 24px; padding: 16px 20px; background: var(--bg); border-radius: 10px; font-size: 12px; color: var(--text-secondary); }
.login-page .demo-info summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text); }
.login-page .demo-info table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.login-page .demo-info td { padding: 8px 6px; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.login-page .demo-info td:first-child { font-weight: 500; color: var(--text); }

/* =============================================
   CUSTOMER MENU
   ============================================= */
.menu-page { font-family: var(--font-sans); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
.menu-page #app { max-width: 480px; margin: 0 auto; padding-bottom: 100px; position: relative; display: block; min-height: auto; }

/* Loading Screen */
.menu-page .loading-screen, .menu-page .error-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 80vh; padding: 40px; text-align: center;
}
.menu-page .loader {
    width: 48px; height: 48px; border: 4px solid var(--primary-light);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.menu-page .error-icon { font-size: 64px; margin-bottom: 16px; }
.menu-page .error-screen h2 { font-size: 24px; margin-bottom: 8px; }
.menu-page .error-screen p { color: var(--text-muted); }

/* Menu Header */
.menu-header {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f2937 100%);
    color: #fff; padding: 28px 24px 36px; border-radius: 0 0 36px 36px;
    position: relative; overflow: hidden;
}
.menu-header::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle,rgba(5,150,105,0.12) 0%,transparent 70%);
    border-radius: 50%;
}
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; position: relative; z-index: 1; }
.table-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); padding: 6px 14px;
    border-radius: 20px; font-size: 13px; font-weight: 500;
    backdrop-filter: blur(10px);
}
.table-icon { font-size: 14px; }
.branch-name { font-size: 13px; opacity: 0.6; }
.header-brand { position: relative; z-index: 1; }
.restaurant-name { font-family: var(--font-serif); font-size: 34px; font-weight: 700; margin-bottom: 4px; line-height: 1.1; }
.tagline { font-size: 14px; opacity: 0.5; font-weight: 300; }

/* Category Tabs */
.category-tabs { display: flex; overflow-x: auto; gap: 10px; padding: 18px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    display: flex; align-items: center; gap: 6px; padding: 10px 20px; border: none;
    border-radius: 24px; background: var(--surface); color: var(--text-secondary);
    font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    box-shadow: var(--shadow-sm); transition: all var(--transition); font-family: inherit;
}
.cat-tab:hover { transform: translateY(-1px); }
.cat-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(5,150,105,0.3); }
.cat-icon { font-size: 16px; }

/* Items Grid */
.menu-items { padding: 8px 16px; }
.items-grid { display: flex; flex-direction: column; gap: 16px; }
.menu-card {
    display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius-md);
    padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer;
    transition: all var(--transition); border: 1px solid var(--border-light);
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.menu-card:active { transform: scale(0.98); }
.card-image {
    width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden;
    flex-shrink: 0; background-size: cover; background-position: center; position: relative;
}
.card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#f1f5f9,#e2e8f0); display: flex; align-items: center; justify-content: center; }
.placeholder-icon { font-size: 28px; opacity: 0.4; }
.card-badge {
    position: absolute; top: 6px; left: 6px; background: var(--accent);
    color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-body .desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.menu-page .price { font-size: 18px; font-weight: 700; color: var(--primary); }
.menu-page .time { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 3px 10px; border-radius: 6px; }

/* Cart Bar */
.cart-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; background: var(--surface);
    padding: 14px 20px; box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    z-index: 100; border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border-light);
}
.cart-info { display: flex; align-items: center; gap: 8px; flex: 1; }
.cart-icon { font-size: 20px; }
.cart-count { font-size: 14px; font-weight: 600; }
.cart-total { font-size: 20px; font-weight: 700; color: var(--primary); }
.view-cart-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 10px 22px; border-radius: 24px; font-size: 13px;
    font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.view-cart-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(5,150,105,0.3); }

/* Cart Modal */
.cart-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.cart-modal {
    background: var(--surface); width: 100%; max-width: 480px; max-height: 85vh;
    border-radius: 24px 24px 0 0; padding: 28px; overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cart-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cart-modal-header h2 { font-size: 22px; font-weight: 700; }
.cart-modal-header .close-btn {
    width: 36px; height: 36px; border-radius: 10px; background: var(--bg);
    border: none; font-size: 18px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: var(--text-secondary);
    transition: background var(--transition); font-family: inherit;
}
.cart-modal-header .close-btn:hover { background: var(--border); }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg); border-radius: var(--radius); }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--primary); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--text); transition: all 0.15s; font-family: inherit;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-value { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-notes { margin-bottom: 14px; }
.cart-notes textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-family: inherit; resize: none; transition: border-color var(--transition); }
.cart-notes textarea:focus { outline: none; border-color: var(--primary); }
.cart-inputs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-input { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; transition: border-color var(--transition); }
.cart-input:focus { outline: none; border-color: var(--primary); }
.cart-total-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1.5px solid var(--border); margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.cart-grand-total { font-size: 24px; color: var(--primary); }
.place-order-btn {
    width: 100%; padding: 16px; background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff; border: none; border-radius: var(--radius-md); font-size: 16px;
    font-weight: 700; cursor: pointer; transition: all var(--transition);
    font-family: inherit; box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}
.place-order-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,0.4); }
.place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.est-time { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Confirmation */
.confirmation-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirmation-modal { background: var(--surface); border-radius: 24px; padding: 36px 28px; text-align: center; width: 100%; max-width: 400px; animation: scaleIn 0.3s ease; }
.confirmation-icon { font-size: 56px; margin-bottom: 16px; }
.confirmation-modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.order-number { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; font-family: monospace; letter-spacing: 1px; }
.order-timer {
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color: #fff; border-radius: var(--radius-md); padding: 24px;
    margin-bottom: 20px;
}
.timer-display { font-size: 52px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 2px; animation: timerPulse 2s ease-in-out infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.order-timer p { font-size: 13px; opacity: 0.6; margin-top: 6px; }
.order-status-tracker { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.status-step { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); opacity: 0.4; transition: all 0.3s; }
.status-step.active { opacity: 1; color: var(--text); }
.status-step.active .step-icon { animation: popIn 0.3s ease; }
@keyframes popIn { from { transform: scale(0.5); } to { transform: scale(1); } }
.step-icon { font-size: 24px; }
.confirmation-modal .confirmation-msg { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.new-order-btn {
    width: 100%; padding: 14px; background: var(--surface); color: var(--primary);
    border: 2px solid var(--primary); border-radius: var(--radius-md);
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}
.new-order-btn:hover { background: var(--primary); color: #fff; }

.menu-footer { text-align: center; padding: 28px 16px 12px; color: var(--text-muted); font-size: 11px; }
.menu-footer strong { color: var(--text); }

/* Payment Section */
.payment-section {
    margin: 18px 0; padding: 18px; background: var(--primary-lighter);
    border-radius: var(--radius); border: 1.5px solid var(--primary-light);
    text-align: center;
}
.payment-amount { font-size: 18px; margin-bottom: 14px; }
.payment-amount strong { color: var(--primary); }
.pay-now-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg,#16a34a,#15803d);
    color: #fff; border: none; border-radius: var(--radius-md); font-size: 16px;
    font-weight: 700; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 16px rgba(22,163,74,0.3); transition: all var(--transition);
}
.pay-now-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,0.4); }
.pay-now-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pay-info { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.payment-paid-badge {
    background: var(--success-light); color: #166534;
    padding: 10px 18px; border-radius: var(--radius); font-size: 14px;
    font-weight: 600; margin-bottom: 14px; display: inline-block;
}

/* =============================================
   POS INTERFACE
   ============================================= */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; height: calc(100vh - 64px); }
@media (max-width:900px) { .pos-layout { grid-template-columns: 1fr; } }
.pos-menu { overflow-y: auto; padding-right: 8px; }
.pos-categories { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding: 4px 0; }
.pos-cat-btn {
    padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 20px;
    background: var(--surface); font-size: 13px; font-weight: 500;
    white-space: nowrap; cursor: pointer; transition: all var(--transition);
    font-family: inherit;
}
.pos-cat-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.pos-items-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.pos-item-card {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 16px 12px; text-align: center;
    cursor: pointer; transition: all var(--transition);
}
.pos-item-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pos-item-card .price { font-size: 16px; font-weight: 700; color: var(--primary); display: block; margin-top: 6px; }
.pos-item-card .name { font-size: 13px; font-weight: 600; }
.pos-cart {
    background: var(--surface); border-radius: var(--radius-md);
    padding: 20px; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.pos-cart-header { font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1.5px solid var(--border); }
.pos-cart-items { flex: 1; overflow-y: auto; }
.pos-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border-light); }
.pos-cart-item .ci-name { flex: 1; font-size: 13px; font-weight: 500; }
.pos-cart-item .ci-qty { display: flex; align-items: center; gap: 6px; }
.pos-cart-item .ci-qty button {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); font-size: 14px; cursor: pointer;
    font-weight: 600; font-family: inherit; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.pos-cart-item .ci-qty button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pos-cart-item .ci-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.pos-cart-item .ci-price { font-weight: 600; min-width: 70px; text-align: right; }
.pos-cart-total {
    padding: 14px 0; border-top: 1.5px solid var(--border);
    margin-top: 10px; display: flex; justify-content: space-between;
    font-size: 18px; font-weight: 700;
}
.pos-cart-total .total-amount { color: var(--primary); font-size: 24px; }
.pos-checkout-btn {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg,var(--success),#15803d); color: #fff;
    border: none; border-radius: var(--radius); font-size: 16px;
    font-weight: 700; cursor: pointer; transition: all var(--transition);
    font-family: inherit;
}
.pos-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,0.3); }
.pos-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pos-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pos-header select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); }

/* ===== PAYMENT METHODS ===== */
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin: 15px 0; }
.pay-now-btn.paystack { background: linear-gradient(135deg, #7933d6, #a855f7); color: #fff; border: none; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pay-now-btn.cash { background: linear-gradient(135deg, #059669, #34d399); color: #fff; border: none; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pay-now-btn.bank { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; border: none; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pay-now-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.pay-now-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
