:root {
            --bg: #080a0f; --surface: #0e1119; --surface2: #141820;
            --border: #1c2235; --border2: #242c42;
            --accent: #00e5ff; --accent2: #7c3aed; --accent3: #0099bb;
            --green: #00ff88; --red: #ff3b5c; --yellow: #ffd600;
            --text: #e2e8f0; --muted: #64748b; --muted2: #8899aa;
            --mono: 'JetBrains Mono', monospace;
            --sans: 'Syne', sans-serif;
            --radius: 12px;
            --shadow: 0 4px 24px rgba(0,0,0,.4);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            overflow-y: scroll; /* Fix scrollbar jump */
        }
        /* Сетка фона */
        body::before {
            content: '';
            position: fixed; inset: 0;
            background-image:
                linear-gradient(rgba(0,229,255,.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,229,255,.025) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none; z-index: 0;
        }
        /* Свечение вверху */
        body::after {
            content: '';
            position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
            width: 800px; height: 400px;
            background: radial-gradient(ellipse, rgba(0,229,255,.06) 0%, transparent 70%);
            pointer-events: none; z-index: 0;
        }

        .app { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 24px 80px; }

        /* ======= HEADER ======= */
        header {
            padding: 28px 0 24px;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid var(--border);
            margin-bottom: 28px;
        }
        .logo { display: flex; align-items: center; gap: 16px; }
        .logo-icon {
            width: 48px; height: 48px;
            background: linear-gradient(135deg, var(--accent), var(--accent2));
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px;
            box-shadow: 0 0 24px rgba(0,229,255,.25);
        }
        .logo-text { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
        .logo-text span { color: var(--accent); }
        .logo-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .header-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
        .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
        .dot.pulse { animation: dotPulse 2s infinite; }
        .dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); animation: none; }
        @keyframes dotPulse { 0%,100%{opacity:1; box-shadow: 0 0 8px var(--green);} 50%{opacity:.5; box-shadow: 0 0 2px var(--green);} }

        /* ======= STAT CARDS ======= */
        .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        .stat-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px 22px;
            position: relative; overflow: hidden;
            transition: border-color .2s, transform .2s, box-shadow .2s;
            cursor: default;
        }
        .stat-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
            background: var(--accent-color, var(--accent));
        }
        .stat-card::after {
            content: ''; position: absolute; bottom: 0; right: 0;
            width: 80px; height: 80px;
            background: radial-gradient(circle, rgba(var(--accent-rgb, 0,229,255),.06) 0%, transparent 70%);
            pointer-events: none;
        }
        .stat-card:hover { border-color: rgba(0,229,255,.25); transform: translateY(-2px); box-shadow: var(--shadow); }
        .stat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
        .stat-value {
            font-family: var(--mono); font-size: 34px; font-weight: 700;
            color: var(--accent-color, var(--accent));
            margin: 8px 0 4px;
            transition: all .35s cubic-bezier(.4,0,.2,1);
        }
        .stat-desc { font-size: 12px; color: var(--muted); }

        /* ======= LAYOUT ======= */
        .main-grid { display: grid; grid-template-columns: 290px 1fr; gap: 20px; }
        .sidebar { display: flex; flex-direction: column; gap: 16px; }

        /* ======= PANEL ======= */
        .panel {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }
        .panel-header {
            padding: 13px 18px;
            border-bottom: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between;
        }
        .panel-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted2); }
        .controls-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

        /* ======= FORM ELEMENTS ======= */
        select, input[type=text] {
            width: 100%;
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 9px 12px;
            border-radius: 8px;
            font-family: var(--mono); font-size: 12px;
            outline: none;
            transition: border-color .2s, box-shadow .2s;
            cursor: pointer;
        }
        select:focus, input[type=text]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0,229,255,.08);
        }
        select option { background: var(--surface); }

        /* ======= BUTTONS ======= */
        .btn {
            width: 100%; padding: 10px;
            border: none; border-radius: 8px;
            font-family: var(--sans); font-size: 13px; font-weight: 700;
            cursor: pointer; transition: all .2s;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent3));
            color: #000;
        }
        .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,255,.3); }
        .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
        .btn-secondary {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--muted);
        }
        .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
        .btn-danger {
            background: transparent;
            border: 1px solid rgba(255,59,92,.3);
            color: var(--red);
        }
        .btn-danger:hover { background: rgba(255,59,92,.1); border-color: var(--red); }

        /* Кнопка запуска скрапинга */
        .btn-scrape {
            background: linear-gradient(135deg, var(--accent2), #5b21b6);
            color: #fff;
        }
        .btn-scrape:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,.35); }
        .btn-scrape:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

        /* ======= COUNTRIES LIST ======= */
        .countries-list { max-height: 340px; overflow-y: auto; padding: 6px; }
        .countries-list::-webkit-scrollbar { width: 4px; }
        .countries-list::-webkit-scrollbar-track { background: transparent; }
        .countries-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
        .country-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 7px 10px; border-radius: 6px; cursor: pointer;
            transition: background .15s; font-size: 13px; gap: 8px;
        }
        .country-item:hover { background: rgba(255,255,255,.04); }
        .country-item.active { background: rgba(0,229,255,.1); color: var(--accent); }
        .country-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
        .country-badge {
            font-family: var(--mono); font-size: 10px;
            background: var(--border); padding: 2px 7px;
            border-radius: 20px; color: var(--muted); flex-shrink: 0;
        }
        .countries-show-all {
            text-align: center; padding: 8px 10px;
            font-size: 11px; color: var(--accent);
            cursor: pointer; font-family: var(--mono);
            border-radius: 6px; transition: background .15s;
        }
        .countries-show-all:hover { background: rgba(0,229,255,.08); }

        /* ======= CONTENT ======= */
        .content { display: flex; flex-direction: column; gap: 16px; height: 100%; }

        /* Прогресс-бар скрапинга */
        .progress-bar-wrap {
            background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 15px 18px;
        }
        .progress-info {
            display: flex; justify-content: space-between; margin-bottom: 10px;
            font-family: var(--mono); font-size: 12px; color: var(--muted);
        }
        .progress-source { font-size: 11px; color: var(--muted); margin-top: 5px; font-family: var(--mono); min-height: 16px; }
        .progress-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--green));
            border-radius: 3px; transition: width .4s ease; width: 0%;
        }

        /* ======= PROXY TABLE ======= */
        .proxy-table-wrap {
            background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--radius); overflow: hidden;
            display: flex; flex-direction: column;
        }
        .table-toolbar {
            padding: 11px 16px; border-bottom: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
        }
        .toolbar-left { display: flex; align-items: center; gap: 10px; }
        .table-count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
        .filter-input {
            width: 200px; padding: 6px 12px;
            background: var(--bg); border: 1px solid var(--border);
            border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none;
            transition: border-color .2s;
        }
        .filter-input:focus { border-color: var(--accent); }
        .toolbar-right { display: flex; align-items: center; gap: 8px; }
        .export-btn {
            padding: 6px 13px;
            background: transparent; border: 1px solid var(--border);
            border-radius: 6px; color: var(--muted);
            font-family: var(--mono); font-size: 11px; cursor: pointer; transition: all .2s;
        }
        .export-btn:hover { border-color: var(--green); color: var(--green); }

        /* Таблица */
        .proxy-table { width: 100%; border-collapse: collapse; }
        .proxy-table th {
            padding: 9px 16px; text-align: left;
            font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--muted);
            text-transform: uppercase; letter-spacing: .8px;
            border-bottom: 1px solid var(--border);
            background: var(--bg); cursor: pointer; user-select: none;
            transition: color .15s;
            position: sticky; top: 0; z-index: 10;
        }
        .proxy-table th:hover { color: var(--accent); }
        .proxy-table th .sort-arrow { font-size: 9px; margin-left: 3px; }
        .proxy-table td {
            padding: 9px 16px; font-family: var(--mono); font-size: 12px;
            border-bottom: 1px solid rgba(28,34,53,.7);
        }
        .proxy-table tr:last-child td { border-bottom: none; }
        .proxy-table tr { transition: background .12s; }
        .proxy-table tr:hover td { background: rgba(255,255,255,.025); }
        .proxy-addr { color: var(--accent); font-weight: 600; }
        .copy-btn, .check-btn {
            background: none; border: none; color: var(--muted);
            cursor: pointer; padding: 3px 7px; border-radius: 5px;
            font-size: 12px; transition: all .15s;
        }
        .copy-btn:hover, .check-btn:hover { color: var(--accent); background: rgba(0,229,255,.07); }
        .copy-btn.copied { color: var(--green); }
        .check-btn.checking { color: var(--yellow); animation: spin .7s linear infinite; }
        .check-btn.ok { color: var(--green); }
        .check-btn.dead { color: var(--red); }

        /* Скорость */
        .speed-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
        .speed-fast { background: rgba(0,255,136,.12); color: var(--green); }
        .speed-mid  { background: rgba(255,214,0,.12); color: var(--yellow); }
        .speed-slow { background: rgba(255,59,92,.12); color: var(--red); }

        /* Скролл таблицы */
        .table-scroll { flex: 1; max-height: 450px; overflow-y: auto; }
        .table-scroll::-webkit-scrollbar { width: 4px; }
        .table-scroll::-webkit-scrollbar-track { background: transparent; }
        .table-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

        /* ======= LOG PANEL ======= */
        .log-panel {
            background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--radius); overflow: hidden;
            display: flex; flex-direction: column;
        }
        .log-body {
            font-family: var(--mono); font-size: 11px;
            flex: 1; overflow-y: auto;
            padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
        }
        .log-body::-webkit-scrollbar { width: 3px; }
        .log-body::-webkit-scrollbar-thumb { background: var(--border2); }
        .log-line {
            display: grid; grid-template-columns: 66px 1fr; gap: 8px;
            animation: fadeIn .18s ease;
            padding: 1px 0;
        }
        @keyframes fadeIn { from{opacity:0;transform:translateY(3px)} to{opacity:1;transform:translateY(0)} }
        .log-time { color: var(--muted); }
        .log-ok   { color: var(--green); }
        .log-fail { color: var(--red); }
        .log-info { color: var(--accent); }

        /* ======= EMPTY STATE ======= */
        .empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
        .empty-icon { font-size: 40px; margin-bottom: 12px; }
        .empty-text { font-size: 14px; line-height: 1.6; }

        /* ======= SCRAPE PROGRESS OVERLAY ======= */
        .scrape-overlay {
            background: var(--surface2); border: 1px solid var(--accent2);
            border-radius: var(--radius); padding: 14px 18px;
            display: none; gap: 12px; flex-direction: column;
            box-shadow: 0 0 24px rgba(124,58,237,.15);
        }
        .scrape-overlay.visible { display: flex; }
        .scrape-overlay-title { font-size: 12px; font-weight: 700; color: var(--accent2); font-family: var(--mono); }
        .scrape-sources-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
        .scrape-sources-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 2px; transition: width .3s ease; width: 0%; }
        .scrape-sources-text { font-family: var(--mono); font-size: 11px; color: var(--muted); }

        /* ======= TOAST ======= */
        .toast {
            position: fixed; bottom: 24px; right: 24px;
            background: var(--surface2); border: 1px solid var(--border);
            padding: 11px 18px; border-radius: 10px;
            font-family: var(--mono); font-size: 12px; color: var(--text);
            opacity: 0; transform: translateY(8px);
            transition: all .25s ease; z-index: 1000; pointer-events: none;
            backdrop-filter: blur(8px);
        }
        .toast.show { opacity: 1; transform: translateY(0); }
        .toast.success { border-color: var(--green); color: var(--green); }
        .toast.error   { border-color: var(--red);   color: var(--red); }

        /* ======= ANIMATIONS ======= */
        @keyframes spin { to { transform: rotate(360deg); } }
        .spinner { width: 14px; height: 14px; border: 2px solid rgba(0,229,255,.25); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
        .spin { animation: spin .7s linear infinite; }

        .type-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; font-family: var(--mono); text-transform: uppercase; }
        .type-http { background: rgba(0,229,255,.12); color: var(--accent); border: 1px solid rgba(0,229,255,.2); }
        .type-https { background: rgba(167,139,250,.12); color: #a78bfa; border: 1px solid rgba(167,139,250,.2); }
        .type-socks5 { background: rgba(0,255,136,.12); color: var(--green); border: 1px solid rgba(0,255,136,.2); }
        .type-socks4 { background: rgba(255,214,0,.12); color: var(--yellow); border: 1px solid rgba(255,214,0,.2); }

        /* ======= SKELETON LOADER ======= */
        .skeleton {
            background: linear-gradient(90deg, var(--surface) 25%, var(--border2) 50%, var(--surface) 75%);
            background-size: 200% 100%;
            animation: skeletonLoading 1.5s infinite;
            border-radius: 4px;
            display: inline-block;
        }
        @keyframes skeletonLoading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .skeleton-text { height: 12px; width: 100%; }
        .skeleton-badge { height: 16px; width: 50px; border-radius: 4px; }
        .skeleton-pill { height: 20px; width: 80px; border-radius: 20px; }
        
        /* ======= SVG ICON SIZING ======= */
        .lucide {
            width: 14px;
            height: 14px;
            stroke-width: 2.5px;
            display: inline-block;
            vertical-align: middle;
        }
        .logo-icon .lucide {
            width: 24px;
            height: 24px;
            stroke-width: 2px;
            color: #000;
        }
        .btn .lucide {
            margin-right: 6px;
            margin-top: -2px;
        }
        .copy-btn .lucide, .check-btn .lucide {
            width: 13px;
            height: 13px;
            margin: 0;
        }
        .header-status .lucide {
            margin-right: 6px;
            margin-top: -2px;
        }

        .bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
        .phone-result-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
        .phone-result-table td { padding: 5px 0; border: none; font-size: 11px; }
        .phone-result-table td:first-child { color: var(--muted); width: 120px; }
        .phone-result-table td:last-child { color: var(--text); font-weight: 600; text-align: right; }

        /* ======= RESPONSIVE ======= */
        @media (max-width: 1100px) { .main-grid { grid-template-columns: 260px 1fr; } }
        @media (max-width: 900px)  { .main-grid { grid-template-columns: 1fr; } .stats-row { grid-template-columns: repeat(2, 1fr); } .bottom-grid { grid-template-columns: 1fr; } }
        @media (max-width: 520px)  { .stats-row { grid-template-columns: 1fr 1fr; } .filter-input { width: 140px; } }

        /* ======= TEMP MAIL ======= */
        .tm-address-bar {
            display: flex; align-items: center; gap: 6px;
            background: var(--surface2); border: 1px solid var(--border2);
            border-radius: 8px; padding: 8px 10px;
            font-family: var(--mono); font-size: 11px; color: var(--accent);
            word-break: break-all; min-height: 34px;
        }
        .tm-address-bar span { flex: 1; }
        .tm-msg-list { display: flex; flex-direction: column; gap: 4px; height: 420px; max-height: 420px; overflow-y: auto; }
        .tm-msg-item {
            background: var(--surface2); border: 1px solid var(--border);
            border-radius: 8px; padding: 8px 10px; cursor: pointer;
            transition: border-color .15s, background .15s;
        }
        .tm-msg-item:hover, .tm-msg-item.active { border-color: var(--accent); background: #00e5ff0d; }
        .tm-msg-item.unread { border-left: 3px solid var(--accent); }
        .tm-msg-from { font-size: 13px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .tm-msg-subject { font-size: 14px; color: var(--text); font-weight: 600; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .tm-msg-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
        .tm-msg-viewer {
            background: var(--surface2); border: 1px solid var(--border);
            border-radius: 8px; padding: 12px; font-size: 11px; color: var(--text);
            height: 420px; max-height: 420px; overflow-y: auto; line-height: 1.5;
            display: flex; flex-direction: column;
        }
        .tm-msg-viewer iframe { width: 100%; border: none; min-height: 280px; background: #fff; border-radius: 4px; flex: 1; }
        .tm-attachment {
            display: inline-flex; align-items: center; gap: 5px;
            background: var(--surface); border: 1px solid var(--border2);
            border-radius: 6px; padding: 4px 8px; font-size: 10px;
            color: var(--muted2); cursor: pointer; transition: border-color .15s;
            text-decoration: none; margin: 2px;
        }
        .tm-attachment:hover { border-color: var(--accent); color: var(--accent); }
        .tm-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 0; }
        .tm-new-badge {
            display: inline-block; background: var(--accent); color: #000;
            border-radius: 99px; padding: 0 6px; font-size: 9px; font-weight: 700;
            animation: pulse-badge .8s ease infinite alternate;
        }
        @keyframes pulse-badge { from { opacity: 1; } to { opacity: .5; } }
        .tm-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }

        /* Custom Searchable Dropdown for Phone Generator */
        .custom-select-wrapper {
            position: relative;
            flex: 1;
            min-width: 0;
        }
        .custom-select-input {
            cursor: pointer;
            padding-right: 30px !important;
        }
        .custom-select-arrow {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--muted);
            font-size: 10px;
            transition: transform .2s;
        }
        .custom-select-dropdown {
            position: absolute;
            top: 100%; left: 0; right: 0;
            background: var(--surface);
            border: 1px solid var(--border2);
            border-radius: 8px;
            margin-top: 4px;
            max-height: 220px;
            overflow-y: auto;
            z-index: 100;
            box-shadow: var(--shadow);
            display: none;
            flex-direction: column;
            animation: fadeIn .15s ease;
        }
        .custom-select-dropdown::-webkit-scrollbar { width: 4px; }
        .custom-select-dropdown::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
        
        .custom-select-option {
            padding: 8px 12px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background .12s, color .12s;
            font-family: var(--mono);
        }
        .custom-select-option:hover,
        .custom-select-option.highlighted {
            background: rgba(0,229,255,.08);
            color: var(--accent);
        }
        .custom-select-option.active {
            background: rgba(0,229,255,.12);
            color: var(--accent);
            font-weight: 600;
        }
        .custom-select-no-results {
            padding: 12px;
            text-align: center;
            color: var(--muted);
            font-size: 11px;
        }

        /* ======= Вкладки (Tabs) ======= */
        .tabs-container {
            display: flex;
            gap: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 5px;
            border-radius: 14px;
            margin-bottom: 24px;
            width: fit-content;
            position: relative;
            z-index: 10;
        }
        .tab-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            border: none;
            color: var(--muted);
            padding: 10px 20px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .5px;
            border-radius: 10px;
            cursor: pointer;
            transition: all .22s cubic-bezier(.4,0,.2,1);
            font-family: var(--sans);
        }
        .tab-btn:hover {
            color: var(--text);
            background: rgba(255, 255, 255, 0.02);
        }
        .tab-btn.active {
            color: #080a0f;
            background: var(--accent);
            box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
        }
        .tab-btn i {
            width: 14px;
            height: 14px;
        }

        /* Анимации вкладок */
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: tabFadeIn .3s cubic-bezier(.4,0,.2,1);
        }
        @keyframes tabFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Новая сетка утилит */
        .toolkit-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }
        @media (max-width: 900px) {
            .toolkit-grid {
                grid-template-columns: 1fr;
            }
        }
    
        /* --- Glassmorphism --- */
        .panel, .stat-card, .progress-bar-wrap, .proxy-table-wrap {
            background: rgba(14, 17, 25, 0.65) !important;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }
        .stat-card:hover {
            background: rgba(14, 17, 25, 0.8) !important;
            border-color: rgba(0, 229, 255, 0.4) !important;
        }
        header {
            background: rgba(8, 10, 15, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            margin-top: -28px;
            padding-top: 28px;
            position: sticky;
            top: 0;
            z-index: 100;
        }