﻿/* ===== CSS VARIABLES ===== */
:root {
    --bg: #0f001a;
    --bg2: #1a002e;
    --card: rgba(25, 5, 35, 0.85);
    --card2: rgba(35, 10, 50, 0.9);
    --border: rgba(139, 92, 246, 0.3);
    --border2: rgba(139, 92, 246, 0.4);
    --text: #ffffff;
    --text2: #ffffff;
    --text3: #ffffff;
    --accent: #8b5cf6;
    --accent2: #a78bfa;
    --cyan: #22d3ee;
    --cyan2: #67e8f9;
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbf24;
    --sidebar-w: 260px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --metallic-gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --metallic-gradient-reverse: linear-gradient(135deg, #a78bfa, #8b5cf6);
    --purple-gradient: linear-gradient(135deg, #6b21a8, #8b5cf6);
}

.download-link-url {
    display: none;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0c0c14;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

body::before {
    background-attachment: fixed;
    background-image: url(https://i.pinimg.com/736x/ed/0a/42/ed0a428c37caf1f777badf272b1260ec.jpg);
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-attachment: fixed;
    z-index: -1;
    background-position: center;
    /* background-size: cover; */
    opacity: 0.9;
    filter: brightness(1.1);
}

.floatingchat-container-wrap {
    position: absolute;
    bottom: 16px;
    left: initial!important;
    z-index: 99999999 !important;
    width: 100%;
    top: 0;
    right: 26px;
    /* float: right; */
    overflow: hidden;
    height: 65px;
    max-width: 180px;
}

@media only all and (max-width: 799px) {
    body::before {
        position:fixed;
        content: "";
        background-color: #000;
    }
}

h1 {
    font-size: 22px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 14px;
}

p {
    font-size: 16px;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--cyan2);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* ===== LAYOUT ===== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(24, 24, 36, 0.95);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
    transition: transform .3s ease;
}

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

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

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

.sidebar-logo {
    padding: 18px 16px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-search {
    padding: 12px 12px 8px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}

.sidebar-search input:focus {
    border-color: var(--accent);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: var(--card2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    font-size: 13px;
}

.search-suggestion-item:hover {
    background: var(--card);
    color: var(--accent2);
}

.search-suggestion-item .ss-cat {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    margin: 8px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sidebar-username {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    display: block;
}

/* ===== NAVIGATION ===== */
.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-nav > ul > li {
    position: relative;
}

.sidebar-nav a, .sidebar-nav .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--text2);
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav .nav-toggle:hover {
    background: var(--card);
    color: var(--text);
    border-left-color: var(--accent);
}

.sidebar-nav a.active {
    color: var(--accent2);
    border-left-color: var(--accent);
    background: rgba(124,58,237,.08);
}

.nav-icon {
    font-size: 23px;
    /* width: 20px; */
    text-align: center;
}

.arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform .25s;
}

.has-sub.open .arrow {
    transform: rotate(180deg);
}

.nav-admin {
    color: var(--yellow) !important;
}

.subnav {
    display: none;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid var(--border2);
    margin-left: 16px;
}

.has-sub.open > .subnav {
    display: block;
}

.subnav a {
    font-size: 13px;
    padding: 7px 14px 7px 20px;
    color: var(--text3);
}

.subnav a:hover {
    color: var(--text2);
    background: var(--card);
}

.subnav-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    padding: 8px 14px 4px 20px;
    font-weight: 700;
}

/* ===== SIDEBAR AUTH & STATS ===== */
.sidebar-auth {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-stats {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text3);
}

.stat-item {
    padding: 3px 0;
}

.stat-item b {
    color: var(--text2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    padding: 24px;
    padding-bottom: 60px;
    max-width: 80%;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 150;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: .3s;
}

.logo-mobile {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    flex: 1;
    text-align: center;
}

.mobile-user {
    font-size: 13px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border2);
    color: var(--text2);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent2);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(1.15);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--cyan2));
    color: #000;
}

.btn-cyan:hover {
    filter: brightness(1.1);
    color: #000;
}

.btn-success {
    background: var(--green);
    color: #fff;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== CONTENT CARDS (grid items) ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(124,58,237,0.2);
}

.content-card-poster {
    aspect-ratio: 2/3;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.content-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.content-card:hover .content-card-poster img {
    transform: scale(1.05);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--card2), var(--border));
}

.content-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.content-card-body {
    padding: 10px;
}

.content-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}

