@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* =========================================
   NEON LOGO EFFECTS
   ========================================= */

.logo-neon-glow {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8)) 
            drop-shadow(0 0 30px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 50px rgba(139, 92, 246, 0.4));
    animation: neon-flicker 4s infinite alternate;
    position: relative;
    z-index: 10;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8)) 
                drop-shadow(0 0 30px rgba(168, 85, 247, 0.6))
                drop-shadow(0 0 50px rgba(139, 92, 246, 0.4));
    }
    20%, 22%, 24%, 55% { 
        opacity: 0.85;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6)) 
                drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
    }
}

/* Professional container for home screen logo */
.logo-home-container {
    position: relative;
    padding: 24px;
    background: linear-gradient(145deg, rgba(9, 9, 11, 0.6), rgba(0, 0, 0, 0.9));
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo-home-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.3), 
        rgba(168, 85, 247, 0.3),
        rgba(139, 92, 246, 0.3));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: logo-glow-pulse 3s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Professional container for header logo */
.logo-header-container {
    position: relative;
    padding: 8px 12px;
    background: linear-gradient(145deg, rgba(9, 9, 11, 0.8), rgba(0, 0, 0, 0.95));
    border: 1.5px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.logo-header-container::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.2), 
        rgba(168, 85, 247, 0.2));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: header-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes header-glow-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* =========================================
   LIVE VERSUS VIEWER ANIMATIONS
   ========================================= */

.viewer-song-card {
    perspective: 1500px;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

/* Center-stage reveal animation */
.viewer-song-card.revealing {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(2.5) !important;
    z-index: 9999 !important;
    width: 500px !important;
    animation: center-stage-reveal 3s ease-in-out forwards;
}

@keyframes center-stage-reveal {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(2.5) rotateY(0deg);
    }
    65% {
        transform: translate(-50%, -50%) scale(2.5) rotateY(180deg);
    }
    85% {
        transform: translate(-50%, -50%) scale(2.5) rotateY(180deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotateY(180deg);
        opacity: 0;
    }
}

/* Backdrop for center reveal */
.reveal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 9998;
    animation: backdrop-fade 3s ease-in-out forwards;
}

@keyframes backdrop-fade {
    0%, 15% { opacity: 0; }
    25%, 75% { opacity: 1; }
    100% { opacity: 0; }
}

/* Flipped state after animation completes */
.viewer-song-card.flipped .song-card-front {
    transform: rotateY(180deg);
}

.viewer-song-card.flipped .song-card-back {
    transform: rotateY(0deg);
}

.song-card-front,
.song-card-back {
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backface-visibility: hidden;
    position: relative;
}

.song-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotateY(-180deg);
}

/* Glow effects during reveal */
.viewer-song-card.revealing .song-card-back {
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.8),
                0 0 120px rgba(236, 72, 153, 0.6),
                0 0 180px rgba(239, 68, 68, 0.4);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 60px rgba(168, 85, 247, 0.8),
                    0 0 120px rgba(236, 72, 153, 0.6),
                    0 0 180px rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 80px rgba(168, 85, 247, 1),
                    0 0 160px rgba(236, 72, 153, 0.8),
                    0 0 240px rgba(239, 68, 68, 0.6);
    }
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* =========================================
   HOME ROOM & HELP SYSTEM CSS
   ========================================= */

/* --- HOME GRID --- */
.home-welcome-card {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.new-student-lane {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); /* Blue tint */
    border: 1px solid #3b82f6;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.lane-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px;
}
.lane-btn:active { transform: scale(0.98); background: rgba(255,255,255,0.2); }

.desk-stat-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    position: relative;
}

/* --- HELP MODE & TOOLTIPS --- */
.help-icon {
    display: none; /* Hidden by default */
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    display: none !important; /* Hidden by default */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.help-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.help-icon:active {
    transform: scale(0.95);
}

/* When help mode is active, show all help icons */
body.help-mode-active .help-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Help icon positioning variants */
.help-icon-inline {
    margin-left: 6px;
    vertical-align: middle;
}

.help-icon-absolute {
    position: absolute;
    top: 4px;
    right: 4px;
}

.help-icon-nav {
    position: absolute;
    top: -8px;
    right: 50%;
    transform: translateX(50%);
}

/* Mobile adjustments - DISABLED FOR CONSISTENT DESKTOP EXPERIENCE */
/* @media (max-width: 768px) {
   .help-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        font-size: 13px;
        touch-action: manipulation;
    }
    
    .help-icon-nav {
        top: -10px;
    }
} */

.help-highlight {
    z-index: 9000 !important;
    position: relative;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85); /* Dim background */
    border: 2px solid #3b82f6;
    background: #000;
}

.tooltip-box {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 240px;
    z-index: 9001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tooltip-arrow {
    position: absolute; width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    top: -8px; left: 20px;
}

.help-trigger {
    position: absolute; top: -5px; right: -5px;
    width: 18px; height: 18px;
    background: #3b82f6; color: white;
    border-radius: 50%; font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: none; /* Hidden by default */
}
body.help-mode-active .help-trigger { display: flex; animation: pulseBlue 2s infinite; }

@keyframes pulseBlue { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* Battle Arena Styles */
.emoji-btn {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
    cursor: pointer;
}
.emoji-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

.emoji-popup {
    position: absolute;
    font-size: 32px;
    pointer-events: none;
    z-index: 1000;
    animation: emojiFloat 3s ease-out forwards;
}

@keyframes emojiFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) translateX(var(--drift, 0)) scale(1.5);
    }
}

/* Song reveal flip animation */
.song-box-flip {
    transform: rotateY(180deg);
    transition: transform 1s ease-in-out;
}

