.saved-payment-buttons { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 14px; 
    flex-wrap: wrap; 
}

.saved-payment-btn { 
    flex: 1; 
    min-width: 140px; 
    padding: 12px 20px; 
    border: 2px solid #e9ecef; 
    border-radius: 12px; 
    background: white; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

.saved-payment-btn:hover { 
    border-color: #667eea; 
    background: #f8f9fa; 
    transform: translateY(-2px); 
}

.saved-payment-btn-logo { 
    height: 28px; 
    width: auto; 
    max-width: 80px; 
    object-fit: contain; 
}

.saved-payment-btn-text { 
    font-weight: 600; 
    font-size: 16px; 
    color: #333; 
}

.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 100001 !important; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    overflow-y: auto; 
}

.modal-overlay.active { 
    display: flex; 
}

.modal-container { 
    background: white; 
    border-radius: 16px; 
    max-width: 500px; 
    width: 100%; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
}

.modal-container--friendly .modal-body { 
    padding: 28px 24px; 
}

.modal-container--wide { 
    max-width: 520px; 
}

.modal-header { 
    padding: 24px; 
    border-bottom: 1px solid #e9ecef; 
    position: sticky; 
    top: 0; 
    background: white; 
    z-index: 1; 
    border-radius: 16px 16px 0 0; 
}

.modal-header--gradient { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-bottom: none; 
    padding: 28px 24px 24px; 
}

.modal-header--gradient .modal-title { 
    color: white; 
    font-size: 22px; 
    font-weight: 700; 
    margin: 0; 
    padding-right: 36px; 
}

.modal-header--gradient .modal-subtitle { 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 14px; 
    margin: 6px 0 0; 
    font-weight: 500; 
}

.modal-header--gradient .modal-close { 
    color: rgba(255, 255, 255, 0.9); 
}

.modal-header--gradient .modal-close:hover { 
    color: white; 
}

.modal-header h2 { 
    margin: 0; 
    font-size: 24px; 
    font-weight: 700; 
    color: #333; 
}

.modal-title { 
    font-size: 24px; 
    font-weight: 700; 
    color: #333; 
}

.modal-subtitle { 
    display: none; 
}

.modal-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: none; 
    border: none; 
    font-size: 28px; 
    color: #666; 
    cursor: pointer; 
    line-height: 1; 
    padding: 4px 8px; 
    border-radius: 6px; 
    transition: color 0.2s, background 0.2s; 
}

.modal-close:hover { 
    color: #333; 
    background: rgba(0, 0, 0, 0.05); 
}

.modal-body { 
    padding: 24px; 
}

.modal-body-intro { 
    color: #555; 
    font-size: 15px; 
    line-height: 1.5; 
    margin: 0 0 20px; 
}

.modal-actions { 
    margin-top: 24px; 
}

.modal-actions .btn-secondary { 
    margin-top: 10px; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group--spaced { 
    margin-bottom: 24px; 
}

.form-label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #333; 
    font-size: 14px; 
}

.form-label--center { 
    text-align: center; 
    margin-bottom: 12px; 
}

.form-label-required { 
    color: #667eea; 
}

.form-label-optional { 
    font-weight: 500; 
    color: #888; 
    font-size: 13px; 
}

.form-input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-size: 16px; 
    transition: border-color 0.2s, box-shadow 0.2s; 
}

.form-input--large { 
    padding: 14px 18px; 
    font-size: 16px; 
}

.form-input:focus { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); 
}

.phone-input-wrapper { 
    position: relative; 
    display: flex; 
    align-items: stretch; 
}

.phone-input-wrapper--modal { 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    overflow: visible; 
    transition: border-color 0.2s, box-shadow 0.2s; 
}

.phone-input-wrapper--modal:focus-within { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); 
}

.phone-country-select { 
    position: relative; 
    border: none; 
    border-right: 1px solid #e9ecef; 
    border-radius: 8px 0 0 8px; 
    background: #f8f9fa; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    padding: 12px 10px 12px 14px; 
    cursor: pointer; 
    z-index: 5; 
    transition: all 0.2s ease; 
    flex-shrink: 0; 
}

.phone-country-select:hover { 
    background: #f1f3f5; 
}

.phone-country-select.active { 
    background: #eef2ff; 
    border-color: #667eea; 
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1); 
}

.phone-country-select-content { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
}

.phone-country-select .flag-icon { 
    line-height: 1; 
    flex-shrink: 0; 
    display: inline-flex; 
    align-items: center; 
}

.phone-country-select .flag-icon img { 
    width: 20px; 
    height: 15px; 
    object-fit: cover; 
    border: 1px solid #e9ecef; 
}

.phone-country-select .dropdown-arrow { 
    font-size: 0.65rem; 
    color: #666; 
    margin-left: 6px; 
    transition: transform 0.2s ease; 
    flex-shrink: 0; 
}

.phone-country-select.active .dropdown-arrow { 
    transform: rotate(180deg); 
}