.content-card-meta {
    font-size: 11px;
    color: var(--text3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.badge-quality {
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.badge-cat {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent2);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-new {
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
    border: 1px solid rgba(16,185,129,.3);
}

.badge-views {
    background: rgba(249,250,251,.05);
    color: var(--text3);
    border: 1px solid var(--border);
}

/* ===== HERO SECTION ===== */
.hero {
    /* background: linear-gradient(135deg, rgb(0 0 0 / 31%), rgb(0 0 0 / 64%)); */
    /* border: 1px solid rgba(124,58,237,.2); */
    border-radius: 14px;
    padding: 40px;
    /* height: 92vh; */
    text-align: center;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent2), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text2);
    margin-bottom: 20px;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.hero-search input {
    flex: 1;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}

.hero-search input:focus {
    border-color: var(--accent);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent), var(--cyan));
    border-radius: 2px;
}

/* ===== DETAIL PAGE ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.detail-poster img {
    width: 100%;
    border-radius: var(--radius);
    /* box-shadow: 0 8px 32px rgba(0,0,0,0.5); */
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-info-item {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
}

.detail-info-label {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.detail-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.detail-description {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== DOWNLOAD LINKS ===== */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    display: none;
}

.download-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6,182,212,.06);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: 8px;
    padding: 10px 14px;
    gap: 12px;
    transition: background .2s;
}

.download-link-item:hover {
    background: rgba(6,182,212,.12);
}

.download-link-url {
    font-size: 13px;
    color: var(--cyan);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(6,182,212,.2);
    border: none;
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(6,182,212,.35);
}

/* ===== RATING ===== */
.star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star {
    font-size: 20px;
    cursor: pointer;
    color: var(--border2);
    transition: color .15s;
}

.star.active, .star.hover {
    color: var(--yellow);
}

.rating-info {
    color: var(--text2);
    font-size: 13px;
    margin-left: 8px;
}

/* ===== COMMENTS ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-user {
    font-weight: 600;
    font-size: 13px;
    color: var(--accent2);
}

.comment-date {
    font-size: 11px;
    color: var(--text3);
    margin-left: auto;
}

.comment-body {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.6;
}

.comment-form textarea {
    width: 100%;
    background: var(--card2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    resize: vertical;
    min-height: 80px;
    outline: none;
}

.comment-form textarea:focus {
    border-color: var(--accent);
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
}

.profile-avatar img, .profile-avatar div {
    width: 90px !important;
    height: 90px !important;
    font-size: 36px !important;
    border: 3px solid var(--accent);
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-title {
    color: var(--text2);
    font-size: 14px;
    margin: 4px 0;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.profile-stat {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.profile-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent2);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text3);
}

/* ===== FORMS ===== */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    max-width: 480px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all .2s;
}

.form-control:focus {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
}

.form-select {
    width: 100%;
    background: rgb(0 0 0);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent);
}

.form-hint {
    font-size: 12px;
    color: var(--text3);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

.form-divider {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    margin: 16px 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.form-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
}

.alert-info {
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.3);
    color: #67e8f9;
}

.alert-warn {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.3);
    color: #fcd34d;
}

/* ===== ADMIN ===== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent2);
}

.admin-stat-label {
    color: var(--text3);
    font-size: 13px;
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: var(--card2);
    color: var(--text3);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 11px;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,.02);
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-nav a {
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2);
    transition: all .2s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(124,58,237,.15);
    border-color: var(--accent);
    color: var(--accent2);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.filter-bar input, .filter-bar select {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.filter-bar input:focus, .filter-bar select:focus {
    border-color: var(--accent);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent2);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-dots {
    color: var(--text3);
    padding: 0 4px;
    line-height: 36px;
}

/* ===== TOP 10 LIST ===== */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background .15s, border-color .15s;
}

.top-list-item:hover {
    background: var(--card);
    border-color: var(--border2);
}

.top-rank {
    width: 28px;
    height: 28px;
    background: var(--border2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text3);
    flex-shrink: 0;
}

.top-rank.top1 {
    background: var(--yellow);
    color: #000;
}

.top-rank.top2 {
    background: #9ca3af;
    color: #000;
}

.top-rank.top3 {
    background: #b45309;
    color: #fff;
}

.top-poster {
    width: 36px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

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

.top-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-meta {
    font-size: 11px;
    color: var(--text3);
}

/* ===== CHAT WIDGET ===== */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 300;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
    transition: transform .2s, box-shadow .2s;
}

.chat-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124,58,237,.5);
}

.chat-widget {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 301;
    overflow: hidden;
}

