/* ==========================================================================
   BURGER HOUSE — 100vw x 100vh FULLSCREEN HERO IMAGE & DARK GOLD DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,800;1,700&display=swap');

:root {
    /* Premium Dark Palette */
    --bg-main: #0B0E14;
    --bg-surface: #121620;
    --bg-card: #171C28;
    --bg-card-hover: #1F2536;
    --border-color: rgba(229, 192, 123, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Accents */
    --accent-gold: #E5C07B;
    --accent-gold-light: #F3D69B;
    --accent-gold-glow: rgba(229, 192, 123, 0.35);
    --accent-red: #C62828;
    --accent-red-hover: #E53935;

    /* Typography Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A6B8;
    --text-muted: #6C7284;
    --text-gold: #E5C07B;

    /* Shadows & Glass */
    --glass-bg: rgba(18, 22, 32, 0.75);
    --glass-border: rgba(229, 192, 123, 0.25);
    --shadow-glow: 0 10px 40px rgba(229, 192, 123, 0.2);
    --shadow-red-glow: 0 10px 30px rgba(198, 40, 40, 0.4);
    --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.5);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-main);
}

/* Typography Helpers */
.font-serif {
    font-family: 'Cinzel', 'Playfair Display', serif;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px auto;
}

.section-header .subtitle {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header .title {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8E0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-red-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(198, 40, 40, 0.6);
    background: linear-gradient(135deg, var(--accent-red-hover) 0%, var(--accent-red) 100%);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B89047 100%);
    color: #0B0E14;
    font-weight: 900;
    box-shadow: var(--shadow-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    box-shadow: 0 14px 40px rgba(229, 192, 123, 0.5);
}

.btn-secondary {
    background: rgba(18, 22, 32, 0.6);
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: #0B0E14;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 9px 22px;
    font-size: 12px;
}

/* ==========================================================================
   HEADER — GLASS NAVBAR
   ========================================================================== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1240px;
    z-index: 1000;
    padding: 12px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.site-header.scrolled {
    top: 10px;
    background: rgba(11, 14, 20, 0.94);
    border-color: rgba(229, 192, 123, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.cart-icon-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--accent-gold);
    cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: right 0.4s ease;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--accent-gold);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   1. FIRST SCREEN — 100vw x 100vh FULLSCREEN HERO IMAGE & CANVAS
   ========================================================================== */
.hero-scroll-wrapper {
    position: relative;
    height: 350vh;
    width: 100%;
}

.hero-sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0B0E14;
}

.hero-fullscreen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.hero-fullscreen-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.45) 0%, rgba(11, 14, 20, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(229, 192, 123, 0.12);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-fullscreen-title {
    font-family: 'Cinzel', serif;
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    margin-bottom: 16px;
    max-width: 900px;
    letter-spacing: 1px;
}

.hero-fullscreen-title span {
    color: var(--accent-gold);
    display: block;
}

.hero-fullscreen-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-fullscreen-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-loader {
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 20, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    z-index: 5;
    transition: opacity 0.5s ease;
}

.hero-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Scroll indicator hint */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.75;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.scroll-indicator .mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ==========================================================================
   2. ABOUT OUR STORY SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-img-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.about-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   3. THE ONE AND ONLY MENU & AR SECTION (INTEGRATED FROM index2.html)
   ========================================================================== */
.menu-section {
    padding: 100px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
}

.search-wrap {
    max-width: 500px;
    margin: 0 auto 28px auto;
}

.search-inner {
    position: relative;
}

.search-inner input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 14px 20px 14px 48px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-inner input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(229, 192, 123, 0.25);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.cat-scroll {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.cat-btn {
    white-space: nowrap;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn:hover, .cat-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0B0E14;
    box-shadow: var(--shadow-glow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.menu-card-img {
    height: 210px;
    background: #090C10;
    position: relative;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    background: #090C10;
    --poster-color: transparent;
}

model-viewer::part(default-ar-button) {
    display: none !important;
}

.ar-icon-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--accent-red);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red-glow);
    z-index: 10;
    animation: pulse 2.5s infinite;
    text-decoration: none;
}

.ar-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

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

.menu-card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.menu-card-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.menu-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 36px;
    line-height: 1.5;
}

