/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(212,168,83,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(212,168,83,0.04) 0%, transparent 50%);
    animation: loadingFloat 20s ease-in-out infinite;
}

@keyframes loadingFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px;
}

/* Logo Animation */
.loading-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0f0f1a;
    box-shadow: 0 8px 32px rgba(212,168,83,0.4), 0 0 0 4px rgba(212,168,83,0.1);
    animation: loadingLogoPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes loadingLogoPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 32px rgba(212,168,83,0.4), 0 0 0 4px rgba(212,168,83,0.1);
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 12px 40px rgba(212,168,83,0.5), 0 0 0 8px rgba(212,168,83,0.08);
    }
}

.loading-logo-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212,168,83,0.15);
    border-radius: 50%;
    border-top-color: var(--primary);
    border-right-color: rgba(212,168,83,0.4);
    animation: loadingRingSpin 1.5s linear infinite;
}

.loading-logo-ring-2 {
    width: 120px;
    height: 120px;
    border-width: 1px;
    border-top-color: rgba(212,168,83,0.3);
    border-right-color: transparent;
    animation: loadingRingSpin 2s linear infinite reverse;
    animation-delay: -0.5s;
}

@keyframes loadingRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Brand Text */
.loading-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: loadingFadeInUp 0.8s ease 0.3s both;
}

.loading-brand-name {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.loading-brand-slogan {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

.loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: loadingDotBounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Floating Particles */
.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.loading-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(212,168,83,0.3);
    border-radius: 50%;
    animation: loadingParticleFloat linear infinite;
}

@keyframes loadingParticleFloat {
    0% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100vh) rotate(720deg); 
        opacity: 0; 
    }
}

@keyframes loadingFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light Theme Loading Screen */
body.light-theme .loading-screen {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 40%, #f0f0f5 100%);
}

