/* ================================================
   LEEK FOOD - Premium Design System 2024
   ================================================ */

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
    /* Primary Colors */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fdba74;
    --primary-glow: rgba(249, 115, 22, 0.3);

    /* Secondary Colors */
    --secondary: #064e3b;
    --secondary-dark: #022c22;
    --secondary-light: #047857;
    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;
    --body-bg: #fffcf9;

    /* Dark Theme */
    --dark-900: #0f0f23;
    --dark-800: #1a1a3e;
    --dark-700: #252545;
    --dark-600: #2d2d5a;
    --dark-500: #3d3d6b;

    /* Neutral Colors */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 4px 20px rgba(255, 107, 107, 0.35);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
}

/* =========================================
   BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1,
.h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2,
.h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3,
.h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4,
.h4 {
    font-size: 1.25rem;
}

h5,
.h5 {
    font-size: 1rem;
}

h6,
.h6 {
    font-size: 0.875rem;
}

p {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* =========================================
   NAVBAR - Premium Glassmorphism
   ========================================= */
.navbar {
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 100%) !important;
}

.custom-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

body.dark-theme .custom-navbar {
    background: rgba(15, 23, 42, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-size: 1.3rem !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-wrapper img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   HERO SECTION - Immersive
   ========================================= */
.hero-section {
    min-height: 60vh;
    padding: 3rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(15, 15, 35, 0.92) 0%, rgba(255, 107, 107, 0.75) 100%),
        url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1200') no-repeat center center/cover;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin: -1rem -0.75rem 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 35, 0.5) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
}

/* Hero Search Form */
.hero-section form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-section .form-control,
.hero-section .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.hero-section .form-control:focus,
.hero-section .form-select:focus {
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
    transform: translateY(-1px);
}

/* =========================================
   CARDS - Modern & Interactive
   ========================================= */
.card {
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.card-footer {
    background: linear-gradient(180deg, transparent 0%, var(--gray-50) 100%);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

/* =========================================
   BUTTONS - Premium Gradients
   ========================================= */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #d14545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: #fff;
}

.btn-dark {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 56px;
}

/* =========================================
   FORMS - Clean & Modern
   ========================================= */
.form-control,
.form-select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    min-height: 48px;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-floating>label {
    padding: 0.875rem 1rem;
    color: var(--gray-500);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* =========================================
   BADGES - Vibrant
   ========================================= */
.badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-success,
.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
}

.badge-warning,
.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%) !important;
    color: #fff !important;
}

.badge-danger,
.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%) !important;
}

.badge-info,
.bg-info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%) !important;
}

.badge-primary,
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* =========================================
   ALERTS - Modern
   ========================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
}

/* =========================================
   TABLES - Clean
   ========================================= */
.table {
    font-size: 0.95rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-100);
}

.table-hover tbody tr:hover {
    background: var(--gray-50);
}

/* =========================================
   LIST GROUP - Premium
   ========================================= */
.list-group-item {
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.5rem;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.list-group-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

/* =========================================
   FOOTER - Premium Dark
   ========================================= */
footer {
    background: linear-gradient(180deg, var(--dark-800) 0%, var(--dark-900) 100%) !important;
    padding: 3rem 0 !important;
    margin-top: auto;
}

footer h5,
footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p,
footer li,
footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary-light);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   BOTTOM NAV - Mobile App Style
   ========================================= */
.modal-backdrop, .modal-backdrop.show,
.offcanvas-backdrop, .offcanvas-backdrop.show {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #fff 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--primary);
}

.bottom-nav a.active i {
    transform: scale(1.1);
}