.chat-header {
    background: var(--card2);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.chat-close:hover {
    color: var(--text);
}

.chat-messages {
    height: 311px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    scrollbar-width: thin;
    /* scrollbar-color: var(--accent2) transparent; */
}

.news-toggle-btn {
    background: #ff8f00 !important
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 3px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-msg-user {
    font-weight: 700;
    color: var(--accent2);
    font-size: 12px;
    flex-shrink: 0;
}

.chat-msg-text {
    color: var(--text2);
    word-break: break-word;
}

.chat-msg-time {
    font-size: 10px;
    color: var(--text3);
    margin-left: auto;
    flex-shrink: 0;
}

.chat-form {
    display: flex;
    padding: 10px;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.chat-form input {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

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

.chat-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .2s;
}

.chat-form button:hover {
    background: var(--accent2);
}

.chat-login {
    padding: 12px;
    text-align: center;
    color: var(--text3);
    font-size: 13px;
}

.chat-loading {
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    padding: 20px;
}

/* ===== CHAT ADMIN ACTIONS ===== */
.chat-msg {
    position: relative;
}

.chat-msg-actions {
    display: none;
    align-items: center;
    gap: 3px;
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(10,10,15,0.85);
    border-radius: 6px;
    padding: 2px 4px;
    backdrop-filter: blur(4px);
}

@media only all and (max-width: 900px) {
    .grid-2 {
        display:none!important;
    }
}

.detail-layout {
    overflow-y: hidden;
}

.chat-msg:hover .chat-msg-actions {
    display: flex;
}

.chat-del-btn {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    transition: background .15s, border-color .15s;
    line-height: 1.4;
    font-family: inherit;
}

.chat-del-btn:hover {
    background: rgba(239,68,68,0.4);
    border-color: rgba(239,68,68,0.7);
    color: #fff;
}

.chat-ban-btn {
    background: rgba(245,158,11,0.12);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    padding: 1px 5px;
    transition: background .15s, border-color .15s;
    line-height: 1.4;
    font-family: inherit;
}

.chat-ban-btn:hover {
    background: rgba(245,158,11,0.35);
    border-color: rgba(245,158,11,0.6);
}

/* ===== BBCODE ===== */
.bb-quote {
    background: rgba(255,255,255,.04);
    border-left: 3px solid #ffffff;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 0 6px 6px 0;
}

.bb-quote cite {
    font-size: 12px;
    color: var(--text3);
    display: block;
    margin-bottom: 4px;
}

.bb-link {
    color: var(--cyan);
    text-decoration: underline;
}

.bb-spoiler {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.bb-spoiler a {
    position: relative;
    max-width: 793px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    /* align-items: flex-start; */
    justify-content: center;
}

.bb-spoiler button {
    background: var(--border2);
    color: var(--text2);
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.bb-list {
    list-style: disc;
    padding-left: 20px;
}

.bb-list li {
    margin: 4px 0;
    color: var(--text2);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 32px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

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

.footer-links a {
    color: #ffffff;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--accent2);
}

.footer-copy {
    color: var(--text3);
    font-size: 12px;
}

/* ===== STAFF CARDS ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.staff-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.staff-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.staff-card-avatar {
    margin-bottom: 12px;
}

.staff-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.staff-card-role {
    font-size: 12px;
    color: var(--accent2);
    margin-bottom: 8px;
}

.staff-card-counts {
    font-size: 12px;
    color: var(--text3);
}

/* ===== MEMBERS TABLE ===== */
.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th {
    background: var(--card2);
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.members-table th:hover {
    color: var(--text);
}

.members-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(31,41,55,.5);
    font-size: 13px;
    color: var(--text2);
    vertical-align: middle;
}

.members-table tr:hover td {
    background: rgba(255,255,255,.02);
}

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text3);
}

.breadcrumb a:hover {
    color: var(--text2);
}

.breadcrumb-sep {
    color: var(--border2);
}

/* ===== UPLOADER BOX ===== */
.uploader-box {
    /* display: flex; */
    align-items: center;
    gap: 14px;
    background: var(--card2);
    border: 1px solid var(--border);
    /* border-radius: 10px; */
    padding: 14px;
    /* float: left; */
}

.uploader-name {
    font-weight: 700;
    color: var(--text);
}

.uploader-meta {
    font-size: 12px;
    color: var(--text3);
}

/* ===== TMDB / AJOUT ===== */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.search-result-item {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.search-result-item:hover {
    border-color: var(--accent);
    background: rgba(124,58,237,.1);
}

.search-result-item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.search-result-item .sr-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.search-result-item .sr-year {
    font-size: 11px;
    color: var(--text3);
}

.selected-result {
    border-color: var(--accent) !important;
    background: rgba(124,58,237,.15) !important;
    box-shadow: 0 0 0 2px rgba(124,58,237,.3);
}

/* ===== STEP INDICATOR ===== */
.steps {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text3);
    position: relative;
}

.step:first-child {
    border-radius: 8px 0 0 8px;
}

.step:last-child {
    border-radius: 0 8px 8px 0;
}

.step.active {
    background: rgba(124,58,237,.15);
    border-color: var(--accent);
    color: var(--accent2);
    font-weight: 700;
}

.step.done {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.3);
    color: var(--green);
}

/* ===== ZONE VIP ===== */
.vip-locked {
    text-align: center;
    padding: 60px 20px;
}

.vip-locked h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.vip-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

/* ===== GUESTBOOK ===== */
.gb-entry {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.gb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gb-user {
    font-weight: 700;
    color: var(--accent2);
}

.gb-date {
    font-size: 11px;
    color: var(--text3);
    margin-left: auto;
}

.gb-text {
    font-size: 14px;
    color: var(--text2);
}

@media (max-width: 799px) {
    body {
        font-size: 16px !important;
    }

    p, span, li, a, td, th, div, small {
        /* font-size: 16px !important; */
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 72px;
        max-width: initial;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        display: flex !important;
        transition: transform 0.3s ease;
    }

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

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-overlay {
        transition: opacity 0.3s ease;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 200px;
    }

    .hero {
        padding: 24px 16px;
    }

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

    .chat-widget {
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 340px;
    }
}

@media (max-width: 600px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

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

    .steps {
        flex-direction: column;
    }

    .step:first-child {
        border-radius: 8px 8px 0 0;
    }

    .step:last-child {
        border-radius: 0 0 8px 8px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-search {
        flex-direction: column;
    }
}

/* ===== MISC ===== */
.text-center {
    text-align: center;
}

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

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

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

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

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

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

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

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.upload-counters b {
    color: var(--cyan);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text3);
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

/* SIDEBAR MESSAGES PRIVS */
.sidebar-mp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--sp-blossom, #ffb7c5);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,183,197,0.3);
    background: rgba(255,183,197,0.06);
    transition: background 0.2s, border-color 0.2s;
}

.sidebar-mp-link:hover {
    background: rgba(255,183,197,0.15);
    border-color: rgba(255,183,197,0.6);
    color: #fff;
}

.sidebar-mp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    background: #ffb7c5;
    color: #1a1a2e;
    border-radius: 10px;
    line-height: 1;
}

/* ===== SIDEBAR COLLAPSE TOGGLE ===== */
.sidebar-toggle-btn {
    position: fixed;
    left: calc(var(--sidebar-w) - 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 64px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: left .3s ease, background .2s, color .2s, box-shadow .2s;
    box-shadow: 3px 0 12px rgba(0,0,0,0.3);
}

.sidebar-toggle-btn:hover {
    background: var(--card2);
    box-shadow: 4px 0 16px rgba(124,58,237,0.3);
}

.toggle-arrow {
    display: block;
    font-size: 10px;
    color: var(--text3);
    transition: transform .3s ease;
    user-select: none;
    line-height: 1;
}

.sidebar-toggle-btn.is-collapsed {
    left: 0;
}

.sidebar-toggle-btn.is-collapsed .toggle-arrow {
    transform: rotate(180deg);
}

.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-w)));
}

