/* ============================================
   RANNAGHOR - RESTAURANT ORDERING SYSTEM
   Complete Responsive Stylesheet (FIXED)
   ============================================ */

/* ==========================================
   TABLE OF CONTENTS
   ==========================================
   1. CSS Variables & Theme
   2. Reset & Base Styles
   3. Typography
   4. Utility Classes
   5. Layout & Container
   6. Buttons
   7. Navigation
   8. Welcome Screen
   9. Hero Section
   10. Menu Section
   11. Specials Section
   12. Features Section
   13. Footer
   14. Cart Sidebar
   15. Modals
   16. Cards
   17. Forms
   18. Floating Elements
   19. Animations & Keyframes
   20. Responsive Breakpoints
   ========================================== */

/* ==========================================
   1. CSS VARIABLES & THEME
   ========================================== */

:root {
    /* Colors - Primary */
    --color-primary: #FF8C00;
    --color-primary-dark: #DC143C;
    --color-primary-light: #FFD700;

    /* Colors - Background */
    --color-bg-dark: #1a0a00;
    --color-bg-card: rgba(255, 255, 255, 0.05);
    --color-bg-card-hover: rgba(255, 255, 255, 0.08);
    --color-bg-overlay: rgba(0, 0, 0, 0.8);

    /* Colors - Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;

    /* Colors - Status */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Colors - Border */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 140, 0, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF8C00 0%, #DC143C 100%);
    --gradient-text: linear-gradient(135deg, #FF8C00 0%, #FFD700 50%, #FF6347 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Spacing Scale (Issue #10: Documented for clarity)
       Based on a consistent 4px/0.25rem base unit
       xs=4px, sm=8px, md=16px, lg=24px, xl=32px, 2xl=48px, 3xl=64px */
    --space-xs: 0.25rem;
    /* 4px - Minimal spacing */
    --space-sm: 0.5rem;
    /* 8px - Small spacing */
    --space-md: 1rem;
    /* 16px - Default spacing */
    --space-lg: 1.5rem;
    /* 24px - Large spacing */
    --space-xl: 2rem;
    /* 32px - Extra large spacing */
    --space-2xl: 3rem;
    /* 48px - 2x extra large */
    --space-3xl: 4rem;
    /* 64px - 3x extra large */

    /* Border Radius Scale
       Consistent sizing from small corners to full circles */
    --radius-sm: 0.375rem;
    /* 6px - Small radius */
    --radius-md: 0.5rem;
    /* 8px - Medium radius */
    --radius-lg: 0.75rem;
    /* 12px - Large radius */
    --radius-xl: 1rem;
    /* 16px - Extra large radius */
    --radius-2xl: 1.5rem;
    /* 24px - 2x extra large */
    --radius-full: 9999px;
    /* Fully rounded (pills/circles) */

    /* Font Family */
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* 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;
    --text-6xl: 3.75rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 140, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal-backdrop: 2000;
    --z-modal: 3000;
    --z-popover: 60;
    --z-tooltip: 70;
    --z-toast: 5000;
    --z-max: 100;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Navbar */
    --navbar-height: 70px;
    --navbar-height-mobile: 60px;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open,
body.cart-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.5);
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.currency {
    font-size: 1.1em !important;
    font-weight: bolder;
    margin-right: 0.05em;
    font-family: inherit !important;
    vertical-align: baseline;
}

/* ==========================================
   4. UTILITY CLASSES
   ========================================== */

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.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;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* ==========================================
   5. LAYOUT & CONTAINER
   ========================================== */

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.main-content.visible {
    opacity: 1;
}

/* ==========================================
   6. BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button with Glow */
.btn-primary {
    position: relative;
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover::before {
    opacity: 0.6;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--color-primary);
}

/* Hero Stats Optimization */
.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    /* Increased weight */
    color: #FF8C00;
    /* Use primary brand orange for better visibility */
    line-height: 1;
    margin-bottom: var(--space-xxs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Add shadow for contrast */
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    /* Brighter white */
    font-weight: 500;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* Icon Button */
.btn-icon {
    font-size: var(--text-lg);
}

.btn-text {
    display: inline;
}

/* Close Button */
.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    transition: background var(--transition-fast);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-close svg {
    width: 24px;
    height: 24px;
}

/* Cart Button */
.btn-cart {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.btn-cart .cart-icon {
    width: 22px;
    height: 22px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary-light);
    color: var(--color-bg-dark);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add Button */
.btn-add {
    padding: var(--space-sm) var(--space-lg);
}

/* Quantity Buttons */
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: var(--font-semibold);
}

/* ==========================================
   7. NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(26, 10, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    transition: background var(--transition-base);
}

.navbar.scrolled {
    background: rgba(26, 10, 0, 0.98);
}

.navbar-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand/Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.brand-tagline {
    font-size: var(--text-xs);
    color: var(--color-primary);
}

/* Table Badge */
.table-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-success);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Desktop Navigation Menu */
.navbar-menu {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.order-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary);
    color: var(--color-text-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-waiter {
    display: none;
}

.btn-waiter .btn-icon {
    font-size: var(--text-base);
}

/* Mobile Menu Toggle */
.btn-mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.btn-mobile-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.btn-mobile-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.btn-mobile-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 10, 0, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    animation: slideDown var(--transition-base);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--color-primary);
}

