@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- CMTC Tech Solution Design System Core --- */
:root {
    --primary-color: #0c1524;       /* Private Deep Slate Blue */
    --secondary-color: #ff5a00;     /* Vibrant Orange */
    --accent-color: #ffc000;        /* Glowing Gold Accent */
    --bg-light: #F4F6F9;            
    --table-header-bg: #0c1524;
    --table-stripe: #F9FBFC;
    --border-color: #CCD6E0;        /* Official Document Border */
    --text-primary: #1A2530;        /* High Contrast Charcoal */
    --text-secondary: #5A6A80;
    --success-color: #1E7E34;       /* Official Green */
    --warning-color: #D39E00;       /* Official Amber */
    --danger-color: #BD2130;        /* Official Red */
    --info-color: #117A8B;          /* Official Teal */
    --font-official: 'Sarabun', 'Inter', sans-serif;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-official);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* --- Layout Structure --- */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation (Government-style Sidebar) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    border-right: 4px solid var(--accent-color);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.sidebar-subtitle {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    border-left-color: var(--accent-color);
}

.sidebar-menu li a svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-footer {
    padding: 15px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from breaking layout */
}

/* Government Institutional Banner */
.gov-banner {
    background-color: #FFFFFF;
    border-bottom: 3px double var(--border-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-banner-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gov-title-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.gov-title-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.system-badge {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid var(--primary-color);
}

/* Page Inner Container */
.page-container {
    padding: 25px;
    flex-grow: 1;
}

/* --- UI Elements & Grid Layouts --- */
.page-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
}

/* Formal Statistics Bar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 0;
}

.stat-card.pending { border-left-color: var(--warning-color); }
.stat-card.preparing { border-left-color: var(--secondary-color); }
.stat-card.served { border-left-color: var(--success-color); }
.stat-card.cancelled { border-left-color: var(--danger-color); }

.stat-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

/* --- Formal Table Styles (Crucial for Government Theme) --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    margin-bottom: 20px;
}

.table-official {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table-official th {
    background-color: var(--table-header-bg);
    color: #FFFFFF;
    font-weight: 600;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 13px;
}

.table-official td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table-official tr:nth-child(even) {
    background-color: var(--table-stripe);
}

.table-official tr:hover {
    background-color: #EBF2F7;
}

/* --- Badges for Orders & Statuses --- */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-radius: 3px;
    border: 1px solid transparent;
}

.badge-pending {
    background-color: #FFF3CD;
    color: #856404;
    border-color: #FFEEBA;
}

.badge-preparing {
    background-color: #D1ECF1;
    color: #0C5460;
    border-color: #BEE5EB;
}

.badge-served {
    background-color: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.badge-completed {
    background-color: #CEECE5;
    color: #005F4B;
    border-color: #A9DFD1;
}

.badge-cancelled {
    background-color: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

.badge-available {
    background-color: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.badge-out_of_stock {
    background-color: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

/* --- Form Designs --- */
.form-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 25px;
}

.form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-primary);
}

.form-label span {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-official);
    font-size: 14px;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-primary);
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-family: var(--font-official);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002244;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #005580;
}

.btn-success {
    background-color: var(--success-color);
    color: #FFFFFF;
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #176128;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #FFFFFF;
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #9c1a27;
}

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

/* --- Customer Menu UI (For menu.php) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.menu-card-header {
    background-color: #F8FAFC;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.menu-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-price {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Order Cart Sidebar or Floating Box (Formal style) */
.cart-card {
    background-color: #FFFFFF;
    border: 2px solid var(--primary-color);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.cart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.cart-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.cart-total {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 2px double var(--border-color);
}

/* --- Notifications / Alerts --- */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

/* --- Navigation / Responsive Burger Icon --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 4px solid var(--accent-color);
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    .sidebar-menu li {
        flex: 1 0 auto;
    }
    
    .sidebar-menu li a {
        padding: 10px 15px;
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-menu li a:hover,
    .sidebar-menu li.active a {
        border-left-color: transparent;
        border-bottom-color: var(--accent-color);
    }
    
    .sidebar-header {
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .sidebar-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-menu li a {
        justify-content: flex-start;
        border-bottom: none;
        border-left: 4px solid transparent;
    }
    
    .sidebar-menu li a:hover,
    .sidebar-menu li.active a {
        border-left-color: var(--accent-color);
    }
    
    .gov-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .page-container {
        padding: 15px;
    }
}

/* --- Enterprise UI/UX Layout Enhancements --- */

/* Fixed Global Navbar */
.global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    flex-wrap: nowrap;
    overflow: hidden;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-logo {
    width: 35px;
    height: 35px;
    fill: #FFFFFF;
    flex-shrink: 0;
}

.navbar-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Button & Hierarchy Improvements */
.btn {
    border-radius: 4px; /* Slightly rounded for modern friendly feel */
    padding: 12px 24px; /* Larger click areas for mobile friendly access */
    font-size: 14.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn:active {
    transform: scale(0.98);
}

/* Ghost Button (Transparent background, primary border) */
.btn-ghost {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-ghost:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* Navbar specific white ghost button */
.btn-navbar-ghost {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: none;
}

.btn-navbar-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* Breadcrumbs Link Path */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding: 8px 12px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-secondary);
}

/* Footer layout */
.global-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    font-size: 13.5px;
    margin-top: auto;
    width: 100%;
}

.footer-brand {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12.5px;
}

/* Adjustment to body/wrapper to account for fixed navbar height */
body {
    padding-top: 60px; /* Offset for fixed header navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .global-navbar {
        padding: 0 15px;
    }
    .navbar-title {
        font-size: 14px;
    }
    .btn-navbar-ghost {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* --- Landing Page Premium Theme & Layouts (Scoped under .landing-page) --- */
:root {
    /* Landing Page Variables (Default Dark Mode) */
    --lp-bg-base: #060b13;
    --lp-bg-surface: #0a101b;
    --lp-bg-card: rgba(13, 22, 37, 0.7);
    --lp-text-primary: #FFFFFF;
    --lp-text-secondary: #97A9C0;
    --lp-text-muted: #586B84;
    --lp-border-glass: rgba(255, 255, 255, 0.06);
    --lp-border-glow: rgba(255, 90, 0, 0.25);
    --lp-accent-orange: #FF5A00;
    --lp-accent-gold: #CC9933;
}

body.landing-page {
    font-family: var(--font-official);
    background-color: var(--lp-bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 90, 0, 0.05) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(204, 153, 51, 0.05) 0px, transparent 45%);
    background-attachment: fixed;
    color: var(--lp-text-primary);
    padding-top: 70px;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.landing-page.light-theme {
    --lp-bg-base: #f0f4f8;
    --lp-bg-surface: #ffffff;
    --lp-bg-card: rgba(255, 255, 255, 0.85);
    --lp-text-primary: #1e293b;
    --lp-text-secondary: #475569;
    --lp-text-muted: #64748b;
    --lp-border-glass: rgba(0, 0, 0, 0.08);
    --lp-border-glow: rgba(0, 51, 102, 0.15);
    background-color: var(--lp-bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 90, 0, 0.04) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(204, 153, 51, 0.04) 0px, transparent 45%);
    color: var(--lp-text-primary);
}

/* Typography helper inside landing page */
.landing-page .glow-text-orange {
    background: linear-gradient(135deg, var(--lp-text-primary) 40%, #FF5A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-page .glow-text-gold {
    background: linear-gradient(135deg, #FFE89C 0%, #CC9933 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LP Navbar */
.lp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 11, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lp-border-glass);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    height: 70px;
}

body.light-theme .lp-navbar {
    background: rgba(240, 244, 248, 0.85);
    border-bottom-color: rgba(0,0,0,0.08);
}

.lp-navbar.scrolled {
    background: rgba(6, 11, 19, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.light-theme .lp-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.lp-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--lp-text-primary);
}

.lp-brand-logo {
    width: 38px;
    height: 38px;
    fill: #FF5A00;
}

.lp-brand-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lp-brand-text span {
    color: #FF5A00;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Hide desktop menu on iPad and Mobile (max-width: 1280px) */
@media (max-width: 1280px) {
    .lp-nav-links {
        display: none !important;
    }
}

.lp-nav-link {
    color: var(--lp-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lp-nav-link:hover {
    color: #FF5A00;
}

/* Theme Toggle Button */
.lp-theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--lp-border-glass);
    color: var(--lp-text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.light-theme .lp-theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
}

.lp-theme-toggle-btn:hover {
    background: rgba(255, 90, 0, 0.1);
    border-color: #FF5A00;
}

/* Hamburger Toggle Button for iPad & Mobile */
.lp-hamburger-btn {
    background: transparent;
    border: none;
    color: var(--lp-text-primary);
    font-size: 28px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1280px) {
    .lp-hamburger-btn {
        display: flex !important;
    }
}

/* Mobile Slide-out Drawer Menu */
.lp-mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--lp-bg-surface);
    border-left: 1px solid var(--lp-border-glass);
    z-index: 1050;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.lp-mobile-drawer.open {
    right: 0;
}

.lp-mobile-drawer .lp-nav-link {
    font-size: 16px;
    border-bottom: 1px solid var(--lp-border-glass);
    padding-bottom: 8px;
}

/* Sticky Bottom Navigation for Mobile (max-width: 768px) */
.lp-sticky-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(6, 11, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1999;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    padding: 0 10px;
}

body.light-theme .lp-sticky-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .lp-sticky-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 60px !important;
    }
    body.landing-page {
        padding-bottom: 60px !important;
    }
}

