* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 20px 16px;
    max-width: 280px;
    width: 100%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
    font-size: 12px;
    padding: 0;
}

.close-btn:hover {
    background: #e53e3e;
    border-color: #e53e3e;
    color: white;
    transform: rotate(90deg);
}

.shield-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shield-icon i {
    font-size: 18px;
    color: white;
}

h1 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 4px;
}

.subtitle {
    color: #718096;
    font-size: 10px;
    margin-bottom: 16px;
}

.captcha-box {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.captcha-question {
    font-size: 11px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 600;
}

.math-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.number-box {
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
}

.operator {
    font-size: 18px;
    color: #4a5568;
    font-weight: 700;
}

.answer-input {
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 700;
    color: #2d3748;
    transition: all 0.3s;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-verify {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 6px;
    border-radius: 4px;
    margin-top: 8px;
    display: none;
    font-size: 9px;
    font-weight: 600;
}

.error-message.show {
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.info-text {
    color: #9ca3af;
    font-size: 8px;
    margin-top: 10px;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .verify-container {
        padding: 16px 12px;
    }

    .math-display {
        flex-direction: column;
        gap: 5px;
    }

    .number-box {
        padding: 6px 10px;
        font-size: 16px;
        min-width: 30px;
    }

    .button-group {
        flex-direction: column;
    }
}
