:root {
            --primary: #9d4edd; 
            --bg: #0a0a0a;
            --card: #161616;
            --text: #ffffff;
            --secondary: #e0e0e0;
            --item-bg: #1f1f1f;
        }

        body { 
            font-family: 'Inter', -apple-system, sans-serif; 
            background: var(--bg); 
            color: var(--text); 
            margin: 0; 
            padding: 0;
            display: flex;
            justify-content: center;
        }

        .container { 
            width: 100%;
            max-width: 1200px;
            background: var(--card); 
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            border-left: 1px solid #222;
            border-right: 1px solid #222;
        }

        header { 
            padding: 30px 20px; 
            text-align: center;
            border-bottom: 1px solid #222;
            background: linear-gradient(180deg, #111 0%, #161616 100%);
        }

        .header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .logo {
            height: 90px;
            width: auto;
            filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.3));
        }

        h1 { 
            margin: 0; 
            font-size: 2rem; 
            font-weight: 800;
            letter-spacing: -1px;
            text-transform: uppercase;
        }
        h1 span { color: var(--primary); }

        .tabs { 
            display: flex; 
            padding: 15px; 
            gap: 10px;
            overflow-x: auto; 
            scrollbar-width: none;
            background: #0f0f0f;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #222;
        }
        .tabs::-webkit-scrollbar { display: none; }
        
        .tab-btn { 
            padding: 12px 20px; 
            border: 1px solid #333; 
            background: #1a1a1a; 
            color: #888; 
            cursor: pointer; 
            border-radius: 8px;
            font-weight: 600;
            white-space: nowrap;
            transition: 0.3s;
        }
        .tab-btn.active { 
            background: var(--primary); 
            color: white; 
            border-color: var(--primary);
        }

        .content { padding: 25px; flex-grow: 1; margin-bottom: 100px; }
        
        .category-page { 
            display: none; 
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        @media (min-width: 768px) {
            .category-page.active { display: grid; grid-template-columns: repeat(2, 1fr); }
            .tabs { justify-content: center; flex-wrap: wrap; }
        }

        @media (min-width: 1024px) {
            .category-page.active { grid-template-columns: repeat(3, 1fr); }
        }

        .category-page.active { display: grid; animation: fadeIn 0.3s ease; }
        
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .item { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 18px; 
            background: var(--item-bg); 
            border-radius: 12px;
            border: 1px solid #222;
        }

        .item-info strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: var(--secondary); }
        .item-info span { font-size: 0.9rem; color: var(--primary); font-weight: 700; }

        .switch {
            position: relative;
            display: inline-block;
            width: 46px;
            height: 24px;
        }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #333;
            transition: .3s;
            border-radius: 34px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 18px; width: 18px;
            left: 3px; bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        input:checked + .slider { background-color: var(--primary); }
        input:checked + .slider:before { transform: translateX(22px); }

        .footer-total { 
            position: fixed; 
            bottom: 0; 
            width: 100%;
            max-width: 1202px;
            background: rgba(10, 10, 10, 0.95); 
            backdrop-filter: blur(10px);
            padding: 20px; 
            border-top: 1px solid #222;
            box-sizing: border-box;
        }
        .total-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .total-label { color: #888; font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; }
        .total-value { font-size: 1.8rem; font-weight: 800; color: white; }
        
        .reset-btn {
            background: #ff4d4d;
            border: none;
            color: white;
            padding: 12px 25px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: 0.3s;
        }
        .reset-btn:hover { background: #cc0000; transform: scale(1.05); }