/* style.css - Design Liquid Glass pour le site de Miaou 🐱 */

/* Polices locales - 100% conformes au RGPD */
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #07070a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-purple: #bf5af2;
    --accent-gradient: linear-gradient(135deg, #0071e3, #bf5af2);
    --selection-bg: rgba(0, 113, 227, 0.3);
    --selection-text: #ffffff;
    --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Selection */
::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Blobs Liquides en arrière-plan */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff375f 0%, transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-duration: 22s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(80px, 50px) scale(1.15) rotate(180deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

/* En-tête Glassmorphism */
.glass-header {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: fixed;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-header:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo span {
    -webkit-text-fill-color: initial;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.lang-switch {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}
.lang-switch a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}
.lang-switch a:hover, .lang-switch a.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-purple);
}

/* Cartes Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-highlight);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Boutons */
.btn {
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-highlight);
}

/* Pied de page */
.glass-footer {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-link:hover, .footer-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Surcharge / Overlays */
.limit-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.limit-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 40px;
    backdrop-filter: blur(20px);
    max-width: 500px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.limit-box h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.limit-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mini-stat {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
}

.mini-stat .val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-purple);
    display: block;
}

.mini-stat .lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* Page spécifique : Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Page spécifique : Features */
.features {
    padding: 4rem 10% 8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 5px;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Page spécifique : Stats & Live Stats */
.stats-section {
    padding: 5rem 10%;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-item p {
    color: var(--accent-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.stats-grid-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 10% 10rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

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

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.05);
    color: #30d158;
    padding: 5px 15px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background: #30d158;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Page spécifique : Commands (Layout + Sidebar) */
.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10rem 5% 8rem;
    gap: 4rem;
    width: 100%;
}

.sidebar {
    width: 280px;
    position: sticky;
    top: 120px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-shrink: 0;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.sidebar-link {
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
    text-transform: capitalize;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(8px);
}

.sidebar-link.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.main-content {
    flex: 1;
}

.search-container {
    margin-bottom: 5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2.5rem;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255,255,255,0.05);
    transform: scale(1.01);
}

section.cmd-section {
    margin-bottom: 7rem;
    scroll-margin-top: 140px;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
}

.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cmd-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.cmd-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.cmd-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Page Générique : Container & Card */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10% 8rem;
    width: 100%;
}

header.page-header {
    padding: 12rem 10% 4rem;
    text-align: center;
}

header.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card {
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}

.card.active {
    opacity: 1;
    transform: translateY(0);
}

.card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p, .card li {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.highlight {
    color: #fff;
    font-weight: 600;
}

/* Page spécifique : Dashboard (Sidebar, Views, Toggles) */
body.dashboard-body {
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.dashboard-sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.dashboard-sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-sidebar-sections {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar-sections::-webkit-scrollbar {
    width: 3px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.server-item:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.server-item.active {
    background: var(--glass-bg);
    border-color: var(--accent-purple);
}

.server-item img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.server-item .no-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.server-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-item.offline {
    filter: grayscale(1);
    opacity: 0.6;
}

.dashboard-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem;
    border-radius: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-profile-btn:hover {
    border-color: var(--glass-highlight);
    background: rgba(255,255,255,0.08);
}

.user-profile-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.dashboard-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 4rem;
    position: relative;
}

.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

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

.setting-row:last-child {
    border-bottom: none;
}

.setting-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.custom-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #222;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .4s;
}

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

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

.custom-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    width: 180px;
    outline: none;
    font-family: var(--font-sans);
}

.btn-action {
    width: 100%;
    padding: 1.2rem;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
    font-family: var(--font-sans);
}

.btn-save {
    background: white;
    color: black;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.15);
}

.btn-invite {
    background: #5865F2;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-invite:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88,101,242,0.3);
}

.log-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    min-width: 180px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
}

.log-btn.active {
    border-color: var(--accent-purple);
    background: rgba(191, 90, 242, 0.1);
}

.channel-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 400px;
    max-height: 500px;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.channel-menu.open {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.channel-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-list {
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    gap: 8px;
}

.channel-option {
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.channel-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.channel-option.selected {
    border-color: var(--accent-purple);
    background: rgba(191, 90, 242, 0.1);
}

.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
}

.dashboard-overlay.open {
    display: block;
}

.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    z-index: 1000;
}

.live-stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Animations logo-glow */
.logo-glow {
    animation: logoPulse 3s infinite alternate ease-in-out;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.3));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 15px rgba(191, 90, 242, 0.6));
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
        padding-top: 8rem;
    }
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    .sidebar-link {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
        padding: 15px;
    }

    nav {
        gap: 15px;
    }

    header.page-header h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}