.phone-input-field { 
    flex: 1; 
    min-width: 0; 
    border: none; 
    padding: 12px 14px; 
    font-size: 16px; 
    background: white; 
    border-radius: 0; 
}

.phone-input-field--modal { 
    border-radius: 0 8px 8px 0; 
}

.phone-input-field:focus { 
    outline: none; 
}

.phone-country-dropdown { 
    position: absolute; 
    top: calc(100% + 6px); 
    left: 0; 
    width: 100%; 
    min-width: 280px; 
    max-width: 360px; 
    max-height: 320px; 
    overflow: hidden; 
    background: white; 
    border: 2px solid #e9ecef; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); 
    z-index: 100002; 
    display: none; 
}

.phone-country-dropdown.show { 
    display: flex; 
    flex-direction: column; 
}

.phone-country-search { 
    padding: 10px 12px; 
    border-bottom: 1px solid #e9ecef; 
    background: #f8f9fa; 
}

.phone-country-search input { 
    width: 100%; 
    padding: 8px 12px; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-size: 14px; 
}

.phone-country-search input:focus { 
    outline: none; 
    border-color: #667eea; 
}

.phone-country-list { 
    overflow-y: auto; 
    max-height: 260px; 
    padding: 6px 0; 
}

.phone-country-option { 
    display: flex; 
    align-items: center; 
    padding: 10px 14px; 
    cursor: pointer; 
    transition: all 0.15s ease; 
    border-bottom: 1px solid #f3f4f6; 
}

.phone-country-option:hover { 
    background: #f3f4f6; 
}

.phone-country-option.selected { 
    background: #eef2ff; 
    border-left: 3px solid #667eea; 
}

.phone-country-option .flag-icon { 
    width: 28px; 
    text-align: center; 
    flex-shrink: 0; 
    margin-right: 10px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.phone-country-option .flag-icon img { 
    width: 24px; 
    height: 18px; 
    object-fit: cover; 
    border: 1px solid #e9ecef; 
    border-radius: 2px; 
}

.phone-country-option .country-info { 
    flex: 1; 
    min-width: 0; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 8px; 
}

.phone-country-option .country-name { 
    font-size: 14px; 
    font-weight: 500; 
    color: #333; 
    flex: 1; 
    min-width: 0; 
}

.phone-country-option .country-code { 
    font-size: 14px; 
    color: #555; 
    font-weight: 500; 
    white-space: nowrap; 
    flex-shrink: 0; 
}

.form-error { 
    font-size: 13px; 
    color: #c53030; 
}

.phone-validation-status { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin-top: 0.5rem; 
}

.phone-validation-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 500; 
}

.phone-validation-badge.valid { 
    background: #d1fae5; 
    color: #065f46; 
}

.phone-validation-badge.invalid { 
    background: #fee2e2; 
    color: #991b1b; 
}

.phone-validation-badge.pending { 
    background: #fef3c7; 
    color: #92400e; 
}

.form-row { 
    display: flex; 
    gap: 12px; 
}

.form-row .form-group { 
    flex: 1; 
}

.btn-primary { 
    width: 100%; 
    padding: 14px 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-primary:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); 
}

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

.btn-primary--with-icon { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}

.btn-icon { 
    font-size: 1em; 
    line-height: 1; 
}

.modal-actions--two-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.modal-actions--two-buttons .btn-primary--with-icon { 
    width: 100%; 
}

.modal-actions--two-buttons .btn-secondary { 
    margin-top: 4px; 
}

.btn-secondary { 
    width: 100%; 
    padding: 14px 24px; 
    background: white; 
    color: #667eea; 
    border: 2px solid #667eea; 
    border-radius: 10px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
    margin-top: 12px; 
}

.btn-secondary:hover { 
    background: #f8f9fa; 
}

.code-verify-email-wrap { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    margin-bottom: 16px; 
    padding: 14px 18px; 
    background: rgba(102, 126, 234, 0.08); 
    border-radius: 10px; 
    border: 1px solid rgba(102, 126, 234, 0.2); 
}

.code-verify-email-label { 
    font-size: 12px; 
    font-weight: 600; 
    color: #667eea; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.code-modal-email-display { 
    font-size: 16px; 
    color: #333; 
    font-weight: 600; 
    word-break: break-all; 
}

.code-verify-instruction { 
    margin-bottom: 20px; 
}

.verification-code-wrap { 
    margin: 24px 0; 
}

.verification-input-container { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin: 12px 0 0; 
    flex-wrap: wrap; 
}

.verification-input { 
    width: 48px; 
    height: 56px; 
    text-align: center; 
    font-size: 22px; 
    font-weight: 700; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    transition: border-color 0.2s, box-shadow 0.2s; 
}

.verification-input:focus { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); 
}

.resend-wrap { 
    text-align: center; 
    margin: 20px 0 24px; 
    font-size: 14px; 
}

.resend-label { 
    color: #666; 
    margin-right: 6px; 
}

