.popup-banner-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 100%;
    max-width: 600px;
    padding: 12px 20px 12px;
    margin: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3d3d;
    border-bottom: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-banner-container.banner-hidden {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
}

.popup-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.coupon-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #6366f1;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 1;
    min-width: 100px;
    max-width: 120px;
}

.coupon-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.enroll-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 1;
    min-width: 100px;
    max-width: 120px;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    text-decoration: none;
    color: #ffffff;
}

.coupon-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.coupon-modal.show {
    display: block;
}

.coupon-modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    text-align: center;
    box-sizing: border-box;
    z-index: 1001;
}

.coupon-modal.show .coupon-modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.coupon-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .popup-banner-container {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .popup-banner {
        gap: 12px;
    }
    
    .banner-text {
        font-size: 14px;
        min-width: 100%;
        order: 1;
    }
    
    .coupon-btn,
    .enroll-btn {
        padding: 8px 20px;
        font-size: 13px;
        order: 2;
    }
}
