:root {
    --primary: #FF6600; /* Orange Accents */
    --primary-dark: #E65C00;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --text-main: #111827;
    --text-muted: #6B7280;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-floating: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- COMMON COMPONENTS --- */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #FFAD60);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 102, 0, 0.15); }

.btn-secondary {
    background: white;
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid #eee;
}
.btn-secondary:hover { background: #f9f9f9; border-color: #ddd; }

.btn-ghost {
    background: #f3f4f6;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-ghost:hover { background: #e5e7eb; }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* --- LANDING PAGE --- */
.nav-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    padding: 12px 24px;
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: var(--transition); opacity: 0.7; }
.nav-links a:hover { opacity: 1; }
.nav-links a.nav-cta { color: var(--primary); opacity: 1; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); opacity: 0.8; }
.hero { padding: 180px 20px 100px; text-align: center; max-width: 1000px; margin: 0 auto; }
.badge { background: rgba(255, 102, 0, 0.1); color: var(--primary); padding: 6px 16px; border-radius: 100px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 24px; }
.hero-title { font-size: 4rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-bottom: 24px; }
.hero-subtitle { color: var(--text-muted); font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; }
.hero-preview { margin-top: 80px; position: relative; }
.mockup-container { max-width: 800px; margin: 0 auto; background: #000; padding: 20px; border-radius: 40px; box-shadow: 0 50px 100px rgba(0,0,0,0.2); border: 8px solid #111; }
.mockup-img { width: 100%; border-radius: 20px; display: block; }

.features { padding: 100px 20px; text-align: center; background: #fff; }
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 40px; border-radius: var(--radius-lg); background: var(--bg-light); transition: var(--transition); }
.feature-card:hover { transform: translateY(-10px); background: #fff; box-shadow: var(--shadow-floating); }

.pricing { padding: 100px 20px; text-align: center; }
.pricing-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.price-box { background: white; padding: 40px; border-radius: var(--radius-lg); width: 350px; text-align: left; border: 1px solid #eee; transition: var(--transition); }
.price-box.featured { background: var(--bg-dark); color: white; transform: scale(1.05); border: 2px solid var(--primary); }
.price-box.featured .price { color: white; }
.tier { font-weight: 900; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.price { font-size: 3rem; font-weight: 900; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 40px; }
.price-features li { margin-bottom: 12px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 900; }

/* --- LOGIN PAGE --- */
.login-body { background: var(--bg-light); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 48px; max-width: 440px; width: 100%; text-align: center; }

/* --- PUBLIC MENU GRID --- */
.header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000; 
    padding: 16px 20px; 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.03); 
    transition: var(--transition);
}
.header.scrolled { padding: 10px 20px; box-shadow: var(--shadow-soft); }
.logo-container { width: 80px; height: 80px; background: #fff; border-radius: 50%; padding: 4px; box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: var(--transition); flex-shrink: 0; }
.header.scrolled .logo-container { width: 48px; height: 48px; }
.logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-logo { width: 140px !important; height: auto !important; object-fit: contain; }
.sidebar-logo-img { max-width: 160px; height: auto; margin-bottom: 40px; }
.login-logo { max-width: 120px; height: auto; margin-bottom: 24px; }
.restaurant-name { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; color: var(--text-main); line-height: 1.1; }
.header.scrolled .restaurant-name { font-size: 1rem; }
.category-ribbon { position: fixed; top: 112px; left: 0; width: 100%; background: var(--bg-light); z-index: 999; padding: 12px 0; overflow-x: auto; scrollbar-width: none; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
.category-ribbon.hidden { transform: translateY(-30px); opacity: 0; pointer-events: none; }
.header.scrolled ~ .category-ribbon { top: 69px; }
.category-ribbon::-webkit-scrollbar { display: none; }
.category-list { display: flex; gap: 8px; padding: 0 16px; list-style: none; white-space: nowrap; }
.category-item { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-decoration: none; padding: 8px 16px; border-radius: 20px; transition: var(--transition); position: relative; }
.category-item.active { color: var(--primary); }
.category-item.active::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: var(--primary); border-radius: 2px; }
.menu-container { margin-top: 170px; padding: 0 16px 100px; transition: margin-top 0.4s ease; }
.menu-section { scroll-margin-top: 120px; margin-bottom: 48px; }
.section-header { position: sticky; top: 110px; background: var(--bg-light); z-index: 90; padding: 16px 0 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.05); transition: top 0.4s ease; }
.category-ribbon.hidden ~ .menu-container .section-header { top: 80px; }
.section-title-label { font-size: 1.5rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.5px; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 100px; }
.menu-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,0.8); display: flex; flex-direction: column; transition: var(--transition); }
.menu-card:active { transform: scale(0.98); }
.card-image-container { position: relative; width: 100%; padding-top: 100%; background: #f3f4f6; overflow: hidden; }
.menu-img, .menu-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px 24px 0 0; }
.video-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); color: #fff; padding: 4px 10px; border-radius: 100px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 4px; z-index: 10; }
.card-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-description { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; flex-grow: 1; }
.price-tag { font-size: 0.9rem; font-weight: 900; color: var(--primary); background: rgba(255, 102, 0, 0.08); padding: 4px 10px; border-radius: 8px; width: fit-content; }

/* --- ADMIN DASHBOARD --- */
.dashboard-container { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; background: #f8fafc; }
.sidebar { background: #fff; border-right: 1px solid #f1f5f9; padding: 40px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 100; }
.dashboard-main { padding: 40px 60px; overflow-y: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); border: 1px solid #f1f5f9; transition: var(--transition); }
.stat-label { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-val { font-size: 1.75rem; font-weight: 900; color: var(--text-main); }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.nav-item { display: flex; align-items: center; padding: 14px 18px; border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; font-weight: 700; margin-bottom: 8px; transition: var(--transition); cursor: pointer; }
.nav-item.active { background: rgba(255, 102, 0, 0.08); color: var(--primary); }
.nav-item .nav-icon { margin-right: 14px; font-size: 1.25rem; }
.menu-preview-card { background: white; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: space-between; border: 1px solid #f1f5f9; transition: var(--transition); }

/* --- MODAL SYSTEM --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: #fff; width: 95%; max-width: 550px; padding: 40px; border-radius: 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.12); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-overlay.active .modal-content { transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .dashboard-container { grid-template-columns: 80px 1fr; }
    .sidebar span:not(.nav-icon), .sidebar img:not(.nav-logo) { display: none; }
    .dashboard-main { padding: 30px 20px; }
}
@media (max-width: 768px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; justify-content: space-around; padding: 12px; border-top: 1px solid #eee; z-index: 1000; }
    .nav-item { margin-bottom: 0; padding: 10px; }
    .nav-item span:not(.nav-icon) { display: none; }
    .dashboard-main { padding-bottom: 100px; }
    .hero-title { font-size: 2.75rem; }
    .nav-bar { width: 95%; top: 10px; padding: 8px 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* --- FAQ SECTION --- */
.faq { padding: 100px 20px; background: #fff; text-align: center; }
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.faq-item h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }
.faq-item p { color: var(--text-muted); line-height: 1.6; }

/* --- FOOTER REFINEMENT --- */
.footer { 
    padding: 60px 20px; 
    background: #fff; 
    border-top: 1px solid #f1f5f9; 
    text-align: center; 
}
.footer-text { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    font-weight: 600; 
}

/* --- SEO & ACCESSIBILITY --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
