/* unlock.css */
#unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020617; /* Sesuai tema DAPURUMUS */
    z-index: 99999999; /* Di atas segalanya, termasuk splash screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.unlock-panel {
    background: #ffffff;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.unlock-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.unlock-instruction {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
}

.unlock-instruction span {
    color: #2563eb;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    background: #eff6ff;
    padding: 2px 12px;
    border-radius: 6px;
    border: 1px dashed #bfdbfe;
}

/* Area Menggambar */
#unlock-canvas {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none; /* Mencegah layar ikut scroll saat menggambar */
    width: 100%;
    height: 300px;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

#unlock-canvas.success-glow {
    border-color: #10b981;
    background: #ecfdf5;
}

.unlock-footer {
    margin-top: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.unlock-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: 0.3s;
}

.progress-dot.active {
    background: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.progress-dot.done {
    background: #10b981;
}

/* Gaya untuk Mode CAPTCHA */
#captcha-canvas {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    letter-spacing: 5px;
}

#captcha-input {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    margin-bottom: 10px;
}

#captcha-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#captcha-verify-btn {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#captcha-verify-btn:hover {
    background: #2563eb;
}

.mode-switcher {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    transition: 0.3s;
}

.mode-switcher:hover {
    color: #1e40af;
}