.menu-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: auto;
}

.menu-price {
    font-size: 19px;
    font-weight: 900;
    color: var(--accent-gold);
}

.menu-price em {
    font-size: 11px;
    color: var(--text-muted);
    font-style: normal;
    margin-left: 4px;
}

#loader {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. FIND US / CONTACT SECTION
   ========================================================================== */
.find-us-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.find-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.map-card {
    width: 100%;
    height: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(229,192,123,0.08) 0%, rgba(11,14,20,0.9) 70%);
}

.map-icon {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    z-index: 2;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.location-item .icon {
    font-size: 24px;
    color: var(--accent-gold);
}

.location-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #07090D;
    color: var(--text-muted);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-title {
    color: var(--text-primary);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.footer-title {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-fullscreen-title {
        font-size: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        width: calc(100% - 24px);
        padding: 10px 18px;
    }
    .nav-menu {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }

    .hero-fullscreen-title {
        font-size: 34px;
    }
    .hero-fullscreen-sub {
        font-size: 15px;
    }
    .hero-fullscreen-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-fullscreen-buttons .btn {
        width: 100%;
    }

    .about-grid, .find-us-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .ai-input-wrap {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }
    #ai-search-input {
        width: 100%;
        text-align: center;
    }
    .ai-submit-btn {
        width: 100%;
    }
}

/* ==========================================================================
/* ==========================================================================
   CHEF LEO AI ARABIC CHAT EXPERIENCE STYLES (RTL - FULL MOBILE RESPONSIVE)
   ========================================================================== */
.chef-chat-widget {
    background: linear-gradient(145deg, rgba(20, 26, 38, 0.96), rgba(11, 14, 20, 0.98));
    border: 1px solid rgba(230, 200, 117, 0.35);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(230, 200, 117, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 24px;
    margin: 0 auto 40px auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 24px;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    font-family: 'Outfit', 'Cairo', sans-serif;
    min-height: 480px;
    max-height: min(650px, 85dvh);
}

.chef-chat-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab, #d4af37);
    z-index: 2;
}

/* Sidebar / Character Avatar */
.chef-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 14px;
    box-sizing: border-box;
}

.chef-avatar-wrapper {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    margin-bottom: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chef-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: opacity 0.2s ease, transform 0.3s ease, filter 0.3s ease;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

/* Animations for states */
.chef-state-idle {
    animation: chefFloat 3s ease-in-out infinite;
}

.chef-state-thinking {
    animation: chefPulse 1.2s ease-in-out infinite;
}

.chef-state-happy {
    animation: chefBounce 0.6s ease infinite alternate;
}

.chef-state-confused {
    animation: chefShake 0.5s ease-in-out;
}

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

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

@keyframes chefBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

@keyframes chefShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}

.chef-info {
    width: 100%;
}

.chef-name-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.chef-title-name {
    font-family: 'Cinzel', 'Cairo', serif;
    font-size: 20px;
    font-weight: 800;
    color: #f3e5ab;
}

.chef-title-badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.chef-status-badge {
    background: rgba(230, 200, 117, 0.1);
    border: 1px solid #e6c875;
    color: #f3e5ab;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    transition: all 0.3s ease;
    word-break: break-word;
}

