:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #5865F2;
    --accent-glow: rgba(88, 101, 242, 0.35);
    --accent-muted: rgba(88, 101, 242, 0.15);
    --accent-gradient: linear-gradient(90deg, #ff007a, var(--accent));
    /* Discord Blurple — dynamically overridden by Color Thief */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.bg-layer {
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Background Liquid Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(to right, #5865F2, #ff007a);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    bottom: -200px;
    right: -100px;
    border-radius: 50%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, #ff0844, #ffb199);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pulse {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
    }

    to {
        box-shadow: 0 0 30px rgba(88, 101, 242, 1);
    }
}

#bot-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.stat-card small {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.player-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.guild-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guild-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guild-card.selected {
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.guild-card.active {
    opacity: 1;
}

.guild-card.inactive {
    opacity: 0.7;
}

.guild-card.inactive:hover {
    opacity: 1;
}

.guild-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.guild-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.guild-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.track-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.track-art {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.track-text {
    overflow: hidden;
    flex: 1;
}

.track-title {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.track-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1s linear;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.5);
}

.status-paused {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.5);
}

/* Placeholder */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Modals and Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    filter: blur(100px) saturate(200%) brightness(0.6);
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
    transform: scale(1.2);
}

.modal-content {
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 12, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-box {
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 10px;
}

.login-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-box .btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.login-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: white;
    font-weight: 600;
}

/* Leaderboard */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
}

.lb-section {
    padding: 25px;
}

.lb-section h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Player Detail Modal */
.player-modal-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.player-modal-header img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-modal-body {
    display: block;
    margin-top: 20px;
}

/* Modal Progress Bar */
.modal-progress-container {
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
}

.modal-progress-container .progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: 0.2s;
}

.modal-progress-container:hover .progress-bar-bg {
    height: 12px;
}