.main-content {
    transition: margin-left .3s ease;
}

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

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

.sidebar-burger {
    position: fixed;
    right: 12px;
    top: 16px;
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    z-index: 103;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 999999999;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    transition: background .2s, box-shadow .2s;
    /* Toujours visible  retirer opacity/pointer-events */
}

.sidebar-burger:hover {
    background: var(--card2);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.sidebar-burger .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text3);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

/*  quand sidebar ouverte */
.sidebar-burger.is-open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sidebar-burger.is-open .bar:nth-child(2) {
    opacity: 0;
}

.sidebar-burger.is-open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%) !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar-burger {
        display: flex !important;
    }

    .sidebar-toggle-btn {
        display: none;
    }
}

/* ===================================================
   THEME CLAIR (light mode)
=================================================== */
body.theme-light {
    --bg: #f0f2f8;
    --bg2: #ffffff;
    --card: rgba(255, 255, 255, 0.96);
    --card2: rgba(235, 238, 248, 0.98);
    --border: rgba(0, 0, 0, 0.08);
    --border2: rgba(0, 0, 0, 0.18);
    --text: #1a1a2e;
    --text2: #3a3a55;
    --text3: #7a7a92;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: #f0f2f8;
    color: #1a1a2e;
}

body.theme-light::before {
    opacity: 0.10;
    filter: brightness(1.5) saturate(0.3) grayscale(0.2);
}

