/* ============================================
   AL FARRIZI MUSIC BOT - DASHBOARD STYLES
   Version: 4.25.0 - Updated Form Design
   ============================================ */

/* ============================================
   CSS VARIABLES & THEMES
   ============================================ */
:root {
    /* Background Image */
    --bg-image: url('https://i.ibb.co.com/DDT24Fzk/140878791-p0.jpg');
    --bg-image-opacity: 0.5;
    --bg-overlay-opacity: 0.85;

    /* Colors - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.8);
    --bg-card-hover: rgba(35, 35, 50, 0.9);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    /* Accent Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    --success: #10b981;
    --success-light: #34d399;
    --success-glow: rgba(16, 185, 129, 0.3);

    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-glow: rgba(245, 158, 11, 0.3);

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-glow: rgba(239, 68, 68, 0.3);

    --info: #3b82f6;
    --info-light: #60a5fa;
    --info-glow: rgba(59, 130, 246, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 37, 0.9) 0%, rgba(18, 18, 26, 0.9) 100%);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.12);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur-amount: 20px;

    /* Sizing */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 60px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeaec;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(245, 245, 247, 0.95);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);

    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 247, 0.9) 100%);
}

/* ============================================
   LOGO ICON WITH IMAGE
   ============================================ */
.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gradient-primary);
    box-shadow: 0 0 25px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon img {
    transform: scale(1.1);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow);
}

.sidebar.collapsed .logo-icon {
    width: 44px;
    height: 44px;
}

/* ============================================
   MOBILE LOGO WITH IMAGE
   ============================================ */
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.mobile-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: pulse 2s ease-in-out infinite;
}

.mobile-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================
   LOADING STATE FOR IMAGES
   ============================================ */
.logo-icon img,
.mobile-logo img {
    background: var(--bg-tertiary);
}

.logo-icon img[src=""],
.logo-icon img:not([src]),
.mobile-logo img[src=""],
.mobile-logo img:not([src]) {
    display: none;
}

.logo-icon img[src=""]:after,
.mobile-logo img[src=""]:after {
    content: '🎵';
    font-size: 24px;
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */
body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('https://i.ibb.co.com/DDT24Fzk/140878791-p0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.8;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(10, 10, 15, 0.75) 0%,
            rgba(18, 18, 26, 0.70) 50%,
            rgba(10, 10, 15, 0.80) 100%);
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] body::after {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(245, 245, 247, 0.80) 0%,
            rgba(255, 255, 255, 0.75) 50%,
            rgba(245, 245, 247, 0.85) 100%);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

