:root {
    --bg-main: #050718;
    --bg-card: #0E112A;
    --bg-light: #161A3D;
    --border: rgba(0,204,255,0.2);
    --primary: #00CCFF;
    --success: #00FF99;
    --text: #FFFFFF;
    --text-muted: #A8B2D5;
    --shadow: 0 0 40px rgba(0,204,255,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

.progress {
    height: 12px;
    border-radius: 6px;
    background: var(--bg-light);
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 0.4s ease;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #009955);
    color: #000;
    width: 100%;
    font-size: 1.1rem;
}

.btn:disabled {
    background: #22294B;
    color: #555;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0,255,153,0.3);
}

/* Slider CAPTCHA */
.slider-wrap {
    position: relative;
    height: 56px;
    background: var(--bg-light);
    border-radius: 12px;
    margin: 30px 0;
    cursor: grab;
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 52px;
    height: calc(100% - 4px);
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    color: #000;
    transition: all 0.1s ease;
    box-shadow: 0 0 15px rgba(0,204,255,0.5);
}

.slider-success {
    background: var(--success);
    box-shadow: 0 0 15px rgba(0,255,153,0.5);
}

/* Task Item */
.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 18px;
    border-radius: 12px;
    margin: 12px 0;
    border: 1px solid rgba(0,204,255,0.1);
}

.btn-task {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.btn-open { background: var(--primary); color: #000; }
.btn-wait { background: #2A2F55; color: #ccc; pointer-events: none; }
.btn-done { background: var(--success); color: #000; font-weight: bold; }

/* Code Display */
.code-box {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--success);
    background: var(--bg-main);
    padding: 24px;
    border-radius: 16px;
    margin: 30px 0;
    border: 2px solid rgba(0,255,153,0.4);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
