/* Custom Variables and Design Tokens */
:root {
    --primary-color: #d4a373; /* Premium Cafe Gold/Amber */
    --primary-glow: rgba(212, 163, 115, 0.4);
    --bg-dark: #121212;
    --text-white: #ffffff;
    --text-muted: #b0b0b0;
    --text-dark: #1e1e1e;
    --glass-bg: rgba(18, 18, 18, 0.75);
    --glass-card: rgba(255, 255, 255, 0.06);
    --glass-card-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(212, 163, 115, 0.5);
    --blur-strength: 20px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 10px;
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Device Wrapper for Desktop - Responsive Mobile Layout */
.welcome-screen,
.app-container,
.modal-content {
    width: 100%;
    max-width: 500px; /* Centered mobile container on desktop */
    margin: 0 auto;
}

/* Background image with overlay */
.bg-blur-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.bg-blur-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(18, 18, 18, 0.85) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: -1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Utilities */
.hidden {
    display: none !important;
}
.text-xs { font-size: 0.75rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.flex-column { flex-direction: column; }

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.97);
}

/* ==========================================================================
   1. WELCOME SCREEN
   ========================================================================== */
.welcome-screen {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 100;
    background: radial-gradient(circle at center, rgba(18,18,18,0.7) 0%, rgba(10,10,10,0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100vh;
    animation: fadeIn var(--transition-speed) ease-out;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.welcome-logo-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 30px;
}

.welcome-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: pulseLogo 3s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(177, 38, 32, 0.3));
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px 5px var(--primary-glow);
    z-index: -1;
    animation: pulseGlow 3s infinite ease-in-out;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #d8d8d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.lang-selector-welcome {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.enter-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.enter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-30deg);
    animation: buttonShine 4s infinite linear;
}

.enter-btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px var(--primary-glow);
}

.welcome-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   2. MAIN APP CONTAINER & HEADER
   ========================================================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 90px; /* Spacer for fixed bottom FAB */
    animation: slideUp var(--transition-speed) ease-out;
}

.header {
    position: sticky;
    top: 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px 10px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-color);
}

.brand-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(46, 204, 113, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* Lang Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
}

.dropdown-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    min-width: 120px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    z-index: 20;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

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

.clear-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.clear-icon:hover {
    color: var(--text-white);
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 40px 12px 40px;
    border-radius: var(--border-radius-md);
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.search-box input:focus {
    outline: none;
    border-color: var(--glass-border-focus);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(177, 38, 32, 0.15);
}

/* Category Navigation (Horizontal scrollable) */
.category-nav-wrapper {
    margin: 0 -20px;
    padding: 0 20px;
    overflow: hidden;
}

.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

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

.category-chip {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.category-chip.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--primary-glow);
    transform: translateY(-1px);
}

/* ==========================================================================
   3. MENU CONTENT
   ========================================================================== */
.main-content {
    padding: 10px 20px;
    flex-grow: 1;
}

.menu-section {
    margin-bottom: 30px;
    scroll-margin-top: 185px; /* Offset for sticky header */
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Menu Item Card */
.item-card {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.item-card:active {
    transform: scale(0.98);
    background: var(--glass-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.item-card-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 12px;
}

.item-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 75%;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.item-dot-leader {
    flex-grow: 1;
    border-bottom: 1.5px dotted rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    align-self: flex-end;
    margin-bottom: 4px;
}

.item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    background: rgba(177, 38, 32, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(177, 38, 32, 0.2);
}

.item-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-badges {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.badge-spicy {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-new {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* Search results state */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.no-results i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.15);
}

/* ==========================================================================
   4. MODALS & BOTTOM SHEETS
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal.hidden {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    background: #181818;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 1010;
    animation: slideUpModal 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
}

.modal-drag-indicator {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 12px auto 4px auto;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1100;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-body {
    overflow-y: auto;
    padding: 10px 24px 24px 24px;
    flex-grow: 1;
}

/* Modal Hero Image */
.modal-header-image {
    width: 100%;
    height: 150px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(135deg, rgba(177,38,32,0.3) 0%, rgba(30,30,30,0.8) 100%);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-header-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(24, 24, 24, 1) 0%, transparent 100%);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal-title-row h2 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Options Form in Modal */
.item-options-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.option-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Checkbox/Radio Styling */
.option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.option-label-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px; /* Default checkbox */
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

/* Radio button style */
.option-input[type="radio"] {
    border-radius: 50%;
}

.option-input:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.option-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--text-white);
    border-radius: 50%;
}

.option-input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--text-white);
    background: transparent;
    border-radius: 0;
}

.option-label:has(.option-input:checked) {
    background: rgba(177, 38, 32, 0.08);
    border-color: rgba(177, 38, 32, 0.3);
}

.option-price-diff {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Modal Footer controls */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 24, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:active {
    background: rgba(255, 255, 255, 0.08);
}

.qty-value {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.modal-footer .btn-primary {
    flex-grow: 1;
}

/* ==========================================================================
   5. CART MODAL & FAB
   ========================================================================== */
.cart-fab {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 460px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(177, 38, 32, 0.5);
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-fab:active {
    transform: translateX(-50%) scale(0.97);
}

.cart-fab-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-fab-icon-container {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--text-white);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-fab-details {
    display: flex;
    flex-direction: column;
}

.cart-fab-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cart-fab-price {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.cart-fab-chevron {
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounceChevron 2s infinite ease-in-out;
}

/* Cart Items inside Modal */
.cart-header {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-header-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cart-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-item-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.2s ease-out;
}

.cart-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 60%;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-item-customizations {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 6px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--primary-color);
}

.cart-summary {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    padding-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row span {
    font-size: 1rem;
    font-weight: 600;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-actions-note {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    margin-top: 16px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
    align-items: flex-start;
}

.cart-actions-note i {
    color: var(--primary-color);
    margin-top: 2px;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo-container {
    width: 60px;
    height: 60px;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.7;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.address-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 250px;
    line-height: 1.4;
}

.address-text i {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

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

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

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes buttonShine {
    0% { left: -50%; }
    10% { left: 150%; }
    100% { left: 150%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bounceChevron {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==========================================================================
   MULTI-TABLE & ORDER CUSTOM STYLES
   ========================================================================== */
.table-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table-badge i {
    color: var(--primary-color);
}

/* Table Selector on Welcome Screen */
.welcome-table-selector-container {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.welcome-table-selector-container .selector-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.select-wrapper {
    position: relative;
    width: 200px;
}

.welcome-table-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-speed);
}

.welcome-table-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Cart Notes Styling */
.cart-notes {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-notes label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cart-notes textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--text-white);
    font-size: 0.88rem;
    font-family: var(--font-main);
    resize: none;
    height: 70px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.cart-notes textarea:focus {
    border-color: var(--glass-border-focus);
}

/* Success Confirmation Modal */
.success-modal-content {
    background: #14141d !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 30px 24px;
    align-items: center;
    text-align: center;
    margin: auto 20px !important;
    max-width: 380px !important;
    bottom: unset !important;
    top: 50%;
    transform: translateY(-50%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

.success-icon-container {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 16px;
    animation: scaleInCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-modal-content p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

@keyframes scaleInCheck {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