body.light-theme .loading-screen::before {
    background: 
        radial-gradient(circle at 30% 70%, rgba(212,168,83,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(212,168,83,0.05) 0%, transparent 50%);
}

body.light-theme .loading-brand-name {
    background: linear-gradient(135deg, #1a1a2e, var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .loading-logo-icon {
    box-shadow: 0 8px 32px rgba(212,168,83,0.3), 0 0 0 4px rgba(212,168,83,0.08);
}

body.light-theme .loading-logo-ring {
    border-color: rgba(212,168,83,0.12);
    border-top-color: var(--primary);
    border-right-color: rgba(212,168,83,0.3);
}

body.light-theme .loading-logo-ring-2 {
    border-top-color: rgba(212,168,83,0.2);
}

body.light-theme .loading-particle {
    background: rgba(212,168,83,0.25);
}

/* Hide main content initially */
.main-content.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-screen,
    .loading-screen::before,
    .loading-logo-icon,
    .loading-logo-ring,
    .loading-logo-ring-2,
    .loading-dot,
    .loading-particle,
    .loading-brand {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    .loading-logo-ring,
    .loading-logo-ring-2 {
        display: none;
    }
}

/* ===== END Loading Screen ===== */


  :root {
            --primary: #d4a853; --primary-light: #f0d89a; --primary-dark: #b8923c;
            --bg-dark: #0f0f1a; --bg-card: #1a1a2e; --bg-card-hover: #252540;
            --text-light: #ffffff; --text-muted: #a0a0b8;
            --success: #2ecc71; --danger: #e74c3c;
            --shadow: 0 8px 32px rgba(0,0,0,0.4); --shadow-gold: 0 4px 20px rgba(212,168,83,0.3);
            --radius: 20px; --radius-sm: 12px;
        }
        body.light-theme {
            --bg-dark: #f5f5f7; --bg-card: #ffffff; --bg-card-hover: #f0f0f5;
            --text-light: #1a1a2e; --text-muted: #6b6b80;
            --shadow: 0 8px 32px rgba(0,0,0,0.1); --shadow-gold: 0 4px 20px rgba(212,168,83,0.2);

        }

        body.light-theme .lang-btn {
            color: var(--primary);
        }
        body.light-theme .settings-btn {
            color:var(--primary);
        }
 
 
 
        body.light-theme .header { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(0,0,0,0.05); }
        body.light-theme .cart-sheet, body.light-theme .admin-panel, body.light-theme .success-content, body.light-theme .admin-header, body.light-theme .admin-nav, body.light-theme .settings-panel { background: #ffffff; }
        body.light-theme .admin-card { background: #f8f8fc; border-color: rgba(0,0,0,0.05); }
        body.light-theme .admin-form-input, body.light-theme .admin-form-select, body.light-theme .cart-order-detail input, body.light-theme .settings-input, body.light-theme .settings-select { background: #f0f0f5; color: #1a1a2e; border-color: rgba(0,0,0,0.1); }
        body.light-theme .admin-form-input::placeholder, body.light-theme .admin-form-select::placeholder, body.light-theme .cart-order-detail input::placeholder, body.light-theme .settings-input::placeholder { color: #888; }
        body.light-theme .size-option { background: rgba(0,0,0,0.03); }
        body.light-theme .size-option:hover { background: rgba(212,168,83,0.08); }
        body.light-theme .menu-card { background: #ffffff; border-color: rgba(0,0,0,0.05); }
        body.light-theme .menu-card:hover { border-color: rgba(212,168,83,0.3); }
        body.light-theme .category-chip { background: #ffffff; }
        body.light-theme .category-chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #1a1a2e; }
        body.light-theme .category-chip.active span { color: #1a1a2e; }
        body.light-theme .category-chip.active i { color: #1a1a2e; }
        body.light-theme .cart-order-type-card { background: rgba(0,0,0,0.03); }
        body.light-theme .cart-order-type-card.active { background: rgba(212,168,83,0.1); }
        body.light-theme .footer-social a { background: #ffffff; }
        body.light-theme .cart-summary-row.total { border-top-color: rgba(0,0,0,0.1); }
        body.light-theme .cart-item { border-bottom-color: rgba(0,0,0,0.05); }
        body.light-theme .admin-nav-tab { color: #6b6b80; }
        body.light-theme .admin-nav-tab.active { background: rgba(212,168,83,0.08); }
        body.light-theme .admin-list-item { border-bottom-color: rgba(0,0,0,0.05); }
        body.light-theme .admin-empty-state { color: #888; }
        body.light-theme .cart-empty i { color: rgba(0,0,0,0.1); }
        body.light-theme .size-row input { background: #f0f0f5; color: #1a1a2e; border-color: rgba(0,0,0,0.1); }
        body.light-theme .admin-btn-secondary { background: rgba(0,0,0,0.05); color: #1a1a2e; border-color: rgba(0,0,0,0.1); }
        body.light-theme .admin-btn-secondary:hover { background: rgba(0,0,0,0.08); }
        body.light-theme .cart-sheet-close { background: rgba(0,0,0,0.08); }
        body.light-theme .admin-close-btn, body.light-theme .settings-close-btn { background: rgba(0,0,0,0.08); }
        body.light-theme .lang-btn, body.light-theme .cart-btn { background: rgba(212,168,83,0.1); }
        body.light-theme .settings-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
        body.light-theme .hero-badge { background: rgba(212,168,83,0.1); border-color: rgba(212,168,83,0.2); }
        body.light-theme .section-title::after { background: linear-gradient(90deg, rgba(212,168,83,0.2), transparent); }
        body.light-theme .success-order-num { background: rgba(212,168,83,0.08); }
        body.light-theme .quantity-control { background: rgba(212,168,83,0.12); }
        body.light-theme .review-section { background: #ffffff; border-color: rgba(0,0,0,0.05); }
        body.light-theme .review-item { border-bottom-color: rgba(0,0,0,0.05); }
        body.light-theme .review-form { background: #f8f8fc; }

        body.light-theme .branch-card { background: #ffffff; border-color: rgba(0,0,0,0.05); }
        body.light-theme .branch-card:hover { border-color: rgba(212,168,83,0.3); }
        body.light-theme .settings-section { border-bottom-color: rgba(0,0,0,0.05); }
        body.light-theme .toggle-switch { background: #ddd; }
        body.light-theme .toggle-switch.active { background: var(--primary); }
        body.light-theme .menu-grid.two-columns .menu-card { background: #ffffff; border-color: rgba(0,0,0,0.05); }
        body.light-theme .hero-title { background: linear-gradient(135deg, #1a1a2e, var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        body.light-theme .social-card { background: #ffffff; border-color: rgba(0,0,0,0.05); }
        body.light-theme .social-card:hover { border-color: rgba(212,168,83,0.3); }
        body.light-theme .menu-grid.two-columns .menu-card { background: #ffffff; border-color: rgba(0,0,0,0.05); }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Cairo', 'Poppins', sans-serif; background: var(--bg-dark);
            color: var(--text-light); min-height: 100vh; overflow-x: hidden; position: relative;
            transition: background 0.3s ease, color 0.3s ease;
        }
        body::before {
            content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-image: radial-gradient(circle at 20% 50%, rgba(212,168,83,0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(212,168,83,0.03) 0%, transparent 50%);
            pointer-events: none; z-index: 0;
        }
        .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,15,26,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(212,168,83,0.1); transition: background 0.3s ease; }
        .header-content { max-width: 480px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
        .logo { display: flex; align-items: center; gap: 10px; }
        .logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--bg-dark); box-shadow: var(--shadow-gold); }
        .logo-text { font-size: 18px; font-weight: 700; color: var(--text-light); line-height: 1.2; }
        .logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--primary); letter-spacing: 2px; }
        .header-actions { display: flex; align-items: center; gap: 10px; }
        .lang-btn { background: rgba(212,168,83,0.15); border: 1px solid rgba(212,168,83,0.3); color: var(--primary); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        .lang-btn:hover { background: var(--primary); color: var(--bg-dark); }
        .settings-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted); width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.3s ease; }
        .settings-btn:hover { background: var(--primary); color: var(--bg-dark); border-color: var(--primary); }
        .cart-btn { position: relative; background: rgba(212,168,83,0.15); border: 1px solid rgba(212,168,83,0.3); color: var(--primary); width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.3s ease; }
        .cart-btn:hover { background: var(--primary); color: var(--bg-dark); }
        .cart-count { position: absolute; top: -6px; right: -6px; background: var(--danger); color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; animation: bounce 0.5s ease; }
        @keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }
        .main-content { padding-top: 80px; padding-bottom: 30px; max-width: 480px; margin: 0 auto; position: relative; z-index: 1; }
        .hero { padding: 20px 16px; text-align: center; }
        .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(212,168,83,0.15); border: 1px solid rgba(212,168,83,0.3); padding: 6px 16px; border-radius: 30px; font-size: 12px; color: var(--primary); margin-bottom: 16px; }
        .hero-title { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 8px; background: linear-gradient(135deg, #fff, var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .hero-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
        .categories-section { padding: 20px 16px; }
        .section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
        .section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212,168,83,0.3), transparent); }
        .categories-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
        .categories-scroll::-webkit-scrollbar { display: none; }
        .category-chip { flex-shrink: 0; background: var(--bg-card); border: 2px solid transparent; border-radius: 30px; padding: 10px 20px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
        .category-chip i { font-size: 16px; color: var(--primary); }
        .category-chip span { font-size: 14px; font-weight: 600; }
        .category-chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary); color: var(--bg-dark); box-shadow: var(--shadow-gold); }
        .category-chip.active i { color: var(--bg-dark); }
        .menu-section { padding: 0 16px 12px; }
        .menu-grid { display: grid; gap: 16px; }
        .menu-grid.two-columns { grid-template-columns: 1fr 1fr; }
        .menu-grid.two-columns .menu-card-image { height: 120px; }
        .menu-grid.two-columns .menu-card-content { padding: 12px; }
        .menu-grid.two-columns .menu-card-title { font-size: 14px; }
        .menu-grid.two-columns .menu-card-desc { 
            font-size: 11px; 
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-clamp: 2;
            overflow: hidden;
            line-height: 1.4em;
        }
        .menu-grid.two-columns .size-option { min-width: unset; padding: 8px 10px; }
        .menu-grid.two-columns .size-label { font-size: 12px; }
        .menu-grid.two-columns .size-price { font-size: 13px; }
        .menu-grid.two-columns .add-btn { padding: 10px 14px; font-size: 12px; }
        .menu-grid.two-columns .quantity-control { transform: scale(0.9); }
        .menu-grid.two-columns .menu-card-calories { font-size: 10px; }
        .menu-grid.two-columns .review-toggle-btn { font-size: 11px; padding: 8px; }
/* Sortable Drag & Drop */
        .sortable-ghost {
            opacity: 0.4;
            background: rgba(212,168,83,0.1) !important;
            border: 2px dashed var(--primary) !important;
        }
        .sortable-chosen {
            box-shadow: var(--shadow-gold);
        }
        .sortable-drag {
            opacity: 0.9;
        }
        .drag-handle {
            cursor: grab;
            color: var(--text-muted);
            padding: 8px;
            margin-left: 8px;
            transition: color 0.2s;
        }
        .drag-handle:active {
            cursor: grabbing;
        }
        .drag-handle:hover {
            color: var(--primary);
        }
        body.light-theme .sortable-ghost {
            background: rgba(212,168,83,0.08) !important;
        }
/* Confirmation Modal */
        .confirm-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 6000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .confirm-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .confirm-box {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 28px 24px;
            max-width: 340px;
            width: 100%;
            text-align: center;
            border: 1px solid rgba(212,168,83,0.2);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: var(--shadow);
        }
        .confirm-overlay.show .confirm-box {
            transform: scale(1);
        }
        .confirm-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: rgba(231,76,60,0.15);
            color: var(--danger);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin: 0 auto 16px;
        }
        .confirm-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .confirm-message {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
            line-height: 1.6;
        }
        .confirm-actions {
            display: flex;
            gap: 10px;
        }
        .confirm-btn {
            flex: 1;
            padding: 12px;
            border-radius: var(--radius-sm);
            border: none;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.3s ease;
        }
        .confirm-btn-cancel {
            background: rgba(255,255,255,0.08);
            color: var(--text-light);
            border: 1px solid rgba(255,255,255,0.15);
        }
        .confirm-btn-cancel:hover {
            background: rgba(255,255,255,0.12);
        }
        .confirm-btn-delete {
            background: linear-gradient(135deg, var(--danger), #c0392b);
            color: white;
        }
        .confirm-btn-delete:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(231,76,60,0.3);
        }
        body.light-theme .confirm-box {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
        }
        body.light-theme .confirm-btn-cancel {
            background: rgba(0,0,0,0.05);
            color: #1a1a2e;
            border-color: rgba(0,0,0,0.1);
        }
        body.light-theme .confirm-btn-cancel:hover {
            background: rgba(0,0,0,0.08);
        }
        @media (max-width: 400px) {
            .menu-grid.two-columns .menu-card-image { height: 100px; }
            .menu-grid.two-columns .menu-card-title { font-size: 12px; }
        }
        .menu-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; position: relative; }
        .menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212,168,83,0.2); }
        .menu-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
        .menu-card-badge { position: absolute; top: 12px; left: 12px; background: var(--danger); color: white; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
        .menu-card-badge.new { background: var(--success); }
        .menu-card-badge.popular { background: var(--primary); color: var(--bg-dark); }
        .menu-card-content { padding: 16px; }
        .menu-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
        .menu-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; flex: 1; }
        .menu-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
        .menu-card-calories { font-size: 12px; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
        .size-options { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
        .size-option { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); border: 2px solid transparent; border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: all 0.25s ease; flex: 1; min-width: 140px; }
        .size-option:hover { background: rgba(212,168,83,0.08); }
        .size-option.selected { border-color: var(--primary); background: rgba(212,168,83,0.12); }
        .size-option-info { display: flex; align-items: center; gap: 10px; }
        .size-radio { width: 20px; height: 20px; border: 2px solid var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; }
        .size-option.selected .size-radio { border-color: var(--primary); background: var(--primary); }
        .size-radio::after { content: ''; width: 8px; height: 8px; background: var(--bg-dark); border-radius: 50%; opacity: 0; transform: scale(0); transition: all 0.2s ease; }
        .size-option.selected .size-radio::after { opacity: 1; transform: scale(1); }
        .size-label { font-size: 14px; font-weight: 600; }
        .size-price { font-size: 15px; font-weight: 700; color: var(--primary); direction: ltr; }
        .add-cart-area { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
        .add-btn { flex: 1; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border: none; padding: 12px 20px; border-radius: 25px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.3s ease; font-family: inherit; }
        .add-btn:hover { transform: scale(1.02); box-shadow: var(--shadow-gold); }
        .add-btn:active { transform: scale(0.98); }
        .quantity-control { display: flex; align-items: center; gap: 12px; background: rgba(212,168,83,0.15); border-radius: 25px; padding: 4px; }
        .qty-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--primary); color: var(--bg-dark); font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
        .qty-btn:hover { transform: scale(1.1); }
        .qty-value { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; }
        .review-toggle-btn { width: 100%; background: rgba(212,168,83,0.1); border: 1px dashed var(--primary); color: var(--primary); padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.3s ease; font-family: inherit; margin-top: 12px; }
        .review-toggle-btn:hover { background: rgba(212,168,83,0.2); }
        .review-section { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); margin-top: 12px; padding: 16px; display: none; }
        .review-section.show { display: block; animation: fadeIn 0.3s ease; }
        .review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .review-title { font-size: 14px; font-weight: 700; }
        .review-rating-avg { display: flex; align-items: center; gap: 6px; font-size: 14px; }
        .review-rating-avg i { color: var(--primary); }
        .review-list { max-height: 200px; overflow-y: auto; margin-bottom: 12px; }
        .review-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .review-item:last-child { border-bottom: none; }
        .review-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .review-item-name { font-size: 13px; font-weight: 600; }
        .review-item-stars { color: var(--primary); font-size: 11px; }
        .review-item-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
        .review-item-date { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
        .review-form { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 12px; }
        .review-form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
        .star-rating { display: flex; gap: 6px; margin-bottom: 8px; justify-content: center; }
        .star-rating i { font-size: 28px; color: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.2s ease; padding: 4px; }
        .star-rating i.filled { color: #ffc107; text-shadow: 0 0 12px rgba(255, 193, 7, 0.5); transform: scale(1.15); }
        .star-rating i:hover { color: #ffd54f; transform: scale(1.25); }
        .star-rating i:active { transform: scale(0.9); }
        body.light-theme .star-rating i { color: #ccc; }
        body.light-theme .star-rating i.filled { color: #ffc107; text-shadow: 0 0 10px rgba(255, 193, 7, 0.4); }
        body.light-theme .star-rating i:hover { color: #ffb300; }
        .review-form-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 12px; color: var(--text-light); font-size: 13px; font-family: inherit; margin-bottom: 8px; resize: none; }
        .review-form-input:focus { outline: none; border-color: var(--primary); }
        .review-form-input::placeholder { color: var(--text-muted); }
        .review-submit-btn { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border: none; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.3s ease; }
        .review-submit-btn:hover { transform: scale(1.02); }
        .cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .cart-overlay.show { opacity: 1; visibility: visible; }
        .cart-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-radius: 30px 30px 0 0; z-index: 2001; max-height: 90vh; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
        .cart-sheet.show { transform: translateY(0); }
        .cart-sheet-header { padding: 20px 20px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .cart-sheet-title { font-size: 20px; font-weight: 700; }
        .cart-sheet-close { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--text-light); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .cart-order-type { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .cart-order-type-label { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
        .cart-order-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .cart-order-type-card { background: rgba(255,255,255,0.03); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
        .cart-order-type-card.active { border-color: var(--primary); background: rgba(212,168,83,0.1); }
        .cart-order-type-card i { font-size: 20px; color: var(--primary); margin-bottom: 4px; display: block; }
        .cart-order-type-card h4 { font-size: 13px; font-weight: 700; }
        .cart-order-type-card p { font-size: 11px; color: var(--text-muted); }
        .cart-order-detail { margin-top: 10px; }
        .cart-order-detail input { width: 100%; background: rgba(255,255,255,0.05); border: 2px solid rgba(212,168,83,0.2); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text-light); font-size: 14px; font-family: inherit; text-align: center; transition: all 0.3s ease; }
        .cart-order-detail input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,168,83,0.1); }
        .cart-order-detail input::placeholder { color: var(--text-muted); }
        .cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
        .cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .cart-item-image { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
        .cart-item-info { flex: 1; }
        .cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
        .cart-item-size { font-size: 12px; color: var(--primary); margin-bottom: 2px; }
        .cart-item-price { font-size: 13px; color: var(--text-light); font-weight: 600; direction: ltr; }
        .cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
        .cart-item-remove { color: var(--danger); background: none; border: none; font-size: 12px; cursor: pointer; font-family: inherit; }
        .cart-empty { text-align: center; padding: 40px 20px; }
        .cart-empty i { font-size: 50px; color: rgba(255,255,255,0.1); margin-bottom: 16px; }
        .cart-empty h3 { font-size: 18px; margin-bottom: 8px; }
        .cart-empty p { color: var(--text-muted); font-size: 14px; }
        .cart-footer { padding: 16px 20px 30px; border-top: 1px solid rgba(255,255,255,0.05); background: var(--bg-card); }
        .cart-summary { margin-bottom: 16px; }
        .cart-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
        .cart-summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; margin-top: 8px; }
        .cart-summary-row.total span:last-child { color: var(--primary); direction: ltr; }
        .checkout-btn { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border: none; padding: 16px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: inherit; }
        .checkout-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
        .checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .admin-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 4000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .admin-overlay.show { opacity: 1; visibility: visible; }
        .admin-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); z-index: 4001; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; overflow: hidden; }
        .admin-panel.show { transform: translateX(0); }
        .admin-header { background: var(--bg-card); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px; display: flex; align-items: center; justify-content: space-between; }
        .admin-header-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .admin-header-title i { color: var(--primary); }
        .admin-close-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--text-light); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .admin-nav {  overflow-x: auto;scrollbar-width: none; -webkit-overflow-scrolling: touch;display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.05); background: var(--bg-card); }
        .admin-nav-tab { flex-shrink: 0;min-width: 90px;padding: 14px 18px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--text-muted); padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        .admin-nav::-webkit-scrollbar { isplay: none;}
        .admin-nav-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(212,168,83,0.05); }
        .admin-content { flex: 1; overflow-y: auto; padding: 16px; max-width: 600px; margin: 0 auto; width: 100%; }
        .admin-section { display: none; }
        .admin-section.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .admin-card { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); padding: 16px; margin-bottom: 12px; }
        .admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .admin-card-title { font-size: 16px; font-weight: 700; }
        .admin-card-actions { display: flex; gap: 6px; }
        .admin-btn-sm { width: 32px; height: 32px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
        .admin-btn-edit { background: rgba(212,168,83,0.15); color: var(--primary); }
        .admin-btn-edit:hover { background: var(--primary); color: var(--bg-dark); }
        .admin-btn-delete { background: rgba(231,76,60,0.15); color: var(--danger); }
        .admin-btn-delete:hover { background: var(--danger); color: white; }
        .admin-form-group { margin-bottom: 14px; }
        .admin-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
        .admin-form-input, .admin-form-select { width: 100%; background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; color: var(--text-light); font-size: 14px; font-family: inherit; transition: all 0.3s ease; }
        .admin-form-input:focus, .admin-form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,168,83,0.1); }
        .admin-form-input::placeholder { color: var(--text-muted); }
        .admin-btn-primary { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border: none; padding: 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: inherit; margin-top: 8px; }
        .admin-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
        .admin-btn-secondary { width: 100%; background: rgba(255,255,255,0.08); color: var(--text-light); border: 1px solid rgba(255,255,255,0.15); padding: 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: inherit; margin-top: 8px; }
        .admin-btn-secondary:hover { background: rgba(255,255,255,0.12); }
        .admin-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 20px 0; }
        .admin-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
        .admin-list-item:last-child { border-bottom: none; }
        .admin-list-item-info { display: flex; align-items: center; gap: 10px; }
        .admin-list-item-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(212,168,83,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; }
        .admin-list-item-text { font-size: 14px; font-weight: 600; }
        .admin-list-item-sub { font-size: 12px; color: var(--text-muted); }
        .size-row { display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; margin-bottom: 12px; position: relative; }
        .size-row input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 12px; color: var(--text-light); font-size: 13px; font-family: inherit; width: 100%; }
        .size-row input:focus { outline: none; border-color: var(--primary); }
        .size-row-btn { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(231,76,60,0.15); color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; }
        .size-row-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
        body.light-theme .size-row { background: #f8f8fc; border-color: rgba(0,0,0,0.05); }
        body.light-theme .size-row input { background: #f0f0f5; color: #1a1a2e; border-color: rgba(0,0,0,0.1); }
        .admin-add-size-btn { background: rgba(212,168,83,0.1); border: 1px dashed var(--primary); color: var(--primary); padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; font-family: inherit; margin-top: 8px; }
        .admin-empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
        .admin-empty-state i { font-size: 40px; margin-bottom: 12px; display: block; opacity: 0.3; }
        .success-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .success-modal.show { opacity: 1; visibility: visible; }
        .success-content { background: var(--bg-card); border-radius: var(--radius); padding: 40px 30px; text-align: center; max-width: 350px; width: 100%; border: 1px solid rgba(212,168,83,0.2); transform: scale(0.9); transition: transform 0.3s ease; }
        .success-modal.show .success-content { transform: scale(1); }
        .success-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--success), #27ae60); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; color: white; animation: scaleIn 0.5s ease; }
        @keyframes scaleIn { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }
        .success-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
        .success-message { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
        .success-order-num { background: rgba(212,168,83,0.15); border: 1px dashed var(--primary); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 20px; }
        .success-order-num span { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
        .success-order-num strong { font-size: 24px; color: var(--primary); letter-spacing: 2px; }
        .success-close-btn { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border: none; padding: 14px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
        .footer { text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: 12px; }
        .footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
        .footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; text-decoration: none; transition: all 0.3s ease; }
        .footer-social a:hover { background: var(--primary); color: var(--bg-dark); }
        .branches-section { padding: 0 16px 20px; }
        .branch-card { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; transition: all 0.3s ease; cursor: pointer; text-decoration: none; color: inherit; }
        .branch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(212,168,83,0.2); }
        .branch-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(212,168,83,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex-shrink: 0; }
        .branch-info { flex: 1; }
        .branch-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
        .branch-address { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
        .branch-phone { font-size: 12px; color: var(--primary); margin-top: 4px; }
        .settings-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 5000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .settings-overlay.show { opacity: 1; visibility: visible; }
        .settings-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); z-index: 5001; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; overflow: hidden; }
        .settings-panel.show { transform: translateX(0); }
        .settings-header { background: var(--bg-card); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px; display: flex; align-items: center; justify-content: space-between; }
        .settings-header-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .settings-header-title i { color: var(--primary); }
        .settings-close-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--text-light); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .settings-content { flex: 1; overflow-y: auto; padding: 16px; max-width: 600px; margin: 0 auto; width: 100%; }
        .settings-section { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .settings-section:last-child { border-bottom: none; }
        .settings-section-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
        .settings-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
        .settings-row-label { font-size: 14px; font-weight: 600; }
        .settings-row-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
        .toggle-switch { width: 50px; height: 28px; background: rgba(255,255,255,0.1); border-radius: 14px; position: relative; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; }
        .toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: all 0.3s ease; }
        .toggle-switch.active { background: var(--primary); }
        .toggle-switch.active::after { left: 25px; }
        .settings-select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 12px; color: var(--text-light); font-size: 14px; font-family: inherit; min-width: 120px; }
        .settings-select:focus { outline: none; border-color: var(--primary); }
        .settings-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 12px; color: var(--text-light); font-size: 14px; font-family: inherit; width: 80px; text-align: center; }
        .settings-input:focus { outline: none; border-color: var(--primary); }
        .settings-input::placeholder { color: var(--text-muted); }
        .social-card { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; transition: all 0.3s ease; }
        .social-card:hover { border-color: rgba(212,168,83,0.2); }
        .social-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .social-card-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
        .social-card-icon.whatsapp { background: #25d366; color: white; }
        .social-card-icon.snapchat { background: #fffc00; color: #000; }
        .social-card-icon.phone { background: #34b7f1; color: white; }
        .social-card-icon.location { background: #ea4335; color: white; }
        .social-card-info { flex: 1; }
        .social-card-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
        .social-card-value { font-size: 12px; color: var(--text-muted); }
        .social-card-actions { display: flex; gap: 6px; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .menu-card { animation: fadeInUp 0.5s ease forwards; }
/* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
            width: 90%;
            max-width: 400px;
        }
        .toast {
            background: var(--bg-card);
            border: 1px solid rgba(212,168,83,0.3);
            border-radius: 16px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow-gold), 0 8px 32px rgba(0,0,0,0.3);
            animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            pointer-events: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .toast.toast-exit {
            animation: toastSlideOut 0.3s ease forwards;
        }
        .toast-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }
        .toast-icon.success { background: rgba(46,204,113,0.15); color: #2ecc71; }
        .toast-icon.error { background: rgba(231,76,60,0.15); color: #e74c3c; }
        .toast-icon.info { background: rgba(52,152,219,0.15); color: #3498db; }
        .toast-icon.warning { background: rgba(241,196,15,0.15); color: #f1c40f; }
        .toast-content { flex: 1; }
        .toast-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
        .toast-message { font-size: 12px; color: var(--text-muted); }
        .toast-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 14px;
            cursor: pointer;
            padding: 4px;
            transition: color 0.2s;
        }
        .toast-close:hover { color: var(--text-light); }
        @keyframes toastSlideIn {
            from { opacity: 0; transform: translateY(-20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes toastSlideOut {
            from { opacity: 1; transform: translateY(0) scale(1); }
            to { opacity: 0; transform: translateY(-20px) scale(0.95); }
        }
        body.light-theme .toast {
            background: rgba(255,255,255,0.95);
            border-color: rgba(212,168,83,0.2);
        }
        body.light-theme .toast-icon.success { background: rgba(46,204,113,0.1); }
        body.light-theme .toast-icon.error { background: rgba(231,76,60,0.1); }
        body.light-theme .toast-icon.info { background: rgba(52,152,219,0.1); }
        body.light-theme .toast-icon.warning { background: rgba(241,196,15,0.1); }
        /* Shake animation for error validation */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-8px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }
        .shake { animation: shake 0.4s ease; }
        /* Input error state */
        .input-error {
            border-color: var(--danger) !important;
            box-shadow: 0 0 0 3px rgba(231,76,60,0.1) !important;
        }
/* Sortable Drag & Drop */
        .sortable-ghost {
            opacity: 0.4;
            background: rgba(212,168,83,0.1) !important;
            border: 2px dashed var(--primary) !important;
        }
        .sortable-chosen {
            box-shadow: var(--shadow-gold);
        }
        .sortable-drag {
            opacity: 0.9;
        }
        .drag-handle {
            cursor: grab;
            color: var(--text-muted);
            padding: 8px;
            margin-left: 8px;
            transition: color 0.2s;
        }
        .drag-handle:active {
            cursor: grabbing;
        }
        .drag-handle:hover {
            color: var(--primary);
        }
        body.light-theme .sortable-ghost {
            background: rgba(212,168,83,0.08) !important;
        }
/* Confirmation Modal */
        .confirm-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 6000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .confirm-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .confirm-box {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 28px 24px;
            max-width: 340px;
            width: 100%;
            text-align: center;
            border: 1px solid rgba(212,168,83,0.2);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: var(--shadow);
        }
        .confirm-overlay.show .confirm-box {
            transform: scale(1);
        }
        .confirm-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: rgba(231,76,60,0.15);
            color: var(--danger);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin: 0 auto 16px;
        }
        .confirm-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .confirm-message {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
            line-height: 1.6;
        }
        .confirm-actions {
            display: flex;
            gap: 10px;
        }
        .confirm-btn {
            flex: 1;
            padding: 12px;
            border-radius: var(--radius-sm);
            border: none;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.3s ease;
        }
        .confirm-btn-cancel {
            background: rgba(255,255,255,0.08);
            color: var(--text-light);
            border: 1px solid rgba(255,255,255,0.15);
        }
        .confirm-btn-cancel:hover {
            background: rgba(255,255,255,0.12);
        }
        .confirm-btn-delete {
            background: linear-gradient(135deg, var(--danger), #c0392b);
            color: white;
        }
        .confirm-btn-delete:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(231,76,60,0.3);
        }
        body.light-theme .confirm-box {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
        }
        body.light-theme .confirm-btn-cancel {
            background: rgba(0,0,0,0.05);
            color: #1a1a2e;
            border-color: rgba(0,0,0,0.1);
        }
        body.light-theme .confirm-btn-cancel:hover {
            background: rgba(0,0,0,0.08);
        }
        @media (max-width: 400px) { .hero-title { font-size: 24px; } .menu-card-image { height: 170px; } }
    
        .review-btn-section {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid rgba(255,255,255,0.05);
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
        }
        body.light-theme .review-btn-section {
            background: #ffffff;
            border-color: rgba(0,0,0,0.05);
        }
        #reviewOverlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        #reviewOverlay.show {
            opacity: 1;
            visibility: visible;
        }
        #reviewSheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border-radius: 30px 30px 0 0;
            z-index: 2001;
            max-height: 90vh;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        #reviewSheet.show {
            transform: translateY(0);
        }

        .size-option {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            padding: 10px 14px;
        }

        .size-option-info {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .size-price {
            align-self: flex-end;
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
            direction: ltr;
        }



        

/* Animation for logo appearance */


/* ===== Hero Section - Beautiful Modern Design ===== */
.hero {
    padding: 0 16px 4px;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 6px 0;
    position: relative;
}

/* Logo Area - Beautiful card style */
.hero-logo-area {
    display: flex;
    flex-shrink: 0;
    order: -1;
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(212,168,83,0.08);
    border-radius: 18px;
    border: 1px solid rgba(212,168,83,0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-logo-wrapper:hover {
    background: rgba(212,168,83,0.12);
    border-color: rgba(212,168,83,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,83,0.15);
}

.hero-logo-wrapper img {
    max-height: 56px;
    max-width: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.hero-logo-wrapper img:hover {
    transform: scale(1.05);
}

body.light-theme .hero-logo-wrapper {
    background: rgba(212,168,83,0.06);
    border-color: rgba(212,168,83,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

body.light-theme .hero-logo-wrapper img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}

/* ===== Hero Section - Video Background ===== */
.hero {
    padding: 0 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.5);
    z-index: 1;
}

body.light-theme .hero-video-overlay {
    background: rgba(245, 245, 247, 0.4);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0; 
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Logo Area - Positioned absolutely, outside flex flow */
.hero-logo-area {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* RTL (Arabic) - Logo on the RIGHT */
html[dir="rtl"] .hero-logo-area {
    right: 0;
}

/* LTR (English) - Logo on the LEFT */
html[dir="ltr"] .hero-logo-area {
    left: 0;
}

/* Hide logo when no image */
.hero-logo-area.hidden {
    display: none !important;
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(212,168,83,0.08);
    border-radius: 18px;
    border: 1px solid rgba(212,168,83,0.15);
    transition: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-logo-wrapper:hover {
    background: rgba(212,168,83,0.08);
    border-color: rgba(212,168,83,0.15);
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-logo-wrapper img {
    max-height: 68px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    transition: none;
}

.hero-logo-wrapper img:hover {
    transform: none;
}

/* Text Area - Always perfectly centered */
.hero-text-area {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* When logo is visible, add padding to prevent text overlap */
.hero-content:has(.hero-logo-area:not(.hidden)) .hero-text-area {
    padding-left: 120px;
    padding-right: 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212,168,83,0.12);
    border: 1px solid rgba(212,168,83,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.hero-badge i {
    font-size: 9px;
}

.hero-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 180px;
    }
    .hero-content {
        padding: 16px 0;
    }
    .hero-logo-wrapper {
        padding: 8px;
        border-radius: 14px;
    }
    .hero-logo-wrapper img {
        max-height: 58px;
        max-width: 86px;
        border-radius: 10px;
    }
    .hero-title {
        font-size: 18px;
    }
    .hero-subtitle {
        font-size: 11px;
    }
    .hero-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    .hero-content:has(.hero-logo-area:not(.hidden)) .hero-text-area {
        padding-left: 100px;
        padding-right: 100px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero {
        min-height: 200px;
    }
    .hero-logo-wrapper img {
        max-height: 52px;
        max-width: 78px;
        border-radius: 8px;
    }
    .hero-title {
        font-size: 16px;
    }
    .hero-subtitle {
        font-size: 10px;
    }
    .hero-content:has(.hero-logo-area:not(.hidden)) .hero-text-area {
        padding-left: 90px;
        padding-right: 90px;
    }
}

body.light-theme .hero-logo-wrapper {
    background: rgba(212,168,83,0.06);
    border-color: rgba(212,168,83,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

body.light-theme .hero-logo-wrapper:hover {
    background: rgba(212,168,83,0.06);
    border-color: rgba(212,168,83,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

body.light-theme .hero-logo-wrapper img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}
/* ===== END Hero Section ===== */
/* ===== END Hero Section ===== */

/* ===== File Upload Wrapper (Mobile Safe - Direct Input) ===== */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    border: 2px dashed rgba(212,168,83,0.4);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-upload-wrapper:active {
    background: rgba(212,168,83,0.15);
    border-color: var(--primary);
    transform: scale(0.98);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 16px; /* Prevents zoom on iOS */
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
    min-height: 52px;
}

.file-upload-label i {
    font-size: 20px;
}

body.light-theme .file-upload-wrapper {
    background: #f8f8fc;
    border-color: rgba(212,168,83,0.4);
}

body.light-theme .file-upload-wrapper:active {
    background: rgba(212,168,83,0.1);
}

.cart-item-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    min-width: 60px;
    height: 60px;
    border-radius: 10px;
}
.cart-item-image.placeholder i {
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0.4;
}

.menu-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    min-height: 180px;
}
.menu-card-image.placeholder i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
}

/* ===== Reports Dashboard Styles ===== */
.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.reports-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.reports-title i {
    font-size: 22px;
}

.reports-filters {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.reports-filter {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.reports-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(212,168,83,0.3);
}

.reports-filter:hover:not(.active) {
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.kpi-card.kpi-primary::before { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.kpi-card.kpi-success::before { background: linear-gradient(180deg, #2ecc71, #27ae60); }
.kpi-card.kpi-warning::before { background: linear-gradient(180deg, #f39c12, #e67e22); }
.kpi-card.kpi-info::before { background: linear-gradient(180deg, #3498db, #2980b9); }

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(212,168,83,0.15);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-card.kpi-primary .kpi-icon { background: rgba(212,168,83,0.15); color: var(--primary); }
.kpi-card.kpi-success .kpi-icon { background: rgba(46,204,113,0.15); color: #2ecc71; }
.kpi-card.kpi-warning .kpi-icon { background: rgba(243,156,18,0.15); color: #f39c12; }
.kpi-card.kpi-info .kpi-icon { background: rgba(52,152,219,0.15); color: #3498db; }

.kpi-info {
    flex: 1;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 2px;
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
}

.kpi-trend.up {
    color: #2ecc71;
    background: rgba(46,204,113,0.1);
}

.kpi-trend.down {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

/* Chart Cards */
.charts-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.charts-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(212,168,83,0.15);
    box-shadow: var(--shadow);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(212,168,83,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.doughnut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.doughnut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.doughnut-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.doughnut-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.doughnut-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.doughnut-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 20px;
}

.doughnut-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.light-theme .doughnut-legend-item {
    background: rgba(0,0,0,0.03);
    color: #1a1a2e;
}

/* Top Items Table */
.top-items-table {
    overflow-x: auto;
}

.top-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.top-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.top-item-row:hover {
    background: rgba(212,168,83,0.05);
}

.top-item-row:last-child {
    border-bottom: none;
}

.top-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 13px;
}

.top-item-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.top-item-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a2e; }
.top-item-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1a1a2e; }
.top-item-rank.bronze { background: linear-gradient(135deg, #CD7F32, #B87333); color: #1a1a2e; }
.top-item-rank.normal { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.top-item-category {
    font-size: 12px;
    color: var(--text-muted);
}

.top-item-sales {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.top-item-revenue {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    direction: ltr;
}

.top-item-growth {
 display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
}

.top-item-growth.up {
    color: #2ecc71;
    background: rgba(46,204,113,0.1);
}

.top-item-growth.down {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-right: 20px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), transparent);
    border-radius: 2px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    right: -17px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.order { background: rgba(46,204,113,0.15); color: #2ecc71; }
.activity-icon.review { background: rgba(243,156,18,0.15); color: #f39c12; }
.activity-icon.item { background: rgba(212,168,83,0.15); color: var(--primary); }
.activity-icon.category { background: rgba(52,152,219,0.15); color: #3498db; }

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* Light Theme */
body.light-theme .reports-filters {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}

body.light-theme .reports-filter:hover:not(.active) {
    background: rgba(0,0,0,0.05);
    color: #1a1a2e;
}

body.light-theme .kpi-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.05);
}

body.light-theme .kpi-value {
    color: #1a1a2e;
}

body.light-theme .doughnut-value {
    color: #1a1a2e;
}

body.light-theme .chart-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.05);
}

body.light-theme .chart-title {
    color: #1a1a2e;
}

body.light-theme .top-items-header {
    background: rgba(0,0,0,0.03);
}

body.light-theme .top-item-row:hover {
    background: rgba(212,168,83,0.05);
}

body.light-theme .activity-timeline::before {
    background: linear-gradient(180deg, var(--primary), transparent);
}

body.light-theme .activity-item::before {
    border-color: #ffffff;
}

body.light-theme .top-item-rank.normal {
    background: rgba(0,0,0,0.06);
    color: #6b6b80;
}

/* Responsive */
@media (max-width: 480px) {
    .charts-row.two-col {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .reports-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-items-header,
    .top-item-row {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .top-items-header span:nth-child(2),
    .top-item-row .top-item-category {
        display: none;
    }

    .chart-container {
        height: 180px;
    }
}

/* Canvas animations */
@keyframes chartFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chart-card {
    animation: chartFadeIn 0.5s ease forwards;
}

.chart-card:nth-child(1) { animation-delay: 0.1s; }
.chart-card:nth-child(2) { animation-delay: 0.2s; }
.chart-card:nth-child(3) { animation-delay: 0.3s; }
.chart-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== END Reports Dashboard Styles ===== */