body.theme-light .sidebar {
    background: rgba(235, 238, 252, 0.99);
    border-right: 1px solid rgba(0,0,0,0.10);
}

body.theme-light .mobile-header {
    background: rgba(235, 238, 252, 0.99);
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

body.theme-light .sidebar-logo a, body.theme-light .sidebar-logo span {
    color: #1a1a2e;
}

body.theme-light .site-footer {
    background: rgba(220, 225, 245, 0.95);
    color: var(--text2);
}

body.theme-light input, body.theme-light textarea, body.theme-light select {
    background: #fff;
    color: #1a1a2e;
    border-color: rgba(0,0,0,0.15);
}

body.theme-light .chat-widget, body.theme-light .news-widget {
    background: rgba(240, 242, 255, 0.99);
    border-color: var(--accent);
}

/* ===================================================
   PASTILLES TOGGLE 
=================================================== */
.theme-toggle-wrap {
    position: fixed;
    /* bottom: 167px; */
    right: 10px;
    top: 89px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-pill:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.theme-pill.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35), var(--shadow);
}

@media (max-width: 480px) {
    .theme-toggle-wrap {
        bottom: 135px;
        right: 12px;
    }
}

/* ===================================================
   DESKTOP TOP HEADER (horizontal sticky nav)
   Remplace la sidebar sur desktop (>900px)
=================================================== */
:root {
    --header-h: 89px;
    --nav-item-min-width: 80px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(18, 18, 26, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border2);
    z-index: 500;
    transition: height .35s cubic-bezier(.4,.0,.2,1), background .35s, border-color .35s, backdrop-filter .35s;
    will-change: height, background;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    background: rgba(14, 14, 22, 0.96);
}

/* tat compress au scroll (aprs 150px de descente) */
.site-header.scrolled-down {
    --header-h: 60px;
}

/* Items de navigation compresss */
.site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
    font-size: 12px;
    padding: 0 9px;
    gap: 3px;
}

.site-header.scrolled-down .site-nav-list .nav-icon {
    font-size: 14px;
}

/* Icne loupe de recherche */
.site-header.scrolled-down .site-search-toggle {
    width: 32px;
    height: 32px;
}

/* Badge de messages privs */
.site-header.scrolled-down .header-mp-badge {
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

/* Avatar/user compact */
.site-header.scrolled-down .header-user {
    padding: 3px 8px 3px 4px;
    font-size: 12px;
}

.site-header.scrolled-down .header-user img, .site-header.scrolled-down .header-user .avatar {
    width: 24px !important;
    height: 24px !important;
}

/* Sur petits crans */
@media (max-width: 1100px) {
    .site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
        padding: 0 7px;
        gap: 2px;
        font-size: 11.5px;
    }

    .site-header.scrolled-down .site-nav-list .nav-icon {
        font-size: 13px;
    }

    .site-header.scrolled-down .site-logo {
        font-size: 0.9rem;
    }
}

/* Animation fluide des items de nav lors du resize */
.site-nav-list > li > a, .site-nav-list > li > .nav-toggle {
    transition: padding .35s cubic-bezier(.4,0,.2,1), font-size .35s cubic-bezier(.4,0,.2,1), gap .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1);
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    background: rgba(14, 14, 22, 0.96);
}

/* tat compress au scroll (aprs 150px de descente) */
.site-header.scrolled-down {
    --header-h: 60px;
}

/* Items de navigation compresss */
.site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
    font-size: 12px;
    padding: 0 9px;
    gap: 3px;
}

.site-header.scrolled-down .site-nav-list .nav-icon {
    font-size: 14px;
}

/* Icne loupe de recherche */
.site-header.scrolled-down .site-search-toggle {
    width: 32px;
    height: 32px;
}

/* Badge de messages privs */
.site-header.scrolled-down .header-mp-badge {
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

/* Avatar/user compact */
.site-header.scrolled-down .header-user {
    padding: 3px 8px 3px 4px;
    font-size: 12px;
}

.site-header.scrolled-down .header-user img, .site-header.scrolled-down .header-user .avatar {
    width: 24px !important;
    height: 24px !important;
}

/* Sur petits crans */
@media (max-width: 1100px) {
    .site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
        padding: 0 7px;
        gap: 2px;
        font-size: 11.5px;
    }

    .site-header.scrolled-down .site-nav-list .nav-icon {
        font-size: 13px;
    }

    .site-header.scrolled-down .site-logo {
        font-size: 0.9rem;
    }
}

