/* css/style.css - COMPLETE FIXED VERSION WITH VIDEO BACKGROUND & MOBILE FIX */

/* ========================================================================== */
/* EMERGENCY FIX - TOP LINKS & NAVBAR POSITIONING OVERRIDE */
/* ========================================================================== */

/* TOP LINKS BAR - ABSOLUTE PRIORITY WITH BLUR EXTENSIONS */
body > .top-links-bar {
    position: fixed !important;
    top: 0 !important; /* Start from top to allow blur extension above */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 30px !important; /* Increased to accommodate blur extensions */
    z-index: 1001 !important;
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(15px) !important; /* Increased blur */
    -webkit-backdrop-filter: blur(15px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 1rem !important;
    overflow: hidden !important;
}

/* Blur extension above the top links bar */
body > .top-links-bar::before {
    content: '';
    position: absolute;
    top: -20px !important; /* Extend 10px above */
    left: 0 !important;
    right: 0 !important;
    height: 10px !important;
    background: inherit !important;
    backdrop-filter: inherit !important;
    -webkit-backdrop-filter: inherit !important;
    z-index: -1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Blur extension below the top links bar */
body > .top-links-bar::after {
    content: '';
    position: absolute;
    bottom: -20px !important; /* Extend 10px below */
    left: 0 !important;
    right: 0 !important;
    height: 10px !important;
    background: inherit !important;
    backdrop-filter: inherit !important;
    -webkit-backdrop-filter: inherit !important;
    z-index: -1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* NAVBAR - MUST BE BELOW EXTENDED TOP LINKS */
body > .navbar {
    position: fixed !important;
    top: 30px !important; /* 30px (extended top links height) */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 1000 !important;
    background: transparent !important;
}

/* MAIN CONTENT - ADJUST FOR EXTENDED BARS */
.main-content {
    margin-top: 100px !important; /* 30px (top links) + 70px (navbar) */
    min-height: calc(100vh - 100px) !important;
    position: relative;
    z-index: 1;
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
    body > .top-links-bar {
        height: 28px !important; /* Slightly smaller extended height */
    }
    
    body > .top-links-bar::before {
        top: -8px !important;
        height: 8px !important;
    }
    
    body > .top-links-bar::after {
        bottom: -8px !important;
        height: 8px !important;
    }
    
    body > .navbar {
        top: 28px !important;
        height: 60px !important;
    }
    
    .main-content {
        margin-top: 88px !important; /* 28px + 60px */
        min-height: calc(100vh - 88px) !important;
    }
}

@media (max-width: 480px) {
    body > .top-links-bar {
        height: 26px !important; /* Even smaller for mobile */
    }
    
    body > .top-links-bar::before {
        top: -6px !important;
        height: 6px !important;
    }
    
    body > .top-links-bar::after {
        bottom: -6px !important;
        height: 6px !important;
    }
    
    body > .navbar {
        top: 26px !important;
        height: 60px !important;
    }
    
    .main-content {
        margin-top: 86px !important; /* 26px + 60px */
        min-height: calc(100vh - 86px) !important;
    }
}

/* ========================================================================== */
/* VIDEO BACKGROUND POSITIONING FIX */
/* ========================================================================== */

/* Nav video should cover only the navbar area (below extended top links) */
.nav-video-background {
    position: fixed !important;
    top: 30px !important; /* Same as navbar */
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 998 !important;
    object-fit: cover;
    pointer-events: none;
    opacity: 1;
    filter: brightness(1) contrast(1) !important; /* No blur */
}

.video-container {
    position: fixed !important;
    top: 30px !important; /* Same as navbar */
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 997 !important;
    overflow: hidden;
    /* No blur filter */
}

/* Mobile video positioning */
@media (max-width: 768px) {
    .nav-video-background,
    .video-container {
        top: 28px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .nav-video-background,
    .video-container {
        top: 26px !important;
        height: 60px !important;
    }
}

/* ========================================================================== */
/* TOP LINKS BAR STYLES - UPDATED FOR BLUR EXTENSIONS */
/* ========================================================================== */

.top-links-bar {
    position: fixed;
    top: 0; /* Start from top for blur extensions */
    left: 0;
    width: 100%;
    height: 30px; /* Extended height */
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    overflow: hidden;
}

/* Blur extensions for regular top-links-bar class */
.top-links-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: inherit;
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    z-index: -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.top-links-bar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: inherit;
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-links-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-top: 3px; /* Center the content with 3px space from top */
}

.top-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(229, 9, 20, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.top-link:hover {
    color: var(--text-light);
    background: rgba(229, 9, 20, 0.15);
    text-decoration-thickness: 2px;
    transform: translateY(-1px);
}

.link-separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* Home page specific top links */
#home .top-link {
    color: var(--home-primary-color);
    background: rgba(40, 167, 69, 0.05);
}

#home .top-link:hover {
    background: rgba(40, 167, 69, 0.15);
}

/* Mobile responsive adjustments for top links */
@media (max-width: 768px) {
    .top-links-bar {
        height: 28px;
        padding: 0 0.5rem;
    }
    
    .top-links-bar::before {
        top: -8px;
        height: 8px;
    }
    
    .top-links-bar::after {
        bottom: -8px;
        height: 8px;
    }
    
    .top-links-container {
        font-size: 0.75rem;
        gap: 0.3rem;
        margin-top: 2px;
    }
    
    .top-link {
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .top-links-bar {
        height: 26px;
        padding: 0 0.3rem;
    }
    
    .top-links-bar::before {
        top: -6px;
        height: 6px;
    }
    
    .top-links-bar::after {
        bottom: -6px;
        height: 6px;
    }
    
    .top-links-container {
        font-size: 0.7rem;
        gap: 0.2rem;
        margin-top: 1px;
    }
    
    .top-link {
        padding: 0.1rem 0.3rem;
    }
}

/* ========================================================================== */
/* EMERGENCY FIX - Force single section display */
/* ========================================================================== */

#home, #movies, #upload, #about, #products, #news {
    display: none !important;
}

#home.active, #movies.active, #upload.active, #about.active, #products.active, #news.active {
    display: block !important;
}

/* Remove any conflicting section display rules */
.section {
    display: none !important;
}

.section.active {
    display: block !important;
}

/* CSS backup for hiding signup button for logged-in users */
body.user-logged-in #signup-btn {
    display: none !important;
}

