/* ============================================================
   VEXO DASHBOARD - Modern Bento Design System
   ============================================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.25);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(139, 92, 246, 0.3);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.03) 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    /* Log Colors */
    --log-debug: #6b7280;
    --log-info: #3b82f6;
    --log-warning: #f59e0b;
    --log-error: #ef4444;

    /* Sizing */
    --sidebar-width: 240px;
    --topbar-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Gradient Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 100;
    gap: 1.5rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    min-width: var(--sidebar-width);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.nav-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Global Search */
.search-global {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 280px;
}

.search-global:hover,
.search-global:focus-within {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.search-global svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-global input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.search-global input::placeholder {
    color: var(--text-muted);
}

.search-global kbd {
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: inherit;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.notification-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
}

.notif-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.notif-clear {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--topbar-height);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--topbar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link:hover svg {
    opacity: 1;
}

.sidebar-link.active {
    background: var(--gradient-accent);
    color: white;
}

.sidebar-link.active svg {
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 1rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.75rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.offline {
    background: var(--error);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.status-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.status-latency {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    min-height: calc(100vh - var(--topbar-height));
    position: relative;
    width: 100%;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   BENTO GRID - Dashboard Layout
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1rem;
}

.bento-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition-normal);
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

/* Featured - Now Playing */
.bento-featured {
    grid-column: span 8;
    grid-row: span 2;
    background: var(--gradient-card);
    border-color: var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.np-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.np-idle-icon {
    opacity: 0.4;
}

.np-idle-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.np-idle-hint {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Now Playing - Active State */
.np-active {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.np-artwork {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
}

.np-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-info {
    flex: 1;
    min-width: 0;
}

.np-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.np-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

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

.np-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.np-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.np-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

/* Stats Cards */
.bento-stat {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.stat-icon-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* List Cards */
.bento-list {
    grid-column: span 5;
    grid-row: span 2;
}

.bento-users {
    grid-column: span 3;
    grid-row: span 2;
}

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bento-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.title-icon {
    font-size: 1rem;
}

.bento-action {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bento-action:hover {
    color: var(--accent-light);
}

/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.song-item:hover {
    background: var(--bg-card);
}

.song-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.song-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.user-item:hover {
    background: var(--bg-card);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* System Stats */
.bento-system {
    grid-column: span 4;
}

.system-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.system-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.system-stat-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.system-stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.cpu-fill {
    background: var(--gradient-purple);
}

.ram-fill {
    background: var(--gradient-blue);
}

.system-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.system-stat-label {
    color: var(--text-muted);
}

.system-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Insight Cards */
.bento-insight {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.insight-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.insight-value {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Helpful Users */
.bento-helpful {
    grid-column: span 4;
}

.helpful-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* List Empty State */
.list-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   PANEL LAYOUTS (Library, History, Users, Servers)
   ============================================================ */
.panel-header {
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.panel-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.65rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--border-hover);
}

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

/* Data Tables */
.data-table-wrap {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-card);
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem !important;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.user-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.user-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-card-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Servers Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.server-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.server-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.server-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.server-card-info {
    flex: 1;
    min-width: 0;
}

.server-card-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.server-card-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   LOGS TAB
   ============================================================ */
.logs-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-height) - 3rem);
    gap: 0;
}

.logs-level-bar {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    flex-shrink: 0;
}

.logs-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.logs-pill:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.logs-pill.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
}

.logs-pill.active[data-level="DEBUG"] {
    background: rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.4);
}

.logs-pill.active[data-level="INFO"] {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.logs-pill.active[data-level="WARNING"] {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.logs-pill.active[data-level="ERROR"] {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.logs-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-debug {
    background: var(--log-debug);
}

.dot-info {
    background: var(--log-info);
}

.dot-warning {
    background: var(--log-warning);
}

.dot-error {
    background: var(--log-error);
}

.logs-pill-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.logs-pill-label {
    font-weight: 500;
}

.logs-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.logs-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.logs-search-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.logs-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
}

.logs-search-input::placeholder {
    color: var(--text-muted);
}

.logs-toolbar-filters {
    display: flex;
    gap: 0.4rem;
}

.logs-select {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    min-width: 120px;
}

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

.logs-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.logs-toolbar-actions {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.logs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logs-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.logs-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--accent);
}

.logs-viewport {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 0.35rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    min-height: 0;
}

.logs-viewport::-webkit-scrollbar {
    width: 6px;
}

.logs-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.logs-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.logs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    min-height: 200px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.logs-empty svg {
    opacity: 0.4;
}

/* Log Entry */
.log-row {
    display: grid;
    grid-template-columns: 80px 18px auto;
    gap: 0 0.5rem;
    align-items: start;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background 0.1s;
    cursor: default;
}

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

.log-row+.log-row {
    margin-top: 1px;
}

.log-row.level-DEBUG {
    border-left-color: var(--log-debug);
}

.log-row.level-INFO {
    border-left-color: var(--log-info);
}

.log-row.level-WARNING {
    border-left-color: var(--log-warning);
}

.log-row.level-ERROR {
    border-left-color: var(--log-error);
}

.log-row.level-ERROR {
    background: rgba(239, 68, 68, 0.05);
}

.log-row.level-WARNING {
    background: rgba(245, 158, 11, 0.03);
}

.log-ts {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    padding-top: 1px;
    font-variant-numeric: tabular-nums;
}

.log-level-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.log-row.level-DEBUG .log-level-dot {
    background: var(--log-debug);
}

.log-row.level-INFO .log-level-dot {
    background: var(--log-info);
}

.log-row.level-WARNING .log-level-dot {
    background: var(--log-warning);
}

.log-row.level-ERROR .log-level-dot {
    background: var(--log-error);
}

.log-body {
    min-width: 0;
    overflow: hidden;
}

.log-category {
    display: inline-block;
    padding: 0 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.log-category-playback {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.log-category-voice {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.log-category-queue {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.log-category-discovery {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.log-category-api {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.log-category-database {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.log-category-system {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.log-category-user {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.log-category-preference {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.log-category-import {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.log-source {
    display: inline-block;
    padding: 0 0.4rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    margin-right: 0.4rem;
    vertical-align: middle;
}

.log-event {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.35rem;
}

.log-msg {
    color: var(--text-secondary);
    word-break: break-word;
}

.log-kv {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0.2rem;
    font-size: 0.74rem;
}

.log-kv-key {
    color: var(--text-muted);
}

.log-kv-eq {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 1px;
}

.log-kv-val {
    color: #a78bfa;
}

.log-detail {
    display: none;
    grid-column: 1 / -1;
    padding: 0.5rem 0.6rem 0.4rem 83px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 0.25rem;
}

.log-row.expanded .log-detail {
    display: block;
}

.log-detail-line {
    margin-bottom: 0.15rem;
}

.log-detail-label {
    display: inline-block;
    min-width: 60px;
    color: var(--text-muted);
    opacity: 0.7;
}

.log-detail-value {
    color: var(--text-secondary);
}

.log-row.log-hidden {
    display: none;
}

.logs-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.25rem 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.logs-statusbar-left,
.logs-statusbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logs-ws-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.logs-ws-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.logs-ws-dot.disconnected {
    background: var(--error);
    animation: none;
}

.logs-status-sep {
    opacity: 0.3;
}

/* ============================================================
   SETTINGS TAB
   ============================================================ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.settings-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-item-column {
    flex-direction: column;
    align-items: flex-start;
}

.setting-item:last-of-type {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-label {
    font-weight: 500;
}

.setting-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.setting-input {
    padding: 0.6rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    width: 100px;
}

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

.provider-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
}

.btn-secondary.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
}

.btn-secondary.unavailable {
    opacity: 0.6;
}

.status-card {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.status-label {
    color: var(--text-muted);
}

.status-value {
    font-weight: 600;
}

.status-ok {
    color: var(--success);
}

.status-warn {
    color: var(--warning);
}

.status-error {
    color: var(--error);
}

.status-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

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

.toggle input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

.range-input {
    width: 120px;
    accent-color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================================
   COMMAND PALETTE / SEARCH MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.command-palette {
    width: 100%;
    max-width: 560px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transform: scale(0.98) translateY(-10px);
    transition: var(--transition-normal);
}

.modal-overlay.open .command-palette {
    transform: scale(1) translateY(0);
}

.cp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cp-header svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.cp-header input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.cp-header input::placeholder {
    color: var(--text-muted);
}

.cp-header kbd {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cp-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cp-section {
    padding: 0.5rem 0;
}

.cp-section-title {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cp-item:hover {
    background: var(--bg-card);
}

.cp-icon {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1400px) {
    .bento-featured {
        grid-column: span 12;
    }

    .bento-stat {
        grid-column: span 3;
    }

    .bento-list {
        grid-column: span 6;
    }

    .bento-users {
        grid-column: span 6;
    }

    .bento-system {
        grid-column: span 6;
    }

    .bento-insight {
        grid-column: span 3;
    }

    .bento-helpful {
        grid-column: span 6;
    }

    .bento-chart {
        grid-column: span 12;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .bento-stat {
        grid-column: span 6;
    }

    .bento-list {
        grid-column: span 12;
    }

    .bento-users {
        grid-column: span 12;
    }

    .bento-system {
        grid-column: span 12;
    }

    .bento-insight {
        grid-column: span 4;
    }

    .bento-helpful {
        grid-column: span 12;
    }

    .search-global {
        min-width: 200px;
    }

    .search-global kbd {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .topbar-left {
        min-width: auto;
    }

    .logo-text {
        display: none;
    }

    .topbar-nav {
        display: none;
    }

    .search-global {
        min-width: 150px;
    }

    .main-content {
        padding: 1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bento-card {
        grid-column: span 1 !important;
    }

    .bento-stat {
        flex-direction: row;
        gap: 1rem;
    }

    .panel-toolbar {
        flex-direction: column;
    }

    .search-box {
        max-width: none;
    }

    .logs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-search-wrap {
        min-width: 100%;
    }

    .logs-toolbar-filters {
        flex-wrap: wrap;
    }

    .logs-toolbar-actions {
        margin-left: 0;
        justify-content: flex-end;
    }

    .logs-select {
        flex: 1;
        min-width: 0;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

/* ============================================================
   USER DETAIL MODAL
   ============================================================ */
.user-item-clickable {
    cursor: pointer;
}

.user-item-clickable:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.user-detail-panel {
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow-y: auto;
    position: relative;
    transform: scale(0.98) translateY(-10px);
    transition: var(--transition-normal);
}

.modal-overlay.open .user-detail-panel {
    transform: scale(1) translateY(0);
}

.user-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.user-detail-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.user-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-detail-content {
    padding: 1.75rem;
}

/* Header */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.user-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white;
}

.user-detail-identity {
    flex: 1;
    min-width: 0;
}

.user-detail-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.user-detail-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.user-detail-badges {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.ud-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ud-badge-banned {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.ud-badge-optout {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Stats Row */
.user-detail-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ud-stat {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ud-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ud-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Meta (timestamps) */
.user-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ud-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ud-meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ud-meta-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sections */
.user-detail-section {
    margin-bottom: 1.25rem;
}

.ud-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Preferences */
.ud-prefs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ud-pref-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ud-pref-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.ud-pref-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ud-pref-key {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-pref-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.ud-pref-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ud-pref-score {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Songs Lists */
.ud-songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
}

.ud-song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.ud-song-item:hover {
    background: var(--bg-card);
}

.ud-song-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ud-song-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-song-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ud-song-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.ud-reaction-badge {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Playlists */
.ud-playlists-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ud-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
}

.ud-playlist-item:hover {
    background: var(--bg-card);
}

.ud-playlist-platform {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ud-playlist-name {
    flex: 1;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-playlist-tracks {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Charts */
.bento-chart {
    grid-column: span 6;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 200px;
    width: 100%;
}