.lp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--lp-text-secondary, #97A9C0);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    height: 100%;
    width: 33.33%;
    transition: all 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
}

body:not(.landing-page) .lp-bottom-nav-item {
    color: var(--text-secondary);
}

.lp-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.15s ease;
}

.lp-bottom-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .lp-bottom-nav-item:active {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.landing-page) .lp-bottom-nav-item:active {
    background: rgba(0, 51, 102, 0.05);
}

.lp-bottom-nav-item:active svg {
    transform: scale(0.85);
}

.lp-bottom-nav-item:hover, .lp-bottom-nav-item.active {
    color: #FF5A00;
}

body:not(.landing-page) .lp-bottom-nav-item:hover,
body:not(.landing-page) .lp-bottom-nav-item.active {
    color: var(--primary-color);
}

/* Quick Menu Bottom Sheet Styles */
.lp-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    pointer-events: none;
}

.lp-bottom-sheet.open {
    display: block;
    pointer-events: auto;
}

.lp-bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lp-bottom-sheet.open .lp-bottom-sheet-backdrop {
    opacity: 1;
}

.lp-bottom-sheet-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--lp-bg-surface, #0a101b);
    border-top: 2px solid rgba(255, 90, 0, 0.2);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 25px 20px 40px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .lp-bottom-sheet-content {
    background: #ffffff;
    border-top-color: rgba(0, 51, 102, 0.2);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.06);
}

body:not(.landing-page) .lp-bottom-sheet-content {
    background: #ffffff;
    border-top-color: var(--primary-color);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
}

.lp-bottom-sheet.open .lp-bottom-sheet-content {
    bottom: 0;
}

.lp-bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

body.light-theme .lp-bottom-sheet-header,
body:not(.landing-page) .lp-bottom-sheet-header {
    border-bottom-color: rgba(0,0,0,0.08);
}

.lp-bottom-sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--lp-text-primary, #ffffff);
}

body:not(.landing-page) .lp-bottom-sheet-title {
    color: var(--primary-color);
}

.lp-bottom-sheet-close {
    background: transparent;
    border: none;
    color: var(--lp-text-secondary, #97A9C0);
    font-size: 24px;
    cursor: pointer;
}

body:not(.landing-page) .lp-bottom-sheet-close {
    color: var(--text-secondary);
}

.lp-bottom-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.lp-bottom-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--lp-text-secondary, #97A9C0);
    gap: 8px;
    padding: 10px 5px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

body:not(.landing-page) .lp-bottom-sheet-item {
    color: var(--text-secondary);
}

.lp-bottom-sheet-item:hover, .lp-bottom-sheet-item:active {
    background: rgba(255, 90, 0, 0.1);
    color: #FF5A00;
}

body:not(.landing-page) .lp-bottom-sheet-item:hover,
body:not(.landing-page) .lp-bottom-sheet-item:active {
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary-color);
}

.lp-bottom-sheet-icon {
    font-size: 24px;
}

.lp-bottom-sheet-label {
    font-size: 11px;
    font-weight: 700;
}

/* Sections & Layout */
.lp-section {
    padding: 80px 25px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lp-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    .lp-hero-wrapper {
        grid-template-columns: 1.2fr 1fr;
    }
}

.lp-hero-content h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .lp-hero-content h1 {
        font-size: 48px;
    }
}