.mobile-nav-icon {
    font-size: var(--text-xl);
}

/* ==========================================
   8. WELCOME SCREEN
   ========================================== */

.welcome-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a0a00 0%, #2d1810 100%);
    z-index: var(--z-max);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    overflow-y: auto;
}

.welcome-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.welcome-header {
    text-align: center;
}

.welcome-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.logo-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.welcome-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.welcome-instruction {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Welcome Card - FIXED to prevent overflow */
.welcome-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    width: 100%;
    overflow: hidden;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    margin-bottom: var(--space-md);
}

.demo-icon {
    width: 14px;
    height: 14px;
}

.table-selection-title {
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-md);
}

/* Table Grid - FIXED for proper containment */
.table-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    width: 100%;
}

.table-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: var(--space-xs);
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    min-width: 0;
}

.table-card:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

.table-card.selected,
.table-card[aria-checked="true"] {
    border-color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
}

.table-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.table-number {
    font-size: 0.625rem;
    font-weight: var(--font-bold);
    margin-top: 2px;
}

/* Table Legend */
.table-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.legend-dot.available {
    background: var(--color-success);
}

.legend-dot.selected {
    background: var(--color-primary);
}

/* Welcome Footer */
.welcome-footer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================
   9. HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--container-padding) var(--space-2xl);
    overflow: hidden;
}

/* Hero Background Effects */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.mesh-gradient::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 140, 0, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(220, 20, 60, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 60%, rgba(139, 69, 19, 0.3) 0%, transparent 40%);
    animation: meshMove 20s ease-in-out infinite;
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #FF8C00 0%, #DC143C 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFD700 0%, #FF6347 100%);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    top: 40%;
    left: 30%;
    animation-delay: -2s;
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Session Badge */
.session-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(22, 101, 52, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 239, 139, 0.2);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: #00ef8b;
    margin-bottom: var(--space-xl);
}

/* Live Dot Animation */
.live-dot {
    width: 8px;
    height: 8px;
    background: #00ef8b;
    border-radius: var(--radius-full);
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 239, 139, 0.5);
}

/* Hero Title */
.hero-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
}

/* Hero Description */
.hero-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

/* ==========================================
   10. MENU SECTION
   ========================================== */

.menu-section {
    padding: var(--space-3xl) 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Search Container */
.search-container {
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 28px);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.search-clear {
    position: absolute;
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xl);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: all var(--transition-base);
    cursor: pointer;
}

.category-tab:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--color-primary);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-text-primary);
}

.tab-icon {
    font-size: var(--text-base);
}