/* Flame effects for Pit */
.battle-flame {
    position: absolute;
    background: linear-gradient(to top, #ff4500, #ff6347, #ffa500);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flameAnimation 2s infinite alternate;
    opacity: 0.7;
}
.battle-flame-left {
    left: 10px; bottom: 0; width: 100px; height: 200px;
    animation-delay: 0s;
}
.battle-flame-right {
    right: 10px; bottom: 0; width: 80px; height: 180px;
    animation-delay: 0.5s;
}

@keyframes flameAnimation {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

/* Stage lighting effects */
.stage-lights {
    position: absolute; top: 0; left: 0; right: 0;
    height: 200px;
    background: 
        radial-gradient(ellipse 200px 100px at 20% 0, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 200px 100px at 80% 0, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 200px 100px at 50% 0, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: stageLights 4s ease-in-out infinite alternate;
}

@keyframes stageLights {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}
/* FORCE VIBE MATCH TO BE ON TOP OF PROFILE (Z-Index Fix) */
        #fs-vibe-match {
            z-index: 9999 !important; /* Higher than Profile (5000) */
        }
        /* =========================================
           1. CORE DESIGN SYSTEM & VARIABLES
           ========================================= */
        :root {
            /* Palette */
            --bg-deep: #000000; /* True Black */
            --bg-surface: #0a0a0a;
            --bg-card: #121212;
            --bg-card-hover: #1c1c1c;
            
            /* Glassmorphism */
            --glass-header: rgba(10, 10, 10, 0.95);
            --glass-nav: rgba(10, 10, 10, 0.98);
            --glass-modal: rgba(0, 0, 0, 0.95);
            --glass-border: rgba(255, 255, 255, 0.1);
            
            /* Brand Colors */
            --primary: #3b82f6;       /* Electric Blue */
            --primary-glow: rgba(59, 130, 246, 0.5);
            --accent: #fbbf24;        /* Gold */
            --accent-glow: rgba(251, 191, 36, 0.4);
            --danger: #ef4444;        /* Red */
            --success: #10b981;       /* Emerald */
            --admin-gold: #FFD700;    /* Professor Gold */

            /* Dimensions */
            --header-h: 64px;
            --nav-h: 84px; /* Includes safe area */
            --safe-area-bottom: env(safe-area-inset-bottom, 20px);
        }

        /* Reset & Base */
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-font-smoothing: antialiased;
            user-select: none; /* App-like behavior */
        }

        /* Allow select in inputs */
        input, textarea { user-select: text; }

        @keyframes flashPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.audit-complete-flash {
    animation: flashPulse 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.audit-complete-viewed {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: #10b981 !important;
}

body {
            background-color: var(--bg-deep);
            color: #ffffff;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            height: 100dvh;
            width: 100vw;
            overflow: hidden;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
        }

        /* Text Utilities */
        .text-truncate {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* =========================================
           2. LAYOUT ENGINE
           ========================================= */
        #app-root {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-deep) 60%);
        }

        /* Scrollable Middle Area */
        #viewport {
            flex: 1;
            position: relative;
            overflow: hidden; /* Each view handles its own scroll */
        }

        /* View Containers - Ensuring Scroll Works */
        .view-section {
            display: none; /* Hidden by default */
            height: 100%;
            width: 100%;
            flex-direction: column;
            overflow-y: auto; /* ENABLE SCROLLING */
            overflow-x: hidden;
            padding-bottom: calc(var(--nav-h) + 40px); /* Extra space for Nav */
            scrollbar-width: none; /* Hide scrollbar Firefox */
            -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
        }
        .view-section::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

        .view-section.active {
            display: flex;
            animation: fadeView 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        
        /* Support for views that need explicit block display */
        .view-section.active:not(.flex-col) {
            display: block;
        }

        /* =========================================
           3. COMPONENT STYLING
           ========================================= */

        /* --- Header --- */
        /* UPGRADED PROFESSIONAL HEADER */
        .app-header {
            height: var(--header-h);
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(18, 18, 20, 0.95) 50%, rgba(0, 0, 0, 0.98) 100%);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-bottom: 2px solid rgba(168, 85, 247, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(168, 85, 247, 0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            z-index: 50;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        /* NEW HEADER STYLING - Transparent with Pill Container */
        .app-header-new {
            height: var(--header-h);
            background: transparent;
            z-index: 50;
            pointer-events: none;
        }

        .app-header-new > * {
            pointer-events: auto;
        }

        .header-logo-new {
            flex-shrink: 0;
        }

        /* Header Icons Container - Pill Style like Bottom Nav */
        .header-icons-container {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            background: linear-gradient(145deg, rgba(9, 9, 11, 0.95), rgba(0, 0, 0, 0.98));
            border: 1.5px solid rgba(168, 85, 247, 0.2);
            border-radius: 22px;
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        /* Individual Header Icon Buttons */
        .header-icon-btn {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: transparent;
            border: none;
            color: #a1a1aa;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            font-size: 1.35rem;
        }

        .header-icon-btn:hover {
            background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
            color: #ffffff;
            transform: translateY(-2px);
        }

        .header-icon-btn:active {
            transform: translateY(0) scale(0.95);
        }

        .header-icon-btn.header-avatar-new {
            border-radius: 50%;
            overflow: hidden;
        }

        .header-icon-btn.header-avatar-new:hover {
            box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
        }
        
        /* Header Button Styling */
        .header-btn {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(145deg, rgba(24, 24, 27, 0.6), rgba(9, 9, 11, 0.8));
            border: 1.5px solid rgba(168, 85, 247, 0.2);
            color: #a1a1aa;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        
        .header-btn:hover {
            background: linear-gradient(145deg, rgba(39, 39, 42, 0.8), rgba(24, 24, 27, 0.9));
            border-color: rgba(168, 85, 247, 0.5);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        
        .header-btn:active {
            transform: translateY(0) scale(0.95);
        }
        
        /* Header Avatar Button */
        .header-avatar-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(145deg, rgba(24, 24, 27, 0.8), rgba(9, 9, 11, 0.95));
            border: 2px solid rgba(168, 85, 247, 0.3);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(168, 85, 247, 0);
        }
        
        .header-avatar-btn:hover {
            border-color: rgba(168, 85, 247, 0.6);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4), 0 0 0 4px rgba(168, 85, 247, 0.15);
        }
        
        .header-avatar-btn:active {
            transform: translateY(0) scale(0.95);
        }

        .header-logo {
            font-size: 1.25rem;
            font-weight: 900;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .live-badge {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.3));
            border: 1px solid rgba(239, 68, 68, 0.5);
            color: #fca5a5;
            font-size: 0.65rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 800;
            letter-spacing: 0.05em;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .live-dot { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; animation: pulseRed 1.5s infinite; }

        /* --- Queue Tab Buttons --- */
        .queue-tab-btn {
            background: transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        .queue-tab-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
            border-radius: 0.75rem;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .queue-tab-btn:hover::before {
            opacity: 1;
        }
        
        .queue-tab-btn:hover {
            color: white !important;
            border-color: rgba(168, 85, 247, 0.5) !important;
        }
        
        .queue-tab-btn.active {
            background: linear-gradient(135deg, #a855f7, #9333ea) !important;
            color: white !important;
            border-color: #c084fc !important;
            box-shadow: 0 4px 24px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
        }
        
        .queue-tab-btn.active::before {
            opacity: 0;
        }

        /* --- Bottom Navigation --- */
        .app-nav {
            height: var(--nav-h);
            background: linear-gradient(to top, #09090b, #18181b);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-top: 2px solid rgba(168, 85, 247, 0.15);
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
            position: absolute;
            bottom: 0;
            width: 100%;
            z-index: 50;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 12px 16px calc(12px + var(--safe-area-bottom)) 16px;
            gap: 24px;
        }

        .nav-item {
            flex: 0 1 auto;
            width: 58px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #71717a;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            cursor: pointer;
            padding: 7px 3px;
            min-height: 60px;
            background: linear-gradient(145deg, rgba(9, 9, 11, 0.8), rgba(0, 0, 0, 0.9));
            border-radius: 14px;
            border: 1.5px solid rgba(168, 85, 247, 0.15);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        
        /* Divider between nav items */
        .nav-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -13px;
            top: 50%;
            transform: translateY(-50%);
            width: 2px;
            height: 45%;
            background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.5), transparent);
            border-radius: 1px;
            box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
        }
        
        .nav-icon-wrapper {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(9, 9, 11, 0.95));
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            margin-bottom: 6px;
            border: 1px solid rgba(168, 85, 247, 0.2);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        
        .nav-icon-wrapper::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.2));
            border-radius: 12px;
            opacity: 0;
            transition: all 0.35s;
        }

        .nav-item i { 
            font-size: 1.35rem; 
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }
        
        .nav-item span { 
            font-size: 0.6rem; 
            font-weight: 900; 
            text-transform: uppercase; 
            letter-spacing: 0.8px; 
            opacity: 0.6;
            transition: all 0.35s;
            line-height: 1;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Hover state for inactive items */
        .nav-item:not(.active):hover {
            background: linear-gradient(145deg, rgba(9, 9, 11, 0.95), rgba(0, 0, 0, 1));
            border-color: rgba(168, 85, 247, 0.4);
            color: #a1a1aa;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        
        .nav-item:not(.active):hover .nav-icon-wrapper {
            background: linear-gradient(145deg, rgba(0, 0, 0, 1), rgba(18, 18, 20, 0.95));
            border-color: rgba(168, 85, 247, 0.4);
            box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        
        .nav-item:not(.active):hover .nav-icon-wrapper::before {
            opacity: 0.5;
        }

        /* Active state - pronounced and elevated */
        .nav-item.active {
            color: #ffffff;
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
            border-color: rgba(168, 85, 247, 0.8);
            box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2), 0 6px 28px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transform: translateY(-4px);
        }
        
        .nav-item.active .nav-icon-wrapper {
            background: linear-gradient(135deg, #a855f7, #8b5cf6);
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }
        
        .nav-item.active .nav-icon-wrapper::before {
            opacity: 0;
        }
        
        .nav-item.active i { 
            transform: scale(1.05);
            filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
        }
        
        .nav-item.active span { 
            opacity: 1;
            font-weight: 900;
            color: #ffffff;
        }
        
        /* Top indicator for active item */
        .nav-item.active::before {
            content: ''; 
            position: absolute; 
            top: -10px; 
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 3px;
            background: linear-gradient(90deg, #a855f7, #8b5cf6, #a855f7);
            box-shadow: 0 0 20px rgba(168, 85, 247, 1);
            border-radius: 3px;
        }

        /* --- Cards --- */
        .card-glass {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 24px;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            transition: transform 0.2s, background 0.2s;
        }
        
        .card-glass:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }

        /* --- Buttons --- */
        .btn-core {
            border: none; outline: none; cursor: pointer;
            font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
            border-radius: 14px; padding: 14px 24px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative; overflow: hidden;
        }
        .btn-core:active { transform: scale(0.96); opacity: 0.9; }
        
        .btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px var(--primary-glow); }
        .btn-accent { background: var(--accent); color: #000; box-shadow: 0 4px 15px var(--accent-glow); }

        /* --- Inputs --- */
        .input-std {
            width: 100%;
            background: #18181b;
            border: 1px solid #27272a;
            color: white;
            padding: 16px;
            border-radius: 16px;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.3s;
        }
        .input-std:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); background: #000; }
        .input-std::placeholder { color: #52525b; font-weight: 500; }

        /* Badge Reveal Animations */
        #badge-reveal-modal {
            animation: fadeIn 0.3s ease-out;
        }
        
        .badge-reveal-name {
            animation: badgeZoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-delay: 0.2s;
        }
        
        .badge-item {
            opacity: 0;
            transform: scale(0) rotate(-180deg);
            animation: badgeSpinIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        
        .badge-item:nth-child(1) { animation-delay: 0.6s; }
        .badge-item:nth-child(2) { animation-delay: 0.8s; }
        .badge-item:nth-child(3) { animation-delay: 1.0s; }
        .badge-item:nth-child(4) { animation-delay: 1.2s; }
        
        .badge-tap-hint {
            animation: fadeInUp 0.6s ease-out forwards;
            animation-delay: 1.5s;
        }
        
        @keyframes badgeZoomIn {
            0% {
                opacity: 0;
                transform: scale(0.5);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes badgeZoomOut {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0.8);
            }
        }
        
        @keyframes badgeFadeSlideOut {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0px);
            }
            100% {
                opacity: 0;
                transform: translateY(-30px) scale(0.95);
                filter: blur(10px);
            }
        }
        
        @keyframes badgeItemSlideOut {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1) rotate(0deg);
                filter: blur(0px);
            }
            100% {
                opacity: 0;
                transform: translateY(40px) scale(0.8) rotate(5deg);
                filter: blur(8px);
            }
        }
        
        @keyframes backgroundFadeOut {
            0% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }
        
        .badge-reveal-exit {
            animation: backgroundFadeOut 0.6s ease-out forwards;
        }
        
        .badge-reveal-exit .badge-reveal-name {
            animation: badgeFadeSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        .badge-reveal-exit .badge-item {
            animation: badgeItemSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        .badge-reveal-exit .badge-item:nth-child(1) { animation-delay: 0s; }
        .badge-reveal-exit .badge-item:nth-child(2) { animation-delay: 0.05s; }
        .badge-reveal-exit .badge-item:nth-child(3) { animation-delay: 0.1s; }
        .badge-reveal-exit .badge-item:nth-child(4) { animation-delay: 0.15s; }
        
        @keyframes badgeSpinIn {
            0% {
                opacity: 0;
                transform: scale(0) rotate(-180deg);
            }
            70% {
                transform: scale(1.1) rotate(10deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }
        
        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Badge Particles Effect */
        .badge-particles {
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
                radial-gradient(2px 2px at 60% 70%, rgba(147, 51, 234, 0.4), transparent),
                radial-gradient(2px 2px at 50% 50%, rgba(236, 72, 153, 0.4), transparent),
                radial-gradient(2px 2px at 80% 10%, rgba(251, 191, 36, 0.4), transparent),
                radial-gradient(2px 2px at 90% 60%, rgba(59, 130, 246, 0.4), transparent),
                radial-gradient(2px 2px at 30% 80%, rgba(167, 243, 208, 0.4), transparent);
            background-size: 200% 200%;
            animation: particleFloat 20s ease-in-out infinite;
        }
        
        @keyframes particleFloat {
            0%, 100% { background-position: 0% 0%; }
            50% { background-position: 100% 100%; }
        }
        
        /* Badge Glow Effects */
        .badge-glow-admin {
            box-shadow: 0 0 40px rgba(239, 68, 68, 0.6), 0 0 80px rgba(239, 68, 68, 0.3);
        }
        
        .badge-glow-scholar {
            box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3);
        }
        
        .badge-glow-founder {
            box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), 0 0 80px rgba(251, 191, 36, 0.3);
        }
        
        .badge-glow-premium {
            box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.3);
        }

        /* --- Full Screen Overlays (Modals) --- */
        .fs-overlay {
            position: fixed; inset: 0;
            background: var(--glass-modal);
            backdrop-filter: blur(30px);
            z-index: 9000;
            transform: translateY(100%);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex; flex-direction: column;
            pointer-events: none; /* Prevent interaction when closed */
        }
        .fs-overlay.open { 
            transform: translateY(0); 
            opacity: 1; 
            pointer-events: auto; /* Allow interaction when open */
        }
        .fs-overlay.hidden {
            display: none !important; /* Completely hide when closed */
            visibility: hidden;
            pointer-events: none;
        }

        /* --- Modal Overlay (Centered Modals) --- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 150;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay.flex {
            display: flex;
        }
        .modal-content-centered {
            animation: modalSlideUp 0.3s ease-out;
        }
        @keyframes modalSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* --- Sub Navigation (Pills) --- */
        .sub-nav {
            display: flex; gap: 8px; padding: 12px 16px;
            background: rgba(10,10,10,0.8); backdrop-filter: blur(10px);
            position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--glass-border);
        }
        .sub-pill {
            flex: 1; text-align: center; padding: 8px 0; border-radius: 10px;
            font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
            color: #71717a; background: transparent; transition: all 0.2s;
            border: 1px solid transparent;
        }
        .sub-pill.active { background: #27272a; color: white; border-color: #3f3f46; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

        /* --- Professional Sub-Pills --- */
        /* GOLDEN Entry Classes */
        .shimmer-gold {
            background: linear-gradient(90deg, #fbbf24, #fcd34d, #fef3c7, #fcd34d, #fbbf24);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shimmer-gold-animation 3s ease-in-out infinite;
            font-weight: 900;
            letter-spacing: 0.5px;
            filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
        }
        
        @keyframes shimmer-gold-animation {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        .border-gold {
            border-color: #fbbf24 !important;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(253, 224, 71, 0.3) !important;
        }
        
        .golden-row {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(253, 224, 71, 0.1)) !important;
            border: 2px solid rgba(251, 191, 36, 0.5) !important;
            box-shadow: 0 4px 24px rgba(251, 191, 36, 0.3), inset 0 1px 0 rgba(253, 224, 71, 0.2) !important;
            position: relative;
            overflow: hidden;
        }
        
        .golden-row::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(251, 191, 36, 0.1), transparent);
            animation: golden-shine 3s linear infinite;
        }
        
        @keyframes golden-shine {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .sub-pill-pro {
            flex: 1; 
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 12px; 
            border-radius: 12px;
            font-size: 0.7rem; 
            font-weight: 900; 
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #a1a1aa; 
            background: linear-gradient(135deg, rgba(24, 24, 27, 0.6), rgba(39, 39, 42, 0.4));
            backdrop-filter: blur(8px);
            border: 1px solid rgba(63, 63, 70, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        /* Inactive color identity for each sub-tab */
        #sub-stage { color: #fb923c; }
        #sub-queue { color: #c084fc; }
        #sub-leaderboard { color: #fcd34d; }
        #sub-pizza { color: #fdba74; }
        #sub-versus { color: #93c5fd; }
        
        .sub-pill-pro::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .sub-pill-pro:hover::before {
            left: 100%;
        }
        
        /* Main Stage (Red/Orange) - #sub-stage */
        #sub-stage:hover {
            color: white;
            border-color: rgba(239, 68, 68, 0.5);
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(239, 68, 68, 0.3));
            box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-stage.active { 
            background: linear-gradient(135deg, #ef4444, #f97316);
            color: white; 
            border-color: #fb923c;
            box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-stage.active:hover {
            background: linear-gradient(135deg, #f97316, #fb923c);
            box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
        }
        
        /* The Queue (Purple) - #sub-queue */
        #sub-queue:hover {
            color: white;
            border-color: rgba(168, 85, 247, 0.5);
            background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(168, 85, 247, 0.3));
            box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-queue.active { 
            background: linear-gradient(135deg, #a855f7, #8b5cf6);
            color: white; 
            border-color: #c084fc;
            box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-queue.active:hover {
            background: linear-gradient(135deg, #8b5cf6, #c084fc);
            box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
        }
        
        /* Leaderboard (Yellow/Gold) - #sub-rank */
        #sub-rank { color: #fcd34d; }
        
        #sub-rank:hover {
            color: white;
            border-color: rgba(234, 179, 8, 0.5);
            background: linear-gradient(135deg, rgba(202, 138, 4, 0.4), rgba(234, 179, 8, 0.3));
            box-shadow: 0 4px 16px rgba(234, 179, 8, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-rank.active { 
            background: linear-gradient(135deg, #eab308, #fbbf24);
            color: white; 
            border-color: #fcd34d;
            box-shadow: 0 4px 20px rgba(234, 179, 8, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-rank.active:hover {
            background: linear-gradient(135deg, #fbbf24, #fcd34d);
            box-shadow: 0 6px 24px rgba(234, 179, 8, 0.6);
        }
        
        /* Pizza Party (Orange) - #sub-pizza */
        #sub-pizza:hover {
            color: white;
            border-color: rgba(249, 115, 22, 0.5);
            background: linear-gradient(135deg, rgba(234, 88, 12, 0.4), rgba(249, 115, 22, 0.3));
            box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-pizza.active { 
            background: linear-gradient(135deg, #f97316, #fb923c);
            color: white; 
            border-color: #fdba74;
            box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-pizza.active:hover {
            background: linear-gradient(135deg, #fb923c, #fdba74);
            box-shadow: 0 6px 24px rgba(249, 115, 22, 0.6);
        }
        
        /* Calendar (Purple/Pink) - #sub-calendar */
        #sub-calendar {
            color: #a855f7;
        }
        
        #sub-calendar i {
            color: #a855f7;
        }
        
        #sub-calendar:hover {
            color: white;
            border-color: rgba(168, 85, 247, 0.5);
            background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(168, 85, 247, 0.3));
            box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-calendar.active { 
            background: linear-gradient(135deg, #a855f7, #ec4899);
            color: white; 
            border-color: #c084fc;
            box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-calendar.active:hover {
            background: linear-gradient(135deg, #c084fc, #f0abfc);
            box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
        }
        
        /* Live Versus (Electric Blue) - #sub-versus */
        #sub-versus:hover {
            color: white;
            border-color: rgba(59, 130, 246, 0.5);
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(59, 130, 246, 0.3));
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
            transform: translateY(-2px);
        }
        
        #sub-versus.active { 
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            color: white; 
            border-color: #93c5fd;
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        #sub-versus.active:hover {
            background: linear-gradient(135deg, #60a5fa, #93c5fd);
            box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
        }
        
        .sub-pill-pro i {
            transition: transform 0.3s;
        }
        
        .sub-pill-pro:hover i {
            transform: scale(1.2);
        }
        
        .sub-pill-pro.active i {
            filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
            color: white !important;
        }
        
        .sub-pill-pro.active span {
            color: white !important;
        }

        /* --- Chat Bubbles --- */
        .chat-row { display: flex; margin-bottom: 16px; width: 100%; animation: slideUp 0.3s ease-out backwards; }
        .chat-row.mine { justify-content: flex-end; }
        .chat-bubble {
            max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 0.9rem; line-height: 1.4;
            position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .chat-row.mine .chat-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
        .chat-row.other .chat-bubble { background: #27272a; color: #e4e4e7; border-bottom-left-radius: 4px; }
        .chat-meta { font-size: 0.65rem; color: #71717a; margin-top: 4px; padding: 0 4px; }
        .chat-row.mine .chat-meta { text-align: right; }

        /* Grading Sliders (Custom) */
        .slider-group { margin-bottom: 16px; }
        .slider-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
        .slider-label { font-size: 0.7rem; font-weight: 800; color: #a1a1aa; letter-spacing: 1px; text-transform: uppercase; }
        .slider-val { font-size: 0.8rem; font-weight: 900; color: var(--accent); }

        /* --- Animations --- */
        @keyframes fadeView { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
        @keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
        @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        @keyframes goldShimmer { 
            0% { background-position: 200% center; } 
            100% { background-position: -200% center; } 
        }
        @keyframes bounce-in {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
            50% { transform: translate(-50%, -50%) scale(1.1); }
            100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }
        .animate-bounce-in {
            animation: bounce-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }


        /* Golden Effect for Leaderboard */
        .shimmer-gold {
            background: linear-gradient(120deg, #fbbf24 20%, #fff 50%, #fbbf24 80%);
            background-size: 200% auto;
            color: transparent;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: goldShimmer 3s linear infinite;
            font-weight: 900;
        }

        .border-gold {
            border: 1px solid rgba(251, 191, 36, 0.5) !important;
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.15) inset, 0 0 10px rgba(251, 191, 36, 0.1);
        }
        
        .golden-row {
            background: linear-gradient(90deg, rgba(251, 191, 36, 0.05), rgba(0,0,0,0) 50%, rgba(251, 191, 36, 0.05));
            background-size: 200% 100%;
            animation: goldenShine 3s infinite linear;
            border: 1px solid rgba(251, 191, 36, 0.3) !important;
        }
        @keyframes goldenShine {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        /* Rank Progress Animations */
        @keyframes rankBreathe {
            0%, 100% { opacity: 0.85; filter: brightness(1); }
            50% { opacity: 1; filter: brightness(1.1); }
        }
        
        @keyframes rankGlow {
            0%, 100% { opacity: 0.9; filter: brightness(1.1); }
            50% { opacity: 1; filter: brightness(1.3); }
        }
        
        @keyframes rankShimmer {
            0%, 100% { opacity: 1; filter: brightness(1.2) saturate(1.3); }
            50% { opacity: 1; filter: brightness(1.5) saturate(1.5); }
        }

        /* Toast */
        #toast-container {
            position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
            z-index: 200; pointer-events: none; display: flex; flex-direction: column; gap: 8px; width: 90%; max-width: 350px;
        }
        .toast-msg {
            background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1); color: white;
            padding: 12px 20px; border-radius: 50px;
            font-size: 0.85rem; font-weight: 600;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            display: flex; align-items: center; gap: 10px;
            animation: slideDownToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .toast-msg.success i { color: var(--success); }
        .toast-msg.error i { color: var(--danger); }
        @keyframes slideDownToast { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

        /* Loading Spinner */
        .spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s linear infinite; }
        
        /* =========================================
           4. REDESIGNED PROFILE - NO COVER PHOTO
           ========================================= */
        
        .profile-container { padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }
        .profile-header-split { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 8px; width: 100%; }
        .profile-avatar-box { position: relative; flex-shrink: 0; }
        .avatar-lg { width: 120px; height: 120px; border-radius: 24px; background: #18181b; border: 2px solid rgba(255,255,255,0.1); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
        .avatar-edit-btn { position: absolute; bottom: -6px; right: -6px; width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg-deep); box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; z-index: 10; }
        .profile-info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-top: 4px; }
        .user-handle-lg { font-size: 1.75rem; font-weight: 900; color: white; line-height: 1.1; margin-bottom: 4px; letter-spacing: -0.02em; }
        .user-status-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
        .badge-rank-pill { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
        /* NEW: ADMIN BADGE */
        .badge-admin-pill { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }
        
        .badge-class-text { color: #a1a1aa; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; }
        .stats-compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .stat-mini-box { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 6px 4px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
        .stat-mini-val { font-size: 0.9rem; font-weight: 800; color: white; line-height: 1; }
        .stat-mini-lbl { font-size: 0.55rem; color: #71717a; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
        .bio-box-container { 
            background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05), rgba(0, 0, 0, 0.3));
            border: 2px solid rgba(139, 92, 246, 0.3);
            border-radius: 16px;
            padding: 20px;
            position: relative;
            box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
        }
        .bio-label { 
            font-size: 1.1rem;
            font-weight: 900;
            color: #e0e7ff;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .bio-content { 
            font-size: 1.05rem;
            color: #e4e4e7;
            line-height: 1.8;
            font-style: italic;
            padding: 16px 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            border: 1px solid rgba(139, 92, 246, 0.2);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
            white-space: pre-wrap;
            text-align: center;
            margin: 0 auto;
            max-width: 90%;
        }

        /* --- Menu Popup --- */
        .menu-popup { 
            position: absolute; 
            top: 72px; 
            right: 16px; 
            width: 240px; 
            background: linear-gradient(145deg, rgba(9, 9, 11, 0.98), rgba(0, 0, 0, 0.95));
            border: 2px solid rgba(168, 85, 247, 0.3);
            border-radius: 20px; 
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(168, 85, 247, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            padding: 8px; 
            display: none; 
            flex-direction: column; 
            z-index: 300; 
            transform-origin: top right;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        
        .menu-popup.open { 
            display: flex; 
            animation: scaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        }
        
        .menu-item { 
            padding: 14px 16px; 
            border-radius: 12px; 
            color: #d4d4d8; 
            font-weight: 700; 
            font-size: 0.9rem; 
            display: flex; 
            align-items: center; 
            gap: 12px; 
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            background: transparent;
            border: 1px solid transparent;
        }
        
        .menu-item:hover { 
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
            border-color: rgba(168, 85, 247, 0.3);
            color: #ffffff;
            transform: translateX(2px);
        }
        
        .menu-item i { 
            color: #a855f7; 
            width: 20px; 
            text-align: center;
            font-size: 1rem;
        }
        
        @keyframes scaleIn { 
            from { opacity: 0; transform: scale(0.9) translateY(-8px); } 
            to { opacity: 1; transform: scale(1) translateY(0); } 
        }

        /* =========================================
           5. NEW: CHAT CHANNEL STYLING
           ========================================= */
        .channel-pill {
            padding: 8px 16px;
            border-radius: 100px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #71717a;
            background: #18181b;
            border: 1px solid #27272a;
            white-space: nowrap;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .channel-pill i { opacity: 0.6; font-size: 0.9em; }

        .channel-pill.active {
            color: white;
            border-color: transparent;
            transform: scale(1.05);
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        }
        
        /* Custom "Pizzazz" for Channels */
        .ch-rap.active { background: linear-gradient(135deg, #dc2626, #991b1b); }
        .ch-trap.active { background: linear-gradient(135deg, #9333ea, #581c87); }
        .ch-rnb.active { background: linear-gradient(135deg, #ec4899, #be185d); }
        .ch-old.active { background: linear-gradient(135deg, #d97706, #b45309); }
        .ch-lofi.active { background: linear-gradient(135deg, #6366f1, #4338ca); }
        .ch-pop.active { background: linear-gradient(135deg, #f472b6, #db2777); }
        .ch-alt.active { background: linear-gradient(135deg, #10b981, #047857); }
        .ch-aux.active { background: linear-gradient(135deg, #f59e0b, #d97706); }

        /* =========================================
           6. NEW: FEED ACTIONS
           ========================================= */
        .post-action-btn {
            background: transparent;
            color: #71717a;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex; align-items: center; gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.2s;
        }
        .post-action-btn:hover { background: rgba(255,255,255,0.05); color: white; }
        .post-action-btn.liked { color: #ef4444; }
        .post-action-btn.liked i { animation: popHeart 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        
        /* ADMIN DELETE BUTTON */
        .post-delete-btn {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            font-size: 0.7rem;
            padding: 4px 8px;
            border-radius: 6px;
            margin-left: auto;
        }
        
        @keyframes popHeart { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

        /* Comment Section */
        .comment-section {
            border-top: 1px solid #27272a;
            margin-top: 12px;
            padding-top: 12px;
            display: none;
        }
        .comment-section.open { display: block; animation: slideDown 0.3s ease-out; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

        /* =========================================
           7. ADMIN PANEL STYLES
           ========================================= */
        .admin-podium {
            background: linear-gradient(145deg, #3f3f46, #18181b);
            border: 1px solid var(--admin-gold);
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 24px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
            display: none; /* Hidden by default */
        }
        .admin-podium.visible { display: block; animation: slideDown 0.4s ease-out; }

        /* Mobile adjustments for admin panel - DISABLED */
        /* @media (max-width: 768px) {
            .admin-podium {
                padding: 12px;
                border-radius: 16px;
            }
        } */

        .admin-badge-icon {
            color: var(--admin-gold);
            text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
        }

        /* =========================================
           8. NEW: SOCIAL BATCH 1 (DM & NOTIFS)
           ========================================= */
       /* QUIET MODE STYLES */
    body.quiet-mode .nav-item#nav-feed,
    body.quiet-mode .nav-item#nav-chat,
    body.quiet-mode #notif-dot {
        display: none !important;
    }
    body.quiet-mode .view-section#view-feed, 
    body.quiet-mode .view-section#view-chat {
        display: none !important;
    }
 .red-dot {
            width: 8px; height: 8px;
            background: #ef4444;
            border-radius: 50%;
            position: absolute;
            top: 2px; right: 2px;
            border: 1px solid #000;
            display: none;
        }
        .red-dot.visible { display: block; }
        
        /* Pending message badge */
        .pending-badge {
            pointer-events: none;
            z-index: 10;
        }
        
        /* Inbox Items */
        .inbox-item {
            display: flex; gap: 12px;
            padding: 12px;
            background: #18181b;
            border-radius: 12px;
            border: 1px solid #27272a;
            cursor: pointer;
            transition: all 0.2s;
        }
        .inbox-item:active { background: #27272a; }
        
        /* Notification Items */
        .notif-item {
            display: flex; gap: 12px; align-items: center;
            padding: 12px;
            background: #18181b;
            border-radius: 12px;
            border: 1px solid #27272a;
            margin-bottom: 8px;
        }
        .notif-icon {
            width: 36px; height: 36px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px;
        }
        .bg-blue-glass { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
        .bg-red-glass { background: rgba(239, 68, 68, 0.2); color: #f87171; }
        .bg-green-glass { background: rgba(16, 185, 129, 0.2); color: #34d399; }

        /* =========================================
           9. NEW: ROTATION
           ========================================= */
        .rotation-item {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 12px;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
            font-size: 0.85rem;
        }
        .rotation-num {
            font-weight: 900; color: var(--accent); font-size: 0.7rem; opacity: 0.7;
        }
/* ========================================= */
/* PART 2: NEW STYLES FOR GAMIFICATION */
/* ========================================= */

/* --- 1. BADGES & RANK PILLS --- */
.badge-rank-pill {
    background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
    color: #d4d4d8;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 12px;
    border: 2px solid rgba(161, 161, 170, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.badge-rank-pill:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(161, 161, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(161, 161, 170, 0.5);
}

/* Shimmer animation for high-tier ranks */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* The shiny silver "Platinum Plaque" badge */
.badge-platinum {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

/* The shiny gold "Label Exec" badge */
.badge-exec {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.badge-class-text {
    font-size: 0.65rem;
    color: #52525b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto; /* Pushes it to the right */
}

/* --- 2. GRADING TOOL SLIDERS (Premium Studio Style) --- */
.slider-group {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(24,24,27,0.6), rgba(39,39,42,0.3));
    border: 1px solid rgba(63,63,70,0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.slider-group:hover {
    border-color: rgba(139,92,246,0.4);
    background: linear-gradient(135deg, rgba(24,24,27,0.8), rgba(39,39,42,0.5));
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.slider-label {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slider-val {
    font-size: 1.25rem;
    font-weight: 900;
    text-shadow: 0 0 10px currentColor;
}

/* Premium Slider Base Styling */
input[type=range].premium-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
input[type=range].premium-slider:focus {
    outline: none;
}

/* Track Styling with Color Variations */
input[type=range].premium-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(39,39,42,0.8), rgba(63,63,70,0.5));
    border: 1px solid rgba(63,63,70,0.6);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Thumb Styling - Large and Premium */
input[type=range].premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    cursor: grab;
    margin-top: -7px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 20px rgba(255,255,255,0.5), 0 4px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}
input[type=range].premium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 6px 12px rgba(0,0,0,0.5);
}
input[type=range].premium-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.25);
}

/* Color-Specific Thumb Glows */
input[type=range].premium-slider[data-color="blue"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 0 20px rgba(59,130,246,0.8), 0 4px 8px rgba(0,0,0,0.4);
}
input[type=range].premium-slider[data-color="blue"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 35px rgba(59,130,246,1), 0 6px 12px rgba(0,0,0,0.5);
}

input[type=range].premium-slider[data-color="purple"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    box-shadow: 0 0 20px rgba(168,85,247,0.8), 0 4px 8px rgba(0,0,0,0.4);
}
input[type=range].premium-slider[data-color="purple"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 35px rgba(168,85,247,1), 0 6px 12px rgba(0,0,0,0.5);
}

input[type=range].premium-slider[data-color="red"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 20px rgba(239,68,68,0.8), 0 4px 8px rgba(0,0,0,0.4);
}
input[type=range].premium-slider[data-color="red"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 35px rgba(239,68,68,1), 0 6px 12px rgba(0,0,0,0.5);
}

input[type=range].premium-slider[data-color="green"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 20px rgba(34,197,94,0.8), 0 4px 8px rgba(0,0,0,0.4);
}
input[type=range].premium-slider[data-color="green"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 35px rgba(34,197,94,1), 0 6px 12px rgba(0,0,0,0.5);
}

input[type=range].premium-slider[data-color="yellow"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(251,191,36,0.8), 0 4px 8px rgba(0,0,0,0.4);
}
input[type=range].premium-slider[data-color="yellow"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 35px rgba(251,191,36,1), 0 6px 12px rgba(0,0,0,0.5);
}

/* Firefox Support */
input[type=range].premium-slider::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(39,39,42,0.8), rgba(63,63,70,0.5));
    border: 1px solid rgba(63,63,70,0.6);
    border-radius: 8px;
}
input[type=range].premium-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    cursor: grab;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 20px rgba(255,255,255,0.5), 0 4px 8px rgba(0,0,0,0.4);
}

/* --- 3. ANIMATION FOR SLIDE-UP MODAL --- */
.slide-up-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.slide-up-active #grading-panel {
    transform: translateY(0) !important;
}
/* ========================================= */
  /* Animation Class for Vibe Match */
    .active-flex { display: flex !important; opacity: 1 !important; transform: scale(1) !important; } 
/* PROFESSOR GLOW ANIMATION */
    @keyframes textGlow {
        0% { text-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
        50% { text-shadow: 0 0 20px rgba(99, 102, 241, 1), 0 0 30px rgba(99, 102, 241, 0.8); }
        100% { text-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
    }
    .prof-glow {
        animation: textGlow 2s infinite;
        background: linear-gradient(135deg, #6366f1, #a855f7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 900 !important;
        letter-spacing: 0.1em;
    }
 
/* =========================================
   FIX: LIST POPUP & ANIMATION
   ========================================= */

/* 1. Force the Search/List Modal to be ON TOP of the Profile */
/* SIMPLE LAYERING FIX */

/* Search Screen */
/* Search Screen */
#fs-search {
    z-index: 8000 !important; 
}

/* 2. Make the Profile Modal sit ON TOP of it */
#fs-view-profile { 
    z-index: 8500 !important; /* <--- Higher than 8000 */
}
/* 3. The "Pop Up" Animation */
#fs-search.open {
    /* Overrides the default slide-up with a cool pop effect */
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes popIn {
    0% { 
        opacity: 0; 
        transform: scale(0.9) translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}
/* === GLASS PRISM THEME === */
        /* Background Blobs */
        .blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            z-index: -1;
            opacity: 0.6;
            pointer-events: none;
        }
        .blob-1 { top: -10%; left: -20%; width: 300px; height: 300px; background: #4f46e5; animation: floatBlob 10s infinite alternate; }
        .blob-2 { bottom: 10%; right: -20%; width: 250px; height: 250px; background: #ec4899; animation: floatBlob 12s infinite alternate-reverse; }
        .blob-3 { top: 40%; left: 30%; width: 200px; height: 200px; background: #06b6d4; animation: floatBlob 15s infinite alternate; }
        
        @keyframes floatBlob { from { transform: translate(0,0); } to { transform: translate(20px, -20px); } }

        /* Glass Card - Enhanced Professional Design */
        .glass-card {
            background: linear-gradient(145deg, rgba(24, 24, 27, 0.95), rgba(9, 9, 11, 0.98));
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 28px;
            padding: 28px;
            margin-bottom: 28px;
            box-shadow: 
                0 4px 6px rgba(0, 0, 0, 0.3),
                0 12px 24px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(99, 102, 241, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
            pointer-events: none;
        }
        .glass-card:hover { 
            transform: translateY(-2px); 
            border-color: rgba(139, 92, 246, 0.25);
            box-shadow: 
                0 8px 12px rgba(0, 0, 0, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(99, 102, 241, 0.1),
                0 0 60px rgba(139, 92, 246, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        .glass-card:active { 
            transform: scale(0.99) translateY(-1px); 
        }
/* --- ADMIN HIGHLIGHT CSS --- */
.admin-post {
    border: 2px solid rgba(251, 191, 36, 0.4) !important;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 191, 36, 0.15),
        inset 0 1px 0 rgba(251, 191, 36, 0.1) !important;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(9, 9, 11, 0.98)) !important;
}
.admin-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: black;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}
        .avatar-glow {
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.8);
        }

        /* Gradient Text */
        .text-gradient {
            background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
        }
/* CLASS REP STYLES */
.rep-post {
    border: 2px solid rgba(234, 179, 8, 0.4) !important;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(234, 179, 8, 0.15),
        inset 0 1px 0 rgba(234, 179, 8, 0.1) !important;
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.08), rgba(9, 9, 11, 0.98)) !important;
}

.rep-badge {
    background: linear-gradient(135deg, #facc15, #a16207);
    color: black;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

/* SHOUT OUT BOX ANIMATION */
@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.rep-shoutout-box {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.rep-shoutout-box:active { transform: scale(0.98); }
/* =========================================
   VIBE CHECK REDESIGN (The Stack)
   ========================================= */

#view-vibe {
    /* Subtle animated background for the vibe section specifically */
    background: radial-gradient(circle at 50% 120%, #1e1b4b 0%, #000000 70%);
}

.vibe-stack-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 480px; /* Adjusted for mobile */
    margin: 0 auto;
    perspective: 1000px;
}

/* Mobile adjustments - DISABLED */
/* @media (max-width: 768px) {
    .vibe-stack-container {
        max-width: 90%;
        height: 420px;
    }
} */

/* THE CARD BASE */
.vibe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: #18181b; /* Fallback */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transform-origin: 50% 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s, box-shadow 0.3s;
    /* Glassy feel inside */
    background: linear-gradient(160deg, #18181b 0%, #09090b 100%);
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

/* Card Depth (The card behind the active one) */
.vibe-card.next {
    transform: scale(0.95) translateY(10px);
    opacity: 0.6;
    z-index: 1;
    filter: brightness(0.5);
}

.vibe-card.active {
    z-index: 10;
    transform: scale(1);
    opacity: 1;
    cursor: grab;
    -webkit-user-drag: none;
}

/* IMAGE AREA */
.vibe-img-area {
    height: 70%;
    width: 100%;
    position: relative;
}
.vibe-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.vibe-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #09090b 10%, transparent 100%);
    z-index: 2;
}

/* INFO AREA */
.vibe-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 5;
}

/* ANIMATIONS */
@keyframes flyOutRight {
    0% { transform: translateX(0) rotate(0); opacity: 1; }
    100% { transform: translateX(150%) rotate(20deg); opacity: 0; }
}

@keyframes flyOutLeft {
    0% { transform: translateX(0) rotate(0); opacity: 1; }
    100% { transform: translateX(-150%) rotate(-20deg); opacity: 0; }
}

.swiping-right {
    animation: flyOutRight 0.4s forwards ease-in;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4) !important; /* Green Glow */
}

.swiping-left {
    animation: flyOutLeft 0.4s forwards ease-in;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4) !important; /* Red Glow */
}

/* STAMPS (The "NOPE" and "VIBE" overlays) */
.vibe-stamp {
    position: absolute;
    top: 40px;
    padding: 10px 20px;
    border: 4px solid;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: all 0.2s;
    z-index: 20;
    pointer-events: none;
}

.stamp-nope {
    right: 40px;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(15deg);
}

.stamp-like {
    left: 40px;
    color: #22c55e;
    border-color: #22c55e;
    transform: rotate(-15deg);
}

/* When active via JS class */
.swiping-left .stamp-nope { opacity: 1; transform: scale(1) rotate(15deg); }
.swiping-right .stamp-like { opacity: 1; transform: scale(1) rotate(-15deg); }

/* VIBE SCORE BADGE */
.vibe-score-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 100px;
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.vibe-score-high { background: linear-gradient(135deg, #22c55e, #15803d); border: none; }
.vibe-score-mid { background: linear-gradient(135deg, #3b82f6, #1d4ed8); border: none; }

/* === NEW ACTION BUTTONS === */
.vibe-actions-container {
    display: flex;
    justify-content: space-between; /* Pushes buttons to edges */
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 10px;
    z-index: 50;
    position: relative;
}

.action-btn-lg {
    width: 70px;  /* Bigger touch target */
    height: 70px; /* Bigger touch target */
    border-radius: 24px; /* Squircle Shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile - larger touch targets - DISABLED */
/* @media (max-width: 768px) {
    .action-btn-lg {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
} */

.action-btn-lg:active { transform: scale(0.9); }

.btn-nope { 
    background: #18181b; 
    color: #ef4444; 
    border: 2px solid #27272a;
}

.btn-like { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    color: white; 
    box-shadow: 0 0 25px rgba(59,130,246,0.6); /* Glowing Effect */
    border: 1px solid rgba(255,255,255,0.2);
}.btn-super { background: linear-gradient(135deg, #eab308, #ca8a04); color: white; font-size: 1.2rem; width: 50px; height: 50px; margin-top: 10px;}
/* NEW STYLES FOR CLASSES & SUBMISSIONS */
/* UPDATED BADGE STYLES */
.enrolled-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 12px;
    background: linear-gradient(145deg, rgba(9, 9, 11, 0.9), rgba(0, 0, 0, 0.95));
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    font-size: 0.65rem; 
    font-weight: 900; 
    color: #e4e4e7;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    margin-right: 6px; 
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.enrolled-badge:hover {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.enrolled-badge i { 
    color: #a855f7;
    font-size: 0.75rem;
    transition: transform 0.3s;
}
.enrolled-badge:hover i {
    transform: scale(1.1);
}

.btn-submit-proj {
    font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: white;
    padding: 6px 12px; border-radius: 99px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
/* --- CREDIT SYSTEM CSS --- */
.credit-badge {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #000;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    border: 1px solid #fff;
    margin-left: 8px; /* Added spacing */
}

.shop-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(251, 191, 36, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.shop-item:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.shop-item:hover::before { opacity: 1; }
.shop-item:active { transform: translateY(0) scale(0.98); }

.shop-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);
    color: #fbbf24;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 
        0 4px 8px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}
.shop-item:hover .shop-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 12px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Toggle Switch for Enhance Post */
.enhance-toggle:checked + div { background: #fbbf24; }
.enhance-toggle:checked + div::after { transform: translateX(100%); border-color: white; }
/* =========================================
   COLOR & STYLE OVERRIDES (PASTE AT BOTTOM)
   ========================================= */

/* 1. GLOWING DIVIDER LINES */
/* Top Header Line - Gradient Blue to Gold */
.app-header {
    border-bottom: 2px solid transparent !important;
    background-image: linear-gradient(#09090b, #09090b), linear-gradient(90deg, #3b82f6, #a855f7, #fbbf24);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2) !important;
}

/* Bottom Nav Line - Gradient Gold to Blue */
.app-nav {
    border-top: 2px solid transparent !important;
    background-image: linear-gradient(rgba(10,10,10,0.98), rgba(10,10,10,0.98)), linear-gradient(90deg, #fbbf24, #a855f7, #3b82f6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 -5px 20px rgba(168, 85, 247, 0.2) !important;
}

/* 2. TOP HEADER BUTTON COLORS */
/* Notification Bell (Gold) */
button[onclick*="openNotifications"] i { 
    color: #fbbf24 !important; 
    filter: drop-shadow(0 0 8px rgba(251,191,36,0.6));
}
/* Inbox Mail (Blue) */
button[onclick*="openInbox"] i { 
    color: #3b82f6 !important; 
    filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}
/* Search (Pink) */
button[onclick*="openSearch"] i { 
    color: #ec4899 !important; 
    filter: drop-shadow(0 0 8px rgba(236,72,153,0.6));
}

/* 3. BOTTOM TAB COLORS (INDIVIDUAL) */
/* Home - Cyan */
#nav-home i { color: #22d3ee; transition: 0.3s; }
/* Vibe - Electric Purple */
#nav-vibe i { color: #d946ef; transition: 0.3s; }
/* Connect - Fire Orange */
#nav-connection i { color: #f59e0b; transition: 0.3s; }
/* Show - Bright Red */
#nav-show i { color: #ef4444; transition: 0.3s; }
/* Feed - Emerald Green */
#nav-feed i { color: #34d399; transition: 0.3s; }
/* Class - Orange */
#nav-chat i { color: #f97316; transition: 0.3s; }
/* Me - Gold */
#nav-profile i { color: #fbbf24; transition: 0.3s; }

/* 4. ACTIVE STATE GLOW (Make the active one pop) */
.nav-item.active i {
    transform: scale(1.2);
    text-shadow: 0 0 15px currentColor; /* Glows in its own specific color */
    opacity: 1 !important;
}
.nav-item.active span {
    color: white !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
/* --- ATMOSPHERE ANIMATIONS (EXPANDED) --- */
    #atmosphere-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
    
    /* 1. Purple Rain & 5. Matrix */
    .drop { position: absolute; width: 2px; opacity: 0.7; animation: fall linear infinite; }
    .matrix-char { position: absolute; font-family: monospace; font-weight: bold; color: #00ff00; opacity: 0.8; animation: fall linear infinite; writing-mode: vertical-rl; text-orientation: upright; }

    /* 2. Make It Rain (Money) & 8. Confetti */
    .money, .confetti { position: absolute; font-size: 24px; animation: fall-spin linear infinite; opacity: 0; }
    
    /* 3. Stardust (FIXED: Now uses scaling glow) */
    .star { position: absolute; background: white; border-radius: 50%; animation: twinkle 3s infinite ease-in-out; box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }
    @keyframes twinkle { 
        0%, 100% { opacity: 0.3; transform: scale(0.5); } 
        50% { opacity: 1; transform: scale(1.2); } 
    }

    /* 4. The Club & 9. Thunder */
    .club-lights { animation: flash-lights 2s infinite; background: radial-gradient(circle, rgba(255,0,0,0.1), rgba(0,0,255,0.1)); width: 100%; height: 100%; }
    .thunder-flash { animation: flash-thunder 5s infinite; background-color: rgba(255, 255, 255, 0.2); width: 100%; height: 100%; }
    
    /* 6. Sakura (Petals) */
    .petal { position: absolute; background: #ffc0cb; border-radius: 100% 0 100% 0; animation: fall-sway 6s linear infinite; opacity: 0.8; }
    
    /* 7. Fireflies */
    .firefly { position: absolute; width: 4px; height: 4px; background: #fbbf24; border-radius: 50%; box-shadow: 0 0 10px #fbbf24; animation: float-around 10s infinite alternate; opacity: 0.8; }
    
    /* 10. Embers */
    .ember { position: absolute; width: 4px; height: 4px; background: #f97316; border-radius: 50%; box-shadow: 0 0 10px #f97316; animation: rise-up linear infinite; opacity: 0; }

    /* Keyframes */
    @keyframes fall { to { transform: translateY(110vh); } }
    @keyframes rise-up { 0% { opacity: 1; transform: translateY(110vh) scale(1); } 100% { opacity: 0; transform: translateY(-10vh) scale(0.5); } }
    @keyframes fall-spin { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }
    @keyframes fall-sway { 0% { transform: translateY(-10vh) translateX(0) rotate(0); } 50% { transform: translateY(50vh) translateX(50px) rotate(180deg); } 100% { transform: translateY(110vh) translateX(-50px) rotate(360deg); } }
    @keyframes float-around { 0% { transform: translate(0,0); } 25% { transform: translate(50px, -50px); } 50% { transform: translate(-20px, 40px); } 75% { transform: translate(30px, -30px); } 100% { transform: translate(-40px, 20px); } }
    
    @keyframes flash-lights { 0%, 100% { background-color: transparent; } 25% { background-color: rgba(255,0,0,0.1); } 50% { background-color: rgba(0,255,0,0.1); } 75% { background-color: rgba(0,0,255,0.1); } }
    @keyframes flash-thunder { 0%, 90%, 100% { background-color: transparent; } 92% { background-color: rgba(255,255,255,0.3); } 93% { background-color: transparent; } 96% { background-color: rgba(255,255,255,0.6); } }
/* --- APP FRAME & PROGRESS BORDER --- */
    #app-frame-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 99999; }
    
    /* The 4 bars of the border */
    .p-bar { position: absolute; background: #3f3f46; transition: width 0.5s ease, height 0.5s ease; opacity: 0.3; }
    .p-bar.active { background: #fbbf24; opacity: 1; box-shadow: 0 0 10px #fbbf24; } /* Amber Glow */
    
    .p-top { top: 0; left: 0; height: 4px; width: 0; }
    .p-right { top: 0; right: 0; width: 4px; height: 0; }
    .p-bottom { bottom: 0; right: 0; height: 4px; width: 0; }
    .p-left { bottom: 0; left: 0; width: 4px; height: 0; }

    /* Rank Badge on Home */
    .rank-badge-shine { animation: shine 3s infinite; }
    @keyframes shine { 0% { transform: translateX(-100%) skewX(-15deg); } 100% { transform: translateX(200%) skewX(-15deg); } }
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom scrollbar for horizontal album scrolling */
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background-color: rgba(63, 63, 70, 0.2);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(239, 68, 68, 0.6);
    border-radius: 3px;
    transition: background-color 0.2s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(239, 68, 68, 0.8);
}
/* Ensure touch scrolling works smoothly on iOS */
.scroll-touch {
    -webkit-overflow-scrolling: touch;
}
/* FORCE CONTENT DOWN BELOW HEADER */
.view-section {
    padding-top: 110px !important; /* Pushes content down */
    padding-bottom: 120px !important; /* Pushes content up from bottom nav */
}
@keyframes float-up {
        0% { transform: translateY(0) scale(1); opacity: 1; }
        100% { transform: translateY(-200px) scale(1.5); opacity: 0; }
    }
    .animate-float-up { animation: float-up 2s ease-out forwards; }
    .animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

                /* The "Swell": Slower rise, longer hold, smooth fade */
                @keyframes club-flash {
                    0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
                    25% { opacity: 0.8; transform: scale(1.1) rotate(5deg); } /* Slow bloom */
                    60% { opacity: 0.4; transform: scale(1.0) rotate(-5deg); } /* Linger */
                    100% { opacity: 0; transform: scale(0.8) rotate(0deg); } /* Fade */
                }
/* --- VERSUS MODE STYLES --- */
.versus-container { perspective: 1000px; height: 100%; }
.flip-card {
    width: 100%; height: 200px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 20px; overflow: hidden;
}
.flip-card-front {
    background: linear-gradient(135deg, #1e1b4b, #000);
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.flip-card-back {
    background: #111;
    transform: rotateY(180deg);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- TIME MACHINE ENHANCEMENTS --- */
@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}            
/* =========================================
   ARENA EPIC BATTLE STYLES
   ========================================= */

/* --- FLAMES ANIMATION (PIT MODE) --- */
.flame {
    position: absolute;
    bottom: -50px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 120px solid #ff4500;
    filter: blur(15px);
    animation: flicker 1.5s ease-in-out infinite;
}

.flame-1 { left: 10%; animation-delay: 0s; }
.flame-2 { left: 30%; animation-delay: 0.3s; border-bottom-color: #ff6b00; }
.flame-3 { left: 50%; animation-delay: 0.6s; border-bottom-color: #ff8c00; }
.flame-4 { left: 70%; animation-delay: 0.9s; border-bottom-color: #ff4500; }
.flame-5 { right: 10%; animation-delay: 1.2s; border-bottom-color: #ff6b00; }

@keyframes flicker {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(0) scaleY(1);
    }
    25% { 
        opacity: 1; 
        transform: translateY(-20px) scaleY(1.1);
    }
    50% { 
        opacity: 0.6; 
        transform: translateY(-10px) scaleY(0.9);
    }
    75% { 
        opacity: 0.9; 
        transform: translateY(-30px) scaleY(1.2);
    }
}

/* Battle Flames (Larger for Battle View) */
.battle-flame {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 300px;
    filter: blur(20px);
    opacity: 0.7;
}

.battle-flame-left {
    left: 0;
    background: linear-gradient(to top, #ff4500, #ff8c00, transparent);
    animation: flame-dance-left 3s ease-in-out infinite;
}

.battle-flame-right {
    right: 0;
    background: linear-gradient(to top, #ff4500, #ff8c00, transparent);
    animation: flame-dance-right 3s ease-in-out infinite;
}

@keyframes flame-dance-left {
    0%, 100% { transform: translateX(-20px) scaleX(1); }
    50% { transform: translateX(20px) scaleX(1.2); }
}

@keyframes flame-dance-right {
    0%, 100% { transform: translateX(20px) scaleX(1); }
    50% { transform: translateX(-20px) scaleX(1.2); }
}

/* --- CROWD ANIMATION (STAGE MODE) --- */
.crowd-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #000, transparent);
    opacity: 0.7;
}

.crowd-silhouette::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: 
        radial-gradient(circle at 10% 100%, #333 10px, transparent 10px),
        radial-gradient(circle at 15% 100%, #222 15px, transparent 15px),
        radial-gradient(circle at 25% 100%, #333 12px, transparent 12px),
        radial-gradient(circle at 35% 100%, #222 18px, transparent 18px),
        radial-gradient(circle at 45% 100%, #333 14px, transparent 14px),
        radial-gradient(circle at 55% 100%, #222 16px, transparent 16px),
        radial-gradient(circle at 65% 100%, #333 13px, transparent 13px),
        radial-gradient(circle at 75% 100%, #222 17px, transparent 17px),
        radial-gradient(circle at 85% 100%, #333 11px, transparent 11px),
        radial-gradient(circle at 95% 100%, #222 14px, transparent 14px);
    animation: crowd-wave 4s ease-in-out infinite;
}

@keyframes crowd-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- SPOTLIGHTS (STAGE MODE) --- */
.spotlight {
    position: absolute;
    width: 150px;
    height: 300px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    filter: blur(30px);
    animation: spotlight-sweep 8s ease-in-out infinite;
}

.spotlight-1 {
    left: 10%;
    top: -100px;
    animation-delay: 0s;
    background: linear-gradient(to bottom, rgba(255, 0, 255, 0.4), transparent);
}

.spotlight-2 {
    left: 50%;
    top: -100px;
    animation-delay: 2s;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0.4), transparent);
}

.spotlight-3 {
    right: 10%;
    top: -100px;
    animation-delay: 4s;
    background: linear-gradient(to bottom, rgba(255, 255, 0, 0.4), transparent);
}

@keyframes spotlight-sweep {
    0%, 100% { transform: translateX(-50px) rotate(-5deg); opacity: 0.5; }
    50% { transform: translateX(50px) rotate(5deg); opacity: 0.8; }
}

/* Stage Lights (Simpler version for background) */
.stage-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(255, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(255, 255, 0, 0.3) 0%, transparent 50%);
    animation: lights-pulse 3s ease-in-out infinite;
}

@keyframes lights-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* --- ARENA ROLE PANEL STYLES --- */
.arena-role-panel {
    min-height: 400px;
    transform-style: preserve-3d;
}

.arena-role-panel:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- SONG SLOT STYLES --- */
.song-slot {
    position: relative;
    overflow: hidden;
}

.song-slot.filled {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: rgba(59, 130, 246, 0.5);
}

.song-slot.filled:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Battle Selection Highlighting */
.battle-type-btn.border-4,
.battle-mode-btn.border-4 {
    border-color: white !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* --- EMOJI BUTTON STYLES --- */
.emoji-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* --- EMOJI POP-UP ANIMATION --- */
.emoji-popup {
    position: absolute;
    font-size: 48px;
    pointer-events: none;
    animation: emoji-float 3s ease-out forwards;
    z-index: 1000;
}

@keyframes emoji-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    20% {
        transform: translateY(-50px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1) translateX(var(--drift, 0px));
    }
}
/* --- SCHOLARSHIP BUTTON ANIMATIONS --- */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Autocomplete Dropdown Styling */
.autocomplete-item {
    position: relative;
}

.autocomplete-item.active {
    background-color: rgba(79, 70, 229, 0.3) !important;
}

.autocomplete-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #818cf8, #6366f1);
}

#autocomplete-dropdown {
    backdrop-filter: blur(12px);
}

#autocomplete-list::-webkit-scrollbar {
    width: 6px;
}

#autocomplete-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

#autocomplete-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

#autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* =========================================
   ARENA CHAT MESSAGES STYLING
   ========================================= */

#arena-chat-messages .chat-message,
#competitor-chat-messages .chat-message {
    margin-bottom: 10px;
    animation: slideInChat 0.3s ease-out;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#arena-chat-messages .chat-message .chat-bubble,
#competitor-chat-messages .chat-message .chat-bubble {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#arena-chat-messages .chat-message.player .chat-bubble,
#competitor-chat-messages .chat-message.player .chat-bubble {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#arena-chat-messages .chat-message .chat-username,
#competitor-chat-messages .chat-message .chat-username {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 0.3px;
}

#arena-chat-messages .chat-message .chat-text,
#competitor-chat-messages .chat-message .chat-text {
    line-height: 1.4;
    font-size: 13px;
}

#arena-chat-messages .chat-message .role-badge,
#competitor-chat-messages .chat-message .role-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-left: 4px;
    vertical-align: middle;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Custom scrollbar for chat */
#arena-chat-messages::-webkit-scrollbar,
#competitor-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#arena-chat-messages::-webkit-scrollbar-track,
#competitor-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#arena-chat-messages::-webkit-scrollbar-thumb,
#competitor-chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.6), rgba(168, 85, 247, 0.6));
    border-radius: 10px;
}

#arena-chat-messages::-webkit-scrollbar-thumb:hover,
#competitor-chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.8), rgba(168, 85, 247, 0.8));
}
/* =========================================
   NAMEPLATE STYLES (PURCHASABLE)
   ========================================= */

.nameplate-glow {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8), 0 0 20px rgba(96, 165, 250, 0.5), 0 0 30px rgba(96, 165, 250, 0.3);
    animation: nameplate-pulse 2s ease-in-out infinite;
}

@keyframes nameplate-pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(96, 165, 250, 0.8), 0 0 20px rgba(96, 165, 250, 0.5); }
    50% { text-shadow: 0 0 15px rgba(96, 165, 250, 1), 0 0 25px rgba(96, 165, 250, 0.7), 0 0 35px rgba(96, 165, 250, 0.5); }
}

.nameplate-underline {
    border-bottom: 2px solid #60a5fa;
    padding-bottom: 2px;
}

.nameplate-brackets::before {
    content: '[';
    color: #60a5fa;
    margin-right: 4px;
}

.nameplate-brackets::after {
    content: ']';
    color: #60a5fa;
    margin-left: 4px;
}

.nameplate-founder {
    position: relative;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nameplate-founder::before {
    content: '👑';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* =========================================
   VIBE ENHANCEMENTS
   ========================================= */

.vibe-mood-label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.vibe-mood-chill {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

.vibe-mood-aggressive {
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: white;
}

.vibe-mood-nostalgic {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.vibe-mood-experimental {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
}

.vibe-tagline {
    color: #d4d4d8;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    display: block;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border-left: 4px solid #a855f7;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.2);
}

.vibe-animation-pulse {
    animation: vibe-intro-pulse 1s ease-out;
}

@keyframes vibe-intro-pulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

#profile-vibe-mood, #view-vibe-mood {
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

/* NAMEPLATE STYLES */
.nameplate-underline {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 4px !important;
}

.nameplate-underline::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #3b82f6, #06b6d4) !important;
    border-radius: 2px !important;
}

.nameplate-brackets::before {
    content: '[' !important;
    color: #06b6d4 !important;
    font-weight: bold !important;
    margin-right: 4px !important;
}

.nameplate-brackets::after {
    content: ']' !important;
    color: #06b6d4 !important;
    font-weight: bold !important;
    margin-left: 4px !important;
}

.nameplate-glow {
    animation: nameplate-glow-pulse 2s ease-in-out infinite !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 
                 0 0 20px rgba(6, 182, 212, 0.6),
                 0 0 30px rgba(59, 130, 246, 0.4) !important;
}

@keyframes nameplate-glow-pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(6, 182, 212, 0.6); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 1), 0 0 30px rgba(6, 182, 212, 0.8), 0 0 40px rgba(59, 130, 246, 0.6); }
}

/* =========================================
   THEME ENHANCEMENTS
   ========================================= */

.chat-theme-neon .chat-message {
    border-left: 2px solid #a855f7;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), transparent);
}

.chat-theme-minimal .chat-message {
    background: transparent;
    border: none;
}

.background-theme-rain {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="1" height="10" x="20" y="0" fill="%2360a5fa" opacity="0.2"/><rect width="1" height="15" x="50" y="0" fill="%2360a5fa" opacity="0.3"/><rect width="1" height="12" x="80" y="0" fill="%2360a5fa" opacity="0.2"/></svg>');
    animation: rain-fall 1s linear infinite;
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.ui-transitions-smooth * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =========================================
   NOTIFICATION & INBOX ANIMATIONS
   ========================================= */

/* Bell shake animation for new notifications */
@keyframes notification-bell-shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

@keyframes notification-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
    }
}

/* Inbox bounce animation */
@keyframes inbox-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-6px); }
}

@keyframes inbox-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 1)) 
                drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    }
}

/* Apply animations when active */
.notification-alert {
    animation: notification-bell-shake 0.8s ease-in-out, notification-pulse 1.5s ease-in-out infinite;
}

.inbox-alert {
    animation: inbox-bounce 0.6s ease-in-out, inbox-glow 2s ease-in-out infinite;
}

/* Dot pulse for indicators */
@keyframes dot-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.notif-dot-pulse {
    animation: dot-pulse 1.5s ease-in-out infinite;
}

/* Pizza Party Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================
   MODERN HOMEPAGE LAYOUT STYLES
   ========================================= */

/* Action Tile Buttons - Dark Glass with Gradient Cloud */
.modern-action-btn {
    position: relative;
    height: 160px;
    border-radius: 35px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Solid black card */
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    
    /* Horizontal layout */
    display: flex;
    align-items: center;
    gap: 16px;
    
    cursor: pointer;
}

/* Subtle colored gradient overlay */
.modern-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tile-gradient);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* Content above overlay */
.modern-action-btn > * {
    position: relative;
    z-index: 10;
}

.modern-action-btn:active {
    transform: scale(0.95);
}

/* Scholarship Tile Buttons - Same styling */
.scholar-btn-grid {
    position: relative;
    height: 160px;
    border-radius: 35px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Solid black card */
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    
    /* Horizontal layout */
    display: flex;
    align-items: center;
    gap: 16px;
    
    cursor: pointer;
}

/* Subtle colored gradient overlay */
.scholar-btn-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tile-gradient);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.scholar-btn-grid > * {
    position: relative;
    z-index: 10;
}

.scholar-btn-grid:active {
    transform: scale(0.95);
}

.scholar-btn-grid:active {
    transform: translateY(-1px) scale(0.98);
}

/* Tile icon chip with glow */
/* Icon wrapper - prevents compression in flex layout */
.tile-icon-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon styling - 56px with glow */
.tile-icon-box i,
.tile-icon-box svg {
    font-size: 56px;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 12px currentColor);
}

/* Tile title - exact React spec: 22px, black weight, italic, tight tracking */
.tile-title {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    line-height: 1;
}

/* Tile subtitle - exact React spec: 9px, black weight, wide tracking */
.tile-sub {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* Live State for Request & Review Button */
#request-review-btn.live-active {
    animation: live-pulse 2s ease-in-out infinite;
    border-color: rgba(34, 197, 94, 0.8) !important;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), inset 0 0 20px rgba(34, 197, 94, 0.2);
}

#request-review-btn.live-active::before {
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.1) 50%, transparent 100%);
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), inset 0 0 20px rgba(34, 197, 94, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.8), inset 0 0 30px rgba(34, 197, 94, 0.3);
    }
}

/* Page Indicators */
.action-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.action-dot.active {
    width: 24px;
    border-radius: 9999px;
}

/* Rounded Bottom Navigation */
.app-nav {
    position: fixed !important;
    bottom: 1.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 3rem) !important;
    max-width: 400px !important;
    border-radius: 2rem !important;
    background: rgba(9, 9, 11, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 
                0 0 60px rgba(0, 0, 0, 0.3) !important;
    padding: 0.75rem 1rem !important;
    z-index: 1000 !important;
}

.nav-pill {
    position: relative;
    border-radius: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
}

.nav-pill:active {
    transform: scale(0.95);
}

/* Color-coded active states */
.nav-pill.active#nav-home {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3)) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
}

.nav-pill.active#nav-feed {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.3)) !important;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4), inset 0 0 20px rgba(20, 184, 166, 0.2) !important;
    border: 1px solid rgba(20, 184, 166, 0.5) !important;
}

.nav-pill.active#nav-profile {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.3)) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4), inset 0 0 20px rgba(234, 179, 8, 0.2) !important;
    border: 1px solid rgba(234, 179, 8, 0.5) !important;
}

.nav-pill.active#nav-show {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   PROFILE PAGE - NEW PREMIUM DESIGN
   ══════════════════════════════════════════════════════════════════════ */

/* Hero section */
.profile-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(160deg, #1a0a2e 0%, #0a1628 50%, #0d1f1c 100%);
}

.profile-hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: saturate(1.4);
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,7,14,0) 0%, rgba(7,7,14,0.5) 60%, rgba(7,7,14,1) 100%);
}

.profile-hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-brand-pill {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0f0f5;
}

.profile-brand-pill span {
    color: #e8a020;
}

.profile-edit-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-edit-btn:hover {
    background: rgba(255,255,255,0.2);
}

.profile-edit-btn svg {
    width: 15px;
    height: 15px;
}

.profile-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 28px 28px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.profile-photo-main {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #e8a020;
    flex-shrink: 0;
    box-shadow: 0 0 40px rgba(232,160,32,0.3);
    background: linear-gradient(135deg, #2a1a6e, #1a2e2a);
}

.profile-hero-identity {
    padding-bottom: 4px;
    flex: 1;
}

.profile-class-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e8a020;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-class-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #e8a020;
    border-radius: 2px;
}

.profile-hero-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: 2px;
    line-height: 0.95;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.profile-hero-name .cap-icon {
    display: inline-block;
    font-size: 0.55em;
    vertical-align: middle;
    margin-left: 6px;
    transform: translateY(-4px);
}

.profile-hero-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-htag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
}

.profile-htag svg {
    width: 12px;
    height: 12px;
}

/* Stats bar */
.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.07);
    margin: 0 28px;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(-1px);
}

.profile-stat-cell {
    background: #0e0e1a;
    padding: 18px 20px;
    text-align: center;
    transition: background 0.2s;
    cursor: default;
}

.profile-stat-cell:hover {
    background: #13131f;
}

.profile-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    letter-spacing: 1px;
    line-height: 1;
}

.profile-stat-num.gold {
    color: #e8a020;
}

.profile-stat-num.white {
    color: white;
}

.profile-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 5px;
}

/* Badges */
.profile-badges-row {
    display: flex;
    gap: 8px;
    padding: 20px 28px 0;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: default;
    transition: transform 0.15s;
}

.profile-badge:hover {
    transform: translateY(-2px);
}

.profile-badge-purple {
    background: rgba(124,58,237,0.25);
    border: 1px solid rgba(124,58,237,0.5);
    color: #a78bfa;
}

.profile-badge-teal {
    background: rgba(13,148,136,0.2);
    border: 1px solid rgba(13,148,136,0.4);
    color: #5eead4;
}

.profile-badge-red {
    background: rgba(225,29,72,0.2);
    border: 1px solid rgba(225,29,72,0.4);
    color: #fb7185;
}

/* Section labels */
.profile-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 32px 28px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* Anthem cards grid */
.profile-anthems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 28px;
}

@media (max-width: 700px) {
    .profile-anthems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-anthem-card {
    border-radius: 16px;
    overflow: hidden;
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.profile-anthem-card > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
}

.profile-anthem-card > div > button {
    margin-top: auto;
}

.profile-anthem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.profile-anthem-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #2a1a4e, #1a2a1a);
    display: block;
}

/* Founder card special styling */
.profile-anthem-card.founder .profile-anthem-art {
    background: linear-gradient(135deg, #3a2200, #6b3d00);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.profile-founder-crown {
    font-size: 40px;
    filter: drop-shadow(0 0 12px rgba(232,160,32,0.6));
}

.profile-founder-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8a020;
    text-align: center;
}

.profile-founder-sub {
    font-size: 10px;
    color: rgba(232,160,32,0.6);
    text-align: center;
    letter-spacing: 0.5px;
}

.profile-anthem-info {
    padding: 12px;
}

.profile-anthem-seq {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8a020;
    margin-bottom: 4px;
}

.profile-anthem-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 10px;
}

.profile-play-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #7c3aed;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.profile-play-btn:hover {
    background: #6d28d9;
}

.profile-play-btn.gold-btn {
    background: #e8a020;
    color: #0a0500;
}

.profile-play-btn.gold-btn:hover {
    background: #d4911c;
}

/* Info grid (Academic section) */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 28px;
}

.profile-info-card {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 22px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-info-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.profile-info-card:active {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-info-card.full {
    grid-column: 1 / -1;
}

.profile-info-card.gold-border {
    border-color: rgba(232,160,32,0.3);
}

.profile-info-card.purple-border {
    border-color: rgba(124,58,237,0.35);
}

.profile-info-card.teal-border {
    border-color: rgba(13,148,136,0.3);
}

.profile-ic-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-ic-eyebrow.gold {
    color: #e8a020;
}

.profile-ic-eyebrow.purple {
    color: #a78bfa;
}

.profile-ic-eyebrow.teal {
    color: #5eead4;
}

.profile-ic-eyebrow.muted {
    color: #6b7280;
}

.profile-ic-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 1;
    color: white;
}

.profile-ic-value.giant {
    font-size: 22px;
    color: #e8a020;
    word-break: break-all;
}

.profile-ic-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.profile-ic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.profile-ic-icon.gold-bg {
    background: rgba(232,160,32,0.15);
}

.profile-ic-icon.blue-bg {
    background: rgba(37,99,235,0.2);
}

.profile-ic-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

/* Vibe personality section */
.profile-vibe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 28px;
}

.profile-vibe-quote {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}

.profile-vibe-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 120px;
    color: rgba(124,58,237,0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.profile-vibe-quote-text {
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: #9ca3af;
    position: relative;
    z-index: 1;
}

.profile-vibe-tag-card {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 22px;
}

.profile-vibe-mood-pill {
    display: inline-block;
    background: #7c3aed;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.profile-vibe-tagline-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: white;
    margin-top: 8px;
    text-align: center;
}

/* Chips row */
.profile-chip-row {
    padding: 16px 28px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.profile-chip:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.profile-chip svg {
    width: 14px;
    height: 14px;
}

/* Collapsible sections */
.profile-collapse-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 32px 0 0;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-collapse-row:hover {
    background: rgba(255,255,255,0.02);
}

.profile-collapse-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
}

.profile-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8a020;
    box-shadow: 0 0 8px #e8a020;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* Fade up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

.d1 {
    animation-delay: 0.05s;
}

.d2 {
    animation-delay: 0.12s;
}

.d3 {
    animation-delay: 0.19s;
}

.d4 {
    animation-delay: 0.26s;
}

.d5 {
    animation-delay: 0.33s;
}

.d6 {
    animation-delay: 0.4s;
}

.d7 {
    animation-delay: 0.47s;
}

.d8 {
    animation-delay: 0.54s;
}

/* ═══════════════════════════════════════════════════
   NEW PROFILE DESIGN STYLES
   ═══════════════════════════════════════════════════ */

/* Hero Section */
.profile-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(160deg, #1a0a2e 0%, #0a1628 50%, #0d1f1c 100%);
    border-radius: 24px;
    margin-bottom: 20px;
}

.profile-hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: saturate(1.4);
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(7,7,14,0) 0%,
        rgba(7,7,14,0.5) 60%,
        rgba(7,7,14,1) 100%);
}

.profile-hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.profile-brand-pill {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0f0f5;
}

.profile-brand-pill span {
    color: #e8a020;
}

.profile-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px 20px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    z-index: 10;
}

.profile-photo-hero {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: contain;
    border: 4px solid #e8a020;
    flex-shrink: 0;
    box-shadow: 0 0 50px rgba(232,160,32,0.4);
    background: linear-gradient(135deg, #2a1a6e, #1a2e2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hero-identity {
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.profile-hero-class-tag {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8a020;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-hero-class-tag::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #e8a020;
    border-radius: 2px;
}

.profile-hero-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 2px;
    line-height: 0.95;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    word-break: break-word;
}

.profile-hero-name .cap-icon {
    display: inline-block;
    font-size: 0.6em;
    vertical-align: middle;
    margin-left: 6px;
    transform: translateY(-2px);
}

.profile-hero-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-htag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d1d5db;
}

.profile-htag svg {
    width: 14px;
    height: 14px;
}

/* Stats Bar */
.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-stat-cell {
    background: #0e0e1a;
    padding: 18px 16px;
    text-align: center;
    transition: background 0.2s;
    cursor: pointer;
}

.profile-stat-cell:hover {
    background: #13131f;
}

.profile-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    line-height: 1;
}

.profile-stat-num.gold {
    color: #e8a020;
}

.profile-stat-num.white {
    color: white;
}

.profile-stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 5px;
}

/* Role Badges Row */
.profile-badges-row {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: default;
    transition: transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-badge:hover {
    transform: translateY(-2px);
}

.profile-badge-purple {
    background: rgba(124,58,237,0.25);
    border: 1px solid rgba(124,58,237,0.5);
    color: #a78bfa;
}

.profile-badge-teal {
    background: rgba(13,148,136,0.2);
    border: 1px solid rgba(13,148,136,0.4);
    color: #5eead4;
}

.profile-badge-red {
    background: rgba(225,29,72,0.2);
    border: 1px solid rgba(225,29,72,0.4);
    color: #fb7185;
}

/* Premium Badges (Under Stats) */
.badge {
  position: relative;
  border-radius: 16px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.badge:hover {
  transform: translateY(-3px);
}

/* Shine sweep on hover */
.badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.07) 50%,
    transparent 60%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.badge:hover::after { left: 160%; }

/* Top gloss line */
.badge::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  border-radius: 1px;
}

/* ── PROFESSOR — Deep violet/indigo ── */
.badge-professor {
  background: linear-gradient(160deg, #2d1b69 0%, #1a0f45 55%, #0f0b2a 100%);
  border-color: rgba(139,92,246,0.35);
  box-shadow:
    0 4px 24px rgba(109,40,217,0.3),
    inset 0 1px 0 rgba(167,139,250,0.15);
}
.badge-professor:hover {
  box-shadow:
    0 10px 36px rgba(109,40,217,0.45),
    inset 0 1px 0 rgba(167,139,250,0.2);
}

.badge-professor .badge-icon { color: #a78bfa; }
.badge-professor .badge-label { color: #e0d7ff; }
.badge-professor .badge-sub { color: #7c6bbf; }
.badge-professor .badge-glow {
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.25) 0%, transparent 70%);
}

/* ── ARTIST — Crimson/rose gold ── */
.badge-artist {
  background: linear-gradient(160deg, #5a0f1e 0%, #3a0910 55%, #1a0508 100%);
  border-color: rgba(244,63,94,0.35);
  box-shadow:
    0 4px 24px rgba(190,18,60,0.3),
    inset 0 1px 0 rgba(251,113,133,0.15);
}
.badge-artist:hover {
  box-shadow:
    0 10px 36px rgba(190,18,60,0.45),
    inset 0 1px 0 rgba(251,113,133,0.25);
}

.badge-artist .badge-icon { color: #fb7185; }
.badge-artist .badge-label { color: #ffe4e8; }
.badge-artist .badge-sub { color: #9b4a58; }
.badge-artist .badge-glow {
  background: radial-gradient(circle at 50% 0%, rgba(244,63,94,0.25) 0%, transparent 70%);
}

/* ── CONNOISSEUR — Royal blue ── */
.badge-connoisseur {
  background: linear-gradient(160deg, #1e3a8a 0%, #1e293b 55%, #0f172a 100%);
  border-color: rgba(59,130,246,0.35);
  box-shadow:
    0 4px 24px rgba(37,99,235,0.3),
    inset 0 1px 0 rgba(96,165,250,0.15);
}
.badge-connoisseur:hover {
  box-shadow:
    0 10px 36px rgba(37,99,235,0.45),
    inset 0 1px 0 rgba(96,165,250,0.25);
}

.badge-connoisseur .badge-icon { color: #60a5fa; }
.badge-connoisseur .badge-label { color: #dbeafe; }
.badge-connoisseur .badge-sub { color: #3b82f6; }
.badge-connoisseur .badge-glow {
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.25) 0%, transparent 70%);
}

/* ── CURATOR IV — Emerald/teal ── */
.badge-curator {
  background: linear-gradient(160deg, #0a3325 0%, #061f17 55%, #030e0b 100%);
  border-color: rgba(16,185,129,0.35);
  box-shadow:
    0 4px 24px rgba(5,150,105,0.3),
    inset 0 1px 0 rgba(52,211,153,0.15);
}
.badge-curator:hover {
  box-shadow:
    0 10px 36px rgba(5,150,105,0.45),
    inset 0 1px 0 rgba(52,211,153,0.25);
}

.badge-curator .badge-icon { color: #34d399; }
.badge-curator .badge-label { color: #d1fae5; }
.badge-curator .badge-sub { color: #2a7a5a; }
.badge-curator .badge-glow {
  background: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.25) 0%, transparent 70%);
}

/* ── FRESHMAN — Vibrant orange/amber ── */
.badge-freshman {
  background: linear-gradient(160deg, #7c2d12 0%, #431407 55%, #1c0a05 100%);
  border-color: rgba(249,115,22,0.4);
  box-shadow:
    0 4px 24px rgba(234,88,12,0.35),
    inset 0 1px 0 rgba(251,146,60,0.2);
}
.badge-freshman:hover {
  box-shadow:
    0 10px 36px rgba(234,88,12,0.5),
    inset 0 1px 0 rgba(251,146,60,0.3);
}

.badge-freshman .badge-icon { color: #fb923c; }
.badge-freshman .badge-label { color: #fed7aa; }
.badge-freshman .badge-sub { color: #c2410c; }
.badge-freshman .badge-glow {
  background: radial-gradient(circle at 50% 0%, rgba(249,115,22,0.3) 0%, transparent 70%);
}

/* ── INNER ELEMENTS ── */
.badge-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.badge-icon {
  font-size: 26px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}
.badge:hover .badge-icon { transform: scale(1.12); }

.badge-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2.5px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.badge-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}

/* Level pip row for Curator */
.badge-pips {
  display: flex;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.pip {
  width: 18px; height: 4px;
  border-radius: 2px;
  background: rgba(52,211,153,0.25);
}
.pip.lit {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,0.7);
}

/* Decorative corner accent */
.corner-accent {
  position: absolute;
  top: 10px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: 1;
  animation: twinkle 3s ease-in-out infinite;
}
.badge-professor .corner-accent { background: #7c3aed; box-shadow: 0 0 6px #7c3aed; animation-delay: 0s; }
.badge-artist .corner-accent    { background: #e11d48; box-shadow: 0 0 6px #e11d48; animation-delay: 1s; }
.badge-connoisseur .corner-accent { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; animation-delay: 1s; }
.badge-curator .corner-accent   { background: #059669; box-shadow: 0 0 6px #059669; animation-delay: 2s; }
.badge-freshman .corner-accent  { background: #f97316; box-shadow: 0 0 6px #f97316; animation-delay: 0.5s; }

@keyframes twinkle {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.6); }
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .badge { padding: 18px 12px 16px; border-radius: 13px; gap: 6px; }
  .badge-icon { font-size: 22px; }
  .badge-label { font-size: 16px; letter-spacing: 1.5px; }
  .badge-sub { font-size: 9px; }
  .pip { width: 14px; }
}

/* Section Labels */
.profile-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* Anthem Cards Grid */
.profile-anthems-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .profile-anthems-scroll {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-anthem-card {
    border-radius: 16px;
    overflow: hidden;
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.profile-anthem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.profile-anthem-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #2a1a4e, #1a2a1a);
    display: block;
}

/* Founder Card Special Styling */
.profile-anthem-card.founder .profile-anthem-art {
    background: linear-gradient(135deg, #3a2200, #6b3d00);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.profile-founder-crown {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(232,160,32,0.6));
}

.profile-founder-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8a020;
    text-align: center;
}

.profile-founder-sub {
    font-size: 9px;
    color: rgba(232,160,32,0.6);
    text-align: center;
    letter-spacing: 0.5px;
}

.profile-anthem-info {
    padding: 12px;
}

.profile-anthem-seq {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8a020;
    margin-bottom: 4px;
}

.profile-anthem-title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 10px;
}

.profile-play-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #7c3aed;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.profile-play-btn:hover {
    background: #6d28d9;
}

.profile-play-btn.gold-btn {
    background: #e8a020;
    color: #0a0500;
}

.profile-play-btn.gold-btn:hover {
    background: #d4911c;
}

/* Academic Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-info-card {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.2s;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-info-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.profile-info-card.full {
    grid-column: 1 / -1;
}

.profile-info-card.gold-border {
    border-color: rgba(232,160,32,0.3);
}

.profile-info-card.purple-border {
    border-color: rgba(124,58,237,0.35);
}

.profile-info-card.teal-border {
    border-color: rgba(13,148,136,0.3);
}

.profile-info-card.blue-border {
    border-color: rgba(37,99,235,0.3);
}

.profile-ic-eyebrow {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
}

.profile-ic-eyebrow.gold {
    color: #e8a020;
}

.profile-ic-eyebrow.purple {
    color: #a78bfa;
}

.profile-ic-eyebrow.teal {
    color: #5eead4;
}

.profile-ic-eyebrow.muted {
    color: #6b7280;
}

.profile-ic-eyebrow.blue {
    color: #93c5fd;
}

.profile-ic-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    line-height: 1;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ic-value.giant {
    font-size: 20px;
    color: #e8a020;
    word-break: break-all;
}

.profile-ic-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Vibe Grid */
.profile-vibe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-vibe-quote {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}

.profile-vibe-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    color: rgba(124,58,237,0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.profile-vibe-quote-text {
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: #d1d5db;
    position: relative;
    z-index: 1;
    text-align: center;
}

.profile-vibe-tag-card {
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-vibe-mood-pill {
    display: inline-block;
    background: #7c3aed;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

/* =========================================
   MOBILE OPTIMIZATION - ARTIST STATIONS
   ========================================= */

@media (max-width: 768px) {
    /* Listening Station Mobile */
    .artist-only .bg-gradient-to-br {
        padding: 20px !important;
    }
    
    /* Station Headers - Stack vertically */
    .artist-only .bg-gradient-to-br > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    
    /* Title section - full width */
    .artist-only .bg-gradient-to-br > div:first-child > div:first-child {
        width: 100%;
    }
    
    /* Icon + Title container */
    .artist-only .bg-gradient-to-br > div:first-child > div:first-child > div:first-child {
        flex-wrap: wrap;
        gap: 12px !important;
    }
    
    /* Icon size adjustment */
    .artist-only .w-16.h-16 {
        width: 48px !important;
        height: 48px !important;
    }
    
    .artist-only .w-16.h-16 i {
        font-size: 24px !important;
    }
    
    /* Title text */
    .artist-only .text-2xl {
        font-size: 20px !important;
    }
    
    .artist-only .text-sm {
        font-size: 12px !important;
    }
    
    /* Buttons container - full width, stack */
    .artist-only .bg-gradient-to-br > div:first-child > div:last-child {
        width: 100%;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* Individual buttons - full width */
    .artist-only .bg-gradient-to-br > div:first-child > div:last-child > a,
    .artist-only .bg-gradient-to-br > div:first-child > div:last-child > button {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
    }
    
    /* Featured Track Section */
    .artist-only #artist-pinned-track,
    .artist-only #view-artist-pinned-track {
        padding: 20px !important;
    }
    
    .artist-only #artist-pinned-track > div:last-child,
    .artist-only #view-artist-pinned-track > div:last-child {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    /* Album art */
    .artist-only #pinned-track-art,
    .artist-only #view-pinned-track-art,
    .artist-only #pinned-track-placeholder,
    .artist-only #view-pinned-track-placeholder {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    /* Track info */
    .artist-only #pinned-track-title,
    .artist-only #view-pinned-track-title {
        font-size: 18px !important;
        text-align: center !important;
    }
    
    .artist-only #pinned-track-artist,
    .artist-only #view-pinned-track-artist {
        font-size: 14px !important;
        text-align: center !important;
    }
    
    /* Play button */
    .artist-only #pinned-track-play-btn,
    .artist-only #view-pinned-track-play-btn {
        width: 64px !important;
        height: 64px !important;
        margin: 0 auto !important;
    }
    
    /* Countdown Banner */
    .artist-only #artist-countdown-banner,
    .artist-only #view-artist-countdown-banner {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px !important;
    }
    
    .artist-only #artist-countdown-banner > div,
    .artist-only #view-artist-countdown-banner > div {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Music Catalog Grid */
    .artist-only #artist-music-grid,
    .artist-only #view-artist-music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Watch Station Mobile */
    .artist-only #artist-video-container,
    .artist-only #view-artist-video-container {
        border-radius: 12px !important;
    }
    
    /* Story Station - Bio and sections */
    .artist-only .bg-gradient-to-br.from-zinc-900\/80 {
        padding: 20px !important;
    }
    
    .artist-only .w-10.h-10 {
        width: 36px !important;
        height: 36px !important;
    }
    
    .artist-only .text-base {
        font-size: 14px !important;
    }
    
    /* Photo Grid */
    .artist-only .grid.grid-cols-2 {
        gap: 8px !important;
    }
    
    /* Follow & Contact Station */
    .artist-only .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Influences/Tags - wrap better */
    .artist-only #artist-influences-container,
    .artist-only #view-artist-influences-container,
    .artist-only #artist-tags-container,
    .artist-only #view-artist-tags-container {
        gap: 6px !important;
    }
    
    .artist-only #artist-influences-container > *,
    .artist-only #view-artist-influences-container > *,
    .artist-only #artist-tags-container > *,
    .artist-only #view-artist-tags-container > * {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    
    /* Shop buttons grid */
    .artist-only .grid.grid-cols-2.gap-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.profile-vibe-tagline-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: white;
    margin-top: 8px;
    text-align: center;
}