.lp-hero-content p {
    font-size: 15.5px;
    color: var(--lp-text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.lp-hero-cta-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Showcase Screen Frame */
.lp-showcase-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-phone-mockup-wrapper {
    position: relative;
    width: 270px;
    height: 520px;
    background: #010204;
    border: 9px solid #1a202c;
    border-radius: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.8),
        0 0 40px rgba(255, 90, 0, 0.15);
    overflow: hidden;
    z-index: 2;
}

.lp-phone-camera-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background: #1a202c;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.lp-phone-screen-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 25px 15px 15px;
    background: #060b13;
    scrollbar-width: none;
}

.lp-phone-screen-content::-webkit-scrollbar {
    display: none;
}

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

.lp-section-header h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.lp-section-header p {
    font-size: 15px;
    color: var(--lp-text-secondary);
}

/* Features Grid */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lp-feature-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.lp-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--lp-border-glow);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15);
}

.lp-feature-icon-box {
    width: 55px;
    height: 55px;
    background: rgba(0, 51, 102, 0.1);
    border: 1px solid rgba(0, 51, 102, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.lp-feature-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.lp-feature-card p {
    font-size: 13.5px;
    color: var(--lp-text-secondary);
}

/* How It Works Steps */
.lp-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.lp-step-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.lp-step-card:hover {
    border-color: #FF5A00;
}

.lp-step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 90, 0, 0.15);
    position: absolute;
    top: 20px;
    right: 30px;
}

.lp-step-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    margin-top: 10px;
}

.lp-step-card p {
    font-size: 13.5px;
    color: var(--lp-text-secondary);
}

/* Benefits cards */
.lp-benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lp-benefit-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lp-benefit-icon {
    background: rgba(17, 122, 139, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(17, 122, 139, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-benefit-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.lp-benefit-card p {
    font-size: 13px;
    color: var(--lp-text-secondary);
}

/* FAQ Accordion */
.lp-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lp-faq-item {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lp-faq-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

.lp-faq-icon {
    font-size: 18px;
    color: #FF5A00;
    transition: transform 0.3s ease;
}

.lp-faq-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 13.5px;
    color: var(--lp-text-secondary);
}

.lp-faq-item.open {
    border-color: rgba(255, 90, 0, 0.25);
}

.lp-faq-item.open .lp-faq-body {
    padding: 20px 25px;
    max-height: 200px;
    border-top: 1px solid var(--lp-border-glass);
}

.lp-faq-item.open .lp-faq-icon {
    transform: rotate(45deg);
}

/* Pricing Grid */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lp-pricing-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.lp-pricing-card.premium-tag {
    border-color: #FF5A00;
    background: linear-gradient(180deg, rgba(255, 90, 0, 0.04) 0%, rgba(13, 22, 37, 0.7) 100%);
}

body.light-theme .lp-pricing-card.premium-tag {
    background: linear-gradient(180deg, rgba(255, 90, 0, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.lp-pricing-card:hover {
    transform: translateY(-5px);
}

.lp-pricing-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 90, 0, 0.1);
    color: #FF5A00;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 0, 0.2);
}

.lp-pricing-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.lp-pricing-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--lp-text-primary);
    margin-bottom: 25px;
}

.lp-pricing-price span {
    font-size: 14px;
    color: var(--lp-text-secondary);
    font-weight: 500;
}

.lp-pricing-features-list {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.lp-pricing-features-list li {
    font-size: 13.5px;
    color: var(--lp-text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-pricing-features-list li svg {
    color: #FF5A00;
    flex-shrink: 0;
}

/* Demo Simulator Panel */
.lp-demo-container {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-glass);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .lp-demo-container {
        grid-template-columns: 1.1fr 1fr;
    }
}

.lp-demo-left h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.lp-demo-left p {
    font-size: 14px;
    color: var(--lp-text-secondary);
    margin-bottom: 25px;
}

.lp-demo-selectors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.lp-demo-btn-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lp-border-glass);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-theme .lp-demo-btn-table {
    background: rgba(0, 0, 0, 0.02);
}

.lp-demo-btn-table:hover, .lp-demo-btn-table.active {
    background: #FF5A00;
    border-color: #FF5A00;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.lp-demo-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lp-demo-qr-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    width: 220px;
    height: 220px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Modal Popup Contact */
.lp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 9, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-modal-backdrop.open {
    display: flex;
}

.lp-contact-modal-card {
    background: var(--lp-bg-surface);
    border: 1px solid rgba(255, 90, 0, 0.25);
    box-shadow: 0 20px 50px rgba(255, 90, 0, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 35px;
    position: relative;
}

.lp-modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--lp-text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* LP specific Mock Screen styles in hero */
.lp-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lp-mock-shop-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}

.lp-mock-table-badge {
    background: rgba(255, 90, 0, 0.15);
    color: #FF5A00;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.lp-mock-menu-category {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.lp-mock-cat-tab {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--lp-border-glass);
    border-radius: 20px;
    color: var(--lp-text-secondary);
}

.lp-mock-cat-tab.active {
    background: #FF5A00;
    color: #FFFFFF;
    border-color: #FF5A00;
}

.lp-mock-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lp-mock-menu-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lp-border-glass);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-mock-item-thumb {
    width: 32px;
    height: 32px;
    background: rgba(255, 90, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF5A00;
}

.lp-mock-item-details {
    flex-grow: 1;
}

.lp-mock-item-name {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
}

.lp-mock-item-price {
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 700;
}

.lp-mock-item-add {
    background: #FF5A00;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    cursor: pointer;
    font-weight: 700;
}

/* Subscription Detail Modal Styles */
.lp-sub-modal-card {
    background: var(--lp-bg-surface, #0d1625);
    border: 1px solid var(--lp-border-glass, rgba(255,255,255,0.08));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border-radius: 28px;
    width: 100%;
    max-width: 550px;
    padding: 35px 30px;
    position: relative;
    animation: lpModalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

body.light-theme .lp-sub-modal-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

@keyframes lpModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lp-sub-modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--lp-border-glass, rgba(255,255,255,0.08));
    padding-bottom: 20px;
}

body.light-theme .lp-sub-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.lp-sub-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    border: 1px solid currentColor;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

#subModalTitle {
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-text-primary, #ffffff);
}

body.light-theme #subModalTitle {
    color: #0f172a;
}

.lp-sub-modal-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--lp-accent-orange, #FF5A00);
}

.lp-sub-list-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lp-sub-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-sub-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    line-height: 1.5;
}

