/* ----------------------------------------------------
   SeeEat App Mockup - Consumer Theme (Crimson Red & White)
   ---------------------------------------------------- */

:root {
    --brand-red: #9c1c24; /* SeeEat Brand Crimson Red */
    --brand-hover: #b8232c;
    --brand-light: #fdf2f2;
    --accent-red: #e30613;
    --bg-light: #f5f6f9;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --radius-pill: 50px;
    --radius-card: 16px;
    --radius-btn: 12px;
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(156, 28, 36, 0.08);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --phone-w: 390px;
    --phone-h: 844px;
    --bezel: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Assistant', 'Rubik', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #fef8f0 !important;
    background: #fef8f0 !important;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    touch-action: none;
}

/* ----------------------------------------------------
   Presentation Workspace Layout (Split Screen on Desktop)
   ---------------------------------------------------- */

.workspace-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.presentation-info {
    display: none !important;
}

.logo-badge {
    background: rgba(156, 28, 36, 0.15);
    border: 1px solid rgba(156, 28, 36, 0.3);
    color: #ff525b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    align-self: flex-start;
    display: inline-block;
}

.logo-area h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 8px;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 4px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    padding: 20px;
}

.info-card h3, .flow-steps h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.info-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.flow-steps {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-card);
    padding: 20px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.step-item.active {
    background: rgba(156, 28, 36, 0.15);
    border: 1px solid rgba(156, 28, 36, 0.3);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.step-item.active .step-num {
    background: var(--brand-red);
    box-shadow: 0 0 10px rgba(156, 28, 36, 0.4);
}

.step-text {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.step-item.active .step-text {
    color: #ffffff;
    font-weight: 600;
}

.footer-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

/* ----------------------------------------------------
   iPhone 15 Pro Frame Setup
   ---------------------------------------------------- */

.phone-wrapper {
    perspective: 1000px;
}

.iphone-15-pro {
    position: relative;
    width: var(--phone-w);
    height: var(--phone-h);
    background: linear-gradient(145deg, #ded8d0 0%, #c2bbb2 35%, #a59e94 70%, #b8b1a7 100%) !important;
    border-radius: 54px !important;
    padding: var(--bezel) !important;
    box-shadow: 
        0 30px 75px -12px rgba(0, 0, 0, 0.22),
        0 15px 40px -6px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 0 2px #8a847b,
        0 0 0 7px #b3aba0,
        0 0 0 8.5px #756f66,
        inset 0 0 8px rgba(0, 0, 0, 0.2) !important;
}

/* Side buttons - Natural Titanium */
.power-btn, .volume-up, .volume-down, .action-btn {
    position: absolute;
    background: linear-gradient(180deg, #d3cbc2 0%, #999187 100%) !important;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.power-btn { top: 190px; right: -3.5px; width: 3.5px; height: 80px; }
.action-btn { top: 130px; left: -3.5px; width: 3.5px; height: 25px; }
.volume-up { top: 180px; left: -3.5px; width: 3.5px; height: 50px; }
.volume-down { top: 245px; left: -3.5px; width: 3.5px; height: 50px; }

/* Phone Screen Area - Authentic Black Glass OLED Bezel */
.screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    border-radius: 42px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 3.5px solid #1a1a1c !important;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

/* Status Bar */
.status-bar {
    display: none !important;
}

.status-bar .icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.battery-icon {
    width: 20px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 3px;
    position: relative;
    padding: 1px;
}

.battery-icon::before {
    content: '';
    display: block;
    height: 100%;
    width: 80%;
    background: currentColor;
    border-radius: 1px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -3px;
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 0 1px 1px 0;
}

/* iPhone Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #000000;
    border-radius: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.dynamic-island-content {
    opacity: 0;
    transform: scale(0.8);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 100;
    pointer-events: none;
    transition: background 0.3s ease;
}

.home-indicator.white-indicator {
    background: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------
   App Screens Container & Base Transitions
   ---------------------------------------------------- */

.app-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.app-screen.active {
    display: flex;
    z-index: 10;
}

/* Special: map screen must be instantly visible so Leaflet can measure its container */
#screen-main-map.active {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    background-color: #e8e8e8 !important;
}

/* General button designs */
.btn-primary {
    width: 100%;
    background-color: var(--brand-red);
    border: none;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(156, 28, 36, 0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active {
    background-color: var(--brand-hover);
    transform: scale(0.98);
}

/* ----------------------------------------------------
   SCREEN 1: SPLASH SCREEN (BITE LOGO)
   ---------------------------------------------------- */

#screen-splash {
    background-color: var(--brand-red);
    justify-content: space-between;
    align-items: center;
    padding: 60px 0 40px 0;
    z-index: 101; /* Layer over status bar */
}

.splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.splash-logo-img {
    width: 250px;
    max-width: 85%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(-150%);
}

@keyframes swipe-in-right {
    0% {
        transform: translateX(150%) scale(0.85);
        opacity: 0;
    }
    70% {
        transform: translateX(-8%) scale(1.04);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.splash-logo-img.animate-swipe {
    animation: swipe-in-right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.splash-footer {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   SIGN UP FLOW (PHONE, OTP, NAME SCREENS)
   ---------------------------------------------------- */

.app-screen[id^="screen-login-"] {
    background-color: transparent;
    color: #ffffff;
    z-index: 2; /* Render in front of 3D background */
    display: none;
    flex-direction: column;
    height: 100%;
}

.app-screen[id^="screen-login-"].active {
    display: flex;
}

.login-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    z-index: 10;
    cursor: pointer;
}

.login-back-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    z-index: 10;
    cursor: pointer;
}

.login-form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 16px;
    width: 100%;
}

.login-form-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: center;
}

.login-form-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 8px;
}

.login-footer-section {
    padding: 24px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.app-screen[id^="screen-login-"] .btn-primary {
    background-color: #ffffff !important;
    color: var(--brand-red) !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    width: 100%;
    border: none;
}

.app-screen[id^="screen-login-"] .btn-primary:active {
    background-color: #f3f4f6 !important;
    transform: scale(0.98);
}

/* Phone input layout - centered and styled */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-btn);
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    direction: ltr; /* Force country code on left */
}

.phone-input-group:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.2);
}

.flag-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.25); /* Border on right in LTR */
}

