:root {
    --gpt-bg: #212121;
    --gpt-sidebar: #171717;
    --gpt-input: #2f2f2f;
    --text-primary: #ececec;
    --text-secondary: #9b9b9b;
    --mc-red: #db0007;
    --mc-yellow: #ffc72c;
    --mc-dark-red: #a80005;
    --mc-green: #27ae60;
    --bg-image: none;
    --sidebar-backdrop: none;
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --gpt-bg: #f9f9f9;
    --gpt-sidebar: #ffffff;
    --gpt-input: #e0e0e0;
    --text-primary: #121212;
    --text-secondary: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="glass"] {
    --gpt-bg: transparent;
    --bg-image: linear-gradient(135deg, #8e44ad, #3498db, #e74c3c);
    --gpt-sidebar: rgba(255, 255, 255, 0.15);
    --gpt-input: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --sidebar-backdrop: blur(25px);
    --border-color: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { display: flex; flex-direction: column; background: var(--bg-image, var(--gpt-bg)); background-size: cover; color: var(--text-primary); height: 100vh; overflow: hidden; transition: background 0.3s, color 0.3s; }
.app-container { display: flex; flex: 1; overflow: hidden; }

/* Sidebars */
.sidebar {
    width: 280px;
    background-color: var(--gpt-sidebar);
    backdrop-filter: var(--sidebar-backdrop);
    -webkit-backdrop-filter: var(--sidebar-backdrop);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

/* Prevent sidebars elements from shrinking */
.new-chat-btn,
.spice-level-section,
.rewards-section,
.sidebar-footer,
.cart-title,
.currency-selector,
.delivery-toggle,
.discount-section,
.minigames-section,
.tip-section,
.cart-summary,
.checkout-btn {
    flex-shrink: 0;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    min-height: 100px;
}

.new-chat-btn {
    background-color: var(--mc-yellow);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.new-chat-btn:hover { background-color: #e6b327; }

/* User Profile & VIP */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    transition: all 0.5s;
}
.user-profile img { width: 32px; height: 32px; border-radius: 50%; background: white; transition: all 0.5s; }
.user-profile.vip { color: var(--mc-yellow); text-shadow: 0 0 10px rgba(255,199,44,0.5); }
.user-profile.vip img { border: 2px solid var(--mc-yellow); box-shadow: 0 0 10px var(--mc-yellow); }

/* Right Sidebar Cart */
.cart-title { color: var(--mc-yellow); margin-bottom: 1rem; text-align: center; }

.delivery-toggle {
    display: flex; background: var(--gpt-input); border-radius: 8px; overflow: hidden; margin-bottom: 1rem;
}
.toggle-btn {
    flex: 1; padding: 0.5rem; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font-weight: 600;
}
.toggle-btn.active { background: var(--mc-red); color: white; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
}
.empty-cart { text-align: center; color: var(--text-secondary); margin-top: 2rem; font-size: 0.9rem; }

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.cart-item {
    background: var(--gpt-input); padding: 0.8rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--mc-yellow);
    animation: popIn 0.2s ease-out forwards;
}
.item-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.item-info p { font-size: 0.8rem; color: var(--mc-yellow); font-weight: bold; }
.remove-btn { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; }
.remove-btn:hover { color: var(--mc-red); }

/* Tipping & Discounts */
.discount-section { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.discount-section input { flex: 1; padding: 0.5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: var(--gpt-input); color: white; outline:none; }
.discount-section button { padding: 0.5rem 1rem; border-radius: 6px; border: none; background: var(--text-secondary); color: #000; font-weight:bold; cursor: pointer; }
.discount-section button:hover { background: white; }
.discount-message { font-size: 0.8rem; color: var(--mc-green); margin-bottom: 0.5rem; text-align: center; min-height: 15px;}

.roulette-btn {
    width: 100%; background: linear-gradient(45deg, #8e44ad, #9b59b6); color: white; border: none; padding: 0.5rem; border-radius: 6px; font-weight: 800; cursor: pointer; margin-bottom: 0.5rem; transition: transform 0.2s, background 0.2s;
}
.roulette-btn:hover { transform: scale(1.02); background: linear-gradient(45deg, #9b59b6, #8e44ad); }

.tip-section { background: var(--gpt-input); padding: 0.5rem; border-radius: 8px; margin-bottom: 0.5rem; }
.tip-section p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; text-align: center;}
.tip-buttons { display: flex; gap: 0.5rem; }
.tip-btn { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 0.4rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.tip-btn.active { background: var(--mc-green); border-color: var(--mc-green); font-weight: bold; }

.cart-summary { background: var(--gpt-input); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.summary-line.total { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 0.5rem; font-size: 1.2rem; color: var(--mc-yellow); font-weight: 800; margin-bottom: 0; }

.checkout-btn {
    background: var(--mc-red); color: white; padding: 1rem; border: none; border-radius: 8px; font-weight: 800; font-size: 1.1rem; cursor: pointer; text-transform: uppercase; transition: transform 0.1s, background 0.2s;
}
.checkout-btn:hover:not(:disabled) { background: var(--mc-dark-red); transform: scale(1.02); }
.checkout-btn:disabled { background: #555; color: #888; cursor: not-allowed; }

/* Main Area */
.chat-area { flex: 1; display: flex; flex-direction: column; position: relative; }
.chat-container { flex: 1; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; align-items: center; }

/* Menu Screen */
.welcome-screen { max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; flex: 1; margin-top: 1rem; }
.brand-logo img { width: 80px; height: 80px; border-radius: 20px; border: 3px solid var(--mc-yellow); box-shadow: 0 0 20px rgba(219, 0, 7, 0.5); margin-bottom: 0.5rem; }
.welcome-screen h1 { font-size: 2.5rem; color: var(--mc-yellow); text-transform: uppercase; letter-spacing: 2px; }
.slogan { color: var(--mc-red); font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; text-transform: italic; }

.halal-badge {
    background: #27ae60; color: white; padding: 0.4rem 1rem; border-radius: 20px; font-weight: 800; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4); border: 2px solid #fff; text-transform: uppercase; letter-spacing: 1px;
}

.menu-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; width: 100%; max-height: 400px; overflow-y: auto; padding-right: 0.5rem;
}
.menu-grid::-webkit-scrollbar { width: 8px; }
.menu-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.menu-grid::-webkit-scrollbar-thumb { background: var(--mc-red); border-radius: 4px; }

.menu-card {
    background-color: var(--gpt-input); border: 2px solid transparent; padding: 1.5rem; border-radius: 12px; text-align: left; cursor: pointer; transition: all 0.2s; color: var(--text-primary); position: relative; display: flex; flex-direction: column;
}
.menu-card:hover { border-color: var(--mc-red); background-color: rgba(219, 0, 7, 0.1); transform: translateY(-2px); }
.menu-card.custom-item { border-color: #9b59b6; background-color: rgba(155, 89, 182, 0.1); }
.menu-card.secret-item { border-color: #f1c40f; background: linear-gradient(45deg, #f1c40f, #e67e22); color: #000; box-shadow: 0 0 15px #f1c40f; }
.menu-card.secret-item h3 { color: #000; }
.menu-card h3 { color: var(--mc-yellow); margin-bottom: 0.5rem; font-size: 1.1rem; }
.menu-card p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.4; margin-bottom: 1rem; }
.menu-card.secret-item p { color: #333; }
.menu-card .price { font-weight: 800; color: white; font-size: 1rem; margin-top: auto; margin-bottom: 0; }
.menu-card.secret-item .price { color: #000; }
.add-btn { position: absolute; right: 1rem; bottom: 1rem; background: var(--mc-red); color: white; padding: 0.4rem 0.8rem; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }

/* Messages */
.messages { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem; }
.message-row { display: flex; gap: 1rem; }
.avatar { width: 30px; height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.avatar.user { background: #555; color: white; }
.avatar.ai { background: var(--mc-red); color: var(--mc-yellow); border: 2px solid var(--mc-yellow); }
.message-content { flex: 1; line-height: 1.6; }

.receipt-card {
    background: #fff; color: #000; padding: 1.5rem; border-radius: 8px; font-family: monospace; border-top: 8px solid var(--mc-yellow); border-bottom: 8px solid var(--mc-red); width: 100%; max-width: 400px; margin-top: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.receipt-card h3 { text-align: center; text-transform: uppercase; margin-bottom: 1rem; }
.receipt-line { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.receipt-card hr { border: none; border-top: 1px dashed #ccc; margin: 1rem 0; }

/* Input Area */
.input-area { padding: 1rem 2rem; max-width: 800px; width: 100%; margin: 0 auto; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input { width: 100%; padding: 1rem 3rem 1rem 1.5rem; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.2); background-color: var(--gpt-input); color: white; font-size: 1rem; outline: none; }
.input-wrapper input:focus { border-color: var(--mc-yellow); }
.send-btn { position: absolute; right: 10px; background: var(--mc-red); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Modal & Game */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.mc-modal { background: var(--mc-red); border: 4px solid var(--mc-yellow); padding: 2rem; border-radius: 20px; text-align: center; color: white; }
.mcd-title { color: var(--mc-yellow); margin-bottom: 1rem; font-size: 2rem; }
canvas { background: #fff; border-radius: 8px; margin: 1rem 0; border: 4px solid #000; }
.game-stats { font-weight: bold; font-size: 1.1rem; }
#gameDiscount { color: #27ae60; }

/* ==========================================================================
   New Features CSS: Top Navbar, Image Carousel, Interactive Chart, Slides
   ========================================================================== */

/* Top Navbar */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gpt-sidebar);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--sidebar-backdrop);
    -webkit-backdrop-filter: var(--sidebar-backdrop);
    z-index: 1000;
    flex-shrink: 0;
}
.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mc-yellow);
    text-shadow: 0 0 10px rgba(255,199,44,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-links {
    display: flex;
    gap: 1rem;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: white;
    background-color: var(--mc-red);
    border-color: rgba(255,255,255,0.1);
}
.nav-external {
    display: flex;
    gap: 0.6rem;
}
.ext-link {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: var(--gpt-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}
.ext-link:hover {
    background: var(--mc-yellow);
    color: #000;
    border-color: var(--mc-yellow);
    transform: translateY(-1px);
}

/* General Layout helpers */
.main-content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.page-header-banner {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, var(--mc-red), var(--mc-dark-red));
    border: 3px solid var(--mc-yellow);
    box-shadow: 0 4px 15px rgba(219, 0, 7, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: bannerFadeIn 0.8s ease-out;
}
@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-header-banner h1 {
    font-size: 2.2rem;
    color: var(--mc-yellow);
    margin-bottom: 0.5rem;
    font-style: italic;
    text-transform: uppercase;
}
.page-header-banner p {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Image Carousel Component */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.carousel-slides {
    display: flex;
    width: 300%; /* for 3 slides */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
}
.carousel-slide h3 {
    font-size: 1.5rem;
    color: var(--mc-yellow);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.carousel-slide p {
    font-size: 0.95rem;
    max-width: 80%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    z-index: 10;
}
.carousel-btn:hover {
    background: var(--mc-yellow);
    color: #000;
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dot.active {
    background: var(--mc-yellow);
    transform: scale(1.2);
}

/* Interactive SVG/CSS Chart */
.chart-container {
    width: 100%;
    max-width: 600px;
    background: var(--gpt-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.chart-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.chart-title-bar h3 {
    font-size: 1.1rem;
    color: var(--mc-yellow);
}
.chart-stats-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.chart-visual-area {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    cursor: pointer;
}
.chart-bar-actual {
    width: 100%;
    background: linear-gradient(to top, var(--mc-dark-red), var(--mc-yellow));
    border-radius: 6px 6px 0 0;
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
    min-height: 5px;
    position: relative;
}
.chart-bar-col:hover .chart-bar-actual {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(255,199,44,0.4);
}
.chart-bar-val {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0,0,0,0.8);
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}
.chart-bar-col:hover .chart-bar-val {
    opacity: 1;
}
.chart-bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-align: center;
}

/* Interactive Slides Component */
.slides-container {
    width: 100%;
    max-width: 700px;
    background: var(--gpt-input);
    border: 2px solid var(--mc-yellow);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.slides-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}
.slides-header h3 {
    color: var(--mc-yellow);
    font-size: 1.2rem;
}
.slides-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: bold;
}
.slides-viewport {
    min-height: 250px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}
.presentation-slide {
    display: none;
    animation: slideFade 0.4s ease-in-out forwards;
}
.presentation-slide.active {
    display: block;
}
@keyframes slideFade {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.presentation-slide h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.presentation-slide p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.slides-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.slides-nav-btn {
    flex: 1;
    background: var(--mc-red);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.slides-nav-btn:hover:not(:disabled) {
    background: var(--mc-dark-red);
}
.slides-nav-btn:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
}

/* Wireframe Mockup Visual */
.wireframe-grid {
    display: grid;
    grid-template-rows: 30px 1fr 30px;
    grid-template-columns: 80px 1fr 80px;
    gap: 4px;
    background: #111;
    padding: 6px;
    border-radius: 8px;
    border: 1px dashed var(--mc-yellow);
    height: 160px;
    margin-top: 1rem;
}
.wf-box {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: bold;
    text-align: center;
}
.wf-header { grid-column: 1 / span 3; }
.wf-sidebar-left { grid-row: 2; grid-column: 1; }
.wf-main { grid-row: 2; grid-column: 2; }
.wf-sidebar-right { grid-row: 2; grid-column: 3; }
.wf-footer { grid-column: 1 / span 3; }

/* Legal and Mood Board details */
.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}
.moodboard-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}
.moodboard-card h4 {
    color: var(--mc-yellow);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}
.color-swatch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.color-swatch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.legal-section-block {
    width: 100%;
    max-width: 800px;
    background: var(--gpt-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.legal-section-block h3 {
    color: var(--mc-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--mc-red);
    padding-bottom: 0.5rem;
}
.legal-section-block h4 {
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}
.legal-section-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.legal-section-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}
.legal-section-block li {
    margin-bottom: 0.4rem;
}
.legal-badge-inline {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid var(--mc-green);
    color: #2ecc71;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.5rem;
    text-transform: uppercase;
}
.legal-badge-inline.warning {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Float Cart status widget for Milo/Legal pages */
.float-cart-widget {
    background: var(--gpt-sidebar);
    border: 2px solid var(--mc-yellow);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.float-cart-widget span {
    font-weight: bold;
    font-size: 0.85rem;
}
.float-cart-widget button {
    background: var(--mc-red);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
}
.float-cart-widget button:hover {
    background: var(--mc-dark-red);
}

/* Milo's Full Menu styles */
.milos-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.milos-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(211, 84, 0, 0.1));
    border: 2px solid #d35400;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.milos-card:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}
.milos-card h3 {
    color: #f39c12;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.milos-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.milos-card .price {
    font-weight: 800;
    color: white;
    font-size: 1rem;
    margin-top: auto;
}
.milos-add-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: #d35400;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.milos-add-btn:hover {
    background: #e67e22;
}
@ k e y f r a m e s   p u l s e T y p i n g   {   0 %   {   o p a c i t y :   0 . 4 ;   }   5 0 %   {   o p a c i t y :   1 ;   }   1 0 0 %   {   o p a c i t y :   0 . 4 ;   }   }   . t y p i n g - t e x t   {   f o n t - s t y l e :   i t a l i c ;   c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ;   a n i m a t i o n :   p u l s e T y p i n g   1 . 5 s   i n f i n i t e ;   }  
 