/* ========================================================= */
/* === 1. FONTS & IMPORTS ================================ */
/* ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&family=Great+Vibes&family=Dancing+Script:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman:wght@400;700&family=Georgia:wght@400;700&family=Arial:wght@400;700&family=Helvetica:wght@400;700&display=swap');

/* ========================================================= */
/* ================== Vibe style =========================== */
/* ========================================================= */

.vibe-tab { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; font-weight: 600; border-radius: 10px; transition: 0.2s; }
.vibe-tab.active { background: #fff; color: #c88437; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

.vibe-label { display: block; font-weight: 700; color: #4e382d; margin-bottom: 12px; font-size: 0.95rem; }
.vibe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.vibe-grid button { 
    padding: 15px 10px; border: 1px solid #eee; background: #fff; border-radius: 12px; 
    font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.vibe-grid button:active { background: #fff3e0; transform: scale(0.96); border-color: #c88437; }

.emoji-scale { display: flex; justify-content: space-between; margin-bottom: 25px; }
.emoji-scale button { font-size: 2.2rem; background: none; border: none; cursor: pointer; transition: transform 0.2s; }
.emoji-scale button:hover { transform: scale(1.3); }

.relish-question { border-bottom: 1px dashed #eee; padding-bottom: 20px; margin-bottom: 20px; }

.vibe-grid button.saved { background: #d4edda !important; border-color: #28a745 !important; transition: 0.3s; }

/* ========================================================= */
/* ============= Vibe style  End =========================== */
/* ========================================================= */

:root {
    --font-ui: 'Lato', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --bg-main-color: #f8f9fa;
    --text-main-color: #333;
    --accent-highlight-color: #00094B;
    --accent-btn-color: #00094B; /* Added for ribbon consistency */
}

/* Theme Helper Classes */
.font-tahoma { --font-family-base: Tahoma, sans-serif; --font-family-desc: 'Lato', sans-serif; }
.font-times { --font-family-base: 'Times New Roman', serif; --font-family-desc: 'Lato', sans-serif; } 
.font-georgia { --font-family-base: Georgia, serif; --font-family-desc: 'Lato', sans-serif; } 
.font-arial { --font-family-base: Arial, sans-serif; --font-family-desc: Arial, sans-serif; }
.font-helvetica { --font-family-base: Helvetica, sans-serif; --font-family-desc: Helvetica, sans-serif; }
.font-greatvibes { --font-family-base: 'Great Vibes', cursive; --font-family-desc: 'Lato', sans-serif; }

/* ========================================================= */
/* === 2. GLOBAL LAYOUT & BODY =========================== */
/* ========================================================= */
body {
    background-color: var(--bg-main-color, #f8f9fa); 
    background-image: var(--bg-image-url, none); 
    color: var(--text-main-color, #333); 
    font-family: var(--font-ui);
    background-attachment: fixed; 
    background-size: cover;       
    background-position: center center;
    min-height: 100vh;            
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; 
}

/* ========================================================= */
/* === 3. MAIN HEADER (Desktop Layout) =================== */
/* ========================================================= */
#main-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid #eee;
  background: #fffaf3;
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CENTER */
.header-center {
  text-align: center;
  pointer-events: none; /* prevents accidental shifting */
}

.header-center h1 {
  margin: 0;
  font-size: 1.6rem;
}

.header-center p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
#header-logo { width: auto; height: 55px; object-fit: contain; }

/* Title (Center) */
#header-name {
    margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem;
    text-transform: uppercase; color: var(--text-main-color, #00094B); 
    letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#header-slogan { margin-top: 2px; font-size: 0.85rem; font-family: 'Great Vibes', cursive; color: #666; }
#header-menu-title { display: none; }

/* Buttons (Right) */
#toggle-order-btn {
    background-color: #333; color: white; font-weight: 600; font-size: 0.85rem;
    border: none; padding: 8px 15px; border-radius: 30px; cursor: pointer; white-space: nowrap;
}
#toggle-order-btn:hover { transform: translateY(-2px); }
#lang-selector { display: flex; gap: 5px; }
.lang-button {
    padding: 5px 8px; font-size: 0.8rem; border: 1px solid #ccc;
    background: transparent; border-radius: 4px; cursor: pointer;
}
.lang-button.active {
    background: var(--accent-highlight-color, #00094B); color: white; border-color: var(--accent-highlight-color, #00094B);
}

/* ========================================================= */
/* === 4. KIOSK BODY & LAYOUT ============================ */
/* ========================================================= */
#kiosk-body { display: flex; flex: 1; overflow: hidden; position: relative; }

/* LEFT PANEL: MENU */
#menu-panel {
    flex: 7; background: transparent; padding: 0 30px 30px 30px;
    overflow-y: auto; scroll-behavior: smooth;
}

#category-nav-container {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-main-color, #f8f9fa); padding-bottom: 10px;
    margin: 0 -30px 20px -30px; padding: 0 30px;
}

#menu-content {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 15px; row-gap: 20px; padding-bottom: 50px; align-items: flex-start;
}
div[id^="cat-"] { margin-top: 10px !important; margin-bottom: 0px !important; }

/* CATEGORY HEADERS */
.category-title {
    grid-column: 1 / -1; font-family: var(--font-heading); font-size: 1.8rem; 
    font-weight: 700; text-align: center; color: var(--accent-highlight-color, #00094B); 
    margin: 5px 0; position: relative; display: inline-block;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8); 
}
.category-title::after {
    content: ''; display: block; width: 80px; height: 3px; 
    background: linear-gradient(90deg, transparent, var(--accent-highlight-color, #00094B), transparent); 
    margin: 5px auto 0; border-radius: 2px; opacity: 0.7;
}

/* ========================================================= */
/* === 5. PREMIUM GLASS CARD & HOVER EFFECTS ============= */
/* ========================================================= */
.menu-item {
    display: flex; flex-direction: column; cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 20px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}
.menu-item:hover {
    transform: translateY(-5px); background: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-color: #fff;
}
.menu-item-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px;
}
.menu-item-name { 
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; 
    color: #2c3e50; line-height: 1.2;
}
.menu-item-price { 
    font-family: var(--font-ui); font-size: 1.1rem; font-weight: 800; 
    color: #d35400; background: #fff5e6; padding: 4px 10px; 
    border-radius: 8px; white-space: nowrap; margin-left: 10px;
}
.menu-item-description { 
    font-family: var(--font-ui); font-size: 0.95rem; color: #666; 
    line-height: 1.6; margin-top: 5px; flex-grow: 1;
}
.menu-item-thumb, .video-placeholder {
    width: 100%; height: 180px; object-fit: cover; border-radius: 12px;
    margin-top: 15px; box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.menu-item-tags { margin-top: auto; padding-top: 15px; display: flex; gap: 8px; }
.tag-badge { 
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    padding: 5px 12px; border-radius: 20px; letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: none;
}
.tag-badge:nth-child(odd) { background: #e3f2fd; color: #1565c0; }
.tag-badge:contains("Veg"), .tag-badge:contains("VEG") { background: #e8f5e9 !important; color: #2e7d32 !important; }
.tag-badge:contains("GF"), .tag-badge:contains("Gluten") { background: #fff3e0 !important; color: #ef6c00 !important; }
.tag-badge:contains("Spicy") { background: #ffebee !important; color: #c62828 !important; }

/* ========================================================= */
/* === 6. RIGHT PANEL: SIDEBAR (SPLIT SCROLL) ============ */
/* ========================================================= */
#sidebar-panel {
    flex: 3; max-width: 450px; background: rgba(255, 255, 255, 0.98); 
    border-left: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column;
    overflow: hidden; box-shadow: -5px 0 30px rgba(0,0,0,0.03); z-index: 60;
}
#order-container { flex: 1; display: flex; flex-direction: column; min-height: 0; background: transparent; }
#order-container h2 { 
    background: #2c3e50; color: #fff; padding: 20px 25px; margin: 0; 
    font-family: var(--font-ui); font-size: 1.2rem; font-weight: 600;
    letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
/* Close button base style (hidden by default on desktop) */
.close-btn, #mobile-close-order-btn { display: none; }

#order-items-list { padding: 0; flex: 1; overflow-y: auto; }
#order-summary { 
    background: #f8f9fa; padding: 25px; border-top: 1px solid #e9ecef; 
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03); flex-shrink: 0; max-height: 50%; overflow-y: auto; 
}
#order-total {
    font-size: 1.5rem; font-weight: 800; color: #2c3e50;
    text-align: right; margin-top: 15px; border-top: 2px dashed #ddd; padding-top: 15px;
}
.order-item { background: #fff; border-bottom: 1px solid #f1f1f1; padding: 15px 25px; border-radius: 0; margin: 0; }
.order-item-header { font-weight: 700; font-size: 1rem; color: #333; display: flex; justify-content: space-between; }
.order-item-controls { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.tip-btn {
    background: transparent; border: 1px solid #ddd; color: #555;
    padding: 8px 16px; border-radius: 50px; font-weight: 600;
    font-family: var(--font-ui); cursor: pointer; transition: all 0.2s; min-width: 60px;
}
.tip-btn:hover { border-color: var(--accent-highlight-color, #00094B); color: var(--accent-highlight-color, #00094B); background: rgba(0, 9, 75, 0.05); }
.tip-btn.active, .tip-btn:active { background: var(--accent-highlight-color, #00094B); color: #fff; border-color: var(--accent-highlight-color, #00094B); }

/* CHAT */
#chat-container { background: #fff; flex-direction: column; min-height: 250px; flex: 1; }
#chat-header {
    background: linear-gradient(135deg, #00094B 0%, #001f7a 100%);
    color: #fff; padding: 12px 20px; font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
#chat-box { padding: 15px; background: #fcfcfc; flex: 1; overflow-y: auto; }
#chat-form { padding: 15px; background: #fff; border-top: 1px solid #eee; flex-shrink: 0; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
.chat-message {
    padding: 10px 16px; border-radius: 18px; font-size: 0.9rem;
    line-height: 1.5; max-width: 85%; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.chat-message.bot { background: #fff; border: 1px solid #e9ecef; color: #444 !important; border-bottom-left-radius: 2px; }
.chat-message.user { background: var(--accent-highlight-color, #00094B); color: #fff !important; border-bottom-right-radius: 2px; margin-left: auto; }

/* ========================================================= */
/* === 7. SEAMLESS INFINITE TICKER (Legacy/Fallback) ===== */
/* ========================================================= */
.ticker-wrapper {
  width: 100%; overflow: hidden; background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08); position: relative;
  height: 28px; padding: 0; display: flex; align-items: center;
}
.ticker-track { display: flex; width: max-content; animation: seamless-scroll 25s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.category-button {
  flex: 0 0 auto; margin: 0 15px; padding: 0 10px; background: transparent; border: none; 
  border-radius: 14px; font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  cursor: pointer; font-size: 0.85rem; line-height: 28px; color: #555; white-space: nowrap; transition: all 0.2s ease;
}
.category-button:hover { color: var(--accent-highlight-color, #00094B); background-color: rgba(0,9,75,0.05); }
@keyframes seamless-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========================================================= */
/* === 8. POLISH (Animation, Image, Buttons) ============= */
/* ========================================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.menu-item { animation: fadeInUp 0.6s ease-out backwards; }
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }

.menu-item-thumb, .video-placeholder {
    height: 200px; width: 100%; object-fit: cover; aspect-ratio: 16 / 9;
}
#pay-now-btn, #pay-at-counter-btn, #confirm-pay-btn {
    width: 100%; padding: 15px; border-radius: 12px; font-size: 1rem;
    font-weight: 700; margin-bottom: 10px; transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; border: none;
}
#pay-now-btn { background: #2e7d32; color: white; box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3); }
#pay-at-counter-btn { background: #fff; border: 2px solid #ddd; color: #555; }
#pay-now-btn:active, #pay-at-counter-btn:active { transform: scale(0.98); }

/* ========================================================= */
/* === 9. FIXED MEDIA VIEWER (Lightbox) ================= */
/* ========================================================= */
#media-viewer-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(0, 0, 0, 0.9); z-index: 9999; display: none;
    justify-content: center; align-items: center; transform: none; border-radius: 0;
}
#media-viewer-container.open { display: flex; flex-direction: column; }
#media-viewer-body {
    position: relative; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box;
}
#media-viewer-body img, #media-viewer-body video {
    max-width: 100%; max-height: 90vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); display: block;
}
#media-viewer-close { 
    position: absolute; top: 20px; right: 20px; 
    background: rgba(255, 255, 255, 0.2); color: white; width: 44px; height: 44px; 
    border-radius: 50%; text-align: center; line-height: 44px; font-size: 28px;
    cursor: pointer; z-index: 10001; backdrop-filter: blur(5px); transition: background 0.2s;
}
#media-viewer-close:hover { background: rgba(255, 0, 0, 0.8); }

/* ========================================================= */
/* === 10. FLOATING MOBILE BUTTONS (FABs) ================ */
/* ========================================================= */
/* DEFAULT: Hidden on Desktop */
.fixed-mobile-btn { display: none !important; }

/* ========================================================= */
/* === 11. MOBILE RESPONSIVENESS (FINAL FIX) ============= */
/* ========================================================= */
@media (max-width: 1024px) {
    #kiosk-body { flex-direction: column; }
    #menu-panel { padding: 15px; }
    #menu-content { grid-template-columns: 1fr !important; gap: 20px; padding-bottom: 80px; }
    
    /* --- SIDEBAR OVERLAY --- */
    #sidebar-panel {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: #f8f9fa; transform: translateY(100%); transition: transform 0.3s ease;
        z-index: 2000;
    }
    #sidebar-panel.is-open { transform: translateY(0); }
    
    .close-btn, #mobile-close-order-btn { 
        display: block !important; 
        background: none; border: none; font-size: 2rem; 
        color: #ffffff !important; 
        cursor: pointer; 
    }
    
    /* --- FIXED: FLOATING BUTTONS WITH SAFE AREA --- */
    .fixed-mobile-btn { 
        display: flex !important; 
        position: fixed; right: 20px; width: 55px; height: 55px;
        border-radius: 50%; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 1500; cursor: pointer; align-items: center; justify-content: center;
        transition: transform 0.2s; font-size: 1.2rem;
    }
    
    /* ADDED CALC() TO RESPECT GESTURE BAR */
    #mobile-order-button {
        bottom: calc(20px + env(safe-area-inset-bottom)); /* Pushes up above bar */
        background: var(--accent-highlight-color, #00094B);
        color: white; flex-direction: column; gap: 2px;
    }
    #mobile-order-total-display { font-size: 0.7rem; }
    
    #mobile-chat-button {
        bottom: calc(85px + env(safe-area-inset-bottom)); /* Pushes up above order button */
        background: #fff; color: var(--accent-highlight-color, #00094B); 
    }
    
    #toggle-order-btn { display: none; }
    
    /* --- HEADER FIX (2-Row Layout) --- */
    #main-header { 
        height: auto !important; 
        flex-direction: row !important; flex-wrap: wrap !important;
        padding: 10px 15px !important; gap: 0 !important;
    }
    .header-left { order: 1 !important; width: 50% !important; justify-content: flex-start !important; margin-bottom: 5px !important; }
    .header-right { order: 2 !important; width: 50% !important; justify-content: flex-end !important; margin-bottom: 5px !important; }
    .header-center { order: 3 !important; width: 100% !important; flex: 0 0 100% !important; margin-top: 5px !important; text-align: center !important; }
    #header-name { font-size: clamp(1rem, 4vw, 1.4rem) !important; white-space: normal !important; line-height: 1.2 !important; }
    #header-slogan { display: none !important; } 
    #header-logo { height: 40px !important; width: auto !important; } 
    
    #btn-book-table { padding: 6px 12px !important; font-size: 0.8rem !important; margin: 0 !important; }
    .ticker-wrapper { height: 35px; } .category-button { font-size: 0.9rem; padding: 0 15px; }

    /* --- FIXED: CHAT FORM PADDING --- */
    /* This was previously overriding the safe area. Now it respects it. */
    #chat-form { 
        padding-bottom: calc(30px + env(safe-area-inset-bottom)); 
    } 
}
/* FORCE HIDE BUTTONS ON DESKTOP */
@media (min-width: 1025px) {
    .fixed-mobile-btn { display: none !important; }
}

/* ========================================================= */
/* === 12. DYNAMIC MENU COMPONENTS (Ribbon & Burger) ===== */
/* ========================================================= */

/* TOP RIBBON (Added for spreading logic) */
#menu-ribbon-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    gap: 10px; 
    padding: 8px 12px; 
    background: #fff; 
    overflow-x: auto; 
    position: sticky; 
    top: 0; 
    z-index: 99; 
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.ribbon-btn {
    flex: 1; /* Causes them to share available width equally */
    max-width: 150px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
}
.ribbon-btn.active {
    background: var(--accent-btn-color, #00094B);
    color: #fff;
    border-color: var(--accent-btn-color, #00094B);
}

/* BURGER / HYBRID NAV WRAPPER */
.hybrid-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 8px;
    height: 40px;
    padding-left: 10px; /* Moves content away from the left edge */
}

/* BURGER BUTTON ICON (Matches .nav-menu-btn in JS) */
.nav-menu-btn, .burger-menu-button {
    margin-left: 5px; /* Critical margin for mobile edge clicks */
    background: white;
    border: 1px solid #ddd;
    color: #444;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 101;
    transition: background 0.2s;
}
.nav-menu-btn:hover {
    background: #f0f0f0;
    color: var(--accent-highlight-color);
    border-color: var(--accent-highlight-color);
}

/* --- NEW CONCIERGE ADDITIONS --- */
.about-btn {
    background-color: transparent;
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.about-btn:hover {
    background-color: var(--accent-dark);
    color: white;
}
#concierge-section {
    margin-top: 2rem !important; /* Pushes it to the top of the content */
}

.nearby-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.nearby-card:hover {
    opacity: 1;
    border-color: #ccc;
}

.nearby-logo {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    margin-right: 15px;
}

/* --- HEADER CENTERING --- */
.index-header {
    display: grid;
    /* Force 3 equal columns so the middle one is perfectly centered */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    padding: 0 2rem;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Logo Size Fix */
.header-brand-flex img { 
    width: 45px;      /* Corrected Size */
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer;
}

.header-brand { display: flex; justify-content: flex-start; align-items: center; width: 100%; gap: 15px; }

/* The vertical stack layout */
.header-controls-stack {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center;    /* Centers them horizontally relative to each other */
    gap: 4px;              /* Small space between button and circle */
}

/* Adjust button size to look good in the stack */
#auth-btn.ribbon-btn { padding: 4px 12px; font-size: 0.8rem; min-width: 80px; margin: 0; }

header { display: flex; flex-direction: column; align-items: center; padding: 1rem; gap: 15px; background: var(--bg-card); }
.header-brand { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; }

.header-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.header-nav-right {
    display: flex;
    justify-content: flex-end; /* Pushes button to far right */
}

/* Chat Centering Fix */
#concierge-section {
    max-width: 850px;
    margin: 2rem auto; /* Centered with a healthy top margin */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(58, 42, 29, 0.08);
}

/* Typography Consistency */
.welcome-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    line-height: 1.1;
}

.header-center-welcome {
    flex-grow: 1;
    text-align: center;
    margin-right: 140px; /* Offset to balance the logo/stack width */
}

.welcome-title {
    font-family: 'Dancing Script', cursive !important; /* Elegant Script Font */
    font-size: 2.2rem;
    color: #c88437; /* Gold accent */
    line-height: 1.1;
    display: block;
}

.welcome-sub {
    font-family: 'Playfair Display', serif !important; /* Classic Serif Font */
    font-size: 0.8rem;
    font-weight: 700;
    color: #3a2a1d; /* Dark oak */
    letter-spacing: 4px; /* Wide spacing for premium feel */
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

.welcome-sub {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3a2a1d; /* Dark oak */
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px; /* Creates the separate line effect */
}

/* Green Circle Button Fix */
.about-circle-btn {
    background-color: #2e7d32;
    width: 30px;
    height: 30px;
    font-size: 14px;
}
.about-circle-btn:hover { transform: scale(1.1); background: #1b5e20; }

/* Modal Styles */
.modal-overlay { 
    display: none; 
    position: fixed; 
    z-index: 9999; /* Higher z-index to stay on top */
    left: 0; top: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(8px); 
    align-items: center;
    justify-content: center;
}
.modal-content { background: #fdfaf5; margin: 10% auto; padding: 2.5rem; border-radius: 24px; width: 90%; max-width: 550px; position: relative; border: 1px solid var(--gold-accent); text-align: center; }
.modal-close { position: absolute; top: 15px; right: 25px; font-size: 28px; cursor: pointer; color: #888; }
.modal-body h3 { font-family: 'Dancing Script', cursive; font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 1rem; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.social-btn:hover { background: #f8f9fa; transform: translateY(-2px); }
.social-btn.google { color: #444; }
.social-btn.meta { background: #1877F2; color: white; border: none; }

/* Green Go Button */
#go-button.green-go {

    background-color: #2e7d32; /* Rich green */
    color: white;
    border: none;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    transition: background 0.2s, transform 0.1s;
}

#go-button.green-go:hover {
    background-color: #1b5e20;
    transform: scale(1.02);
}

@media (max-width: 850px) {
    header {
        flex-direction: column !important;
        padding: 5px 10px !important;
    }
    .header-brand {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 5px;
    }
    #search-filters {
        width: 100%;
        justify-content: space-between;
        padding-top: 5px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* Sidebar Tabs */
#sidebar-tabs {
    display: flex;
    background: #00094B;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.sidebar-tab {
    flex: 1;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 12px 5px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-align: center;
}

.sidebar-tab.active {
    color: white;
    border-bottom: 3px solid #f59e0b;
    background: rgba(255,255,255,0.1);
}

.sidebar-tab:hover {
    color: white;
}

.sidebar-tab.hidden {
    display: none !important;
}

.sidebar-content-pane {
    display: none !important; /* THIS HIDES THE INACTIVE TAB */
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.sidebar-content-pane.active {
    display: flex !important; /* THIS SHOWS THE ACTIVE TAB */
}
/* Notification Blinker */
@keyframes flash-notification {
    0% { background-color: #00094B; }
    50% { background-color: #d32f2f; }
    100% { background-color: #00094B; }
}

.sidebar-tab.has-notification {
    animation: flash-notification 2s infinite;
}

.chat-notification-badge {
    display: inline-block;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}