:root {
    --primary: #f97316;
    --primary-light: rgba(249, 115, 22, 0.15);
    --primary-hover: #ea6807;
    --accent: #fbbf24;
    --bg: #030406;
    --bg-2: #08090e;
    --card-bg: rgba(20, 23, 33, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --nav-height: 75px;
    --shadow-glow: rgba(249, 115, 22, 0.3);
    
    /* Animation Tokens */
    --transition-premium: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--transition-premium) forwards;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: var(--nav-height);
    overflow-x: hidden;
}

/* --- AMBIENT GLOWS --- */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- HEADER --- */
.mobile-header {
    background: rgba(3, 4, 6, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.mobile-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.mobile-logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.mobile-logo-text span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- WELCOME BANNER --- */
.welcome-banner {
    padding: 2.5rem 1.5rem 1.5rem;
}

.welcome-banner h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-banner p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- CATEGORY PILLS --- */
.category-scroll {
    display: flex;
    gap: 12px;
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 2rem;
}

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

.category-pill {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--shadow-glow);
    transform: scale(1.05);
}

/* --- SECTION LABEL --- */
.section-label {
    padding: 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* --- APP CARDS --- */
.luxury-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.luxury-card:active {
    transform: scale(0.97);
}

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: var(--nav-height);
    background: rgba(11, 12, 18, 0.8);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
    color: var(--primary);
    transform: translateY(-5px);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 8px var(--shadow-glow));
}

/* --- FOOD CARDS --- */
.mobile-food-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    height: 140px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.mobile-food-image {
    width: 130px;
    height: 100%;
    object-fit: cover;
    border-right: 1px solid var(--glass-border);
}

.mobile-food-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-food-name {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.mobile-food-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.add-btn-sm {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--shadow-glow);
}

/* --- TOAST --- */
#toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(249, 115, 22, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- AUTH & FORMS --- */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.btn-mobile {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-align: center;
    border: none;
    width: 100%;
    display: block;
    box-shadow: 0 8px 25px var(--shadow-glow);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-mobile:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px var(--shadow-glow);
}

/* --- SEARCH BAR --- */
.search-container {
    padding: 0 1.5rem 1.5rem;
}

.search-bar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.search-bar input {
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

/* --- QUICK ACTIONS --- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 1.5rem 2rem;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.action-icon {
    width: 54px;
    height: 54px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.action-item span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.action-item:active .action-icon {
    transform: scale(0.9);
    background: var(--primary-light);
}

/* --- PROMO BANNER --- */
.promo-banner {
    margin: 0 1.5rem 2.5rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-banner::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0.4;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 1.5rem 2.5rem;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-item.tall {
    grid-row: span 2;
    justify-content: space-between;
}

.bento-emoji {
    font-size: 1.5rem;
}

.bento-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
}

/* --- PWA INSTALL POPUP --- */
.pwa-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    background: rgba(11, 12, 18, 0.85);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border-top: 1px solid var(--glass-border);
    border-radius: 32px 32px 0 0;
    padding: 2.5rem 1.5rem 3rem;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
}

.pwa-popup.show {
    transform: translateY(0);
}

.promo-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--shadow-glow) 0%, transparent 70%);
    z-index: -1;
}

.promo-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
}

.promo-title span {
    color: var(--primary);
}

.promo-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- APP LOADER --- */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    animation: pulse-logo 2s infinite ease-in-out;
}

.loader-logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: rotate-loader 1s linear infinite;
}

@keyframes rotate-loader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-logo {

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

    50% {
        opacity: 0.8;
        transform: scale(0.96);
    }
}


.app-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* --- PRE-ORDER SYSTEM --- */
.preorder-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 118px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preorder-badge.closed {
    background: #ef4444;
}
.mobile-food-card.booking-closed {
    opacity: 0.7;
}
.mobile-food-card.booking-closed img {
    filter: grayscale(1);
}
.add-btn-sm.disabled {
    background: #334155 !important;
    cursor: not-allowed;
    color: #94a3b8 !important;
}

/* Entrance Animations */
.animate-up {
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

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

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================
   LEAFLET THEME INTEGRATION
   ===================== */
.leaflet-container {
    background: var(--bg) !important;
    font-family: inherit;
    z-index: 1 !important;
}

.leaflet-control-zoom a {
    background-color: var(--glass) !important;
    color: #fff !important;
    border-bottom: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(10px);
}

.leaflet-control-zoom a:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.leaflet-bar {
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.5) !important;
    color: var(--text-muted) !important;
    font-size: 0.6rem !important;
}

