/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Wide Modal Container */
.modal-container.modal-wide {
    max-width: 760px;
}

/* Registration Choice Modal */
.registration-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.registration-choice-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
}

.registration-choice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.registration-choice-title {
    font-weight: 800;
    color: #32325d;
    font-size: 1.05rem;
}

.registration-choice-title i {
    margin-right: 8px;
    color: #3b9dd8;
}

.registration-choice-card-vip .registration-choice-title i {
    color: #d4af37;
}

.registration-choice-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    color: #6c757d;
    white-space: nowrap;
}

.registration-choice-badge-free {
    border-color: rgba(123, 197, 63, 0.35);
    background: rgba(123, 197, 63, 0.12);
    color: #2d6a1f;
}

.registration-choice-badge-vip {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.14);
    color: #7a5b00;
}

.registration-choice-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
}

.registration-choice-card .btn-primary {
    width: 100%;
}

@media (max-width: 768px) {
    .registration-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #32325d;
}

/* Modal Header */
.modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #32325d;
    margin: 0 0 8px 0;
}

.modal-header h2 i {
    color: #3b9dd8;
    margin-right: 8px;
}

/* VIP modal header icon color */
#vipRegisterModal .modal-header h2 i {
    color: #d4af37;
}

/* VIP modal header alignment */
#vipRegisterModal .modal-header {
    text-align: left;
}

/* VIP modal close button: stronger + always visible while scrolling */
#vipRegisterModal .modal-container {
    display: flex;
    flex-direction: column;
}

#vipRegisterModal .modal-close {
    position: sticky;
    top: 12px;
    margin: 12px 12px 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #d4af37;
    color: #32325d;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

#vipRegisterModal .modal-close:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* VIP Demo Payment Modal */
#vipPaymentModal .modal-header {
    text-align: left;
}

#vipPaymentModal .modal-header h2 i {
    color: #3b9dd8;
}

.vip-payment-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 22px;
}

.vip-payment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.vip-payment-merchant-name {
    font-weight: 800;
    color: #32325d;
}

.vip-payment-merchant-sub {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 4px;
}

.vip-payment-amount {
    text-align: right;
    white-space: nowrap;
}

.vip-payment-amount-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.vip-payment-amount-value {
    font-weight: 800;
    color: #32325d;
    font-size: 1.1rem;
}

.vip-payment-section-title {
    font-weight: 700;
    color: #32325d;
    margin: 16px 0 12px 0;
}

.vip-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vip-payment-security {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 6px 0 16px 0;
}

.vip-payment-security i {
    color: #28a745;
}

.vip-payment-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.vip-payment-overlay-content {
    text-align: center;
    padding: 18px 22px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.vip-payment-overlay-text {
    margin-top: 10px;
    color: #32325d;
    font-weight: 600;
}

.vip-payment-success {
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    background: #d4edda;
    color: #155724;
    text-align: center;
}

.vip-payment-success-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.vip-payment-success-title {
    font-weight: 800;
    font-size: 1.1rem;
}

.vip-payment-success-text {
    margin: 8px 0 14px 0;
    color: #155724;
}

@media (max-width: 576px) {
    .vip-payment-grid {
        grid-template-columns: 1fr;
    }
    .vip-payment-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .vip-payment-amount {
        text-align: left;
    }
}

.modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #3b9dd8;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.modal-footer a:hover {
    color: #2d8bc7;
    text-decoration: underline;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Kumbh Sans', sans-serif;
    color: #32325d;
}

.form-control:focus {
    outline: none;
    border-color: #3b9dd8;
    box-shadow: 0 0 0 3px rgba(59, 157, 216, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
}

.password-toggle-btn:hover {
    color: #32325d;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #3b9dd8;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kumbh Sans', sans-serif;
}

.btn-primary:hover {
    background: #2d8bc7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 157, 216, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Modal Links */
.modal-link {
    color: #3b9dd8;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.modal-link:hover {
    color: #2d8bc7;
    text-decoration: underline;
}

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

.mt-3 {
    margin-top: 15px;
}

.mb-0 {
    margin-bottom: 0;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.strength-weak .password-strength-fill {
    width: 33%;
    background: #dc3545;
}

.strength-medium .password-strength-fill {
    width: 66%;
    background: #ffc107;
}

.strength-strong .password-strength-fill {
    width: 100%;
    background: #28a745;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

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

/* ÁSZF Elfogadás Checkbox */
.aszf-acceptance {
    margin: 25px 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.aszf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.aszf-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #667eea;
}

.aszf-text {
    color: #495057;
    flex: 1;
}

.aszf-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.aszf-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        border-radius: 8px;
    }
    
    .modal-close {
        width: 48px;
        height: 48px;
    }
    
    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}
