/* Registration Popup Styles */
:root {
    --popup-primary: #6C63FF;
    --popup-accent: #00D4FF;
    --popup-success: #10B981;
    --popup-warning: #F59E0B;
    --popup-danger: #EF4444;
    --popup-dark: #0B0E13;
    --popup-overlay: rgba(11, 14, 19, 0.85);
}

/* Popup Overlay */
.registration-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--popup-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.registration-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Popup Container */
.registration-popup {
    background: linear-gradient(145deg, 
        rgba(22, 25, 31, 0.98) 0%, 
        rgba(15, 18, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(108, 99, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.registration-popup-overlay.show .registration-popup {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Urgency Header */
.popup-educational-header {
    background: linear-gradient(135deg, var(--popup-danger) 0%, #DC2626 100%);
    padding: 16px 24px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-educational-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.urgency-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.urgency-badge i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.popup-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 45px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.countdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.countdown-separator {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Main Content */
.popup-content {
    padding: 32px 24px 24px;
}

/* Header Section */
.popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.popup-title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--popup-primary) 0%, var(--popup-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-subtitle {
    color: #B0B7C3;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.highlight-number {
    color: var(--popup-accent);
    font-weight: 700;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 24px;
}

.proof-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    margin-left: -8px;
    background: linear-gradient(45deg, var(--popup-primary), var(--popup-accent));
    position: relative;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/60% no-repeat;
    opacity: 0.7;
}

.avatar-count {
    background: var(--popup-primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.proof-text {
    color: #B0B7C3;
    font-size: 14px;
    line-height: 1.3;
}

/* Benefits List */
.benefits-list {
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-size: 14px;
}

.benefit-icon {
    color: var(--popup-success);
    font-size: 16px;
    flex-shrink: 0;
}

/* Form Container */
.popup-form-container {
    margin-bottom: 20px;
}

.popup-form-container .registration-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    margin: 0;
}

.popup-form-container .btn-submit {
    background: linear-gradient(135deg, var(--popup-primary) 0%, var(--popup-accent) 100%);
    border: none;
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-form-container .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(108, 99, 255, 0.4);
}

.popup-form-container .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.popup-form-container .btn-submit:hover::before {
    left: 100%;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B0B7C3;
    font-size: 11px;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.trust-item i {
    color: var(--popup-success);
    font-size: 12px;
}

/* Scarcity Message */
.educational-value-message {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    color: #F59E0B;
    font-size: 14px;
    font-weight: 500;
}

.educational-value-message i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.spots-remaining {
    color: var(--popup-danger);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .registration-popup {
        margin: 10px;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .popup-educational-header {
        padding: 12px 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .popup-content {
        padding: 24px 20px 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-subtitle {
        font-size: 14px;
    }
    
    .social-proof {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 8px;
    }
    
    .trust-item {
        justify-content: flex-start;
    }
    
    .popup-countdown {
        gap: 6px;
    }
    
    .countdown-item {
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .countdown-number {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .registration-popup-overlay {
        padding: 10px;
    }
    
    .popup-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
    
    .popup-form-container .btn-submit {
        padding: 14px 24px;
        font-size: 14px;
    }
}
