/* ========================================
   ملف الأنماط - صاجية وإنجز
   نظام إدارة الطلبات
   ======================================== */

:root {
    --primary: #ff6b00;
    --primary-dark: #e65c00;
    --primary-light: #ff8c33;
    --bg-main: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-nav: #000000;
    --border: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
}

/* RTL Fixes - Ensure proper right-to-left direction */
* {
    direction: rtl;
    text-align: right;
}

/* Force RTL on specific elements that might inherit incorrectly */
input, textarea, select, button {
    direction: rtl;
    text-align: right;
}

/* Fix text alignment for headings */
h1, h2, h3, h4, h5, h6 {
    text-align: right;
    direction: rtl;
}

/* Fix flex containers for RTL */
.navbar .container,
.nav-links,
.navbar-brand,
.product-card .header,
.cart-item,
.cart-item .qty-controls,
.footer-content,
.footer-social,
.footer-links,
.footer-contact,
.form-grid,
.delivery-toggle,
.main-tabs,
.category-tabs,
.offers-grid,
.gallery-grid,
.features-grid,
.top-products-grid,
.activity-feed {
    direction: rtl;
}

/* Fix margins and padding for RTL */
.product-card .header {
    justify-content: space-between;
    flex-direction: row;
}

/* Fix positioning for RTL elements */
.cart-badge {
    right: auto;
    left: -4px;
}

/* Fix transforms for RTL animations */
.footer-links a:hover {
    transform: translateX(-4px);
}

/* Fix select dropdown arrow position */
select {
    background-position: left 0.5rem center !important;
}

/* Ensure proper RTL for all interactive elements */
a, button, .btn {
    direction: rtl;
    text-align: center;
}

/* Fix table alignment for RTL */
table {
    direction: rtl;
    text-align: right;
}

thead th {
    text-align: right;
}

tbody td {
    text-align: right;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Assets */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.navbar-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.navbar-brand h1 {
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.navbar-brand h1 span { color: var(--primary); }

.navbar-brand small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: block;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255,107,0,0.1);
}

.nav-link.admin-link {
    color: var(--text-muted);
}

.nav-link.admin-link:hover,
.nav-link.admin-link.active {
    color: var(--info);
    background: rgba(59,130,246,0.1);
}

.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    border: 2px solid black;
}

.nav-link.cart-link { position: relative; }

.nav-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e65c00);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
}