.flag-icon { font-size: 1.1rem; }
.prefix-number { font-weight: 700; font-size: 0.95rem; color: #ffffff; }

#user-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    letter-spacing: 0.5px;
    text-align: center; /* Center input text */
}

#user-phone-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.error-msg-hint {
    font-size: 0.8rem;
    color: #ffd1d3; /* light pink red for warning on dark red background */
    font-weight: 700;
    min-height: 16px;
    text-align: center;
}

/* OTP Boxes input layout */
.otp-inputs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin: 16px auto;
    direction: ltr;
}

.otp-box {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.otp-box:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.25);
}

.otp-resend-prompt {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.otp-resend-prompt a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

/* Name input layout */
.name-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-btn);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0 16px;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
}

.name-input-wrapper:focus-within {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

#user-name-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    text-align: center; /* Center user name text input */
}

#user-name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------
   ANIMATED 3D FOOD COLUMNS BACKGROUND
   ---------------------------------------------------- */

.login-bg-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--brand-red);
    display: none;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}



#screen-login-phone.active ~ .login-bg-3d-container,
#screen-login-otp.active ~ .login-bg-3d-container,
#screen-login-name.active ~ .login-bg-3d-container {
    display: block;
}

.hero-video-bg-mock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16; /* Subtle transparent video overlays on crimson background */
    pointer-events: none;
}

/* ----------------------------------------------------
   SCREEN 5: MAIN MAP DASHBOARD (Leaflet Map)
   ---------------------------------------------------- */

#screen-main-map {
    background-color: var(--bg-light);
}

/* Map wrapper */
#app-map {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#app-map.expanded-map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000 !important;
    border-radius: 0 !important;
}

.collection-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

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

/* Favorites Button (Floating top-left in sheet) */
.restaurant-fav-btn {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

.restaurant-fav-btn:hover {
    transform: scale(1.05);
}

.restaurant-fav-btn.is-fav i {
    fill: #e11d48;
}

/* Share Button (Floating top-left, to the right of heart button) */
.restaurant-share-btn {
    position: absolute !important;
    top: 14px !important;
    left: 58px !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

.restaurant-share-btn:hover {
    transform: scale(1.05);
}

.app-feed-container {
    scrollbar-width: none;
}
.app-feed-container::-webkit-scrollbar {
    display: none;
}

/* Clean Gray-white Map style */
.leaflet-tile {
    filter: grayscale(100%) contrast(105%) brightness(98%) !important;
}

/* Collapsible Map Section */
#collapsible-map-section.map-revealed {
    height: 236px !important;
    padding: 0 16px 12px 16px !important;
    margin-bottom: 8px !important;
}

/* Custom Marker Styling in Leaflet */
.custom-leaflet-marker {
    background: none;
    border: none;
}

.marker-pin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48px;
    height: 48px;
}

