:root {
    --primary-gradient: linear-gradient(135deg, #00d4aa 0%, #00a8e8 50%, #0077b6 100%);
    --card-bg: rgba(13, 27, 42, 0.95);
    --border-glow: rgba(0, 212, 170, 0.3);
    --success-color: #00d4aa;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --info-color: #00a8e8;
}
.check-proxy-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #0a1628 0%, #0d1b2a 50%, #1b263b 100%);
}
.check-proxy-page .container {
    max-width: 100%;
    width: 100%;
    padding: 0 30px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}
.checker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    align-items: stretch;
}
.checker-container .card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    padding: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.checker-container .card:hover {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 0 25px 80px rgba(0, 212, 170, 0.15);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}
.card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}
.input-section {
    margin-bottom: 20px;
    flex: 1;
}
.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}
.input-label i {
    color: var(--success-color);
}
.proxy-textarea {
    width: 100%;
    min-height: 180px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}
.proxy-textarea:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15);
}
.proxy-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.format-hints {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.format-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
}
.format-hint i {
    color: var(--info-color);
    font-size: 0.7rem;
}
.options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.option-group {
    min-width: 0;
}
.option-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    display: block;
}
.option-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.option-select:focus {
    outline: none;
    border-color: var(--success-color);
}
.option-select option {
    background: #1b263b;
    color: white;
}
.action-buttons {
    display: flex;
    gap: 12px;
}
.btn-check {
    flex: 1;
    padding: 14px 25px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-check:hover::before {
    left: 100%;
}
.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}
.btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.3);
}
.stat-card.total { border-left: 3px solid var(--info-color); }
.stat-card.live { border-left: 3px solid var(--success-color); }
.stat-card.dead { border-left: 3px solid var(--danger-color); }
.stat-card.rate { border-left: 3px solid var(--warning-color); }
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.stat-card.total .stat-value { color: var(--info-color); }
.stat-card.live .stat-value { color: var(--success-color); }
.stat-card.dead .stat-value { color: var(--danger-color); }
.stat-card.rate .stat-value { color: var(--warning-color); }
.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.progress-section {
    margin-bottom: 15px;
    display: none;
}
.progress-section.active {
    display: block;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.progress-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}
.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success-color);
}
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 8px;
    transition: width 0.3s ease;
    width: 0%;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.filter-tab {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}
.filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}
.filter-tab .count {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.results-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}
.results-actions {
    display: flex;
    gap: 8px;
}
.btn-export {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
}
.btn-export.live {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 212, 170, 0.3);
}
.btn-export.live:hover {
    background: rgba(0, 212, 170, 0.25);
}
.btn-export.all {
    background: rgba(0, 168, 232, 0.15);
    color: var(--info-color);
    border: 1px solid rgba(0, 168, 232, 0.3);
}
.btn-export.all:hover {
    background: rgba(0, 168, 232, 0.25);
}
.results-table-wrapper {
    flex: 1;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.results-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.results-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.results-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.5);
    border-radius: 3px;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
}
.results-table th,
.results-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.results-table th {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.results-table td {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}
.results-table tbody tr {
    transition: background 0.2s ease;
}
.results-table tbody tr:hover {
    background: rgba(0, 212, 170, 0.05);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-badge.live {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success-color);
}
.status-badge.dead {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger-color);
}
.status-badge.checking {
    background: rgba(255, 165, 2, 0.15);
    color: var(--warning-color);
}
.location-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.country-flag {
    font-size: 1rem;
}
.response-time {
    font-family: monospace;
    color: var(--success-color);
    font-size: 0.75rem;
}
.proxy-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}
.empty-state p {
    font-size: 1rem;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.toast.success {
    background: linear-gradient(135deg, #00d4aa, #00a8e8);
}
.toast.error {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
}
.toast.warning {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--success-color);
}
@media (max-width: 1200px) {
    .checker-container {
        gap: 25px;
    }
    .check-proxy-page .container {
        padding: 0 25px;
    }
}
@media (max-width: 992px) {
    .checker-container {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }
    .check-proxy-page .container {
        padding: 0 20px;
    }
    .page-title {
        font-size: 2rem;
    }
    .options-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .check-proxy-page {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    .check-proxy-page .container {
        padding: 0 15px;
    }
    .page-header {
        margin-bottom: 25px;
    }
    .page-title {
        font-size: 1.6rem;
    }
    .page-subtitle {
        font-size: 0.95rem;
    }
    .checker-container .card {
        padding: 20px;
        border-radius: 15px;
    }
    .card-header {
        margin-bottom: 18px;
        padding-bottom: 15px;
    }
    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-desc {
        font-size: 0.8rem;
    }
    .proxy-textarea {
        min-height: 180px;
        padding: 14px;
        font-size: 0.85rem;
    }
    .format-hints {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .format-hint {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    .options-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }
    .option-label {
        font-size: 0.8rem;
    }
    .option-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .action-buttons {
        flex-direction: row;
        gap: 12px;
    }
    .btn-check, .btn-secondary {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 15px 8px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .results-actions {
        width: 100%;
    }
    .btn-export {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .results-table-wrapper {
        max-height: 350px;
    }
    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .proxy-text {
        font-size: 0.75rem;
    }
    .status-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .back-link {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}
@media (max-width: 576px) {
    .check-proxy-page .container {
        padding: 0 12px;
    }
    .checker-container .card {
        padding: 18px;
    }
    .page-title {
        font-size: 1.4rem;
    }
    .options-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card {
        padding: 12px 8px;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .format-hints {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        flex-direction: column;
    }
}