:root {
    --primary: #FF6B00;
    --primary-light: #FF8C3F;
    --primary-dark: #E05A00;
    --secondary: #333333;
    --secondary-light: #555555;
    --secondary-dark: #222222;
    --accent-1: #4285F4;
    --accent-2: #34A853;
    --accent-3: #FBBC05;
    --accent-4: #EA4335;
    --accent-5: #9C27B0;
    --accent-6: #00BCD4;
    --success: #28A745;
    --info: #17A2B8;
    --warning: #FFC107;
    --danger: #DC3545;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-800-rgb: 52, 58, 64;
    --gray-900: #212529;
    --black: #000000;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-light: #F8F9FA;
    --text-dark: #343A40;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--secondary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 107, 0, 0.03) 10px,
            rgba(255, 107, 0, 0.03) 20px
        );
    pointer-events: none;
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Lock Icon Animation */
.lock-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.lock-icon {
    width: 100%;
    height: 100%;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(255, 107, 0, 0.3));
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Main Content */
.error-code {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-message {
    font-size: 18px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Captcha Container */
.captcha-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 20px;
    padding: 0;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-title {
    font-weight: 600;
    font-size: 16px;
}

.captcha-badge {
    background: var(--white);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: blink 2s infinite;
}

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

.captcha-body {
    padding: 30px;
}

.captcha-instruction {
    color: var(--gray-300);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Captcha Game */
.captcha-game {
    margin: 20px 0;
}

.captcha-question {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.captcha-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.captcha-btn {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
    border: 2px solid transparent;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.captcha-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.captcha-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

.captcha-btn:hover::before {
    left: 100%;
}

.captcha-btn.wrong {
    animation: shake 0.5s ease;
    background: linear-gradient(135deg, var(--danger), #B71C1C);
}

.captcha-btn.correct {
    animation: bounce 0.5s ease;
    background: linear-gradient(135deg, var(--success), #1B5E20);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.checkbox-container {
    margin: 30px 0;
    animation: slideIn 0.5s ease-out;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
    background: rgba(255, 107, 0, 0.1);
}

.checkbox-custom {
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 20px;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-label {
    font-size: 18px;
    color: var(--gray-300);
}

.robot-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 24px;
    animation: robotDance 1s ease infinite;
}

@keyframes robotDance {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Slider Verification */
.slider-container {
    margin: 30px 0;
    animation: slideIn 0.5s ease-out;
}

.slider-instruction {
    color: var(--gray-300);
    margin-bottom: 15px;
}

.slider-track {
    position: relative;
    height: 60px;
    background: linear-gradient(90deg, var(--gray-700), var(--gray-800));
    border-radius: 30px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.slider-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.slider-thumb {
    position: absolute;
    left: 30px;
    font-size: 30px;
    cursor: grab;
    z-index: 2;
    transition: left 0.1s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.slider-destination {
    font-size: 30px;
    z-index: 1;
    margin-left: auto;
}

/* Spin Button */
.spin-container {
    margin: 30px 0;
    animation: slideIn 0.5s ease-out;
}

.spin-instruction {
    color: var(--gray-300);
    margin-bottom: 20px;
}

.spin-button {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    color: var(--white);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: spin 2s linear infinite;
}

.spin-button.stopped {
    animation: none;
}

.spin-button:hover:not(.spinning) {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.4);
}

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

/* Loading Bar */
.captcha-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.loading-bar {
    height: 6px;
    background: var(--gray-700);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    animation: none;
    border-radius: 3px;
}

.loading-bar.active::after {
    animation: loading 2s ease forwards;
}

@keyframes loading {
    to { width: 100%; }
}

.captcha-status {
    color: var(--gray-400);
    font-size: 14px;
}

/* Success Message */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success);
    border-radius: 20px;
    padding: 40px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: successBounce 1s ease infinite;
}

@keyframes successBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--gray-300);
    margin-bottom: 25px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--success), #1B5E20);
    border: none;
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
}

/* Info Section */
.info-section {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    min-width: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 0, 0.1);
}

.info-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray-400);
    font-size: 14px;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 30px;
    opacity: 0.1;
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 10s;
    animation-duration: 30s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 15s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 28s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .main-title {
        font-size: 36px;
    }
    
    .captcha-options {
        flex-direction: column;
        align-items: center;
    }
    
    .captcha-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .info-section {
        flex-direction: column;
    }
    
    .info-card {
        width: 100%;
    }
}