.modal-progress-container .progress-fill {
    background: linear-gradient(90deg, #ff007a, var(--accent));
    transition: width 0.1s linear;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 8px;
    position: relative;
    transition: 0.3s;
}

.modal-tab-btn:hover {
    color: white;
}

.modal-tab-btn.active {
    color: white;
    font-weight: 600;
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main page tab content transitions */
.tab-content {
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Queue Drag and Drop */
.drag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: grab;
    transition: transform 0.2s;
}

.drag-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.drag-item.drag-over {
    border-top: 2px solid var(--accent);
}

.btn-remove {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-remove:hover {
    background: #ff4444;
    color: white;
}

.queue-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
}

.queue-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Karaoke Lyrics Styling */
.lyrics-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    padding: 50px 10px;
    overflow-x: hidden;
    word-break: break-word;
    text-align: center;
    scroll-behavior: smooth;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scrollbar-width: none; /* Firefox */
}

.lyrics-text::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.lyric-line {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    cursor: pointer;
}

.lyric-line:hover {
    color: var(--accent);
    opacity: 0.8;
}

.lyric-line.active {
    opacity: 1;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Auth Box */
.user-auth-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-auth-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.user-auth-box div {
    font-size: 0.95rem;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    border: none !important;
    outline: none !important;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #3b45a6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

#pwa-install-btn:hover {
    background: linear-gradient(135deg, #ff007a, var(--accent)) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 122, 0.6) !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none !important;
    outline: none !important;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Controls Row */
.controls-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.controls-row button.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.controls-row button.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0 15px;
    height: 45px;
    border-radius: 22.5px;
    border: 1px solid var(--glass-border);
}

/* Search Row */
.search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search-row input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.search-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

.search-row button {
    padding: 0 30px;
    background: linear-gradient(135deg, var(--accent), #ff007a);
    color: white;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.search-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 122, 0.5);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.setting-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-row select {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 180px;
    transition: 0.3s;
}

.setting-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 26px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Fullscreen Mode */
.fullscreen-btn {
    position: absolute;
    top: -10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.fullscreen-btn:hover {
    background: var(--accent);
}

body.fullscreen-mode .modal-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

body.fullscreen-mode .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
}

body.fullscreen-mode .modal-bg {
    filter: blur(40px) saturate(150%) brightness(0.4);
}

body.fullscreen-mode .player-modal-header,
body.fullscreen-mode .controls-row,
body.fullscreen-mode .filters-row,
body.fullscreen-mode .search-row,
body.fullscreen-mode .modal-tabs,
body.fullscreen-mode .close-btn {
    display: none !important;
}

body.fullscreen-mode .lyrics-text {
    max-height: 80vh;
    font-size: 1.5rem;
    mask-image: none;
    -webkit-mask-image: none;
}

body.fullscreen-mode .lyric-line.active {
    font-size: 2.5rem;
}

body.fullscreen-mode .modal-progress-container {
    margin-top: auto;
    padding-bottom: 30px;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 90px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.playlist-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.playlist-card p {
    color: var(--text-secondary);
    margin: 0;
}

.playlist-card .btn-play {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Playlist Edit Modal Action Buttons */
.playlist-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    height: 48px;
}

.playlist-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.playlist-action-btn:active {
    transform: translateY(0);
}

.playlist-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.playlist-action-btn--primary {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    color: white;
    border: none;
}

.playlist-action-btn--primary:hover {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    filter: brightness(1.15);
}

.playlist-action-btn--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.playlist-action-btn--danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Dynamic Background */
#dynamic-bg {
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.3);
    transition: background-image 1s ease-in-out;
    transform: scale(1.1);
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
    animation: miniPlayerIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow 0.8s ease;
}
@keyframes miniPlayerIn {
    from {
        bottom: -100px;
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        bottom: 20px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}
.mini-player-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
}
.mini-player img {
    width: 50px; height: 50px;
    border-radius: 10px;
}
.mini-info { flex: 1; overflow: hidden; white-space: nowrap; }
.mini-title { font-weight: 600; font-size: 1rem; text-overflow: ellipsis; overflow: hidden; }
.mini-author { font-size: 0.8rem; color: var(--text-secondary); text-overflow: ellipsis; overflow: hidden; }
.mini-controls { display: flex; gap: 10px; align-items: center; }
.btn-icon {
    width: 40px; height: 40px; font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: white;
    cursor: pointer; border-radius: 50%; transition: 0.3s;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.mini-controls .btn-icon { border: none; background: transparent; }
.mini-controls .btn-icon:hover { background: rgba(255, 255, 255, 0.1); transform: none; }
.mini-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); }
.mini-progress-fill { height: 100%; background: linear-gradient(90deg, #ff007a, var(--accent)); transition: width 0.1s linear; }

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-top: 5px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}
.search-dropdown::-webkit-scrollbar { display: none; }
.search-result-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; cursor: pointer; transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item:hover { background: rgba(255,255,255,0.1); }
.search-result-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-result-info { flex: 1; overflow: hidden; white-space: nowrap; }
.search-result-title { font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; }
.search-result-author { font-size: 0.8rem; color: var(--text-secondary); }

/* Audio Visualizer (Redesigned to a subtle glowing orb effect) */
.audio-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 150px;
    background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes glowPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}
body.fullscreen-mode .audio-visualizer { display: block !important; }
.audio-visualizer.paused { animation-play-state: paused; opacity: 0.2; transform: translate(-50%, -50%) scale(0.9); transition: 0.5s; }

/* Global buttons */
.btn-discord {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-discord:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(88, 101, 242, 1), rgba(255, 0, 122, 1));
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease forwards;
    transform: translateX(120%);
    opacity: 0;
}
.toast.toast-error { border-left: 4px solid #ff4444; }
.toast.toast-success { border-left: 4px solid #00C851; }
.toast.toast-info { border-left: 4px solid var(--accent); }
.toast.fade-out { animation: slideOut 0.3s ease forwards; }

@keyframes slideIn {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* Mobile PWA Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: space-around;
        padding: 10px 0;
        background: rgba(20, 20, 30, 0.9);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        border-radius: 20px 20px 0 0;
    }
    
    .mobile-bottom-nav .nav-btn {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
        padding: 5px 10px;
        background: transparent !important;
        border: none !important;
    }
    
    .mobile-bottom-nav .nav-btn:hover, .mobile-bottom-nav .nav-btn.active {
        color: var(--accent);
        transform: scale(1.1);
    }
    
    .container {
        padding: 20px 10px 80px 10px;
    }

    .header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .bot-info {
        flex-direction: column;
        gap: 10px;
    }

    #bot-name {
        font-size: 1.5rem;
    }

    .stats-row {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }

    .stat-card {
        padding: 10px;
        flex: 1;
    }

    .stat-card h2 {
        font-size: 1.3rem;
    }
    
    .players-grid, 
    .playlists-grid, 
    .settings-grid, 
    .leaderboard-grid {
        grid-template-columns: 1fr !important;
    }

    .toast-container {
        bottom: 80px;
    }

    .mini-player {
        bottom: 85px;
        width: 95%;
    }
}

/* Voice Command FAB */
.voice-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #eb459e);
    border: none;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.voice-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.voice-fab .voice-ripple {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(235, 69, 158, 0.7);
    animation: none;
}

.voice-fab.listening .voice-ripple {
    animation: pulse-voice 1.5s infinite;
}

.voice-fab.listening {
    background: linear-gradient(135deg, #ed4245, #ff73fa);
}

@keyframes pulse-voice {
    0% { box-shadow: 0 0 0 0 rgba(235, 69, 158, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(235, 69, 158, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 69, 158, 0); }
}

@media (max-width: 768px) {
    .voice-fab {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
    z-index: 2100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 0 16px 16px 16px;
    flex: 1;
    word-break: break-word;
}

.chat-message-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: var(--accent);
}

.chat-message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.chat-message-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0 15px;
    color: white;
    outline: none;
    font-size: 0.95rem;
}

#chat-input:focus {
    border-color: var(--accent);
}

.chat-typing-indicator {
    padding: 6px 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 25px;
}

.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: typingBlink 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBlink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

@media (max-width: 768px) {
    .chat-panel {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 60vh;
        border-radius: 24px 24px 0 0;
    }
}

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

/* Drag & Drop Overlay */
.drag-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

.drag-drop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drag-drop-content {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 50px 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.drag-drop-overlay.active .drag-drop-content {
    transform: scale(1) translateY(0);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.drag-drop-icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 10px;
    animation: bounce 2.2s infinite ease-in-out;
}

.drag-drop-content h2 {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drag-drop-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 10px 20px rgba(88, 101, 242, 0.6));
    }
}

