* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #080c14;
    color: #f8fafc;
    padding-bottom: 40px;
    -webkit-tap-highlight-color: transparent;
}

/* Header */
.header {
    background: linear-gradient(180deg, #0f172a 0%, #080c14 100%);
    text-align: center;
    padding: 24px 16px 16px;
    position: relative;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ps-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0px 0px 18px rgba(0, 112, 209, 0.85));
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.brand-title span {
    color: #0070d1;
}

.gogo-text-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.gogo-inline {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
}

.subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Horizontal Scrollable Category Tabs Bar */
.tabs-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    background-color: #111827;
    color: #94a3b8;
    border: 1px solid #1f2d48;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.tab-btn:active {
    transform: scale(0.96);
}

.tab-btn.active {
    background: linear-gradient(135deg, #0070d1 0%, #00439c 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(0, 112, 209, 0.5);
}

/* Main Layout & Controls */
.container {
    max-width: 600px;
    margin: 16px auto;
    padding: 0 14px;
}

.top-controls {
    max-width: 600px;
    margin: 14px auto 10px;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #1f2d48;
    background: #0f172a;
    color: #f8fafc;
    font-size: 13px;
    outline: none;
}

.search-box input:focus {
    border-color: #0070d1;
}

.search-box input::placeholder {
    color: #64748b;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #0f172a;
    color: #f8fafc;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid #1f2d48;
}

.filters-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filters-row::-webkit-scrollbar {
    display: none;
}

.filters-row select {
    flex: 1;
    min-width: 110px;
    border-radius: 10px;
    border: 1px solid #1f2d48;
    background: #111827;
    color: #cbd5e1;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
}

/* Menu Items Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.menu-item {
    background-color: rgba(17, 24, 39, 0.85);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #1f2d48;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    gap: 10px;
}

.menu-item:hover, .menu-item:active {
    border-color: #0070d1;
    box-shadow: 0 4px 16px rgba(0, 112, 209, 0.15);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.item-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Prices & Badges */
.price-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 85px;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.item-price {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #0070d1 0%, #00439c 100%);
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 112, 209, 0.3);
    white-space: nowrap;
}

.old-price {
    font-size: 10px;
    color: #64748b;
    text-decoration: line-through;
}

.discount-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.badge-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
}

.badge-bestseller { background: #f59e0b; color: #000; }
.badge-new { background: #10b981; color: #fff; }
.badge-chef { background: #8b5cf6; color: #fff; }

.stock-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.out-of-stock-item {
    opacity: 0.5;
    filter: grayscale(50%);
}

.item-thumb-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 8px;
    border: 1px solid #1f2d48;
    background: #0f172a;
}

.view-btn {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #1f2d48;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.table-banner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.55), 0 4px 14px rgba(0,0,0,0.4);
    animation: bannerPulse 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(245,158,11,0.55), 0 4px 14px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 32px rgba(245,158,11,0.85), 0 4px 18px rgba(0,0,0,0.5); }
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
}

.modal-card {
    background: #111827;
    border: 1px solid #1f2d48;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #1f2d48;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.modal-image {
    text-align: center;
    margin-bottom: 12px;
}

.modal-content h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.modal-meta {
    background: #0f172a;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid #1f2d48;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.quantity-control span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #475569;
    font-size: 12px;
    border-top: 1px solid #1e293b;
}

.footer .note {
    margin-top: 4px;
    color: #38bdf8;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }
    .ps-logo {
        width: 100px;
    }
    .container, .top-controls {
        padding: 0 10px;
    }
    .tab-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    .item-name {
        font-size: 14px;
    }
    .item-desc {
        font-size: 11px;
    }
    .menu-item {
        padding: 10px 12px;
    }
}

/* Customer Bill & Receipt Styling */
.customer-bill-card {
    background: #0b1120 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.12) !important;
}

#customer-bill-items-list::-webkit-scrollbar {
    width: 5px;
}
#customer-bill-items-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}
#customer-bill-items-list::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}
#customer-bill-items-list::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.6);
}

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