ul {
    list-style: none;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(45deg);
    }

    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

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

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

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

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition-normal), transform var(--transition-normal);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .version-info {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

/* Sidebar Header */
.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    padding: 24px 12px;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    transition: opacity var(--transition-normal), width var(--transition-normal);
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Mobile Close Button */
.sidebar-close-mobile {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-close-mobile:hover {
    background: var(--danger);
    color: white;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-fast);
}

.nav-item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.nav-item a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item a:hover::after {
    opacity: 0.1;
}

.nav-item.active a {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.nav-item.active a::before {
    height: 60%;
}

.nav-item a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-item a:hover i {
    transform: scale(1.2);
}

.nav-item a span {
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

/* Nav Divider */
.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 16px;
}

.sidebar.collapsed .nav-divider {
    margin: 16px 8px;
}

/* Special Nav Items */
.special-nav-item a {
    background: var(--bg-tertiary);
    justify-content: center;
    text-align: center;
}

.special-nav-item a:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateX(0) !important;
}

.special-nav-item a:hover::after {
    opacity: 0 !important;
}

.special-nav-item a:hover i {
    transform: scale(1.1) !important;
}

/* Collapse Nav Item */
.collapse-nav-item a i {
    transition: transform var(--transition-normal);
}

.sidebar.collapsed .collapse-nav-item a i {
    transform: rotate(180deg);
}

.sidebar.collapsed .special-nav-item a {
    padding: 14px;
}

.sidebar.collapsed .special-nav-item a span {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer {
    padding: 16px 12px;
}

.version-badge {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.version-badge:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   MOBILE HEADER & SIDEBAR OVERLAY
   ============================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.mobile-menu-btn,
.theme-toggle-mobile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover,
.theme-toggle-mobile:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.mobile-menu-btn:active,
.theme-toggle-mobile:active {
    transform: scale(0.95);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 32px 40px;
    transition: margin-left var(--transition-normal);
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Page Sections */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-section h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p,
.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.page-header>div h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-header>div h1 i {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.status-indicator:hover {
    border-color: var(--success);
    box-shadow: 0 0 20px var(--success-glow);
}

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

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

.status-indicator.offline {
    border-color: var(--danger);
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.last-updated i {
    font-size: 12px;
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

.last-updated:hover i {
    animation-play-state: running;
}

/* ============================================
   ACTION BUTTONS (Invite & Vote)
   ============================================ */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height var(--transition-normal);
}

.action-btn.invite-btn::before {
    background: var(--gradient-primary);
}

.action-btn.vote-btn::before {
    background: var(--gradient-danger);
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.action-btn:hover::before {
    height: 100%;
    opacity: 0.1;
}

.action-btn-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.action-btn:hover .action-btn-icon {
    transform: scale(1.1) rotate(-5deg);
}

.invite-btn .action-btn-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.vote-btn .action-btn-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.action-btn-content {
    flex: 1;
    min-width: 0;
}

.action-btn-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-btn-desc {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.action-btn-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.action-btn:hover .action-btn-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================================
   STATUS CARDS
   ============================================ */
.status-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.status-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.status-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-lg);
}

.status-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform var(--transition-normal);
}

.status-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.card-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

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

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

.card-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.card-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.card-content {
    text-align: center;
}

.card-content h3 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content .card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary);
}

.badge {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.badge:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   QUICK STATS
   ============================================ */
.quick-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-md);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-header i {
    color: var(--primary);
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.stat-card:hover .stat-header i {
    transform: scale(1.2);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.stat-bar.success .stat-bar-fill {
    background: var(--gradient-success);
}

.stat-bar.warning .stat-bar-fill {
    background: var(--gradient-warning);
}

.stat-bar.info .stat-bar-fill {
    background: var(--gradient-info);
}

/* ============================================
/* ============================================
   NOW PLAYING SECTION - FIXED WIDTH, ALIGN LEFT
   Ukuran TETAP, posisi di KIRI
   ============================================ */
.now-playing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* CHANGED: dari center ke flex-start (kiri) */
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

/* Empty State */
.empty-state {
    flex: 1 1 100%;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--gradient-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

.empty-state p {
    font-size: 16px;
}

/* Now Playing Card - FIXED WIDTH, ALIGN LEFT */
.now-playing-card {
    /* FIXED WIDTH */
    flex: 0 0 400px;
    /* tidak grow, tidak shrink, fixed 400px */
    min-width: 340px;
    max-width: 400px;

    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
    overflow: hidden;
    box-sizing: border-box;
}

.now-playing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Header */
.np-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Artwork - Fixed size */
.np-artwork {
    width: 90px;
    height: 90px;
    min-width: 90px;
    max-width: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.np-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.now-playing-card:hover .np-artwork img {
    transform: scale(1.1);
}

.np-artwork .np-playing-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 10px var(--success-glow);
}

/* Info - Flexible with overflow handling */
.np-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.np-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.np-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.np-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    max-width: fit-content;
    flex-shrink: 0;
}

.np-source:hover {
    background: var(--primary);
    color: white;
}

/* Progress */
.np-progress {
    margin-bottom: 16px;
    width: 100%;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
}

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

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.np-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    gap: 12px;
    flex-wrap: wrap;
}

.np-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.np-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.np-stat i {
    font-size: 12px;
    color: var(--primary);
}

.np-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.np-status.connected {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.np-status.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ============================================
   NOW PLAYING - TABLET & MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .now-playing-container {
        justify-content: center;
        /* Mobile tetap center */
        gap: 16px;
    }

    .now-playing-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .now-playing-container {
        gap: 14px;
    }

    .now-playing-card {
        padding: 16px;
    }

    .np-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .np-artwork {
        width: 70px;
        height: 70px;
        min-width: 70px;
        max-width: 70px;
        border-radius: 10px;
    }

    .np-artwork .np-playing-indicator {
        width: 24px;
        height: 24px;
        font-size: 8px;
        bottom: 4px;
        right: 4px;
    }

    .np-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .np-artist {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .np-source {
        font-size: 11px;
        padding: 4px 10px;
    }

    .np-progress {
        margin-bottom: 12px;
    }

    .progress-bar {
        height: 5px;
        margin-bottom: 8px;
    }

    .progress-fill::after {
        width: 10px;
        height: 10px;
    }

    .progress-time {
        font-size: 11px;
    }

    .np-footer {
        padding-top: 12px;
        gap: 10px;
    }

    .np-stats {
        gap: 12px;
    }

    .np-stat {
        font-size: 12px;
    }

    .np-stat i {
        font-size: 10px;
    }

    .np-status {
        font-size: 11px;
        padding: 4px 10px;
    }

    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .now-playing-container {
        gap: 12px;
    }

    .now-playing-card {
        padding: 14px;
    }

    .np-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .np-artwork {
        width: 60px;
        height: 60px;
        min-width: 60px;
        max-width: 60px;
        border-radius: 8px;
    }

    .np-artwork .np-playing-indicator {
        width: 20px;
        height: 20px;
        font-size: 7px;
        bottom: 3px;
        right: 3px;
    }

    .np-title {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .np-artist {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .np-source {
        font-size: 10px;
        padding: 3px 8px;
    }

    .np-progress {
        margin-bottom: 10px;
    }

    .progress-bar {
        height: 4px;
        margin-bottom: 6px;
    }

    .progress-fill::after {
        width: 8px;
        height: 8px;
    }

    .progress-time {
        font-size: 10px;
    }

    .np-footer {
        padding-top: 10px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .np-stats {
        justify-content: center;
        gap: 14px;
    }

    .np-stat {
        font-size: 11px;
    }

    .np-status {
        justify-content: center;
        font-size: 10px;
        padding: 4px 8px;
    }

    .empty-state {
        padding: 50px 16px;
    }

    .empty-state i {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .now-playing-card {
        padding: 12px;
    }

    .np-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .np-artwork {
        width: 54px;
        height: 54px;
        min-width: 54px;
        max-width: 54px;
    }

    .np-artwork .np-playing-indicator {
        width: 18px;
        height: 18px;
        font-size: 6px;
        bottom: 2px;
        right: 2px;
    }

    .np-title {
        font-size: 13px;
    }

    .np-artist {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .np-source {
        font-size: 9px;
        padding: 2px 6px;
    }

    .progress-bar {
        height: 3px;
        margin-bottom: 5px;
    }

    .progress-fill::after {
        width: 6px;
        height: 6px;
    }

    .progress-time {
        font-size: 9px;
    }

    .np-footer {
        padding-top: 8px;
        gap: 6px;
    }

    .np-stats {
        gap: 10px;
    }

    .np-stat {
        font-size: 10px;
    }

    .np-stat i {
        font-size: 9px;
    }

    .np-status {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ============================================
   COMMANDS PAGE
   ============================================ */
.commands-search {
    position: relative;
    margin-bottom: 28px;
    max-width: 500px;
}

.commands-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.commands-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
}

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

.commands-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.commands-search input:focus+i,
.commands-search:focus-within i {
    color: var(--primary);
}

.commands-container {
    display: grid;
    gap: 24px;
}

.command-category {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.command-category:hover {
    border-color: var(--border-color-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    color: var(--primary);
    font-size: 20px;
}

.category-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.command-list {
    padding: 12px;
}

.command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    gap: 16px;
}

.command-item:hover {
    background: var(--glass-bg);
    transform: translateX(4px);
}

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

.command-info code {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
    font-family: 'Fira Code', 'Monaco', monospace;
}

.command-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.copy-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.copy-btn.copied {
    background: var(--success);
    color: white;
}

/* ============================================
   STATS PAGE
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stats-panel {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stats-panel:hover {
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-md);
}

.stats-panel.full-width {
    grid-column: 1 / -1;
    margin-top: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    color: var(--primary);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

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

.panel-content {
    padding: 24px;
}

.chart-container {
    height: 200px;
    margin-bottom: 24px;
    position: relative;
}

.chart-container.large {
    height: 280px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.stats-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.stat-detail {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-detail:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.stat-detail:hover .label,
.stat-detail:hover .value {
    color: white;
}

.stat-detail .label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-detail .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   SOURCES PAGE
   ============================================ */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.source-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all var(--transition-normal);
}

.source-card:hover {
    transform: translateY(-4px);
    border-color: var(--success);
    box-shadow: 0 0 25px var(--success-glow);
}

.source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.source-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.source-card:hover .source-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Source Icon Colors */
.source-icon.youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.source-icon.spotify {
    background: rgba(30, 215, 96, 0.15);
    color: #1ed760;
}

.source-icon.soundcloud {
    background: rgba(255, 136, 0, 0.15);
    color: #ff8800;
}

.source-icon.twitch {
    background: rgba(145, 70, 255, 0.15);
    color: #9146ff;
}

.source-icon.bandcamp {
    background: rgba(99, 154, 169, 0.15);
    color: #639aa9;
}

.source-icon.vimeo {
    background: rgba(26, 183, 234, 0.15);
    color: #1ab7ea;
}

.source-icon.deezer {
    background: rgba(255, 0, 146, 0.15);
    color: #ff0092;
}

.source-icon.applemusic {
    background: rgba(252, 60, 68, 0.15);
    color: #fc3c44;
}

.source-icon.tidal {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.source-icon.amazon {
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
}

.source-icon.instagram {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(253, 29, 29, 0.15));
    color: #e1306c;
}

.source-icon.twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

.source-icon.reddit {
    background: rgba(255, 69, 0, 0.15);
    color: #ff4500;
}

.source-icon.telegram {
    background: rgba(38, 166, 217, 0.15);
    color: #26a5e4;
}

.source-icon.mixcloud {
    background: rgba(82, 79, 204, 0.15);
    color: #524fcc;
}

.source-icon.http {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.source-icon.default {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.source-icon.jiosaavn {
    background: rgba(45, 185, 105, 0.15);
    color: #2db969;
}

.source-icon.yandex {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.source-icon.flowery {
    background: rgba(255, 105, 180, 0.15);
    color: #ff69b4;
}

.source-name {
    font-size: 17px;
    font-weight: 600;
}

.source-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--success-glow);
    transition: all var(--transition-normal);
}

.source-card:hover .source-check {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--success-glow);
}

.source-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.source-status {
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.source-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ============================================
   FILTERS PAGE
   ============================================ */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.filter-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all var(--transition-normal);
}

.filter-card:hover {
    transform: translateY(-4px);
    border-color: var(--success);
    box-shadow: 0 0 25px var(--success-glow);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.filter-name {
    font-size: 17px;
    font-weight: 600;
}

.filter-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--success-glow);
    transition: all var(--transition-normal);
}

.filter-card:hover .filter-check {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--success-glow);
}

.filter-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 15px;
}

/* ============================================
   TERMS PAGE
   ============================================ */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.terms-content {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px;
    max-height: 75vh;
    overflow-y: auto;
}

.terms-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.terms-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.terms-section ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
}

.terms-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
}

.terms-section a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.terms-section a:hover {
    color: var(--primary);
}

.terms-footer {
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    margin-top: 36px;
}

.terms-footer p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.terms-footer .terms-note {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.support-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.support-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.support-card:hover::before {
    opacity: 0.05;
}

.support-card>* {
    position: relative;
    z-index: 1;
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(-5deg);
}

.support-icon.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
}

.support-icon.docs {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.support-icon.github {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.support-icon.status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.support-icon.email {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.support-icon.twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

.support-content {
    flex: 1;
    min-width: 0;
}

.support-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.support-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.support-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: 14px;
}

.support-card:hover .support-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
}

.faq-section>h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-section>h2 i {
    color: var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-color-light);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.faq-question {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: all var(--transition-fast);
    gap: 16px;
}

.faq-question:hover {
    background: var(--glass-bg);
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

.faq-question i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--primary);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    font-size: 12px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   FEEDBACK PAGE
   ============================================ */
.feedback-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.feedback-form {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group:last-of-type {
    margin-bottom: 32px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--primary);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-secondary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b7b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-label input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
    animation: bounceIn 0.4s ease;
}

.checkbox-label input:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 18px 28px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--primary-glow);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    transition: transform var(--transition-fast);
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* Feedback Info Cards */
.feedback-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-md);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 18px;
    display: block;
    transition: transform var(--transition-normal);
}

.info-card:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 420px;
    pointer-events: auto;
}

.toast.hide {
    animation: slideOut 0.3s ease forwards;
}

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

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

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

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--bg-card) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

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

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

.text-danger {
    color: var(--danger) !important;
}

.text-info {
    color: var(--info) !important;
}

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

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: var(--gradient-success) !important;
}

.bg-warning {
    background: var(--gradient-warning) !important;
}

.bg-danger {
    background: var(--gradient-danger) !important;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 8px !important;
}

.mt-2 {
    margin-top: 16px !important;
}

.mt-3 {
    margin-top: 24px !important;
}

.mt-4 {
    margin-top: 32px !important;
}

.mt-5 {
    margin-top: 48px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 8px !important;
}

.mb-2 {
    margin-bottom: 16px !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mb-4 {
    margin-bottom: 32px !important;
}

.mb-5 {
    margin-bottom: 48px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 8px !important;
}

.p-2 {
    padding: 16px !important;
}

.p-3 {
    padding: 24px !important;
}

.p-4 {
    padding: 32px !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.rounded-sm {
    border-radius: var(--border-radius-sm) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-full {
    border-radius: 50% !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-glow {
    box-shadow: var(--shadow-glow) !important;
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.gap-1 {
    gap: 8px !important;
}

.gap-2 {
    gap: 16px !important;
}

.gap-3 {
    gap: 24px !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-auto {
    overflow: auto !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.select-none {
    user-select: none !important;
}

.transition {
    transition: all var(--transition-normal) !important;
}

.transition-fast {
    transition: all var(--transition-fast) !important;
}

/* ============================================
   MOBILE & RESPONSIVE STYLES
   ============================================ */

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    gap: 12px;
}

.mobile-menu-btn,
.theme-toggle-mobile {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mobile-menu-btn:hover,
.theme-toggle-mobile:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.mobile-menu-btn:active,
.theme-toggle-mobile:active {
    transform: scale(0.95);
}

/* Mobile Logo */
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.mobile-logo img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px var(--primary-glow);
    flex-shrink: 0;
}

.mobile-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button Mobile */
.sidebar-close-mobile {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: auto;
}

.sidebar-close-mobile:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: scale(1.05);
}

.sidebar-close-mobile:active {
    transform: scale(0.95);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (1400px) */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-panel.full-width {
        margin-top: 24px;
    }
}

/* Desktop to Tablet (1200px) */
@media (max-width: 1200px) {
    .feedback-container {
        grid-template-columns: 1fr;
    }

    .feedback-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .info-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 240px;
    }
}

/* Tablet & Below (992px) */
@media (max-width: 992px) {

    /* Show mobile elements */
    .mobile-header {
        display: flex;
    }

    .sidebar-close-mobile {
        display: flex;
    }

    /* Hide collapse menu on mobile */
    .collapse-nav-item {
        display: none;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Override collapsed state on mobile */
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .version-info {
        opacity: 1;
        visibility: visible;
        width: auto;
    }

    .sidebar.collapsed .sidebar-header {
        padding: 24px 20px;
        justify-content: space-between;
    }

    .sidebar.collapsed .special-nav-item a {
        padding: 14px 16px;
        justify-content: flex-start;
    }

    .sidebar.collapsed .special-nav-item a span {
        display: inline;
    }

    .sidebar.collapsed .nav-divider {
        margin: 16px 16px;
    }

    .sidebar.collapsed .sidebar-footer {
        padding: 16px 20px;
    }

    /* Main content */
    .main-content {
        margin-left: 0;
        padding: 80px 20px 32px;
    }

    .sidebar.collapsed~.main-content {
        margin-left: 0;
    }

    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .welcome-section {
        text-align: center;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .page-header>div h1 {
        font-size: 24px;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Action buttons */
    .action-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .action-btn {
        min-width: 100%;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Status cards */
    .status-cards {
        gap: 16px;
    }

    .status-card {
        min-width: 160px;
        max-width: none;
        flex: 1 1 calc(50% - 8px);
    }

    /* Quick stats */
    .quick-stats {
        gap: 16px;
    }

    .stat-card {
        min-width: 100%;
        max-width: 100%;
    }

    /* Now playing - FIXED FOR MOBILE */
    .now-playing-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .now-playing-card {
        padding: 20px;
    }

    /* Sources & Filters grid */
    .sources-grid,
    .filters-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-panel.full-width {
        margin-top: 20px;
    }

    /* Support grid */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Terms */
    .terms-content {
        padding: 32px;
        max-height: 70vh;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .main-content {
        padding: 76px 16px 24px;
    }

    /* Mobile header buttons */
    .mobile-menu-btn,
    .theme-toggle-mobile {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
        border-radius: 10px;
    }

    .mobile-logo img {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .mobile-logo span {
        font-size: 15px;
    }

    /* Sidebar close button */
    .sidebar-close-mobile {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
    }

    /* Welcome section */
    .welcome-section h1 {
        font-size: 22px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .page-header>div h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Status cards - 2 columns */
    .status-cards {
        gap: 12px;
    }

    .status-card {
        min-width: 140px;
        padding: 18px 16px;
        flex: 1 1 calc(50% - 6px);
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .card-content h3 {
        font-size: 11px;
    }

    .card-content .card-value {
        font-size: 20px;
    }

    /* Quick stats */
    .quick-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Now Playing - MOBILE OPTIMIZED */
    .now-playing-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .now-playing-card {
        padding: 16px;
    }

    .np-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .np-artwork {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 10px;
    }

    .np-artwork .np-playing-indicator {
        width: 24px;
        height: 24px;
        font-size: 8px;
        bottom: 4px;
        right: 4px;
    }

    .np-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .np-artist {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .np-source {
        font-size: 11px;
        padding: 4px 10px;
    }

    .np-progress {
        margin-bottom: 12px;
    }

    .progress-bar {
        height: 5px;
        margin-bottom: 8px;
    }

    .progress-fill::after {
        width: 10px;
        height: 10px;
    }

    .progress-time {
        font-size: 11px;
    }

    .np-footer {
        padding-top: 12px;
        gap: 10px;
    }

    .np-stats {
        gap: 12px;
    }

    .np-stat {
        font-size: 12px;
    }

    .np-stat i {
        font-size: 10px;
    }

    .np-status {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Sources & Filters */
    .sources-grid,
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .source-card,
    .filter-card {
        padding: 20px;
    }

    .source-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .source-name,
    .filter-name {
        font-size: 16px;
    }

    .source-description,
    .filter-description {
        font-size: 13px;
    }

    .source-check,
    .filter-check {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .source-status {
        font-size: 12px;
    }

    /* Commands */
    .commands-search {
        max-width: 100%;
    }

    .commands-search input {
        padding: 14px 16px 14px 46px;
        font-size: 14px;
    }

    .category-header {
        padding: 16px 18px;
    }

    .category-header h3 {
        font-size: 15px;
    }

    .command-list {
        padding: 10px;
    }

    .command-item {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .command-info code {
        font-size: 13px;
        padding: 6px 12px;
    }

    .command-info p {
        font-size: 12px;
    }

    .copy-btn {
        width: 38px;
        height: 38px;
        align-self: flex-end;
    }

    /* Stats panel */
    .panel-header {
        padding: 16px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .panel-header h3 {
        font-size: 15px;
    }

    .panel-content {
        padding: 18px;
    }

    .chart-container {
        height: 180px;
    }

    .chart-container.large {
        height: 220px;
    }

    .stats-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-detail {
        padding: 12px 10px;
    }

    .stat-detail .label {
        font-size: 10px;
    }

    .stat-detail .value {
        font-size: 16px;
    }

    /* Support cards */
    .support-card {
        padding: 20px;
        gap: 16px;
    }

    .support-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }

    .support-content h3 {
        font-size: 16px;
    }

    .support-content p {
        font-size: 13px;
    }

    .support-arrow {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    /* FAQ */
    .faq-section>h2 {
        font-size: 20px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }

    .faq-question i {
        width: 32px;
        height: 32px;
    }

    .faq-answer p {
        padding: 0 18px 18px;
        font-size: 13px;
    }

    /* Terms */
    .terms-content {
        padding: 24px;
        max-height: 65vh;
    }

    .terms-section h2 {
        font-size: 17px;
    }

    .terms-section p,
    .terms-section ul li {
        font-size: 14px;
    }

    /* Feedback */
    .feedback-form {
        padding: 24px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .info-card {
        flex: 1 1 100%;
        padding: 24px 20px;
    }

    .info-card i {
        font-size: 36px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p {
        font-size: 13px;
    }

    /* Toast */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
        padding: 14px 16px;
        gap: 12px;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .toast-title {
        font-size: 14px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-close {
        width: 30px;
        height: 30px;
    }

    /* Action buttons */
    .action-btn {
        padding: 18px 20px;
        gap: 14px;
    }

    .action-btn-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }

    .action-btn-title {
        font-size: 16px;
    }

    .action-btn-desc {
        font-size: 12px;
    }

    /* Empty state */
    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* Small Mobile (576px) */
@media (max-width: 576px) {
    .main-content {
        padding: 72px 12px 20px;
    }

    .mobile-header {
        padding: 0 12px;
        height: 56px;
    }

    .mobile-menu-btn,
    .theme-toggle-mobile {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }

    .mobile-logo img {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .mobile-logo span {
        font-size: 14px;
    }

    /* Sidebar */
    .sidebar {
        width: 280px;
    }

    .sidebar-header {
        padding: 20px 16px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 11px;
    }

    .sidebar-close-mobile {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .sidebar-nav {
        padding: 12px 10px;
    }

    .nav-item a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .nav-item a i {
        font-size: 15px;
    }

    .sidebar-footer {
        padding: 14px 16px;
    }

    .version-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Welcome */
    .welcome-section h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    .welcome-section p {
        font-size: 13px;
    }

    .page-header>div h1 {
        font-size: 20px;
        flex-wrap: wrap;
    }

    /* Header actions */
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .status-indicator {
        justify-content: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    .last-updated {
        justify-content: center;
        font-size: 12px;
    }

    /* Status cards - stack on very small */
    .status-cards {
        flex-direction: column;
        gap: 10px;
    }

    .status-card {
        flex: none;
        width: 100%;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .status-card .card-content {
        text-align: left;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .card-content h3 {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .card-content .card-value {
        font-size: 18px;
    }

    /* Quick stats */
    .quick-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-value {
        font-size: 26px;
    }

    /* Now Playing - SMALL MOBILE OPTIMIZED */
    .now-playing-container {
        gap: 12px;
    }

    .now-playing-card {
        padding: 14px;
    }

    .np-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .np-artwork {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 8px;
    }

    .np-artwork .np-playing-indicator {
        width: 20px;
        height: 20px;
        font-size: 7px;
        bottom: 3px;
        right: 3px;
    }

    .np-title {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .np-artist {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .np-source {
        font-size: 10px;
        padding: 3px 8px;
    }

    .np-progress {
        margin-bottom: 10px;
    }

    .progress-bar {
        height: 4px;
        margin-bottom: 6px;
    }

    .progress-fill::after {
        width: 8px;
        height: 8px;
    }

    .progress-time {
        font-size: 10px;
    }

    .np-footer {
        padding-top: 10px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .np-stats {
        justify-content: center;
        gap: 14px;
    }

    .np-stat {
        font-size: 11px;
    }

    .np-status {
        justify-content: center;
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Sources & Filters */
    .source-card,
    .filter-card {
        padding: 18px;
    }

    .source-header,
    .filter-header {
        margin-bottom: 10px;
    }

    .source-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .source-name,
    .filter-name {
        font-size: 15px;
    }

    .source-description,
    .filter-description {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .source-check,
    .filter-check {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .source-status {
        font-size: 11px;
    }

    /* Action buttons */
    .action-btn {
        padding: 16px;
    }

    .action-btn-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .action-btn-title {
        font-size: 15px;
    }

    .action-btn-desc {
        font-size: 11px;
    }

    .action-btn-arrow {
        font-size: 12px;
    }

    /* Commands */
    .command-category {
        border-radius: 12px;
    }

    .category-header {
        padding: 14px 16px;
    }

    .category-header i {
        font-size: 16px;
    }

    .category-header h3 {
        font-size: 14px;
    }

    .command-list {
        padding: 8px;
    }

    .command-item {
        padding: 12px;
        border-radius: 8px;
    }

    .command-info code {
        font-size: 12px;
        padding: 5px 10px;
    }

    .command-info p {
        font-size: 11px;
    }

    .copy-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    /* Support cards */
    .support-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        gap: 14px;
    }

    .support-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .support-content h3 {
        font-size: 15px;
    }

    .support-content p {
        font-size: 12px;
    }

    .support-arrow {
        display: none;
    }

    /* Stats */
    .stats-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-detail {
        padding: 10px 8px;
    }

    .stat-detail .label {
        font-size: 9px;
    }

    .stat-detail .value {
        font-size: 14px;
    }

    /* FAQ */
    .faq-list {
        gap: 10px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 13px;
    }

    .faq-question i {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 12px;
    }

    /* Terms */
    .terms-content {
        padding: 20px;
        max-height: 60vh;
    }

    .terms-section {
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .terms-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .terms-section h2::before {
        width: 3px;
        height: 20px;
    }

    .terms-section p,
    .terms-section ul li {
        font-size: 13px;
        line-height: 1.7;
    }

    .terms-footer p {
        font-size: 12px;
    }

    /* Feedback */
    .feedback-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .checkbox-label {
        font-size: 12px;
        gap: 12px;
    }

    .checkmark {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    .info-card {
        padding: 20px 16px;
    }

    .info-card i {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .info-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .info-card p {
        font-size: 12px;
    }

    /* Toast */
    .toast-container {
        left: 8px;
        right: 8px;
        bottom: 12px;
    }

    .toast {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .toast-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-message {
        font-size: 11px;
    }

    .toast-close {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }

    /* Empty state */
    .empty-state {
        padding: 50px 16px;
    }

    .empty-state i {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }

    /* Loading state */
    .loading-state {
        padding: 50px 16px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }

    .loading-state p {
        font-size: 13px;
    }

    /* Badges */
    .badge {
        padding: 5px 12px;
        font-size: 11px;
    }

    .live-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Extra Small Mobile (400px) */
@media (max-width: 400px) {
    .main-content {
        padding: 68px 10px 16px;
    }

    .mobile-header {
        padding: 0 10px;
        height: 54px;
    }

    .mobile-menu-btn,
    .theme-toggle-mobile {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
        border-radius: 8px;
    }

    .mobile-logo img {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 8px;
    }

    .mobile-logo span {
        font-size: 13px;
    }

    /* Sidebar narrower */
    .sidebar {
        width: 260px;
    }

    .sidebar-header {
        padding: 16px 14px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .logo-text h1 {
        font-size: 15px;
    }

    .logo-text span {
        font-size: 10px;
    }

    .sidebar-close-mobile {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }

    .nav-item a {
        padding: 11px 12px;
        font-size: 13px;
        gap: 12px;
    }

    .nav-item a i {
        font-size: 14px;
        width: 18px;
    }

    /* Page header */
    .welcome-section h1 {
        font-size: 18px;
    }

    .page-header>div h1 {
        font-size: 18px;
    }

    .page-header>div h1 i {
        font-size: 18px;
    }

    /* Cards smaller padding */
    .status-card {
        padding: 14px;
        gap: 12px;
    }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 10px;
    }

    .card-content .card-value {
        font-size: 16px;
    }

    .card-content h3 {
        font-size: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Now Playing - EXTRA SMALL */
    .now-playing-card {
        padding: 12px;
    }

    .np-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .np-artwork {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 8px;
    }

    .np-artwork .np-playing-indicator {
        width: 18px;
        height: 18px;
        font-size: 6px;
        bottom: 2px;
        right: 2px;
    }

    .np-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .np-artist {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .np-source {
        font-size: 9px;
        padding: 2px 6px;
    }

    .np-progress {
        margin-bottom: 8px;
    }

    .progress-bar {
        height: 3px;
        margin-bottom: 5px;
    }

    .progress-fill::after {
        width: 6px;
        height: 6px;
    }

    .progress-time {
        font-size: 9px;
    }

    .np-footer {
        padding-top: 8px;
        gap: 6px;
    }

    .np-stats {
        gap: 10px;
    }

    .np-stat {
        font-size: 10px;
    }

    .np-stat i {
        font-size: 9px;
    }

    .np-status {
        font-size: 9px;
        padding: 3px 6px;
    }

    /* Sources & Filters */
    .source-card,
    .filter-card {
        padding: 16px;
    }

    .source-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 8px;
    }

    .source-name,
    .filter-name {
        font-size: 14px;
    }

    .source-description,
    .filter-description {
        font-size: 11px;
    }

    .source-check,
    .filter-check {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }

    /* Action buttons */
    .action-btn {
        padding: 14px;
        gap: 12px;
    }

    .action-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .action-btn-title {
        font-size: 14px;
    }

    .action-btn-desc {
        font-size: 10px;
    }

    /* Commands */
    .commands-search input {
        padding: 12px 14px 12px 42px;
        font-size: 13px;
    }

    .commands-search i {
        left: 14px;
        font-size: 14px;
    }

    /* Terms */
    .terms-content {
        padding: 16px;
    }

    .terms-section h2 {
        font-size: 15px;
    }

    .terms-section p,
    .terms-section ul li {
        font-size: 12px;
    }

    /* Feedback */
    .feedback-form {
        padding: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .nav-item a {
        min-height: 48px;
    }

    .mobile-menu-btn,
    .theme-toggle-mobile,
    .sidebar-close-mobile {
        min-height: 44px;
        min-width: 44px;
    }

    .copy-btn,
    .toast-close,
    .faq-question {
        min-height: 44px;
    }

    /* Disable hover effects on touch */
    .status-card:hover,
    .stat-card:hover,
    .source-card:hover,
    .filter-card:hover,
    .support-card:hover,
    .action-btn:hover,
    .now-playing-card:hover,
    .faq-item:hover {
        transform: none;
    }

    /* Active states for touch feedback */
    .status-card:active,
    .stat-card:active,
    .source-card:active,
    .filter-card:active,
    .support-card:active,
    .action-btn:active,
    .now-playing-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .nav-item a:active {
        background: rgba(99, 102, 241, 0.15);
    }

    .mobile-menu-btn:active,
    .theme-toggle-mobile:active,
    .sidebar-close-mobile:active {
        transform: scale(0.92);
    }

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

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-header {
        height: 50px;
    }

    .main-content {
        padding-top: 60px;
    }

    .sidebar {
        padding-top: 10px;
    }

    .sidebar-header {
        padding: 12px 16px;
    }

    .nav-item a {
        padding: 10px 14px;
    }

    .terms-content {
        max-height: 80vh;
    }
}

/* ============================================
   SAFE AREA INSETS (Notch devices)
   ============================================ */
@supports (padding: max(0px)) {
    .mobile-header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .main-content {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .sidebar {
        padding-left: env(safe-area-inset-left);
    }

    .toast-container {
        bottom: max(16px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .sidebar,
    .mobile-header,
    .toast-container,
    .action-buttons {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    body::before,
    body::after {
        display: none !important;
    }

    .status-card,
    .stat-card,
    .now-playing-card,
    .command-category,
    .source-card,
    .filter-card,
    .support-card,
    .terms-content,
    .feedback-form {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logo-icon,
    .empty-state i,
    .mobile-logo img,
    .status-dot,
    .live-badge .pulse,
    .np-playing-indicator,
    .source-status::before {
        animation: none !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --border-color-light: rgba(255, 255, 255, 0.5);
        --text-secondary: #c0c0d0;
        --text-muted: #909090;
    }

    [data-theme="light"] {
        --border-color: rgba(0, 0, 0, 0.3);
        --border-color-light: rgba(0, 0, 0, 0.5);
        --text-secondary: #3a3a4a;
        --text-muted: #5a5a6a;
    }
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}


/* ============================================
   FEEDBACK PAGE - ENHANCED STYLES
   ============================================ */

/* Form Header */
.form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
}

.form-header-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.form-header-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Required Badge */
.required-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Form Hint */
.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-hint i {
    font-size: 11px;
    color: var(--primary);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 16px 45px 16px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all var(--transition-fast);
}

.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-secondary);
}

.select-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.select-wrapper select:focus+.select-arrow {
    color: var(--primary);
    transform: translateY(-50%) rotate(180deg);
}

/* Textarea Footer */
.textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
}

/* Character Counter */
.char-counter {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.char-counter.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.char-counter.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px !important;
}

/* Wrapper label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1.5;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Sembunyikan checkbox native tapi tetap accessible */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Kotak custom */
.custom-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1px;
    background: var(--bg-secondary);
    position: relative;
}

/* Centang via CSS ::after (fallback jika tidak ada <i>) */
.custom-checkbox::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
    margin-top: -2px;
}

/* Icon centang <i> jika ada */
.custom-checkbox i {
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.15s ease;
    line-height: 1;
    position: absolute;
}

.checkbox-label:hover .custom-checkbox {
    border-color: var(--primary);
}

/* Saat checked: kotak berwarna & centang muncul */
.checkbox-label input[type="checkbox"]:checked+.custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    animation: checkPop 0.3s ease forwards;
}

/* Tampilkan centang ::after saat checked */
.checkbox-label input[type="checkbox"]:checked+.custom-checkbox::after {
    opacity: 1;
}

/* Tampilkan icon <i> saat checked (jika ada) */
.checkbox-label input[type="checkbox"]:checked+.custom-checkbox i {
    opacity: 1;
}

/* Animasi checkbox */
@keyframes checkPop {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 0 6px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Teks checkbox */
.checkbox-text {
    flex: 1;
    line-height: 1.6;
}

/* Badge "required" di dalam text tetap rapi */
.checkbox-text .required-badge {
    margin-left: 6px;
}

/* Submit Button Enhanced */
.submit-btn {
    width: 100%;
    padding: 18px 28px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--primary-glow);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover::before {
    left: -100%;
}

.btn-content,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-content {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.submit-btn i {
    transition: transform var(--transition-fast);
}

.submit-btn:hover .btn-content i {
    transform: translateX(4px);
}

/* Form Footer / Privacy Notice */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.form-footer i {
    color: var(--success);
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   INFO CARDS - ENHANCED VARIANTS
   ============================================ */

/* Info Card Base Update */
.info-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-md);
}

/* Info Card Icon */
.info-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform var(--transition-normal);
}

.info-card-icon i {
    font-size: 20px !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    line-height: 1;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Info Card Content */
.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.info-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Suggestion Card */
.info-card.suggestion::before {
    background: var(--warning);
}

.info-card.suggestion .info-card-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.info-card.suggestion:hover {
    border-color: var(--warning);
    box-shadow: 0 8px 30px var(--warning-glow);
}

/* Bug Card */
.info-card.bug::before {
    background: var(--danger);
}

.info-card.bug .info-card-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.info-card.bug:hover {
    border-color: var(--danger);
    box-shadow: 0 8px 30px var(--danger-glow);
}

/* Praise Card */
.info-card.praise::before {
    background: var(--success);
}

.info-card.praise .info-card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.info-card.praise:hover {
    border-color: var(--success);
    box-shadow: 0 8px 30px var(--success-glow);
}

/* Response Card */
.info-card.response::before {
    background: var(--primary);
}

.info-card.response .info-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.info-card.response:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ============================================
   FEEDBACK INFO LAYOUT UPDATE
   ============================================ */

.feedback-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   FEEDBACK RESPONSIVE UPDATES
   ============================================ */

@media (max-width: 1200px) {
    .feedback-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .info-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .feedback-container {
        grid-template-columns: 1fr;
    }

    .feedback-info {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    .info-card {
        flex: 1 1 calc(50% - 7px);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .form-header-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .form-header-text h3 {
        font-size: 18px;
    }

    .form-header-text p {
        font-size: 13px;
    }

    .feedback-form {
        padding: 24px;
    }

    .form-group label {
        flex-wrap: wrap;
        gap: 6px;
    }

    .required-badge {
        margin-left: 0;
    }

    .textarea-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .char-counter {
        align-self: flex-end;
    }

    .checkbox-label {
        padding: 14px;
    }

    .form-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 14px;
    }

    .info-card {
        flex: 1 1 100%;
        padding: 20px;
    }

    .info-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

    .info-card-content h3 {
        font-size: 15px;
    }

    .info-card-content p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .form-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .form-header-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .form-header-text h3 {
        font-size: 17px;
    }

    .feedback-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .required-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .form-hint {
        font-size: 11px;
    }

    .select-wrapper select,
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .select-wrapper select {
        padding-right: 40px;
    }

    .char-counter {
        font-size: 11px;
        padding: 3px 8px;
    }

    .checkbox-label {
        padding: 12px;
        font-size: 13px;
        gap: 12px;
    }

    .custom-checkbox {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .form-footer {
        font-size: 12px;
        padding: 12px;
    }

    .info-card {
        padding: 16px;
        gap: 12px;
    }

    .info-card::before {
        width: 3px;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .info-card-content h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .info-card-content p {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .form-header-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .form-header-text h3 {
        font-size: 16px;
    }

    .form-header-text p {
        font-size: 12px;
    }

    .feedback-form {
        padding: 16px;
    }

    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .custom-checkbox {
        order: -1;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ============================================
   NOW PLAYING - CLICKABLE CARD STYLES
   ============================================ */

/* Clickable Card */
.now-playing-card.clickable {
    cursor: pointer;
    position: relative;
}

/* Source Row with External Link */
.np-source-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    color: var(--primary);
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.now-playing-card.clickable:hover .np-external-link {
    opacity: 1;
    transform: scale(1);
}

.now-playing-card.clickable:hover .np-external-link:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   NOW PLAYING CLICKABLE - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .np-external-link {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .np-external-link {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
}

@media (max-width: 400px) {
    .np-external-link {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .now-playing-card.clickable .np-external-link {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
    width: 100%;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 16px;
    }

    .footer-content p {
        font-size: 13px;
    }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
