/* Base */
        :root {
            --bg-1: #05070A; --bg-2: #0F172A; --bg-3: #1E293B;
            --accent: #FFA500; --accent-2: #FFB347; --accent-glow: rgba(255,165,0,0.4);
            --text-1: #EFF3F8; --text-2: #CBD5E6; --text-3: #94A3B8;
            --green: #4ADE80; --red: #F87171; --blue: #60A5FA; --purple: #A855F7;
            --gold: #FFD700;
            --glass-bg: rgba(15,23,42,0.55); --glass-border: rgba(255,255,255,0.08);
            --cursor-size: 28px; --cursor-dot-size: 6px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Unbounded', sans-serif; background: var(--bg-1); color: var(--text-1); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; cursor: none; }
        a, button, .product-card, .tab-pill, .icon-btn, .user-avatar, .feature-card, .feature-icon, input, select, textarea, .chat-msg, .order-card, .review-card, .ud-item, .review-mini, .stat-item, .modal-product-image, .product-image, .product-img, .btn, .chat-list-item, .sort-select, .category-select, .price-input, .form-input, .team-tab, .theme-select-wrap, .pay-method, .wallet-card, .balance-badge, .role-filter-pill, .image-upload-area, .deposit-filter-pill { cursor: none; }
        .container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
        .glass { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); }

        .cursor-ring { position: fixed; top: 0; left: 0; width: var(--cursor-size); height: var(--cursor-size); border: 2px solid var(--purple); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s; box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); opacity: 1; }
        .cursor-dot { position: fixed; top: 0; left: 0; width: var(--cursor-dot-size); height: var(--cursor-dot-size); background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--accent); transition: transform 0.2s, opacity 0.2s; opacity: 1; }
        .cursor-ring.hover { width: 50px; height: 50px; background: rgba(168, 85, 247, 0.15); border-color: var(--accent); }
        .cursor-dot.hover { transform: translate(-50%, -50%) scale(0.5); }
        .cursor-ring.click { width: 20px; height: 20px; }
        .cursor-hidden { opacity: 0 !important; }
        @media (max-width: 768px) { body, a, button, .product-card, .tab-pill, .icon-btn, .user-avatar, .feature-card, .feature-icon, input, select, textarea, .chat-msg, .order-card, .review-card, .ud-item, .review-mini, .stat-item, .modal-product-image, .product-image, .product-img, .btn, .chat-list-item, .sort-select, .category-select, .price-input, .form-input { cursor: auto; } .cursor-ring, .cursor-dot { display: none; } }

        .site-bg { position: fixed; inset: 0; z-index: -3; background: radial-gradient(circle at 20% 20%, rgba(255,165,0,0.12), transparent 50%), radial-gradient(circle at 80% 70%, rgba(168,85,247,0.10), transparent 50%), radial-gradient(circle at 50% 50%, #0F172A, #020408); }
        .grid-bg { position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
        .noise { position: fixed; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); pointer-events: none; }
        .floating-particles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
        .particle { position: absolute; background: var(--accent); border-radius: 50%; filter: blur(1px); animation: floatP 25s infinite linear; }
        @keyframes floatP { 0% { transform: translateY(100vh); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-20vh); opacity: 0; } }
        @keyframes logoP { 50% { box-shadow: 0 0 35px var(--accent-glow); } }
        @keyframes bounce { 50% { transform: scale(1.15); } }
        @keyframes blink { 50% { opacity: 0.4; } }

        /* Debug Panel */
        #debugToggle { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 48px; height: 48px; background: rgba(15,23,42,0.9); border: 1px solid rgba(168,85,247,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--purple); font-size: 1.1rem; z-index: 99990; cursor: none; transition: all 0.3s; box-shadow: 0 0 20px rgba(168,85,247,0.2); }
        #debugToggle:hover { background: rgba(168,85,247,0.2); border-color: var(--purple); box-shadow: 0 0 30px rgba(168,85,247,0.4); transform: scale(1.1); }
        #debugPanel { position: fixed; bottom: 5rem; right: 1.5rem; width: 480px; max-height: 70vh; background: rgba(10,15,30,0.97); border: 1px solid rgba(168,85,247,0.3); border-radius: 1rem; z-index: 99991; display: flex; flex-direction: column; box-shadow: 0 8px 40px rgba(0,0,0,0.6); overflow: hidden; font-family: 'Unbounded', sans-serif; }
        .debug-header { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: rgba(168,85,247,0.08); border-bottom: 1px solid rgba(168,85,247,0.15); flex-shrink: 0; }
        .debug-header > span:first-child { font-size: 0.85rem; font-weight: 600; color: var(--purple); white-space: nowrap; }
        .debug-tabs { display: flex; gap: 0.3rem; margin-left: auto; }
        .debug-tab { background: none; border: 1px solid transparent; color: var(--text-3); font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 0.4rem; cursor: none; font-family: inherit; transition: all 0.2s; }
        .debug-tab.active { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); color: var(--purple); }
        .debug-tab:hover { color: var(--text-1); }
        .debug-close { background: none; border: none; color: var(--text-3); font-size: 1rem; cursor: none; padding: 0.3rem; }
        .debug-close:hover { color: var(--red); }
        .debug-clear { background: none; border: none; color: var(--text-3); font-size: 0.9rem; cursor: none; padding: 0.3rem; margin-right: 0.3rem; }
        .debug-clear:hover { color: #FBBF24; }
        .debug-body { flex: 1; overflow-y: auto; padding: 0.8rem; }
        .debug-body::-webkit-scrollbar { width: 4px; }
        .debug-body::-webkit-scrollbar-track { background: transparent; }
        .debug-body::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 2px; }
        .debug-loading { text-align: center; color: var(--text-3); padding: 2rem; font-size: 0.85rem; }
        .debug-empty { text-align: center; color: var(--text-3); padding: 1.5rem; font-size: 0.85rem; }
        .debug-empty p { margin-top: 0.5rem; }
        .debug-entry { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
        .debug-entry:last-child { border-bottom: none; }
        .debug-entry-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
        .debug-entry-type { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--text-3); }
        .debug-entry-time { font-size: 0.65rem; color: var(--text-3); margin-left: auto; }
        .debug-entry-msg { font-size: 0.78rem; color: var(--text-2); word-break: break-word; line-height: 1.4; }
        .debug-entry-file { font-size: 0.68rem; color: var(--text-3); font-family: monospace; margin-top: 0.2rem; }
        .debug-sys-section { margin-bottom: 1rem; }
        .debug-sys-section h4 { font-size: 0.78rem; color: var(--purple); margin-bottom: 0.5rem; font-weight: 600; }
        .debug-sysrow { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.78rem; }
        .debug-sysrow span:first-child { color: var(--text-3); }
        .debug-sysrow b { color: var(--text-1); }
        .debug-table { border: 1px solid rgba(255,255,255,0.06); border-radius: 0.5rem; overflow: hidden; }
        .debug-tbl-row { display: grid; grid-template-columns: 1fr 80px 80px; padding: 0.35rem 0.6rem; font-size: 0.72rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
        .debug-tbl-head { background: rgba(168,85,247,0.08); color: var(--text-3); font-weight: 600; }
        .debug-ext-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
        .debug-ext { font-size: 0.68rem; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.04); border-radius: 0.3rem; color: var(--text-3); }
        .debug-log { font-size: 0.7rem; background: rgba(0,0,0,0.3); padding: 0.8rem; border-radius: 0.5rem; overflow-x: auto; color: var(--text-3); white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; line-height: 1.5; }
        @media (max-width: 768px) { #debugPanel { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; max-height: 60vh; } }