        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', Tahoma, sans-serif; -webkit-tap-highlight-color: transparent; }
        body { transition: background-color 0.3s, color 0.3s; min-height: 100vh; padding-bottom: 70px; background-color: #f3f4f6; }
        .dark body { background-color: #111827; color: #e5e7eb; }
        .card-custom { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1rem; padding: 1rem; transition: background-color 0.3s, border-color 0.3s; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
        .dark .card-custom { background-color: rgba(31, 41, 55, 0.85); border-color: rgba(255, 255, 255, 0.05); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
        .btn-gold { background: linear-gradient(135deg, #f9d976, #c9a227); color: #1a1a2e; border: none; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: bold; transition: transform 0.2s; cursor: pointer; }
        .btn-gold:hover { transform: scale(1.02); }
        .btn-gold:active { transform: scale(0.96); }
        .btn-outline-gold { background: transparent; border: 1px solid #c9a227; color: #c9a227; padding: 0.4rem 0.8rem; border-radius: 0.5rem; font-weight: bold; transition: 0.2s; cursor: pointer; }
        .btn-outline-gold:hover { background: rgba(201, 162, 39, 0.1); }
        .qty-btn { width: 2rem; height: 2rem; border-radius: 0.5rem; border: none; background: #e5e7eb; color: #1f2937; font-size: 1.2rem; font-weight: bold; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; }
        .dark .qty-btn { background: #374151; color: #f3f4f6; }
        .qty-btn:active { transform: scale(0.9); }
        .qty-btn.minus { background: #fca5a5; }
        .dark .qty-btn.minus { background: #7f1d1d; color: #fca5a5; }
        .qty-btn.plus { background: #6ee7b7; }
        .dark .qty-btn.plus { background: #065f46; color: #6ee7b7; }
        .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-top: 1px solid rgba(0, 0, 0, 0.1); display: flex; justify-content: space-around; align-items: center; height: 65px; z-index: 200; padding-bottom: env(safe-area-inset-bottom); transition: background 0.3s, border-color 0.3s; }
        .dark .bottom-nav { background: rgba(17, 24, 39, 0.95); border-top-color: rgba(255, 255, 255, 0.1); }
        .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0; color: #9ca3af; cursor: pointer; transition: 0.3s; background: none; border: none; font-family: 'Vazirmatn', sans-serif; position: relative; font-size: 0.7rem; }
        .nav-item.active { color: #c9a227; }
        .nav-item.active::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 3px; background: linear-gradient(90deg, #f9d976, #c9a227); border-radius: 0 0 3px 3px; }
        .nav-icon { font-size: 1.3rem; }
        .ar-container { position: relative; width: 100%; height: 300px; border-radius: 1rem; overflow: hidden; background: #000; border: 2px solid #c9a227; }
        #arVideo { width: 100%; height: 100%; object-fit: cover; }
        .ar-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
        .ar-frame { width: 75%; height: 65%; border: 2px dashed #f9d976; border-radius: 1rem; position: relative; animation: framePulse 2s ease-in-out infinite; }
        @keyframes framePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 217, 118, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(249, 217, 118, 0); } }
        .ar-corner { position: absolute; width: 20px; height: 20px; border: 3px solid #f9d976; }
        .ar-corner.tl { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
        .ar-corner.tr { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
        .ar-corner.bl { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
        .ar-corner.br { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }
        .ar-status { position: absolute; bottom: 12px; right: 12px; left: 12px; background: rgba(0, 0, 0, 0.7); padding: 6px 12px; border-radius: 8px; text-align: center; font-size: 0.75rem; color: #fff; }
        .ar-controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
        .ar-btn { padding: 6px 12px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); border: 1px solid #c9a227; color: #f9d976; border-radius: 7px; cursor: pointer; font-size: 0.7rem; font-family: 'Vazirmatn', sans-serif; }
        .ar-result { position: absolute; top: 12px; left: 12px; right: 12px; background: rgba(16, 185, 129, 0.95); padding: 12px; border-radius: 9px; text-align: center; font-weight: bold; display: none; font-size: 0.85rem; animation: slideDown 0.4s ease; color: #fff; }
        .ar-result.fail { background: rgba(239, 68, 68, 0.95); }
        @keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } }
        .toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #10b981; color: #fff; padding: 10px 20px; border-radius: 8px; z-index: 9999; font-size: 0.85rem; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); animation: toastIn 0.3s ease; max-width: 90%; }
        .toast.error { background: #ef4444; }
        .toast.warn { background: #f59e0b; }
        @keyframes toastIn { from { transform: translate(-50%, -20px); opacity: 0; } }
        .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; display: none; }
        .modal-overlay.show { display: flex; }
        .modal-box { background: #fff; border-radius: 1rem; padding: 1.5rem; max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; transition: background 0.3s; }
        .dark .modal-box { background: #1f2937; color: #e5e7eb; }
        .modal-box .modal-title { font-weight: bold; font-size: 1.1rem; color: #c9a227; }
        .modal-box .modal-close { background: none; border: none; color: #9ca3af; font-size: 1.2rem; cursor: pointer; }
        .badge { padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; display: inline-block; }
        .badge-success { background: #d1fae5; color: #065f46; }
        .dark .badge-success { background: #064e3b; color: #6ee7b7; }
        .badge-warn { background: #fef3c7; color: #92400e; }
        .dark .badge-warn { background: #78350f; color: #fbbf24; }
        .badge-danger { background: #fee2e2; color: #991b1b; }
        .dark .badge-danger { background: #7f1d1d; color: #fca5a5; }
        .badge-info { background: #dbeafe; color: #1e40af; }
        .dark .badge-info { background: #1e3a8a; color: #93c5fd; }
        .badge-pending { background: #fed7aa; color: #9a3412; }
        .dark .badge-pending { background: #78350f; color: #fdba74; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
        th, td { padding: 8px 6px; text-align: right; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
        .dark th, .dark td { border-bottom-color: rgba(255, 255, 255, 0.05); }
        th { background: rgba(201, 162, 39, 0.1); color: #c9a227; font-weight: bold; }
        .dark th { background: rgba(201, 162, 39, 0.2); }
        .theme-toggle { background: rgba(255, 255, 255, 0.2); border: none; border-radius: 9999px; padding: 0.3rem 0.7rem; cursor: pointer; transition: 0.3s; color: #1f2937; }
        .dark .theme-toggle { background: rgba(255, 255, 255, 0.1); color: #f3f4f6; }
        .theme-toggle:hover { background: rgba(255, 255, 255, 0.4); }
        .dark .theme-toggle:hover { background: rgba(255, 255, 255, 0.2); }
        .role-btn { cursor: pointer; }
        .role-btn.active { border-color: #c9a227 !important; background-color: rgba(249, 217, 118, 0.15) !important; }
        .dark .role-btn.active { background-color: rgba(249, 217, 118, 0.2) !important; }
        .hidden { display: none !important; }
        .landing-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 1.5rem; padding: 2rem 1.5rem; text-align: center; color: white; }
        .dark .landing-hero { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
        .landing-hero .gold-text { color: #f9d976; }
        .landing-hero .sub-text { color: #a0aec0; }
        .guest-tab-btn { cursor: pointer; transition: all 0.2s; white-space: nowrap; }
        .guest-tab-btn.active { background-color: rgba(249, 217, 118, 0.15) !important; color: #c9a227 !important; border-color: #c9a227 !important; }
        .dark .guest-tab-btn.active { background-color: rgba(249, 217, 118, 0.2) !important; }
        .guest-tab-content { display: none; }
        .guest-tab-content.active { display: block; }
        .approve-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; background: #10b981; color: white; border: none; cursor: pointer; margin-left: 4px; }
        .approve-btn:hover { background: #059669; }
        .reject-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; background: #ef4444; color: white; border: none; cursor: pointer; }
        .reject-btn:hover { background: #dc2626; }
        .edit-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; background: #3b82f6; color: white; border: none; cursor: pointer; margin-left: 4px; }
        .edit-btn:hover { background: #2563eb; }
        .deliver-btn { padding: 4px 12px; border-radius: 4px; font-size: 0.7rem; background: #10b981; color: white; border: none; cursor: pointer; }
        .deliver-btn:hover { background: #059669; }
        .login-nav-btn { background: linear-gradient(135deg, #f9d976, #c9a227); color: #1a1a2e; padding: 0.3rem 1rem; border-radius: 9999px; font-weight: bold; border: none; cursor: pointer; font-size: 0.8rem; transition: transform 0.2s; }
        .login-nav-btn:hover { transform: scale(1.05); }
        .user-badge { padding: 0.2rem 0.8rem; border-radius: 9999px; font-size: 0.7rem; background: rgba(249, 217, 118, 0.15); border: 1px solid #c9a227; color: #c9a227; }
        .price-row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: rgba(249, 217, 118, 0.05); border: 1px solid rgba(201, 162, 39, 0.15); }
        .dark .price-row { background: rgba(249, 217, 118, 0.08); }
        .intro-card { background: linear-gradient(135deg, rgba(249, 217, 118, 0.1), rgba(201, 162, 39, 0.05)); border: 1px solid rgba(201, 162, 39, 0.2); }
        .dark .intro-card { background: linear-gradient(135deg, rgba(249, 217, 118, 0.08), rgba(201, 162, 39, 0.03)); }
        .message-item { border: 1px solid rgba(201, 162, 39, 0.2); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
        .sub-tab { padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; cursor: pointer; border: 1px solid transparent; transition: 0.2s; background: rgba(0,0,0,0.03); }
        .dark .sub-tab { background: rgba(255,255,255,0.05); }
        .sub-tab.active { background: rgba(249, 217, 118, 0.15); color: #c9a227; border-color: #c9a227; font-weight: bold; }
        .dark .sub-tab.active { background: rgba(249, 217, 118, 0.2); }
        .media-item { position: relative; display: inline-block; margin: 4px; }
        .media-item img, .media-item video { max-width: 150px; max-height: 150px; border-radius: 8px; border: 2px solid rgba(201, 162, 39, 0.3); }
        .media-delete { position: absolute; top: 4px; left: 4px; background: rgba(239, 68, 68, 0.9); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.7rem; }