/* Main Chat Area */
.chef-chat-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.chat-thread {
    flex: 1;
    min-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-left: 4px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Custom Scrollbar for Chat Thread */
.chat-thread::-webkit-scrollbar {
    width: 5px;
}

.chat-thread::-webkit-scrollbar-thumb {
    background: rgba(230, 200, 117, 0.35);
    border-radius: 10px;
}

.chat-msg {
    display: flex;
    gap: 12px;
    max-width: 88%;
    animation: msgFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

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

.chef-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(230, 200, 117, 0.15);
    border: 1px solid rgba(230, 200, 117, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    user-select: none;
}

.user-msg .msg-avatar {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
}

.msg-content {
    background: rgba(26, 34, 48, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px 2px 18px 18px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.user-msg .msg-content {
    background: linear-gradient(135deg, rgba(230, 200, 117, 0.22), rgba(212, 175, 55, 0.32));
    border-color: rgba(230, 200, 117, 0.55);
    border-radius: 2px 18px 18px 18px;
    color: #ffffff;
}

/* Dish Recommendation Cards Inside Chat */
.chef-dish-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

.dish-card {
    background: rgba(11, 14, 20, 0.75);
    border: 1px solid rgba(230, 200, 117, 0.3);
    border-radius: 12px;
    padding: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.dish-card:hover {
    border-color: #f3e5ab;
}

.dish-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.dish-name {
    font-weight: 700;
    font-size: 14.5px;
    color: #ffffff;
    flex: 1;
    word-break: break-word;
}

.dish-price {
    font-weight: 800;
    color: #f3e5ab;
    font-size: 14.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dish-category {
    font-size: 11px;
    color: #d4af37;
    margin-bottom: 6px;
}

.dish-reason {
    background: rgba(230, 200, 117, 0.08);
    border-right: 3px solid #d4af37;
    padding: 7px 9px;
    border-radius: 6px 0 0 6px;
}

.reason-icon {
    font-size: 11px;
    font-weight: 700;
    color: #f3e5ab;
    display: block;
    margin-bottom: 2px;
}

.reason-text {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.45;
    word-break: break-word;
}

/* Typing Dots Animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: #f3e5ab;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Quick Prompt Chips (Horizontally Scrollable on Mobile) */
.chat-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px 2px;
    box-sizing: border-box;
}

.chat-quick-chips::-webkit-scrollbar {
    display: none;
}

.chip-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.chat-chip:hover,
.chat-chip:active {
    background: rgba(230, 200, 117, 0.25);
    border-color: #f3e5ab;
    color: #f3e5ab;
}

/* Chat Input Form */
.chef-chat-form {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 20, 30, 0.95);
    border: 1.5px solid rgba(230, 200, 117, 0.35);
    border-radius: 50px;
    padding: 4px 6px 4px 14px;
    gap: 8px;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.chat-input-wrapper:focus-within {
    border-color: #f3e5ab;
    box-shadow: 0 0 16px rgba(230, 200, 117, 0.25);
}

#chat-user-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px; /* 16px strictly prevents iOS Safari automatic page zoom */
    font-family: 'Outfit', 'Cairo', sans-serif;
    padding: 9px 0;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

#chat-user-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13.5px;
}

.chat-send-btn {
    border-radius: 50px !important;
    padding: 9px 20px !important;
    font-size: 13.5px;
    font-weight: 700;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Adaptive Layout */
@media (max-width: 768px) {
    .chef-chat-widget {
        flex-direction: column;
        padding: 16px 14px;
        gap: 12px;
        border-radius: 20px;
        margin-bottom: 30px;
        min-height: 420px;
        max-height: min(580px, 80dvh);
    }

    .chef-sidebar {
        width: 100%;
        flex-direction: row;
        gap: 12px;
        text-align: right;
        padding: 10px 12px;
        border-radius: 14px;
        align-items: center;
    }

    .chef-avatar-wrapper {
        width: 68px;
        height: 68px;
        min-width: 68px;
        min-height: 68px;
        margin-bottom: 0;
    }

    .chef-name-title {
        margin-bottom: 4px;
    }

    .chef-title-name {
        font-size: 16.5px;
    }

    .chef-title-badge {
        font-size: 10.5px;
    }

    .chef-status-badge {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .chef-chat-main {
        min-height: 0;
        height: auto;
    }

    .chat-msg {
        max-width: 94%;
        gap: 8px;
    }

    .msg-avatar {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .msg-content {
        padding: 10px 13px;
        font-size: 13.5px;
    }

    .chat-send-btn {
        padding: 8px 16px !important;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chef-chat-widget {
        padding: 12px 10px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        border-radius: 16px;
        min-height: 380px;
        max-height: min(540px, 78dvh);
    }

    .chef-sidebar {
        padding: 8px 10px;
        gap: 10px;
    }

    .chef-avatar-wrapper {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
    }

    .chef-title-name {
        font-size: 15px;
    }

    .chef-status-badge {
        font-size: 10.5px;
        padding: 3px 6px;
    }

    .chat-msg {
        max-width: 96%;
    }

    .dish-card {
        padding: 10px;
    }

    .dish-name, .dish-price {
        font-size: 13.5px;
    }
}