/* Active Listeners */
.listeners-container {
    margin: 15px 0 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.listeners-container + .listeners-container {
    margin-top: -10px;
}

.listeners-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listeners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.listener-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.listener-avatar-wrapper:hover {
    transform: scale(1.2) translateY(-2px);
    z-index: 5;
}

.listener-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0,0,0,0.2);
    object-fit: cover;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.listener-avatar-wrapper:hover .listener-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.listener-status-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 1.5px solid #1a1a24;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.listener-status-badge.deaf {
    background: #e91e63;
    color: white;
}

.listener-status-badge.mute {
    background: #ff9800;
    color: white;
}

.lyrics-sync-btn:hover {
    background: rgba(88, 101, 242, 0.8) !important;
    border-color: var(--accent) !important;
    transform: translateX(-50%) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4) !important;
}

#lyrics-lang-selector button.active {
    background: var(--accent) !important;
    font-weight: 600;
}

/* ==========================================================================
   Server Music Insights (Wrapped Style)
   ========================================================================== */

/* 1. Archetype Card */
.archetype-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8a2387, #e94057, #f27121);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.archetype-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.archetype-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.archetype-emoji {
    font-size: 4.5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    z-index: 1;
    animation: floatEmoji 4s ease-in-out infinite;
    user-select: none;
}

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.archetype-info {
    z-index: 1;
    color: white;
    text-align: left;
}

.archetype-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.archetype-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.archetype-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
}

.archetype-stats-summary {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 2. Heatmap Grid */
.heatmap-grid {
    display: grid;
    grid-template-columns: 35px repeat(24, 1fr);
    gap: 4px;
    min-width: 650px;
}

.heatmap-day-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
}

.heatmap-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.heatmap-cell:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Heatmap Tooltip */
.heatmap-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(10, 10, 15, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.heatmap-cell:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* 3. Genre Tag Cloud */
.genre-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    transform-origin: center;
}

.genre-tag:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
    transform: scale(1.08) translateY(-2px);
}

@media (max-width: 580px) {
    .archetype-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .archetype-info {
        text-align: center;
    }
    .archetype-stats-summary {
        justify-content: center;
    }
}

/* ==========================================================================
   Quiz Lobby (Guess the Song / Web Quiz Lobby)
   ========================================================================== */

/* Quiz Tab Badge Glow */
.quiz-badge-glow {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #ff007a;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff007a, 0 0 20px #ff007a;
    animation: quizBadgePulse 1.5s infinite;
}

@keyframes quizBadgePulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Quiz Active Banner in Queue Tab */
.quiz-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224, 102, 255, 0.15), rgba(255, 0, 122, 0.15));
    box-shadow: 0 0 20px rgba(224, 102, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: bannerPulse 2s infinite alternate;
}