/* QUICK EMERGENCY FIX */
#home.hero.section.active {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.hero-content {
    padding-bottom: 1rem !important;
}

.call-to-action {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}

.site-footer {
    margin-top: 0 !important;
}

body.user-logged-out #signup-btn {
    display: inline-flex !important;
}

/* EMERGENCY STATIC NAVBAR FIX */
html, body {
    overflow-x: hidden;
}

.navbar {
    position: fixed !important;
    top: 30px !important; /* Updated for extended top links */
    left: 0 !important;
    right: 0 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
    transition: none !important;
}

/* Completely disable any scroll effects */
* {
    scroll-behavior: auto !important;
}

/* MOBILE HEADER FIX - PREVENT SECTION HEADER CUTOFF */
/* Mobile responsive adjustments for header spacing */
@media (max-width: 768px) {
    /* Ensure sections have proper top padding */
    .section {
        padding-top: 2rem !important; /* Add top padding to sections */
        margin-top: 0 !important; /* Remove top margin to prevent overlap */
    }
    
    /* Specific fix for hero section on mobile */
    .hero.section {
        padding-top: 1rem !important;
        min-height: calc(100vh - 60px) !important; /* Adjust height for mobile navbar */
    }
    
    /* Fix for section headers being cut off */
    .section > h1,
    .section > h2,
    .section > .section-header {
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    /* More aggressive padding for very small screens */
    .section {
        padding-top: 1.5rem !important;
    }
    
    .hero.section {
        padding-top: 0.5rem !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    /* Ensure headers are fully visible */
    .section > h1,
    .section > h2,
    .section > .section-header {
        padding-top: 1.5rem !important;
        scroll-margin-top: 70px; /* Help with anchor links */
    }
}

/* EMERGENCY FIX FOR IMMEDIATE HEADER VISIBILITY */
/* Add this to ensure headers are never cut off */
.section.active {
    position: relative;
}

/* Force headers to be visible with important flags */
#home h1,
#movies h1, 
#upload h1,
#about h1,
#products h1,
#news h1,
.section h1:first-child,
.section h2:first-child {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

/* Specific fix for hero section header */
.hero-content h1 {
    padding-top: 0 !important;
    margin-top: 1rem !important;
}

/* Additional safety margin for all section content */
.section > *:first-child {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* ... REST OF YOUR EXISTING CSS REMAINS THE SAME ... */

/* ========================================================================== */
/* RESET AND BASE STYLES */
/* ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --primary-dark: #b8070f;
    --secondary-color: #1a1a1a;
    --background-dark: #0f0f0f;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --border-color: #333333;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* Home page specific colors */
#home {
    --home-primary-color: #28a745;
    --home-primary-dark: #1e7e34;
    --home-success-color: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================================================== */
/* VIDEO BACKGROUND - REPLACES ANIMATED COLOR BACKGROUND */
/* ========================================================================== */

.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind everything */
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text readability */
    z-index: 1;
}

.video-fallback-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    z-index: 0;
    display: none; /* Hidden by default */
}

/* Video loading states */
.background-video.loading {
    opacity: 0;
}

.background-video.loaded {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* ========================================================================== */
/* NAVIGATION VIDEO BACKGROUND */
/* ========================================================================== */

/* ENHANCE NAVBAR ELEMENTS FOR BETTER VISIBILITY */
.nav-brand-container,
.nav-scroll-container,
.auth-buttons {
    background: rgba(0, 0, 0, 0.3) !important; /* ADDED: Dark overlay for better text readability */
    backdrop-filter: blur(2px) !important; /* CHANGED: Reduced to 2px blur */
    -webkit-backdrop-filter: blur(2px) !important;
}

/* NAVBAR CONTAINER - FIXED POSITION */
.navbar {
    position: fixed;
    top: 27px; /* Account for top links */
    left: 0;
    width: 100%;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    z-index: 999;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    gap: 0;
    isolation: isolate;
    transform: none !important;
    transition: none !important;
}

/* NAVBAR BRAND CONTAINER - TOP ROW */
.nav-brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.3rem 1rem;
    min-height: auto;
    flex-shrink: 0;
    height: 35px;
}

/* NAVBAR SCROLL CONTAINER - MIDDLE ROW */
.nav-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.5rem;
    flex-shrink: 0;
    min-height: auto;
    height: 35px;
}

.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.5rem;
    min-width: max-content;
    flex-shrink: 0;
    height: 100%;
}

