/* =============================================
   ORDER SYSTEM STYLES
   Red Chilly Family Restaurant
   Cart, Checkout, Toast, Admin
   ============================================= */

/* ----- CART NAV BUTTON ----- */
.cart-nav-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--col-accent);
    color: var(--col-accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
}
.cart-nav-btn:hover {
    background: var(--col-accent);
    color: #fff;
    box-shadow: 0 0 20px var(--col-accent-glow);
    transform: scale(1.1);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--col-highlight);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    font-family: var(--font-heading);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    animation: badgePop 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ----- CART DRAWER OVERLAY ----- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ----- CART DRAWER ----- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 69, 0, 0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}
.cart-drawer.open {
    right: 0;
}
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 10, 10, 0.9);
}
.cart-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.cart-drawer-header h3 i {
    color: var(--col-accent);
}
.cart-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.cart-close-btn:hover {
    background: var(--col-accent);
    border-color: var(--col-accent);
    transform: rotate(90deg);
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.3) transparent;
}
.cart-drawer-body::-webkit-scrollbar { width: 6px; }
.cart-drawer-body::-webkit-scrollbar-track { background: transparent; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: rgba(255, 69, 0, 0.3); border-radius: 3px; }

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--col-text-muted);
}
.cart-empty-state i {
    font-size: 4rem;
    color: rgba(255, 69, 0, 0.3);
    margin-bottom: 15px;
    display: block;
}
.cart-empty-state p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
}
.cart-empty-state span {
    font-size: 0.95rem;
}

/* Cart Item */
.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 0.8rem;
    color: var(--col-text-muted);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 69, 0, 0.4);
    background: rgba(255, 69, 0, 0.1);
    color: var(--col-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}
.qty-btn:hover {
    background: var(--col-accent);
    color: #fff;
}
.qty-value {
    width: 28px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}
.cart-item-subtotal {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--col-highlight);
    font-size: 0.95rem;
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}
.cart-item-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}
.cart-item-remove:hover {
    color: #ff4d4d;
    transform: scale(1.2);
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
    background: rgba(20, 10, 10, 0.95);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.cart-total-value {
    color: var(--col-highlight);
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.cart-checkout-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    text-decoration: none;
}

/* ADD button flash */
.add-btn.added-flash,
.order-btn.added-flash {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* ----- TOAST NOTIFICATIONS ----- */
#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    min-width: 280px;
    max-width: 400px;
    pointer-events: all;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.toast i { font-size: 1.4rem; flex-shrink: 0; }
.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }

.toast-success {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9), rgba(37, 180, 90, 0.95));
    border: 1px solid rgba(37, 211, 102, 0.4);
}
.toast-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(180, 30, 30, 0.95));
    border: 1px solid rgba(220, 38, 38, 0.4);
}
.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(200, 130, 10, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(50, 110, 200, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* ----- CHECKOUT PAGE ----- */
.checkout-page {
    padding: 130px 20px 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #050505, #0d0505, #050505);
}
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.checkout-card {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.checkout-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-card h2 i {
    color: var(--col-accent);
}

/* Checkout items list */
.checkout-items {
    margin-bottom: 20px;
}
.co-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.co-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.co-item-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.co-item-qty {
    background: rgba(255, 69, 0, 0.15);
    color: var(--col-accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}
.co-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--col-highlight);
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 10px;
    border-top: 2px solid rgba(255, 69, 0, 0.3);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}
.checkout-total-value {
    color: var(--col-highlight);
    font-size: 1.6rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.add-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--col-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: var(--transition);
}
.add-more-link:hover {
    color: var(--col-highlight);
    transform: translateX(4px);
}

/* Checkout form */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--col-text-muted);
}
.form-group label i {
    color: var(--col-accent);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--col-accent);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}
.form-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 5px;
    font-weight: 500;
    min-height: 18px;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.checkout-submit-btn {
    width: 100%;
    font-size: 1.15rem;
    padding: 18px;
    margin-top: 10px;
}
.checkout-submit-btn .btn-loading i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Trust chips */
.checkout-trust {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.trust-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--col-text-muted);
}
.trust-chip i {
    color: #25D366;
    font-size: 1rem;
}

/* Empty cart state on checkout */
.checkout-empty {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}
.empty-cart-box {
    text-align: center;
    padding: 60px 40px;
    background: rgba(20, 15, 15, 0.9);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 24px;
    max-width: 400px;
}
.empty-cart-box i {
    font-size: 5rem;
    color: rgba(255, 69, 0, 0.3);
    margin-bottom: 20px;
}
.empty-cart-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.empty-cart-box p {
    color: var(--col-text-muted);
    margin-bottom: 25px;
}