.quiz-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(224, 102, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.quiz-banner-icon {
    font-size: 2rem;
    animation: floatEmoji 3s ease-in-out infinite;
}

.quiz-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.quiz-banner-text strong {
    font-size: 1rem;
    color: #e066ff;
}

.quiz-banner-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quiz-banner-arrow {
    font-size: 1.2rem;
    color: #e066ff;
    transition: transform 0.2s;
}

.quiz-banner:hover .quiz-banner-arrow {
    transform: translateX(4px);
}

@keyframes bannerPulse {
    0% { border-color: rgba(224, 102, 255, 0.3); }
    100% { border-color: rgba(255, 0, 122, 0.6); }
}

/* Vinyl Disc Animation */
.quiz-vinyl-disc.spinning {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Winner Avatar & Crown */
.winner-avatar-wrapper {
    position: relative;
}

.winner-avatar-wrapper .crown-icon {
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    0% { transform: translateY(0) rotate(15deg); }
    100% { transform: translateY(-4px) rotate(18deg); }
}

/* Quiz Scoreboard Items */
.quiz-score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: background-color 0.2s;
}

.quiz-score-item:hover {
    background: rgba(255,255,255,0.06);
}

.quiz-score-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-score-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    object-fit: cover;
}

.quiz-score-name {
    font-weight: 500;
    color: white;
    font-size: 0.95rem;
}

.quiz-score-points {
    font-weight: 700;
    color: #e066ff;
    font-size: 1.05rem;
    background: rgba(224, 102, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(224, 102, 255, 0.2);
}

/* Quiz Tab Custom States & Responsive Styles */
#tab-btn-quiz {
    color: #e066ff;
}

#tab-btn-quiz:hover {
    color: #f1b2ff;
}

#tab-btn-quiz.active {
    color: white !important;
}

@media (max-width: 768px) {
    .modal-tabs {
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
    }
    .modal-tab-btn {
        font-size: 0.95rem !important;
        padding: 4px 8px !important;
    }
    .modal-tab-btn.active::after {
        bottom: -6px !important;
    }
}

/* Quiz Multiple Choice Options */
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.quiz-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-height: 48px;
}

.quiz-option-number {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e066ff;
    transition: background 0.3s;
}

.quiz-option-card.correct {
    background: rgba(0, 200, 81, 0.08) !important;
    border-color: #00c851 !important;
    color: white !important;
    box-shadow: 0 0 12px rgba(0, 200, 81, 0.15);
}

.quiz-option-card.correct .quiz-option-number {
    background: #00c851 !important;
    color: white !important;
}

.quiz-option-card.incorrect {
    background: rgba(255, 75, 43, 0.05) !important;
    border-color: rgba(255, 75, 43, 0.3) !important;
    opacity: 0.6;
}

.quiz-option-card.incorrect .quiz-option-number {
    background: rgba(255, 75, 43, 0.2) !important;
    color: #ff4b2b !important;
}

.quiz-option-card.clickable {
    cursor: pointer;
}

.quiz-option-card.clickable:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #e066ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 102, 255, 0.15);
}

.quiz-option-card.clickable:hover .quiz-option-number {
    background: #e066ff;
    color: white;
}

.quiz-option-card.submitted {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 576px) {
    .quiz-options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Equalizer Vertical Sliders styling */
.eq-sliders-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.eq-slider-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.eq-slider-vertical {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    writing-mode: vertical-lr;
    direction: rtl;
    cursor: pointer;
    margin: 10px 0;
}
.eq-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: background-color 0.2s, box-shadow 0.2s;
}
.eq-slider-vertical::-webkit-slider-thumb:hover {
    background: #ff007a;
    box-shadow: 0 0 12px #ff007a;
}
.eq-slider-vertical::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    border: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.eq-slider-vertical::-moz-range-thumb:hover {
    background: #ff007a;
    box-shadow: 0 0 12px #ff007a;
}

/* DSP Switch Toggles */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-toggle-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.slider-toggle-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-toggle input:checked + .slider-toggle-round {
    background-color: var(--accent);
    border-color: var(--accent);
}
.switch-toggle input:checked + .slider-toggle-round:before {
    transform: translateX(20px);
}

.glass-range {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.glass-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    transition: background-color 0.2s;
}
.glass-range::-webkit-slider-thumb:hover {
    background: #ff007a;
    box-shadow: 0 0 10px #ff007a;
}
.glass-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    border: none;
    transition: background-color 0.2s;
}
.glass-range::-moz-range-thumb:hover {
    background: #ff007a;
    box-shadow: 0 0 10px #ff007a;
}