.marker-circle-logo {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 3px solid var(--brand-red);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: var(--transition);
}

.marker-circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marker-pin-wrapper::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--brand-red);
    z-index: 1;
}

/* Floating overlay components on map */
.floating-header-panel {
    position: absolute;
    top: 54px;
    left: 14px;
    right: 14px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-search-bar {
    background-color: #ffffff;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-search-bar .search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

#map-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.user-profile-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-light);
    border: none;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Category selector pills */
.floating-categories-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.floating-categories-bar::-webkit-scrollbar {
    display: none;
}

.map-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #374151 !important;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    height: 34px;
    white-space: nowrap;
}

.map-cat-pill.active {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(156, 28, 36, 0.2) !important;
}

.cat-img-wrapper {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.4);
}

/* Bottom carousel of restaurants */
.bottom-panel-wrapper {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.carousel-title-row {
    padding: 0 16px;
    margin-bottom: 6px;
    pointer-events: auto;
}

.carousel-title-row h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
    margin: 0;
    text-align: right;
    letter-spacing: 0.3px;
}

.floating-bottom-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 14px 6px 14px;
    pointer-events: auto;
}

.carousel-footer-row {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    pointer-events: auto;
}

.benefits-btn-bottom {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.benefits-btn-bottom:hover {
    transform: scale(1.03);
    background-color: #8c171e;
}

.floating-bottom-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    display: flex;
    gap: 12px;
    padding: 4px 16px 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.restaurant-carousel-card {
    min-width: 270px;
    max-width: 270px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-sizing: border-box;
}

.restaurant-carousel-card.selected-active {
    border-color: var(--brand-red);
    box-shadow: 0 8px 24px rgba(156, 28, 36, 0.15);
}

.carousel-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carousel-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.carousel-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.carousel-stats {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.card-rating {
    font-size: 0.75rem;
    font-weight: 700;
    color: #eab308;
    display: flex;
    align-items: center;
    gap: 2px;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ----------------------------------------------------
   SCREEN 6: RESTAURANT DETAILS SLIDING SHEET
   ---------------------------------------------------- */

.sliding-details-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% - 70px);
    background-color: var(--bg-white);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 110;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sliding-details-sheet.active {
    transform: translateY(0);
}

.sheet-drag-handle {
    width: 42px;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    margin: 10px auto 4px auto;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.sheet-drag-handle:hover {
    background-color: #9ca3af;
    transform: scaleX(1.1);
}

.sheet-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sheet-header {
    position: relative;
    padding-bottom: 12px;
}

.sheet-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Top Banner Header */
.restaurant-banner {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 16px 16px 42px 16px;
    color: #ffffff;
    flex-shrink: 0;
}

.restaurant-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

/* Back Button (Floating on the top-right over the banner) */
.restaurant-back-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-red);
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

.restaurant-back-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Header Text info */
.restaurant-header-info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: right;
    direction: rtl;
}

.restaurant-logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.restaurant-header-text {
    flex: 1;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.restaurant-cuisine-tag {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    color: #e5e7eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Three Round Wolt-style Floating Action Buttons */
.restaurant-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: -24px auto 14px auto;
    position: relative;
    z-index: 10;
    width: fit-content;
    padding: 0 12px;
}

.restaurant-action-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.restaurant-circle-btn {
    background-color: #ffffff;
    border: 1.5px solid rgba(156, 28, 36, 0.3);
    border-radius: 50%;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.restaurant-circle-btn.center-btn {
    width: 48px;
    height: 48px;
    border: 2.5px solid var(--brand-red);
    box-shadow: 0 6px 16px rgba(156, 28, 36, 0.18);
}

.restaurant-circle-btn.side-btn {
    width: 40px;
    height: 40px;
}

.restaurant-circle-btn:hover {
    transform: scale(1.05);
}

.restaurant-btn-icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.restaurant-btn-icon.menu-icon {
    width: 24px;
    height: 24px;
    -webkit-mask-image: url('menu.png');
    mask-image: url('menu.png');
}

.restaurant-btn-icon.delivery-icon {
    width: 20px;
    height: 20px;
    -webkit-mask-image: url('delivery.png');
    mask-image: url('delivery.png');
}

.restaurant-action-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
}

.restaurant-action-btn-container.active .restaurant-action-label {
    color: var(--brand-red);
}

/* Menu list cards section */
.restaurant-menu-section {
    padding: 10px 16px 36px 16px;
    overflow-y: auto;
    flex: 1;
}

.restaurant-menu-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 6px;
    text-align: right;
}

.restaurant-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-dish-item {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: row-reverse; /* RTL image right text left */
    overflow: hidden;
    padding: 12px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-dish-item:hover {
    border-color: rgba(156, 28, 36, 0.15);
    box-shadow: 0 4px 12px rgba(156, 28, 36, 0.04);
}

.dish-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-meta-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    direction: rtl;
}

.dish-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

.dish-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
}

