* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.crt-screen {
    background: radial-gradient(circle at 50% 20%, rgba(0, 255, 140, 0.07), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(0, 120, 80, 0.15), transparent 60%),
        #050505;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.crt-screen::before,
.crt-screen::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.crt-screen::before {
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0px,
        rgba(0, 0, 0, 0.2) 1px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.35;
    animation: scanlines 8s linear infinite;
}

.crt-screen::after {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
    opacity: 0.8;
}

.crt-screen .container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem 2.5rem 3rem;
    border: 1px solid rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.15), inset 0 0 25px rgba(0, 255, 0, 0.05);
    background: rgba(5, 5, 5, 0.75);
}

.crt-screen header {
    border-bottom: 1px solid rgba(0, 255, 0, 0.45);
}

.crt-screen .status-indicator {
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
}

.crt-screen .panel,
.crt-screen .error-panel {
    background: rgba(0, 0, 0, 0.3);
}

.crt-screen .glitch {
    text-shadow: 0 0 18px rgba(0, 255, 0, 0.6);
    animation: glitch 3s infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #00ff00;
}

.glitch {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 5px #00ff00; }
    50% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(50px, 9999px, 80px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 70px, 0); }
    100% { clip: rect(10px, 9999px, 40px, 0); }
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.panel {
    border: 1px solid #00ff00;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #00ff00;
    border-left: 2px solid #00ff00;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #00ff00;
    border-right: 2px solid #00ff00;
}

.panel-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item .label {
    font-size: 0.75rem;
    color: #00ff00;
    opacity: 0.7;
}

.info-item .value {
    font-size: 1.1rem;
    color: #00ffff;
}

.traffic-panel {
    margin-bottom: 2rem;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    border: 1px solid #00ff00;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ffff);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #00ff00;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.update-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.proxy-panel {
    margin-bottom: 2rem;
}

.proxy-input-group {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
}

.form-select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.proxy-output {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #00ff00;
    background: #0a0a0a;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    min-height: 100px;
    word-break: break-all;
}

.proxy-output .proxy-item {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 255, 0, 0.3);
}

.proxy-output .proxy-item:last-child {
    border-bottom: none;
}

.proxy-output .copy-all {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.refresh-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.refresh-btn:active {
    transform: scale(0.98);
}

.error-panel {
    text-align: center;
    padding: 3rem;
}

.register-btn {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1.5rem;
    margin-top: 4rem;
}

.error {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: glitch 1s infinite;
}

.error-text {
    font-size: 1.2rem;
    opacity: 0.7;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid #0a0a0a;
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #00ff00;
}

@media (max-width: 720px) {
    .container {
        padding: 1.5rem 1.25rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .glitch {
        font-size: 1.4rem;
    }

    .panel {
        padding: 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .refresh-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

.terminal-line {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.prompt {
    color: #00ff00;
    margin-right: 0.5rem;
}

.cursor {
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hidden {
    display: none !important;
}