/* ====================== HEADER COMPACT AU SCROLL ====================== */
.site-header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 18px;
    gap: 18px;
    max-width: 1525px;
    margin: 0 auto;
    transition: height .35s cubic-bezier(.4,0,.2,1);
}

.site-nav-list > li > a, .site-nav-list > li > .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    height: 100%;
    color: var(--text2);
    font-size: 13.5px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s, padding .3s, font-size .3s, gap .3s;
    white-space: nowrap;
    font-family: inherit;
}

.site-nav-list .nav-icon {
    font-size: 16px;
    transition: font-size .3s;
}

/* Logo */
.site-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: font-size .35s cubic-bezier(.4,0,.2,1);
}

/* Lors du scroll vers le bas, le header passe en mode compact */
.site-header.scrolled-down {
    --header-h: 60px;
}

.site-header.scrolled-down .site-logo {
    font-size: 0.95rem;
}

.site-header.scrolled-down #siteLogoWrap img {
    /* display: none; */
    position: relative;
    background-size: 52%;
    height: 45px;
}

.site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
    font-size: 12px;
    padding: 0 9px;
    gap: 3px;
}

.site-header.scrolled-down .site-nav-list .nav-icon {
    font-size: 14px;
}

.site-header.scrolled-down .site-search-toggle {
    width: 32px;
    height: 32px;
}

.site-header.scrolled-down .header-mp-badge {
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

.site-header.scrolled-down .header-user {
    padding: 3px 8px 3px 4px;
    font-size: 12px;
}

.site-header.scrolled-down .header-user img, .site-header.scrolled-down .header-user .avatar {
    width: 24px !important;
    height: 24px !important;
}

/* Sur les crans troits, on compresse encore un peu plus */
@media (max-width: 1100px) {
    .site-header.scrolled-down .site-nav-list > li > a, .site-header.scrolled-down .site-nav-list > li > .nav-toggle {
        padding: 0 7px;
        gap: 2px;
        font-size: 11.5px;
    }

    .site-header.scrolled-down .site-nav-list .nav-icon {
        font-size: 13px;
    }

    .site-header.scrolled-down .site-logo {
        font-size: 0.9rem;
    }
}

.site-header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 18px;
    gap: 45px;
    /* max-width: 1500px; */
    margin: 0 auto;
    transition: height .35s cubic-bezier(.4,0,.2,1);
}

/* Logo */
.site-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: font-size .35s cubic-bezier(.4,0,.2,1);
}

.site-logo span {
    color: var(--accent);
}

/* Navigation horizontale */
.site-nav {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: visible;
    position: relative;
}

/* Items qui ne tiennent pas dans la barre 
qui ouvre le panel overflow */
.site-nav-list > li.is-overflow-hidden {
    display: none;
}

/* Clipping horizontal UNIQUEMENT quand la nav dborde (scroll actif),
   avec extension verticale pour laisser les dropdowns visibles */
.site-nav.has-overflow {
    clip-path: inset(0 0 -9999px 0);
}

/* Viewport de clipping horizontal (pour les chevrons)  mais on garde visible
   sur Y grce  clip-path au lieu d'overflow (pour ne pas couper les dropdowns) */
.site-nav-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 30px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    /* max-width: 890px; */
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Bouton "menu complet" (visible uniquement si overflow) */
.nav-overflow-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 34px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 32, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border2);
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    font-family: inherit;
}

.nav-overflow-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--accent);
    color: var(--text);
}

.nav-overflow-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.nav-overflow-btn svg {
    display: block;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.nav-overflow-btn.is-active svg {
    transform: rotate(180deg);
}

.site-nav.has-overflow .nav-overflow-btn {
    display: inline-flex;
}

.site-nav-list > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.site-nav-list > li > a, .site-nav-list > li > .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    height: 100%;
    padding-right: 19px;
    color: var(--text2);
    font-size: 13.5px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
    font-family: inherit;
}

.site-nav-list > li > a:hover, .site-nav-list > li > .nav-toggle:hover, .site-nav-list > li.has-sub:hover > .nav-toggle, .site-nav-list > li > a.active, .site-nav-list > li > .nav-toggle.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.08);
    border-bottom-color: var(--accent);
}

.site-nav-list .subnav a.active {
    background: rgba(139, 92, 246, 0.18);
    color: var(--text);
}

