/* Streams Page Styles */

/* Base page styling */
body.streams-page {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
    background: linear-gradient(to bottom, #151515, #202020);
    position: relative;
}

/* Blue light from below effect - same as home page and modal */
body.streams-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 120% 80% at center 100%, 
            rgba(0, 87, 246, 0.8) 0%, 
            rgba(0, 87, 246, 0.6) 30%, 
            rgba(0, 87, 246, 0.4) 60%, 
            rgba(0, 87, 246, 0.2) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle texture overlay */
body.streams-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Animations */
@keyframes subtleBackgroundGlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Core card styling */
.stream-card {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 310px; /* Further reduced from 350px to 310px to match mobile compactness */
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.stream-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Apply non-selectable styles to all card elements */
.card-title, .stream-title, .description-text, .stream-date, .clip-count, 
.expiry-badge, .clip-count-number, .live-indicator {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* Thumbnail styling */
.stream-thumbnail-wrapper {
    position: relative;
    overflow: visible;
    height: 200px; /* Fixed height */
    background-color: #0a0a0a;
    transition: all 0.3s ease;
    z-index: 4;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.stream-thumbnail-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: transparent;
    cursor: pointer;
}

.stream-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.stream-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    position: absolute; /* Position absolutely */
    top: 0;
    left: 0;
}

/* Thumbnail loading skeleton */
.thumbnail-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    z-index: 5;
    border-radius: 10px 10px 0 0;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-skeleton::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 123, 255, 0.1);
    border-top-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    animation: skeleton-spinner 1s linear infinite;
}

.thumbnail-skeleton.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.thumbnail-skeleton.thumbnail-error::after {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    color: #dc3545;
    animation: none;
    border: none;
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes skeleton-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card content */
.card-body {
    padding: 1.25rem 1rem 0.75rem; /* Reduced top and bottom padding */
    position: relative;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
    z-index: 6;
    background-color: #000;
}

.card-title {
    color: white;
    font-size: 1.2rem; /* Slightly smaller */
    margin-bottom: 0.1rem; /* Reduced spacing between title and stream title */
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.5),
                 0 0 30px rgba(0, 123, 255, 0.3);
    letter-spacing: 0.5px;
}

.stream-title {
    color: #0057F6;
    font-size: 0.95rem; /* Slightly smaller */
    margin-bottom: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
    font-weight: 500;
    opacity: 0.9;
    padding-left: 0.2rem;
    position: relative;
    height: 1.4rem; /* Fixed height for consistent layout */
    overflow: hidden;
    white-space: nowrap;
}

/* Description text styling removed */
/* 
.description-text {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    max-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0.8;
}
*/