.btn-primary:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    background: rgba(255,107,0,0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-icon {
    padding: 8px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-icon:hover { color: var(--primary); background: rgba(255,107,0,0.1); }
.btn-icon.danger:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background: black;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, rgba(0,0,0,0.4), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(255,107,0,0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #ff8c33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Features */
.features {
    padding: 4rem 0;
    background: #111;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(26,26,26,0.9), rgba(34,34,34,0.7));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,107,0,0.05));
    border: 1px solid rgba(255, 107, 0, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.page-header h2 span { color: var(--primary); }

.page-header p {
    color: var(--text-secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.product-card {
    background: linear-gradient(145deg, #1a1a1a, #202020);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,107,0,0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,0,0.08);
}

.product-card .image-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .image-wrap img {
    transform: scale(1.1);
}

.product-card .image-wrap .gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.product-card .body {
    padding: 1.5rem;
}

.product-card .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-card .header h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.product-card .header .price {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.25rem;
}

.product-card .desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
}

/* Cart */
.cart-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .cart-page {
        grid-template-columns: 5fr 7fr;
    }
}

.cart-summary {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary h2 .icon { color: var(--primary); }

.cart-empty {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-muted);
}

.cart-items {
    margin-bottom: 1.5rem;
    max-height: 40vh;
    overflow-y: auto;
    padding-left: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: black;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.cart-item .info {
    flex: 1;
}

.cart-item .info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item .info .price-sm {
    color: var(--primary);
    font-size: 0.875rem;
}

.cart-item .qty-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.cart-item .qty-controls button {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 4px;
    display: flex;
}

.cart-item .qty-controls button:hover {
    color: var(--primary);
}

.cart-item .qty-controls span {
    font-weight: bold;
    width: 1rem;
    text-align: center;
}

.cart-total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.cart-total .line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.cart-total .line .amount {
    color: var(--primary);
}

/* Checkout Form */
.checkout-form {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-form h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-form h2 .icon { color: var(--primary); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (max-width: 900px) {
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group .input-wrap {
    position: relative;
}

.form-group .input-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: black;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 12px 16px 12px 40px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.success-message {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.08);
}

.success-message .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-message h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.success-message .hint {
    color: var(--success);
    font-size: 0.875rem;
}

/* Admin Orders Table */
.admin-section {
    padding: 3rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 1.875rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h2 .icon { color: var(--primary); }

.stats-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    flex: 1;
}

.stat-card .number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.table-wrap {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    text-align: right;
    border-collapse: collapse;
}

thead {
    background: black;
    border-bottom: 1px solid var(--border);
}

thead th {
    padding: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(0,0,0,0.5);
}

tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.order-number {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: bold;
}

.customer-info .name {
    font-weight: bold;
}

.customer-info .phone {
    font-size: 0.875rem;
    color: var(--text-secondary);
    direction: ltr;
}

.customer-info .address {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.items-list {
    list-style: disc;
    list-style-position: inside;
    font-size: 0.875rem;
    color: #d1d5db;
}

.items-list li {
    margin-bottom: 2px;
}

.order-total {
    font-weight: bold;
}

.status-select {
    background: black;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 8px 12px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Order Detail Modal */
.order-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 3000;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.order-modal-overlay.show { display: flex; }
.order-modal {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    animation: fadeIn 0.3s ease;
}
.order-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.order-modal-header h3 { font-size: 1.15rem; }
.order-modal-close {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; font-size: 1.5rem; padding: 4px; line-height: 1;
}
.order-modal-body { padding: 1.5rem; }
.order-modal-section { margin-bottom: 1.5rem; }
.order-modal-section:last-child { margin-bottom: 0; }
.order-modal-section h4 {
    font-size: 0.875rem; color: var(--text-secondary);
    margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.order-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.order-detail-item {}
.order-detail-item .label {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px;
}
.order-detail-item .value {
    font-size: 0.9rem; color: var(--text-primary);
}

/* Order Items in Modal */
.order-modal-items {}
.order-modal-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: black; border-radius: 8px;
    border: 1px solid var(--border); margin-bottom: 6px;
}
.order-modal-item .item-name { font-weight: 500; }
.order-modal-item .item-qty {
    color: var(--text-secondary); font-size: 0.85rem;
}
.order-modal-item .item-price { color: var(--primary); font-weight: bold; }
.order-modal-item .item-addons {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
}

/* Status Timeline in Modal */
.status-timeline {
    position: relative; padding: 0; margin: 0;
}
.status-timeline::before {
    content: ''; position: absolute; right: 15px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.status-timeline-item {
    position: relative; padding-right: 40px; padding-bottom: 1.25rem;
}
.status-timeline-item:last-child { padding-bottom: 0; }
.status-timeline-item .dot {
    position: absolute; right: 8px; top: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--border); border: 2px solid var(--bg-card); z-index: 1;
}
.status-timeline-item.done .dot { background: var(--success); }
.status-timeline-item.active .dot { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.status-timeline-item .status-text { font-size: 0.9rem; font-weight: 500; }
.status-timeline-item .status-date {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
}
.status-timeline-item.done .status-text { color: var(--success); }
.status-timeline-item.active .status-text { color: var(--primary); }

/* Print-Ready Styles */
@media print {
    .admin-sidebar, .admin-header, .stats-bar, form, .btn, .btn-icon, .order-modal-close,
    .admin-content > :not(.order-modal), .scroll-top, .whatsapp-float { display: none !important; }
    .order-modal { max-width: 100%; box-shadow: none; border: none; }
    .order-modal-overlay { position: static; background: none; display: block !important; }
    body { background: white !important; color: black !important; }
    .order-modal-header { border-bottom-color: #ddd; }
    .order-modal-item { border-color: #ddd; }
}

/* Admin Order Actions */
.order-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.order-actions .btn-icon {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--border); background: black;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); transition: all 0.2s;
}
.order-actions .btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.order-actions .btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); }
.order-actions .btn-icon.info:hover { border-color: var(--info); color: var(--info); }

/* Bulk Actions Bar */
.bulk-bar {
    display: none; align-items: center; gap: 1rem;
    padding: 12px 16px; background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.2); border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.bulk-bar.show { display: flex; }
.bulk-bar .count { font-weight: bold; color: var(--primary); }
.bulk-bar .btn { font-size: 0.8rem; padding: 6px 14px; }

/* Order checkboxes */
.order-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* New order notification flash */
@keyframes flash-row {
    0%, 100% { background: transparent; }
    50% { background: rgba(255,107,0,0.12); }
}
tr.new-order {
    animation: flash-row 2s ease 3;
}
tr.new-order td:first-child::before {
    content: '🆕'; margin-left: 4px; font-size: 0.75rem;
}

/* Auto-refresh indicator */
.auto-refresh-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: var(--text-muted); padding: 4px 10px;
    background: rgba(255,255,255,0.03); border-radius: 20px;
}
.auto-refresh-badge .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--success);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Admin hamburger - hidden on desktop */
.admin-hamburger {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 101;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}
.admin-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.admin-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.admin-hamburger.open span:nth-child(2) { opacity: 0; }
.admin-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
}
.sidebar-overlay.show { display: block; }

/* Admin mobile drawer */
@media (max-width: 768px) {
    .admin-panel { flex-direction: column; }
    .admin-hamburger { display: flex; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 260px;
        max-width: 80vw;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-right: none;
        border-left: 1px solid var(--border);
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-sidebar .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; padding-bottom: 1rem; }
    .admin-sidebar .brand img { width: 40px; height: 40px; margin-bottom: 0; }
    .admin-sidebar .brand h3 { font-size: 0.9rem; margin: 0; }
    .admin-sidebar .nav { flex-direction: column; }
    .admin-sidebar .nav a { justify-content: flex-start; font-size: 0.85rem; padding: 12px; }
    .admin-sidebar .nav a span { display: inline; font-size: 0.85rem; }
    .admin-content { padding: 1rem; padding-top: 3.5rem; }
    .admin-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
    .admin-header h2 { font-size: 1.25rem; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; }
    .stats-bar .stat-card { min-width: calc(50% - 0.5rem); }
    .order-modal { max-height: 95vh; margin: 0.5rem; }
    .table-wrap { border-radius: 0.75rem; }
    .table-scroll table thead { display: none; }
    .table-scroll table tbody tr { display: block; padding: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; background: rgba(255,255,255,0.02); border-radius: 0.75rem; }
    .table-scroll table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border: none; font-size: 0.85rem; }
    .table-scroll table tbody td:before { content: attr(data-label); font-weight: 600; color: var(--text-secondary); font-size: 0.75rem; }
    .table-scroll table tbody td:last-child { padding-bottom: 0; }
    .table-scroll table tbody tr:hover { background: rgba(255,107,0,0.06); }
}

/* Admin Panel */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #111;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
}

.admin-sidebar .brand {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar .brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.admin-sidebar .brand h3 {
    font-size: 1rem;
}

.admin-sidebar .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar .nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.admin-sidebar .nav a:hover,
.admin-sidebar .nav a.active {
    background: rgba(255,107,0,0.1);
    color: var(--primary);
}

.admin-sidebar .nav a.logout {
    margin-top: auto;
    color: var(--danger);
}

.admin-sidebar .nav a.logout:hover {
    background: rgba(239,68,68,0.1);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-main);
}

/* Forms */
.form-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 600px;
    margin-bottom: 2rem;
}

.form-card .form-group {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Alert / Flash Messages */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.alert-error { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.alert-info { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
}

.login-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 0.5rem;
}

.login-card .logo h2 {
    font-size: 1.25rem;
}

.login-card .logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-card .form-group {
    margin-bottom: 1.25rem;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* Product Image Styles */
.product-img-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-card .image-wrap img {
    position: relative;
    z-index: 1;
}

.product-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Settings page */
.settings-group {
    margin-bottom: 2rem;
}

.settings-group h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group h3 .badge {
    font-size: 0.75rem;
    background: rgba(255,107,0,0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    max-width: 1000px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }
.toast.info { background: var(--info); color: white; }

/* Responsive */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-logo { width: 120px; height: 120px; }
    .navbar-brand .brand-text { display: none; }
    .nav-link:not(.mobile-text) span { display: none; }
    .nav-link.mobile-text { gap: 4px; padding: 8px 10px; font-size: 0.75rem; }
    .products-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 1rem; }
}


/* RTL specific */
select { background-position: left 0.5rem center !important; }

/* ====== الفوتر الاحترافي ====== */
footer {
    background: linear-gradient(180deg, #0d0d0d, #080808);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(255,107,0,0.3);
    padding: 2px;
}
.footer-about {
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1rem;
}
.footer-social {
    display: flex; gap: 10px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 0.95rem; font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-links {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
    content: '→';
    color: var(--primary);
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}
.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}
.footer-links a:hover::before {
    opacity: 1;
}
.footer-contact {
    list-style: none; padding: 0; margin: 0;
}
.footer-contact li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
    margin-bottom: 10px;
}
.footer-contact .icon {
    font-size: 1rem;
    flex-shrink: 0;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom small {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.footer-payment {
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer-payment span {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    cursor: help;
}
.footer-payment span:hover {
    opacity: 1;
}
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ====== صفحات قانونية (الخصوصية + الشروط) ====== */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem 3rem;
}
.legal-page h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 4px;
    color: white;
}
.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.legal-page section {
    margin-bottom: 1.75rem;
}
.legal-page section:last-child {
    margin-bottom: 0;
}
.legal-page h2 {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.legal-page p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.legal-page ul {
    padding-right: 1.25rem;
    margin: 0.5rem 0;
}
.legal-page ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 4px;
}
.legal-page ul li strong {
    color: white;
}
@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem;
    }
    .legal-page h1 {
        font-size: 1.5rem;
    }
}

/* ====== الميزات الجديدة ====== */

/* تصنيفات القائمة */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.category-tab:hover { border-color: var(--primary); color: white; }
.category-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.category-tab .icon { font-size: 1.2rem; }

/* الأكثر طلباً */
.top-products {
    padding: 2rem 0;
}
.top-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.top-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.top-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.2);
}
.top-card .fire {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 1.25rem;
    animation: firePulse 1.5s infinite;
}
@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.top-card .top-icon {
    width: 64px; height: 64px;
    background: rgba(255,107,0,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.75rem;
}
.top-card h4 { font-size: 1rem; margin-bottom: 4px; }
.top-card .price { color: var(--primary); font-weight: bold; font-size: 1.125rem; }
.top-card .orders-count {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 4px;
}

/* تخصيص الوجبة */
.addon-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.addon-modal.show { display: flex; }
.addon-modal-content {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    max-width: 500px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}
.addon-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px;
    background: black;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.addon-item:hover { border-color: var(--primary); }
.addon-item.selected { border-color: var(--primary); background: rgba(255,107,0,0.05); }
.addon-item .addon-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #555;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.addon-item.selected .addon-check { background: var(--primary); border-color: var(--primary); }
.addon-item .addon-check::after {
    content: '✓'; color: white; font-size: 12px; font-weight: bold;
}
.addon-price { color: var(--primary); font-weight: bold; font-size: 0.875rem; }
.addon-price.free { color: var(--success); }

/* تتبع الطلب */
.tracking-section {
    max-width: 600px; margin: 0 auto; padding: 2rem 0;
}
.tracking-steps {
    display: flex; justify-content: space-between; position: relative;
    margin: 2rem 0; padding: 0;
}
.tracking-steps::before {
    content: ''; position: absolute; top: 20px; left: 10%; right: 10%;
    height: 3px; background: var(--border); z-index: 0;
}
.tracking-steps::after {
    content: ''; position: absolute; top: 20px; left: 10%; height: 3px;
    background: var(--primary); z-index: 0; transition: width 0.8s ease;
}
.tracking-step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1; flex: 1;
}
.tracking-step .dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 3px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; transition: all 0.4s;
    font-size: 1rem;
}
.tracking-step.active .dot { background: var(--primary); border-color: var(--primary); }
.tracking-step.done .dot { background: var(--success); border-color: var(--success); }
.tracking-step .label { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.tracking-step.active .label { color: var(--primary); font-weight: bold; }
.tracking-step.done .label { color: var(--success); }

/* delivery/pickup toggle */
.delivery-toggle {
    display: flex; gap: 0; margin-bottom: 1.5rem;
    background: black; border-radius: 12px; padding: 4px;
    border: 1px solid var(--border);
}
.delivery-option {
    flex: 1; text-align: center; padding: 12px;
    border-radius: 10px; cursor: pointer; font-weight: bold;
    transition: all 0.2s; color: var(--text-secondary);
}
.delivery-option.active { background: var(--primary); color: white; }
.delivery-option .icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }

/* تقييم الطلب */
.rating-stars {
    display: flex; gap: 8px; justify-content: center;
    font-size: 2.5rem; cursor: pointer; direction: ltr;
}
.rating-stars .star {
    color: #444; transition: all 0.2s;
    cursor: pointer;
}
.rating-stars .star.active { color: #ffc107; transform: scale(1.1); }
.rating-stars .star:hover { transform: scale(1.15); }

/* كوبون */
.coupon-input-wrap {
    display: flex; gap: 8px; align-items: center;
}
.coupon-input-wrap input {
    flex: 1; padding: 10px 16px;
    background: black; border: 1px solid var(--border);
    border-radius: 10px; color: white; font-size: 0.875rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.coupon-applied {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 10px; margin-top: 8px;
    font-size: 0.875rem; color: var(--success);
}

/* عروض */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Carousel for offers */
.offers-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 3rem;
}
.carousel-wrap {
    overflow: hidden;
    border-radius: 1rem;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
    min-width: 100%;
}
.carousel-slide .offer-card {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 5;
    padding: 0;
    line-height: 1;
}
.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--primary);
    width: 26px;
    border-radius: 5px;
}
.offer-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,107,0,0.06), transparent 70%);
    pointer-events: none;
}

