/* RNL Food - Modern Design System */
/* ============================== */

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors */
    --primary: #00C896;
    --primary-light: #00E5B0;
    --primary-dark: #00A67D;
    --primary-alpha: rgba(0, 200, 150, 0.15);
    
    /* Secondary Colors */
    --secondary: #7C3AED;
    --secondary-light: #A78BFA;
    --secondary-dark: #6D28D9;
    
    /* Accent */
    --accent: #F472B6;
    --accent-light: #F9A8D4;
    --accent-dark: #EC4899;
    
    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Neutrals */
    --white: #FFFFFF;
    --black: #0F172A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 200, 150, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(0, 200, 150, 0.4);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-toast: 700;
}

/* Dark Theme */
[data-theme="dark"] {
    --white: #1E293B;
    --black: #F8FAFC;
    --gray-50: #1E293B;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748B;
    --gray-400: #94A3B8;
    --gray-500: #CBD5E1;
    --gray-600: #E2E8F0;
    --gray-700: #F1F5F9;
    --gray-800: #F8FAFC;
    --gray-900: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 200, 150, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        var(--primary-alpha) 0%, 
        rgba(124, 58, 237, 0.1) 25%, 
        rgba(244, 114, 182, 0.1) 50%, 
        rgba(59, 130, 246, 0.1) 75%, 
        var(--primary-alpha) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

[data-theme="dark"] .bg-grid {
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}

.bg-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 25s; }
.particle:nth-child(3) { left: 40%; animation-delay: -4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 60%; animation-delay: -6s; animation-duration: 28s; }
.particle:nth-child(5) { left: 80%; animation-delay: -8s; animation-duration: 24s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 50%;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Morph Shapes */
.morph-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.morph {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morph 15s ease-in-out infinite;
}

.morph-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.morph-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    bottom: 30%;
    left: 5%;
    animation-delay: -5s;
}

.morph-3 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    top: 60%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-4);
}

.loader-svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    animation: loading 2s ease-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .header {
    background: rgba(30, 41, 59, 0.8);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--gray-900);
    line-height: 1.2;
}

.logo-sub {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    background: var(--primary-alpha);
    color: var(--primary);
}

.nav-link i {
    font-size: var(--text-base);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.action-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice Button Animation */
.voice-btn.listening {
    background: var(--primary);
    color: white;
}

.voice-wave {
    display: none;
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    gap: 2px;
}

.voice-btn.listening .voice-wave {
    display: flex;
}

.voice-wave span {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    animation: voiceWave 0.5s ease infinite;
}

.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }

@keyframes voiceWave {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
}

.user-btn i {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: var(--z-dropdown);
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.dropdown-name {
    font-weight: 600;
    color: var(--gray-900);
}

.dropdown-role {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-2) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    font-size: var(--text-sm);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dropdown-item i {
    width: 20px;
    color: var(--gray-400);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-fixed);
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-item i {
    font-size: var(--text-lg);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 25%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 10px;
    color: white;
}

/* Main */
.main {
    min-height: calc(100vh - 70px);
    padding: 0 0 var(--space-8) 0;
    padding-bottom: calc(var(--space-8) + 80px);
}

@media (min-width: 768px) {
    .main {
        padding-bottom: var(--space-8);
    }
}

/* Screen */
.screen {
    display: none;
    animation: fadeIn 0.5s var(--ease-out);
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-6) 0;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-8) 0;
    }
}

.hero.compact {
    padding: var(--space-4) 0;
    gap: var(--space-4);
}

.hero.compact .hero-title {
    font-size: var(--text-3xl);
}

.hero.compact .title-line {
    font-size: var(--text-3xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 30%;
    animation: floatShape 15s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-alpha);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
    margin-bottom: var(--space-6);
}