.logo-3d-indicator {
    width: 24px;
    height: 24px;
    background-color: #9c1c24;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(156, 28, 36, 0.4);
    flex-shrink: 0;
    margin-right: 6px;
    animation: floatModel 3.2s ease-in-out infinite alternate !important;
}

.logo-3d-indicator svg {
    animation: none !important;
}

/* Floating animation for standalone 3D badge icons */
i[data-lucide="box"], .btn-ar-trigger i, .floating-3d-icon, .badge-3d, .icon-3d, [data-3d="true"] {
    animation: floatModel 3.2s ease-in-out infinite alternate !important;
}

.dish-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    margin-top: 1px;
}

.dish-description {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------
   SCREEN 7: 3D DISH VIEWER FULL SCREEN OVERLAY
   ---------------------------------------------------- */

.dish-3d-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fef7f0;
    z-index: 120;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.dish-3d-overlay.active {
    display: flex;
    opacity: 1;
}

.dish-3d-card {
    background: #ffffff;
    border-radius: 40px;
    margin: 48px 16px 16px 16px;
    width: calc(100% - 32px);
    height: calc(100% - 64px);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.overlay-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 60;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background-color 0.2s, transform 0.2s;
}

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

#overlay-model-viewer {
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
}

@keyframes seeeatPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(156, 28, 36, 0.35);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 14px 32px rgba(156, 28, 36, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(156, 28, 36, 0.35);
    }
}

