:root {
    --primary: #00fff5;
    --secondary: #bc13fe;
    --accent: #39ff14;
    --bg: #030712;
    --card-bg: rgba(9, 14, 23, 0.85);
    --text: #ffffff;
    --text-muted: #64748b;
    --error: #ef4444;
    --success: #39ff14;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    z-index: -1;
}

.background-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-bottom: 3rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.cursor-blink {
    animation: blink 1s step-start infinite;
    color: var(--primary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.drop-zone {
    background: var(--card-bg);
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 24px;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.drop-content .icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.drop-content p {
    font-size: 1.2rem;
    color: var(--text);
}

.drop-content span {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.status-area {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    margin-top: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: loading-bar 2s infinite ease-in-out;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
        width: 30%;
    }

    50% {
        width: 60%;
    }

    100% {
        transform: translateX(400%);
        width: 30%;
    }
}

.success-card {
    padding: 1rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--success);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    animation: pulse-neon 2s infinite alternate;
}

@keyframes pulse-neon {
    0% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
    }

    100% {
        box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
    }
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin: 1.5rem 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.footer {
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}