.resend-timer { 
    margin-left: 6px; 
    color: #667eea; 
    font-weight: 600; 
}

.modal-form-section { 
    margin-bottom: 28px; 
    padding-bottom: 24px; 
    border-bottom: 1px solid #eee; 
}

.modal-form-section:last-of-type { 
    border-bottom: none; 
    padding-bottom: 0; 
    margin-bottom: 0; 
}

.modal-section-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #333; 
    margin: 0 0 16px; 
    padding: 0; 
}

.modal-container--compact { 
    max-height: 85vh; 
}

.modal-header--compact { 
    padding: 18px 24px 16px; 
}

.modal-header--compact .modal-title { 
    font-size: 20px; 
}

.modal-header--compact .modal-subtitle { 
    font-size: 13px; 
    margin-top: 4px; 
}

.modal-body--compact { 
    padding: 16px 24px 20px; 
}

.modal-body-intro--compact { 
    font-size: 13px; 
    margin: 0 0 14px; 
    line-height: 1.4; 
    color: #666; 
}

.profile-form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0 16px; 
    row-gap: 12px; 
}

.profile-form-grid--full { 
    grid-column: 1 / -1; 
}

.form-group--compact { 
    margin-bottom: 0; 
}

.form-label--compact { 
    margin-bottom: 4px; 
    font-size: 13px; 
    font-weight: 600; 
}

.form-input--compact { 
    padding: 8px 12px; 
    font-size: 15px; 
    border-radius: 6px; 
}

.modal-actions--compact { 
    margin-top: 18px; 
}

.modal-actions--compact .btn-primary,
.modal-actions--compact .btn-secondary { 
    padding: 10px 20px; 
    font-size: 15px; 
}

.modal-actions--compact .btn-secondary { 
    margin-top: 8px; 
}

.modal-body--compact .error-message { 
    padding: 8px 12px; 
    margin-bottom: 12px; 
    font-size: 13px; 
}

.info-text { 
    color: #666; 
    font-size: 14px; 
    text-align: center; 
    margin: 16px 0; 
    line-height: 1.5; 
}

.error-message { 
    background: #fee; 
    color: #c33; 
    padding: 12px 16px; 
    border-radius: 8px; 
    margin-bottom: 16px; 
    font-size: 14px; 
    display: none; 
}

.success-message { 
    background: #efe; 
    color: #2a2; 
    padding: 12px 16px; 
    border-radius: 8px; 
    margin-bottom: 16px; 
    font-size: 14px; 
    display: none; 
}

.payment-method-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.payment-method-item { 
    padding: 16px; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.payment-method-item:hover { 
    border-color: #667eea; 
    background: #f8f9fa; 
}

.payment-method-item.selected { 
    border-color: #667eea; 
    background: #f0f4ff; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); 
}

.payment-method-icon { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f8f9fa; 
    border-radius: 8px; 
}

.payment-method-details { 
    flex: 1; 
}

.payment-method-scheme { 
    font-weight: 600; 
    font-size: 16px; 
    color: #333; 
}

.payment-method-number { 
    font-size: 14px; 
    color: #666; 
    margin-top: 4px; 
}

.loading-spinner-inline { 
    display: inline-block; 
    width: 20px; 
    height: 20px; 
    border: 3px solid #f3f3f3; 
    border-top: 3px solid #667eea; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin-left: 10px; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.resend-link { 
    color: #667eea; 
    text-decoration: underline; 
    cursor: pointer; 
    font-weight: 600; 
}

.resend-link:hover { 
    color: #5568d3; 
}

.resend-link.disabled { 
    color: #999; 
    cursor: not-allowed; 
    text-decoration: none; 
}

@media (max-width: 768px) {
    .modal-container { 
        max-width: 100%; 
        margin: 10px; 
    }
    
    .modal-container--friendly .modal-body { 
        padding: 22px 18px; 
    }
    
    .modal-header--gradient { 
        padding: 24px 18px 20px; 
    }
    
    .modal-header--gradient .modal-title { 
        font-size: 20px; 
    }
    
    .modal-header--gradient .modal-subtitle { 
        font-size: 13px; 
    }
    
    .modal-body-intro { 
        font-size: 14px; 
        margin-bottom: 18px; 
    }
    
    .verification-input { 
        width: 44px; 
        height: 52px; 
        font-size: 20px; 
    }
    
    .verification-input-container { 
        gap: 8px; 
    }
    
    .form-row { 
        flex-direction: column; 
    }
    
    .modal-form-section { 
        margin-bottom: 22px; 
        padding-bottom: 20px; 
    }
    
    .profile-form-grid { 
        grid-template-columns: 1fr; 
        row-gap: 10px; 
    }
    
    .modal-body--compact { 
        padding: 14px 18px 18px; 
    }
    
    .saved-payment-buttons { 
        flex-direction: column; 
    }
    
    .saved-payment-btn { 
        min-width: 100%; 
    }
}