.lp-sub-features-list.included span {
    color: var(--lp-text-primary, #ffffff);
}

body.light-theme .lp-sub-features-list.included span {
    color: #1e293b;
}

.lp-sub-features-list.locked span {
    color: var(--lp-text-secondary, #97A9C0);
}

body.light-theme .lp-sub-features-list.locked span {
    color: #64748b;
}

/* ==========================================
   CENTRAL QUEUE TV DISPLAY & LIVE ORDER UX
   ========================================== */

/* Fullscreen Queue TV Layout */
.qtv-body {
    background: #060b13;
    color: #f8fafc;
    font-family: 'Sarabun', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.light-theme.qtv-body {
    background: #f1f5f9;
    color: #0f172a;
}

.qtv-header {
    background: rgba(10, 17, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.light-theme .qtv-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qtv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qtv-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff5a00, #ffc000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qtv-clock {
    font-size: 22px;
    font-weight: 800;
    color: #ff9f00;
    font-family: monospace;
}

body.light-theme .qtv-clock {
    color: #ff5a00;
}

.qtv-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 25px;
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .qtv-container {
        grid-template-columns: 1fr;
    }
}

.qtv-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-theme .qtv-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.qtv-panel-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

body.light-theme .qtv-panel-title {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.qtv-badge-counter {
    background: #ff5a00;
    color: #ffffff;
    border-radius: 30px;
    padding: 4px 15px;
    font-size: 16px;
    font-weight: 700;
}

.qtv-pending-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    overflow-y: auto;
    max-height: 70vh;
}

.qtv-pending-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    animation: qtv-pulse-pending 2s infinite alternate;
}

body.light-theme .qtv-pending-card {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

@keyframes qtv-pulse-pending {
    from {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }
    to {
        border-color: rgba(255, 160, 0, 0.4);
        box-shadow: 0 0 10px rgba(255, 160, 0, 0.1);
    }
}

.qtv-pending-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffc000;
}

.qtv-pending-table {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 5px;
}

body.light-theme .qtv-pending-table {
    color: #64748b;
}

.qtv-ready-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.qtv-ready-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    animation: qtv-pulse-ready 1.5s infinite alternate;
}

@keyframes qtv-pulse-ready {
    from {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    }
    to {
        transform: scale(1.02);
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
    }
}

.qtv-ready-number {
    font-size: 72px;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    line-height: 1;
    margin-bottom: 10px;
}

.qtv-ready-table {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    background: #10b981;
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    margin-top: 5px;
}

body.light-theme .qtv-ready-table {
    color: #ffffff;
}

/* Sound Interaction Prompt Overlay */
.qtv-audio-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 11, 19, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.qtv-audio-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

/* Giant Fullscreen Call Modal */
.qtv-announce-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 11, 19, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.qtv-announce-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qtv-announce-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(15, 23, 42, 0.9));
    border: 4px solid #10b981;
    border-radius: 30px;
    padding: 60px 80px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 100px rgba(16, 185, 129, 0.4);
}

