/* ============================================================
   CICG OFFICERS MESS — Design System
   iOS 26 Inspired Glassmorphic Light Theme
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* -- Transformative Teal Palette -- */
    --bg-primary: #f0fdfa; /* Ultra-light teal base */
    --bg-aura: radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
               radial-gradient(at 100% 0%, rgba(15, 118, 110, 0.05) 0px, transparent 50%);
    
    --bg-card: #ffffff;
    --bg-secondary: #f0f9ff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;
    
    /* -- Accent Colors (Teal Focus) -- */
    --accent-gold: #0d9488; /* Main Teal */
    --accent-gold-light: #14b8a6; /* Vibrant Teal */
    --accent-steel: #0f766e; /* Deep Teal */
    
    /* -- Text Colors (Maximum Readability) -- */
    --text-primary: #134e4a; /* Deepest teal-grey */
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    /* -- Borders -- */
    --border-primary: #e2e8f0;
    --border-glass: rgba(0, 0, 0, 0.05);
    
    /* -- Spacing (More Breathing Room) -- */
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* -- Shadows -- */
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    /* -- Typography -- */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-xl: 20px;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
body {
    background-color: var(--bg-primary);
    background-image: var(--bg-aura);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphic Card Base */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 0, 0, 0.1); /* More distinct border */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl); /* Increased from lg to xl for breathing room */
    transition: var(--transition-slow);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px); /* Reduced from -4px to be less jumpy */
    background: #ffffff;
}

/* Navigation Overhaul */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
}

/* Buttons (Premium iOS style) */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 126, 0, 0.2);
}

.btn-secondary {
    background: #edf2f7; /* Visible light grey background */
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: #f7fafc;
    border-color: var(--accent-gold);
}

.btn:active {
    transform: scale(0.96);
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-completed { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-cancelled { background: #f3f4f6; color: #374151; }

/* Table Overhaul */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.data-table tr {
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.data-table th, .data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    white-space: normal; /* Allow text wrapping */
    word-break: break-word; /* Prevent overflow */
}

.data-table td:first-child { border-left: 1px solid var(--border-primary); border-radius: 12px 0 0 12px; }
.data-table td:last-child { border-right: 1px solid var(--border-primary); border-radius: 0 12px 12px 0; }

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.005); /* Very subtle scale instead of jumpy transform */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image: var(--bg-aura);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* iOS 26 Aura Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--accent-gold-light); }

img { max-width: 100%; display: block; }

button { cursor: pointer; font-family: inherit; }