.tab-text {
    display: inline;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.no-results-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.no-results-subtitle {
    color: var(--color-text-muted);
}

/* ==========================================
   11. SPECIALS SECTION
   ========================================== */

.specials-section {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.specials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #1a0a00, #8B4513, #D2691E, #1a0a00);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.3;
}

.specials-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Special Card - UPDATED (removed meta section) */
.special-card {
    position: relative;
    background: var(--color-bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.special-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.special-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.special-badge.discount {
    background: var(--color-error);
    color: white;
}

.special-badge.chef {
    background: var(--color-primary);
    color: white;
}

.special-content {
    display: flex;
    gap: var(--space-lg);
}

.special-image {
    width: 240px;
    height: 135px;
    /* 16:9 Ratio */
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    /* For badge placement */
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.special-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.special-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    flex: 1;
}

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

.special-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.price-current {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.price-original {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* ==========================================
   12. FEATURES SECTION
   ========================================== */

.features-section {
    padding: var(--space-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ==========================================
   13. FOOTER
   ========================================== */

.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Footer Brand */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-links li a {
    transition: color var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--color-primary);
}

.footer-icon {
    flex-shrink: 0;
}

.footer-links .day {
    flex: 1;
}

.footer-links .time {
    color: var(--color-text-muted);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================
   14. CART SIDEBAR
   ========================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: rgba(26, 10, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    z-index: 2500;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.cart-title {
    font-size: var(--text-xl);
}

/* Cart Table Info */
.cart-table-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) var(--space-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
}

.table-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
}

.table-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.table-info-label {
    font-size: var(--text-xs);
    color: var(--color-success);
}

.table-info-number {
    font-weight: var(--font-bold);
}

/* Cart Content */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    padding-bottom: 80px;
    /* Add padding for bottom nav */
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
}

/* Cart Item Image */
.cart-item-image {
    width: 80px;
    height: 52px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.order-item-thumb {
    width: 44px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: var(--font-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-item-quantity .qty-btn {
    width: 32px;
    height: 32px;
}

.cart-item-quantity .qty-value {
    min-width: 32px;
    font-size: var(--text-sm);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.empty-cart-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.empty-cart-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Cart Summary */
.cart-summary {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.summary-row.total {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

/* Cart Instructions */
.cart-instructions {
    margin-bottom: var(--space-md);
}

.instructions-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.instructions-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    resize: none;
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast);
    color: var(--color-text-primary);
}

.instructions-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

/* Place Order Button */
.btn-place-order {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
}

/* ==========================================
   15. MODALS
   ========================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--color-bg-overlay);
}

.modal-container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: #2a1a10;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    animation: modalSlideUp var(--transition-base);
}

.modal-sm {
    max-width: 400px;
}

.modal-md {
    max-width: 560px;
}

.modal-lg {
    max-width: 800px;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.modal-title {
    font-size: var(--text-xl);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-success);
}

/* Modal Body */
.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Modal Close (Top Right) */
.modal-close-top {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.empty-state-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.empty-state-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.order-item {
    padding: var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.order-item:hover {
    border-left-color: var(--color-primary);
}

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

.order-id {
    font-weight: var(--font-bold);
}

.order-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.order-status {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

.order-status.active {
    background: rgba(255, 140, 0, 0.2);
    color: var(--color-primary);
}

.order-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.order-item-row .item-qty {
    color: var(--color-primary);
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.order-total .total-value {
    font-weight: var(--font-bold);
}

/* Track Order List */
.track-order-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.track-order-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
}

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

.track-order-id {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.track-order-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.track-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 140, 0, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-primary);
}

.track-status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.track-order-card.order-served {
    border-color: rgba(16, 185, 129, 0.2);
}

.served-confirmation {
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    margin: var(--space-md) 0;
    color: var(--color-success);
    font-size: var(--text-sm);
}

/* Status Tracker */
.status-tracker {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.status-progress-line {
    position: absolute;
    top: 20px;
    left: 32px;
    right: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.status-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), var(--color-primary));
    border-radius: 2px;
    transition: width 0.6s ease;
    width: 0%;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-base);
}

.step-icon.completed {
    background: var(--color-success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.step-icon.active {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    animation: step-pulse 1.5s ease-in-out infinite;
}

.step-label {
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    text-align: center;
    max-width: 70px;
    line-height: 1.1;
}

.step-label.completed {
    color: var(--color-success);
}

.step-label.active {
    color: var(--color-primary);
}

/* Track Order Items */
.track-order-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.track-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.track-total {
    display: flex;
    flex-direction: column;
}

.track-total-label {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.track-total-value {
    font-weight: var(--font-bold);
}

.track-eta {
    text-align: right;
}

.track-eta-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.track-eta-value {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Success Modal */
.success-content {
    padding: var(--space-xl);
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--gradient-success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmark-pop 0.5s ease-out;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.success-checkmark svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-checkmark svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkmark-draw 0.5s ease-out 0.3s forwards;
}

.success-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.5s ease 0.3s both;
}

.success-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.order-number {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.success-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.success-info-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
}

.info-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.info-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-weight: var(--font-bold);
}

.success-tip {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.success-tip p {
    font-size: var(--text-sm);
    color: var(--color-success);
}

/* Waiter Modal */
.waiter-content {
    padding: var(--space-xl);
    text-align: center;
}

.waiter-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    animation: bounce 1s ease-in-out infinite;
}

.waiter-icon.success {
    animation: none;
}

.waiter-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.waiter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Item Modal */
.item-modal-content {
    padding: var(--space-xl);
    text-align: center;
}

.item-modal-icon {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-modal-details {
    text-align: left;
}

.item-modal-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.item-modal-subtitle {
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.item-modal-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.item-modal-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.item-modal-category {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.item-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.item-modal-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

.item-quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ==========================================
   16. CARDS
   ========================================== */

/* Food Card */
.food-card {
    position: relative;
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.food-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

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

.food-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg);
}

.food-card-content {
    position: relative;
    padding: var(--space-lg);
}

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

.food-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Changed from 1 to rectangular 16:10 */
    overflow: hidden;
    background: var(--color-bg-dark);
    border-radius: var(--radius-2xl);
}

.food-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.food-card:hover .food-card-image img {
    transform: scale(1.1);
}

.food-card-badges {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
    z-index: 2;
}

.food-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.food-badge.popular {
    background: rgba(255, 140, 0, 0.9);
    color: #ffffff;
}

.food-badge.spicy {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.food-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 2px;
}

.food-card-title-bn {
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.food-card-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.food-card-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

/* ==========================================
   17. FORMS
   ========================================== */

input,
textarea {
    color: var(--color-text-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

/* ==========================================
   18. FLOATING ELEMENTS
   ========================================== */

/* Floating Cart (Mobile) */
.floating-cart {
    position: fixed;
    bottom: 100px;
    right: var(--space-md);
    z-index: var(--z-fixed);
}

/* Floating Track Order */
.floating-track {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    /* Above nav (1000) but below toast/modals */
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .floating-track {
        bottom: calc(85px + var(--space-md));
    }
}

/* FAB (Floating Action Button) */
.fab {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.05);
}

.fab:active {
    transform: scale(0.95);
}

.fab-cart {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    position: relative;
    color: var(--color-text-primary);
}

.fab-cart .fab-icon {
    width: 24px;
    height: 24px;
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-primary-light);
    color: var(--color-bg-dark);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-track {
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fab-track:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
}

.fab-track .fab-badge {
    position: static;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.fab-text {
    font-weight: var(--font-semibold);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    cursor: pointer;
    color: var(--color-text-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Toast Container */
.toast-container {
    /* Glassmorphic Pill Design for Mobile & Desktop */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    width: auto;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: toastSlideDown 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes toastSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.toast-warning {
    background: var(--color-warning);
}

.toast.toast-error {
    background: var(--color-error);
}

.toast.toast-out {
    animation: toastOut var(--transition-base) forwards;
}

/* ==========================================
   19. ANIMATIONS & KEYFRAMES
   ========================================== */

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes meshMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 2%) rotate(1deg);
    }

    50% {
        transform: translate(-1%, 3%) rotate(-1deg);
    }

    75% {
        transform: translate(3%, -2%) rotate(2deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.2);
    }
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes step-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 140, 0, 0.9);
    }
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes cart-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.cart-bounce {
    animation: cart-bounce 0.4s ease;
}

/* ==========================================
   20. RESPONSIVE BREAKPOINTS
   ========================================== */

/* Small Mobile (up to 374px) */
@media (max-width: 374px) {
    :root {
        --container-padding: 1rem;
    }

    .table-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
    }

    .table-card {
        padding: var(--space-xs);
    }

    .table-icon {
        font-size: 1rem;
    }

    .table-number {
        font-size: 0.5rem;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat-number {
        font-size: var(--text-xl);
    }

    .category-tab {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .success-info-grid {
        grid-template-columns: 1fr;
    }

    .special-content {
        flex-direction: column;
        gap: var(--space-md);
    }

    .special-icon {
        font-size: 48px;
    }
}

/* Mobile (375px - 639px) */
@media (min-width: 375px) and (max-width: 639px) {
    .table-icon {
        font-size: 1.5rem;
    }

    .table-number {
        font-size: 0.625rem;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet (640px - 767px) */
@media (min-width: 640px) {
    :root {
        --navbar-height: 70px;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-grid {
        gap: var(--space-md);
    }

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

    .table-icon {
        font-size: 1.75rem;
    }

    .table-number {
        font-size: 0.75rem;
    }
}

/* Medium (768px - 1023px) */
@media (min-width: 768px) {
    .btn-mobile-menu {
        display: none;
    }

    .navbar-menu {
        display: flex;
    }

    .btn-waiter {
        display: inline-flex;
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .section-title {
        font-size: var(--text-4xl);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .floating-cart {
        display: none !important;
    }

    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 300px;
        height: 300px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* Large (1024px - 1279px) */
@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }
}

/* Extra Large (1280px+) */
@media (min-width: 1280px) {
    .section-container {
        padding: 0 var(--space-xl);
    }
}

/* Height-based adjustments */
@media (max-height: 700px) {
    .hero-section {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + var(--space-xl));
        padding-bottom: var(--space-xl);
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .food-card:hover {
        transform: none;
    }

    .food-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

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

    .table-card:hover {
        transform: none;
    }

    .table-card:active {
        transform: scale(0.95);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {

    .navbar,
    .floating-cart,
    .floating-track,
    .back-to-top,
    .cart-sidebar,
    .modal,
    .toast-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .main-content {
        opacity: 1;
    }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: calc(var(--navbar-height) + var(--space-md)) var(--container-padding) var(--space-md);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-description {
        display: none;
    }

    .hero-stats {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .session-badge {
        margin-bottom: var(--space-md);
    }
}

/* Dark mode media query (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Already dark, but can add specific overrides here */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.3);
        --color-text-secondary: #d1d5db;
        --color-text-muted: #9ca3af;
    }

    .food-card,
    .special-card,
    .feature-card,
    .cart-item,
    .order-item {
        border-width: 2px;
    }
}

/* ==========================================
   SESSION BADGE OPTIMIZATION
   ========================================== */
.session-text {
    color: #00ef8b;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ==========================================
   TABLE SELECTION OPTIMIZATION
   ========================================== */
.table-grid-optimized {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.table-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.table-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

.table-btn.selected {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(220, 20, 60, 0.2));
    border-color: #FF8C00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.table-btn.vip-table {
    border-color: rgba(255, 215, 0, 0.3);
}

.table-btn.vip-table:hover {
    border-color: rgba(255, 215, 0, 0.6);
}

.table-icon-circle {
    font-size: 1.5rem;
}

.table-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   MENU ITEMS SIZE OPTIMIZATION
   ========================================== */
.food-card,
.special-card {
    padding: 1rem !important;
}

.food-card .food-emoji,
.special-card .special-emoji {
    font-size: 2.5rem !important;
}

.food-card .food-name,
.special-card .special-name {
    font-size: 1rem !important;
}

.food-card .food-price,
.special-card .special-price {
    font-size: 1.25rem !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .table-grid-optimized {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }

    .table-btn {
        padding: 0.75rem 0.25rem;
    }

    .table-icon-circle {
        font-size: 1.25rem;
    }

    .table-label {
        font-size: 0.7rem;
    }

    .food-card,
    .special-card {
        padding: 0.875rem !important;
    }

    .food-card .food-emoji,
    .special-card .special-emoji {
        font-size: 2rem !important;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .table-grid-optimized {
        max-width: 450px;
    }

    .food-card .food-emoji,
    .special-card .special-emoji {
        font-size: 2.25rem !important;
    }
}

/* ==========================================
   TABLE SELECTION - MODERN REDESIGN
   ========================================== */

.table-section {
    margin-bottom: 2rem;
}

.welcome-screen .section-header,
.table-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(220, 20, 60, 0.1));
    border-left: 3px solid #FF8C00;
    border-radius: 8px;
}

.welcome-screen .section-header.vip-header,
.table-section .section-header.vip-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.15));
    border-left-color: #FFD700;
}

.section-icon {
    font-size: 1.5rem;
}

.section-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.table-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.vip-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.modern-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1.5px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 1.75rem 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
    pointer-events: none;
}

.modern-card:hover .card-shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.gold-shine {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.2) 50%, transparent 70%);
}

.vip-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(218, 165, 32, 0.08));
    border-color: rgba(255, 215, 0, 0.4);
}

.vip-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #1a0a00;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.table-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.vip-card .table-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 12px 32px rgba(255, 140, 0, 0.25), 0 0 0 1px rgba(255, 140, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vip-card:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modern-card.selected {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.25), rgba(220, 20, 60, 0.25));
    border-color: #FF8C00;
    transform: scale(0.98);
    box-shadow: inset 0 4px 16px rgba(255, 140, 0, 0.3), 0 0 0 2px rgba(255, 140, 0, 0.5);
}

.vip-card.selected {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(218, 165, 32, 0.3));
    border-color: #FFD700;
    box-shadow: inset 0 4px 16px rgba(255, 215, 0, 0.35), 0 0 0 2px rgba(255, 215, 0, 0.6);
}

.modern-card.selected .table-status {
    color: #FF8C00;
    font-weight: 700;
}

.vip-card.selected .table-status {
    color: #FFD700;
}

@media (max-width: 640px) {
    .table-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .vip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-card {
        padding: 1.25rem 0.75rem;
    }

    .section-header {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }

    .section-icon {
        font-size: 1.25rem;
    }

    .section-label {
        font-size: 1rem;
    }

    .table-number {
        font-size: 2rem;
    }

    .table-status {
        font-size: 0.65rem;
    }

    .table-section {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .table-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .vip-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}

/* Welcome Screen Layout Fix */
/* Welcome Screen Scroll Fix */
.welcome-screen {
    padding: 1rem;
    overflow-y: hidden;
    /* Fix Issue 1: Hide scroll bar */
    height: 100vh;
    /* Force full height */
}

.welcome-screen-new {
    overflow-y: auto !important;
    height: 100vh;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 40px;
    /* Space for admin buttons on short screens */
}

.welcome-screen-new::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Hide scrollbar on body when welcome screen is active */
body.welcome-active {
    overflow: hidden !important;
    height: 100vh;
}

.welcome-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.welcome-header {
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.welcome-instruction {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.demo-badge {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}

.table-selection-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.welcome-card {
    padding: 1.25rem;
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 0.8rem;
    }

    .welcome-instruction {
        font-size: 0.7rem;
    }

    .table-selection-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .welcome-card {
        padding: 1rem;
    }
}

/* WELCOME SCREEN COMPACT FIX */
.welcome-screen {
    padding: 0.5rem !important;
    max-height: 100vh;
    overflow-y: auto;
}

.welcome-content {
    padding: 0.5rem 0 !important;
}

.welcome-header {
    margin-bottom: 0.75rem !important;
}

.welcome-logo {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.5rem !important;
}

.welcome-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
}

.welcome-subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.125rem !important;
}

.welcome-instruction {
    font-size: 0.65rem !important;
    margin-bottom: 0.5rem !important;
}

.demo-badge {
    margin-bottom: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.7rem !important;
}

.demo-icon {
    width: 12px !important;
    height: 12px !important;
}

.table-selection-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.welcome-card {
    padding: 0.75rem !important;
}

.table-section {
    margin-bottom: 1rem !important;
}

.section-header {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.section-icon {
    font-size: 1.125rem !important;
}

.section-label {
    font-size: 0.875rem !important;
}

.modern-card {
    padding: 1rem 0.5rem !important;
}

.table-number {
    font-size: 1.75rem !important;
}

.table-status {
    font-size: 0.625rem !important;
}

.vip-badge {
    font-size: 0.5rem !important;
    padding: 0.2rem 0.5rem !important;
}

.welcome-footer {
    margin-top: 0.75rem !important;
    font-size: 0.65rem !important;
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 1.1rem !important;
    }

    .table-selection-title {
        font-size: 0.9rem !important;
    }

    .table-number {
        font-size: 1.5rem !important;
    }

    .modern-card {
        padding: 0.875rem 0.375rem !important;
    }
}

/* ULTRA COMPACT WELCOME SCREEN */
.welcome-screen {
    padding: 0.25rem !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
}

.welcome-content {
    width: 100% !important;
    max-width: 500px !important;
    padding: 0.25rem !important;
}

.welcome-header {
    margin-bottom: 0.5rem !important;
}

.welcome-logo {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0.25rem !important;
}

.welcome-title {
    font-size: 1rem !important;
    margin-bottom: 0.125rem !important;
    line-height: 1.2 !important;
}

.welcome-subtitle {
    font-size: 0.65rem !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

.welcome-instruction {
    font-size: 0.6rem !important;
    margin-bottom: 0.375rem !important;
    line-height: 1.2 !important;
}

.demo-badge {
    margin-bottom: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.625rem !important;
}

.demo-icon {
    width: 10px !important;
    height: 10px !important;
}

.table-selection-title {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
}

.welcome-card {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.table-section {
    margin-bottom: 0.75rem !important;
}

.section-header {
    padding: 0.375rem 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.section-icon {
    font-size: 1rem !important;
}

.section-label {
    font-size: 0.75rem !important;
}

.table-cards-grid {
    gap: 0.5rem !important;
}

.modern-card {
    padding: 0.75rem 0.375rem !important;
}

.table-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.125rem !important;
}

.table-status {
    font-size: 0.55rem !important;
}

.vip-badge {
    font-size: 0.45rem !important;
    padding: 0.15rem 0.375rem !important;
    top: 0.25rem !important;
    right: 0.25rem !important;
}

.welcome-footer {
    margin-top: 0.5rem !important;
    padding: 0.25rem !important;
    font-size: 0.6rem !important;
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 0.9rem !important;
    }

    .table-selection-title {
        font-size: 0.8rem !important;
    }

    .table-number {
        font-size: 1.25rem !important;
    }

    .modern-card {
        padding: 0.625rem 0.25rem !important;
    }

    .section-label {
        font-size: 0.7rem !important;
    }

    .table-cards-grid {
        gap: 0.375rem !important;
    }
}

/* ==========================================
   NEW WELCOME SCREEN REDESIGN
   ========================================== */

.welcome-screen-new {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(135deg, #1a0a00 0%, #2d1810 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.welcome-wrapper {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Brand */
.welcome-brand {
    margin-bottom: 2rem;
}

.brand-icon-lg {
    font-size: 3.5rem;
    margin-bottom: -0.5rem;
    margin-top: -5rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Table Selector */
.table-selector {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.selector-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.table-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.625rem;
}

.table-btn-compact {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(220, 20, 60, 0.1));
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table-btn-compact:hover {
    transform: translateY(-4px);
    border-color: #FF8C00;
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(220, 20, 60, 0.2));
}

.table-btn-compact.selected {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(220, 20, 60, 0.3));
    border-color: #FF8C00;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
}

.table-btn-compact.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.15));
    border-color: rgba(255, 215, 0, 0.4);
}

.table-btn-compact.vip:hover {
    border-color: #FFD700;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.vip-tag {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.45rem;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #1a0a00;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .brand-icon-lg {
        font-size: 2.5rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .table-selector {
        padding: 1rem;
    }

    .selector-title {
        font-size: 1rem;
    }

    .table-grid-compact {
        gap: 0.5rem;
    }

    .table-btn-compact {
        font-size: 1rem;
    }

    /* Fix Issue 7: Title Truncation on Mobile */
    .special-title {
        font-size: 1.1rem !important;
        padding-right: 75px !important;
    }

    .status-steps {
        padding: 0 5px;
    }

    .step-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
        margin-bottom: 0.375rem !important;
    }

    .status-progress-line {
        top: 17px !important;
        left: 20px !important;
        right: 20px !important;
    }

    .step-label {
        font-size: 0.625rem !important;
        max-width: 60px;
    }

    /* Track Order Button Optimization */
    .fab-track {
        padding: var(--space-sm) var(--space-lg) !important;
        gap: var(--space-xs) !important;
    }

    .fab-track .fab-text {
        font-size: 0.8rem !important;
    }

    .floating-track {
        bottom: calc(80px + var(--space-sm)) !important;
    }

    /* Toast Optimization */
    .toast-container {
        width: 90% !important;
        top: var(--space-md) !important;
    }

    .toast {
        padding: var(--space-sm) var(--space-md) !important;
        font-size: 0.75rem !important;
        border-radius: var(--radius-lg) !important;
    }
}

@media (max-width: 400px) {
    .welcome-brand {
        margin-bottom: 1.5rem;
    }

    .table-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced Welcome Screen Elements */
.brand-subtitle {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.375rem !important;
}

.brand-tagline {
    font-size: 0.8rem;
    color: rgba(255, 140, 0, 0.8);
    font-style: italic;
    margin-top: 0.25rem;
}

.demo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 193, 7, 0.9);
}

.demo-tag .demo-icon {
    width: 16px;
    height: 16px;
}

.welcome-footer-new {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

@media (max-width: 640px) {
    .brand-subtitle {
        font-size: 0.75rem !important;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .demo-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .demo-tag .demo-icon {
        width: 14px;
        height: 14px;
    }

    .welcome-footer-new {
        font-size: 0.65rem;
        margin-top: 1rem;
    }
}

/* Center section headers (restore previous style) */
.section-header {
    text-align: center !important;
}

/* Center category tabs only on desktop to prevent scroll issues on mobile */
@media (min-width: 1024px) {
    .category-tabs {
        justify-content: center !important;
    }
}

/* ==========================================
   5. MOBILE BOTTOM NAVIGATION
   ========================================== */

.mobile-bottom-nav {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {

    /* Bug Fix: Ensure modals don't get covered by bottom nav */
    .modal {
        align-items: flex-start !important;
        padding-top: 5vh !important;
        padding-bottom: 120px !important;
        /* Large padding to clear nav */
        overflow-y: auto !important;
    }

    .modal-container {
        max-height: none !important;
        align-items: flex-start !important;
    }

    .modal-content {
        max-height: none !important;
        margin-bottom: 120px !important;
    }

    .modal-body {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Responsive Specials */
    .special-content {
        flex-direction: column;
    }

    .special-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav .nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(10, 10, 10, 0.95);
}

/* Show only on mobile/tablet */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to body so content doesn't get hidden behind nav */
    body {
        padding-bottom: 80px;
    }

    /* Hide standard desktop nav items if visible */
    .navbar-menu {
        display: none !important;
    }

    /* Modal visibility fix: Handled by z-index: 3000 */

    /* Fix Issue 3: No need for floating cart on mobile */
    .floating-cart {
        display: none !important;
    }

    /* Hide mobile bottom nav on welcome screen */
    body.welcome-active .mobile-bottom-nav {
        display: none !important;
    }

    body.welcome-active {
        padding-bottom: 0 !important;
    }
}

/* ==========================================
   FIX: ENSURE WELCOME SCREEN INTERACTIVITY
   ========================================== */
.welcome-content-wrapper,
.welcome-card {
    position: relative;
    z-index: 5000;
    /* Above EVERYTHING */
    /* High z-index to be above particles */
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Ensure background doesn't steal clicks */
}

/* ==========================================
   FIX: SPECIALS GRID LAYOUT (TABLET/MOBILE)
   ========================================== */
@media (max-width: 900px) {
    .specials-grid {
        grid-template-columns: 1fr !important;
    }

    .special-card {
        padding: var(--space-lg) !important;
    }

    .special-footer {
        flex-wrap: wrap;
    }
}

.table-btn-compact,
.table-btn-compact.vip {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
}

/* ============================================
   QR SCANNER & WELCOME SCREEN UPDATES
   ============================================ */

.scanner-section {
    width: 100%;
    max-width: 400px;
    margin: -15px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scanner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: white;
}

.scanner-icon {
    font-size: 2.5rem;
}

.scanner-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.qr-reader {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ff6b00;
}

.scanner-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.manual-selector {
    width: 100%;
    margin: 20px 0;
}

.manual-selector.hidden {
    display: none;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.btn-action-text {
    background: none;
    border: none;
    color: #ff8c00;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.btn-action-text:hover {
    color: #ff6b00;
}

.admin-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Fix for Scanner Video Element */
#reader video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .scanner-section {
        padding: 15px;
    }

    .scanner-icon {
        font-size: 2rem;
    }

    .scanner-title {
        font-size: 1rem;
    }
}

/* Premium Table Selection Styling */
.table-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.table-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.table-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.table-card-premium:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.table-card-premium:hover::before {
    opacity: 1;
}

.table-card-premium.selected {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(220, 20, 60, 0.15));
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.table-card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
}

.table-card-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 480px) {
    .table-grid-premium {
        gap: 10px;
    }

    .table-card-premium {
        padding: 20px 10px;
    }

    .table-card-icon {
        font-size: 1.5rem;
    }

    .table-card-number {
        font-size: 0.9rem;
    }
}