:root {
    --bg-dark: #080b11;
    --surface: rgba(13, 20, 35, 0.45);
    --surface-hover: rgba(20, 30, 52, 0.65);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #5d6874;
    --accent: #2f81f7;
    --accent-glow: rgba(47, 129, 247, 0.3);
    --success: #3fb950;
    --success-glow: rgba(63, 185, 80, 0.3);
    --danger: #f85149;
    --danger-glow: rgba(248, 81, 73, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hidden {
    display: none !important;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}
/* Blurred Neon Lights Background */
.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}
.glow-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #2f81f7 0%, transparent 70%);
}
.glow-2 {
    bottom: -15%;
    right: -15%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, #7928ca 0%, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
    position: relative;
}
.header-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
}
.header-content h1 span {
    font-weight: 300;
    color: var(--accent);
    margin-left: 2px;
}
.header-content p {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-top: 0.15rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Redesigned Dashboard KPI Grid */
.stats-grid {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-grow: 1;
    justify-content: center;
}
.stat-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg {
    width: 16px;
    height: 16px;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-icon {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
}
.btn-icon:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Button & Action Styles */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--accent-glow);
    touch-action: manipulation;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 129, 247, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
}
.btn-outline:hover {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Filter Controls Layout */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}
.list-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.list-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.list-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-group {
    display: flex;
    background: var(--surface);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.filter-group:focus-within {
    border-color: var(--border-hover);
}
.btn-filter {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    min-height: 32px;
}
.btn-filter.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Custom Styled Selector */
.custom-select {
    position: relative;
    display: inline-block;
}
.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 155px;
    background: transparent;
    border: none !important;
    border-radius: 9px !important;
    text-align: left;
}
.select-trigger svg {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.select-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-height: 220px;
    overflow-y: auto;
    background: #0c1221;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 100;
}
.select-option {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.select-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.select-option.active {
    background: var(--accent);
    color: white;
}

/* Beautiful Custom Side Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1500;
    visibility: hidden;
    transition: visibility 0.3s;
}
.drawer:not(.hidden) {
    visibility: visible;
}
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 10, 0.7);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.drawer:not(.hidden) .drawer-overlay {
    opacity: 1;
}
.drawer-content {
    position: absolute;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #090e18;
    border-left: 1px solid var(--border);
    padding: 2.5rem 2rem;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer:not(.hidden) .drawer-content {
    transform: translateX(-420px);
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}
.drawer-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}
.btn-icon-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
}
.btn-icon-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
#addProxyForm {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#addProxyForm .input-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
textarea {
    width: 100%;
    flex-grow: 1;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    line-height: 1.6;
    resize: none;
}
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Sleek Proxy Cards Grid & Design */
.proxy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}
.proxy-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.proxy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}
.proxy-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 129, 247, 0.35);
    box-shadow: 0 15px 35px rgba(47, 129, 247, 0.15);
    background: var(--surface-hover);
}
.proxy-card:hover::before {
    background: linear-gradient(90deg, var(--accent), #7928ca);
}

.proxy-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}
.status-badge span.badge-content {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 6px #3fb950, 0 0 10px rgba(63, 185, 80, 0.3); }
    50%       { box-shadow: 0 0 12px #3fb950, 0 0 20px rgba(63, 185, 80, 0.5); }
}
@keyframes statusPulseOffline {
    0%, 100% { box-shadow: 0 0 6px #f85149, 0 0 10px rgba(248, 81, 73, 0.3); }
    50%       { box-shadow: 0 0 12px #f85149, 0 0 20px rgba(248, 81, 73, 0.5); }
}
.status-online {
    color: #3fb950;
}
.status-online .status-dot {
    background: #3fb950;
    animation: statusPulse 3s infinite ease-in-out;
}
.status-offline {
    color: #f85149;
}
.status-offline .status-dot {
    background: #f85149;
    animation: statusPulseOffline 3s infinite ease-in-out;
}
.status-unknown {
    color: var(--text-muted);
}
.status-unknown .status-dot {
    background: var(--text-muted);
}

.country-flag {
    width: 26px;
    height: 17px;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    margin-left: auto;
}

/* Card Admin Action Buttons */
.admin-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.check-btn, .delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 !important;
    min-height: 0 !important;
    border: none;
}
.check-btn {
    background: rgba(47, 129, 247, 0.1);
    color: var(--accent);
}
.check-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.35);
}
.delete-btn {
    background: rgba(248, 81, 73, 0.1);
    color: var(--danger);
}
.delete-btn:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px var(--danger-glow);
}

.sparkline-container {
    margin: 0.75rem 0;
}
.uptime-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
}
.uptime-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success);
}
.uptime-bar {
    display: flex;
    gap: 3px;
    height: 16px;
}
.uptime-segment {
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}
.uptime-segment.up {
    background: var(--success);
}
.uptime-segment.down {
    background: var(--danger);
}
.uptime-segment:hover {
    transform: scaleY(1.25);
    filter: brightness(1.2);
}

/* Card details styling */
.proxy-details p {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.proxy-details strong {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.proxy-details span {
    text-align: right;
    font-size: 0.88rem;
    color: var(--text-primary);
    overflow-wrap: break-word;
}
.proxy-details p.host-row {
    flex-direction: column;
    gap: 4px;
}
.proxy-details p.host-row span {
    text-align: left;
    max-width: 100%;
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}
.proxy-card:hover .host-row span {
    white-space: normal;
    word-break: break-all;
}
.ping-value {
    font-weight: 700;
    font-family: monospace;
}
.ping-value.ping-good { color: var(--success); }
.ping-value.ping-med { color: var(--warning); }
.ping-value.ping-bad { color: var(--danger); }

/* Unified Bottom Actions Toolbar on Card */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 1.25rem;
}
.open-telegram-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    min-height: 38px;
    box-shadow: 0 4px 10px var(--accent-glow);
}
.open-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 129, 247, 0.4);
}
.copy-link-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
/* Tooltip for copy links */
.copy-link-btn::after {
    content: 'Скопировано!';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #101622;
    border: 1px solid var(--border-hover);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.copy-link-btn.copied::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Modals & Popups styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 10, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1800;
}
.modal-content {
    background: #090e18;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    padding: 2.25rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.modal-content input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.modal-content input[type="password"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* Search Box functionality */
.search-box {
    display: flex;
    align-items: center;
    position: relative;
}
.search-box input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0 1.25rem;
    height: 40px;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    color: white;
    outline: none;
}
.search-box.open input {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
    padding-right: 2.5rem;
    border-color: var(--border-hover);
}
.search-box .search-toggle {
    position: relative;
    z-index: 2;
}
.search-box.open .search-toggle {
    position: absolute;
    right: 0;
    background: transparent;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--accent);
}
.search-box.open .search-toggle:hover {
    transform: none;
    background: transparent;
}

/* Toast Alerts Container */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}
.toast {
    background: #0f172a;
    border: 1px solid var(--border-hover);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--accent);
    animation: toastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
@keyframes toastSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Loading animations & entry effects */
.card-enter {
    opacity: 0;
    transform: translateY(15px);
}
.card-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: var(--card-delay, 0s);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Next automatic check timer styling */
.next-check-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    transition: var(--transition);
}
.next-check-timer.timer-urgent {
    color: var(--danger);
    border-color: rgba(248, 81, 73, 0.3);
    background: rgba(248, 81, 73, 0.08);
}
.next-check-timer.timer-checking {
    color: var(--accent);
    border-color: rgba(47, 129, 247, 0.3);
    background: rgba(47, 129, 247, 0.08);
}
.next-check-timer.timer-checking .timer-icon {
    animation: spin 1.5s linear infinite;
}

/* Footer Section */
footer {
    margin-top: 6rem;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border);
}
.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}
.footer-link span {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.footer-link strong {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}
.footer-link strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}
.footer-link:hover span {
    color: var(--text-secondary);
}
.footer-link:hover strong::after {
    width: 100%;
}
.footer-link:hover {
    transform: translateY(-2px);
}

/* Media Queries (Adaptive & Mobile Layouts) */
@media (max-width: 1000px) {
    .stats-grid {
        width: 100%;
        justify-content: space-around;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    header {
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .header-content {
        flex: 1 1 auto;
    }
    .header-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
    .search-box.open {
        flex: 1;
    }
    .search-box.open input {
        width: 100%;
    }
    .stats-grid {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    .list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .list-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .filter-group {
        width: 100%;
    }
    .btn-filter {
        flex: 1;
        text-align: center;
    }
    .custom-select {
        flex: 1;
    }
    .select-trigger {
        width: 100%;
    }
    .select-options {
        width: 100%;
    }
    .proxy-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        margin: 0 1rem;
        padding: 1.75rem;
    }
}
@media (max-width: 480px) {
    header {
        margin-bottom: 2rem;
    }
    .stats-grid {
        gap: 0.75rem;
    }
    .stat-card {
        padding: 8px 12px;
        gap: 8px;
    }
    .stat-value {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 0.58rem;
    }
    .stat-icon {
        width: 28px;
        height: 28px;
    }
    }
}