        :root[data-theme="dark"] { 
            --bg: #000000; 
            --nav: #161616; 
            --accent: #333333;
            --text: #ffffff; 
            --primary: #555555;
            --glass: rgba(10, 10, 10, 0.95); 
            --card: rgba(255, 255, 255, 0.03); 
        }
        :root[data-theme="solar"] { 
            --bg: #000000; 
            --nav: #161616; 
            --accent: #1a1a2e; 
            --text: #ffffff; 
            --primary: #1a1a2e; 
            --glass: rgba(10, 10, 25, 0.9); 
            --card: rgba(255, 255, 255, 0.05); 
        }
        
        * { box-sizing: border-box; }
        html, body { 
            height: 100%; 
            margin: 0; 
            padding: 0; 
            background: var(--bg); 
            font-family: 'Inter', sans-serif; 
            overflow: hidden; 
            color: var(--text); 
        }

        #particle-canvas { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            pointer-events: none; 
            z-index: 1; 
        }

        #tabs-bar { 
            display: none;
        }
        
        #tab-container { 
            display: flex; 
            gap: 2px;
            flex: 1;
            overflow-x: auto;
        }
        
        .tab { 
            padding: 10px 20px; 
            background: rgba(255,255,255,0.05); 
            border-radius: 10px 10px 0 0; 
            min-width: 140px; 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            gap: 10px; 
            font-size: 13px; 
            font-weight: 500; 
            cursor: pointer; 
            color: #aaa; 
            border: none; 
            transition: 0.2s; 
        }
        
        .tab.active { 
            background: var(--nav); 
            color: var(--text); 
            border-bottom: 2px solid #3b82f6;
        }
        
        .close-tab { 
            opacity: 0.5; 
            font-size: 16px; 
            margin-left: 8px; 
        }
        
        .close-tab:hover { 
            opacity: 1; 
            color: #ff0000; 
        }

        #add-tab-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px 15px;
            color: #fff;
            font-size: 20px;
            flex-shrink: 0;
        }

        #add-tab-btn:hover {
            opacity: 0.7;
        }

        .tab-modal-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            transition: all 0.2s;
            cursor: pointer;
            gap: 12px;
        }

        .tab-modal-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .tab-modal-item.active {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.3);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
        }

        .tab-favicon {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-info {
            flex: 1;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .tab-text {
            flex: 1;
            overflow: hidden;
        }

        .tab-modal-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tab-modal-url {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tab-close-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            font-size: 18px;
            opacity: 0.6;
        }

        .tab-close-btn:hover {
            background: rgba(255, 77, 77, 0.2);
            border-color: #ff4b4b;
            color: #ff4b4b;
            opacity: 1;
        }

        .add-new-tab-btn {
            width: 100%;
            padding: 14px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 12px;
            color: var(--primary);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 12px;
        }

        .add-new-tab-btn:hover {
            background: rgba(59, 130, 246, 0.15);
            transform: translateY(-1px);
        }

        #idk { 
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex; 
            align-items: center; 
            padding: 16px 20px; 
            background: var(--glass); 
            backdrop-filter: blur(15px);
            border-top: 1px solid var(--accent);
            gap: 16px; 
            z-index: 100;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            transform: translateY(100%);
            background: linear-gradient(to top, var(--glass), rgba(10, 10, 10, 0.98));
        }
        
        #idk.visible {
            transform: translateY(0) !important;
        }

        .nav-group { 
            display: flex; 
            gap: 6px; 
            align-items: center; 
            flex-shrink: 0; 
        }
        .nav-btn { 
            background: rgba(255, 255, 255, 0.05); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            color: var(--text); 
            cursor: pointer; 
            width: 38px; 
            height: 38px; 
            border-radius: 10px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            transition: all 0.2s; 
        }
        .nav-btn:hover { 
            background: rgba(255,255,255,0.12);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        .nav-btn svg { 
            width: 18px; 
            height: 18px; 
        }
        .search-input { 
            flex: 1; 
            padding: 12px 20px; 
            border: 1px solid var(--accent); 
            border-radius: 20px; 
            background: rgba(0, 0, 0, 0.3); 
            color: var(--text); 
            font-size: 14px; 
            outline: none; 
            transition: all 0.2s; 
        }
        .search-input:focus {
            border-color: var(--primary);
            background: rgba(0, 0, 0, 0.45);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        .search-input:hover {
            background: rgba(0, 0, 0, 0.38);
        }
        #view-navbar {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 140px;
            height: 5px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            border: 0.5px solid rgba(255, 255, 255, 0.15);
            border-radius: 100px;
            z-index: 50;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
        }

        #view-navbar:hover {
            background: rgba(255, 255, 255, 0.4);
            width: 160px;
        }

        #view-navbar.visible {
            opacity: 1;
            pointer-events: all;
        }
        #navbar-hover-area {
            position: fixed;
            bottom: 0;
            left: 0; 
            right: 0; 
            height: 60px; 
            z-index: 99;
        }

        #home-screen { 
            position: fixed; 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%); 
            z-index: 5; 
            text-align: center; 
            width: 90%; 
            max-width: 650px; 
        }
        
        .logo-text { 
            font-weight: 900; 
            font-size: 100px; 
            margin: 0 0 40px 0; 
            letter-spacing: -5px; 
            background: linear-gradient(to bottom, #333 0%, #fff 50%, #333 100%); 
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent; 
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); 
        }
        
        .shortcuts-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(80px, 80px)); 
            justify-content: center; 
            gap: 16px; 
        }
        
        .shortcut-tile { 
            position: relative;
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: center; 
            aspect-ratio: 1 / 1; 
            background: transparent; 
            border: none; 
            border-radius: 12px; 
            color: var(--text); 
            cursor: pointer; 
            transition: all 0.2s; 
            padding: 8px;
        }
        
        .shortcut-tile:hover { 
            transform: scale(1.05); 
            background: rgba(255, 255, 255, 0.05); 
        }

        .shortcut-tile:hover .delete-shortcut {
            opacity: 1;
        }
        
        .shortcut-tile img { 
            width: 40px; 
            height: 40px; 
            border-radius: 10px; 
            margin-bottom: 8px; 
        }
        
        .shortcut-tile span { 
            font-size: 11px; 
            font-weight: 500; 
            opacity: 0.7; 
            text-align: center;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .delete-shortcut {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 20px;
            height: 20px;
            background: rgba(255, 77, 77, 0.95);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 13px;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .delete-shortcut:hover {
            background: rgba(255, 77, 77, 1);
            transform: scale(1.15);
        }

        .add-shortcut-tile {
            border: 2px dashed rgba(255, 255, 255, 0.2);
            background: transparent;
        }

        .add-shortcut-tile:hover {
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.03);
        }

        .add-shortcut-tile svg {
            width: 28px;
            height: 28px;
            opacity: 0.4;
        }

        #iframe-viewport { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            z-index: 6; 
            background: transparent; 
            pointer-events: none; 
        }
        
        #iframe-viewport.active { 
            background: var(--bg); 
            pointer-events: auto; 
        }
        
        iframe { 
            border: none; 
            width: 100%; 
            height: 100%; 
            display: block; 
            background-color: var(--bg); 
        }

        .modal { 
            position: fixed; 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%); 
            background: var(--glass); 
            backdrop-filter: blur(25px); 
            padding: 24px; 
            border-radius: 16px; 
            z-index: 200; 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            width: 360px; 
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            max-height: 80vh;
            overflow-y: auto;
        }

        #settings-modal {
            width: 500px;
            max-width: 90vw;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        }
        
        .modal-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            margin-bottom: 18px; 
        }
        
        .modal-header h2 { 
            margin: 0; 
            font-size: 12px; 
            font-weight: 800; 
            text-transform: uppercase; 
            letter-spacing: 2px; 
            color: rgba(255, 255, 255, 0.4); 
        }

        .clear-all-btn {
            background: none;
            border: none;
            color: #ff4b4b;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .clear-all-btn:hover {
            opacity: 0.7;
        }
        
        .list-container { 
            max-height: 400px; 
            overflow-y: auto; 
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
        }

        .list-item { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 12px 16px; 
            background: rgba(255, 255, 255, 0.04); 
            border: 1px solid rgba(255, 255, 255, 0.06); 
            border-radius: 10px; 
            transition: 0.2s;
            cursor: pointer;
        }
        
        .list-item:hover { 
            background: rgba(255, 255, 255, 0.08); 
            border-color: rgba(255, 255, 255, 0.15); 
        }

        .history-item-content {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            overflow: hidden;
        }

        .history-favicon {
            width: 16px;
            height: 16px;
            border-radius: 4px;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.05);
        }

        .history-text {
            flex: 1;
            overflow: hidden;
        }

        .setting-row { 
            flex-direction: column; 
            align-items: flex-start; 
            gap: 6px;
            cursor: default;
        }
        
        .setting-label { 
            font-size: 10px; 
            font-weight: 800; 
            text-transform: uppercase; 
            color: rgba(255, 255, 255, 0.3); 
        }
        
        .setting-control { 
            width: 100%; 
            background: transparent; 
            border: none; 
            color: #fff; 
            font-size: 14px; 
            font-weight: 500; 
            outline: none; 
            padding: 4px 0;
            cursor: pointer;
            appearance: none;
        }

        .setting-control option {
            background-color: #1a1a1a;
            color: white;
        }

        .setting-input { 
            cursor: text; 
            width: 100%;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 14px;
        }
        
        .setting-input::placeholder { 
            color: rgba(255, 255, 255, 0.2); 
        }

        .modal-close-btn { 
            width: 100%; 
            margin-top: 20px; 
            padding: 14px; 
            background: #fff; 
            color: #000; 
            border: none; 
            border-radius: 10px; 
            font-weight: 700; 
            font-size: 13px; 
            cursor: pointer; 
            transition: 0.2s; 
        }
        
        .modal-close-btn:hover { 
            background: #e0e0e0; 
            transform: scale(1.02); 
        }
        
        .secondary-btn { 
            width: 100%; 
            margin-top: 8px; 
            padding: 10px; 
            background: rgba(255,255,255,0.05); 
            color: #fff; 
            border: 1px solid rgba(255,255,255,0.1); 
            border-radius: 10px; 
            font-size: 11px; 
            font-weight: 600; 
            cursor: pointer; 
            transition: 0.2s; 
        }
        
        .secondary-btn:hover { 
            background: rgba(255,255,255,0.12); 
        }

        .history-url { 
            font-size: 13px; 
            font-weight: 500; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
        }
        
        .history-time { 
            font-size: 10px; 
            color: rgba(255,255,255,0.2); 
            margin-top: 2px;
        }

        .history-delete-btn {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            font-size: 16px;
            opacity: 0.6;
        }

        .history-delete-btn:hover {
            background: rgba(255, 77, 77, 0.2);
            border-color: #ff4b4b;
            color: #ff4b4b;
            opacity: 1;
        }

        .hidden { 
            display: none !important; 
        }

        #loading-overlay {
            position: absolute;
            inset: 0;
            background-color: var(--bg);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            gap: 16px;
        }
        #loading-overlay.visible {
            display: flex;
        }
        .loader-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(255, 255, 255, 0.15);
            border-top-color: rgba(255, 255, 255, 1);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        #loading-message {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.3px;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }

        .form-group input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .toggle-switch {
            position: relative;
            width: 48px;
            height: 24px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .toggle-switch.active {
            background: #3b82f6;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .toggle-switch.active::after {
            left: 26px;
        }

        .setting-toggle-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }