/* ===== LAYOUT - Sidebar, Panels, Grid Structure ===== */

/* ===== SIDEBAR NAVIGATION ===== */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100%;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-top: none;
    padding-top: 24px;
    margin: 0;
    z-index: 150;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-nav-header {
    padding: 0 20px 16px 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-block;
}

.side-nav-welcome {
    font-size: 0.9rem;
    color: #fff;
}

.side-nav-section {
    margin: 0 0 16px 0;
    padding: 0;
}

.side-nav-section-title {
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.side-nav-item:hover {
    background: rgba(16, 185, 129, 0.12);
    color: #fff;
}

.side-nav-item.active {
    background: rgba(16, 185, 129, 0.18);
    color: #fff;
}

/* Navigation badge for notifications/messages */
.nav-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(16, 185, 129, 0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0;
    margin-left: 8px;
    text-align: center;
    line-height: 16px;
    position: relative;
    z-index: 10;
}

.nav-badge.show {
    display: inline-block;
}

/* ===== COLLAPSIBLE (legacy) ===== */
.side-nav-collapsible {
    margin: 8px 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.side-nav-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px 8px;
    color: #10b981;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.side-nav-collapsible-header:hover {
    background: rgba(16, 185, 129, 0.1);
}

.side-nav-collapsible-header .collapsible-arrow {
    transition: transform 0.2s ease;
}

.side-nav-collapsible.expanded .collapsible-arrow {
    transform: rotate(180deg);
}

.side-nav-collapsible-content {
    display: none;
    padding-left: 8px;
}

.side-nav-collapsible.expanded .side-nav-collapsible-content {
    display: block;
}

.side-nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 28px;
    font-size: 0.85rem;
}

.side-nav-subitem svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.side-nav-logout {
    color: #ef4444;
}

.side-nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== SIDE NAV AUTH SECTION ===== */
.side-nav-auth {
    padding: 12px 20px;
}

.side-nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-nav-login-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.side-nav-login-btn svg {
    width: 18px;
    height: 18px;
}

.side-nav-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-nav-upload-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.side-nav-upload-btn svg {
    width: 18px;
    height: 18px;
}

.side-nav-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.side-nav-contact-btn:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-1px);
}

.side-nav-contact-btn svg {
    width: 18px;
    height: 18px;
}

/* Logged in user section */
.side-nav-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.side-nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.side-nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-nav-user-avatar svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.side-nav-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.side-nav-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav-logout-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.2s ease;
}

.side-nav-logout-btn:hover {
    color: #fff;
}

/* Donate button */
.side-nav-donate {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.side-nav-donate-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    color: #fff;
}

.side-nav-donate-btn img {
    flex-shrink: 0;
}

/* Sidebar mascot image */
.side-nav-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.side-nav-mascot img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* Dashboard header notification badge */
.dashboard-header-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    margin-left: auto;
    margin-right: 8px;
}

.dashboard-header-badge.show {
    display: inline-block;
}

.side-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 101;
}

.side-nav-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* ===== MAIN CONTAINER ===== */
.container {
    margin-left: 230px;
    min-height: 100vh;
    padding-bottom: 100px;
    background: #101010;
}

/* ===== HEADER ===== */
header {
    display: none;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
    display: none;
}

.filter-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #fff);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #fff);
}

.filter-panel select,
.filter-panel input {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.filter-panel select:focus,
.filter-panel input:focus {
    outline: none;
    border-color: var(--theme-color);
}

.filter-panel input::placeholder {
    color: var(--text-tertiary, #fff);
}

.header-banner {
    display: none;
    width: 1850px;
    height: 280px;
    background: #101010;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    margin-left: 550px;
    margin-top: -20px;
    overflow: hidden;
}

.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.header-top-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.header-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.header-search-row {
    flex: 0 1 300px;
    min-width: 150px;
}

.header-filters select,
.header-filters input {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.header-search-row input {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.header-filters select:focus,
.header-filters input:focus,
.header-search-row input:focus {
    outline: none;
    border-color: var(--theme-color);
}

/* ===== MAIN CONTENT AREA ===== */
.content-area {
    margin-left: 200px;
    padding: 28px 36px 100px 28px;
    background: #101010;
}

.tab-panel {
    display: none;
    height: 100%;
    background: #101010;
}

.tab-panel.active {
    display: block;
    position: relative;
    background: #101010;
}

/* Playing backdrop - blurred cover art behind cards */
.playing-backdrop {
    position: fixed;
    top: 0;
    left: 630px;
    right: 0;
    bottom: 90px;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.playing-backdrop.active {
    display: none;
}

/* ===== INSTRUMENT DISPLAY CONTAINER ===== */
.instrument-display {
    position: fixed;
    top: 0;
    bottom: 90px;
    left: 230px;
    z-index: 10;
    flex-direction: column;
    width: 400px;
    background: #101010;
    box-sizing: border-box;
    border-radius: 0;
    display: none;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

/* Show only the active tab's instrument display */
#presets-content.active #vst-display,
#samples-content.active #samples-display,
#midi-content.active #midi-display,
#projects-content.active #daw-display,
#originals-content.active #originals-display,
#lounge-content.active #lounge-display,
#profile-content.active #profile-display {
    display: flex;
}

.instrument-display-banner {
    display: none;
}

.instrument-display-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.instrument-display-banner img[src=""],
.instrument-display-banner img:not([src]) {
    display: none;
}

.instrument-display img#vst-display-img {
    display: none;
}

.panel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.panel-subtitle {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== ITEM GRIDS ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 410px);
    gap: 24px;
    margin-left: 272px;
    margin-top: 15px;
    justify-content: start;
    width: 1278px;
    min-width: 1278px;
    position: relative;
    z-index: 1;
}

/* ===== PRESETS BACKGROUND UPLOAD ===== */
.presets-bg-upload {
    display: none;
}

.presets-bg-upload:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--theme-color);
}

#presets-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* ===== CENTER PANEL ===== */
.center-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    transform: none;
    width: 400px;
    background: #101010;
    border-radius: 0;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 50;
    display: none;
    flex-direction: column;
    padding-bottom: 90px;
}

.center-panel-banner {
    display: none;
}

.center-panel-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ddd 0%, #ccc 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.center-panel-avatar svg {
    width: 70px;
    height: 70px;
    color: #fff;
}

.center-panel-avatar.has-image svg {
    display: none !important;
}

.center-panel-user-section {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: flex-start;
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

.center-panel-user-section::before {
    display: none;
}

/* Black glassmorphism overlay - disabled */
.center-panel-user-section::after {
    display: none;
}

.center-panel-user-section > * {
    position: relative;
    z-index: 1;
}

/* Info card buttons container */
.info-card-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
}

/* View Profile button */
.info-card-buttons .view-profile-btn {
    padding: 10px 24px;
    background: #000;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-card-buttons .view-profile-btn:hover {
    background: #222;
}

/* Follow button */
.info-card-buttons .follow-btn {
    padding: 10px 24px;
    background: #000;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-card-buttons .follow-btn:hover {
    background: #222;
}

.info-card-buttons .follow-btn.following {
    background: #ef4444;
}

.info-card-buttons .follow-btn.following:hover {
    background: #dc2626;
}

.center-panel-item-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 30px 20px 30px;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 220px;
}

.center-panel-item-section .center-panel-user-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.center-panel-item-art {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.center-panel-user-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.center-panel-user-row .center-panel-avatar {
    flex-shrink: 0;
}

.center-panel-user-row .center-panel-user-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    flex: 1;
}

.center-panel-username {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
}

.center-panel-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.center-panel-stats-horizontal {
    flex-direction: row;
    gap: 20px;
    margin-top: auto;
    padding-top: 16px;
}