.qtv-announce-overlay.active .qtv-announce-card {
    transform: scale(1);
}

.qtv-announce-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: qtv-ring 0.5s infinite alternate;
}

@keyframes qtv-ring {
    from { transform: rotate(-10deg); }
    to { transform: rotate(10deg); }
}

.qtv-announce-title {
    font-size: 38px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.qtv-announce-number {
    font-size: 150px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.qtv-announce-table {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    background: #10b981;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Order Submission Spinner Loading Overlay */
.order-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 28, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.order-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 90, 0, 0.1);
    border-top-color: #ff5a00;
    border-radius: 50%;
    animation: order-spin 1s infinite linear;
    margin-bottom: 20px;
}

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

/* Live Order Tracker Box */
.client-tracking-container {
    background: rgba(255, 90, 0, 0.05);
    border: 1.5px solid rgba(255, 90, 0, 0.2);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 25px;
    animation: tracking-glow 2s infinite alternate;
}

@keyframes tracking-glow {
    from {
        box-shadow: 0 0 10px rgba(255, 90, 0, 0.05);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 90, 0, 0.15);
        border-color: rgba(255, 90, 0, 0.35);
    }
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tracking-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-accent-gold, #ffc000);
}

.tracking-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tracking-badge.pending {
    background: rgba(255, 192, 0, 0.15);
    color: #ffc000;
}

.tracking-badge.preparing {
    background: rgba(255, 90, 0, 0.15);
    color: #ff5a00;
}

.tracking-badge.ready {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    animation: text-pulse 1s infinite alternate;
}

@keyframes text-pulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 15px;
    margin-bottom: 5px;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

body.light-theme .tracking-steps::before {
    background: rgba(0, 0, 0, 0.05);
}

.tracking-steps.step-pending::before {
    background: linear-gradient(to right, #ffc000 20%, rgba(255, 255, 255, 0.1) 20%);
}

.tracking-steps.step-preparing::before {
    background: linear-gradient(to right, #ff5a00 50%, rgba(255, 255, 255, 0.1) 50%);
}

.tracking-steps.step-ready::before {
    background: #10b981;
}

.step-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    z-index: 2;
    color: #94a3b8;
}

body.light-theme .step-dot {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

.step-dot.active {
    background: #ff5a00;
    border-color: #ff5a00;
    color: #ffffff;
    box-shadow: 0 0 10px #ff5a00;
}

.step-dot.active.ready-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 12px #10b981;
}

/* --- Split-Screen Authorization Screen Styles --- */
.split-screen-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-official);
}

.split-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .split-screen {
        flex-direction: row;
    }
}

.split-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, #15243c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .split-left {
        flex: 1.2;
        padding: 60px;
    }
}

/* Add a subtle graphic background accent */
.split-left::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.split-left-content {
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.split-left-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.split-left-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    background: rgba(255, 192, 0, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 192, 0, 0.2);
}

.split-left-content h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-left-content p {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.split-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}

.split-feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 90, 0, 0.2);
}

.split-feature-icon {
    font-size: 24px;
    background: rgba(255, 90, 0, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.split-feature-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.split-feature-text p {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
    line-height: 1.5;
}

.split-right {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .split-right {
        flex: 1;
        padding: 60px 40px;
    }
}

.auth-form-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(12, 21, 36, 0.05), 0 1px 3px rgba(12, 21, 36, 0.02);
    border: 1px solid rgba(204, 214, 224, 0.5);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 14.5px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-official);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.15);
}

.form-control-has-eye {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #e04f00;
}

.btn-primary:active {
    transform: scale(0.98);
}


