:root {
    /* Colors - Modern Deep Dark Theme */
    --bg-color: #050510;
    --primary: #9b1fe8;
    --accent: #00d2ff;
    --brand-gradient: linear-gradient(135deg, #9b1fe8, #00d2ff);
    --text-white: #ffffff;
    --text-gray: #a0a0b0;

    /* Glassmorphism Refined */
    --glass-bg: rgba(20, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --blur: 25px;

    /* Spacing */
    --nav-height: 90px;
    --player-height: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent body scroll, use #scroll-container */
}

/* Background Ambiance */
#ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: url('../img/background.jpg') no-repeat center center/cover;
}

#ambient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.75);
    /* Dark overlay for readability */
    backdrop-filter: blur(5px);
}

/* Old light blobs removed */

/* Navigation */
.glass-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.brand-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Tighter gap */
    align-items: center;
    list-style: none;
}


.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: var(--glass-highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discord-nav-btn {
    background: #5865F2 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-nav-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Scroll Container for Main + Footer */
#scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: var(--nav-height);
    /* Space for Nav */
    padding-bottom: var(--player-height);
    /* Space for Player */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Main Content */
main#app-content {
    flex: 1 0 auto;
    /* Grow to fill space */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    /* Removed min-height to rely on flex-grow */
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: rgba(10, 10, 20, 0.9);
    /* Opaque enough to hide footer */
    backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 999;
    /* TOP OF EVERYTHING */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 340px;
    position: relative;
}

/* VISUALIZER */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 10;
    pointer-events: none;
}

.visualizer .bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out alternate;
}

.visualizer .bar:nth-child(1) {
    height: 10px;
    animation-delay: 0.1s;
    background: #ff7675;
}

.visualizer .bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.3s;
    background: #74b9ff;
}

.visualizer .bar:nth-child(3) {
    height: 8px;
    animation-delay: 0.2s;
    background: #a29bfe;
}

.visualizer .bar:nth-child(4) {
    height: 14px;
    animation-delay: 0.4s;
    background: #55efc4;
}

@keyframes equalize {
    0% {
        height: 5px;
    }

    100% {
        height: 20px;
    }
}

#player-cover {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.ctrl-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.ctrl-btn.sm {
    font-size: 1.2rem;
    opacity: 0.7;
}

.ctrl-btn.play {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--bg-color);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.player-volume {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
}

input[type=range] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #050510;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Reset Discord Button Mobile Style */
    .discord-nav-btn {
        background: transparent !important;
        box-shadow: none !important;
        padding: 15px;
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(88, 101, 242, 0.3);
        justify-content: center;
    }

    .discord-nav-btn:hover {
        background: rgba(88, 101, 242, 0.1) !important;
        transform: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Player: Re-designed for visibility */
    .player-bar {
        height: auto;
        min-height: 90px;
        padding: 15px 20px;
        width: 90%;
        left: 5%;
        bottom: 20px;
        /* Float nicely */
        border-radius: 20px;
        background: rgba(10, 10, 20, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Show Player Info on Mobile */
    .player-info {
        display: flex;
        width: auto;
        flex: 1;
        gap: 12px;
        min-width: 0;
        /* Enable truncation */
    }

    #player-cover {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }

    .track-details {
        align-items: flex-start;
    }

    .title {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .artist {
        font-size: 0.75rem;
    }

    .player-volume {
        display: none;
    }

    /* Compact Controls */
    .player-controls {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        gap: 15px;
    }

    .ctrl-btn.play {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        box-shadow: none;
        background: var(--primary);
        color: white;
    }

    .ctrl-btn:hover {
        transform: none;
    }
}


.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.discord-btn i {
    font-size: 1.1rem;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.45);
    opacity: 0.95;
}

/* --- ANIMATIONS & PARTICLES --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* MARQUEE TEXT CLASS */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

/* GLOBAL CLASSES FOR ANIMATION */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* PARTICLES IN BG */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}

/* LIKE BUTTON ANIMATION */
.ctrl-btn.like-active {
    color: #e91e63 !important;
    animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    text-align: center;
    background: transparent;
}

.partners-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

/* Global Partner Card Style */
.partner-card {
    background: rgba(30, 30, 40, 0.4);
    /* Dark card background */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 200px;
    /* Fixed width for card consistency */
    height: 120px;
    /* Fixed height */
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.partner-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    max-width: 90%;
    max-height: 80px;
    /* Bigger logo limit inside card */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partner-card {
        width: 140px;
        height: 100px;
        padding: 10px;
    }

    .partner-logo {
        max-height: 50px;
    }
}

/* --- ENHANCED AUTH MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.auth-modal {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(5, 5, 10, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 92, 231, 0.2);
    width: 800px;
    max-width: 90%;
    display: flex;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1534224039826-c7a0eda0e6b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    overflow: hidden;
}

.modal-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.modal-left-content {
    position: relative;
    z-index: 1;
}

.modal-left h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.feature-list li i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

.modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    padding-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--text-white);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    /* Left padding for icon if present */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.input-group input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.btn-primary-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), #a29bfe);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LF CORP Branding Footer */
.lf-corp-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(to top, #000, rgba(5, 5, 16, 0.5));
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lf-corp-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.lf-corp-text {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    opacity: 0.7;
}

.lf-corp-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.lf-corp-logos img {
    height: 35px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lf-corp-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.lf-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}



.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* AUTH BUTTON PREMIUM (Specific Selector to override defaults) */
/* AUTH BUTTON PREMIUM (Neon Glass Style) */
#auth-li {
    position: relative;
    list-style: none;
    /* Safety */
}