/* ----- ADMIN PAGE ----- */
.admin-page {
    padding: 130px 20px 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #050505, #0d0505, #050505);
}
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-header h1 i {
    color: var(--col-accent);
}
.admin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.stat-box {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    min-width: 100px;
}
.stat-box .stat-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--col-highlight);
    display: block;
}
.stat-box .stat-label {
    font-size: 0.78rem;
    color: var(--col-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Order cards */
.admin-orders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.order-card {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.12);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}
.order-card:hover {
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.order-customer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.order-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--col-primary), var(--col-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.order-customer-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
}
.order-customer-info p {
    font-size: 0.82rem;
    color: var(--col-text-muted);
    margin: 0;
}
.order-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-completed,
.status-delivered {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.status-preparing {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse-preparing 2s ease-in-out infinite;
}
@keyframes pulse-preparing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-decoration: line-through;
}

/* Order Action Buttons */
.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}
.status-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-btn:disabled {
    opacity: 0.4 !important;
    cursor: wait !important;
}
.btn-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}
.btn-pending:hover { background: rgba(245, 158, 11, 0.25); }
.btn-preparing {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
.btn-preparing:hover { background: rgba(59, 130, 246, 0.25); }
.btn-delivered {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}
.btn-delivered:hover { background: rgba(37, 211, 102, 0.25); }
.btn-cancelled {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.btn-cancelled:hover { background: rgba(239, 68, 68, 0.2); }

/* Menu Management Styles */
.menu-form-box {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.menu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.menu-form-grid input,
.menu-form-grid select,
.menu-form-grid textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.menu-form-grid textarea {
    grid-column: 1 / -1;
    min-height: 80px;
    resize: vertical;
}
.menu-form-grid input:focus,
.menu-form-grid select:focus,
.menu-form-grid textarea:focus {
    outline: none;
    border-color: var(--col-accent);
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.15);
}
.menu-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 15, 15, 0.95);
    border-radius: 12px;
    overflow: hidden;
}
.menu-table th {
    background: rgba(255, 69, 0, 0.08);
    padding: 14px 16px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--col-text-muted);
    border-bottom: 1px solid rgba(255, 69, 0, 0.15);
}
.menu-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}
.menu-table tr:hover td {
    background: rgba(255, 69, 0, 0.03);
}
.menu-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--col-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 4px;
}
.menu-action-btn:hover {
    background: var(--col-accent);
    color: #fff;
    border-color: var(--col-accent);
}
.menu-action-btn.edit:hover {
    background: #60a5fa;
    border-color: #60a5fa;
}

/* New order flash animation */
@keyframes new-order-flash {
    0% { border-color: rgba(255, 69, 0, 0.8); box-shadow: 0 0 20px rgba(255, 69, 0, 0.3); }
    50% { border-color: rgba(255, 69, 0, 0.2); box-shadow: none; }
    100% { border-color: rgba(255, 69, 0, 0.8); box-shadow: 0 0 20px rgba(255, 69, 0, 0.3); }
}

.order-time {
    font-size: 0.82rem;
    color: var(--col-text-muted);
}
.order-items-list {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}
.order-items-list span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 3px 4px 3px 0;
    color: var(--col-text-muted);
}
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-total {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--col-highlight);
}
.order-address {
    font-size: 0.85rem;
    color: var(--col-text-muted);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--col-text-muted);
}
.admin-loading i {
    font-size: 3rem;
    color: var(--col-accent);
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 15px;
}
.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--col-text-muted);
}
.admin-empty i {
    font-size: 4rem;
    color: rgba(255, 69, 0, 0.3);
    display: block;
    margin-bottom: 15px;
}
.refresh-btn {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: var(--col-accent);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.refresh-btn:hover {
    background: var(--col-accent);
    color: #fff;
    box-shadow: 0 0 15px var(--col-accent-glow);
}

/* ----- STICKY ORDER NOW BUTTON (MENU PAGE) ----- */
.sticky-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 5, 5, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 69, 0, 0.3);
    padding: 12px 20px;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.6);
}
.sticky-order-bar.visible {
    display: flex;
}
.sticky-order-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
}
.sticky-order-count {
    background: var(--col-accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}
.sticky-order-total {
    font-weight: 800;
    color: var(--col-highlight);
    font-size: 1.1rem;
}
.sticky-order-label {
    font-size: 0.8rem;
    color: var(--col-text-muted);
}
.sticky-order-bar .btn {
    padding: 12px 24px;
    font-size: 1rem;
}

/* ----- FLOATING WHATSAPP SHIFT WHEN STICKY BAR VISIBLE ----- */
body.cart-active .floating-whatsapp {
    bottom: 90px !important;
    transition: bottom 0.3s ease;
}
@media (max-width: 768px) {
    body.cart-active .floating-whatsapp {
        bottom: 140px !important;
    }
}

/* ----- MENU CARD GRID (Swiggy/Zomato style with photos) ----- */
.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.menu-card-item {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.menu-card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 69, 0, 0.1);
}
.menu-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.03);
}
.menu-card-body {
    padding: 14px 16px 16px;
}
.menu-card-body .item-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 6px;
}
.menu-card-body .tag-veg {
    background: rgba(0, 128, 0, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(0, 128, 0, 0.3);
}
.menu-card-body .tag-nonveg {
    background: rgba(139, 0, 0, 0.2);
    color: #ff4d4d;
    border: 1px solid rgba(139, 0, 0, 0.3);
}
.menu-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}
.menu-card-desc {
    font-size: 0.82rem;
    color: var(--col-text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--col-highlight);
}
.menu-card-add {
    background: transparent;
    border: 1.5px solid var(--col-accent);
    color: var(--col-accent);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}
