.modern-footer {
    background: linear-gradient(135deg, #0a0e27 0%, #11112b 50%, #0a0e27 100%);
    color: #fff;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230a0e27' d='M0,50 Q360,0 720,50 T1440,50 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 35px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-brand-section h2 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00a8ff, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.payment-badge-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: inline-block;
    margin-top: 20px;
}

.payment-badge-modern img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-column h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    color: #00a8ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #00a8ff;
    transform: translateX(5px);
}

.footer-links a i.fa-envelope {
    margin-right: 8px;
    color: #00a8ff;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 40px 0 30px;
}

.footer-bottom-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    flex: 1;
}

.copyright-modern {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

.social-links-modern {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link-modern {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-modern:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Floating YouTube Widget Styles */
.floating-youtube-widget {
    position: fixed;
    bottom: 20px;
    right: 100px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatUp 1s ease-out forwards;
}

.youtube-float-text {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);

    /* Text Change Logic */
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    /* transform: translateX(20px); MOVED TO CONTAINER */
    animation: slideInText 0.5s ease-out 0.5s forwards;

    height: 38px;
    /* Fixed height to prevent jumping */
    overflow: hidden;
    min-width: 170px;
    /* Ensure enough width for both texts */
}

/* Wrapper for sliding text */
.youtube-text-content {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.youtube-float-text span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 100%;
    padding: 0 16px;
    white-space: nowrap;
}

/* Slide Up Effect on Hover */
.floating-youtube-widget:hover .youtube-text-content {
    transform: translateY(-38px);
}

.youtube-float-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #cc0000;
}

.youtube-float-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.youtube-float-icon i {
    color: #ff0000;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Hand Emoji Styles */
.hand-emoji {
    position: absolute;
    font-size: 24px;
    top: -15px;
    right: -10px;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10;
}

/* Hover Effects */
.floating-youtube-widget:hover .youtube-float-icon {
    transform: scale(1.1);
}

.floating-youtube-widget:hover .hand-emoji {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: wave-hand 2s infinite;
    top: -20px;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wave-hand {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-youtube-widget {
        bottom: 80px;
        right: 20px;
    }

    .youtube-float-text {
        display: none;
    }
}