@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff41;
    --dark-bg: #0a0e14;
    --darker-bg: #050810;
    --terminal-bg: #0d1117;
    --border-color: #1a1f2e;
    --text-primary: #00ff41;
    --text-secondary: #33ff66;
    --text-muted: #4d7c5e;
    --accent-blue: #00d9ff;
    --accent-red: #ff0055;
    --accent-purple: #bd00ff;
    --glow-color: rgba(0, 255, 65, 0.5);
}

body {
    font-family: 'Fira Code', 'Share Tech Mono', monospace;
    background: var(--darker-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(189, 0, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.1),
        0 0 80px rgba(0, 255, 65, 0.05),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-green);
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
}

.header-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary-green);
    text-shadow: 0 0 10px var(--glow-color);
}

.header-title i {
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    color: var(--primary-green);
    font-weight: 600;
    text-shadow: 0 0 5px var(--glow-color);
}

.terminal-body {
    background: var(--terminal-bg);
    padding: 30px;
    min-height: 600px;
    font-size: 14px;
    line-height: 1.6;
}

.boot-sequence {
    margin-bottom: 30px;
}

.boot-line {
    margin: 5px 0;
    animation: typingEffect 0.5s steps(40, end);
    opacity: 0;
    animation-fill-mode: forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1.0s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }
.boot-line:nth-child(5) { animation-delay: 1.8s; }
.boot-line:nth-child(6) { animation-delay: 2.2s; }
.boot-line:nth-child(7) { animation-delay: 2.6s; }

@keyframes typingEffect {
    to { opacity: 1; }
}

.boot-ok {
    color: var(--primary-green);
    font-weight: 700;
    text-shadow: 0 0 5px var(--glow-color);
}

.boot-ready {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.main-content {
    display: none;
    animation: fadeInContent 1s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin: 40px 0 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cursor-blink {
    font-size: 48px;
    color: var(--primary-green);
    animation: cursorBlink 1s infinite;
    font-weight: 300;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    text-shadow: 
        0 0 20px var(--glow-color),
        0 0 40px var(--glow-color);
    letter-spacing: 3px;
}

.info-section {
    margin: 40px 0;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

.info-section p {
    margin: 10px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-color);
}

.section-title i {
    color: var(--accent-blue);
}

.endpoints-section {
    margin: 40px 0;
}

.highlight {
    color: var(--primary-green);
    font-weight: 600;
}

.endpoint-item {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-green);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.endpoint-item:hover {
    border-left-color: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
    transform: translateX(5px);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.endpoint-header i {
    color: var(--primary-green);
    font-size: 20px;
}

.endpoint-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.endpoint-badge {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: auto;
}

.badge-raw {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.badge-tested {
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.badge-singbox {
    background: rgba(189, 0, 255, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.badge-verified {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.endpoint-description {
    color: var(--text-muted);
    margin: 10px 0;
    line-height: 1.6;
}

.url-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.url-input {
    flex: 1;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 15px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px var(--glow-color);
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--text-secondary) 100%);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    color: var(--darker-bg);
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

.stats-section {
    margin: 60px 0 40px 0;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-green);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
    text-shadow: 0 0 10px var(--glow-color);
    margin: 10px 0;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.footer-section {
    margin: 60px 0 20px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.designer-credit {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
}

.anonymous-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-color);
    transition: all 0.3s ease;
    position: relative;
}

.anonymous-link:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

.anonymous-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.anonymous-link:hover::after {
    width: 100%;
}

.glitch {
    position: relative;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    animation: glitch-anim 3s infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.terminal-footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left i {
    color: var(--primary-green);
}

#currentTime {
    color: var(--accent-blue);
    font-weight: 600;
}

#typing {
    color: var(--primary-green);
    font-weight: 600;
}

#typing::after {
    content: '▮';
    animation: cursorBlink 1s infinite;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--text-secondary) 100%);
    color: var(--darker-bg);
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .container {
        margin: 20px 10px;
    }

    .terminal-body {
        padding: 20px 15px;
    }

    .logo-text {
        font-size: 36px;
    }

    .cursor-blink {
        font-size: 36px;
    }

    .url-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .terminal-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .endpoint-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 11px;
    }

    .logo-text {
        font-size: 28px;
    }

    .cursor-blink {
        font-size: 28px;
    }

    .endpoint-name {
        font-size: 14px;
    }

    .endpoint-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .url-input {
        font-size: 10px;
        padding: 10px;
    }
}