.bottom-nav i {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: var(--transition-base);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

.animate-slide-in {
    animation: slideInLeft 0.4s ease-out;
}

/* Stagger children */
.stagger-children>* {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Firefox fallback */
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-900) 100%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   RESTAURANT PAGE SPECIFIC
   ========================================= */
.restaurant-header {
    height: 220px !important;
    margin: -1rem -0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.restaurant-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.restaurant-header .container {
    position: relative;
    z-index: 1;
}

/* Menu Items */
.menu-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.menu-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* =========================================
   RESPONSIVE - TABLET (768px+)
   ========================================= */
@media (min-width: 768px) {
    .hero-section {
        min-height: 55vh;
        padding: 4rem 2rem;
        margin: 0 0 2rem;
        border-radius: var(--radius-xl);
    }

    .card-img-top {
        height: 200px;
    }

    .navbar-collapse {
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .restaurant-header {
        height: 280px !important;
        margin: 0 0 2rem;
        border-radius: var(--radius-xl);
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* =========================================
   RESPONSIVE - DESKTOP (992px+)
   ========================================= */
@media (min-width: 992px) {
    .hero-section {
        min-height: 60vh;
        padding: 5rem;
    }

    .card:hover {
        transform: translateY(-6px);
    }

    .restaurant-header {
        height: 320px !important;
    }

    .sticky-top {
        position: sticky !important;
        top: 100px !important;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (<768px)
   ========================================= */
@media (max-width: 767.98px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    footer {
        margin-bottom: 60px;
    }

    .hero-section form .row {
        flex-direction: column;
    }

    .hero-section form .col-md-3,
    .hero-section form .col-md-2 {
        margin-bottom: 0.75rem;
    }

    .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    /* Fixed cart on mobile */
    .cart-container {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        max-height: 50vh;
        overflow-y: auto;
        z-index: 999;
        padding: 1.5rem;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    .navbar,
    footer,
    .bottom-nav,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

        /* =========================================
   PREMIUM HEADER STYLES
   ========================================= */
        .custom-navbar {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            position: sticky;
            top: 0;
            z-index: 1030;
            transition: all 0.3s ease;
        }

        body.dark-theme .custom-navbar {
            background: rgba(15, 15, 35, 0.95) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .brand-text {
            font-size: 1.25rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent; /* Firefox fallback */
        }

        .nav-icon {
            font-size: 1.1rem;
            margin-right: 0.4rem;
            color: var(--primary);
            opacity: 0.8;
        }

        .custom-navbar .nav-link {
            font-weight: 600;
            color: var(--gray-700) !important;
            padding: 0.5rem 1rem !important;
            border-radius: 50rem;
            transition: all 0.3s ease;
        }

        .custom-navbar .nav-link:hover {
            color: var(--primary) !important;
            background: rgba(249, 115, 22, 0.1);
        }

        .custom-navbar .nav-link.active {
            color: var(--primary) !important;
            background: rgba(249, 115, 22, 0.15);
        }

        body.dark-theme .custom-navbar .nav-link {
            color: var(--gray-300) !important;
        }
        body.dark-theme .custom-navbar .nav-link:hover, body.dark-theme .custom-navbar .nav-link.active {
            color: var(--primary) !important;
        }

        .btn-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            background: var(--gray-100);
        }
        .btn-icon:hover {
            background: var(--gray-200);
            transform: scale(1.05);
        }
        body.dark-theme .btn-icon {
            background: var(--dark-700);
            color: var(--gray-200);
        }

        .premium-dropdown {
            border-radius: 1rem;
            padding: 0.5rem;
            min-width: 220px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }
        body.dark-theme .premium-dropdown {
            background: var(--dark-800);
            border: 1px solid var(--glass-border);
        }

        .premium-dropdown .dropdown-item {
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
            font-weight: 500;
            color: var(--gray-700); /* Override dark base styles for light dropdown */
            transition: all 0.2s;
        }
        .premium-dropdown .dropdown-item:hover {
            background: var(--gray-100);
            transform: translateX(4px);
        }
        body.dark-theme .premium-dropdown .dropdown-item {
            color: var(--gray-300);
        }
        body.dark-theme .premium-dropdown .dropdown-item:hover {
            background: var(--dark-700);
        }

        .premium-offcanvas {
            border-radius: 1.5rem 0 0 1.5rem;
        }
        body.dark-theme .premium-offcanvas {
            background: var(--dark-900);
            color: var(--gray-200);
        }

        /* Bottom Nav Bar */
        @media (max-width: 991.98px) {
            body {
                padding-bottom: 75px !important;
            }
        }

        .bottom-nav-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0,0,0,0.05);
            z-index: 1020;
            padding-bottom: 8px; /* Fallback */
            padding-bottom: env(safe-area-inset-bottom, 8px);
        }
        body.dark-theme .bottom-nav-bar {
            background: rgba(15, 15, 35, 0.98);
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .bottom-nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 65px;
        }

        .bottom-nav-bar .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--gray-500);
            text-decoration: none;
            flex: 1;
            height: 100%;
            transition: all 0.3s ease;
        }

        body.dark-theme .bottom-nav-bar .nav-item {
            color: var(--gray-400);
        }

        .bottom-nav-bar .nav-item i {
            font-size: 1.3rem;
            margin-bottom: 2px;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .bottom-nav-bar .nav-item span {
            font-size: 0.65rem;
            font-weight: 600;
        }

        .bottom-nav-bar .nav-item.active,
        .bottom-nav-bar .nav-item:hover {
            color: var(--primary);
        }

        .bottom-nav-bar .nav-item.active i {
            transform: translateY(-2px) scale(1.1);
        }

        .cart-icon-wrapper {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: -20px;
            border: 3px solid #fff;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #e65c00) 100%);
            box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
            transition: transform 0.3s;
            z-index: 10;
        }

        body.dark-theme .cart-icon-wrapper {
            border-color: var(--dark-900);
        }

        .cart-pop {
            animation: cartBounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) both;
        }

        @keyframes cartBounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15) translateY(-4px); }
        }

        /* =========================================
   DARK THEME OVERRIDES
   ========================================= */
        body.dark-theme {
            background: var(--dark-900);
            color: var(--gray-200);
        }

        body.dark-theme h1,
        body.dark-theme h2,
        body.dark-theme h3,
        body.dark-theme h4,
        body.dark-theme h5,
        body.dark-theme h6,
        body.dark-theme .h1,
        body.dark-theme .h2,
        body.dark-theme .h3,
        body.dark-theme .h4,
        body.dark-theme .h5,
        body.dark-theme .h6,
        body.dark-theme .card-title {
            color: var(--gray-100);
        }

        body.dark-theme p,
        body.dark-theme .card-text {
            color: var(--gray-400);
        }

        body.dark-theme .card {
            background: var(--dark-800);
            border: 1px solid var(--glass-border);
        }

        body.dark-theme .card-footer {
            background: var(--dark-900);
            border-color: var(--dark-700);
        }

        body.dark-theme .card:hover {
            box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15);
            border-color: rgba(255, 107, 107, 0.3);
        }

        body.dark-theme .form-control,
        body.dark-theme .form-select,
        body.dark-theme .input-group-text {
            background: var(--dark-700);
            border-color: var(--dark-600);
            color: var(--gray-200);
        }

        body.dark-theme .form-control:focus,
        body.dark-theme .form-select:focus {
            background: var(--dark-800);
            color: #fff;
            border-color: var(--primary);
        }

        body.dark-theme .form-control::placeholder {
            color: var(--gray-500);
        }

        body.dark-theme .menu-item {
            background: var(--dark-800);
            border: 1px solid var(--glass-border);
        }

        body.dark-theme .list-group-item {
            background: var(--dark-800);
            color: var(--gray-200);
            border-color: var(--glass-border);
        }

        body.dark-theme .table thead th {
            background: var(--dark-800);
            color: var(--gray-300);
            border-color: var(--dark-600);
        }

        body.dark-theme .table td {
            border-color: var(--dark-700);
            color: var(--gray-300);
        }

        body.dark-theme .table-hover tbody tr:hover {
            background: var(--dark-700);
        }

        /* =========================================
           COMPREHENSIVE DARK THEME TEXT OVERRIDES
           ========================================= */
        body.dark-theme {
            background-color: var(--dark-900) !important;
            color: var(--gray-200) !important;
        }

        body.dark-theme h1,
        body.dark-theme h2,
        body.dark-theme h3,
        body.dark-theme h4,
        body.dark-theme h5,
        body.dark-theme h6,
        body.dark-theme .h1,
        body.dark-theme .h2,
        body.dark-theme .h3,
        body.dark-theme .h4,
        body.dark-theme .h5,
        body.dark-theme .h6,
        body.dark-theme .text-dark,
        body.dark-theme .card-title,
        body.dark-theme .fw-bold,
        body.dark-theme .fw-extrabold {
            color: #f8fafc !important;
        }

        body.dark-theme p,
        body.dark-theme label,
        body.dark-theme small,
        body.dark-theme .text-muted,
        body.dark-theme .card-text {
            color: var(--gray-300) !important;
        }

        body.dark-theme .bg-light,
        body.dark-theme .bg-white,
        body.dark-theme .bg-body {
            background-color: var(--dark-800) !important;
            color: var(--gray-200) !important;
        }

        body.dark-theme .card,
        body.dark-theme .modal-content,
        body.dark-theme .dropdown-menu,
        body.dark-theme .offcanvas {
            background-color: var(--dark-800) !important;
            border-color: var(--glass-border) !important;
            color: var(--gray-200) !important;
        }

        body.dark-theme .modal-header,
        body.dark-theme .modal-footer,
        body.dark-theme .card-header,
        body.dark-theme .card-footer {
            border-color: var(--dark-700) !important;
        }

        body.dark-theme .form-control,
        body.dark-theme .form-select,
        body.dark-theme .input-group-text {
            background-color: var(--dark-700) !important;
            border-color: var(--dark-600) !important;
            color: #f8fafc !important;
        }

        body.dark-theme .form-control::placeholder {
            color: var(--gray-500) !important;
        }

        body.dark-theme .form-label {
            color: var(--gray-300) !important;
        }

        body.dark-theme .table {
            color: var(--gray-200) !important;
        }

        body.dark-theme .table thead th,
        body.dark-theme .table td {
            background-color: var(--dark-800) !important;
            color: var(--gray-200) !important;
            border-color: var(--dark-700) !important;
        }

        body.dark-theme .btn-light,
        body.dark-theme .btn-outline-secondary {
            background-color: var(--dark-700) !important;
            color: var(--gray-200) !important;
            border-color: var(--dark-600) !important;
        }

        body.dark-theme .btn-light:hover,
        body.dark-theme .btn-outline-secondary:hover {
            background-color: var(--dark-600) !important;
            color: #ffffff !important;
        }

        /* Premium Enhancements */
        .card {
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .btn {
            position: relative;
            overflow: hidden;
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 300%;
            height: 300%;
            background: rgba(255, 255, 255, 0.1);
            transform: translate(-50%, -50%) scale(0);
            border-radius: 50%;
            transition: transform 0.5s;
        }

        .btn:hover::after {
            transform: translate(-50%, -50%) scale(1);
        }

        /* =========================================
           MOBILE APP-LIKE ENHANCEMENTS
           ========================================= */
        @media (max-width: 767.98px) {
            .mobile-edge-row {
                /* Break out of container padding to go edge-to-edge */
                margin-left: calc(var(--bs-gutter-x) * -0.5) !important;
                margin-right: calc(var(--bs-gutter-x) * -0.5) !important;
                padding-bottom: 2rem;
            }
            .mobile-edge-card {
                border-radius: 0 !important;
                border-left: none !important;
                border-right: none !important;
                border-top: none !important;
                box-shadow: none !important;
                border-bottom: 4px solid var(--glass-bg) !important;
                margin-bottom: 0 !important;
            }
            body.dark-theme .mobile-edge-card {
                border-bottom-color: var(--dark-900) !important;
                background: var(--dark-800);
            }
            .mobile-edge-card .restaurant-img-wrapper,
            .mobile-edge-card .card-img-top {
                border-radius: 0 !important;
                height: 200px; /* Slightly taller for visual impact on mobile */
            }
            .page-header {
                padding: 0 5px;
            }
            .shadow-sm-md {
                box-shadow: none !important;
            }
            .rounded-md-only {
                border-radius: 0 !important;
            }
        }