.offer-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.12);
}
.offer-card .badge-offer {
    position: absolute; top: 1rem; right: 1rem;
    background: linear-gradient(135deg, var(--primary), #e65c00);
    color: white;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    letter-spacing: 1px;
}
.offer-card .original-price {
    text-decoration: line-through; color: var(--text-muted);
    font-size: 0.875rem; margin-right: 8px;
}
.offer-card .offer-price {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #ff8c33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.offer-card .offer-image-wrap {
    width: 100%; height: 180px; overflow: hidden;
    border-radius: 0.75rem; margin-bottom: 1rem;
}
.offer-card .offer-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.offer-card:hover .offer-image-wrap img { transform: scale(1.08); }
.offer-card .offer-items { margin: 1rem 0; }
.offer-card .offer-items li {
    font-size: 0.875rem; color: var(--text-secondary);
    padding: 4px 0; list-style: none;
}
.offer-card .offer-items li::before { content: '✓ '; color: var(--success); }

/* معرض الصور */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.gallery-item {
    border-radius: 12px; overflow: hidden;
    cursor: pointer; position: relative;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem; color: white; font-weight: bold;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); z-index: 5000;
    display: none; align-items: center; justify-content: center;
    padding: 2rem; cursor: pointer;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

/* واتساب عائم */
.whatsapp-float {
    position: fixed; bottom: 24px; left: 24px; z-index: 1000;
    display: flex; align-items: center; gap: 10px;
    background: #25d366; color: white;
    padding: 14px 20px; border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none; font-weight: bold;
    transition: all 0.3s; cursor: pointer;
}
.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}
.whatsapp-float .wa-icon {
    width: 28px; height: 28px; background: white;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.whatsapp-float .wa-text { font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 768px) {
    .whatsapp-float { padding: 12px 16px; bottom: 16px; left: 16px; }
    .whatsapp-float .wa-text { display: none; }
}

/* عجلة الحظ */
.wheel-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); z-index: 3000;
    display: none; align-items: center; justify-content: center;
}
.wheel-overlay.show { display: flex; }
.wheel-modal {
    background: var(--bg-card); border-radius: 1rem;
    border: 1px solid var(--border); padding: 2rem;
    max-width: 450px; width: 100%; text-align: center;
    position: relative;
}
.wheel-container {
    position: relative; width: 280px; height: 280px;
    margin: 1.5rem auto;
}
.wheel-canvas {
    width: 100%; height: 100%; border-radius: 50%;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.15, 1);
}
.wheel-pointer {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--primary);
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wheel-spin-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); border: 4px solid white;
    color: white; font-weight: 900; font-size: 0.75rem;
    cursor: pointer; z-index: 2;
    box-shadow: 0 0 20px rgba(255,107,0,0.5);
}

