*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#0f0f0f;color:#e0e0e0;min-height:100vh}.app{max-width:1400px;margin:0 auto;padding:20px}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #333}.header h1{font-size:24px;font-weight:600}.header-actions{display:flex;gap:12px;align-items:center}.sync-btn{padding:8px 16px;border:none;border-radius:6px;background:#2563eb;color:#fff;font-size:14px;cursor:pointer;transition:background .2s}.sync-btn:hover{background:#1d4ed8}.sync-btn:disabled{background:#374151;cursor:not-allowed}.logout-btn{padding:8px 16px;border:1px solid #444;border-radius:6px;background:transparent;color:#e0e0e0;font-size:14px;cursor:pointer;transition:background .2s}.logout-btn:hover{background:#333}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-box{background:#1a1a1a;border:1px solid #333;border-radius:12px;padding:40px;width:100%;max-width:400px;text-align:center}.login-box h1{font-size:28px;margin-bottom:24px}.login-box form{display:flex;flex-direction:column;gap:12px}.login-box input{padding:12px 16px;border:1px solid #333;border-radius:6px;background:#0f0f0f;color:#e0e0e0;font-size:16px}.login-box input:focus{outline:none;border-color:#2563eb}.login-box button{padding:12px 16px;border:none;border-radius:6px;background:#2563eb;color:#fff;font-size:16px;cursor:pointer;transition:background .2s}.login-box button:hover{background:#1d4ed8}.login-box button:disabled{background:#374151;cursor:not-allowed}.login-error{margin-top:16px;padding:12px;background:#7f1d1d;color:#fca5a5;border-radius:6px;font-size:14px}.auth-form{display:flex;gap:8px;align-items:center}.auth-form input{padding:8px 12px;border:1px solid #333;border-radius:6px;background:#1a1a1a;color:#e0e0e0;font-size:14px;width:200px}.auth-form button{padding:8px 16px;border:none;border-radius:6px;background:#2563eb;color:#fff;font-size:14px;cursor:pointer;transition:background .2s}.auth-form button:hover{background:#1d4ed8}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#1a1a1a;border:1px solid #333;border-radius:8px;padding:16px}.stat-card .label{font-size:12px;color:#888;text-transform:uppercase;margin-bottom:4px}.stat-card .value{font-size:28px;font-weight:600}.config-info{background:#1a1a2e;border:1px solid #333;border-radius:8px;padding:16px;margin-bottom:24px;display:flex;gap:24px}.config-item{display:flex;flex-direction:column;gap:4px}.config-item .label{font-size:12px;color:#888}.config-item .value{font-size:16px;font-weight:500;color:#60a5fa}.proxy-table{width:100%;border-collapse:collapse;background:#1a1a1a;border-radius:8px;overflow:hidden}.proxy-table th,.proxy-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #333}.proxy-table th{background:#252525;font-size:12px;font-weight:600;text-transform:uppercase;color:#888}.proxy-table tr:hover{background:#252525}.proxy-table tr:last-child td{border-bottom:none}.status-badge{display:inline-block;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.status-badge.active{background:#166534;color:#86efac}.status-badge.expired{background:#7f1d1d;color:#fca5a5}.status-badge.banned{background:#92400e;color:#fcd34d}.status-badge.timeout{background:#4c1d95;color:#c4b5fd}.status-badge.slow{background:#164e63;color:#67e8f9}.actions{display:flex;gap:8px}.actions button{padding:6px 12px;border:none;border-radius:4px;font-size:12px;cursor:pointer;transition:opacity .2s}.actions button:hover{opacity:.8}.actions button.ban{background:#dc2626;color:#fff}.actions button.unban{background:#16a34a;color:#fff}.actions button.timeout{background:#7c3aed;color:#fff}.actions button.clear-timeout{background:#6b7280;color:#fff}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#1a1a1a;border:1px solid #333;border-radius:12px;padding:24px;width:100%;max-width:400px}.modal h3{margin-bottom:16px}.modal input{width:100%;padding:12px;border:1px solid #333;border-radius:6px;background:#0f0f0f;color:#e0e0e0;font-size:14px;margin-bottom:16px}.modal-actions{display:flex;gap:8px;justify-content:flex-end}.modal-actions button{padding:8px 16px;border:none;border-radius:6px;font-size:14px;cursor:pointer}.modal-actions button.cancel{background:#333;color:#e0e0e0}.modal-actions button.confirm{background:#7c3aed;color:#fff}.error{background:#7f1d1d;color:#fca5a5;padding:16px;border-radius:8px;margin-bottom:16px}.loading{text-align:center;padding:40px;color:#888}.mono{font-family:SF Mono,Monaco,Courier New,monospace;font-size:13px}.empty{text-align:center;padding:40px;color:#666}.notice{background:#14342b;color:#86efac;border:1px solid #166534;padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px}.stat-card.balance{background:#1a1726;border-color:#4c1d95}.stat-card.balance .value{color:#c4b5fd}.stat-card.good .value{color:#86efac}.stat-card.busy .value{color:#fcd34d}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}.filters{display:flex;gap:8px;flex-wrap:wrap}.filter-chip{padding:6px 12px;border:1px solid #333;border-radius:999px;background:#1a1a1a;color:#aaa;font-size:13px;cursor:pointer;transition:all .15s}.filter-chip:hover{border-color:#555;color:#e0e0e0}.filter-chip.active{background:#2563eb;border-color:#2563eb;color:#fff}.chip-count{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:#ffffff1f;font-size:11px;font-weight:600}.search{padding:8px 14px;border:1px solid #333;border-radius:6px;background:#1a1a1a;color:#e0e0e0;font-size:14px;min-width:260px}.search:focus{outline:none;border-color:#2563eb}.bulk-bar{display:flex;align-items:center;gap:12px;background:#15233e;border:1px solid #2563eb;border-radius:8px;padding:10px 16px;margin-bottom:16px}.bulk-count{font-size:14px;font-weight:600;color:#93c5fd;margin-right:auto}.bulk-renew{padding:8px 16px;border:none;border-radius:6px;background:#7c3aed;color:#fff;font-size:14px;cursor:pointer}.bulk-renew:hover{background:#6d28d9}.bulk-clear{padding:8px 16px;border:1px solid #444;border-radius:6px;background:transparent;color:#e0e0e0;font-size:14px;cursor:pointer}.bulk-clear:hover{background:#333}.check-col{width:40px;text-align:center}.proxy-table input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#2563eb}.proxy-table tr.row-selected{background:#15233e}.proxy-table tr.row-selected:hover{background:#1b2c4d}.occ-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.occ-badge.occupied{background:#422006;color:#fdba74;cursor:help}.occ-badge.occupied.prod{background:#450a0a;color:#fca5a5}.occ-env{margin-left:6px;padding:1px 5px;border-radius:4px;background:#ffffff24;font-size:10px;font-weight:700;letter-spacing:.04em;vertical-align:middle}.occ-badge.free{background:#14342b;color:#86efac}.fail-count{display:inline-block;min-width:22px;text-align:center;padding:2px 8px;border-radius:999px;background:#7f1d1d;color:#fca5a5;font-weight:600;font-size:12px;cursor:help}.fail-zero{color:#555}.expired-text{color:#fca5a5}.actions button.renew{background:#0d9488;color:#fff}.modal-text{font-size:13px;color:#aaa;margin-bottom:16px;line-height:1.5}.renew-confirm{background:#0d9488!important}.renew-confirm:hover{background:#0f766e!important}.empty-row{text-align:center;padding:32px;color:#666}
