* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #fff;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #a8b2d1;
    font-size: 14px;
}

#proxy-display {
    color: #64ffda;
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.start {
    background: #64ffda;
    color: #0f0c29;
}
.start:hover:not(:disabled) {
    background: #52e0c4;
    transform: scale(1.05);
}

.stop {
    background: #ff6b6b;
    color: white;
}
.stop:hover:not(:disabled) {
    background: #e55a5a;
    transform: scale(1.05);
}

.reset {
    background: #ffd93d;
    color: #0f0c29;
}
.reset:hover:not(:disabled) {
    background: #f0c82a;
    transform: scale(1.05);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h3 {
    color: #8892b0;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 8px;
}

.stat-card p {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.log-container h3 {
    color: #8892b0;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
}

#log {
    color: #ccd6f6;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

#log .success {
    color: #64ffda;
}
#log .fail {
    color: #ff6b6b;
}
#log .info {
    color: #ffd93d;
}
#log .proxy {
    color: #a8b2d1;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 10px;
}