input, select, textarea { font-family: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { 
    background: var(--accent-gold); 
    border-radius: var(--radius-full);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-md { gap: var(--space-md); }

/* ============================================================
   NAVIGATION (CRYSTAL GLASS)
   ============================================================ */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.navbar-brand { display: flex; align-items: center; gap: var(--space-md); }

.navbar-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 16px rgba(184, 134, 11, 0.25);
}

.navbar-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.navbar-subtitle { font-size: 0.75rem; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; }

.navbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-user-info {
    text-align: right;
}

.navbar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-user-role {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before { opacity: 1; }

.card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-title .icon {
    color: var(--accent-gold);
}

.card-static {
    composes: card;
}
.card-static:hover {
    transform: none;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-gold);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.gold { background: rgba(197, 165, 90, 0.15); color: var(--accent-gold); }
.stat-icon.blue { background: rgba(74, 142, 201, 0.15); color: var(--accent-steel); }
.stat-icon.green { background: rgba(52, 211, 153, 0.15); color: var(--status-success); }
.stat-icon.red { background: rgba(248, 113, 113, 0.15); color: var(--status-error); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================================
   BUTTONS (HIGH CONTRAST LIGHT MODE)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: #ffffff !important; /* Force white text for visibility */
    box-shadow: 0 4px 15px rgba(168, 126, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 126, 0, 0.35);
}

.btn-secondary {
    background: #edf2f7;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-ghost:hover {
    background: #ffffff;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.96); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: 0.75rem;
    color: var(--status-error);
    margin-top: var(--space-xs);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: rgba(197, 165, 90, 0.08);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(197, 165, 90, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-placed { background: rgba(96, 165, 250, 0.15); color: var(--status-placed); }
.badge-accepted { background: rgba(167, 139, 250, 0.15); color: var(--status-accepted); }
.badge-under_preparation { background: rgba(251, 191, 36, 0.15); color: var(--status-preparing); }
.badge-despatched { background: rgba(45, 212, 191, 0.15); color: var(--status-despatched); }
.badge-completed { background: rgba(52, 211, 153, 0.15); color: var(--status-completed); }
.badge-rejected { background: rgba(248, 113, 113, 0.15); color: var(--status-rejected); }
.badge-cancelled { background: rgba(148, 163, 184, 0.15); color: var(--status-cancelled); }

.badge-pending { background: rgba(251, 191, 36, 0.15); color: var(--status-warning); }
.badge-paid_by_user { background: rgba(96, 165, 250, 0.15); color: var(--status-info); }
.badge-confirmed_by_operator { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.badge-settled_by_admin { background: rgba(52, 211, 153, 0.15); color: var(--status-success); }

.badge-beverage { background: rgba(74, 142, 201, 0.15); color: var(--accent-steel-light); }
.badge-snack { background: rgba(251, 191, 36, 0.15); color: var(--status-warning); }

.badge-admin { background: rgba(197, 165, 90, 0.15); color: var(--accent-gold); }
.badge-operator { background: rgba(74, 142, 201, 0.15); color: var(--accent-steel-light); }
.badge-user { background: rgba(52, 211, 153, 0.15); color: var(--status-success); }

/* Status dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.active { 
    background: var(--status-success); 
    box-shadow: 0 0 8px var(--status-success);
    animation: pulse 2s infinite;
}

/* ============================================================
   MODALS / DIALOGS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal .form-label {
    color: var(--text-primary);
    font-weight: 800;
}

.modal .form-input, .modal .form-select {
    background: #ffffff;
    border: 1px solid #cbd5e0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f7;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body {
    padding: var(--space-md) 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-primary);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold), var(--accent-gold-dark));
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
    animation: breathe 3s ease-in-out infinite;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.login-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xl);
}

.login-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideInRight 0.4s var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.toast-success::before { background: var(--status-success); }
.toast-error::before { background: var(--status-error); }
.toast-warning::before { background: var(--status-warning); }
.toast-info::before { background: var(--status-info); }

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--status-success); }
.toast-error .toast-icon { color: var(--status-error); }
.toast-warning .toast-icon { color: var(--status-warning); }
.toast-info .toast-icon { color: var(--status-info); }

.toast-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color var(--transition-fast);
}
.toast-close:hover { color: var(--text-primary); }

.toast-exit {
    animation: slideOutRight 0.3s ease forwards;
}

/* ============================================================
   ORDER CARDS  
   ============================================================ */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
}

.order-card:hover {
    border-color: var(--border-accent);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.order-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-user {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.order-items-list {
    list-style: none;
    margin: var(--space-sm) 0;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-items-list li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-mono);
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-weight: 700;
    color: var(--accent-gold);
}

.order-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

/* Status progress bar */
.status-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: var(--space-md) 0;
}

.status-step {
    flex: 1;
    height: 3px;
    background: var(--border-primary);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.status-step.active {
    background: var(--accent-gold);
}

.status-step.completed {
    background: var(--status-success);
}

/* ============================================================
   MENU GRID  
   ============================================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.menu-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.menu-card-image {
    height: 100px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.menu-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}

.menu-card-body {
    padding: var(--space-sm);
}

.menu-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.menu-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: var(--font-mono);
}

.menu-card-category {
    margin-top: var(--space-sm);
}

.menu-card-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-subtle);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--accent-gold-glow);
    color: var(--accent-gold);
}

.qty-value {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-primary);
    border-right: 1px solid var(--border-primary);
    height: 32px;
}

/* ============================================================
   CART / ORDER SUMMARY
   ============================================================ */
.cart-panel {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 380px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 50;
    transform: translateY(120%);
    transition: transform var(--transition-slow);
}

.cart-panel.visible {
    transform: translateY(0);
}

.cart-fab {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(26, 35, 51, 0.85), rgba(10, 14, 23, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(251, 191, 36, 0.3), 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 49;
    transition: all var(--transition-base);
}

.cart-fab:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(32, 43, 62, 0.95), rgba(15, 20, 30, 0.95));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(251, 191, 36, 0.5), 0 0 30px rgba(251, 191, 36, 0.2);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    background: #ef4444;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ============================================================
   BILL PAYMENT BANNER
   ============================================================ */
.bill-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(197, 165, 90, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    animation: slideDown 0.5s ease;
}

.bill-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.bill-banner-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--status-warning);
    margin-bottom: var(--space-xs);
}

.bill-banner-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================================
   CANCEL TIMER
   ============================================================ */
.cancel-timer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--status-warning);
}

.cancel-timer-bar {
    flex: 1;
    height: 3px;
    background: var(--border-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.cancel-timer-fill {
    height: 100%;
    background: var(--status-warning);
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    font-size: 0.85rem;
    max-width: 360px;
    margin: 0 auto;
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: var(--space-xl) auto;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255,255,255,0.05) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    position: relative;
    max-width: 360px;
}

.search-bar .form-input {
    padding-left: 2.5rem;
}

.search-bar-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.section-title span {
    color: var(--accent-gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 4px 20px rgba(197, 165, 90, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(197, 165, 90, 0.4); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }
.animate-slide-down { animation: slideDown 0.5s ease; }

/* Staggered entrance animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ============================================================
   MOBILE & TOUCH OPTIMIZATION  
   ============================================================ */

/* Prevent iOS zoom on input focus */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Safe area padding for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: calc(var(--space-md) + env(safe-area-inset-top));
    }
    .page-wrapper {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cart-fab {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
    }
    .cart-panel {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
    }
    .login-wrapper {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
}

/* Touch-friendly defaults */
button, .btn, .tab-btn, .qty-btn, .modal-close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ============================================================
   RESPONSIVE — TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .cart-panel { width: 360px; }
}

/* ============================================================
   RESPONSIVE — MOBILE LANDSCAPE + SMALL TABLET (768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { font-size: 15px; }
    
    /* -- Layout -- */
    .container { padding: 0 var(--space-md); }
    .main-content { padding: var(--space-md) 0 var(--space-xl); }
    
    /* -- Stats: 2-column on mobile for better space usage -- */
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .grid-2 { grid-template-columns: 1fr; }
    
    .stat-card {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    .stat-value { font-size: 1.4rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    
    /* -- Forms -- */
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .form-input, .form-select, .form-textarea {
        padding: 0.8rem 0.9rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* -- Navbar -- */
    .navbar-inner { 
        padding: 0 var(--space-md);
        gap: var(--space-sm);
    }
    .navbar-subtitle { display: none; }
    .navbar-title { font-size: 1rem; }
    .navbar-logo { width: 32px; height: 32px; font-size: 0.9rem; }
    .navbar-user-name { font-size: 0.8rem; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .navbar-user-role { font-size: 0.65rem; }
    
    /* -- Tabs — scrollable with momentum -- */
    .tabs { 
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 1px; /* Keeps border visible */
    }
    .tab-btn { 
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        scroll-snap-align: start;
        min-height: 44px; /* Touch target */
    }
    
    /* -- Section Headers -- */
    .section-header { 
        flex-direction: column; 
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .section-title { font-size: 1.25rem; }
    .section-header .btn { width: 100%; }
    .section-header .flex-center { width: 100%; flex-wrap: wrap; }
    .section-header .form-select { flex: 1; min-width: 0; }
    
    /* -- Tables — horizontal scroll -- */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(var(--space-md) * -1);
        padding: 0 var(--space-md);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .data-table { font-size: 0.8rem; min-width: 600px; }
    .data-table th, .data-table td { padding: 0.6rem 0.75rem; }
    
    /* -- Cards -- */
    .card { 
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    .card:hover { transform: none; } /* Disable hover lift on touch */
    .card-header { margin-bottom: var(--space-md); }
    
    /* -- Menu Grid — 2 columns on mobile -- */
    .menu-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    .menu-card:hover { transform: none; } /* No hover transform on touch */
    .menu-card-image { height: 100px; font-size: 2rem; }
    .menu-card-body { padding: var(--space-sm); }
    .menu-card-name { font-size: 0.85rem; }
    .menu-card-price { font-size: 0.95rem; }
    
    /* -- Cart Panel — full width bottom sheet -- */
    .cart-panel {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 70vh;
        padding: var(--space-lg) var(--space-md);
        padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    }
    
    /* -- Cart FAB -- */
    .cart-fab {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
        right: var(--space-md);
    }
    
    /* -- Order Cards -- */
    .order-card { padding: var(--space-md); }
    .order-card:hover { border-color: var(--border-primary); }
    
    /* -- Toasts — full width at top -- */
    .toast-container {
        top: var(--space-sm);
        right: var(--space-sm);
        left: var(--space-sm);
    }
    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    /* -- Modals — bottom sheet style on mobile -- */
    .modal-overlay {
        align-items: flex-end;
    }
    .modal {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
        padding: var(--space-lg) var(--space-md);
        padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    }
    .modal-overlay.active .modal {
        transform: scale(1) translateY(0);
    }
    .modal-footer {
        flex-direction: column-reverse;
    }
    .modal-footer .btn {
        width: 100%;
        min-height: 44px;
    }
    
    /* -- Bill Banner — stack on mobile -- */
    .bill-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    .bill-banner .btn { width: 100%; }
    
    /* -- Search Bar -- */
    .search-bar { max-width: 100%; }
    
    /* -- Spending Summary -- */
    #spending-summary {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
        text-align: center;
    }
    
    /* -- Login -- */
    .login-card {
        width: 95%;
        padding: var(--space-xl) var(--space-md);
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    :root { font-size: 14px; }
    
    .login-card { 
        width: 100%;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .login-card::before {
        border-radius: 0;
    }
    
    /* -- Navbar even more compact -- */
    .navbar-brand { gap: var(--space-xs); }
    .navbar-user { gap: var(--space-xs); }
    .navbar-user-name { max-width: 70px; font-size: 0.75rem; }
    #btn-change-password { display: none; } /* Show in a menu instead */
    
    /* -- Stats: still 2-col but more compact -- */
    .grid-4 { gap: 6px; }
    .stat-card { 
        padding: var(--space-sm) var(--space-md);
        flex-direction: row;
        text-align: left;
    }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
    
    /* -- Order action buttons full width -- */
    .order-actions { flex-direction: column; }
    .order-actions .btn { width: 100%; min-height: 44px; }
    
    /* -- Qty controls larger for touch -- */
    .qty-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .qty-value { width: 44px; height: 40px; font-size: 1rem; }
    
    /* -- Menu grid — single column on very small -- */
    .menu-grid { grid-template-columns: 1fr; }
    .menu-card-image { height: 120px; font-size: 2.5rem; }
    
    /* -- Buttons — larger touch targets -- */
    .btn { 
        min-height: 44px;
        padding: 0.7rem 1rem;
    }
    .btn-sm { 
        min-height: 38px;
        padding: 0.5rem 0.75rem;
    }
    
    /* -- Tab buttons -- */
    .tab-btn {
        padding: 0.75rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* -- Filter buttons wrap -- */
    .flex-center.gap-sm {
        flex-wrap: wrap;
    }
    .menu-filter {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    /* -- Order card header stack -- */
    .order-card-header {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .order-card-header > div:last-child {
        text-align: left;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
}

/* ============================================================
   RESPONSIVE — VERY SMALL (360px and below)
   ============================================================ */
@media (max-width: 360px) {
    .container { padding: 0 var(--space-sm); }
    .navbar-inner { padding: 0 var(--space-sm); }
    
    .navbar-title { font-size: 0.9rem; }
    .navbar-logo { width: 28px; height: 28px; font-size: 0.8rem; }
    
    .btn { font-size: 0.8rem; }
    
    .tab-btn { 
        padding: 0.625rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .stat-card { padding: var(--space-xs) var(--space-sm); }
    .stat-value { font-size: 1.1rem; }
}

/* ============================================================
   RESPONSIVE — LANDSCAPE MOBILE
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .login-wrapper { min-height: auto; padding: var(--space-md) 0; }
    .login-card { 
        min-height: auto;
        border-radius: var(--radius-xl);
    }
    .login-logo { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: var(--space-sm); }
    .login-title { font-size: 1.2rem; }
    .login-subtitle { margin-bottom: var(--space-md); }
    
    .modal { max-height: 95vh; }
    .cart-panel { max-height: 80vh; }
    
    .stat-card { padding: var(--space-xs) var(--space-sm); }
}

/* ============================================================
   HOVER vs TOUCH — Disable hover effects on touch devices
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        border-color: var(--border-primary);
        box-shadow: none;
    }
    .card:hover::before { opacity: 0; }
    
    .menu-card:hover {
        transform: none;
        border-color: var(--border-primary);
        box-shadow: none;
    }
    
    .stat-card:hover {
        border-color: var(--border-primary);
        box-shadow: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Active states for touch feedback instead */
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .card:active {
        border-color: var(--border-accent);
    }
    
    .menu-card:active {
        border-color: var(--accent-gold);
        transform: scale(0.98);
    }
    
    .tab-btn:active {
        background: rgba(197, 165, 90, 0.1);
    }
    
    /* Disable cart FAB scale on touch */
    .cart-fab:hover { transform: none; }
    .cart-fab:active { transform: scale(0.9); }
}

/* ============================================================
   PRINT STYLES (for bill printing)
   ============================================================ */
@media print {
    body::before, body::after { display: none; }
    .navbar, .tabs, .btn, .cart-fab, .cart-panel, .toast-container { display: none !important; }
    .card { 
        border: 1px solid #ccc;
        box-shadow: none;
        background: white;
        color: black;
    }
    .data-table th { color: #333; }
    .data-table td { color: #000; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--status-success); }
.text-error { color: var(--status-error); }
.text-warning { color: var(--status-warning); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.fw-bold { font-weight: 700; }
.fw-heavy { font-weight: 800; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Smart Order Highlighting */
.highlight-order {
    animation: highlight-glow 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: var(--accent-gold) !important;
    position: relative;
    z-index: 10;
}

@keyframes highlight-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(197, 165, 90, 0); }
    20% { transform: scale(1.02); box-shadow: 0 0 30px var(--accent-gold-glow); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(197, 165, 90, 0); }
}