.center-panel-stat {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.center-panel-stat strong {
    color: #fff;
    font-weight: 600;
}

.center-panel-description {
    font-size: 13px;
    color: #fff;
    line-height: 1.6;
    margin-top: 8px;
    padding: 0;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.center-panel-user-info .center-panel-description {
    margin-top: 8px;
}

.center-panel-description .description-label {
    color: #fff;
    font-weight: 500;
}

/* Info Card Layout */
.info-card {
    display: flex;
    gap: 16px;
    width: 100%;
    height: 100%;
    align-items: flex-start;
}

.info-card-left {
    flex-shrink: 0;
}

.info-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(145deg, #101010, #101010);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-card-avatar svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.info-card-avatar.has-image svg {
    display: none !important;
}

.info-card-cover {
    background-size: cover;
    background-position: center;
}

.info-card-tags {
    margin-top: 12px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-card-tags-label {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    padding-top: 4px;
}

.info-card-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.info-card-tags-more {
    font-size: 11px;
    color: rgba(16, 185, 129, 0.8);
    margin-left: 4px;
    white-space: nowrap;
}

.info-card-tag {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
}

.info-card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
}

.info-card-follow-btn {
    padding: 6px 14px;
    background: var(--theme-color, #10b981);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.info-card-follow-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.info-card-stats {
    position: absolute;
    left: 16px;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.info-stat {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.info-stat-num {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.info-card-bio {
    font-size: 12px;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.center-panel-actions {
    display: none;
}

.center-panel-action-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.center-panel-action-btn:first-child {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.center-panel-action-btn:first-child:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.center-panel-action-btn:last-child {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
}

.center-panel-action-btn:last-child:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

/* Item Metrics Panel */
.center-panel-metrics {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.metric-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--theme-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-btn:hover::before {
    opacity: 0.1;
}

.metric-btn:active {
    transform: translateY(0) scale(0.98);
}

.metric-btn .metric-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary, #fff);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.metric-btn:hover .metric-icon {
    color: var(--theme-color);
}

.metric-btn.active {
    background: rgba(var(--theme-color-rgb, 232, 232, 232), 0.15);
    border-color: var(--theme-color);
}

.metric-btn.active .metric-icon {
    fill: var(--theme-color);
    stroke: var(--theme-color);
    color: var(--theme-color);
}

.metric-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #fff);
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

.metric-btn:hover .metric-count {
    color: var(--text-primary);
}

.metric-btn.active .metric-count {
    color: var(--theme-color);
}

/* Now Playing Section - Modern Design */
.center-panel-now-playing {
    display: none;
}

.center-panel-now-playing-cover {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.center-panel-now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-panel-now-playing-cover svg {
    width: 28px;
    height: 28px;
    fill: #101010;
}

.center-panel-now-playing-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.center-panel-now-playing-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--theme-color, #10b981);
    text-transform: uppercase;
}

.center-panel-now-playing-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.center-panel-now-playing-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.center-panel-now-playing-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.center-panel-now-playing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-panel-now-playing-avatar svg {
    width: 12px;
    height: 12px;
    fill: #666;
}

.center-panel-now-playing-username {
    font-size: 12px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.center-panel-now-playing-description {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    margin-top: 4px;
    display: none;
}

.center-panel-now-playing-description:not(:empty) {
    display: block;
}

/* Hide center-panel and presets bg button when profile is active */
body.profile-active .center-panel,
body.profile-active .presets-bg-upload {
    display: none;
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 10px;
    margin-left: 357px;
    width: 1082px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.pagination-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-page {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover:not(.active) {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.5);
}

.pagination-page.active {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
    color: #fff;
}

.pagination-ellipsis {
    color: #fff;
    padding: 0 4px;
    font-size: 14px;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.per-page-select {
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.2s ease;
}

.per-page-select:hover {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.per-page-select option {
    background: #101010;
    color: #fff;
}

.per-page-label {
    color: #fff;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .side-nav-toggle {
        display: flex;
    }

    .container {
        left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-top-row {
        flex-wrap: wrap;
        width: 100%;
    }

    .header-search-row {
        width: 100%;
    }

    .header-filters {
        flex-wrap: wrap;
    }
}

/* ===== JUNKIES PAGE (User Directory) ===== */
.junkies-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-left: -95px;
}

/* Alphabet Filter */
.junkies-alphabet-filter {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.alphabet-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

.alphabet-btn:hover {
    color: #fff;
    background: rgba(16, 185, 129, 0.1);
}

.alphabet-btn.active {
    color: #fff;
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Users Grid */
.junkies-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    gap: 12px;
    justify-content: center;
}

/* User Card */
.junkie-card {
    width: 220px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.junkie-card:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.junkie-avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.junkie-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.junkie-avatar svg {
    width: 60px;
    height: 60px;
    color: #fff;
}

.junkie-username {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.junkie-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.junkie-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #fff;
}

.junkie-stat svg {
    width: 12px;
    height: 12px;
}

.junkie-stat-value {
    color: #fff;
}

/* Pagination */
.junkies-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.junkies-pagination .pagination-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.junkies-pagination .pagination-btn:hover {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.junkies-pagination .pagination-btn.active {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
    color: #fff;
}

.junkies-pagination .pagination-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
    cursor: not-allowed;
}

.junkies-pagination .pagination-ellipsis {
    color: #fff;
    padding: 0 4px;
}