.menu-card-add:hover {
    background: var(--col-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

/* Stepper UI for Quantity Selection */
.stepper-active {
    padding: 0 !important;
    border: 1px solid var(--col-accent) !important;
    background: rgba(255, 69, 0, 0.05) !important;
    overflow: hidden;
    display: inline-flex !important;
    align-items: stretch;
}
.stepper-active:hover {
    box-shadow: none !important;
    background: rgba(255, 69, 0, 0.05) !important;
}
.stepper-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 90px;
}
.stepper-controls .step-btn {
    padding: 6px 12px;
    cursor: pointer;
    color: var(--col-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.stepper-controls .step-btn:hover {
    background: rgba(255, 69, 0, 0.2);
}
.stepper-controls .step-qty {
    font-weight: 800;
    color: #fff;
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.menu-card-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 69, 0, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* ----- ITEM DETAIL MODAL ----- */
.item-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}
.item-modal-overlay.open {
    display: flex;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.item-modal {
    background: #0d0808;
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.3) transparent;
}
@keyframes slideUpModal {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.item-modal-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}
.item-modal-content {
    padding: 24px;
}
.item-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.item-modal-close:hover {
    background: var(--col-accent);
    border-color: var(--col-accent);
    transform: rotate(90deg);
}
.item-modal-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 8px;
}
.item-modal-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.item-modal-desc {
    color: var(--col-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.item-modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}
.item-modal-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--col-highlight);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.item-modal-add-btn {
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

/* Recommendation section inside modal */
.modal-recommendations {
    margin-top: 5px;
}
.modal-recommendations h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--col-text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}
.reco-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.2) transparent;
}
.reco-scroll::-webkit-scrollbar { height: 4px; }
.reco-scroll::-webkit-scrollbar-thumb { background: rgba(255, 69, 0, 0.3); border-radius: 2px; }
.reco-card {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.reco-card:hover {
    border-color: rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}
.reco-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.reco-card-body {
    padding: 8px 10px 10px;
}
.reco-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reco-card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--col-highlight);
}

/* Modal checkout button at bottom */
.modal-checkout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--col-accent);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.modal-checkout-link:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.3);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-page {
        padding: 110px 15px 100px;
    }
    #toast-container {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .order-address {
        max-width: 100%;
    }
    .sticky-order-bar {
        bottom: 60px; /* Above mobile-bottom-bar */
    }
}

/* ----- ADMIN AUTH SCREEN ----- */
.admin-auth-overlay {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.admin-auth-box {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.admin-auth-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}
.admin-auth-box input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
}
.admin-auth-box input:focus {
    border-color: var(--col-accent);
    outline: none;
}
.admin-auth-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
}

/* ----- ADMIN LAYOUT (SIDEBAR + MAIN) ----- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}
.admin-sidebar {
    width: 250px;
    background: rgba(10, 5, 5, 0.95);
    border-right: 1px solid rgba(255, 69, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-main {
    flex: 1;
    padding: 30px;
    background: linear-gradient(180deg, #050505, #0d0505);
}
.admin-tab-btn {
    background: transparent;
    color: var(--col-text-muted);
    border: none;
    padding: 12px 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.admin-tab-btn.active {
    background: rgba(255, 69, 0, 0.1);
    color: var(--col-accent);
}
.admin-tab-content {
    display: none;
}
.admin-tab-content.active {
    display: block;
}

/* ----- STATUS BUTTONS ----- */
.order-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}
.status-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
    color: var(--col-text-muted);
}
.status-btn:hover { background: rgba(255,255,255,0.1); }
.status-btn.btn-pending { border-color: #f59e0b; color: #f59e0b; }
.status-btn.btn-preparing { border-color: #3b82f6; color: #3b82f6; } /* Blue for preparing */
.status-btn.btn-delivered { border-color: #25D366; color: #25D366; }
.status-btn.btn-cancelled { border-color: #ef4444; color: #ef4444; }

.order-status.status-preparing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.order-status.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ----- MENU MANAGEMENT ----- */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.menu-table th, .menu-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.menu-table th {
    color: var(--col-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.menu-table td {
    color: #fff;
    font-size: 0.95rem;
}
.menu-action-btn {
    background: transparent;
    border: none;
    color: var(--col-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    margin-right: 10px;
}
.menu-action-btn:hover { color: var(--col-accent); }
.menu-action-btn.delete:hover { color: #ff4d4d; }

/* Menu Form Inline */
.menu-form-box {
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.menu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.menu-form-box input, .menu-form-box select, .menu-form-box textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
}
.menu-form-box textarea { grid-column: 1 / -1; height: 80px; resize: vertical; }

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,69,0,0.15); flex-direction: row; overflow-x: auto; }
    .admin-tab-btn { flex: 1; justify-content: center; }
    .menu-form-grid { grid-template-columns: 1fr; }
}