/* عداد الطلبات */
.order-counter {
    padding: 2rem 0; text-align: center;
}
.order-counter .counter-num {
    font-size: 3rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #ff8c33);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* شريط النشاط */
.activity-feed {
    max-height: 300px; overflow-y: auto;
    padding: 0;
}
.activity-item {
    display: flex; gap: 12px; align-items: start;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-item .act-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,107,0,0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 0.875rem;
}
.activity-item .act-text { color: var(--text-secondary); }
.activity-item .act-text strong { color: white; }
.activity-item .act-time { font-size: 0.7rem; color: var(--text-muted); }

/* Closed overlay */
.closed-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.closed-overlay.show { display: flex; }
.closed-card {
    background: var(--bg-card); border-radius: 1rem;
    border: 1px solid var(--primary); padding: 2.5rem;
    text-align: center; max-width: 400px;
}
.closed-card .clock-icon { font-size: 4rem; margin-bottom: 1rem; }
.closed-card h2 { margin-bottom: 0.5rem; }
.closed-card p { color: var(--text-secondary); }

/* Tabs for main navigation */
.main-tabs {
    display: flex; gap: 0; margin-bottom: 0;
    background: black; border-radius: 12px; padding: 4px;
    border: 1px solid var(--border); overflow: hidden;
}
.main-tab {
    flex: 1; text-align: center; padding: 10px 16px;
    cursor: pointer; font-weight: bold; font-size: 0.875rem;
    border-radius: 10px; color: var(--text-secondary);
    transition: all 0.2s; border: none; background: none;
}
.main-tab.active { background: var(--primary); color: white; }

/* Notifications */
.notif-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--primary);
    border-radius: 12px; padding: 14px 24px;
    z-index: 10000; display: none; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Responsive additions */
