* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Turnstile Step */
#step-turnstile p {
    color: #666;
    margin-bottom: 20px;
}

.cf-turnstile {
    display: inline-block;
    margin: 20px 0;
}

.note {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* Loading Step */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#step-loading p {
    color: #666;
    margin-top: 20px;
}

/* Captcha Step */
.captcha-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#captcha-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.uuid-display {
    background: #f0f4ff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.uuid-display p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.uuid-code {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    background: white;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    user-select: all;
}

.instructions {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.instructions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.instructions li {
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

.command-box {
    background: #2c3e50;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.command-box code {
    color: #f8f9fa;
}

.answer-placeholder {
    color: #3498db;
    font-weight: bold;
}

.example-text {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    line-height: 1.5;
}

.example-text code {
    background: #e8f4f8;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Error Step */
.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #5568d3;
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .uuid-code {
        font-size: 16px;
    }
    
    .command-box {
        font-size: 14px;
        padding: 15px;
    }
}
