/* === FLOATING CTA BUTTON === */
.floating-cta {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: linear-gradient(45deg, #FF6B00, #FF4500);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.6);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === WELCOME POPUP === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(135deg, #1A0B3D, #2D1B69);
    border: 2px solid #00D4FF;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
    animation: popupSlide 0.5s ease-out;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #FF4500;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #00D4FF;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.popup-subtitle {
    font-size: 18px;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: 600;
}

.popup-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.popup-text strong {
    color: #FFD700;
    font-weight: 700;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.popup-btn-primary {
    background: linear-gradient(45deg, #FF6B00, #FF4500);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.4);
    color: white;
}

.popup-btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn-secondary:hover {
    color: white;
    border-color: #666;
}

/* === NOTIFICATION BAR === */
.notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #FF4500, #FF6B00);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    z-index: 1500;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.notification-bar.hiding {
    transform: translateY(100%);
    opacity: 0;
}

.notification-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* === PROGRESS BAR === */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1400;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #0099FF);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* === BODY ADJUSTMENTS === */
body.notification-active {
    padding-bottom: 44px;
}

body.notification-active .floating-cta {
    bottom: 70px;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 70px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
        gap: 6px;
    }

    body.notification-active .floating-cta {
        bottom: 110px;
    }

    .popup-content {
        margin: 20px;
        padding: 30px 25px;
        max-width: 90%;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-subtitle {
        font-size: 16px;
    }

    .popup-text {
        font-size: 14px;
    }

    .popup-btn-primary {
        font-size: 16px;
        padding: 12px 25px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .notification-bar {
        font-size: 14px;
        padding: 10px;
        padding-right: 50px;
    }

    .notification-close {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 65px;
        right: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }

    body.notification-active .floating-cta {
        bottom: 105px;
    }

    .popup-content {
        margin: 15px;
        padding: 25px 20px;
    }

    .popup-title {
        font-size: 18px;
    }

    .notification-bar {
        font-size: 13px;
        padding: 8px;
        padding-right: 45px;
    }
}

/* === ANIMATION DELAYS === */
.floating-cta {
    animation-delay: 1s;
}

.notification-bar {
    animation-delay: 0.5s;
}

/* === ACCESSIBILITY === */
.popup-close:focus,
.notification-close:focus {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

.popup-btn-primary:focus,
.popup-btn-secondary:focus,
.floating-cta:focus {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* === HOVER STATES FOR TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
    .floating-cta:active {
        transform: translateY(-1px);
    }
    
    .popup-btn-primary:active {
        transform: translateY(-1px);
    }
}