@media (max-width: 768px) {
    .tracking-steps { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .tracking-steps::before, .tracking-steps::after { display: none; }
    .tracking-step { flex: 0 0 45%; }
    .offers-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== تحسينات إضافية ====== */

html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: white; }

.scroll-top {
    position: fixed;
    bottom: 90px;
    left: 24px;
    z-index: 999;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,107,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    font-size: 1.2rem;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255,107,0,0.5);
}

@media (max-width: 768px) {
    .order-counter-stat .counter-circle { width: 90px; height: 90px; }
    .order-counter-stat .counter-num { font-size: 1.8rem; }
    .scroll-top { left: 16px; bottom: 80px; width: 38px; height: 38px; }
}

/* Loading Overlay */
#loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 99999;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
#loading-overlay.show { display: flex; }
#loading-overlay .loading-content {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}
#loading-overlay .loading-content p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Admin charts grid */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-top-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Admin responsive improvements */
@media (max-width: 1200px) {
    .stats-bar { flex-wrap: wrap; }
    .stat-card { min-width: 150px; flex: 1 1 auto; }
}

@media (max-width: 768px) {
    .admin-charts-grid { grid-template-columns: 1fr; gap: 1rem; }
    .admin-header-row { flex-direction: column; align-items: flex-start; }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 380px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 6000;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
}
.cart-sidebar.show { left: 0; }
.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.cart-sidebar-header h3 { font-size: 1.125rem; margin: 0; }
.cart-sidebar .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}
.cart-sidebar .cart-items .empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 1rem;
}
.cart-sidebar .cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: black;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}
.cart-sidebar .cart-item-info { flex: 1; }
.cart-sidebar .cart-item-info strong { font-size: 0.9rem; display: block; }
.cart-sidebar .cart-item-price { color: var(--primary); font-size: 0.85rem; font-weight: bold; }
.cart-sidebar .cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 2px;
    border-radius: 8px;
}
.cart-sidebar .cart-qty .qty-btn {
    width: 28px; height: 28px;
    border: none; background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-sidebar .cart-qty .qty-btn:hover { color: var(--primary); background: rgba(255,107,0,0.1); }
.cart-sidebar .cart-qty span { width: 20px; text-align: center; font-weight: bold; }
.cart-sidebar .cart-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}
.cart-sidebar .cart-footer {
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: none;
}
.cart-sidebar .cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.cart-sidebar .cart-total-row span:last-child { color: var(--primary); }
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 5999;
    display: none;
}
.cart-overlay.show { display: block; }