.btn-ar-preview {
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    animation: pulse-ar-button 2.2s infinite ease-in-out !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.btn-ar-preview:active {
    transform: scale(0.86) translateY(4px) !important;
    filter: brightness(0.92) drop-shadow(0 2px 6px rgba(156, 28, 36, 0.3)) !important;
    transition: transform 0.06s cubic-bezier(0.4, 0, 0.2, 1), filter 0.06s ease !important;
}

@keyframes pulse-ar-button {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

/* SeeEat Pill Button */
.seeeat-pill-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #9c1c24 0%, #7e1217 100%);
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(156, 28, 36, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    text-align: center;
    z-index: 60;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
}

.seeeat-pill-btn .logo-e {
    background-color: #ffffff;
    color: #9c1c24;
    padding: 0 5px;
    border-radius: 4px;
    margin: 0 2px;
    font-weight: 900;
    display: inline-block;
    height: 22px;
    line-height: 22px;
}

/* ----------------------------------------------------
   BENEFITS STYLING (Top Bar and sliding sheet)
   ---------------------------------------------------- */

.top-benefits-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 4px;
}

.user-greeting-map {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.benefits-btn {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(156,28,36,0.15);
    cursor: pointer;
    transition: var(--transition);
}

.benefits-btn:active {
    transform: scale(0.95);
    background-color: var(--brand-hover);
}

/* Sliding benefits sheet */
.benefits-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 380px;
    background-color: var(--bg-white);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 110;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.benefits-sheet.active {
    transform: translateY(0);
}

.benefits-content {
    padding: 16px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
}

.benefits-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.benefits-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.benefits-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-card {
    background-color: var(--brand-light);
    border: 1px solid rgba(156, 28, 36, 0.1);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.benefit-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Profile sliding sheet */
.profile-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 500px;
    max-height: 85vh;
    background-color: var(--bg-white);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 110;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-sheet.active {
    transform: translateY(0);
}

.profile-content {
    padding: 16px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    align-items: center;
}

.profile-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 12px;
}

.profile-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.profile-header .benefits-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.profile-avatar-placeholder {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 2.5px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

.profile-avatar-placeholder:hover {
    border-color: var(--brand-red);
    background-color: #fee2e2;
}

.profile-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder i {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.upload-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.upload-badge i {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.upload-hint {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-top: 4px;
}

.profile-info-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
}

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

.info-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Sliding Content Sheet & Collapsed State */
@keyframes floatModel {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(2.5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.sliding-content-sheet {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: visible !important;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    border-radius: 28px 28px 20px 20px;
}
.sliding-content-sheet.collapsed-feed {
    transform: translateY(calc(100% - 215px)) !important;
}

/* Floating GPS Re-center Button (Transparent White Target, Visible ONLY when sheet is collapsed) */
.floating-recenter-btn {
    position: absolute;
    bottom: 235px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
}

/* Show GPS button ONLY when sliding sheet is collapsed */
.sliding-content-sheet.collapsed-feed ~ .floating-recenter-btn,
#app-feed-scroll.collapsed-feed ~ .floating-recenter-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
}

.floating-recenter-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
}

.floating-recenter-btn:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.floating-recenter-btn:active svg {
    transform: scale(0.92);
}

.floating-recenter-btn.locating svg {
    animation: spin 0.8s linear infinite;
}

/* Bottom Tab Nav Bar active indicators */
.bottom-nav-btn {
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s, transform 0.1s;
    color: var(--brand-red) !important;
}
.bottom-nav-btn.active-tab {
    opacity: 1 !important;
    color: var(--brand-red) !important;
    font-weight: 800 !important;
}
.bottom-nav-btn.active-tab i {
    color: var(--brand-red) !important;
    fill: rgba(156, 28, 36, 0.2) !important;
}

/* Touch Action Overrides for Native Feel */
.workspace-container, .phone-wrapper, .iphone-15-pro, .screen, .app-container {
    touch-action: none !important;
}
.sheet-scrollable-body, .benefits-list, .favorites-list, #user-profile-sheet .sheet-scrollable-body, #restaurateur-sheet .sheet-scrollable-body {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}
.carousel-container, .floating-categories-bar {
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch;
}
#app-map, .leaflet-pane, .leaflet-container {
    touch-action: auto !important;
}

/* Standalone Viewport Mode (Hides iPhone Mockup Frame on real devices / smaller screens) */
@media (max-width: 768px) or (display-mode: standalone) {
    body, html {
        background-color: #ffffff;
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
    }
    .workspace-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    .phone-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        perspective: none !important;
    }
    .iphone-15-pro {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100% !important;
        max-height: 100% !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .screen {
        border-radius: 0 !important;
        border: none !important;
        width: 100% !important;
        height: 100% !important;
    }
    .power-btn, .volume-up, .volume-down, .action-btn {
        display: none !important;
    }
    .dynamic-island {
        display: none !important;
    }
}

/* Mini Rapidos Dish 3D Model & Poster Persistence */
#mini-rapidos-viewer {
    width: 85px !important;
    height: 85px !important;
    min-width: 85px !important;
    min-height: 85px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
}

#mini-rapidos-viewer::part(poster) {
    background-image: url('RapidosBeef_poster.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Floating dish background animations for SeeEat banner */
@keyframes floatDish1 {
    0% { transform: translateY(0px) rotate(-12deg); }
    100% { transform: translateY(-6px) rotate(-4deg); }
}

@keyframes floatDish2 {
    0% { transform: translateY(0px) rotate(15deg); }
    100% { transform: translateY(6px) rotate(5deg); }
}

/* ----------------------------------------------------
   Floating 3D Background Decor Icons (Desktop Presentation)
   ---------------------------------------------------- */
.floating-decor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-decor-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: transform 0.3s ease;
}

.floating-decor-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(156, 28, 36, 0.16));
}

.floating-decor-icon.blur-icon img {
    filter: blur(5px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

@keyframes floatIcon1 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(8deg) scale(1.06); }
}

@keyframes floatIcon2 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-26px) rotate(-10deg) scale(0.95); }
}

@keyframes floatIcon3 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-16px) rotate(12deg) scale(1.05); }
}

@keyframes floatIcon4 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-22px) rotate(-6deg) scale(1.03); }
}

@keyframes floatIcon5 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-18px) rotate(9deg) scale(0.97); }
}

@media (max-width: 900px) {
    .floating-decor-container {
        display: none !important;
    }
}