/* AUTH BUTTONS CONTAINER - BOTTOM ROW - FIXED FOR VIDEO COVERAGE */
.auth-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0.3rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    min-height: auto;
    gap: 0.5rem;
    height: 35px;
    position: relative;
    z-index: 1000;
}

/* ENHANCE ALL NAVBAR ELEMENTS FOR VIDEO VISIBILITY */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.nav-brand span {
    color: white !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* NAV LINKS - COVERED BY VIDEO */
.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(3px) !important; /* CHANGED: Reduced to 3px blur */
    -webkit-backdrop-filter: blur(3px) !important;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 103, 214, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #3367D6 0%, #28a745 100%);
    color: white !important;
    border-color: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 103, 214, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.nav-link.active {
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(51, 103, 214, 0.7);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(51, 103, 214, 0.8);
}

/* BUTTONS - COVERED BY VIDEO */
.btn-outline {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px) !important; /* CHANGED: Reduced to 3px blur */
    -webkit-backdrop-filter: blur(3px) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    height: auto;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px);
}

/* LOGIN/LOGOUT BUTTONS - THIN & SMALL LIKE HOME BUTTON */
#login-btn, #logout-btn {
    /* THIN & SMALL SIZING FOR BOTH BUTTONS */
    padding: 0.25rem 0.8rem !important; /* CHANGED: Very thin padding */
    height: 24px !important; /* CHANGED: Very thin height */
    min-width: 70px !important; /* CHANGED: Compact width */
    border-radius: 4px !important; /* CHANGED: Smaller radius */
    font-size: 0.75rem !important; /* CHANGED: Smaller font */
    font-weight: 500 !important; /* CHANGED: Normal weight */
    
    /* COMMON STYLES */
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1001;
    backdrop-filter: blur(2px) !important; /* CHANGED: Reduced blur */
    -webkit-backdrop-filter: blur(2px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid !important; /* CHANGED: Thinner border */
    transition: all 0.2s ease !important; /* CHANGED: Faster transition */
    cursor: pointer;
    margin: 0 !important;
    line-height: 1 !important;
}

