.vina-modal-backdrop {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    direction: rtl;
    font-family: inherit;
}

.vina-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: vinaFadeIn 0.25s ease-out;
}

@keyframes vinaFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.vina-modal-close {
    position: absolute;
    top: 14px; left: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.vina-modal-close:hover { color: #334155; }

.vina-modal-header { text-align: center; margin-bottom: 20px; }
.vina-brand-icon { font-size: 36px; margin-bottom: 8px; }
.vina-modal-header h3 { margin: 0 0 6px 0; font-size: 18px; font-weight: 800; color: #0f172a; }
.vina-modal-header p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }

.vina-auth-form { display: flex; flex-direction: column; gap: 14px; }
.vina-field-group { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.vina-field-group label { font-size: 12px; font-weight: 700; color: #334155; }

.vina-field-group input {
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}
.vina-field-group input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }

.vina-submit-btn {
    height: 44px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.vina-submit-btn:hover { background: #4338ca; }
.vina-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.vina-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #64748b;
}
.vina-timer-row a { color: #4f46e5; text-decoration: none; font-weight: bold; }

.vina-alert {
    margin-top: 14px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.vina-alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.vina-alert.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }