/**
 * Verification Modal - Estilos Isolados
 * Todos os seletores com prefixo vm- para evitar conflitos
 */

/* Overlay */
.vm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vm-fade-in 0.3s ease;
}

@keyframes vm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.vm-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: vm-slide-up 0.3s ease;
}

@keyframes vm-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.vm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.vm-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.vm-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.vm-close:hover {
    color: #333;
}

/* Body */
.vm-body {
    padding: 32px 24px;
}

.vm-step {
    text-align: center;
}

.vm-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Method Selection */
.vm-methods-container {
    margin: 24px 0;
}

.vm-method-option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.vm-method-option:hover {
    border-color: var(--platform-primary-color, #1D1CE5);
    background: #f0f7ff;
}

.vm-method-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.vm-method-option label {
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.vm-no-methods {
    color: #dc3545;
    font-size: 14px;
    padding: 16px;
    background: #f8d7da;
    border-radius: 8px;
}

/* Code Input */
.vm-sent-to {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.vm-highlight {
    font-weight: 600;
    color: #333;
}

.vm-code-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.vm-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.vm-digit:focus {
    border-color: var(--platform-primary-color, #1D1CE5);
    box-shadow: 0 0 0 3px rgba(29, 28, 229, 0.1);
}

.vm-digit:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.vm-digit.vm-digit-error {
    border-color: #dc3545;
}

.vm-timer {
    font-size: 14px;
    color: #999;
    margin: 20px 0;
}

.vm-countdown {
    font-weight: 600;
    color: #333;
}

/* Errors */
.vm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 16px 0;
    text-align: center;
}

.vm-error-link {
    color: var(--platform-primary-color, #1D1CE5);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    margin-left: 4px;
}

.vm-error-link:hover {
    color: var(--platform-secondary-color, #1010AF);
}

.vm-resend-container {
    text-align: left;
    margin-top: 12px;
}

/* Actions */
.vm-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.vm-actions-split {
    justify-content: space-between;
}

/* Buttons */
.vm-btn {
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: relative;
    min-width: 140px;
}

.vm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vm-btn-primary {
    background: var(--platform-primary-color, #1D1CE5);
    color: white;
}

.vm-btn-primary:hover:not(:disabled) {
    background: var(--platform-secondary-color, #1010AF);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 28, 229, 0.3);
}

.vm-btn-secondary {
    color: var(--platform-primary-color, #1D1CE5);
}

.vm-btn-secondary:hover:not(:disabled) {
    background: #f0f7ff;
}

/* Loader */
.vm-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vm-spin 0.8s linear infinite;
}

@keyframes vm-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .vm-container {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .vm-code-container {
        gap: 4px;
    }
    
    .vm-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .vm-actions-split {
        flex-direction: column;
    }
    
    .vm-btn {
        width: 100%;
    }
}