/* Make absolutely certain description elements take no space */
.description-text,
p.description-text,
div.description-text,
[class*="description"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Button styling */
.access-clips-btn {
    background-color: #007bff;
    border-color: #0056b3;
    transition: all 0.3s ease;
    margin-top: auto; /* Changed from 0.25rem back to auto to push button to bottom */
    padding: 8px 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.access-clips-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.access-clips-btn.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Button transition styling - improved centering */
.button-transition {
    position: relative;
    overflow: hidden;
    min-width: 140px; /* Ensures consistent button width */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button-transition .button-text {
    transition: opacity 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.button-transition .button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure spinner is properly centered and sized */
.button-transition .button-loader .spinner-border {
    margin: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Make sure shake animation affects the entire button */
.access-clips-btn.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Add missing shake animation definition */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Statistics tabs */
.clip-count, .stream-date {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    z-index: 5;
    min-width: 70px;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(10%);
    transition: all 0.3s ease;
}

.clip-count {
    right: 15px;
}

/* Add smooth animations for clip count updates */
.clip-count.count-updating {
    transform: scale(1.05);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clip-count.count-updated {
    animation: count-highlight 2s ease-in-out;
}

/* Special styling for source-of-truth updates (today's streams) */
.clip-count.count-source-of-truth {
    animation: count-source-of-truth 2s ease-in-out;
}

@keyframes count-source-of-truth {
    0% { 
        background-color: rgba(33, 150, 243, 0.3);
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    }
    20% { 
        background-color: rgba(33, 150, 243, 0.6);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.8);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes count-highlight {
    0% { 
        background-color: rgba(76, 175, 80, 0.3);
        transform: scale(1.05);
    }
    20% { 
        background-color: rgba(76, 175, 80, 0.5);
        transform: scale(1.1);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

.stream-date {
    position: absolute;
    bottom: 0;
    left: 15px;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    z-index: 5;
    min-width: 100px;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(10%);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Live stream styling - black background with red text and pulsing */
.stream-date.date-live {
    background: rgba(0, 0, 0, 0.8);
    color: #ff0000;
    border-bottom: 3px solid rgba(255, 0, 0, 0.6);
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 -2px 10px rgba(255, 0, 0, 0.6), 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Animation for live streams */
@keyframes live-pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 -2px 10px rgba(255, 0, 0, 0.6), 0 0 15px rgba(255, 0, 0, 0.3);
    }
    50% { 
        opacity: 0.85; 
        box-shadow: 0 -4px 15px rgba(255, 0, 0, 0.8), 0 0 25px rgba(255, 0, 0, 0.5);
    }
}

.stream-card:hover .clip-count,
.stream-card:hover .stream-date {
    transform: translateY(0%);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
}

.stream-card:hover .stream-date.date-live {
    box-shadow: 0 -4px 15px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.5);
}

/* Hide old live indicator - now using enhanced date box */
.live-indicator {
    display: none !important;
}

/* Expiry badge */
.expiry-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 6;
}

.expiry-good {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.expiry-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.expiry-critical {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

/* Navbar styling */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #000 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-text {
    color: #0057F6;
}

.brand-highlight {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.brand-blue {
    color: #0057F6;
    text-shadow: 0 0 10px rgba(0, 87, 246, 0.3);
}

/* Error message styling */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #dc3545;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Input element interactions - allow selection for interactive elements */
input, textarea, select, button, .btn, 
.access-clips-btn, [role="button"], 
#user-dropdown, #logout-btn, #manage-sub-btn {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    cursor: pointer;
}

/* Completely remove play button rain animation - STREAMS PAGE ONLY */
body.streams-page .play-button-drop,
body.streams-page .fas.fa-play-circle.play-button-drop,
body.streams-page i[class*="play-button-drop"],
body.streams-page [class*="play-button-drop"],
body.streams-page .streams-rain-container,
body.streams-page div[class*="streams-rain"],
body.streams-page [class*="streams-rain"],
body.streams-page .rain-container,
body.streams-page .rain-item {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    animation: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
}

/* Disable the rain animation completely */
@keyframes playButtonRain {
    0%, 100% { opacity: 0; transform: none; }
}

/* How AutoClipz Works Tab */
.how-it-works-tab {
    position: absolute;
    top: 100%;
    z-index: 990;
    transform: translateY(-15%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    will-change: transform, top;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    animation: subtleIntro 0.8s ease-out 0.5s both;
}

.how-it-works-tab:hover {
    transform: translateY(0%);
}

@keyframes subtleIntro {
    from {
        opacity: 0;
        transform: translateY(-25%);
    }
    to {
        opacity: 1;
        transform: translateY(-15%);
    }
}

.how-it-works-link {
    display: block;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%); /* Rich black gradient */
    color: white;
    padding: 16px 20px 8px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    border-top: 2px solid #333;
    position: relative;
    overflow: hidden;
}

.how-it-works-link:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px);
    color: #f8f9fa;
}

.how-it-works-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.how-it-works-link:hover::before {
    left: 100%;
}

/* Add style for the content inside the link */
.how-it-works-link i.fa-info-circle {
    margin-bottom: 3px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.how-it-works-link:hover i.fa-info-circle {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    transform: scale(1.05);
}

.how-it-works-link i.fa-angle-down {
    position: relative;
    top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.how-it-works-link:hover i.fa-angle-down {
    transform: translateY(1px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

/* Show full text on desktop */
.how-it-works-link .tab-text-long {
    display: inline;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.how-it-works-link .tab-text-short {
    display: none;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Request a Stream Tab - styling similar to How AutoClipz Works tab */
.request-stream-tab {
    position: absolute;
    top: 100%;
    z-index: 990;
    transform: translateY(-15%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    will-change: transform, top;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    animation: subtleIntro 0.8s ease-out 0.7s both;
}

.request-stream-tab:hover {
    transform: translateY(0%);
}

.request-stream-link {
    display: block;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 50%, #0056b3 100%); /* Rich blue gradient */
    color: white;
    padding: 16px 20px 8px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4), 0 2px 8px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #0066cc;
    position: relative;
    overflow: hidden;
}

.request-stream-link:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 50%, #0066cc 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6), 0 2px 10px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px);
    color: #f8f9fa;
}

.request-stream-link::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;
}

.request-stream-link:hover::before {
    left: 100%;
}

.request-stream-link i.fa-clipboard-check {
    margin-bottom: 3px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.request-stream-link:hover i.fa-clipboard-check {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    transform: scale(1.05);
}

.request-stream-link i.fa-angle-down {
    position: relative;
    top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.request-stream-link:hover i.fa-angle-down {
    transform: translateY(1px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* Success Stories Tab - styling similar to other tabs but with white/gold theme */
.success-stories-tab {
    position: absolute;
    top: 100%;
    z-index: 990;
    transform: translateY(-15%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    will-change: transform, top;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    animation: subtleIntro 0.8s ease-out 0.9s both;
}

.success-stories-tab:hover {
    transform: translateY(0%);
}

.success-stories-link {
    display: block;
    background: linear-gradient(135deg, #00C853 0%, #4CAF50 50%, #00C853 100%); /* Rich vibrant green as default */
    color: #ffffff; /* White text on green background */
    padding: 16px 20px 8px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.7), 0 2px 10px rgba(0, 230, 118, 0.3) inset;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-top: 2px solid #00C853; /* Rich green border */
    position: relative;
    overflow: hidden;
    transform: translateY(-2px); /* Slightly elevated as default */
}

.success-stories-link:hover {
    background: linear-gradient(135deg, #00E676 0%, #00C853 50%, #00E676 100%); /* Lighter green on hover */
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5), 0 2px 8px rgba(0, 230, 118, 0.2) inset;
    transform: translateY(0); /* Return to normal position on hover */
    color: #ffffff;
}

.success-stories-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    opacity: 0; /* Hidden by default */
}

.success-stories-link:hover::before {
    left: 100%;
    opacity: 1; /* Show shimmer on hover */
}

.success-stories-link i.fa-dollar-sign {
    margin-bottom: 3px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    color: #ffffff; /* White dollar sign */
}

.success-stories-link:hover i.fa-dollar-sign {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    transform: scale(1.05);
}

.success-stories-link i.fa-angle-down {
    position: relative;
    top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8); /* Light white for arrow */
}

.success-stories-link:hover i.fa-angle-down {
    transform: translateY(1px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* Vote Modal Styling */
.vote-options-container {
    max-height: none; /* Remove max height */
    overflow-y: visible; /* Remove the scrollbar */
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 0 5px;
    padding-bottom: 10px; /* Add padding at the bottom to create space before spacer */
}

.vote-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 5px;
    position: relative; /* Ensure proper positioning context */
}

.vote-options-list::after {
    display: none; /* Remove the after pseudo-element */
}

.vote-option {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 10px; /* Reduced padding */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #333;
    position: relative;
    margin-bottom: 8px;
}

.vote-option:last-child {
    margin-bottom: 15px; /* Last vote option should have extra margin */
}

.vote-option-header {
    margin-bottom: 8px;
}

.vote-option-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vote-count-wrapper {
    display: flex;
    align-items: center;
    min-width: 75px;
}

.vote-option-title-wrapper {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.vote-option-title {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.vote-button-wrapper {
    min-width: 75px;
    text-align: right;
}

.vote-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(13, 110, 253, 0.3); /* Blue border on hover */
}

.vote-count-display {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0;
}

.vote-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.vote-progress-container {
    height: 18px; /* Smaller height */
    background-color: #333;
    border-radius: 9px; /* Half of height for rounded ends */
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Remove bottom margin */
}

.vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0043a8); /* Blue gradient */
    border-radius: 9px;
    transition: width 0.5s ease;
}

.vote-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem; /* Smaller font */
    font-weight: 600;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

/* Top streams message styling - Updated with blue theme instead of gold */
.top-streams-message {
    text-align: center;
    color: #0d6efd; /* Changed from gold to blue */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    background-color: rgba(13, 110, 253, 0.05); /* Light blue background */
    border-radius: 8px;
    border: 1px solid rgba(13, 110, 253, 0.2); /* Blue border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-streams-message i {
    color: #0d6efd; /* Changed from gold to blue */
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
}

/* Top 3 option styling with blue theme instead of gold/silver/bronze */
.vote-option.top-1 {
    border: 2px solid #0d6efd; /* Primary blue */
    background: linear-gradient(180deg, rgba(13,110,253,0.15) 0%, rgba(0,0,0,0) 100%);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.vote-option.top-2 {
    border: 2px solid #0dcaf0; /* Info blue */
    background: linear-gradient(180deg, rgba(13,202,240,0.1) 0%, rgba(0,0,0,0) 100%);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.2);
}

.vote-option.top-3 {
    border: 2px solid #6c757d; /* Gray */
    background: linear-gradient(180deg, rgba(108,117,125,0.1) 0%, rgba(0,0,0,0) 100%);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.2);
}

/* Add these styles after your existing top-3 styles */

.vote-option.top-4 {
    border-color: #17a2b8;
    background: linear-gradient(to bottom, rgba(23, 162, 184, 0.05), rgba(0, 0, 0, 0));
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.15);
}

.vote-option.top-5 {
    border-color: #6f42c1;
    background: linear-gradient(to bottom, rgba(111, 66, 193, 0.05), rgba(0, 0, 0, 0));
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.15);
}

.top-4 .top-position-marker {
    background-color: #17a2b8;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.top-5 .top-position-marker {
    background-color: #6f42c1;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

/* Position markers with updated colors */
.top-position-marker {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    font-size: 0.75rem;
}

.top-1 .top-position-marker {
    background: #0d6efd; /* Primary blue */
    color: white;
    box-shadow: 0 0 10px rgba(13,110,253,0.5);
}

.top-2 .top-position-marker {
    background: #0dcaf0; /* Info blue */
    color: white;
    box-shadow: 0 0 10px rgba(13,202,240,0.5);
}

.top-3 .top-position-marker {
    background: #6c757d; /* Gray */
    color: white;
    box-shadow: 0 0 10px rgba(108,117,125,0.5);
}

/* Updated Vote Modal Info Bar */
.vote-info-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #222;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.vote-info-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.vote-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-col {
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10px;
}

.center-col {
    flex: 2;
    justify-content: center;
    padding: 0 5px;
}

.right-col {
    flex: 1;
    justify-content: center;
    align-items: flex-end;
    padding-right: 10px;
}

.vote-info-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0;
}

.vote-count-display {
    margin: 0;
}

.vote-count-display #votes-remaining {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    line-height: 1;
}

.vote-info-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.refresh-time {
    color: #aaa;
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}

.free-votes-info {
    color: #6c757d;
    font-size: 0.7rem;
    margin-top: 2px;
}

#buy-votes-btn {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#buy-votes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

.vote-purpose-text {
    color: #007bff;
    font-size: 0.95rem;
    margin: -5px 0 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vote-breakdown {
    margin-top: 2px;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Subscription and vote button styles */
.alert-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #fff;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.alert-link {
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
}

.alert-link:hover {
    text-decoration: underline;
}

.pulse-attention {
    animation: pulseHighlight 1s ease-in-out 2;
}

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

/* Style for disabled vote buttons */
.vote-button.btn-secondary {
    background-color: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.vote-button.btn-secondary:hover {
    background-color: #5a6268;
}

/* Vote Modal Updates */
#streamerVotingModal .modal-dialog {
    max-width: 500px;
}

#streamerVotingModal .modal-content {
    min-height: 85vh;
    border: none;
    border-radius: 0;
}

#streamerVotingModal .modal-body {
    overflow-y: auto; /* This should be the only scrollable container */
    padding-bottom: 30px; /* Reduced padding since we removed the spacer */
    scroll-behavior: smooth; /* Add smooth scrolling */
    max-height: 70vh; /* Limit height to prevent modal from extending beyond viewport */
    -webkit-overflow-scrolling: touch; /* Improve scrolling on iOS devices */
}

/* Clean Navigation Tabs Container - No Background */
.streams-tabs-container {
    display: flex;
    gap: 8px; /* Small gap between buttons for shadow space */
    margin: 1.5rem auto 2rem auto;
    padding: 0;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
    max-width: 900px;
}

/* Enhanced Individual Menu Tab Styling with Strong Shadows */
.streams-tab {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(26, 26, 26, 0.9) 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    /* Enhanced shadows to create menu depth */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    z-index: 1;
    min-height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Menu icons enhancement */
.streams-tab i {
    margin-right: 8px;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Enhanced Hover Effects with Stronger Shadows */
.streams-tab:hover {
    transform: translateY(-4px) scale(1.03);
    /* Dramatic shadow increase on hover */
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    z-index: 10;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(20, 20, 20, 1) 50%, rgba(40, 40, 40, 0.95) 100%);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Enhanced icon hover effects */
.streams-tab:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Subtle menu item press effect */
.streams-tab:active {
    transform: translateY(-2px) scale(1.01);
    transition: transform 0.1s ease;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Menu icons enhancement */
.streams-tab i {
    margin-right: 8px;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Menu Item Hover Effects - Enhanced for menu feel */
.streams-tab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(255, 255, 255, 0.15) inset,
        0 0 25px rgba(255, 255, 255, 0.1);
    z-index: 10;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(20, 20, 20, 0.95) 50%, rgba(40, 40, 40, 0.9) 100%);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Enhanced icon hover effects */
.streams-tab:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Menu Item Focus States */
.streams-tab:focus {
    outline: 2px solid rgba(0, 87, 246, 0.5);
    outline-offset: 2px;
}

/* Subtle menu item press effect */
.streams-tab:active {
    transform: translateY(-1px) scale(1.01);
    transition: transform 0.1s ease;
}

/* Special corner treatments for first and last items */
.streams-tab:first-child {
    margin-left: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.streams-tab:last-child {
    margin-right: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Remove duplicate/conflicting styles - cleaned up */

/* Streamers tab - blue styling with connected design */
.streams-tab.streamers-btn {
    background: linear-gradient(135deg, #0045b3 0%, #0057F6 50%, #0045b3 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.streams-tab.streamers-btn:hover {
    background: linear-gradient(135deg, #0057F6 0%, #0070ff 50%, #0057F6 100%);
    box-shadow: 0 8px 25px rgba(0, 87, 246, 0.6);
}

/* How AutoClipz Works button - keep dark theme but add shimmer */
.streams-tab.how-it-works-btn::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;
    opacity: 0;
}

.streams-tab.how-it-works-btn:hover::before {
    left: 100%;
    opacity: 1;
}

/* Start Earning Money tab - rich green styling with connected design */
.streams-tab.start-earning-btn {
    background: linear-gradient(135deg, #00C853 0%, #4CAF50 50%, #00C853 100%); /* Rich vibrant green */
    color: #ffffff; /* White text on green background */
    border: 2px solid #00C853;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4), 0 2px 8px rgba(0, 230, 118, 0.15) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.streams-tab.start-earning-btn:hover {
    background: linear-gradient(135deg, #00E676 0%, #00C853 50%, #00E676 100%); /* Lighter green on hover */
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.6), 0 2px 10px rgba(0, 230, 118, 0.25) inset;
    transform: translateY(-3px);
    border-color: #00E676;
    color: #ffffff;
}

.streams-tab.start-earning-btn i {
    color: #ffffff; /* White dollar sign icon */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

/* Start Earning Money button shimmer effect */
.streams-tab.start-earning-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    opacity: 0;
}

.streams-tab.start-earning-btn:hover::before {
    left: 100%;
    opacity: 1;
}

/* Ensure the Start Earning button has proper glow effects */
.streams-tab.start-earning-btn:hover {
    box-shadow: 
        0 8px 25px rgba(0, 200, 83, 0.6), 
        0 2px 10px rgba(0, 230, 118, 0.25) inset,
        0 0 30px rgba(0, 200, 83, 0.3);
}

/* Streamers button shimmer effect */
.streams-tab.streamers-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    opacity: 0;
}

.streams-tab.streamers-btn:hover::before {
    left: 100%;
    opacity: 1;
}

/* W's tab - white styling with connected design */
.streams-tab.success-stories-btn {
    background: #ffffff;
    color: #000000 !important;
    position: relative;
    border-right: none; /* Last button, no right border */
    border: none; /* Remove black border */
}

.streams-tab.success-stories-btn:hover {
    background: #f8f9fa;
    color: #000000 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.streams-tab.success-stories-btn i {
    color: #000000 !important;
}

/* W's button shimmer effect */
.streams-tab.success-stories-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
    opacity: 0; /* Hidden by default */
}

.streams-tab.success-stories-btn:hover::before {
    left: 100%;
    opacity: 1; /* Show shimmer on hover */
}

/* Load More button - unified styling with streamers button */
.streams-tab.load-more-btn {
    background: linear-gradient(135deg, #0045b3 0%, #0057F6 50%, #0045b3 100%);
    box-shadow: 0 8px 25px rgba(0, 87, 246, 0.5), 0 3px 12px rgba(255, 255, 255, 0.15) inset;
    border: 1px solid #0057F6;
    margin: 0 auto;
    max-width: 280px;
}

.streams-tab.load-more-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 50%, #0066cc 100%);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.7), 0 3px 15px rgba(255, 255, 255, 0.25) inset;
    color: white;
}

.streams-tab.load-more-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #6c757d 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid #5a6268;
    cursor: not-allowed;
    transform: none;
    color: rgba(255, 255, 255, 0.6);
}

.streams-tab.load-more-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive text for tabs */
.streams-tab .tab-text-long {
    display: inline;
}

.streams-tab .tab-text-short {
    display: none;
}

/* Mobile adjustments for streams tabs - vertical stacked design */
@media (max-width: 767px) {
    .streams-tabs-container {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 0; /* Keep connected */
        padding: 8px 20px 6px 20px; /* Reduced vertical padding */
        margin-bottom: 12px;
        justify-content: center;
        align-items: center; /* Center the stacked buttons */
    }
    
    .streams-tab {
        font-size: 0.9rem; /* Smaller font for mobile */
        padding: 10px 20px; /* Compact padding - slimmer height */
        min-width: 280px; /* Consistent width for all buttons */
        width: 280px; /* Fixed width for clean alignment */
        min-height: 38px; /* Slim height */
        max-height: 38px; /* Enforce slim height */
        flex-shrink: 0;
        white-space: nowrap;
        border-right: none; /* Remove horizontal dividers */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add horizontal dividers between stacked buttons */
    }
    
    .streams-tab .tab-text-long {
        display: none;
    }
    
    .streams-tab .tab-text-short {
        display: inline;
    }
    
    /* Vertical stacking - rounded corners on top and bottom */
    .streams-tab:first-child {
        border-radius: 8px 8px 0 0; /* Rounded top corners */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .streams-tab:last-child {
        border-radius: 0 0 8px 8px; /* Rounded bottom corners */
        border-bottom: none; /* No border on last button */
    }
    
    .streams-tab:not(:first-child):not(:last-child) {
        border-radius: 0; /* No radius on middle buttons */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* If only one button (shouldn't happen but safety) */
    .streams-tab:only-child {
        border-radius: 8px;
        border-bottom: none;
    }
    
    /* Ensure mobile touch targets are adequate */
    .streams-tab {
        min-height: 38px; /* Slim but still touchable */
    }
    
    /* Adjust hover effects for mobile stack */
    .streams-tab:hover {
        transform: translateX(3px) scale(1.01); /* Slide right instead of up */
        z-index: 10;
    }
}

/* Hide old positioned tabs since they're now rendered in streams container */
.how-it-works-tab,
.request-stream-tab,
.success-stories-tab {
    display: none !important;
}

/* Load More Container - simplified for unified button */
.load-more-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.load-more-info {
    margin-bottom: 1.5rem;
}

.load-more-info .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for Load More */
@media (max-width: 768px) {
    .load-more-container {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .load-more-info .text-muted {
        font-size: 0.85rem;
    }
}

/* Spinner keyframes for loading states */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   STREAMS SEARCH FUNCTIONALITY
   ================================ */

/* Streams search container */
.streams-search-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Search input group styling */
.streams-search-container .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.streams-search-container .input-group-text {
    background: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-right: none !important;
    color: rgba(255, 255, 255, 0.7);
}

.streams-search-container .form-control {
    background: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-left: none !important;
    border-right: none !important;
    color: white !important;
    font-size: 1rem;
    padding: 12px 16px;
}

.streams-search-container .form-control:focus {
    background: rgba(33, 37, 41, 1) !important;
    border-color: #0057F6 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 246, 0.25) !important;
    color: white !important;
}

.streams-search-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Clear search button */
.streams-search-container .btn-outline-secondary {
    background: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.streams-search-container .btn-outline-secondary:hover {
    background: rgba(220, 53, 69, 0.8) !important;
    border-color: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Search results and no results styling */
.search-results,
.no-results {
    text-align: center;
    opacity: 0.9;
}

.search-results small,
.no-results small {
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-results .fa-search {
    color: #28a745;
}

.search-results .fa-spinner {
    color: #0057F6;
}

.no-results .fa-exclamation-circle {
    color: #ffc107;
}

/* Search counter styling */
.search-counter {
    background: rgba(0, 87, 246, 0.1);
    border: 1px solid rgba(0, 87, 246, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
}

.search-counter .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-counter .fa-search {
    color: #0057F6;
}

/* Search loading animation */
@keyframes searchPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.search-results .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Smooth transitions for search repositioning */
.stream-card {
    transition: all 0.3s ease;
}

.search-results-container {
    display: contents;
}

/* Hide cards during search repositioning for smooth effect */
.stream-card.search-repositioning {
    opacity: 0.7;
    transform: scale(0.98);
}

.stream-card.search-visible {
    opacity: 1;
    transform: scale(1);
}

/* Search highlights */
.stream-card mark {
    background-color: rgba(255, 193, 7, 0.8) !important;
    color: #000 !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    text-shadow: none;
}

/* Hidden search results */
.stream-card.search-hidden {
    display: none !important;
}

/* Search container mobile adjustments */
@media (max-width: 767px) {
    .streams-search-container {
        margin: 0;
        padding: 0 10px;
    }
    
    .streams-search-container .form-control,
    .streams-search-container .input-group-text,
    .streams-search-container .btn-outline-secondary {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .streams-search-container .form-control::placeholder {
        font-size: 0.85rem;
    }
    
    .search-results small,
    .no-results small {
        font-size: 0.8rem;
    }
}

/* Search animation for smooth transitions */
.stream-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stream-card.search-hidden {
    opacity: 0;
    transform: scale(0.95);
}

/* Focus states for accessibility */
.streams-search-container .form-control:focus,
.streams-search-container .btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 246, 0.25);
}

/* Success Stories Modal Styling - Dark Theme with Green/Blue Accents */
#successStoriesModal .modal-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

#successStoriesModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#successStoriesModal .modal-title .brand-text {
    font-weight: 800;
    color: #0057F6;
}

#successStoriesModal .modal-title .brand-highlight {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#successStoriesModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

#successStoriesModal .form-control:focus {
    background-color: rgba(32, 32, 32, 1) !important;
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25) !important;
    color: #ffffff !important;
}

#successStoriesModal .form-select:focus {
    background-color: rgba(32, 32, 32, 1) !important;
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25) !important;
    color: #ffffff !important;
}

#successStoriesModal .form-select option {
    background-color: rgba(32, 32, 32, 1) !important;
    color: #ffffff !important;
}

/* Success Stories Card Hover Effects */
#successStoriesModal .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.2) !important;
}

/* Success Stories Submit Button Hover */
#successStoriesModal button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4) !important;
}

/* Start Earning Modal Styling - Full Screen Dark Theme with Green Accents */
#startEarningModal .modal-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
    color: #00C853;
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
}

#startEarningModal .modal-header {
    border-bottom: 1px solid rgba(0, 200, 83, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    padding: 1.5rem 2rem;
}

#startEarningModal .modal-footer {
    flex-shrink: 0; /* Don't shrink footer */
    position: relative;
    z-index: 1050;
    border-top: 1px solid rgba(0, 200, 83, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    padding: 1rem 1.5rem;
    width: 100%;
}

/* Close button styling for Start Earning modal */
#startEarningModal .btn-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    transition: all 0.3s ease !important;
}

#startEarningModal .btn-close::before {
    content: "✕" !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

#startEarningModal .btn-close:hover {
    color: #00C853 !important;
    transform: scale(1.1) !important;
}

#startEarningModal .btn-close:hover::before {
    color: #00C853 !important;
}

/* Fix fullscreen modal with centered content for Start Earning */
#startEarningModal {
    padding: 0 !important;
    margin: 0 !important;
}

#startEarningModal .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure modal backdrop doesn't create borders */
#startEarningModal.modal {
    padding: 0 !important;
}

#startEarningModal .modal-content {
    min-height: 100vh;
    height: 100vh; /* Fixed height */
    border: none !important;
    border-radius: 0 !important;
    background: #000000;
    color: white;
    display: flex; /* Use flexbox for layout */
    flex-direction: column;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override Bootstrap container behavior within the modal */
#startEarningModal .container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

#startEarningModal .modal-header {
    flex-shrink: 0; /* Don't shrink header */
    position: relative;
    z-index: 1050;
    border-bottom: 1px solid rgba(0, 200, 83, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    padding: 1.5rem 2rem;
}

#startEarningModal .modal-body {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding */
    background: #000000;
    position: relative;
    overflow: visible; /* Allow content to flow to footer */
}

#startEarningModal .modal-footer {
    flex-shrink: 0; /* Don't shrink footer */
    position: relative;
    z-index: 1050;
    border-top: 1px solid rgba(0, 200, 83, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    padding: 1rem 1.5rem;
    width: 100%;
}