/* LOGIN BUTTON - BLUE THEME */
#login-btn {
    background: linear-gradient(135deg, rgba(51, 103, 214, 0.9), rgba(41, 128, 185, 0.9)) !important;
    border-color: rgba(51, 103, 214, 0.7) !important;
    box-shadow: 0 1px 4px rgba(51, 103, 214, 0.3) !important;
}

#login-btn:hover {
    background: linear-gradient(135deg, rgba(51, 103, 214, 0.95), rgba(41, 128, 185, 0.95)) !important;
    border-color: rgba(51, 103, 214, 0.9) !important;
    transform: translateY(-1px) !important; /* CHANGED: Smaller lift */
    box-shadow: 0 2px 8px rgba(51, 103, 214, 0.4) !important;
}

#login-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(51, 103, 214, 0.4) !important;
}

/* LOGOUT BUTTON - RED THEME (THIN & COMPACT) */
#logout-btn {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(192, 57, 43, 0.9)) !important;
    border-color: rgba(220, 53, 69, 0.7) !important;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3) !important;
}

#logout-btn:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(192, 57, 43, 0.95)) !important;
    border-color: rgba(220, 53, 69, 0.9) !important;
    transform: translateY(-1px) !important; /* CHANGED: Smaller lift */
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
}

#logout-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.4) !important;
}

/* MOBILE RESPONSIVE ADJUSTMENTS - EVEN THINNER BUTTONS */
@media (max-width: 768px) {
    #login-btn, #logout-btn {
        padding: 0.2rem 0.6rem !important; /* CHANGED: Even thinner */
        height: 22px !important; /* CHANGED: Even thinner */
        min-width: 60px !important; /* CHANGED: More compact */
        font-size: 0.7rem !important; /* CHANGED: Smaller font */
    }
}

@media (max-width: 480px) {
    #login-btn, #logout-btn {
        padding: 0.15rem 0.5rem !important; /* CHANGED: Very thin */
        height: 20px !important; /* CHANGED: Very thin */
        min-width: 55px !important; /* CHANGED: Very compact */
        font-size: 0.65rem !important; /* CHANGED: Very small font */
    }
}

/* AUTH INFO TEXT */
.auth-info {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    text-align: right;
    flex: 1;
    margin-left: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* FALLBACK IF VIDEO FAILS */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 996;
    /* No blur filter */
}

/* REMOVE ANY CONFLICTING STYLES */
.navbar::before,
.navbar::after {
    display: none !important;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .navbar {
        height: 60px; /* Original mobile height */
        min-height: 60px;
        max-height: 60px;
    }
    
    .nav-brand-container,
    .nav-scroll-container,
    .auth-buttons {
        height: 30px; /* Original mobile heights */
        padding: 0.2rem 0.8rem;
        backdrop-filter: blur(1px) !important; /* CHANGED: Reduced to 1px blur */
        -webkit-backdrop-filter: blur(1px) !important;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        backdrop-filter: blur(1px) !important; /* CHANGED: Reduced to 1px blur */
        -webkit-backdrop-filter: blur(1px) !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px; /* Original mobile height */
    }
    
    .nav-brand-container,
    .nav-scroll-container,
    .auth-buttons {
        height: 30px; /* Original mobile heights */
        padding: 0.2rem 0.5rem;
        backdrop-filter: blur(0px) !important; /* CHANGED: No blur on small mobile */
        -webkit-backdrop-filter: blur(0px) !important;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        backdrop-filter: blur(0px) !important; /* CHANGED: No blur on small mobile */
        -webkit-backdrop-filter: blur(0px) !important;
    }
    
    .auth-info {
        font-size: 0.75rem;
    }
}

/* VIDEO LOADING STATES */
.nav-video-background.loading {
    opacity: 0;
}

.nav-video-background.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ========================================================================== */
/* UPDATED SECTION STYLES FOR VIDEO BACKGROUND */
/* ========================================================================== */

/* Remove old animated background styles */
.background-slider,
.color-slide,
.slide {
    display: none !important;
}

