        /* --- 1. FOOD FORT PALETTE & CORE --- */
        :root {
            --foodfort-red: #C41E3A;
            --foodfort-red-light: #e63950;
            --foodfort-red-dark: #9a1830;
            --foodfort-white: #ffffff;
            --foodfort-white-soft: rgba(255, 255, 255, 0.9);
            --foodfort-accent: #f5f5f5;
            --dark-bg: #0a0b0f;
            --text-grey: #b0b0b0;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        @keyframes subtle-float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-3px); }
        }

        @keyframes glow-pulse {
            0%, 100% {
                filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
            }
            50% {
                filter: drop-shadow(0 20px 35px rgba(0,0,0,0.7));
            }
        }

        body {
            background-color: var(--dark-bg);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            overflow: hidden;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body.lang-ar { font-family: 'Tajawal', sans-serif; direction: rtl; }

        /* --- 2. GLOBAL BACKGROUND & HEADER --- */
        .bg-backdrop {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at center, var(--foodfort-red) 0%, #000 100%);
            z-index: -1; opacity: 0.5;
            transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        header {
            position: absolute; top: 0; left: 0; width: 100%; height: 110px;
            padding: 15px 25px; z-index: 50; display: flex; align-items: center;
            justify-content: space-between; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
            overflow: visible;
        }

        .brand-logos {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
        }

        .brand-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            flex: 1;
            justify-content: center;
            margin-top: 15px;
        }

        .header-controls {
            display: flex;
            gap: 10px;
            flex: 1;
            justify-content: flex-end;
        }

        .foodfort-name {
            font-size: 2.2rem;
            font-weight: 900;
            letter-spacing: 4px;
            background: linear-gradient(135deg, var(--foodfort-red) 0%, var(--foodfort-red-light) 50%, var(--foodfort-white) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: block;
            text-align: center;
            position: relative;
            transition: all 0.3s ease;
            filter: drop-shadow(0 2px 8px rgba(196, 30, 58, 0.4));
            line-height: 1;
            padding-top: 5px;
        }

        .foodfort-name:hover {
            filter: drop-shadow(0 4px 12px rgba(196, 30, 58, 0.6));
            transform: scale(1.05);
        }

        body.lang-ar .foodfort-name {
            font-family: 'Tajawal', sans-serif;
            letter-spacing: 1px;
        }

        .branch-name {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--foodfort-white-soft);
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0.9;
            text-align: center;
            line-height: 1;
            margin-top: 4px;
        }

        body.lang-ar .branch-name {
            font-family: 'Tajawal', sans-serif;
            letter-spacing: 1px;
        }
        .btn-glass {
            background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.15); padding: 6px 14px;
            border-radius: 20px; cursor: pointer; font-weight: bold;
            font-size: 0.8rem; color: white; transition: 0.3s;
        }
        .btn-glass:hover { border-color: var(--foodfort-red); color: var(--foodfort-white); background: rgba(196, 30, 58, 0.3); }
        .hidden { display: none !important; }

        /* --- 3. UNIFIED STACK VIEW --- */
        .view-section {
            position: absolute; top: 110px; left: 0; width: 100%; height: calc(100vh - 110px);
            padding: 0; overflow: hidden; /* No scrolling for this view */
        }
        
        .carousel-container {
            width: 100%; height: 100%;
            margin-top: 0;
            perspective: 1200px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- 4. CARDS (APPLIED TO BOTH CATS AND DISHES) --- */
        .card {
            position: absolute; top: 35%; left: 50%;
            width: auto; height: auto;
            max-width: 260px;
            background: none;
            border: none;
            outline: none;
            box-shadow: none;
            overflow: visible;
            transform-origin: center center;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
            will-change: transform, opacity;
            cursor: pointer;
            display: inline-block;
            line-height: 0;
        }

        /* CATEGORY SPECIFIC STYLES (Simple background for now) */
        .card.is-category {
            background: none;
        }

        .card img {
            width: auto; height: auto;
            max-width: 260px;
            max-height: 400px;
            object-fit: contain;
            display: block;
            filter: none;
            opacity: 0.3;
            transition: filter 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
            border: none;
            outline: none;
            background: none;
            will-change: filter, transform, opacity;
            backface-visibility: hidden;
            transform: translateZ(0);
        }

        /* Image loading state */
        .card img[data-loading="true"] {
            opacity: 0;
        }

        .card img[data-loaded="true"] {
            opacity: 0.3;
            transition: opacity 0.3s ease;
        }

        /* Category Name Overlay - Bottom of Screen */
        .card-title-overlay {
            position: fixed;
            bottom: 10vh;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(18, 77, 97, 0.3) 100%);
            backdrop-filter: blur(20px) saturate(150%);
            -webkit-backdrop-filter: blur(20px) saturate(150%);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: none;
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
            text-align: center;
            color: white;
            z-index: 20;
            opacity: 0;
            transform: translate3d(0, 20px, 0);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            will-change: opacity, transform;
        }

        .card-title-overlay.visible {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }

        .card-title-overlay .category-name {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
        }

        .card-title-overlay .category-desc {
            font-size: 0.9rem;
            font-weight: 400;
            line-height: 1.5;
            color: #d0d0d0;
            opacity: 0.95;
            max-width: 600px;
            margin: 0 auto;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
        }

        /* Active State */
        .card.active img {
            filter: none;
            opacity: 1;
            transform: scale(1.05) translateZ(0);
        }

        /* Out of stock styling */
        .card.out-of-stock img {
            filter: grayscale(70%);
            opacity: 0.5;
        }
        .card.out-of-stock.active img {
            filter: grayscale(50%);
            opacity: 0.7;
            transform: scale(1.05) translateZ(0);
        }
        .out-of-stock-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-15deg);
            background: rgba(220, 53, 69, 0.9);
            color: white;
            padding: 8px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 10;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        body.lang-ar .out-of-stock-badge {
            font-family: 'Tajawal', sans-serif;
        }

        /* Hover effect removed - no hover animation for cards */

        /* --- 5. INFO PANEL (Only visible for Dishes) --- */
        .info-panel {
            position: fixed;
            top: 105px;
            bottom: auto;
            left: 10px;
            right: 10px;
            width: calc(100% - 20px);
            padding: 12px 15px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(18, 77, 97, 0.4) 100%);
            backdrop-filter: blur(20px) saturate(150%);
            -webkit-backdrop-filter: blur(20px) saturate(150%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            display: flex; flex-direction: column; justify-content: flex-start;
            z-index: 20;
            opacity: 0;
            transform: translate3d(0, 20px, 0);
            transition: opacity 0.3s ease, transform 0.3s ease;
            max-height: 35vh;
            overflow-y: auto;
            will-change: opacity, transform;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }
        .info-panel.visible { opacity: 1; transform: translate3d(0, 0, 0); }
        body.lang-ar .info-panel { text-align: right; }

        /* Info Text Styles (same as before) */
        .dish-category { font-size: 0.8rem; font-weight: 600; color: var(--foodfort-red-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; opacity: 0.95; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
        .dish-name { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 3px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
        .dish-price { font-size: 1rem; color: var(--foodfort-white); font-weight: 700; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
        .dish-desc { font-size: 0.75rem; color: #d0d0d0; margin-bottom: 8px; line-height: 1.2; max-height: 2.4em; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

        /* Size Selector Styles - Badge Style */
        .size-selector {
            display: flex;
            gap: 10px;
            margin: 12px 0;
            flex-wrap: wrap;
            justify-content: center;
        }
        .size-btn {
            padding: 12px 20px;
            border: 2px solid rgba(255,255,255,0.3);
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
            color: white;
            border-radius: 16px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 90px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        .size-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .size-btn:hover {
            border-color: var(--foodfort-red);
            background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(196, 30, 58, 0.1) 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
        }
        .size-btn:hover::before { opacity: 1; }
        .size-btn.active {
            border-color: var(--foodfort-white);
            background: linear-gradient(135deg, var(--foodfort-red) 0%, var(--foodfort-red-dark) 100%);
            color: var(--foodfort-white);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
        }
        .size-btn.active::before {
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            opacity: 1;
        }
        .size-btn .size-name {
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
        }
        .size-btn .size-price {
            font-size: 0.75rem;
            opacity: 0.9;
            background: rgba(0,0,0,0.2);
            padding: 2px 8px;
            border-radius: 10px;
            margin-top: 2px;
        }
        .size-btn.active .size-price {
            background: rgba(0,0,0,0.15);
        }
        body.lang-ar .size-btn { font-family: 'Tajawal', sans-serif; }

        @media (max-width: 768px) {
            .size-selector { gap: 8px; }
            .size-btn {
                padding: 10px 14px;
                min-width: 80px;
                font-size: 0.8rem;
            }
            .size-btn .size-icon { font-size: 1.2rem; }
            .size-btn .size-name { font-size: 0.8rem; }
            .size-btn .size-price { font-size: 0.7rem; }
        }

        /* Option Selector Styles */
        .option-selector { margin: 10px 0; }
        .option-group-label { font-size: 0.75rem; color: var(--foodfort-white-soft); margin-bottom: 6px; font-weight: 600; }
        .option-btns { display: flex; gap: 8px; flex-wrap: wrap; }
        .option-btn {
            padding: 6px 14px;
            border: 2px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.05);
            color: white;
            border-radius: 16px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        .option-btn:hover { border-color: var(--foodfort-red); background: rgba(196, 30, 58, 0.15); }
        .option-btn.active { border-color: var(--foodfort-white); background: var(--foodfort-red); color: var(--foodfort-white); }
        body.lang-ar .option-btn { font-family: 'Tajawal', sans-serif; }

        /* Ingredients customization */
        .contents-note {
            font-size: 0.8rem;
            color: var(--foodfort-white);
            font-weight: 700;
            margin: 0;
            padding: 15px 25px;
            background: rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }


        .contents-item.customizable-item {
            color: var(--foodfort-white);
            font-weight: 700;
            transition: all 0.3s ease;
            position: relative;
            background: rgba(255, 255, 255, 0.08);
            border-left: 4px solid var(--foodfort-white);
        }

        body.lang-ar .contents-item.customizable-item {
            border-left: none;
            border-right: 4px solid var(--foodfort-white);
        }

        .contents-item.customizable-item:hover {
            background: rgba(255, 255, 255, 0.15);
            border-left-color: var(--foodfort-red-light);
            padding-left: 55px;
        }

        body.lang-ar .contents-item.customizable-item:hover {
            border-right-color: var(--foodfort-red-light);
            padding-right: 55px;
            padding-left: 25px;
        }

        .contents-item.customizable-item.removed {
            text-decoration: line-through;
            opacity: 0.4;
            color: #999;
            background: rgba(0, 0, 0, 0.3);
            border-left-color: #666;
        }

        body.lang-ar .contents-item.customizable-item.removed {
            border-right-color: #666;
        }

        .contents-item.customizable-item.removed::before {
            content: '❌';
        }

        /* Stats Grid (same as before) */
        .stats-grid { display: flex; gap: 8px; margin-top: 3px; }
        .stat-item { flex: 1; }
        .stat-label { font-size: 0.65rem; text-transform: uppercase; color: white; margin-bottom: 3px; display: block; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
        .bar-track { width: 100%; height: 3px; background: rgba(255,255,255,0.15); border-radius: 2px; }
        .bar-fill {
            height: 100%;
            background: var(--foodfort-red);
            width: 0%;
            transition: width 0.5s ease;
            will-change: width;
        }

        /* Loading Indicator */
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 3px solid rgba(196, 30, 58, 0.2);
            border-top: 3px solid var(--foodfort-red);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 200;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* --- DISH DETAIL VIEW --- */
        /* Elegant Ingredients Container */
        .ingredients-container {
            position: absolute;
            top: 50%;
            right: 8%;
            transform: translateY(-50%);
            opacity: 0;
            transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
            pointer-events: none;
            z-index: 998;
            max-width: 400px;
        }

        .ingredients-container.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .ingredients-container.visible .dish-contents-list,
        .ingredients-container.visible .add-to-order-btn {
            pointer-events: auto;
        }

        body.lang-ar .ingredients-container {
            right: auto;
            left: 8%;
        }

        /* Modern Ingredients Wrapper */
        .dish-contents-wrapper {
            background: linear-gradient(135deg,
                rgba(196, 30, 58, 0.95) 0%,
                rgba(140, 20, 40, 0.95) 100%);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            box-shadow:
                0 25px 50px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 0 60px rgba(196, 30, 58, 0.3);
            position: relative;
            overflow: visible;
            max-width: 400px;
            min-height: 150px;
        }

        .dish-contents-list {
            list-style: none;
            padding: 0;
            padding-bottom: 58px;
            margin: 0;
            position: relative;
        }

        .dish-contents-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg,
                transparent,
                var(--foodfort-white),
                var(--foodfort-red-light),
                var(--foodfort-white),
                transparent);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .dish-contents-wrapper::after {
            content: '🍔';
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.8rem;
            opacity: 0.15;
            pointer-events: none;
        }

        body.lang-ar .dish-contents-wrapper::after {
            right: auto;
            left: 15px;
        }

        .contents-item {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
            margin: 0;
            padding: 18px 25px 18px 50px;
            opacity: 0;
            transform: translateX(30px);
            transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.3px;
            position: relative;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.1);
        }

        .contents-item:first-child {
            margin-top: 4px;
            border-radius: 18px 18px 0 0;
        }

        .contents-item:last-of-type {
            border-bottom: none;
        }

        body.lang-ar .contents-item {
            transform: translateX(-30px);
            padding-left: 25px;
            padding-right: 50px;
            font-family: 'Tajawal', sans-serif;
        }

        .contents-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .ingredients-container.visible .contents-item {
            opacity: 1;
            transform: translateX(0);
        }

        /* Stagger animation */
        .ingredients-container.visible .contents-item:nth-child(1) { transition-delay: 0.05s; }
        .ingredients-container.visible .contents-item:nth-child(2) { transition-delay: 0.08s; }
        .ingredients-container.visible .contents-item:nth-child(3) { transition-delay: 0.11s; }
        .ingredients-container.visible .contents-item:nth-child(4) { transition-delay: 0.14s; }
        .ingredients-container.visible .contents-item:nth-child(5) { transition-delay: 0.17s; }
        .ingredients-container.visible .contents-item:nth-child(6) { transition-delay: 0.2s; }
        .ingredients-container.visible .contents-item:nth-child(7) { transition-delay: 0.23s; }
        .ingredients-container.visible .contents-item:nth-child(8) { transition-delay: 0.26s; }
        .ingredients-container.visible .contents-item:nth-child(9) { transition-delay: 0.29s; }
        .ingredients-container.visible .contents-item:nth-child(10) { transition-delay: 0.32s; }

        .contents-item::before {
            content: '•';
            position: absolute;
            left: 22px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            color: var(--foodfort-white);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        }

        body.lang-ar .contents-item::before {
            left: auto;
            right: 22px;
        }

        /* Modern Add to Cart Button */
        .add-to-order-btn {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            margin: 0;
            background: linear-gradient(135deg, var(--foodfort-white) 0%, var(--foodfort-accent) 100%);
            color: var(--foodfort-red);
            border: none;
            border-radius: 0 0 18px 18px;
            height: 58px;
            display: flex !important;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow:
                0 -4px 15px rgba(0, 0, 0, 0.3),
                0 0 0 2px rgba(196, 30, 58, 0.15) inset;
            border-top: 2px solid rgba(255, 255, 255, 0.3);
            z-index: 10;
            pointer-events: auto !important;
            opacity: 1 !important;
        }

        .add-to-order-btn::before {
            content: attr(data-text);
            font-family: 'Tajawal', sans-serif;
        }

        body.lang-ar .add-to-order-btn::before {
            content: 'أضف للطلب';
        }

        body:not(.lang-ar) .add-to-order-btn::before {
            content: 'Add to Cart';
        }

        .add-to-order-btn svg {
            width: 28px;
            height: 28px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
            stroke-width: 2.5;
        }

        .add-to-order-btn:hover {
            background: linear-gradient(135deg, var(--foodfort-red) 0%, var(--foodfort-red-dark) 100%);
            color: var(--foodfort-white);
            transform: translateY(-2px);
            box-shadow:
                0 -6px 25px rgba(0, 0, 0, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.25) inset,
                0 0 30px rgba(196, 30, 58, 0.4);
        }

        .add-to-order-btn:active {
            transform: translateY(0);
            box-shadow:
                0 -2px 10px rgba(0, 0, 0, 0.3),
                0 0 0 2px rgba(255, 255, 255, 0.15) inset;
        }

        body.lang-ar .contents-item::before {
            margin-right: 0;
            margin-left: 10px;
        }

        /* Dish detail view state - hide background dishes and move active card */
        body.dish-detail-active .card:not(.detail-active) {
            opacity: 0 !important;
            transition: opacity 0.5s ease;
        }

        body.dish-detail-active .card.detail-active {
            transform: translate(-50%, -50%) translateX(calc(-30vw - 50%)) scale(1.5) !important;
            transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
            z-index: 997 !important;
        }

        body.lang-ar.dish-detail-active .card.detail-active {
            transform: translate(-50%, -50%) translateX(calc(30vw + 50%)) scale(1.5) !important;
        }

        /* Info panel remains visible in dish detail view */

        /* Desktop Adjustments */
        @media (min-width: 769px) {
            .card { max-width: 350px; top: 35%; }
            .card img { max-width: 350px; max-height: 500px; }
            .info-panel {
                position: absolute;
                top: auto;
                width: 450px;
                height: auto;
                max-height: none;
                bottom: 8%;
                right: 10%;
                left: auto;
                background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(18, 77, 97, 0.3) 100%);
                border-radius: 20px;
                padding: 25px;
                border: 1px solid rgba(255, 255, 255, 0.15);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            }
            body.lang-ar .info-panel { left: 10%; right: auto; }
            .dish-category { font-size: 1rem; margin-bottom: 8px; }
            .dish-name { font-size: 1.8rem; }
            .dish-price { font-size: 1.4rem; }
            .dish-desc { font-size: 0.95rem; }
            .foodfort-name { font-size: 2.8rem; letter-spacing: 5px; margin-top: 10px; }

            /* Category overlay on desktop */
            .card-title-overlay {
                bottom: 8%;
                border-radius: 20px 20px 0 0;
                margin: 0 20px;
                left: 0;
                right: 0;
                width: calc(100% - 40px);
                padding: 30px;
            }
            .card-title-overlay .category-name {
                font-size: 1.8rem;
            }
            .card-title-overlay .category-desc {
                font-size: 1.1rem;
                max-width: 800px;
            }

            /* Ingredients container desktop styles */
            .ingredients-container {
                max-width: 450px;
            }

            .ingredients-container.visible {
                pointer-events: auto;
            }

            .contents-item {
                font-size: 1.2rem;
            }
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .foodfort-name { font-size: 1.4rem; letter-spacing: 2px; }
            .branch-name { font-size: 0.6rem; letter-spacing: 1px; margin-top: 2px; }
            header { height: 100px; padding: 10px 15px; }
            .view-section { top: 100px; height: calc(100vh - 100px); }
            .brand-logos { gap: 8px; }
            .brand-logos img { height: 30px !important; }

            /* Back button fixed at bottom left for thumb reach */
            #btnBack.btn-glass {
                position: fixed;
                bottom: 30px;
                left: 20px;
                right: auto;
                z-index: 9999;
                padding: 12px 20px;
                font-size: 0.9rem;
                background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
                border: 2px solid rgba(255, 255, 255, 0.3);
                box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
                border-radius: 25px;
            }

            #btnBack.btn-glass:hover,
            #btnBack.btn-glass:active {
                background: linear-gradient(135deg, var(--foodfort-red-light), var(--foodfort-red));
                transform: scale(1.05);
            }

            body.lang-ar #btnBack.btn-glass {
                left: auto;
                right: 20px;
            }

            /* Info panel compact styling for mobile dish detail view */
            .info-panel {
                top: 100px;
                padding: 10px 12px;
                max-height: 28vh;
                border-radius: 12px;
            }

            .dish-category {
                font-size: 0.7rem;
                margin-bottom: 6px;
            }

            .dish-name {
                font-size: 1rem;
                margin-bottom: 2px;
            }

            .dish-price {
                font-size: 0.9rem;
                margin-bottom: 2px;
            }

            .dish-desc {
                font-size: 0.7rem;
                margin-bottom: 4px;
            }

            .stats-grid {
                margin-top: 4px;
                gap: 6px;
            }

            .stat-label {
                font-size: 0.6rem;
            }

            /* Size selector compact on mobile */
            .size-selector {
                margin: 8px 0;
                gap: 6px;
            }

            .size-btn {
                padding: 8px 12px;
                min-width: 70px;
                font-size: 0.75rem;
            }

            .size-btn .size-name {
                font-size: 0.75rem;
            }

            .size-btn .size-price {
                font-size: 0.65rem;
            }

            /* Move cards down on mobile to make space */
            .card {
                top: 50%;
            }

            /* Category overlay adjustments for mobile - move to top */
            .card-title-overlay {
                top: 100px;
                bottom: auto;
                border-radius: 20px 20px 20px 20px;
                border-top: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                margin: 0 10px;
                left: 0;
                right: 0;
                width: calc(100% - 20px);
                background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(18, 77, 97, 0.3) 100%);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
                max-height: 30vh;
                overflow-y: auto;
            }
            .card-title-overlay .category-desc {
                font-size: 0.85rem;
                line-height: 1.4;
            }

            /* Ingredients container mobile styles - positioned beside dish image */
            .ingredients-container {
                position: fixed;
                top: calc(28vh + 115px);
                bottom: 70px;
                left: auto;
                right: 2%;
                transform: none;
                width: 55%;
                max-width: 55%;
                max-height: none;
                overflow: visible;
            }

            body.lang-ar .ingredients-container {
                left: 2%;
                right: auto;
            }

            .dish-contents-wrapper {
                max-width: 100%;
                max-height: calc(100vh - 28vh - 200px);
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            .dish-contents-list {
                flex: 1;
                overflow-y: auto;
                padding-bottom: 0;
                max-height: none;
            }

            .contents-item {
                font-size: 0.8rem;
                padding: 8px 12px 8px 30px;
            }

            body.lang-ar .contents-item {
                padding: 8px 30px 8px 12px;
            }

            .contents-item::before {
                left: 10px;
                font-size: 1rem;
            }

            body.lang-ar .contents-item::before {
                right: 10px;
                left: auto;
            }

            .add-to-order-btn {
                height: 46px;
                font-size: 0.85rem;
                position: relative;
                flex-shrink: 0;
            }

            /* Dish image moves to left side in detail view */
            body.dish-detail-active .card.detail-active {
                transform: translate(-50%, -50%) translateX(-25vw) scale(1.1) !important;
            }

            body.lang-ar.dish-detail-active .card.detail-active {
                transform: translate(-50%, -50%) translateX(25vw) scale(1.1) !important;
            }
        }

        /* Reduced motion for accessibility and performance */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ===== ACCESSIBILITY IMPROVEMENTS ===== */

        /* Focus styles for keyboard navigation */
        .btn-glass:focus,
        .size-btn:focus,
        .option-btn:focus,
        .orders-fab:focus,
        .orders-close:focus,
        .order-item-qty-btn:focus,
        .order-item-remove:focus,
        .add-to-order-btn:focus,
        .checkout-btn:focus,
        .checkout-close:focus {
            outline: 3px solid var(--foodfort-white);
            outline-offset: 3px;
            box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.4);
        }

        /* Focus visible only for keyboard users */
        .btn-glass:focus:not(:focus-visible),
        .size-btn:focus:not(:focus-visible),
        .option-btn:focus:not(:focus-visible),
        .orders-fab:focus:not(:focus-visible),
        .orders-close:focus:not(:focus-visible),
        .order-item-qty-btn:focus:not(:focus-visible),
        .order-item-remove:focus:not(:focus-visible),
        .add-to-order-btn:focus:not(:focus-visible),
        .checkout-btn:focus:not(:focus-visible),
        .checkout-close:focus:not(:focus-visible) {
            outline: none;
            box-shadow: none;
        }

        /* Input focus styles */
        .phone-input-group input:focus,
        .otp-digit:focus,
        .form-group input:focus,
        .form-group textarea:focus {
            outline: 2px solid var(--foodfort-white);
            outline-offset: 2px;
        }

        /* Skip link for keyboard users */
        .skip-link {
            position: absolute;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--foodfort-red);
            color: white;
            padding: 12px 24px;
            border-radius: 0 0 8px 8px;
            z-index: 99999;
            font-weight: 600;
            transition: top 0.3s ease;
        }

        .skip-link:focus {
            top: 0;
        }

        /* Minimum touch target sizes (48x48px) */
        .order-item-qty-btn {
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px;
        }

        .order-item-remove {
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px;
        }

        .orders-close {
            min-width: 48px;
            min-height: 48px;
            width: 48px;
            height: 48px;
        }

        .checkout-close {
            min-width: 48px;
            min-height: 48px;
            width: 48px;
            height: 48px;
        }

        /* Improved color contrast for text */
        .dish-desc,
        .category-desc,
        .stat-label {
            color: #e0e0e0; /* Improved from #d0d0d0 for better contrast */
        }

        .orders-empty-text,
        .checkout-header p,
        .otp-timer {
            color: #c0c0c0; /* Improved from --text-grey for better contrast */
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .btn-glass,
            .size-btn,
            .option-btn {
                border-width: 3px;
            }

            .dish-desc,
            .category-desc {
                color: #ffffff;
            }

            .card img {
                opacity: 0.5;
            }

            .card.active img {
                opacity: 1;
            }
        }

        /* --- FOOTER --- */
        footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            padding: 8px 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            text-align: center;
            z-index: 100;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        footer p {
            margin: 0;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.6);
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        body.lang-ar footer p {
            font-family: 'Tajawal', sans-serif;
        }

        @media (max-width: 768px) {
            footer {
                padding: 6px 15px;
            }
            footer p {
                font-size: 0.65rem;
            }
        }

        /* --- CONTENT PROTECTION --- */
        * {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }

        img {
            pointer-events: none;
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
        }

        /* ===== ELEGANT ORDERS LIST FEATURE ===== */

        /* Floating Action Button - Orders Icon */
        .orders-fab {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
            border-radius: 50%;
            box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6), 0 0 0 0 rgba(196, 30, 58, 0.4);
            cursor: pointer;
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid rgba(255, 255, 255, 0.3);
        }

        .orders-fab:hover {
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 12px 35px rgba(196, 30, 58, 0.8), 0 0 0 0 rgba(196, 30, 58, 0);
        }

        .orders-fab:active {
            transform: scale(0.95);
        }

        /* Shopping bag icon */
        .orders-icon {
            width: 35px;
            height: 35px;
            position: relative;
            transition: transform 0.3s ease;
        }

        .orders-icon svg {
            width: 100%;
            height: 100%;
            stroke: white;
            stroke-width: 2.5;
            fill: none;
        }

        .orders-fab:hover .orders-icon {
            transform: scale(1.1);
        }

        /* Pulse animation */
        @keyframes pulse-orders {
            0% {
                box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6), 0 0 0 0 rgba(196, 30, 58, 0.7);
            }
            70% {
                box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6), 0 0 0 20px rgba(196, 30, 58, 0);
            }
            100% {
                box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6), 0 0 0 0 rgba(196, 30, 58, 0);
            }
        }

        .orders-fab.pulse {
            animation: pulse-orders 1s ease-out;
        }

        /* Item counter badge */
        .orders-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
            border: 3px solid white;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
        }

        .orders-badge.show {
            opacity: 1;
            transform: scale(1);
        }

        /* Elegant Orders Overlay */
        .orders-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 10000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .orders-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        /* Orders Panel */
        .orders-panel {
            background: linear-gradient(135deg, rgba(18, 77, 97, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
            border-radius: 30px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(196, 30, 58, 0.3);
            border: 2px solid rgba(196, 30, 58, 0.3);
            display: flex;
            flex-direction: column;
            transform: scale(0.9) translateY(50px);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .orders-overlay.active .orders-panel {
            transform: scale(1) translateY(0);
        }

        /* Orders Header */
        .orders-header {
            background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
            border-radius: 30px 30px 0 0;
            padding: 25px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 3px solid rgba(255, 255, 255, 0.2);
        }

        .orders-title {
            display: flex;
            align-items: center;
            gap: 15px;
            color: white;
        }

        .orders-title-icon {
            width: 32px;
            height: 32px;
        }

        .orders-title-icon svg {
            width: 100%;
            height: 100%;
            stroke: white;
            fill: none;
            stroke-width: 2;
        }

        .orders-title-text {
            font-size: 1.5rem;
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .orders-close {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.5rem;
            color: white;
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .orders-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .orders-close:active {
            transform: rotate(90deg) scale(0.9);
        }

        /* Orders Content Area */
        .orders-content {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .orders-content::-webkit-scrollbar {
            width: 8px;
        }

        .orders-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .orders-content::-webkit-scrollbar-thumb {
            background: var(--foodfort-red);
            border-radius: 10px;
        }

        /* Order Item Card */
        .order-item {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 15px;
            display: flex;
            gap: 15px;
            border: 2px solid rgba(196, 30, 58, 0.2);
            transition: all 0.3s ease;
            animation: slideInOrder 0.4s ease-out;
        }

        .order-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(196, 30, 58, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        @keyframes slideInOrder {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .order-item-image {
            width: 100px;
            height: 100px;
            border-radius: 15px;
            object-fit: cover;
            border: 3px solid rgba(196, 30, 58, 0.3);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }

        .order-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .order-item-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: white;
            margin-bottom: 5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .order-item-size {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--foodfort-white-soft);
            opacity: 0.9;
        }

        .order-item-price {
            font-size: 0.95rem;
            color: var(--foodfort-white);
            font-weight: 600;
        }

        .order-item-options {
            font-size: 0.8rem;
            color: var(--foodfort-red-light);
            font-weight: 500;
            margin-top: 4px;
        }

        .order-item-customizations {
            font-size: 0.8rem;
            color: #ff6b6b;
            font-weight: 500;
            margin-top: 4px;
            padding: 4px 8px;
            background: rgba(255, 107, 107, 0.15);
            border-radius: 6px;
            border-left: 2px solid #ff6b6b;
        }

        body.lang-ar .order-item-customizations {
            border-left: none;
            border-right: 2px solid #ff6b6b;
        }

        .order-item-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
        }

        .order-item-qty-control {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 5px 10px;
            border: 1px solid rgba(196, 30, 58, 0.3);
        }

        .order-item-qty-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
            border: none;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .order-item-qty-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5);
        }

        .order-item-qty-btn:active {
            transform: scale(0.95);
        }

        .order-item-qty {
            font-size: 1rem;
            font-weight: 700;
            color: white;
            min-width: 25px;
            text-align: center;
        }

        .order-item-remove {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            border: 2px solid white;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-left: auto;
        }

        .order-item-remove:hover {
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
        }

        .order-item-remove:active {
            transform: scale(0.9) rotate(90deg);
        }

        /* Empty State */
        .orders-empty {
            text-align: center;
            padding: 60px 20px;
            color: rgba(255, 255, 255, 0.5);
        }

        .orders-empty-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            opacity: 0.3;
        }

        .orders-empty-icon svg {
            width: 100%;
            height: 100%;
            stroke: white;
            fill: none;
            stroke-width: 1.5;
        }

        .orders-empty-text {
            font-size: 1.2rem;
            font-weight: 600;
        }

        /* Orders Footer */
        .orders-footer {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 0 0 30px 30px;
            padding: 20px 30px;
            border-top: 2px solid rgba(196, 30, 58, 0.3);
            display: none;
        }

        .orders-footer.show {
            display: block;
        }

        .orders-total {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(196, 30, 58, 0.2);
        }

        .orders-total-label {
            font-size: 1.2rem;
            font-weight: 700;
            color: white;
        }

        .orders-total-amount {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--foodfort-white);
            text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        }

        .orders-btn-clear {
            width: 100%;
            padding: 14px 20px;
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(231, 76, 60, 0.5);
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
            color: white;
        }

        .orders-btn-clear:hover {
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(192, 57, 43, 0.3));
            border-color: rgba(231, 76, 60, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
        }

        .orders-btn-clear:active {
            transform: translateY(0);
        }

        /* Mobile Adjustments for Orders */
        @media (max-width: 768px) {
            /* Swap FAB to left side in Arabic mode (back button goes to right) */
            body.lang-ar .orders-fab {
                right: auto;
                left: 20px;
            }

            .orders-panel {
                max-width: 100%;
                border-radius: 20px;
            }

            .orders-header {
                padding: 20px;
                border-radius: 20px 20px 0 0;
            }

            .orders-title-text {
                font-size: 1.2rem;
            }

            .orders-content {
                padding: 15px;
            }

            .order-item {
                padding: 12px;
            }

            .order-item-image {
                width: 80px;
                height: 80px;
            }

            .order-item-name {
                font-size: 1rem;
            }

            .orders-footer {
                padding: 15px 20px;
                border-radius: 0 0 20px 20px;
            }
        }

        /* Floating animation */
        @keyframes subtle-float {
            0%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            50% {
                transform: translateX(-50%) translateY(-10px);
            }
        }

        /* Maintenance Overlay */
        .maintenance-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2332 50%, var(--dark-bg) 100%);
            z-index: 10000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
        }

        .maintenance-overlay.show {
            display: flex;
        }

        .maintenance-icon {
            font-size: 5rem;
            margin-bottom: 30px;
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {
            0%, 100% {
                opacity: 0.8;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.1);
            }
        }

        .maintenance-title {
            font-family: 'Tajawal', sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--foodfort-red) 0%, var(--foodfort-red-light) 50%, var(--foodfort-white) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .maintenance-message {
            font-size: 1.2rem;
            color: var(--text-grey);
            max-width: 400px;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .maintenance-brand {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 40px;
            opacity: 0.7;
        }

        .maintenance-brand img {
            height: 50px;
        }

        .maintenance-brand-name {
            font-family: 'Tajawal', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--foodfort-white);
        }

        /* ===== ADMIN PREVIEW INACTIVE BADGE ===== */
        .admin-preview-badge {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.95), rgba(192, 57, 43, 0.95));
            color: white;
            padding: 12px 20px;
            text-align: center;
            z-index: 10001;
            display: none;
            flex-direction: column;
            gap: 4px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            border-bottom: 3px solid rgba(255, 255, 255, 0.3);
        }

        .admin-preview-badge.show {
            display: flex;
        }

        .admin-preview-badge .badge-title {
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .admin-preview-badge .badge-subtitle {
            font-size: 0.8rem;
            opacity: 0.9;
        }

        body.lang-ar .admin-preview-badge .badge-title,
        body.lang-ar .admin-preview-badge .badge-subtitle {
            font-family: 'Tajawal', sans-serif;
        }

        /* Adjust header position when badge is shown */
        body.admin-preview-active header {
            top: 70px;
        }

        body.admin-preview-active .view-section {
            top: 180px;
            height: calc(100vh - 180px);
        }

        @media (max-width: 768px) {
            .admin-preview-badge {
                padding: 10px 15px;
            }

            .admin-preview-badge .badge-title {
                font-size: 0.85rem;
            }

            .admin-preview-badge .badge-subtitle {
                font-size: 0.7rem;
            }

            body.admin-preview-active header {
                top: 60px;
            }

            body.admin-preview-active .view-section {
                top: 160px;
                height: calc(100vh - 160px);
            }
        }

        /* ===== CHECKOUT MODAL STYLES ===== */

        /* Orders Footer Buttons */
        .orders-footer-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .orders-btn-checkout {
            flex: 2;
            padding: 14px 20px;
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            background: linear-gradient(135deg, var(--foodfort-white), var(--foodfort-accent));
            color: var(--foodfort-red);
        }

        .orders-btn-checkout:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
            background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
            color: var(--foodfort-white);
        }

        .orders-btn-clear {
            flex: 1;
        }

        /* Checkout Overlay */
        .checkout-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(15px);
            z-index: 10001;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .checkout-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        /* Checkout Panel */
        .checkout-panel {
            background: linear-gradient(135deg, rgba(18, 77, 97, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
            border-radius: 30px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(196, 30, 58, 0.3);
            border: 2px solid rgba(196, 30, 58, 0.3);
            position: relative;
            transform: scale(0.9) translateY(50px);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .checkout-overlay.active .checkout-panel {
            transform: scale(1) translateY(0);
        }

        .checkout-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.5rem;
            color: white;
            transition: all 0.3s ease;
            z-index: 10;
        }

        body.lang-ar .checkout-close {
            right: auto;
            left: 15px;
        }

        .checkout-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        /* Step Indicator */
        .checkout-steps {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 25px 20px;
            background: linear-gradient(135deg, var(--foodfort-red), #8c1428);
            border-radius: 30px 30px 0 0;
            gap: 0;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            opacity: 0.5;
            transition: opacity 0.3s ease;
        }

        .step.active, .step.completed {
            opacity: 1;
        }

        .step-number {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            color: white;
            transition: all 0.3s ease;
        }

        .step.active .step-number {
            background: var(--foodfort-white);
            color: var(--foodfort-red);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
        }

        .step.completed .step-number {
            background: #27ae60;
        }

        .step.completed .step-number::after {
            content: '✓';
        }

        .step-label {
            font-size: 0.7rem;
            color: white;
            font-weight: 600;
            white-space: nowrap;
        }

        .step-line {
            flex: 1;
            height: 2px;
            background: rgba(255, 255, 255, 0.2);
            margin: 0 8px;
            margin-bottom: 20px;
        }

        /* Step Content */
        .checkout-step-content {
            padding: 30px 25px;
        }

        .checkout-step-content.hidden {
            display: none;
        }

        .checkout-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .checkout-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 10px;
        }

        .checkout-header p {
            font-size: 0.95rem;
            color: var(--text-grey);
        }

        .checkout-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Phone Input */
        .phone-input-group {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(196, 30, 58, 0.3);
            border-radius: 15px;
            padding: 5px;
            transition: border-color 0.3s ease;
        }

        .phone-input-group:focus-within {
            border-color: var(--foodfort-red);
        }

        .phone-prefix {
            padding: 12px 15px;
            color: var(--foodfort-white);
            font-weight: 600;
            font-size: 1rem;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }

        body.lang-ar .phone-prefix {
            border-right: none;
            border-left: 1px solid rgba(255, 255, 255, 0.2);
        }

        .phone-input-group input {
            flex: 1;
            background: transparent;
            border: none;
            padding: 12px 15px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 2px;
            outline: none;
        }

        .phone-input-group input::placeholder {
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 1px;
        }

        /* OTP Input */
        .otp-input-group {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .otp-digit {
            width: 45px;
            height: 55px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(196, 30, 58, 0.3);
            border-radius: 12px;
            text-align: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            outline: none;
            transition: all 0.3s ease;
        }

        .otp-digit:focus {
            border-color: var(--foodfort-red);
            background: rgba(196, 30, 58, 0.1);
        }

        .otp-digit:disabled {
            opacity: 0.5;
        }

        .otp-paste-btn {
            display: block;
            width: 100%;
            margin: 15px auto 10px;
            padding: 12px 24px;
            background: rgba(196, 30, 58, 0.15);
            border: 2px solid rgba(196, 30, 58, 0.4);
            border-radius: 10px;
            color: var(--foodfort-white);
            font-family: inherit;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .otp-paste-btn:hover {
            background: rgba(196, 30, 58, 0.25);
            border-color: var(--foodfort-red);
        }

        .otp-paste-btn:active {
            transform: scale(0.98);
        }

        .otp-timer {
            text-align: center;
            color: var(--text-grey);
            font-size: 0.9rem;
        }

        #timerValue {
            color: var(--foodfort-white);
            font-weight: 700;
            font-size: 1.1rem;
        }

        /* Form Groups */
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group textarea {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(196, 30, 58, 0.3);
            border-radius: 12px;
            padding: 12px 15px;
            color: white;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s ease;
            resize: none;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--foodfort-red);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        body.lang-ar .form-group input,
        body.lang-ar .form-group textarea {
            font-family: 'Tajawal', sans-serif;
        }

        /* Input Error */
        .input-error {
            color: #e74c3c;
            font-size: 0.8rem;
            min-height: 20px;
        }

        /* Order Summary */
        .order-summary {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            padding: 15px;
            border: 1px solid rgba(196, 30, 58, 0.2);
        }

        .summary-header {
            font-weight: 700;
            color: var(--foodfort-white);
            font-size: 0.9rem;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .summary-items {
            max-height: 150px;
            overflow-y: auto;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .summary-item:last-child {
            border-bottom: none;
        }

        .summary-item-info {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .summary-item-name {
            color: white;
            font-size: 0.9rem;
        }

        .summary-item-qty {
            color: var(--foodfort-red-light);
            font-weight: 600;
            font-size: 0.85rem;
        }

        .summary-item-price {
            color: var(--foodfort-white);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .summary-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            padding-top: 12px;
            border-top: 2px solid rgba(196, 30, 58, 0.3);
        }

        .summary-total span:first-child {
            color: white;
            font-weight: 700;
            font-size: 1rem;
        }

        #summaryTotalAmount {
            color: var(--foodfort-white);
            font-weight: 800;
            font-size: 1.2rem;
        }

        /* Checkout Buttons */
        .checkout-btn {
            padding: 15px 30px;
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .checkout-btn.primary {
            background: linear-gradient(135deg, var(--foodfort-white), var(--foodfort-accent));
            color: var(--foodfort-red);
        }

        .checkout-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
            background: linear-gradient(135deg, var(--foodfort-red), var(--foodfort-red-dark));
            color: var(--foodfort-white);
        }

        .checkout-btn.primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .checkout-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .checkout-btn.secondary:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .checkout-btn.secondary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Loading Spinner */
        .checkout-btn .spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(0, 0, 0, 0.3);
            border-top: 2px solid #000;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* Success State */
        .checkout-success {
            text-align: center;
            padding: 20px 0;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: white;
            margin: 0 auto 25px;
            animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
        }

        @keyframes pop-in {
            0% {
                transform: scale(0);
            }
            100% {
                transform: scale(1);
            }
        }

        .checkout-success h2 {
            font-size: 1.8rem;
            color: white;
            margin-bottom: 10px;
        }

        .checkout-success p {
            color: var(--text-grey);
            font-size: 1rem;
            margin-bottom: 25px;
        }

        .order-number-display,
        .order-total-display {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .order-number-display span:first-child,
        .order-total-display span:first-child {
            color: var(--text-grey);
            font-size: 0.9rem;
        }

        #orderNumberValue {
            color: var(--foodfort-white);
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 1px;
        }

        #orderTotalValue {
            color: var(--foodfort-white);
            font-weight: 800;
            font-size: 1.2rem;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .checkout-panel {
                max-width: 100%;
                border-radius: 20px;
                max-height: 95vh;
            }

            .checkout-steps {
                padding: 20px 15px;
                border-radius: 20px 20px 0 0;
            }

            .step-number {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }

            .step-label {
                font-size: 0.6rem;
            }

            .step-line {
                margin: 0 5px;
            }

            .checkout-step-content {
                padding: 25px 20px;
            }

            .checkout-header h2 {
                font-size: 1.3rem;
            }

            .otp-digit {
                width: 40px;
                height: 50px;
                font-size: 1.3rem;
            }

            .orders-footer-buttons {
                flex-direction: column;
            }

            .orders-btn-clear,
            .orders-btn-checkout {
                flex: auto;
            }
        }