.site-nav-list .nav-icon {
    font-size: 16px;
    width: auto;
    line-height: 1;
}

.site-nav-list .arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform .25s;
}

.site-nav-list .nav-admin {
    color: var(--yellow);
}

.site-nav-list .nav-vip {
    color: #fbbf24;
}

/* Dropdown hover (desktop) */
.site-nav-list .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: rgba(20, 20, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border2);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    padding: 6px;
    margin: 0;
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 501;
}

.site-nav-list .has-sub:hover > .subnav, .site-nav-list .has-sub:focus-within > .subnav, .site-nav-list .has-sub.open > .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav-list .has-sub:hover > .nav-toggle .arrow, .site-nav-list .has-sub.open > .nav-toggle .arrow {
    transform: rotate(180deg);
}

/* Dropdown wide (Consoles = 3 colonnes) */
.site-nav-list .subnav-wide {
    min-width: 520px;
    max-width: calc(100vw - 40px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 8px;
}

.site-nav-list .subnav-wide .subnav-header {
    grid-column: auto;
}

@media (max-width: 1100px) {
    .site-nav-list .subnav-wide {
        min-width: 360px;
        grid-template-columns: repeat(2, 1fr);
    }
}

.site-nav-list .subnav li {
    list-style: none;
}

.site-nav-list .subnav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: background .12s, color .12s;
    text-decoration: none;
    border-left: none;
    white-space: nowrap;
}

.site-nav-list .subnav a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
}

.site-nav-list .subnav-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    padding: 10px 12px 4px;
    font-weight: 700;
    pointer-events: none;
}

/* Dernier menu : dropdown  droite */
.site-nav-list > li:last-child .subnav, .site-nav-list > li:nth-last-child(2) .subnav {
    left: auto;
    right: 0;
}

.site-nav-list > li:last-child .subnav.subnav-wide, .site-nav-list > li:nth-last-child(2) .subnav.subnav-wide {
    right: 0;
    left: auto;
}

/* Right area : search + user */
.site-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Bouton loupe dans le header */
.site-search-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
    flex-shrink: 0;
}

.site-search-toggle:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
    border-color: var(--accent);
}

.site-search-toggle.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.site-search-toggle svg {
    display: block;
}

/* Panel de recherche slide-down */
.site-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s, visibility .28s;
    z-index: 499;
}

.site-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-search-panel-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 20px 22px;
    position: relative;
}

.site-search-panel .site-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border2);
    border-radius: 30px;
    padding: 0 8px 0 16px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.site-search-panel .site-search-form:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.site-search-icon {
    display: inline-flex;
    color: var(--text3);
    margin-right: 8px;
    flex-shrink: 0;
}

.site-search-panel input[type="text"] {
    flex: 1;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    outline: none;
    min-width: 0;
}

.site-search-panel input[type="text"]::placeholder {
    color: var(--text3);
}

.site-search-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.site-search-close:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.site-search-panel .search-suggestions {
    margin-top: 10px;
    background: rgba(25, 25, 40, 0.98);
    border: 1px solid var(--border2);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.site-search-panel .search-suggestions.show {
    display: block;
}

/* Backdrop sombre sur le reste de la page */
.site-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 498;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
}

.site-search-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Pendant la recherche : empcher le header de se masquer au scroll */
body.search-open .site-header.hidden {
    transform: translateY(0);
}

/* 
   PANEL MENU OVERFLOW (slide-down avec tous les items)
 */
.site-overflow-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s, visibility .28s;
    z-index: 499;
    max-height: calc(100vh - var(--header-h) - 20px);
    overflow-y: auto;
}

.site-overflow-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-overflow-panel-inner {
    /* max-width: 860px; */
    margin: 0 auto;
    padding: 18px 24px 22px;
}

.site-overflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
    justify-content: center;
    gap: 10px 28px;
    align-items: start;
}

.overflow-group {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    min-width: 0;
}

.overflow-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent2);
    padding: 6px 10px 8px;
    font-weight: 700;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    margin-bottom: 4px;
}

.overflow-group-title .nav-icon {
    font-size: 16px;
}

.overflow-group-title.nav-admin {
    color: var(--yellow);
    border-bottom-color: rgba(251, 191, 36, 0.3);
}

.overflow-main-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.08);
    transition: background .15s, color .15s;
}

.overflow-main-link:hover {
    background: rgba(139, 92, 246, 0.18);
    color: var(--text);
}

.overflow-main-link .nav-icon {
    font-size: 18px;
}