.hero-badge i {
    color: var(--warning);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.title-line {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .title-line {
        font-size: var(--text-5xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Visual */
.hero-visual {
    display: none;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-visual {
        display: flex;
    }
}

.floating-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fc-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
    color: white;
}

.fc-info {
    flex: 1;
}

.fc-title {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fc-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.fc-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

.fc-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
}

.fc-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature {
    text-align: center;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
    color: var(--primary);
}

.feature h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.feature p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Credits */
.credits {
    text-align: center;
    margin-top: var(--space-16);
    padding: var(--space-8);
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.credit-name {
    font-weight: 600;
    color: var(--gray-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 200, 150, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-100);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: var(--space-8) 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
    color: var(--primary);
}

.auth-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: var(--space-4);
    padding-left: var(--space-12);
    font-family: inherit;
    font-size: var(--text-base);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--duration-fast) var(--ease-out);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.input-wrapper label {
    position: absolute;
    left: var(--space-12);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-base);
    color: var(--gray-400);
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: 0;
    left: var(--space-3);
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
    background: var(--white);
    color: var(--primary);
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.toggle-pass {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 12px;
}

.link {
    font-size: var(--text-sm);
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-8);
}

.header-content h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.header-content p {
    color: var(--gray-500);
}

/* Search */
.search-container {
    margin-bottom: var(--space-6);
}

.search-box {
    position: relative;
    margin-bottom: var(--space-4);
}

.search-box i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: var(--space-4);
    padding-left: var(--space-12);
    padding-right: var(--space-12);
    font-size: var(--text-base);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-clear {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.search-filters {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.filter-chip {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--duration-normal) var(--ease-out);
    animation: cardIn 0.5s var(--ease-out) backwards;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.pc-image {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-alpha), rgba(124, 58, 237, 0.1));
}

.pc-image i {
    font-size: 48px;
    color: var(--primary);
}

.pc-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
}

.pc-favorite {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
}

.pc-favorite:hover {
    transform: scale(1.1);
}

.pc-favorite.active {
    color: var(--error);
}

.pc-favorite.active i {
    animation: heartBeat 0.5s var(--ease-spring);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.pc-content {
    padding: var(--space-5);
}

.pc-category {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.pc-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.pc-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.pc-meta i {
    margin-right: var(--space-1);
}

.pc-rating {
    color: var(--warning);
}

.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

.pc-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pc-qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pc-qty button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.pc-qty button:hover {
    background: var(--primary);
    color: white;
}

.pc-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.pc-add {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: white;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
}

.pc-add:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-16);
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    font-size: var(--text-4xl);
    color: white;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.avatar-edit:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-header h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.profile-header p {
    color: var(--gray-500);
}

/* Balance Card */
.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
}

.balance-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.balance-amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: white;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.action-card .ac-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    color: var(--primary);
}

.action-card span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
}

/* Profile Section */
.profile-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.profile-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.profile-section h2 i {
    color: var(--primary);
}

.info-list {
    margin-bottom: var(--space-4);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-500);
}

.info-value {
    font-weight: 500;
    color: var(--gray-900);
}

/* Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.order-item:hover {
    background: var(--gray-100);
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-items {
    font-weight: 500;
    color: var(--gray-900);
}

.order-date {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.order-status {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.order-status.pending { background: #FEF3C7; color: #92400E; }
.order-status.confirmed { background: #DBEAFE; color: #1E40AF; }
.order-status.ready { background: #D1FAE5; color: #065F46; }
.order-status.completed { background: #E0E7FF; color: #3730A3; }
.order-status.cancelled { background: #FEE2E2; color: #991B1B; }

/* Planner */
.planner-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.planner-week {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .planner-week {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .planner-week {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .planner-week {
        grid-template-columns: repeat(5, 1fr);
    }
}

.planner-day {
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    box-sizing: border-box;
}

.planner-day h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 var(--space-2);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planner-day-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.planner-day-meals {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.planner-meal {
    padding: var(--space-2);
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.planner-meal:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.planner-meal.filled {
    background: var(--primary-alpha);
    border-style: solid;
    border-color: var(--primary);
    color: var(--primary);
}

.planner-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.ps-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.ps-item i {
    color: var(--primary);
}

.ps-item span:first-of-type {
    font-weight: 700;
    color: var(--gray-900);
}

.planner-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Payment */
.payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.amount-selector {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.as-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

.as-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.as-btn {
    padding: var(--space-4);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.as-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.as-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.as-custom {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.as-custom input {
    flex: 1;
    padding: var(--space-4);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-base);
}

.as-custom input:focus {
    outline: none;
    border-color: var(--primary);
}

.as-custom span {
    font-weight: 600;
    color: var(--gray-700);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.pm-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.pm-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.pm-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    border-radius: var(--radius);
    font-size: var(--text-xl);
    color: var(--primary);
}

.pm-info {
    flex: 1;
}

.pm-info h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.pm-info p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.pm-card > i {
    color: var(--gray-400);
}

/* Settings */
.settings-container {
    max-width: 600px;
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.settings-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.settings-section h3 i {
    color: var(--primary);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.setting-item:last-child {
    border-bottom: none;
}

.si-info {
    display: flex;
    flex-direction: column;
}

.si-label {
    font-weight: 500;
    color: var(--gray-900);
}

.si-desc {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.toggle-switch {
    width: 48px;
    height: 28px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-fast) var(--ease-spring);
}

.toggle-switch.active .toggle-knob {
    left: 22px;
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.cp-dot {
    width: 100%;
    height: 100%;
    background: var(--primary);
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow);
}

.sc-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    border-radius: var(--radius);
    font-size: var(--text-xl);
    color: var(--primary);
}

.sc-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.sc-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.admin-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.admin-section h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.admin-orders {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.admin-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.admin-order-info {
    display: flex;
    flex-direction: column;
}

.admin-order-user {
    font-weight: 600;
    color: var(--gray-900);
}

.admin-order-meta {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.admin-order select {
    padding: var(--space-2) var(--space-3);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.notify-form input,
.notify-form textarea {
    padding: var(--space-4);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--text-base);
    resize: vertical;
}

.notify-form input:focus,
.notify-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Success */
.success-container {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.success-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-8);
}

.si-ring {
    position: absolute;
    inset: 0;
    border: 4px solid var(--gray-200);
    border-radius: 50%;
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.si-check {
    position: absolute;
    inset: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
    font-size: var(--text-4xl);
    color: white;
    animation: checkIn 0.5s var(--ease-spring);
}

@keyframes checkIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-container h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.success-text {
    color: var(--gray-500);
    margin-bottom: var(--space-8);
}

.success-order {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    text-align: left;
}

.success-timer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--primary-alpha);
    border-radius: var(--radius-full);
    color: var(--primary);
    margin-bottom: var(--space-8);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transition: right var(--duration-normal) var(--ease-out);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

.cart-clear,
.cart-close {
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
}

.cart-clear:hover,
.cart-close:hover {
    color: var(--error);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.cart-empty {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-400);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: var(--space-4);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
}

.ci-info {
    flex: 1;
}

.ci-name {
    font-weight: 500;
    color: var(--gray-900);
}

.ci-price {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.ci-qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ci-qty button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.ci-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-footer {
    padding: var(--space-5);
    border-top: 1px solid var(--gray-200);
}

.cart-promo {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.cart-promo input {
    flex: 1;
    padding: var(--space-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.cart-promo button {
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
}

.cart-summary {
    margin-bottom: var(--space-4);
}

.cs-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    color: var(--gray-600);
}

.cs-row.discount {
    color: var(--success);
}

.cs-row.total {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-3);
    margin-top: var(--space-2);
}

/* Notifications Panel */
.notif-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transition: right var(--duration-normal) var(--ease-out);
}

.notif-panel.open {
    right: 0;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
}

.notif-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

.notif-header button {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    font-size: var(--text-sm);
    color: var(--primary);
    cursor: pointer;
}

.notif-header-actions {
    display: flex;
    gap: var(--space-2);
}

.notif-header-actions button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--gray-100);
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.notif-header-actions button:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.notif-list {
    flex: 1;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.notif-item:hover {
    background: var(--gray-50);
}

.notif-item.unread {
    background: var(--primary-alpha);
}

.notif-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-500);
}

.notif-item.unread .notif-icon {
    background: var(--primary);
    color: white;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.notif-message {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-1);
}

.notif-time {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-modal.open {
    display: flex;
}

.sm-content {
    width: 100%;
    max-width: 600px;
    margin: 0 var(--space-4);
}

.sm-input {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.sm-input i {
    color: var(--gray-400);
}

.sm-input input {
    flex: 1;
    border: none;
    font-size: var(--text-lg);
    background: transparent;
}

.sm-input input:focus {
    outline: none;
}

.sm-input button {
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.sm-results {
    margin-top: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
}

.sm-result {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.sm-result:hover {
    background: var(--gray-50);
}

.sm-result:last-child {
    border-bottom: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-500);
    cursor: pointer;
    z-index: 1;
}

.modal-content {
    padding: var(--space-6);
    overflow-y: auto;
}

/* Sessions Modal */
.sessions-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-spring);
}

.sessions-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
}

.sm-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

.sm-header button {
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
}

.sm-list {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-4);
}

.session-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
}

.session-item.current {
    background: var(--primary-alpha);
    border: 1px solid var(--primary);
}

.session-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--gray-500);
}

.session-info {
    flex: 1;
}

.session-device {
    font-weight: 500;
    color: var(--gray-900);
}

.session-meta {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.session-meta span {
    margin-right: var(--space-3);
}

.session-badge {
    padding: var(--space-1) var(--space-2);
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: white;
}

.session-end {
    padding: var(--space-2);
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-500);
    cursor: pointer;
}

.session-end:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.sm-actions {
    padding: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

/* Toasts */
#toasts {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.3s var(--ease-spring);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast i {
    font-size: var(--text-lg);
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Confetti Canvas - Fixed to not affect layout */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

/* Favorite Badge */
.favorite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error, #EF4444);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.product-card.in-favorites {
    border: 2px solid var(--primary);
}

/* Meal Planner Styles */
.meal-slot.filled {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.meal-slot.filled .meal-placeholder {
    display: none;
}

.meal-slot.filled .meal-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.meal-slot.filled .meal-price {
    font-size: 9px;
    opacity: 0.9;
}

.meal-day {
    background: var(--card-bg, white);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.meal-day h3 {
    margin: 0 0 6px;
    color: var(--text-primary, #1F2937);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.meal-slot {
    background: var(--gray-100, #F3F4F6);
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.meal-slot:hover {
    background: var(--primary);
    color: white;
}

.meal-type {
    font-size: 8px;
    font-weight: 600;
    margin-bottom: 2px;
}

.meal-placeholder {
    font-size: 7px;
    opacity: 0.7;
}

.meal-selected span:first-of-type {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.meal-selected i {
    font-size: 8px;
}

.meal-selected {
    display: none;
}

.planner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.planner-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Orders History - Beautiful Styles */
.orders-section {
    margin-bottom: 32px;
}

.orders-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.orders-section-title i {
    color: var(--primary);
}

/* Timeline for Active Orders */
.orders-timeline {
    position: relative;
    padding-left: 24px;
}

.orders-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--gray-300));
}

.order-timeline-item {
    position: relative;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.oti-dot {
    position: absolute;
    left: -24px;
    top: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.order-timeline-item.pending .oti-dot { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.order-timeline-item.confirmed .oti-dot { background: var(--info); box-shadow: 0 0 0 2px var(--info); }
.order-timeline-item.preparing .oti-dot { background: var(--secondary); box-shadow: 0 0 0 2px var(--secondary); animation: pulse 1.5s infinite; }
.order-timeline-item.ready .oti-dot { background: var(--success); box-shadow: 0 0 0 2px var(--success); }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.oti-content {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.oti-content:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateX(4px);
}

.oti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.oti-id {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-800);
}

.oti-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.oti-status.pending { background: #FEF3C7; color: #92400E; }
.oti-status.confirmed { background: #DBEAFE; color: #1E40AF; }
.oti-status.preparing { background: #EDE9FE; color: #6D28D9; }
.oti-status.ready { background: #D1FAE5; color: #065F46; }

.oti-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.oti-item {
    background: var(--gray-50);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.oti-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oti-date {
    font-size: 12px;
    color: var(--gray-400);
}

.oti-date i {
    margin-right: 4px;
}

.oti-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

/* Grid for Scheduled Orders */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.order-card-scheduled {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card-scheduled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.order-card-scheduled:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.ocs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ocs-date {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
}

.ocs-date i {
    color: var(--primary);
    margin-right: 6px;
}

.ocs-time {
    background: var(--primary-alpha);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.ocs-items {
    margin-bottom: 12px;
}

.ocs-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-600);
    border-bottom: 1px dashed var(--gray-200);
}

.ocs-item:last-child {
    border-bottom: none;
}

.ocs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.ocs-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
}

.ocs-cancel {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.ocs-cancel:hover {
    background: var(--error);
    color: white;
}

/* Compact List for History */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.order-card-compact:hover {
    background: var(--gray-50);
}

.occ-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
}

.order-card-compact.completed .occ-icon {
    background: #D1FAE5;
    color: #065F46;
}

.order-card-compact.cancelled .occ-icon {
    background: #FEE2E2;
    color: #991B1B;
}

.occ-info {
    flex: 1;
}

.occ-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.occ-id {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
}

.occ-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.occ-status.completed { background: #D1FAE5; color: #065F46; }
.occ-status.cancelled { background: #FEE2E2; color: #991B1B; }

.occ-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
}

.occ-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-800);
}

/* Kitchen Header */
.kitchen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.kitchen-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.kitchen-header h1 i {
    color: var(--primary);
}

/* Admin Analytics */
.admin-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.analytics-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.ac-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-header i {
    color: var(--primary);
}

.ac-stats {
    display: flex;
    gap: 24px;
}

.ac-stat {
    display: flex;
    flex-direction: column;
}

.ac-stat span {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.ac-stat small {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
}

.ac-stat.accent span {
    color: var(--primary);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 8px;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.admin-tab:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.admin-tab.active {
    color: var(--primary);
    background: var(--primary-alpha);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.admin-tab i {
    font-size: 14px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Admin Users List */
.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.admin-user-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.admin-user-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.admin-user-info {
    flex: 1;
}

.admin-user-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.admin-user-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    gap: 12px;
}

.admin-user-stats {
    display: flex;
    gap: 16px;
    text-align: center;
}

.admin-user-stat {
    display: flex;
    flex-direction: column;
}

.admin-user-stat span {
    font-weight: 700;
    color: var(--gray-800);
}

.admin-user-stat small {
    font-size: 10px;
    color: var(--gray-400);
}

.admin-user-actions {
    display: flex;
    gap: 8px;
}

.admin-user-actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-user-actions button:hover {
    background: var(--primary);
    color: white;
}

.admin-user-actions button.delete:hover {
    background: var(--error);
}

/* Admin Menu Grid */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.admin-menu-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.admin-menu-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-menu-item-name {
    font-weight: 600;
    color: var(--gray-900);
}

.admin-menu-item-price {
    font-weight: 700;
    color: var(--primary);
}

.admin-menu-item-category {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.admin-menu-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.admin-menu-item-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
}

/* Admin Orders Full */
.admin-orders-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-order-full {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
}

.admin-order-full:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-order-full .order-id {
    font-weight: 700;
    color: var(--gray-900);
    min-width: 100px;
}

.admin-order-full .order-user {
    flex: 1;
}

.admin-order-full .order-user-name {
    font-weight: 500;
    color: var(--gray-800);
}

.admin-order-full .order-user-meta {
    font-size: 12px;
    color: var(--gray-400);
}

.admin-order-full .order-items-count {
    font-size: 13px;
    color: var(--gray-600);
}

.admin-order-full .order-total {
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
    text-align: right;
}

.admin-order-full .order-date {
    font-size: 12px;
    color: var(--gray-400);
    min-width: 120px;
}

/* Kitchen Screen */
.kitchen-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.kitchen-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.kitchen-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.kitchen-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.kitchen-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--space-2);
    background: var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.kitchen-tab.active span {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.kitchen-orders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
}

.kitchen-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-16);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.kitchen-empty i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.kitchen-empty h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.kitchen-empty p {
    color: var(--gray-500);
}

.kitchen-order {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    transition: all var(--duration-fast) var(--ease-out);
}

.kitchen-order:hover {
    box-shadow: var(--shadow-lg);
}

.kitchen-order.priority-high {
    border-left: 4px solid var(--error);
}

.kitchen-order.priority-medium {
    border-left: 4px solid var(--warning);
}

.kitchen-order.priority-low {
    border-left: 4px solid var(--success);
}

.ko-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.ko-id {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.ko-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.ko-time i {
    color: var(--warning);
}

.ko-user {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

.ko-user strong {
    color: var(--gray-900);
}

.ko-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
}

.ko-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.ko-item-name {
    font-weight: 500;
    color: var(--gray-800);
}

.ko-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ko-item-qty span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
}

.ko-actions {
    display: flex;
    gap: var(--space-2);
}

.ko-actions .btn {
    flex: 1;
}

.btn-cooking {
    background: var(--warning);
    color: white;
}

.btn-cooking:hover {
    background: #D97706;
}

.btn-ready {
    background: var(--success);
    color: white;
}

.btn-ready:hover {
    background: #059669;
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-cancel:hover {
    background: var(--error);
    color: white;
}

/* ==================== Settings ==================== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.settings-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.settings-card-header i {
    color: var(--primary);
    font-size: 18px;
}

.settings-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.settings-card-body {
    padding: 8px 0;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.setting-row:hover {
    background: var(--gray-50);
}

.setting-row.static {
    cursor: default;
}

.setting-row.clickable {
    cursor: pointer;
}

.setting-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.setting-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
    color: var(--primary);
    border-radius: 12px;
    font-size: 18px;
}

.setting-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-row-title {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 15px;
}

.setting-row-desc {
    font-size: 13px;
    color: var(--gray-500);
}

.setting-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0 20px;
}

.setting-arrow {
    color: var(--gray-400);
    font-size: 14px;
}

/* ==================== Color Scheme Selector ==================== */
.color-scheme-selector {
    padding: 10px 0;
}

.color-scheme-selector h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.color-scheme-selector h2 i {
    color: var(--primary);
}

.color-scheme-subtitle {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

.color-schemes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-scheme-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.color-scheme-card:hover {
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.color-scheme-card.active {
    border-color: var(--primary);
    background: var(--primary-alpha);
}

.csc-preview {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.csc-preview i {
    color: white;
    font-size: 22px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.csc-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.csc-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.csc-colors {
    display: flex;
    gap: 6px;
}

.csc-colors span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==================== NEW FEATURES CSS ==================== */

/* Product Badges (NEW/POPULAR) */
.product-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-badge.new-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-badge.popular-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.product-badge.popular-badge i {
    font-size: 10px;
}

/* Badges Container */
.pc-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

/* Allergen Icons */
.pc-allergens {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.allergen-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 6px;
    transition: all 0.2s;
}

.allergen-icon:hover {
    transform: scale(1.2);
    background: rgba(245, 158, 11, 0.3);
}

/* Notifications Panel Improvements */
.notif-panel {
    width: 380px;
    max-width: 100%;
}

.notif-panel .notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--error);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.notif-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Chat Support Button */
.chat-support-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.4);
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 200, 150, 0.5);
}

.chat-support-btn .chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--error);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatPulse 1.5s infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.chat-modal.open {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px 20px 0 0;
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.chat-info-text span {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.support {
    align-self: flex-start;
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.chat-message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Order Status Badges */
.order-status.scheduled {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

/* Favorites with Badges */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* Product Card Cursor */
.product-card {
    cursor: pointer;
}

/* Admin Menu Item Badges */
.admin-menu-item.is-new {
    border: 2px solid var(--success);
}

.admin-menu-item.is-popular {
    border: 2px solid var(--warning);
}

.item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.item-badge.new {
    background: var(--success);
    color: white;
}

.item-badge.popular {
    background: var(--warning);
    color: white;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.role-badge.admin { background: #FEE2E2; color: #991B1B; }
.role-badge.kitchen { background: #FEF3C7; color: #92400E; }
.role-badge.staff { background: #DBEAFE; color: #1E40AF; }
.role-badge.user { background: #D1FAE5; color: #065F46; }

/* Status Select */
.status-select {
    padding: 6px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Kitchen Stats Bar */
.kitchen-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ks-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ks-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.ks-item span {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.ks-item small {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.ks-item.pending i { color: var(--warning); }
.ks-item.preparing i { color: var(--secondary); }
.ks-item.ready i { color: var(--success); }
.ks-item.time i { color: var(--info); }

/* Quick Filters for Kitchen */
.admin-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Search Bar */
.admin-search-bar {
    margin-bottom: 16px;
}

/* Color Scheme Selector Update */
.color-scheme-card .csc-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    border-radius: inherit;
}


/* ==================== TABLET ADAPTATION ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 var(--space-4);
    }
    
    .header-inner {
        padding: var(--space-3) 0;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-title {
        font-size: var(--text-base);
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .hero {
        padding: var(--space-4) 0;
    }
    
    .hero-title {
        gap: var(--space-1);
    }
    
    .title-line {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }
    
    .hero-stats {
        gap: var(--space-6);
        margin-bottom: var(--space-4);
    }
    
    .stat-num {
        font-size: var(--text-2xl);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
        margin-top: var(--space-6);
    }
    
    .feature {
        padding: var(--space-4);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-4);
    }
    
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .admin-section {
        padding: var(--space-4);
    }
    
    .kitchen-orders {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-3);
    }
    
    .kitchen-order {
        padding: var(--space-4);
    }
    
    .cart-sidebar {
        width: 380px;
    }
    
    .notif-panel {
        width: 380px;
    }
    
    .profile-section {
        padding: var(--space-4);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balance-card {
        padding: var(--space-4);
    }
    
    .balance-amount {
        font-size: var(--text-2xl);
    }
    
    .settings-container {
        max-width: 100%;
    }
    
    .settings-card {
        margin-bottom: var(--space-4);
    }
    
    .payment-container {
        max-width: 100%;
    }
    
    .amount-selector {
        padding: var(--space-4);
    }
    
    .as-options {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
    }
    
    .pm-card {
        padding: var(--space-4);
    }
    
    .modal-box {
        max-width: 90%;
    }
    
    .chat-modal {
        width: 360px;
        right: 10px;
    }
    
    .orders-timeline {
        padding-left: 20px;
    }
    
    .orders-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-3);
    }
    
    .order-card-scheduled {
        padding: var(--space-4);
    }
    
    .planner-week {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-analytics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-users-list {
        gap: var(--space-3);
    }
    
    .admin-user-card {
        padding: var(--space-3);
    }
    
    .admin-user-avatar {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .admin-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .admin-order-full {
        padding: var(--space-3);
        gap: var(--space-3);
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* ==================== MOBILE OPTIMIZATION ==================== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .logo-text {
        display: none;
    }
    
    .header-actions {
        gap: var(--space-1);
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
    }
    
    .action-btn .badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .hero-badge {
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .title-line {
        font-size: var(--text-2xl);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        margin-top: var(--space-4);
    }
    
    .feature {
        padding: var(--space-3);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-2);
    }
    
    .feature h3 {
        font-size: var(--text-sm);
    }
    
    .feature p {
        font-size: var(--text-xs);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-3);
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .pc-image {
        height: 120px;
    }
    
    .pc-content {
        padding: var(--space-3);
    }
    
    .pc-category {
        font-size: 10px;
    }
    
    .pc-name {
        font-size: var(--text-sm);
    }
    
    .pc-price {
        font-size: var(--text-base);
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .notif-panel {
        width: 100%;
        right: -100%;
    }
    
    .search-modal {
        padding-top: 10vh;
    }
    
    .sm-content {
        margin: 0 var(--space-3);
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .kitchen-tabs {
        gap: var(--space-1);
    }
    
    .kitchen-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .kitchen-orders {
        grid-template-columns: 1fr;
    }
    
    .ko-header {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .ko-actions {
        flex-direction: column;
    }
    
    .ko-actions .btn {
        width: 100%;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }
    
    .action-card {
        padding: var(--space-3);
    }
    
    .action-card .ac-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .settings-card-header {
        padding: var(--space-3) var(--space-4);
    }
    
    .setting-row {
        padding: var(--space-3) var(--space-4);
    }
    
    .setting-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
    
    .orders-timeline {
        padding-left: 16px;
    }
    
    .oti-content {
        padding: var(--space-3);
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card-scheduled {
        padding: var(--space-3);
    }
    
    .planner-week {
        grid-template-columns: 1fr;
    }
    
    .planner-day {
        padding: var(--space-2);
    }
    
    .meals-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-analytics {
        grid-template-columns: 1fr;
    }
    
    .analytics-card {
        padding: var(--space-3);
    }
    
    .admin-users-grid {
        gap: var(--space-2);
    }
    
    .admin-user-card {
        flex-wrap: wrap;
        padding: var(--space-3);
    }
    
    .admin-user-balance {
        display: none;
    }
    
    .admin-user-stats {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
        padding-top: var(--space-2);
        border-top: 1px solid var(--gray-100);
    }
    
    .admin-user-actions {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
    }
    
    .admin-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-order-full {
        flex-wrap: wrap;
    }
    
    .order-items-preview {
        display: none;
    }
    
    .chat-modal {
        width: 100%;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-height: calc(100vh - 80px);
    }
    
    .chat-support-btn {
        bottom: 90px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .color-schemes-grid {
        gap: var(--space-2);
    }
    
    .color-scheme-card {
        padding: var(--space-3);
    }
    
    .csc-preview {
        width: 44px;
        height: 44px;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-3);
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .balance-card {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .auth-card {
        padding: var(--space-5);
        margin: 0 var(--space-3);
    }
    
    .as-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pm-card {
        padding: var(--space-3);
    }
    
    .modal-box {
        margin: var(--space-3);
        max-height: calc(100vh - var(--space-6));
    }
    
    .modal-content {
        padding: var(--space-4);
    }
    
    .toast {
        margin: 0 var(--space-3);
        padding: var(--space-3) var(--space-4);
    }
    
    #toasts {
        top: var(--space-3);
        right: var(--space-3);
        left: var(--space-3);
    }
}