/* Reset potential conflicting pseudo-elements on the LI */
#auth-li::before,
#auth-li::after {
    content: none !important;
    display: none !important;
}

#auth-li .nav-auth-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2), inset 0 0 10px rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    z-index: 10;
    min-width: 160px;
    /* Force minimum width */
}

/* Hover Effect: Fill with white, dark text */
#auth-li .nav-auth-btn:hover {
    background: #ffffff !important;
    color: var(--bg-color) !important;
    /* Dark text on hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
    border-color: #ffffff !important;
}

#auth-li .nav-auth-btn i {
    font-size: 1.1rem;
    transition: 0.3s;
}

#auth-li .nav-auth-btn:hover i {
    transform: scale(1.1);
    color: var(--primary);
    /* Icon becomes primary color on hover */
}

/* Logged-in variant (Profile) */
#auth-li .nav-auth-btn.logged-in {
    border-color: var(--accent) !important;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

#auth-li .nav-auth-btn.logged-in:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.6);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 5px;
}


/* Pulse Animation for Logic */
.pulse-glow {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

@media (max-width: 768px) {
    .auth-modal {
        flex-direction: column;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: none;
    }

    .modal-left {
        flex: 0 0 200px;
        padding: 20px;
    }

    .modal-left h2 {
        font-size: 1.5rem;
    }
}

/* --- AUTH PAGE STYLES (Restored) --- */
.auth-page-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding-top: 20px;
}

.auth-card {
    background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-header,
.auth-content,
.auth-features {
    position: relative;
    z-index: 1;
}

.detail-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
}

.auth-header p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    z-index: 2;
}

.btn-auth-action {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    margin-top: 20px;
}

.btn-auth-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.6);
}

.auth-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--accent);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- FOOTER STYLES (Fixed) --- */
#main-footer {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 120px;
    /* Extra padding bottom for player bar */
    width: 100%;
    z-index: 1;
    /* Normal flow */
    position: relative;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px !important;
    /* Force small size */
    width: auto !important;
    max-width: 200px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* remove underline */
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* FIX ICON ALIGNMENT IN AUTH FORM */
.input-group {
    position: relative;
    /* Ensure relative context */
}

.input-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 15px !important;
    z-index: 10 !important;
    color: var(--text-gray) !important;
    pointer-events: none;
    /* Let clicks pass through */
    position: absolute !important;
}

.input-group input {
    padding-left: 45px !important;
    /* Ensure space for icon */
}