/* Economy System Styles */
.economy-section {
    color: white;
}

.economy-profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.economy-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

/* Shop item cards - compact uniform grid */
.shop-item-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 0;
}
.shop-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Force uniform card heights */
#eco-subtab-shop > div:first-child > div:first-child > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Compact shop section spacing */
#eco-subtab-shop > div:first-child > .glass-panel:first-child {
    padding-bottom: 10px;
}

/* Reduce inventory section gap */
#eco-subtab-shop > div:first-child {
    gap: 15px;
}

.inventory-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: 0.2s;
}
.inventory-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.eco-leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: transform 0.2s;
}
.eco-leaderboard-row:hover {
    transform: translateX(3px);
    background: rgba(255,255,255,0.04);
}

.eco-rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
}
.eco-rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #111;
}
.eco-rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #111;
}
.eco-rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #111;
}

/* Economy Subtabs styling */
.eco-subtab-btn {
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    outline: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.eco-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
}
.eco-subtab-btn.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(224, 102, 255, 0.2));
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 10px rgba(224, 102, 255, 0.2);
}

/* Slot Reels animations and layout */
.slot-reel {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.1);
}

.slot-reel-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: fit-content;
}

.slot-reel-emoji {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 70px;
    font-size: 2.8rem;
    user-select: none;
}

/* 3D Coinflip Coin styling */
.coin-3d {
    transform-style: preserve-3d;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255,255,255,0.2);
}

.coin-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.coin-back {
    transform: rotateY(180deg);
}

/* Coinflip buttons active side */
.coinflip-game-card .control-btn.active-side {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(88, 101, 242, 0.6)) !important;
    border-color: #5865f2 !important;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

/* Soft blinking/pulsing for Casino Cards */
.slots-game-card {
    transition: all 0.3s;
}
.slots-game-card:hover {
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.coinflip-game-card {
    transition: all 0.3s;
}
.coinflip-game-card:hover {
    border-color: rgba(88, 101, 242, 0.45) !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.1);
}

.wheel-game-card {
    transition: all 0.3s;
}
.wheel-game-card:hover {
    border-color: rgba(224, 102, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(224, 102, 255, 0.1);
}

/* Canvas wheel light glow */
#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 10px rgba(224,102,255,0.15);
}

/* Shake and Flash Animations for Casino games */
@keyframes casino-shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-3px, 1px); }
    20%, 40%, 60%, 80% { transform: translate(3px, -1px); }
}
.casino-card-shake {
    animation: casino-shake 0.5s ease-in-out;
}

@keyframes casino-flash {
    0%, 100% { filter: brightness(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.1); }
    50% { filter: brightness(1.3); box-shadow: 0 0 35px rgba(255, 215, 0, 0.6); }
}
.casino-card-flash {
    animation: casino-flash 0.5s ease-in-out 3;
}

/* ===== Keyboard Shortcuts Tooltip ===== */
.shortcuts-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation: fadeInTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    pointer-events: auto;
}

.shortcuts-tooltip h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts-tooltip .shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.85rem;
}

.shortcuts-tooltip .shortcut-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shortcuts-tooltip kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: 'Outfit', monospace;
    color: white;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

.shortcuts-tooltip .shortcut-desc {
    color: var(--text-secondary);
}

/* Player card LIVE pulse badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 68, 68, 0); }
}

/* Listener avatars stack on card */
.listeners-stack {
    display: flex;
    margin-top: 5px;
}

.listeners-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -8px;
    object-fit: cover;
    transition: transform 0.2s;
}

.listeners-stack img:first-child {
    margin-left: 0;
}

.listeners-stack img:hover {
    transform: scale(1.15);
    z-index: 1;
}

.listeners-stack .listeners-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* AI DJ Recommendations styling */
.recommendation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 200px;
    max-width: 250px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.recommendation-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.recommendation-info {
    flex: 1;
    min-width: 0;
}
.recommendation-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recommendation-artist {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.recommendation-add-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.recommendation-add-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Skeleton Loader Styles */
.recommendation-skeleton {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 200px;
    max-width: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.recommendation-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.6s infinite;
}

.skeleton-text {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 6px;
}

.skeleton-text.title {
    width: 120px;
}

.skeleton-text.artist {
    width: 80px;
    height: 8px;
    margin-bottom: 0;
}

.skeleton-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


.spinner-mini {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Sleep timer badge style */
.sleep-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 122, 0.1);
    border: 1px solid rgba(255, 0, 122, 0.3);
    border-radius: 12px;
    padding: 4px 10px;
    color: #ff007a;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.1);
}
.sleep-timer-cancel {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
}
.sleep-timer-cancel:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Mobile responsive enhancements */
.modal-pull-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: -25px auto 15px auto;
    display: none;
    cursor: grab;
}
.modal-pull-handle:active {
    cursor: grabbing;
}