.overflow-sublist {
    display: flex;
    flex-direction: column;
    gap: 1px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.overflow-sublist li {
    list-style: none;
}

.overflow-sublist a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    color: var(--text2);
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: normal;
}

.overflow-sublist a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
}

.overflow-sublist .subnav-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    padding: 8px 12px 2px;
    font-weight: 700;
    pointer-events: none;
}

/* Backdrop overflow */
.site-overflow-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 498;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
}

.site-overflow-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Pendant le menu overflow : empcher le header de se masquer au scroll */
body.overflow-open .site-header.hidden {
    transform: translateY(0);
}

/* Theme light */
body.theme-light .site-overflow-panel {
    background: rgba(245, 247, 252, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

body.theme-light .overflow-main-link, body.theme-light .overflow-sublist a:hover, body.theme-light .overflow-main-link:hover {
    color: #1a1a2e;
}

/* Header user area */
.header-mp {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    font-size: 16px;
    text-decoration: none;
    color: var(--text2);
    transition: background .15s, border-color .15s;
}

.header-mp:hover {
    background: rgba(139,92,246,0.12);
    border-color: var(--accent);
    color: var(--text);
}

.header-mp-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(18,18,26,0.9);
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, border-color .15s;
    max-width: 180px;
}

.header-user:hover {
    background: rgba(139,92,246,0.12);
    border-color: var(--accent);
    color: var(--text);
}

.header-user img, .header-user .avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

/* ===== ADAPT LAYOUT for horizontal header (DESKTOP) ===== */
@media (min-width: 901px) {
    /* Masquer l'ancienne sidebar et ses bouttons sur desktop */ .sidebar {
        display: none !important;
    }

    .sidebar-toggle-btn {
        display: none !important;
    }

    .sidebar-burger {
        display: none !important;
    }

    .mobile-header {
        display: none !important;
    }

    /* Main content : plus de margin-left, padding-top pour le header */
    .main-content {
        margin: 0 auto;
        padding-top: calc(var(--header-h) + 20px);
    }

    /* Layout wrapper : plus besoin d'espace pour sidebar */
    .layout-wrapper {
        display: block;
        padding-top: 0;
    }

    /* Dcaler les widgets flottants pour qu'ils soient sous le header */
    .theme-toggle-wrap {
        top: calc(var(--header-h) + 12px);
    }
}

/* Responsive : nav compacte sur crans moyens */
@media (min-width: 901px) and (max-width: 1200px) {
    .site-header-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .site-nav-list > li > a, .site-nav-list > li > .nav-toggle {
        padding: 0 8px;
        font-size: 12.5px;
        gap: 4px;
    }

    .site-nav-list .nav-icon {
        font-size: 14px;
    }

    .header-user-name {
        max-width: 80px;
        font-size: 12px;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .site-nav-list > li > a, .site-nav-list > li > .nav-toggle {
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Mobile : masquer le site-header, utiliser la sidebar drawer */
@media (max-width: 900px) {
    .site-header {
        display: none !important;
    }
}

/* Theme light adaptation */
body.theme-light .site-header {
    background: rgba(245, 247, 252, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

body.theme-light .site-header.scrolled {
    background: rgba(250, 251, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.theme-light .site-logo {
    color: #1a1a2e;
}

body.theme-light .site-nav-list > li > a, body.theme-light .site-nav-list > li > .nav-toggle {
    color: var(--text2);
}

body.theme-light .site-nav-list > li > a:hover, body.theme-light .site-nav-list > li > .nav-toggle:hover, body.theme-light .site-nav-list > li.has-sub:hover > .nav-toggle {
    background: rgba(139, 92, 246, 0.08);
    color: #1a1a2e;
}

body.theme-light .site-nav-list .subnav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0,0,0,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body.theme-light .site-nav-list .subnav a {
    color: var(--text2);
}

body.theme-light .site-nav-list .subnav a:hover {
    background: rgba(139, 92, 246, 0.10);
    color: #1a1a2e;
}

body.theme-light .site-search-panel {
    background: rgba(245, 247, 252, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

body.theme-light .site-search-panel .site-search-form {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.12);
}

body.theme-light .site-search-panel input[type="text"] {
    color: #1a1a2e;
}

body.theme-light .site-search-panel .search-suggestions {
    background: #fff;
    border-color: rgba(0,0,0,0.10);
}

body.theme-light .header-user, body.theme-light .header-mp {
    background: rgba(0,0,0,0.04);
}

body.theme-light .header-mp-badge {
    border-color: rgba(245,247,252,0.95);
}