/* Update sections for better visibility on video background */
.section {
    background: rgba(15, 15, 15, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(1px);
    margin: 2rem auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

/* Ensure only one section is active at a time */
.section:not(.active) {
    display: none !important;
}

/* Enhanced Hero Section Styles */
.hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent !important; /* Remove gradient background */
    padding: 2rem 1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Subtle overlay for hero section */
    z-index: -1;
    border-radius: 12px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Home page specific hero styles */
#home .hero-content h1 {
    background: linear-gradient(135deg, var(--home-primary-color), #28c76f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.hero-description > p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Home page description box */
#home .hero-description > p {
    border-left: 4px solid var(--home-primary-color);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-item {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(229, 9, 20, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Home page feature items */
#home .feature-item:hover {
    border-color: var(--home-primary-color);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.2);
}

#home .feature-item i {
    color: var(--home-primary-color);
    background: rgba(40, 167, 69, 0.1);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.feature-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.company-mission,
.platform-highlights,
.technology-innovation,
.community-impact,
.call-to-action {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 4rem 0;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.company-mission::before,
.platform-highlights::before,
.technology-innovation::before,
.community-impact::before,
.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.company-mission h2,
.platform-highlights h2,
.technology-innovation h2,
.community-impact h2,
.call-to-action h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

/* Home page sections */
#home .company-mission,
#home .platform-highlights,
#home .technology-innovation,
#home .community-impact,
#home .call-to-action {
    border-left: 4px solid var(--home-primary-color);
}

#home .company-mission::before,
#home .platform-highlights::before,
#home .technology-innovation::before,
#home .community-impact::before,
#home .call-to-action::before {
    background: linear-gradient(90deg, var(--home-primary-color), transparent);
}

#home .company-mission h2,
#home .platform-highlights h2,
#home .technology-innovation h2,
#home .community-impact h2,
#home .call-to-action h2 {
    color: var(--home-primary-color);
}

.company-mission p,
.technology-innovation p,
.community-impact p,
.call-to-action p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.highlight-item {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(229, 9, 20, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Home page highlight items */
#home .highlight-item:hover {
    border-color: var(--home-primary-color);
}

#home .highlight-item i {
    color: var(--home-primary-color);
    background: rgba(40, 167, 69, 0.1);
}

.highlight-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.highlight-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Home page CTA buttons */
#home .btn-secondary {
    background: linear-gradient(135deg, var(--home-primary-color) 0%, #20c997 100%);
}

#home .btn-secondary:hover {
    background: linear-gradient(135deg, #20c997 0%, var(--home-primary-color) 100%);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.social-proof {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Home page statistics */
#home .stat:hover {
    background: rgba(40, 167, 69, 0.1);
}

#home .stat-number {
    color: var(--home-primary-color);
    background: linear-gradient(135deg, var(--home-primary-color), #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced responsive design for home section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 2rem;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .company-mission,
    .platform-highlights,
    .technology-innovation,
    .community-impact,
    .call-to-action {
        padding: 2rem 1.5rem;
        margin: 2.5rem 0;
    }
    
    .company-mission h2,
    .platform-highlights h2,
    .technology-innovation h2,
    .community-impact h2,
    .call-to-action h2 {
        font-size: 1.8rem;
    }
    
    .hero-description > p {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    /* Mobile video background adjustments */
    .video-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .section {
        background: rgba(15, 15, 15, 0.95);
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item i {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .highlight-item i {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }

    /* Small screen video background adjustments */
    .section {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Animation enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.highlight-item,
.stat {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }
.highlight-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================== */
/* EXISTING STYLES FOR OTHER SECTIONS (UPDATED FOR VIDEO BACKGROUND) */
/* ========================================================================== */

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.movie-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    border-color: var(--primary-color);
}

.movie-poster {
    width: 100%;
    height: 200px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 1.5rem;
}

.movie-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.movie-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Upload Section */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(229, 9, 20, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.movie-form, .news-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(15, 15, 15, 0.8);
    color: var(--text-light);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Progress Bar */
.upload-progress {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: rgba(30, 30, 30, 0.9);
    color: var(--text-light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-box i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* About Us Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section-content {
    margin-bottom: 3rem;
}

.about-section-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-section-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ========================================================================== */
/* CLEAN TEAM MEMBER STYLES - MOBILE FIXED (SINGLE VERSION) */
/* ========================================================================== */

.team-member {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
    border-color: var(--primary-color);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.3);
}

.team-info {
    flex: 1;
    min-width: 0;
}

.team-info h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
    font-weight: 700;
}

.team-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.team-info p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(229, 9, 20, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* MOBILE FIX - SINGLE VERSION AT THE END */
@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
        border-width: 3px;
    }
    
    .team-info h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .team-info p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .team-info p:first-of-type {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-member {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .team-info h4 {
        font-size: 1.3rem;
    }
    
    .team-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .team-info p:first-of-type {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
}

/* About Section General Mobile Improvements */
.about-section .section-header {
    margin-bottom: 3rem;
}

.about-section-content {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section-content:last-child {
    margin-bottom: 0;
}

.about-section-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.8rem;
    display: inline-block;
}

.about-section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

/* Mobile-specific about section improvements */
@media (max-width: 768px) {
    .about-container {
        padding: 1.5rem;
    }
    
    .about-section-content {
        margin-bottom: 2.5rem;
        padding: 1.5rem;
    }
    
    .about-section-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .about-section-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 1rem;
    }
    
    .about-section-content {
        margin-bottom: 2rem;
        padding: 1.2rem;
    }
    
    .about-section-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .about-section-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    border-color: var(--primary-color);
}

.product-header {
    padding: 1.5rem;
    background: rgba(229, 9, 20, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-body {
    padding: 1.5rem;
}

.product-features {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--primary-color);
}

/* News Section */
.news-container {
    max-width: 1000px;
    margin: 0 auto;
}

.news-feed {
    max-width: 800px;
    margin: 0 auto;
}

.news-post {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-media {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.news-video {
    width: 100%;
    max-height: 400px;
    background: #000;
}

.post-content {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
}

.post-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.comments-btn:hover {
    color: var(--primary-color);
}

.news-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.news-author {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.like-btn:hover {
    color: var(--primary-color);
}

.like-btn.liked {
    color: var(--primary-color);
}

/* Comments Styles */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-content {
    color: var(--text-light);
    line-height: 1.5;
}

.add-comment-form {
    margin-top: 1.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-light);
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: var(--text-light);
}

.auth-form {
    padding: 1.5rem;
}

.auth-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Notification Styles */
@keyframes slideInRight { 
    from { transform: translateX(100%); opacity:0; } 
    to { transform:translateX(0); opacity:1; } 
}
@keyframes slideOutRight { 
    from { transform: translateX(0); opacity:1; } 
    to { transform: translateX(100%); opacity:0; } 
}
.notification-content { 
    display:flex; 
    align-items:center; 
    gap:0.5rem; 
}

/* Thumbnail Upload Styles */
.thumbnail-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.thumbnail-preview {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.thumbnail-preview i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.thumbnail-preview p {
    color: var(--text-muted);
    margin: 0;
}

.thumbnail-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.thumbnail-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail-controls .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.thumbnail-info {
    text-align: center;
}

.thumbnail-info small {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

/* Responsive thumbnail styles */
@media (max-width: 768px) {
    .thumbnail-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .thumbnail-controls .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .thumbnail-preview {
        min-height: 120px;
    }
    
    .thumbnail-preview i {
        font-size: 2rem;
    }
}

/* Footer Styles */
.site-footer {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-link:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    width: 20px;
    color: var(--primary-color);
}

/* Visitor Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Legal Links */
.legal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.legal-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.legal-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.legal-btn i {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Privacy Policy Modal Styles */
.privacy-content {
    line-height: 1.8;
    color: var(--text-light);
}

.privacy-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.privacy-content h5 {
    color: #ff6b6b;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.privacy-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.disclaimer-section {
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    margin: 1rem 0;
}

.policy-footer {
    background: rgba(229, 9, 20, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid var(--primary-color);
}

/* Fix Privacy Policy Modal Scrolling */
#privacy-modal .modal-content {
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5% auto;
}

#privacy-modal .modal-header {
    flex-shrink: 0;
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem;
}

#privacy-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: calc(85vh - 80px);
    min-height: 200px;
}

.privacy-content {
    padding: 1.5rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.privacy-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content h5 {
    color: #ff6b6b;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.privacy-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-light);
}

.disclaimer-section {
    background: rgba(255, 107, 107, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    margin: 1.5rem 0;
}

.policy-footer {
    background: rgba(229, 9, 20, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid var(--primary-color);
}

/* Ensure modal is above everything */
.modal {
    z-index: 3000;
}

.modal-content {
    z-index: 3001;
}

/* Enhanced modal scrolling for all modals */
.modal-body {
    scroll-behavior: smooth;
    overflow-y: auto;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--background-dark);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Mobile-specific fixes for modals */
@media (max-width: 768px) {
    #privacy-modal .modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 2% auto;
        width: 95%;
    }
    
    #privacy-modal .modal-body {
        max-height: calc(90vh - 70px);
    }
    
    .privacy-content {
        padding: 1rem;
    }
    
    .privacy-content h4 {
        font-size: 1.2rem;
    }
    
    .privacy-content h5 {
        font-size: 1rem;
    }
    
    .disclaimer-section,
    .policy-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    #privacy-modal .modal-content {
        max-width: 98%;
        max-height: 95vh;
        margin: 1% auto;
        width: 98%;
    }
    
    #privacy-modal .modal-body {
        max-height: calc(95vh - 60px);
    }
    
    .privacy-content {
        padding: 0.8rem;
    }
    
    .privacy-content h4 {
        font-size: 1.1rem;
    }
    
    .privacy-content h5 {
        font-size: 0.95rem;
    }
    
    .privacy-content ul {
        margin-left: 1rem;
    }
}

/* Fix Terms of Service Modal Scrolling */
#terms-modal .modal-content {
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5% auto;
}

#terms-modal .modal-header {
    flex-shrink: 0;
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem;
}

#terms-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: calc(85vh - 80px);
    min-height: 200px;
}

/* Performance optimizations for video background */
@media (prefers-reduced-motion: reduce) {
    .background-video {
        display: none;
    }
    
    .video-fallback-background {
        display: block;
    }
}

.background-video {
    will-change: transform;
    transform: translateZ(0);
}
/* ========================================================================== */
/* DROPDOWN MENU STYLES - FIX BOTH DROPDOWN AND LOGOUT BUTTON POSITIONING */
/* ========================================================================== */

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    min-height: auto;
    height: 35px;
    position: relative;
    z-index: 1000;
    width: 100%;
    /* Use flex-start instead of space-between to keep both elements visible */
    justify-content: flex-start;
}

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    /* Allow dropdown to take only the space it needs */
    flex-shrink: 0;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    height: 24px;
    min-width: 40px;
    font-size: 0.75rem;
    margin-left: 0;
    flex-shrink: 0;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.dropdown-toggle i {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Update auth-buttons to push to the right */
.nav-controls .auth-buttons {
    margin: 0;
    padding: 0;
    border: none;
    height: auto;
    /* Push auth buttons to the right */
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu.show {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #000;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.dropdown-item:hover i {
    color: #e50914;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .nav-controls {
        padding: 0.2rem 0.8rem;
        gap: 0.3rem;
    }
    
    .dropdown-toggle {
        padding: 0.3rem 0.5rem;
        height: 22px;
        min-width: 36px;
        font-size: 0.7rem;
    }
    
    .dropdown-toggle i {
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 220px;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-controls {
        padding: 0.2rem 0.5rem;
        gap: 0.2rem;
    }
    
    .dropdown-toggle {
        padding: 0.2rem 0.4rem;
        height: 20px;
        min-width: 32px;
        font-size: 0.65rem;
    }
    
    .dropdown-toggle i {
        font-size: 0.75rem;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .dropdown-item i {
        font-size: 0.9rem;
    }
}
/* EMERGENCY FIX - Force proper positioning */
.nav-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0.3rem 1rem !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1000 !important;
}

.dropdown-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-right: auto !important;
}

.nav-controls .auth-buttons {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}
/* ========================================================================== */
/* EMERGENCY FIX - DROPDOWN & LOGOUT BUTTON POSITIONING OVERRIDE */
/* ========================================================================== */

/* OVERRIDE ALL CONFLICTING STYLES */
.nav-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.3rem 1rem !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1000 !important;
    gap: 0.5rem !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    flex-shrink: 0 !important;
}

/* FORCE DROPDOWN TO LEFT */
.dropdown-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1 !important;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    height: 24px !important;
    min-width: 40px !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* FORCE LOGOUT BUTTON TO RIGHT */
.nav-controls .auth-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    flex-shrink: 0 !important;
    order: 2 !important;
    width: auto !important;
}

/* DROPDOWN MENU POSITIONING */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    min-width: 250px !important;
    padding: 0.5rem 0 !important;
    display: none !important;
    flex-direction: column !important;
    z-index: 1001 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-top: 0.5rem !important;
}

.dropdown-menu.show {
    display: flex !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background: #f8f9fa !important;
    color: #000 !important;
    transform: translateX(5px) !important;
}

.dropdown-item i {
    width: 20px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 1rem !important;
}

.dropdown-item:hover i {
    color: #e50914 !important;
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
    .nav-controls {
        padding: 0.2rem 0.8rem !important;
        gap: 0.3rem !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
    
    .dropdown-toggle {
        padding: 0.3rem 0.5rem !important;
        height: 22px !important;
        min-width: 36px !important;
        font-size: 0.7rem !important;
    }
    
    .dropdown-toggle i {
        font-size: 0.8rem !important;
    }
    
    .dropdown-menu {
        min-width: 220px !important;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Ensure logout button stays visible on mobile */
    .nav-controls .auth-buttons {
        flex-shrink: 0 !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .nav-controls {
        padding: 0.2rem 0.5rem !important;
        gap: 0.2rem !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
    
    .dropdown-toggle {
        padding: 0.2rem 0.4rem !important;
        height: 20px !important;
        min-width: 32px !important;
        font-size: 0.65rem !important;
    }
    
    .dropdown-toggle i {
        font-size: 0.75rem !important;
    }
    
    .dropdown-menu {
        min-width: 200px !important;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .dropdown-item i {
        font-size: 0.9rem !important;
    }
    
    /* Extra safety for very small screens */
    .nav-controls .auth-buttons {
        min-width: 60px !important;
    }
}

/* ANIMATION */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: dropdownFadeIn 0.2s ease !important;
}
/* Education Section Styles */
.education-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.education-subsection {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Styles */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    max-width: 80%;
}

.ai-message, .health-message {
    background: rgba(51, 103, 214, 0.2);
    border-left: 4px solid #3367D6;
    margin-right: auto;
}

.user-message {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(15, 15, 15, 0.8);
    color: var(--text-light);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.notes-results, .music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.note-item, .music-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Market Form Styles */
.buy-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Setbet Styles */
.matches-list {
    display: grid;
    gap: 1rem;
}

.match-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.casino-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* History Map Styles */
.country-map {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-history {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Music Player Styles */
.music-player {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

.player-info {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .education-categories {
        grid-template-columns: 1fr;
    }
    
    .message {
        max-width: 95%;
    }
}
/* Education Section Styles */
.education-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.category-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Education Subsections */
.education-subsection {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subsection-header h3 {
    color: var(--text-light);
    margin: 0;
}

/* Chat Styles */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    max-width: 80%;
}

.ai-message, .health-message {
    background: rgba(51, 103, 214, 0.2);
    border-left: 4px solid #3367D6;
    margin-right: auto;
}

.user-message {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(15, 15, 15, 0.8);
    color: var(--text-light);
}

/* Notes Styles */
.notes-search-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-results {
    display: grid;
    gap: 1rem;
}

.note-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.note-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.note-header h5 {
    color: var(--text-light);
    margin: 0;
}

.note-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.note-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.note-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* History Styles */
.country-map {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-history {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-content p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.history-timeline {
    margin-top: 1.5rem;
}

.timeline-event {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.timeline-event:last-child {
    border-bottom: none;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-categories {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .note-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .note-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .chat-messages {
        height: 300px;
    }
}
/* Music Section Styles */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.music-item {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.music-cover {
    width: 100%;
    height: 200px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-info {
    padding: 1.5rem;
}

.music-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.music-artist {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.music-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.music-actions {
    display: flex;
    gap: 0.5rem;
}

/* Music Player Styles */
.music-player {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

.player-info {
    text-align: center;
    color: var(--text-light);
}

.player-info p {
    margin-bottom: 0.5rem;
}

/* Cover Upload Styles */
.cover-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.cover-preview {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    padding: 1rem;
}

.cover-preview i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cover-preview p {
    color: var(--text-muted);
    margin: 0;
}

.cover-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.cover-controls {
    margin-bottom: 0.5rem;
}

.cover-info {
    text-align: center;
}

.cover-info small {
    color: var(--text-light);
}
/* Music search styles */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.music-item {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.music-item:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-cover {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.music-info h5 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.music-artist {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.music-album, .music-genre {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.music-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.music-actions {
    display: flex;
    gap: 0.5rem;
}

.music-actions .btn {
    flex: 1;
}