.nav-pill {
    position: relative;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #9CA3AF; /* gray-400 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-pill:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-pill.active {
    color: #ffffff;
    background-color: rgba(59, 130, 246, 0.15); /* blue-500/15 */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Premium Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280; /* gray-500 */
    transition: color 0.3s ease;
    pointer-events: none;
}

.search-input:focus + .search-icon,
.search-input:focus ~ .search-icon {
    color: #3b82f6; /* blue-500 */
}



.neon-btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}
.neon-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

/* Floating Bottom IP Badge */
.floating-ip-badge {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 25, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 40; /* Below modals (50) but above content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(59, 130, 246, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeLiftIn 1s ease-out forwards;
    cursor: default;
    opacity: 0;
}

.floating-ip-badge:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateX(-50%) translateY(-3px);
}

.ip-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

.floating-ip-badge:hover .ip-text {
    color: rgba(255, 255, 255, 0.7);
}

.floating-ip-badge:hover .font-mono {
    color: rgba(255, 255, 255, 0.9);
}

.ip-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.floating-ip-badge:hover .ip-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

@keyframes fadeLiftIn {
    0% { opacity: 0; transform: translate(-50%, 15px) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 640px) {
    .floating-ip-badge {
        bottom: 1rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Premium Glassmorphism Install Button */
.btn-premium-install {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    height: 2.25rem; /* Exactly 36px, matches Donate & standard height */
    border-radius: 9999px;
    background: rgba(20, 25, 40, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-premium-install i {
    color: #60a5fa; /* Modern bright blue icon */
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

/* Hover Effect */
.btn-premium-install:hover {
    transform: translateY(-1.5px);
    background: rgba(25, 30, 50, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
    color: #ffffff;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 8px 25px rgba(59, 130, 246, 0.15),
        0 0 15px rgba(59, 130, 246, 0.1);
}

.btn-premium-install:hover i {
    transform: translateY(1px);
    color: #93c5fd;
}

/* Active Pressed Effect */
.btn-premium-install:active {
    transform: translateY(0.5px) scale(0.97);
    box-shadow: 
        inset 0 1px 1px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(59, 130, 246, 0.05);
    transition: all 0.1s ease;
}

/* Premium Desktop Navbar Animations */
.nav-pill .anim-icon {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Home */
.nav-pill:hover .anim-icon-home {
    animation: animHomeGlow 1.5s ease-in-out infinite;
    transform: scale(1.15) translateY(-1px);
    color: #93c5fd;
    filter: drop-shadow(0 0 5px rgba(147, 197, 253, 0.6));
}
@keyframes animHomeGlow {
    0%, 100% { transform: scale(1.15) translateY(-1px); }
    50% { transform: scale(1.05) translateY(0px); filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.9)); }
}

/* Movies (Film Spin) */
.nav-pill:hover .anim-icon-movies {
    animation: animMoviesSpin 4s linear infinite;
    color: #fca5a5;
    filter: drop-shadow(0 0 5px rgba(252, 165, 165, 0.5));
}
@keyframes animMoviesSpin {
    0% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* Series (Screen Pulse) */
.nav-pill:hover .anim-icon-series {
    animation: animSeriesPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: #c084fc;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.6));
}
@keyframes animSeriesPulse {
    0%, 100% { transform: scale(1.1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Sports (Ball Bounce) */
.nav-pill:hover .anim-icon-sports {
    animation: animSportsBounce 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate;
    color: #86efac;
    filter: drop-shadow(0 0 5px rgba(134, 239, 172, 0.5));
}
@keyframes animSportsBounce {
    0% { transform: translateY(0) scale(1.1) rotate(0deg); }
    100% { transform: translateY(-3px) scale(1.1) rotate(30deg); }
}

/* Live TV (Signal Broadcast) */
.nav-pill:hover .anim-icon-iptv {
    animation: animIptvSignal 1s ease-in-out infinite;
    color: #fde047;
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.5));
}
@keyframes animIptvSignal {
    0% { transform: scale(1.1) rotate(-15deg); }
    50% { transform: scale(1.2) rotate(15deg); filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.8)); }
    100% { transform: scale(1.1) rotate(-15deg); }
}

/* Active State Enhancements */
.nav-pill.active .anim-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .nav-pill .anim-icon {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}