/* ====== Professional Invoice (A5/A6 Receipt Style) ====== */
.invoice-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem 0;
}
.invoice {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.invoice-header {
    background: linear-gradient(135deg, var(--primary), #e65c00);
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.invoice-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 8px;
    background: white;
}
.invoice-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0; right: 0;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
}
.invoice-header .resto-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.invoice-header .resto-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}
.invoice-header .order-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}
.invoice-header .order-number-display {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.2);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    margin-top: 4px;
    letter-spacing: 1px;
}
.invoice-body {
    padding: 1.5rem 2rem;
}
.invoice-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}
.invoice-meta .label { color: var(--text-muted); display: block; font-size: 0.7rem; }
.invoice-meta .value { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.invoice-table th {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.invoice-table th:first-child { text-align: right; }
.invoice-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    text-align: center;
}
.invoice-table td:first-child { text-align: right; }
.invoice-table .item-name { font-weight: 600; font-size: 0.9rem; }
.invoice-table .item-addon { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.invoice-table .item-qty { color: var(--text-secondary); font-weight: 600; }
.invoice-table .item-price { font-weight: bold; font-family: 'Courier New', monospace; color: var(--text-primary); }
.invoice-table tr:last-child td { border-bottom: none; }
.invoice-divider {
    border: none;
    border-top: 1px dashed rgba(255,255,255,0.1);
    margin: 1rem 0;
}
.invoice-totals {
    padding-top: 0.5rem;
}
.invoice-totals .line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.invoice-totals .line .amount { font-family: 'Courier New', monospace; text-align: left; font-weight: 600; }
.invoice-totals .line.final {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 12px;
}
.invoice-totals .line.final .amount { color: var(--primary); font-size: 1.4rem; }
.invoice-totals .discount-line { color: var(--success) !important; }
.invoice-footer {
    background: var(--card-bg);
    padding: 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0;
}
.invoice-footer .footer-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    margin: 0;
}
.invoice-footer .footer-body {
    padding: 1rem 1.5rem;
}
.invoice-footer .thank-you {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.invoice-footer .contact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.invoice-footer .contact-line .label {
    color: var(--text-muted);
}
.ltr-phone {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}
.invoice-footer .contact-line .ltr-phone {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}
.invoice-footer .contact-line a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.invoice-footer .contact-line a:hover { color: var(--primary); }
.invoice-footer .footer-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}
.invoice-footer .footer-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Barcode-style order number */
.invoice-barcode {
    text-align: center;
    padding: 12px 0 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    direction: ltr;
}
.invoice-barcode::before {
    content: '█▌║║║▐█ █▌║║║▐█ █▌║║║▐█';
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
    opacity: 0.3;
}
/* Success invoice variant */
.invoice.success-invoice .invoice-header {
    background: linear-gradient(135deg, #059669, #10b981);
}
.invoice.success-invoice .invoice-header .order-label { color: rgba(255,255,255,0.9); }
/* Coupon display in invoice */
.invoice-coupon {
    text-align: center;
    padding: 8px;
    margin: 8px 0;
    background: rgba(255,107,0,0.06);
    border: 1px solid rgba(255,107,0,0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--primary);
}
@media print {
    @page { size: A5 portrait; margin: 0; }
    body { background: white !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .invoice-wrap { padding: 0; max-width: 100%; margin: 0; }
    .invoice { box-shadow: none; border: none; border-radius: 0; background: white !important; max-width: 100%; }
    .invoice-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .invoice-header .resto-name { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .navbar, .cart-sidebar, .cart-overlay, .scroll-top, .whatsapp-float, .footer, footer,
    .checkout-form, .delivery-toggle, [class*="payment-option"], .form-grid, #checkout-form,
    .btn, .btn-primary, .btn-secondary, a[href]:not(.no-print) { display: none !important; }
    .invoice { background: white !important; }
    .invoice-body { color: #111 !important; }
    .invoice-table td { color: #111 !important; }
    .invoice-totals .line { color: #555 !important; }
    .invoice-totals .line.final { color: #111 !important; }
    .invoice-totals .line.final .amount { color: #e65c00 !important; }
    .invoice-meta .value { color: #111 !important; }
}

/* ========================================
   Mobile Bottom Nav
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    transition: color 0.2s;
    min-width: 50px;
}
.bottom-nav-link svg { width: 20px; height: 20px; }
.bottom-nav-link span { font-size: 0.6rem; }
.bottom-nav-link.active { color: var(--primary); }
.bottom-nav-link .cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 16px;
    height: 16px;
    font-size: 8px;
}
.bottom-nav-link.cart-link { position: relative; }

/* ========================================
   Checkout Quick Add
   ======================================== */
.checkout-quick-add details summary { list-style: none; }
.checkout-quick-add details summary::-webkit-details-marker { display: none; }
.checkout-quick-add .quick-add-item:hover { border-color: var(--primary) !important; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,107,0,0.15); }
.checkout-quick-add .quick-add-item .btn { transition: all 0.2s; }
.checkout-quick-add .quick-add-item .btn:hover { background: var(--primary); color: white; }

/* ========================================
   Hamburger Menu
   ======================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 60;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Menu Slideshow Hero
   ======================================== */
.menu-slideshow {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #0f141a;
}

.menu-slideshow.home-slideshow {
    height: 85vh;
    min-height: 500px;
    max-height: 700px;
    border-radius: 0;
    margin-bottom: 0;
}

.menu-slideshow .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(80px) saturate(1.2);
    transform: scale(1.15);
    transition: background-image 0.8s ease;
    z-index: 0;
}

.menu-slideshow .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(15,20,26,0.95) 0%, rgba(15,20,26,0.65) 50%, rgba(15,20,26,0.35) 100%);
    z-index: 1;
}

.menu-slideshow .slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    gap: 3rem;
}

.menu-slideshow .slide-text {
    flex: 1;
    max-width: 520px;
    text-align: center;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255,107,0,0.3); }
    50% { box-shadow: 0 0 70px rgba(255,107,0,0.6); }
}

/* Hero slide */
.menu-slideshow .ms-hero { max-width: 100% !important; }
.ms-hero-content { text-align:center; padding:1.5rem; max-width:600px; margin:0 auto }
.ms-hero-logo { width:clamp(90px,15vw,140px);height:clamp(90px,15vw,140px);border-radius:50%;object-fit:cover;margin:0 auto 1.2rem;display:block;box-shadow:0 0 60px rgba(255,107,0,0.35);border:3px solid rgba(255,107,0,0.25);animation:pulseGlow 3s ease-in-out infinite }
.ms-hero-title { font-size:clamp(1.6rem,5vw,2.8rem);font-weight:900;margin-bottom:10px;color:#fff;line-height:1.25 }
.ms-hero-title span { color:var(--primary) }
.ms-hero-sub { color:rgba(255,255,255,0.7);margin-bottom:1.8rem;font-size:clamp(0.9rem,2vw,1.1rem);line-height:1.7 }
.ms-hero-btn { display:inline-flex!important;font-size:clamp(0.9rem,1.8vw,1.1rem)!important;padding:clamp(12px,2vw,16px) clamp(28px,4vw,40px)!important;box-shadow:0 0 30px rgba(255,107,0,0.4)!important }

/* Product slide */
.menu-slideshow .ms-product { max-width:520px; }
.ms-product-content { text-align:center; padding:0.5rem 0 }
.ms-cat { display:inline-block;background:rgba(255,107,0,0.15);color:var(--primary);border:1px solid rgba(255,107,0,0.3);padding:5px 18px;border-radius:50px;font-size:clamp(0.75rem,1.5vw,0.85rem);font-weight:700;margin-bottom:14px;backdrop-filter:blur(4px) }
.ms-name { font-size:clamp(1.4rem,4vw,2.4rem);font-weight:900;margin-bottom:12px;line-height:1.25;text-align:center }
.ms-desc { color:rgba(255,255,255,0.7);font-size:clamp(0.8rem,1.8vw,1rem);line-height:1.7;margin-bottom:20px;text-align:center }
.ms-price { font-size:clamp(1.4rem,3.5vw,2.2rem);font-weight:900;color:var(--primary);margin-bottom:16px }
.ms-actions { display:flex;gap:clamp(8px,1.5vw,12px);flex-wrap:wrap;justify-content:center;margin-top:15px }

.menu-slideshow .slide-text .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: clamp(10px,1.5vw,14px) clamp(20px,3vw,28px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.8rem,1.5vw,0.95rem);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.menu-slideshow .slide-text .slide-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,107,0,0.4);
}

.ms-btn-more {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25) !important;
}
.ms-btn-more:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.menu-slideshow .slide-text .slide-btn-more {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}
.menu-slideshow .slide-text .slide-btn-more:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.menu-slideshow .slide-image-wrap {
    flex: 0 0 280px;
    height: 280px;
    position: relative;
}

.menu-slideshow .slide-image-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.15);
    animation: spinSlow 25s linear infinite;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.menu-slideshow .slide-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.menu-slideshow .slide-image-wrap img.animate-in {
    animation: plateSpinIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes plateSpinIn {
    0% { transform: scale(0.5) rotate(-40deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.menu-slideshow .text-animate {
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Slideshow bottom nav */
.menu-slideshow .slide-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
    max-width: 92%;
    direction: rtl;
}

.menu-slideshow .slide-nav::-webkit-scrollbar {
    display: none;
}

.menu-slideshow .slide-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-slideshow .slide-nav button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
}

.menu-slideshow .slide-nav button:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.menu-slideshow .slide-nav button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(255,107,0,0.3);
}

.menu-slideshow .slide-nav button .nav-icon {
    font-size: 1rem;
}

/* Slideshow arrows */
.menu-slideshow .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-slideshow .slide-arrow:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(255,107,0,0.3);
}

.menu-slideshow .slide-arrow.prev {
    right: 16px;
}

.menu-slideshow .slide-arrow.next {
    left: 16px;
}

/* Scroll down indicator */
.menu-slideshow .scroll-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    animation: bounceDown 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-slideshow {
        height: auto;
        min-height: 480px;
        border-radius: 16px;
    }
    .menu-slideshow.home-slideshow {
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    .menu-slideshow .slide-inner {
        flex-direction: column-reverse;
        padding: 2rem 1.25rem 1.5rem;
        gap: 0.5rem;
        text-align: center;
    }
    .menu-slideshow .slide-text {
        max-width: 100%;
        text-align: center;
    }
    .menu-slideshow .slide-text h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .menu-slideshow .slide-text p {
        -webkit-line-clamp: 2;
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }
    .menu-slideshow .slide-text .slide-price {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }
    .menu-slideshow .slide-image-wrap {
        flex: 0 0 140px;
        height: 140px;
    }
    .menu-slideshow .slide-image-ring {
        inset: -6px;
    }
    .menu-slideshow .slide-nav {
        padding: 5px 10px;
        gap: 4px;
        bottom: 10px;
    }
    .menu-slideshow .slide-nav button {
        padding: 4px 10px;
        font-size: 0.65rem;
        gap: 3px;
    }
    .menu-slideshow .slide-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .menu-slideshow .slide-arrow.prev { right: 8px; }
    .menu-slideshow .slide-arrow.next { left: 8px; }
    .menu-slideshow .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .menu-slideshow {
        min-height: 360px;
    }
    .menu-slideshow .slide-inner {
        padding: 1rem;
    }
    .menu-slideshow .slide-image-wrap {
        flex: 0 0 100px;
        height: 100px;
    }
    .ms-hero-content { padding: 0.5rem; }
    .ms-product-content { padding: 0; }
    .ms-actions { flex-direction: column; align-items: center; }
    .ms-actions .slide-btn { width: 100%; justify-content: center; }
}

/* ========================================
   Mobile Responsive (up to 768px)
   ======================================== */
@media (max-width: 768px) {
    /* --- Bottom Nav --- */
    .bottom-nav { display: flex !important; }
    main { padding-bottom: 70px !important; }

    /* --- Top Nav --- */
    .navbar .container { height: 60px !important; }
    .navbar-brand img { width: 36px; height: 36px; }
    .navbar-brand h1 { font-size: 1rem; }
    .navbar-brand small { font-size: 0.65rem; }
    .navbar-brand .brand-text { display: none !important; }
    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important;
        padding: 12px 16px;
        gap: 4px;
        z-index: 55;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    }
    .nav-links.show { display: flex !important; }
    .nav-link { padding: 12px 16px; font-size: 0.9rem; width: 100%; border-radius: 10px; }
    .nav-link span { display: inline !important; }
    .nav-link svg { width: 22px; height: 22px; }
    .nav-divider { display: none !important; }
    .hamburger { display: flex !important; }

    /* --- Container --- */
    .container { padding: 0 12px; }

    /* --- Hero --- */
    .hero { min-height: 50vh; padding: 60px 16px 30px; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.85rem; }
    .hero-bg { height: 100%; object-fit: cover; }

    /* --- Products Grid --- */
    .products-grid { grid-template-columns: 1fr; gap: 12px; }
    .product-card { padding: 14px; }
    .product-card .header { flex-direction: column; gap: 8px; }
    .product-card .header .price { font-size: 1rem; }
    .product-card .actions { flex-direction: column; gap: 6px; }
    .product-card .actions .btn { width: 100%; justify-content: center; }
    .product-card img { width: 64px; height: 64px; }

    /* --- Offer Carousel --- */
    .carousel-container { padding: 0; }
    .carousel-track .offer-card { min-width: 85vw; padding: 14px; }
    .offer-card .offer-content { flex-direction: column; text-align: center; }
    .offer-card .offer-content .btn { width: 100%; justify-content: center; }

    /* --- Sections --- */
    .section-title { font-size: 1.1rem; }
    .about-section { flex-direction: column; padding: 30px 16px; }
    .about-section .about-text { padding-left: 0; margin-bottom: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-number { font-size: 1.5rem; }

    /* --- Checkout Page --- */
    .checkout-page { flex-direction: column; gap: 16px; }
    .checkout-page .invoice { max-width: 100%; }
    .checkout-page .checkout-form { max-width: 100%; }
    .invoice { max-width: 100%; border-radius: 12px; }
    .invoice-header { padding: 1rem 1.25rem; }
    .invoice-header .resto-name { font-size: 1.1rem; }
    .invoice-body { padding: 0.75rem 1rem; }
    .invoice-table { font-size: 0.75rem; }
    .invoice-table th, .invoice-table td { padding: 6px 4px; }
    .invoice-table .item-name { font-size: 0.8rem; }
    .invoice-table .invoice-qty-wrap button { width: 20px; height: 20px; font-size: 10px; }
    .invoice-footer { padding: 0; }
    .invoice-footer .footer-body { padding: 0.75rem 1rem; }
    .invoice-footer .contact-line { font-size: 0.65rem; gap: 4px 8px; flex-wrap: wrap; }
    .invoice-footer .thank-you { font-size: 0.8rem; }
    .invoice-footer .footer-actions .btn { font-size: 0.8rem; padding: 7px 14px; }

    /* --- Checkout Form --- */
    .checkout-form { padding: 0; margin-top: 0; }
    .checkout-form h2 { font-size: 1rem; }
    .form-grid { grid-template-columns: 1fr; gap: 10px; }
    .form-group input, .form-group textarea { font-size: 0.85rem; padding: 10px 12px 10px 36px; }
    .input-wrap .input-icon { left: 10px; }

    /* --- Delivery Toggle --- */
    .delivery-toggle { gap: 6px; }
    .delivery-toggle .delivery-option { padding: 10px; font-size: 0.8rem; flex: 1; }

    /* --- Payment Options --- */
    #payment-methods { flex-direction: column; gap: 6px; }
    #payment-methods .payment-option { min-width: 100%; padding: 10px; font-size: 0.85rem; }
    #payment-methods .payment-option input { width: 16px; height: 16px; }

    /* --- QR Area --- */
    #qr-checkout-area select { min-width: 100%; font-size: 0.85rem; padding: 10px 14px; }
    #qr-checkout-area .qr-payment-box { max-width: 100% !important; }
    #qr-checkout-area .qr-payment-box img { width: 120px; height: 120px; }

    /* --- Coupon --- */
    #coupon-input { font-size: 0.8rem; padding: 8px 12px; }
    #apply-coupon-btn { font-size: 0.75rem; padding: 8px 12px; }

    /* --- Success Page --- */
    .success-invoice .invoice-header { padding: 1rem 1.25rem; }
    .success-invoice .invoice-body { padding: 0.75rem 1rem; }
    .success-invoice .invoice-meta { flex-direction: column; gap: 4px; }
    .success-invoice .invoice-meta div { font-size: 0.75rem; }

    /* --- Cart Sidebar --- */
    .cart-sidebar { width: 85vw; max-width: 320px; }
    .cart-sidebar .cart-items { max-height: calc(100vh - 280px); }
    .cart-item { padding: 10px 12px; gap: 8px; }
    .cart-item .cart-item-info strong { font-size: 0.85rem; }
    .cart-item .cart-item-price { font-size: 0.8rem; }
    .cart-qty button { width: 28px; height: 28px; font-size: 14px; }

    /* --- Track Page --- */
    .tracking-section { padding: 20px 12px; }
    .tracking-section input { font-size: 0.9rem; padding: 12px; }
    .track-timeline { padding: 16px; }
    .track-step { font-size: 0.8rem; padding: 8px 0; }
    .track-step .step-icon { width: 28px; height: 28px; font-size: 12px; }

    /* --- Orders Page --- */
    .orders-list .order-card { padding: 12px; }
    .orders-list .order-card .order-header { flex-direction: column; gap: 4px; }
    .orders-list .order-card .order-header .order-number { font-size: 0.85rem; }
    .orders-list .order-card .order-items { font-size: 0.75rem; }

    /* --- Auth Pages --- */
    .form-card { padding: 24px 16px; }
    .form-card h2 { font-size: 1.1rem; }

    /* --- Gallery --- */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* --- Footer --- */
    .footer, footer { text-align: center; padding: 20px 12px !important; padding-bottom: 80px !important; }
    .footer .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer .footer-grid .footer-col { text-align: center; }

    /* --- Toast --- */
    #global-toast { font-size: 0.8rem; padding: 10px 16px; max-width: 90vw; bottom: 80px; }

    /* --- Misc --- */
    .btn { font-size: 0.85rem; padding: 10px 18px; }
    h2 { font-size: 1.15rem; }
    .section-subtitle { font-size: 0.8rem; }
    .invoice-barcode { font-size: 0.55rem; letter-spacing: 2px; }
    .invoice-barcode::before { font-size: 0.7rem; }
}

/* ========================================
   Tablet Responsive
   ======================================== */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
}

/* ========================================
   Tablet (768-1024) - nav-links always visible
   ======================================== */
@media (min-width: 769px) {
    .nav-links { display: flex !important; }
}

/* ========================================
   Small Mobile
   ======================================== */
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.3rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .invoice-table { font-size: 0.7rem; }
    .invoice-table th, .invoice-table td { padding: 4px 2px; }
    .menu-slideshow { min-height: 300px; }
    .menu-slideshow .slide-inner { padding: 0.75rem; gap: 0.25rem; }
    .ms-hero-logo { width: 70px !important; height: 70px !important; margin-bottom: 0.8rem !important; }
    .ms-hero-title { font-size: 1.2rem !important; }
    .ms-hero-sub { font-size: 0.8rem !important; margin-bottom: 1rem !important; }
    .ms-name { font-size: 1.1rem !important; }
    .ms-desc { font-size: 0.75rem !important; margin-bottom: 12px !important; }
    .ms-price { font-size: 1.1rem !important; }
    .ms-cat { font-size: 0.7rem !important; padding: 3px 12px !important; }
    .ms-actions .slide-btn { font-size: 0.8rem !important; padding: 8px 16px !important; }
}