@media (max-width: 600px) {
    .modal-pull-handle {
        display: block;
    }
    .modal-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 30px 20px 20px 20px !important;
        margin-bottom: 0 !important;
        animation: slideUpMobile 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
    }
    
    .modal-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 12px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .modal-tabs::-webkit-scrollbar {
        display: none; /* Safari & Chrome */
    }
    .modal-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* SVG Equalizer Waveforms */
@keyframes playWave {
    0%, 100% { height: 2px; y: 8px; }
    50% { height: 8px; y: 2px; }
}

.wv-bar {
    animation: playWave 1s ease-in-out infinite;
}

.wv-bar-1 { animation-delay: 0.1s; }
.wv-bar-2 { animation-delay: 0.4s; }
.wv-bar-3 { animation-delay: 0.2s; }

.waveform-svg .wv-bar {
    fill: #ff4444;
}

.bot-draggable-tag .waveform-svg .wv-bar {
    fill: #ffffff;
}

/* ===== Task 10: Button Micro-Animations ===== */
.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.4);
}

.btn-icon:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Task 5: Loop/Shuffle Active State ===== */
.btn-icon.mode-active {
    background: rgba(88, 101, 242, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent-glow);
}

/* ===== Task 6: Listener Avatar Tooltips ===== */
.listeners-stack img {
    position: relative;
}

.listeners-stack img[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Task 3: Modal Tab Fade Transitions ===== */
.modal-tab-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Task 2: WebSocket Status Indicator ===== */
.ws-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    vertical-align: middle;
}

.ws-status-dot.connected {
    background-color: #2ecc71;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.ws-status-dot.disconnected {
    background-color: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
    animation: wsPulse 1.5s ease-in-out infinite;
}

@keyframes wsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== User Search Results for Trades ===== */
#user-search-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#user-search-results::-webkit-scrollbar {
    width: 6px;
}

#user-search-results::-webkit-scrollbar-track {
    background: transparent;
}

#user-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#user-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ===== Notifications ===== */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.notification-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-item.unread {
    border-left: 3px solid var(--accent);
    background: rgba(88, 101, 242, 0.05);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-type.activity { background: rgba(156, 39, 176, 0.15); color: #e066ff; border: 1px solid rgba(156, 39, 176, 0.3); }
.notification-type.pause { background: rgba(255, 152, 0, 0.15); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }
.notification-type.resume { background: rgba(76, 175, 80, 0.15); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.notification-type.skip { background: rgba(255, 87, 34, 0.15); color: #ff5722; border: 1px solid rgba(255, 87, 34, 0.3); }
.notification-type.stop { background: rgba(244, 67, 54, 0.15); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }
.notification-type.volume { background: rgba(33, 150, 243, 0.15); color: #2196f3; border: 1px solid rgba(33, 150, 243, 0.3); }
.notification-type.seek { background: rgba(156, 39, 176, 0.15); color: #9c27b0; border: 1px solid rgba(156, 39, 176, 0.3); }
.notification-type.move { background: rgba(121, 85, 72, 0.15); color: #795548; border: 1px solid rgba(121, 85, 72, 0.3); }
.notification-type.shuffle { background: rgba(233, 30, 99, 0.15); color: #e91e63; border: 1px solid rgba(233, 30, 99, 0.3); }
.notification-type.karaoke { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.notification-type.memesound { background: rgba(3, 169, 244, 0.15); color: #03a9f4; border: 1px solid rgba(3, 169, 244, 0.3); }
.notification-type.tts { background: rgba(0, 188, 212, 0.15); color: #00bcd4; border: 1px solid rgba(0, 188, 212, 0.3); }

.notification-title {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.notification-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-actions button {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.notification-item.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

#user-search-results > div:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

#user-search-results img {
    transition: transform 0.2s ease;
}

#user-search-results > div:hover img {
    transform: scale(1.1);
}

/* User search input focus */
#trade-user-search:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* User search result item animations */
#user-search-results > div {
    transition: all 0.2s ease;
}

#user-search-results > div:active {
    transform: scale(0.98);
}

/* Trade dropdown option styling */
.trade-select option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}