/* Reset and Variables */
@font-face {
    font-family: 'LuckiestGuy';
    src: url('/LuckiestGuy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette - Updated to Orange Theme */
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --accent-color: #fb923c;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #374151;
    --gray-700: #1f2937;
    --gray-800: #111827;
    --gray-900: #0f172a;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-white: #ffffff;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --sidebar-width: 300px;
    --sidebar-collapsed-width: 80px;
}
/* ── Scrollbar globale masquée ── */
html, body {
    scrollbar-width: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* main-area scrollbar aussi masquée */
.main-area {
    scrollbar-width: none !important;
}
.main-area::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}


/* Login Popup Styles */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(249, 115, 22, 0.2) 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 1rem;
}

.login-popup {
    background: var(--bg-primary);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid var(--gray-200);
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-overlay.active .login-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    transform: rotate(-5deg);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.login-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Modern Popup System V5 */
.modern-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: var(--space-4);
}

.modern-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modern-popup-content {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    background: linear-gradient(160deg, #0f0a1e 0%, #0a0612 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 60px rgba(0,0,0,0.7), 0 0 80px rgba(139,92,246,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-popup-overlay.active .modern-popup-content {
    transform: scale(1) translateY(0);
}

/* Barre accent colorée */
.modern-popup-accent-bar {
    height: 2px;
    flex-shrink: 0;
}

.modern-popup-header {
    padding: 20px 22px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.modern-popup-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.modern-popup-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-popup-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.modern-popup-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.modern-popup-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-popup-close:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border-color: rgba(239,68,68,0.25);
    transform: rotate(90deg);
}

.modern-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-popup-body::-webkit-scrollbar { width: 4px; }
.modern-popup-body::-webkit-scrollbar-track { background: transparent; }
.modern-popup-body::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.25); border-radius: 10px; }

.modern-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    margin: 4px 0 2px;
}

/* ── NELL PASS ─────────────────────────────────────── */
.pp-xp-card {
    background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(234,88,12,0.08) 100%);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pp-level-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(249,115,22,0.4);
}

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

.pp-xp-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    font-weight: 500;
}

.pp-xp-bar-wrap {
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.pp-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(249,115,22,0.6);
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.pp-xp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.pp-reward-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0.55;
    transition: all 0.2s;
}

.pp-reward-row.pp-unlocked {
    background: rgba(249,115,22,0.08);
    border-color: rgba(249,115,22,0.22);
    opacity: 1;
}

.pp-reward-level {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.pp-reward-info { flex: 1; }
.pp-reward-name { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.7); }
.pp-reward-xp { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

.pp-reward-img-wrap {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

/* ── RECORDS ───────────────────────────────────────── */
.rec-hero {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(109,40,217,0.12));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.rec-hero-icon { font-size: 2.2rem; margin-bottom: 6px; }

.rec-hero-score {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 0 30px rgba(139,92,246,0.5);
}

.rec-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    font-weight: 600;
}

.rec-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rec-stat-emoji { font-size: 1.6rem; }
.rec-stat-value { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.rec-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.rec-reset-btn {
    background: rgba(239,68,68,0.08);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.rec-reset-btn:hover { background: rgba(239,68,68,0.18); }

/* ── CASIER ────────────────────────────────────────── */
.locker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.locker-skin-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.locker-skin-item:hover:not(.locker-locked) {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-2px);
}

.locker-skin-item.locker-selected {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.45);
    box-shadow: 0 0 16px rgba(16,185,129,0.2);
}

.locker-skin-item.locker-locked {
    cursor: not-allowed;
    opacity: 0.45;
}

.locker-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
}

.locker-lock-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.5);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    white-space: nowrap;
}

.locker-skin-img {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.locker-skin-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

/* ── PARAMÈTRES ────────────────────────────────────── */
.setting-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.setting-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.setting-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-label { font-weight: 700; font-size: 0.92rem; color: #fff; }
.setting-desc { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.setting-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.setting-vol-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.setting-vol-value { font-size: 0.8rem; font-weight: 700; color: #60a5fa; width: 36px; text-align: right; }

/* ── DONNÉES ───────────────────────────────────────── */
.data-info-banner {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.data-action-btn {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    color: white;
}

.data-action-btn:hover {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-2px);
}

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

.data-action-text { flex: 1; }
.data-action-title { font-weight: 700; font-size: 0.92rem; color: #fff; }
.data-action-desc { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── TIKFINITY ─────────────────────────────────────── */
.tik-toggle-card {
    background:rgba(236,72,153,0.08);
    border:1px solid rgba(236,72,153,0.25);
    border-radius:18px;padding:14px 16px;
    display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.tik-toggle-left  { display:flex;align-items:center;gap:14px; }
.tik-logo-wrap    { width:44px;height:44px;background:rgba(236,72,153,0.15);border:1px solid rgba(236,72,153,0.3);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.tik-toggle-title { font-weight:700;font-size:0.92rem;color:#fff; }
.tik-toggle-desc  { font-size:0.7rem;color:rgba(255,255,255,0.4);margin-top:2px; }

/* ── Bouton touche cliquable sur chaque cadeau ── */
.tik-key-badge {
    flex-shrink: 0;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 9px;
    color: rgba(255,255,255,0.75);
    font-family: monospace;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s;
    letter-spacing: 0;
}
.tik-key-badge:hover {
    background: rgba(236,72,153,0.15);
    border-color: rgba(236,72,153,0.5);
    color: #f9a8d4;
    transform: scale(1.08);
}
.tik-key-badge-listening {
    background: rgba(236,72,153,0.25) !important;
    border-color: #ec4899 !important;
    color: #fff !important;
    animation: tik-key-pulse 0.6s ease infinite alternate;
}
@keyframes tik-key-pulse {
    from { box-shadow: 0 0 0 2px rgba(236,72,153,0.2); }
    to   { box-shadow: 0 0 0 5px rgba(236,72,153,0.45); }
}
.tik-key-badge-custom {
    background: rgba(236,72,153,0.12);
    border-color: rgba(236,72,153,0.4);
    color: #f9a8d4;
}

/* ── Bouton reset touches ── */
.tik-reset-keys-btn {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.tik-reset-keys-btn:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

/* ── Règles Live ── */
.tik-rule-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    transition: background .15s;
}
.tik-rule-card:hover { background: rgba(255,255,255,0.05); }
.tik-rule-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.tik-rule-text { flex: 1; min-width: 0; }
.tik-rule-title { font-size: 0.82rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.tik-rule-desc { font-size: 0.72rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.tik-rule-desc strong { color: rgba(255,255,255,0.75); font-weight: 700; }



.tik-status-banner {
    display:flex;align-items:center;gap:8px;
    border-radius:12px;padding:9px 14px;
    font-size:0.76rem;font-weight:700;
}
.tik-status-active {
    background:rgba(34,197,94,0.1);
    border:1px solid rgba(34,197,94,0.3);
    color:#86efac;
}
.tik-status-inactive {
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.4);
}

/* ── Carte cadeau ── */
.tik-gift-card {
    display:flex;align-items:center;gap:12px;
    background:rgba(255,255,255,0.025);
    border:1px solid rgba(255,255,255,0.06);
    border-left:3px solid var(--gift-c,rgba(236,72,153,0.6));
    border-radius:13px;padding:10px 14px;
    transition:background .15s;
}
.tik-gift-card:hover { background:rgba(255,255,255,0.05); }
.tik-gift-icon { font-size:1.5rem;flex-shrink:0;width:30px;text-align:center; }
.tik-gift-info { flex:1;min-width:0; }
.tik-gift-name {
    font-size:0.85rem;font-weight:800;color:#fff;
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.tik-gift-coins {
    font-size:0.68rem;font-weight:700;
    background:rgba(251,191,36,0.15);border:1px solid rgba(251,191,36,0.25);
    color:#fbbf24;border-radius:6px;padding:1px 7px;
    white-space:nowrap;
}
.tik-gift-desc { font-size:0.7rem;color:rgba(255,255,255,0.45);margin-top:3px; }
.tik-gift-dur {
    flex-shrink:0;
    background:color-mix(in srgb,var(--gift-color,#ec4899) 15%,transparent);
    border:1px solid color-mix(in srgb,var(--gift-color,#ec4899) 35%,transparent);
    color:var(--gift-color,#f9a8d4);
    border-radius:8px;padding:3px 8px;
    font-size:0.7rem;font-weight:800;white-space:nowrap;
}

/* ── Éléments Session (réutilisés) ── */
.tik-sc-card {
    background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;padding:10px 12px;
    display:flex;align-items:center;gap:10px;
}
.tik-sc-qty-btn {
    width:28px;height:28px;background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.12);border-radius:8px;
    color:#fff;font-weight:700;font-size:0.9rem;cursor:pointer;
    display:flex;align-items:center;justify-content:center;transition:background .15s;
}
.tik-sc-qty-btn:hover { background:rgba(236,72,153,0.25); }
.tik-cadeaux-card {
    display:flex;align-items:center;gap:12px;
    background:rgba(255,255,255,0.03);border:1px solid rgba(236,72,153,0.18);
    border-radius:14px;padding:12px 14px;
}
.tik-cadeaux-preview { width:52px;height:52px;object-fit:cover;border-radius:9px;border:1px solid rgba(255,255,255,0.08);flex-shrink:0; }
.tik-cadeaux-info { flex:1;min-width:0; }
.tik-cadeaux-title { font-size:0.82rem;font-weight:700;color:#fff; }
.tik-cadeaux-desc  { font-size:0.68rem;color:rgba(255,255,255,0.4);margin-top:2px; }
.tik-cadeaux-dl-btn {
    display:flex;align-items:center;gap:6px;
    background:rgba(236,72,153,0.12);border:1px solid rgba(236,72,153,0.35);
    color:#f9a8d4;padding:7px 12px;border-radius:10px;
    font-size:0.75rem;font-weight:700;cursor:pointer;flex-shrink:0;transition:all .18s;
}
.tik-cadeaux-dl-btn:hover { background:rgba(236,72,153,0.22);transform:translateY(-1px); }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    transition: .25s;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: .25s cubic-bezier(0.4,0,0.2,1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

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

/* ── RANGE INPUT ───────────────────────────────────── */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-color);
    transition: transform 0.1s ease;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --text-tertiary: var(--gray-400);
}

/* Base Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: block;
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* ── Desktop layout wrapper ── */
.desktop-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .desktop-layout {
        display: block !important;
        overflow: visible !important;
    }
}

/* Mobile-first approach - Hide desktop sidebar by default */
.sidebar {
    display: none;
}

.desktop-only {
    display: none;
}

/* Global Login Button */
.global-login-btn {
    display: none !important;
    position: fixed;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 900;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.global-login-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Mobile positioning */
@media (max-width: 768px) {
    .global-login-btn {
        top: 8px;
        right: 60px; /* Positioned to the left of the hamburger menu */
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        box-shadow: none;
        z-index: 201; /* Above mobile header background */
    }
    
    .global-login-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: none;
        box-shadow: none;
    }
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    z-index: 200;
    box-shadow: var(--shadow-md);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    min-height: 60px;
}

.mobile-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    animation: logo-intro 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mobile-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    flex: 1;
    text-align: center;
    padding: 0 var(--space-4);
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}

.hamburger-btn:hover {
    background: var(--bg-tertiary);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    z-index: 199;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-menu-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    min-height: 56px;
}

.mobile-nav-item:active {
    transform: scale(0.98);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border-color: var(--primary-color);
}

.mobile-nav-item[data-tab="gallery"] {
    border-color: #8b5cf6;
    border-width: 2px;
}

.mobile-nav-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.mobile-nav-text {
    font-size: 1rem;
    white-space: nowrap;
}

.mobile-party-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.mobile-party-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-white);
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    min-height: 64px;
}

.mobile-party-btn:active {
    transform: scale(0.98);
}

.mobile-party-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-party-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-party-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.mobile-party-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Main Area Adjustments for Mobile */
.main-area {
    margin-left: 0;
    margin-top: 60px;
    background: var(--bg-secondary);
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.content-header {
    display: none; /* masqué mobile, affiché desktop */
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 48px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Titre de section — orange bold, même style que Miss Grill */
.section-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #f97316 !important;
    -webkit-text-fill-color: #f97316 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin: 0 0 8px 0;
    line-height: 1.1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Barre orange courte sous le titre */
.header-decoration {
    width: 44px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 99px;
    margin: 0;
}

.content-body {
    flex: 1;
    padding: var(--space-6); /* Reduced padding for mobile */
    position: relative;
}

.content-panel {
    display: none !important;
    animation: fadeInUp 0.4s ease-out;
}

.content-panel.active {
    display: block !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Styles */
.gallery-header {
    text-align: center;
    margin-bottom: var(--space-8);
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.gallery-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: white;
}

.gallery-header-icon svg {
    width: 28px;
    height: 28px;
}

.gallery-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background-color: var(--bg-tertiary);
}

.gallery-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-5);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-info {
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-fast) 0.1s;
}

.gallery-card:hover .gallery-card-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-card-actions {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-3);
    transform: translateY(-10px);
    opacity: 0;
    transition: all var(--transition-fast) 0.1s;
}

.gallery-card:hover .gallery-card-actions {
    transform: translateY(0);
    opacity: 1;
}

.gallery-action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.gallery-action-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-8);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-tertiary);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--text-secondary);
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.page-indicators {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
}

.page-number:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.page-number.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.page-ellipsis {
    color: var(--text-tertiary);
    font-weight: 600;
    padding: var(--space-2);
}

.close-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    transform: scale(1.1) rotate(90deg);
}

/* Audio Styles */
.section-intro {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.intro-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for mobile */
    gap: var(--space-6);
}

.audio-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    transition: all var(--transition-fast);
}

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

.audio-card.playing {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    border-color: var(--primary-color);
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.audio-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.play-btn.playing {
    background: linear-gradient(135deg, var(--warning-color), #f97316);
}

.download-audio-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.download-audio-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.play-btn svg,
.download-audio-btn svg {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════
   NELL FORMATIONS (Informations)
═══════════════════════════════════════════ */

.nf-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Badge approuvé */
.nf-approved {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, rgba(16,185,129,0.07), rgba(5,150,105,0.04));
    border: 1px solid rgba(16,185,129,0.22);
    border-radius: var(--radius-xl);
}

.nf-approved-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.nf-approved-body { flex: 1; min-width: 0; }

.nf-approved-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

.nf-approved-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nf-approved-sub em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.nf-approved-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: #10b981;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nf-approved-link:hover {
    background: rgba(16,185,129,0.2);
}

/* Grille 3 cadres */
.nf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .nf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .nf-grid { grid-template-columns: 1fr; }
    .nf-approved { flex-direction: column; align-items: flex-start; }
}

/* Card base */
.nf-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.nf-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.nf-card-bday::before   { background: linear-gradient(90deg, #f97316, #fb923c); }
.nf-card-update::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.nf-card-dev::before    { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* Header de card */
.nf-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.nf-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nf-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nf-card-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* Décompte */
.nf-bday-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nf-bday-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 8px 10px;
    flex: 1;
}

.nf-bday-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.nf-bday-lbl {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 3px;
}

.nf-bday-sep {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.35;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* Mise à jour */
.nf-update-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nf-update-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    padding-left: 14px;
    position: relative;
}

.nf-update-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.nf-update-soon {
    color: var(--text-secondary) !important;
    opacity: 0.6;
    font-style: italic;
}

.nf-update-soon::before {
    content: '' !important;
}

/* Dev note */
.nf-dev-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.nf-dev-divider {
    height: 1px;
    background: var(--gray-200);
}

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

.nf-credit-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.nf-credit-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nf-credit-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nf-tiktok-row {
    display: flex;
    gap: 8px;
}

.nf-tiktok-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.nf-tiktok-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Homepage Redesign */
.homepage-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero-section {
    margin-bottom: var(--space-8);
}

.hero-background {
    border-radius: var(--radius-2xl);
    padding: var(--space-14, 3.5rem) var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://i.postimg.cc/bNH3rbwS/Banniere-Principal.png') center/cover no-repeat;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,2,1,0.65) 0%, rgba(5,2,1,0.2) 40%, rgba(5,2,1,0.05) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.92);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.28rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 20px rgba(232,213,176,0.25),
        0 4px 16px rgba(0,0,0,0.9);
    margin-bottom: var(--space-3);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-8);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-stats-container {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-4) var(--space-6);
    background: rgba(30,20,10,0.5);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232,213,176,0.2);
    min-width: 90px;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-stat:hover {
    background: rgba(232,213,176,0.1);
    border-color: rgba(232,213,176,0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(232,213,176,0.12);
}

.hero-stat .stat-number {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #f0e0c0;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.78rem;
    color: rgba(220,200,165,0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── GAME CARD ────────────────────────────────────────── */
.home-game-section {
    margin-bottom: var(--space-6);
}

.home-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.home-game-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(249,115,22,0.18);
    border-color: rgba(249,115,22,0.4);
}

.home-game-card .nell-party-new-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
}

.home-game-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.4s ease;
}

.home-game-card:hover .home-game-card-bg {
    transform: scale(1.04);
}

.home-game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,2,1,0.88) 0%, rgba(5,2,1,0.45) 45%, rgba(5,2,1,0.05) 100%);
    z-index: 2;
}

.home-game-card-body {
    position: relative;
    z-index: 3;
    padding: var(--space-8);
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-6);
}

.home-game-card-info { flex: 1; }

.home-game-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.home-game-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: var(--space-4);
    color: rgba(255,255,255,0.65);
    max-width: 480px;
}

.home-game-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.home-game-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.home-play-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.home-play-btn svg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 6px;
    flex-shrink: 0;
}

.home-play-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(249,115,22,0.45);
}

.home-play-btn:hover svg {
    background: rgba(255,255,255,0.25);
}

/* ── BADGE APPROUVÉ ───────────────────────────────────── */
.home-approved {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, rgba(16,185,129,0.07), rgba(5,150,105,0.05));
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.home-approved-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.home-approved-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-approved-title {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 2px;
}

.home-approved-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.home-approved-sub em {
    font-style: normal;
    color: var(--text-primary);
    font-weight: 500;
}

.home-approved-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.home-approved-link:hover {
    background: rgba(16,185,129,0.22);
    transform: translateY(-2px);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .home-game-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    .home-play-btn { width: 100%; justify-content: center; }
    .home-approved { flex-direction: column; align-items: flex-start; }
    .home-approved-link { align-self: flex-start; }
    .home-bday-countdown { flex-direction: column; gap: var(--space-4); align-items: flex-start; }
}

/* ── DÉCOMPTE ANNIVERSAIRE ACCUEIL ─────────── */
.home-bday-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(234,88,12,0.04));
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.home-bday-countdown::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
}

.home-bday-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.home-bday-emoji {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-bday-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.home-bday-date {
    font-size: 0.72rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-bday-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-bday-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 52px;
}

.home-bday-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.home-bday-lbl {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 3px;
}

.home-bday-sep {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modern-game-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modern-game-card-right {
        padding-right: 0;
        margin-top: var(--space-6);
    }
    
    .modern-play-button {
        width: 120px;
        height: 120px;
    }
    
    .modern-game-card-features {
        justify-content: center;
    }
    
    .game-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .game-features {
        justify-content: center;
    }
    
    .hero-stats-container {
        gap: var(--space-4);
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide old welcome hero */
.welcome-hero {
    display: none;
}

/* Home/Accueil Section Styles */
.welcome-hero {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    margin-bottom: var(--space-8);
    margin-top: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: var(--space-6);
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(249, 115, 22, 0.2));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-access {
    margin-top: var(--space-8);
}

.quick-access h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted for mobile */
    gap: var(--space-6);
}

.quick-access-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.quick-access-card:hover::before {
    opacity: 1;
}

.quick-access-card.nell-party-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    border-color: var(--primary-color);
}

.quick-access-card.nell-party-card:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.15));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.quick-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.quick-icon.party-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.quick-access-card:hover .quick-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.quick-access-card:hover .quick-icon.party-icon {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.quick-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.quick-access-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.quick-access-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Enhanced NEW badge styles for Nell Party buttons - Fixed positioning */
.nell-party-new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);

    z-index: 11;
    line-height: 1;
    border: 2px solid white;
    white-space: nowrap;
}

/* Miss Grill NEW badge - same style but red */
.miss-grill-new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);

    z-index: 10;
    line-height: 1;
    border: 2px solid white;
    white-space: nowrap;
}

.soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: var(--gray-800);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);

    z-index: 10;
    line-height: 1;
    border: 2px solid white;
    white-space: nowrap;
}

.trending-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);

    z-index: 10;
    line-height: 1;
    border: 2px solid white;
    white-space: nowrap;
}

@keyframes newBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes newBadgePulseRed {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.7);
    }
}

@keyframes newBadgePulsePurple {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(139, 92, 246, 0.7);
    }
}

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

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

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes logo-intro {
  from {
    transform: scale(0.5) rotate(-15deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Ensure parent buttons have relative positioning for badge placement */
.party-game-btn,
.mobile-party-btn,
.nell-party-main-btn,
.nav-item[data-tab="miss-grill"],
.mobile-nav-item[data-tab="miss-grill"],
.nav-item[data-tab="gallery"],
.mobile-nav-item[data-tab="gallery"],
.nav-item.disabled,
.mobile-nav-item.disabled {
    position: relative !important;
    overflow: visible !important;
}

/* New style to remove space between logo and party button */
.party-game-section {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

/* Fix desktop sidebar button positioning */
.party-game-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-white);
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    min-height: 64px;
    margin: var(--space-2) 0;
}

.party-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.party-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.party-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.party-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.party-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1;
}

/* Specific fix for home page Nell Party button */
.nell-party-main-btn .nell-party-new-badge {
    top: -12px;
    right: -12px;
    z-index: 2;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .mobile-header,
    .mobile-menu {
        display: none;
    }
    
    .desktop-only {
        display: flex;
    }
    
    .sidebar {
        display: flex;
        width: var(--sidebar-width);
        background: var(--bg-primary);
        border-right: 1px solid var(--gray-200);
        flex-direction: column;
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }

    .sidebar-header {
        padding: 0;
        border-bottom: 1px solid var(--gray-200);
        text-align: center;
        background: var(--bg-secondary);
    }

    .sidebar-logo {
        width: 200px;
        height: 200px;
        object-fit: contain;
        margin: 0 auto;
        filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.2));
        animation: logo-intro 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .nav-menu {
        flex: 1;
        padding: var(--space-2);
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .nav-item {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-5);
        border-radius: var(--radius-xl);
        cursor: pointer;
        transition: all var(--transition-fast);
        font-weight: 600;
        color: var(--text-secondary);
        background: var(--bg-secondary);
        border: 1px solid var(--gray-200);
        min-height: 56px;
    }

    .nav-item:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
        transform: translateX(4px);
        border-color: var(--gray-300);
    }

    .nav-item.disabled {
        background-color: var(--bg-tertiary);
        opacity: 1;
        cursor: not-allowed;
    }

    .nav-item.disabled .nav-text, .nav-item.disabled .nav-icon {
        color: var(--text-tertiary);
        opacity: 0.7;
    }

    .nav-item.disabled:hover {
        background-color: var(--bg-tertiary);
        color: var(--text-secondary);
        transform: none;
        border-color: var(--gray-200);
    }

    .nav-item.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--text-white);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-item[data-tab="gallery"] {
        border-color: #8b5cf6;
        border-width: 2px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-icon svg {
        width: 100%;
        height: 100%;
        stroke-width: 2;
    }

    .nav-text {
        font-size: 1rem;
        font-weight: 600;
    }

    .sidebar-footer {
        padding: var(--space-6);
        border-top: 1px solid var(--gray-200);
        background: var(--bg-secondary);
    }

    .main-area {
        margin-left: var(--sidebar-width);
        margin-top: 0;
        background: var(--bg-secondary);
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    /* content-body scroll pour les sections normales */
    .content-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }
    .content-body::-webkit-scrollbar { display: none; }
    
    .content-header {
        display: flex !important;
        flex-direction: column;
        background: var(--bg-primary);
        border-bottom: 1px solid #ebebeb;
        padding: 16px 48px 14px;
        position: sticky;
        top: 0;
        z-index: 50;
        flex-shrink: 0;
        min-height: 60px;
    }

    .content-body {
        padding: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }
    .content-body::-webkit-scrollbar { display: none; }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--space-8);
    }

    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: var(--space-6);
    }

    .welcome-hero {
        padding: var(--space-16);
        margin-bottom: var(--space-12);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-stats {
        gap: var(--space-12);
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: var(--space-10);
    }

    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: var(--space-8);
    }

    .content-body {
        padding: var(--space-12);
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-item,
    .play-btn,
    .action-btn,
    .pagination-btn,
    .party-game-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-item:hover {
        transform: none;
    }
    
    .nav-item:active {
        transform: scale(0.95);
        background: var(--bg-tertiary);
    }
    
    .nav-item.active:active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .gallery-card:hover {
        transform: none;
    }
    
    .gallery-card:active {
        transform: scale(0.98);
    }
    
    .action-btn:hover,
    .play-btn:hover {
        transform: none;
    }
    
    .action-btn:active,
    .play-btn:active {
        transform: scale(0.9);
    }
}

/* Records popup specific styles */
.records-popup {
    max-width: 600px;
}

.records-intro {
    margin-bottom: var(--space-6);
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.record-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-fast);
}

.record-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.record-card.highlight {
    border-color: var(--primary-color);
    background: rgba(255, 69, 0, 0.1);
}

.record-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.record-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-1);
}

.record-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.record-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.records-footer {
    text-align: center;
    margin-bottom: var(--space-6);
}

.motivational-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Hide elements that need to be populated by JS */
.hidden {
    display: none !important;
}

/* Party Game Fullscreen Styles */
.party-game-fullscreen {
    font-family: 'Poppins', sans-serif;
}

.party-game-fullscreen.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.party-pause-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05);
}

.party-control-button:hover,
.party-control-button:active {
    background: rgba(249, 115, 22, 0.7) !important;
    border-color: #f97316 !important;
    transform: scale(1.05);
}

.party-game-over-overlay,
.party-pause-overlay {
    font-family: 'Poppins', sans-serif;
}

.party-game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(45, 10, 10, 0.95) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    color: white;
    z-index: 20;
    min-width: min(400px, 90vw);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.party-game-over h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.defeat-cause-container {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.defeat-cause-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--space-3);
}

.defeat-cause-image-container {
    display: flex;
    justify-content: center;
}

.defeat-cause-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-2);
}

.party-final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.party-final-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.party-final-stat-value {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.party-final-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 600;
}

.party-game-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.party-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 48px;
    min-width: 120px;
    justify-content: center;
}

.party-action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.party-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.party-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.party-action-btn.primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.party-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pause Menu Styles */
.party-pause-menu {
    font-family: 'Poppins', sans-serif;
}

.pause-menu-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pause-menu-body p {
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.pause-menu-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Countdown Animation */
/* ── COUNTDOWN ─────────────────────────────────────── */
.np-countdown-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #0f0a1e 0%, #1a0503 100%);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.np-countdown-overlay.np-countdown-visible {
    opacity: 1;
}

.np-countdown-num {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4rem, 22vw, 14rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    user-select: none;
    text-align: center;
    opacity: 0;
    transform: scale(0.6);
    will-change: transform, opacity;
}

.np-countdown-num.np-countdown-pop {
    animation: np-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.np-countdown-num.np-countdown-go {
    color: #f97316;
    text-shadow: 0 0 40px rgba(249,115,22,0.6), 0 0 80px rgba(249,115,22,0.3);
}

@keyframes np-pop {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── PANEL (PAUSE + GAME OVER) ─────────────────────── */
.np-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 19;
}

.np-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    z-index: 20;
    width: min(420px, 92vw);
    background: linear-gradient(160deg, #0f0a1e 0%, #0a0612 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 28px 64px rgba(0,0,0,0.8), 0 0 80px rgba(139,92,246,0.08);
    color: white;
}

.np-panel.np-panel-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.np-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.np-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.np-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.np-panel-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

.np-panel-accent {
    height: 2px;
    flex-shrink: 0;
}

/* Stats game over */
.np-defeat-cause {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: rgba(239,68,68,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.np-defeat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.np-defeat-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-left: auto;
    filter: drop-shadow(0 0 8px rgba(239,68,68,0.5));
}

.np-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.np-stat-item {
    background: linear-gradient(160deg, #0f0a1e, #0a0612);
    padding: 16px;
    text-align: center;
}

.np-stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.np-stat-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Setting row (pause) */
.np-setting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.np-setting-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.np-setting-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.np-setting-label { font-size: 0.88rem; font-weight: 700; color: #fff; }
.np-setting-desc { font-size: 0.7rem; color: rgba(255,255,255,0.38); margin-top: 2px; }

/* Boutons actions */
.np-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 22px 20px;
}

.np-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    letter-spacing: 0.02em;
}

.np-btn:hover { transform: translateY(-2px); }
.np-btn:active { transform: translateY(0); }

.np-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 18px rgba(249,115,22,0.35);
}

.np-btn-primary:hover { box-shadow: 0 8px 28px rgba(249,115,22,0.5); }

.np-btn-secondary {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.3);
    color: #c4b5fd;
}

.np-btn-secondary:hover { background: rgba(139,92,246,0.22); }

.np-btn-ghost {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
}

.np-btn-ghost:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }

/* Combat Pass Button Styles */
.combat-pass-container {
    position: relative;
    display: inline-block;
}

.combat-pass-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    border: none;
    border-radius: var(--radius-2xl);
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 2rem);
    color: white;
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.2rem);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    position: relative;
    min-width: 180px;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.combat-pass-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.combat-pass-btn:disabled {
    filter: grayscale(0.3);
    box-shadow: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.combat-pass-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

/* Nell Pass Popup Styles */
.nell-pass-popup {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.nell-pass-popup::-webkit-scrollbar {
    width: 8px;
}

.nell-pass-popup::-webkit-scrollbar-track {
    background: transparent;
}

.nell-pass-popup::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.nell-pass-popup::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.close-nell-pass-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .play-confirm-btn,
    .combat-pass-btn {
        width: 100%;
        max-width: 280px;
    }

    .nell-pass-popup {
        max-height: 90vh;
        padding: 1rem;
    }

    .rewards-container {
        max-height: 350px;
    }

    .reward-item {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }

    .level-badge {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
    }
}

.records-btn {
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    min-height: 64px;
    margin: var(--space-2) 0;
}

.records-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Export Button Styles */
.export-data-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    opacity: 1 !important;
}

.export-data-btn:active {
    transform: scale(1.05) !important;
}

/* Save/Import Button Styles */
.save-data-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    opacity: 1 !important;
}

.save-data-btn:active {
    transform: scale(1.05) !important;
}

.import-data-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
    opacity: 1 !important;
}

.import-data-btn:active {
    transform: scale(1.05) !important;
}

/* Miss Grill Restaurant Menu Styles */
/* ══════════════════════════════════════════════════════════════════ */

.mg-container {
    max-width: none;
    width: 100%;
    padding: 0 0 40px;
    box-sizing: border-box;
}

/* ── HERO ─────────────────────────────────── */
.mg-hero {
    position: relative;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 44px 24px 38px;
    text-align: center;
}
.mg-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(249,115,22,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(251,191,36,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.mg-hero-content { position: relative; z-index: 1; }
.mg-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.35);
    color: #c2410c;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    padding: 5px 14px; border-radius: 99px;
    margin-bottom: 14px;
}
.mg-hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 900;
    color: #9a3412;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.mg-hero-sub {
    font-size: 0.88rem;
    color: #78350f;
    opacity: 0.8;
    margin: 0 0 20px;
    font-style: italic;
}
.mg-hero-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin: 0 auto 24px; max-width: 180px;
}
.mg-hero-divider span:not(.mg-hero-diamond) {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.5), transparent);
}
.mg-hero-diamond { color: #f97316; font-size: 0.65rem; }
.mg-hero-btns {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.mg-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 20px; border-radius: 12px;
    font-size: 0.82rem; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.2s ease;
}
.mg-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
.mg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.55); }
.mg-btn-secondary {
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    color: #c2410c;
}
.mg-btn-secondary:hover { background: #fff7ed; transform: translateY(-2px); border-color: #f97316; }

/* ── STATS ─────────────────────────────────── */
.mg-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.mg-stat-item {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.mg-stat-item:hover {
    border-color: rgba(249,115,22,0.3);
    box-shadow: 0 4px 16px rgba(249,115,22,0.12);
    transform: translateY(-2px);
}
.mg-stat-icon { display: block; font-size: 1.3rem; margin-bottom: 5px; line-height: 1; }
.mg-stat-val {
    display: block;
    font-size: 0.88rem; font-weight: 900; color: #1e293b;
    margin-bottom: 3px; line-height: 1.2;
}
.mg-stat-lbl {
    font-size: 0.58rem; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .07em; line-height: 1.3;
}

/* ── GRID HISTOIRE + CARTE ─────────────────── */
.mg-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.mg-story-card, .mg-menu-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.mg-card-label {
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .15em;
    color: #f97316;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.mg-card-label::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(249,115,22,0.3), transparent);
}
.mg-story-text {
    font-size: 0.82rem; color: #475569;
    line-height: 1.65; margin: 0 0 10px;
}
.mg-story-text strong { color: #1e293b; }

/* Distinctions */
.mg-distinctions { display: flex; flex-direction: column; gap: 6px; }
.mg-distinction-item {
    font-size: 0.76rem; color: #475569;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 7px 11px;
    transition: background 0.15s;
}
.mg-distinction-item:hover { background: #ffedd5; }

/* Carte image */
.mg-menu-img-wrap {
    position: relative; border-radius: 10px;
    overflow: hidden; cursor: pointer;
    border: 1px solid #e2e8f0;
}
.mg-menu-img {
    width: 100%; display: block;
    transition: transform 0.4s ease;
    min-height: 80px;
    background: #f8fafc;
}
.mg-menu-img-wrap:hover .mg-menu-img { transform: scale(1.04); }
.mg-menu-img-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.mg-menu-img-wrap:hover .mg-menu-img-overlay { opacity: 1; }
.mg-zoom-btn {
    display: flex; align-items: center; gap: 7px;
    background: #f97316; color: white;
    font-size: 0.8rem; font-weight: 700;
    padding: 8px 16px; border-radius: 99px;
}
.mg-menu-hint {
    font-size: 0.65rem; color: #94a3b8;
    text-align: center; margin: 7px 0 0;
    font-style: italic;
}

/* Horaires */
.mg-horaires { display: flex; flex-direction: column; gap: 4px; }
.mg-horaire-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.74rem; color: #64748b;
    padding: 6px 10px; border-radius: 8px;
    background: #f8fafc;
}
.mg-horaire-row span:last-child { color: #1e293b; font-weight: 700; }
.mg-horaire-weekend {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.mg-horaire-weekend span:last-child { color: #ea580c; }

/* ── SECTION TITRE ─────────────────────────── */
.mg-section-title {
    font-size: 0.95rem; font-weight: 800; color: #1e293b;
    margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.mg-section-title::after {
    content: ''; flex: 1; height: 1.5px;
    background: linear-gradient(90deg, rgba(249,115,22,0.35), transparent);
}

/* ── AVIS ─────────────────────────────────── */
.mg-avis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.mg-avis-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.mg-avis-card:hover {
    border-color: #fed7aa;
    box-shadow: 0 4px 16px rgba(249,115,22,0.1);
    transform: translateY(-2px);
}
.mg-avis-stars { font-size: 0.7rem; margin-bottom: 7px; }
.mg-avis-text {
    font-size: 0.78rem; color: #475569;
    line-height: 1.55; margin: 0 0 8px;
    font-style: italic;
}
.mg-avis-author {
    font-size: 0.7rem; font-weight: 700;
    color: #f97316;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 600px) {
    .mg-main-grid { grid-template-columns: 1fr; }
    .mg-avis-grid { grid-template-columns: 1fr; }
    .mg-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mg-hero { padding: 32px 16px 28px; }
    .mg-hero-title { font-size: 2rem; }
    .mg-hero-btns { gap: 8px; }
    .mg-btn { padding: 10px 16px; font-size: 0.78rem; }
}


/* ── POPUP RÉSERVATION ─────────────────────── */
.mg-popup-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    transition: opacity 0.3s ease;
}
.mg-popup-hidden { display: none !important; }
.mg-popup-card {
    background: #ffffff;
    border-radius: 22px;
    width: min(94vw, 560px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,115,22,0.15);
    animation: mgPopIn 0.35s cubic-bezier(0.34,1.4,0.64,1);
}
@keyframes mgPopIn {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.mg-popup-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 0;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.mg-popup-title { font-size: 1.1rem; font-weight: 900; color: #9a3412; }
.mg-popup-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.mg-popup-close {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.8rem; color: #64748b;
    flex-shrink: 0; transition: all 0.15s;
}
.mg-popup-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.mg-popup-form { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.mg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-form-group { display: flex; flex-direction: column; gap: 5px; }
.mg-form-group label {
    font-size: 0.72rem; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: .06em;
}
.mg-form-group input,
.mg-form-group select,
.mg-form-group textarea {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.84rem;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.18s;
    font-family: inherit;
    width: 100%; box-sizing: border-box;
}
.mg-form-group input:focus,
.mg-form-group select:focus,
.mg-form-group textarea:focus {
    border-color: #f97316;
    background: #fff7ed;
}
.mg-form-group textarea { resize: vertical; min-height: 70px; }
.mg-popup-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; border: none; border-radius: 12px;
    padding: 13px 24px; font-size: 0.9rem; font-weight: 800;
    cursor: pointer; width: 100%;
    box-shadow: 0 4px 16px rgba(249,115,22,0.35);
    transition: all 0.2s;
}
.mg-popup-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.5); }
@media (max-width: 480px) {
    .mg-form-row { grid-template-columns: 1fr; }
    .mg-popup-card { border-radius: 18px; }
}


/* Nell Party Menu - Complete Redesign */
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 1; }
}

.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    transform: scale(1.1) rotate(90deg);
}

/* Hero Section */
.menu-hero {
    /* Même padding horizontal que la grille (12px) pour aligner logo et boutons */
    padding: 18px 12px 8px;
    flex-shrink: 0;
    animation: fadeInDown 0.5s ease-out;
    /* Centrage par rapport à la grille en dessous */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}

/* ── Ancien badge BETA — supprimé ── */
.np-beta-badge { display: none !important; }

/* ── Nouveau logo officiel ── */
.menu-logo-new {
    width: 82%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    animation: logoFloat 4s ease-in-out infinite;
    will-change: transform;
    filter:
        drop-shadow(0 6px 18px rgba(0,0,0,0.45))
        drop-shadow(0 0 28px rgba(249,115,22,0.4));
}

/* Legacy — caché si encore présent */
.menu-logo-img:not(.menu-logo-new) {
    display: none !important;
}
.menu-logo-img.menu-logo-new {
    display: block !important;
}

/* ── Ancienne subtitle supprimée ── */
.menu-subtitle { display: none !important; }
.menu-title { display: none !important; }

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
        filter:
            drop-shadow(0 6px 18px rgba(0,0,0,0.45))
            drop-shadow(0 0 28px rgba(249,115,22,0.4));
    }
    50% {
        transform: translateY(-4px);
        filter:
            drop-shadow(0 10px 24px rgba(0,0,0,0.4))
            drop-shadow(0 0 40px rgba(249,115,22,0.6));
    }
}

/* Content Grid */
.menu-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 12px 12px;
    flex: 1;
    align-content: center;
    animation: fadeInUp 0.5s ease-out 0.15s both;
    overflow: hidden;
    min-height: 0;
}

.menu-content-grid::-webkit-scrollbar {
    display: none;
}

/* Menu Cards */
/* ══════════════════════════════════════════════════════════
   NELL PARTY MENU CARDS — REDESIGN PREMIUM GAMING
   ══════════════════════════════════════════════════════════ */

/* Base card */
/* ═══════════════════════════════════════════════════════════
   NELL PARTY — MENU CARDS — CREAM / BEACH / GAMING PREMIUM
   ═══════════════════════════════════════════════════════════ */

.menu-card {
    position: relative;
    border-radius: 16px;
    padding: 14px 12px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    /* Hauteur fixe compacte */
    height: 96px;
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
    /* Fond crème/beige chaleureux — solide, pas transparent */
    background: linear-gradient(160deg, #fdf6ec 0%, #f5e8d0 100%);
    border: 1.5px solid rgba(200,160,100,0.35);
    box-shadow:
        0 2px 8px rgba(100,60,10,0.12),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition:
        transform 0.18s cubic-bezier(0.34,1.3,0.64,1),
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    isolation: isolate;
}

.menu-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(100,60,10,0.18),
        0 2px 6px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.95);
    border-color: rgba(200,140,60,0.55);
}
.menu-card:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Shimmer subtil */
.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: 250% 0;
    transition: background-position 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.menu-card:hover::before { background-position: -250% 0; }

/* ── Icône ── */
.mc-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.mc-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    flex-shrink: 0;
}
.mc-icon img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.menu-card:hover .mc-icon { transform: scale(1.1) rotate(-4deg); }

/* ── Texte ── */
.mc-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 4px;
    box-sizing: border-box;
}
.mc-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.mc-desc {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Badge NEW ── */
.menu-card.is-new::after {
    content: 'NEW';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 2px 6px;
    border-radius: 99px;
    box-shadow: 0 2px 6px rgba(249,115,22,0.4);
    pointer-events: none;
    z-index: 2;
}

/* ══ COULEURS PAR CARTE ════════════════════════════════════ */

/* Nell Pass — violet profond */
.menu-card-pass {
    background: linear-gradient(145deg, #3d1870 0%, #2d1259 100%);
    border-color: rgba(167,139,250,0.35);
    box-shadow: 0 2px 10px rgba(76,29,149,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.menu-card-pass:hover {
    border-color: rgba(196,181,253,0.55);
    box-shadow: 0 6px 22px rgba(109,40,217,0.3), 0 0 18px rgba(139,92,246,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-pass {
    background: linear-gradient(135deg, rgba(167,139,250,0.35), rgba(109,40,217,0.25));
    border-color: rgba(196,181,253,0.45);
    box-shadow: 0 0 10px rgba(139,92,246,0.3);
    color: #ddd6fe;
}
.menu-card-pass .mc-title { color: #ede9fe; }
.menu-card-pass .mc-desc  { color: rgba(221,214,254,0.6); }

/* Records — ambre doré */
.menu-card-records {
    background: linear-gradient(145deg, #7c4a00 0%, #5c3500 100%);
    border-color: rgba(251,191,36,0.35);
    box-shadow: 0 2px 10px rgba(120,70,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.menu-card-records:hover {
    border-color: rgba(253,230,138,0.55);
    box-shadow: 0 6px 22px rgba(180,110,0,0.3), 0 0 18px rgba(251,191,36,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-records {
    background: linear-gradient(135deg, rgba(251,191,36,0.38), rgba(180,130,10,0.25));
    border-color: rgba(253,230,138,0.45);
    box-shadow: 0 0 10px rgba(251,191,36,0.3);
    color: #fef3c7;
}
.menu-card-records .mc-title { color: #fef3c7; }
.menu-card-records .mc-desc  { color: rgba(253,230,138,0.6); }

/* Casier — vert forêt */
.menu-card-locker {
    background: linear-gradient(145deg, #064e35 0%, #043d28 100%);
    border-color: rgba(52,211,153,0.30);
    box-shadow: 0 2px 10px rgba(5,80,50,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.menu-card-locker:hover {
    border-color: rgba(110,231,183,0.50);
    box-shadow: 0 6px 22px rgba(5,100,60,0.28), 0 0 18px rgba(16,185,129,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-locker {
    background: linear-gradient(135deg, rgba(16,185,129,0.38), rgba(5,150,105,0.25));
    border-color: rgba(110,231,183,0.42);
    box-shadow: 0 0 10px rgba(16,185,129,0.28);
    color: #a7f3d0;
}
.menu-card-locker .mc-title { color: #d1fae5; }
.menu-card-locker .mc-desc  { color: rgba(167,243,208,0.55); }

/* Paramètres — bleu marine */
.menu-card-settings {
    background: linear-gradient(145deg, #1e3a8a 0%, #1e2f6e 100%);
    border-color: rgba(96,165,250,0.30);
    box-shadow: 0 2px 10px rgba(20,40,130,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.menu-card-settings:hover {
    border-color: rgba(147,197,253,0.52);
    box-shadow: 0 6px 22px rgba(30,60,175,0.28), 0 0 18px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-settings {
    background: linear-gradient(135deg, rgba(59,130,246,0.38), rgba(30,64,175,0.25));
    border-color: rgba(147,197,253,0.42);
    box-shadow: 0 0 10px rgba(59,130,246,0.28);
    color: #bfdbfe;
}
.menu-card-settings .mc-title { color: #dbeafe; }
.menu-card-settings .mc-desc  { color: rgba(191,219,254,0.55); }

/* Comment jouer — orange vif */
.menu-card-howtoplay {
    background: linear-gradient(145deg, #9a3412 0%, #7c2d12 100%);
    border-color: rgba(251,146,60,0.32);
    box-shadow: 0 2px 10px rgba(154,52,18,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.menu-card-howtoplay:hover {
    border-color: rgba(253,186,116,0.52);
    box-shadow: 0 6px 22px rgba(180,60,10,0.28), 0 0 18px rgba(249,115,22,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-howtoplay {
    background: linear-gradient(135deg, rgba(249,115,22,0.40), rgba(234,88,12,0.25));
    border-color: rgba(253,186,116,0.45);
    box-shadow: 0 0 10px rgba(249,115,22,0.28);
    color: #fed7aa;
}
.menu-card-howtoplay .mc-title { color: #ffedd5; }
.menu-card-howtoplay .mc-desc  { color: rgba(254,215,170,0.55); }

/* TikFinity — rose fushia */
.menu-card-tikfinity {
    background: linear-gradient(145deg, #831843 0%, #6d1438 100%);
    border-color: rgba(249,168,212,0.30);
    box-shadow: 0 2px 10px rgba(131,24,67,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.menu-card-tikfinity:hover {
    border-color: rgba(251,207,232,0.50);
    box-shadow: 0 6px 22px rgba(180,24,90,0.28), 0 0 18px rgba(236,72,153,0.15), inset 0 1px 0 rgba(255,255,255,0.10);
}
.mc-icon-tikfinity {
    background: linear-gradient(135deg, rgba(236,72,153,0.40), rgba(190,24,93,0.25));
    border-color: rgba(249,168,212,0.45);
    box-shadow: 0 0 10px rgba(236,72,153,0.28);
}
.menu-card-tikfinity .mc-title { color: #fce7f3; }
.menu-card-tikfinity .mc-desc  { color: rgba(251,207,232,0.55); }

/* Locked */
.menu-card-locked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.menu-card-locked:hover { transform: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .menu-card {
        height: 84px;
        padding: 11px 10px 10px;
        gap: 6px;
        border-radius: 13px;
    }
    .mc-icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 9px; }
    .mc-icon svg { width: 15px; height: 15px; }
    .mc-icon img  { width: 17px; height: 17px; }
    .mc-title { font-size: 0.72rem; }
    .mc-desc  { font-size: 0.54rem; }
}
@media (min-width: 768px) {
    .menu-card {
        height: 104px;
        padding: 16px 14px 13px;
        gap: 8px;
        border-radius: 18px;
    }
    .mc-icon { width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 12px; }
    .mc-icon svg { width: 19px; height: 19px; }
    .mc-icon img  { width: 21px; height: 21px; }
    .mc-title { font-size: 0.84rem; }
    .mc-desc  { font-size: 0.62rem; }
}

/* Play Card - Featured */
/* REMADE PLAY BUTTON STYLES */
.menu-card-play {
    grid-column: span 2;
    background: transparent !important;
    border: none !important;
    height: 91px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(249,115,22,0.3);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.menu-card-play:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.5);
}

.play-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff8c42 0%, #f97316 50%, #ea580c 100%);
    z-index: 0;
}




.play-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 100%;
    width: 100%;
}

.play-icon-container {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(-5deg);
    border: 2px solid rgba(255,255,255,0.4);
}

.play-icon-container svg {
    width: 50%;
    height: 50%;
    color: white;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.menu-card-play:hover .play-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: white;
    border-color: white;
}

.menu-card-play:hover .play-icon-container svg {
    color: #ea580c;
}

.play-text-content {
    flex: 1;
    padding: 0 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.play-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-style: italic;
}

.play-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    margin: 0.25rem 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.play-action-icon {
    width: clamp(32px, 6vw, 48px);
    height: clamp(32px, 6vw, 48px);
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.play-action-icon svg {
    width: 50%;
    height: 50%;
}

.menu-card-play:hover .play-action-icon {
    background: white;
    color: #ea580c;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
    .play-text-content {
        padding: 0 1rem;
    }
    .play-action-icon {
        display: none;
    }
    .play-icon-container {
        transform: rotate(0deg);
    }
    .menu-card-play:hover .play-icon-container {
        transform: scale(1.1);
    }
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-badge-locked {
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge-locked svg {
    width: 14px;
    height: 14px;
}

/* Footer */
.menu-footer {
    display: none;
    margin-top: clamp(1rem, 2vh, 1.5rem);
    padding: 0 clamp(0.75rem, 2vw, 1rem);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.coming-soon-card {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.2) 0%, rgba(71, 85, 105, 0.15) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    opacity: 0.7;
}

.coming-soon-icon {
    width: clamp(35px, 6vw, 45px);
    height: clamp(35px, 6vw, 45px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coming-soon-icon svg {
    width: 60%;
    height: 60%;
    color: rgba(255, 255, 255, 0.6);
}

.coming-soon-content h4 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.25rem;
}

.coming-soon-badge {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
}

@keyframes titleShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 123, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 123, 0, 0.6)); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes kenBurnsBackground {
    0% {
        transform: scale(1.1) rotate(0deg) translate(0, 0);
    }
    25% {
        transform: scale(1.1) rotate(-1deg) translate(2%, -2%);
    }
    50% {
        transform: scale(1.05) rotate(1deg) translate(-2%, 2%);
    }
    75% {
        transform: scale(1.1) rotate(-1deg) translate(-2%, -2%);
    }
    100% {
        transform: scale(1.1) rotate(0deg) translate(0, 0);
    }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .menu-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-card-play {
        grid-column: span 2;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .menu-card, .menu-logo-img, .card-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* New overlay style for Nell Party Menu */
.nell-party-confirmation-overlay {
    position: relative;
    background-color: #020d1a;
}

.nell-party-confirmation-overlay::before {
    content: '';
    position: absolute;
    inset: -8%;
    background: url('https://i.postimg.cc/c15djgSw/Fond-Nell-Party.png') center/cover no-repeat;
    background-color: #1d0703;
    z-index: 1;
    animation: kenBurnsBackground 30s ease-in-out infinite;
    will-change: transform;
}

/* Nell Party popup close button animations */
.close-settings-btn:hover,
.close-nell-pass-btn:hover,
.close-confirmation-btn:hover,
.close-game-data-btn:hover,
.close-locker-btn:hover,
.close-tikfinity-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    transform: scale(1.15) rotate(90deg) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.close-settings-btn:active,
.close-nell-pass-btn:active,
.close-confirmation-btn:active,
.close-game-data-btn:active,
.close-locker-btn:active,
.close-tikfinity-btn:active {
    transform: scale(0.95) rotate(90deg) !important;
}

.close-settings-btn svg,
.close-nell-pass-btn svg,
.close-confirmation-btn svg,
.close-game-data-btn svg,
.close-locker-btn svg,
.close-tikfinity-btn svg {
    transition: all 0.3s ease;
}

/* Snowfall Effect */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -5vh; /* Start above the screen */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: fall linear infinite;
    --sway-amount: 0px; /* default value */
}

@keyframes fall {
    to {
        transform: translateY(105vh) translateX(var(--sway-amount));
    }
}


/* ════════════════════════════════════════════════════════
   AJOUTS V6 — NellouCrabe Gaming (ne pas toucher aux sections existantes)
   ════════════════════════════════════════════════════════ */

/* ── HERO NELLOUCRABE — BEIGE ────────────── */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,2,1,0.65) 0%, rgba(5,2,1,0.2) 40%, rgba(5,2,1,0.05) 100%);
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.92);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: .28rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}
.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    margin-bottom: var(--space-3);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-8);
    font-weight: 500;
    line-height: 1.5;
}
.hero-stats-container {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-4) var(--space-6);
    background: rgba(30,20,10,0.5);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232,213,176,.22);
    min-width: 90px;
    transition: all var(--transition-fast);
}
.hero-stat:hover {
    background: rgba(232,213,176,.1);
    border-color: rgba(232,213,176,.4);
    transform: translateY(-3px);
}
.hero-stat .stat-number {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #f0e0c0;
    line-height: 1;
}
.hero-stat .stat-label {
    font-size: .78rem;
    color: rgba(220,200,165,.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── CARD NELL PARTY ACCUEIL ─────────────── */
.home-game-section { margin-bottom: var(--space-6); }
.home-section-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: var(--space-4); }
.home-game-card { position: relative; border-radius: var(--radius-2xl); overflow: hidden; cursor: pointer; min-height: 240px; display: flex; align-items: flex-end; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 12px 40px rgba(0,0,0,.2); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.home-game-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(249,115,22,.18); border-color: rgba(249,115,22,.4); }
.home-game-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s ease; }
.home-game-card:hover .home-game-card-bg { transform: scale(1.04); }
.home-game-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,2,1,.88) 0%, rgba(5,2,1,.45) 45%, rgba(5,2,1,.05) 100%); z-index: 2; }
.home-game-card-body { position: relative; z-index: 3; padding: var(--space-8); color: white; display: flex; align-items: flex-end; justify-content: space-between; width: 100%; gap: var(--space-6); }
.home-game-card-info { flex: 1; }
.home-game-title { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 900; margin-bottom: var(--space-2); background: linear-gradient(135deg,#fff 0%,var(--primary-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.home-game-desc { font-size: .95rem; line-height: 1.55; margin-bottom: var(--space-4); color: rgba(255,255,255,.65); max-width: 480px; }
.home-game-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.home-game-tag { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-full); padding: .25rem .75rem; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); }
.home-play-btn { flex-shrink: 0; display: flex; align-items: center; gap: 10px; background: white; color: #111; border: none; border-radius: 999px; padding: .85rem 1.8rem; font-size: 1rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,.35); transition: all .2s ease; white-space: nowrap; text-transform: uppercase; }
.home-play-btn svg { background: linear-gradient(135deg,var(--primary-color),var(--secondary-color)); color: white; border-radius: 50%; width: 32px; height: 32px; padding: 6px; flex-shrink: 0; }
.home-play-btn:hover { background: var(--primary-color); color: white; transform: scale(1.06); box-shadow: 0 8px 32px rgba(249,115,22,.45); }
.home-play-btn:hover svg { background: rgba(255,255,255,.25); }
@media (max-width: 768px) {
    .home-game-card-body { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
    .home-play-btn { width: 100%; justify-content: center; }
}

/* ── DÉCOMPTE ANNIVERSAIRE ACCUEIL ──────── */
.home-bday-countdown { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); background: linear-gradient(135deg,rgba(249,115,22,.06),rgba(234,88,12,.04)); border: 1px solid rgba(249,115,22,.2); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.home-bday-countdown::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,var(--primary-color),var(--secondary-color),transparent); }
.home-bday-left { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.home-bday-emoji { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.home-bday-title { font-size: .92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.home-bday-date { font-size: .72rem; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.home-bday-timer { display: flex; align-items: center; gap: 6px; }
.home-bday-unit { display: flex; flex-direction: column; align-items: center; background: var(--bg-secondary); border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 12px; min-width: 52px; }
.home-bday-num { font-size: 1.4rem; font-weight: 900; color: var(--primary-color); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.home-bday-lbl { font-size: .6rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 3px; }
.home-bday-sep { font-size: 1.2rem; font-weight: 900; color: var(--primary-color); opacity: .4; margin-bottom: 12px; flex-shrink: 0; }
@media (max-width: 640px) { .home-bday-countdown { flex-direction: column; gap: var(--space-4); align-items: flex-start; } }

/* ── MISS GRILL ──────────────────────────── */
.mg-container { max-width: none; width: 100%; padding: 0 40px; box-sizing: border-box; }
.mg-hero { text-align: center; padding: var(--space-12) var(--space-6) var(--space-10); }
.mg-hero-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #b8860b; background: rgba(184,134,11,.1); border: 1px solid rgba(184,134,11,.35); border-radius: 99px; padding: .3rem 1.1rem; margin-bottom: var(--space-5); }
.mg-hero-title { font-family: 'Poppins',sans-serif; font-size: clamp(3.2rem,8vw,5.5rem); font-weight: 900; color: var(--text-primary); letter-spacing: -.03em; line-height: 1; margin-bottom: var(--space-4); }
.mg-hero-sub { font-size: 1rem; color: var(--text-secondary); font-weight: 500; font-style: italic; letter-spacing: .04em; margin-bottom: var(--space-8); }
.mg-hero-divider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.mg-hero-divider span:not(.mg-hero-diamond) { display: block; width: 80px; height: 1px; background: linear-gradient(90deg,transparent,rgba(184,134,11,.4),transparent); }
.mg-hero-diamond { color: #b8860b; font-size: .6rem; opacity: .7; }
.mg-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 768px) { .mg-main-grid { grid-template-columns: 1fr; } }
.mg-card-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b8860b; margin-bottom: var(--space-5); display: flex; align-items: center; gap: 8px; }
.mg-card-label::before { content: ''; display: block; width: 20px; height: 1px; background: #b8860b; opacity: .5; }
.mg-story-card { background: var(--bg-primary); border: 1px solid var(--gray-200); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-md); }
.mg-story-text { font-size: .95rem; color: var(--text-secondary); line-height: 1.75; margin: 0; }
.mg-story-text strong { color: var(--text-primary); font-weight: 700; }
.mg-story-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.mg-story-stat { text-align: center; padding: 12px 8px; background: var(--bg-secondary); border: 1px solid rgba(184,134,11,.2); border-radius: 12px; }
.mg-story-stat-val { font-size: 1rem; font-weight: 800; color: #b8860b; line-height: 1; margin-bottom: 5px; }
.mg-story-stat-lbl { font-size: .62rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mg-menu-card { background: var(--bg-primary); border: 1px solid var(--gray-200); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); }
.mg-menu-img-wrap { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid rgba(184,134,11,.25); }
.mg-menu-img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.mg-menu-img-wrap:hover .mg-menu-img { transform: scale(1.03); }
.mg-menu-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background .25s ease; }
.mg-menu-img-wrap:hover .mg-menu-img-overlay { background: rgba(0,0,0,.42); }
.mg-zoom-btn { display: flex; align-items: center; gap: 8px; background: #b8860b; color: #fff; font-size: .82rem; font-weight: 800; padding: 10px 18px; border-radius: 99px; opacity: 0; transform: scale(.85); transition: opacity .25s ease,transform .25s ease; text-transform: uppercase; letter-spacing: .06em; }
.mg-menu-img-wrap:hover .mg-zoom-btn { opacity: 1; transform: scale(1); }
.mg-menu-hint { text-align: center; font-size: .72rem; color: var(--text-secondary); font-style: italic; margin-top: 12px; margin-bottom: 0; opacity: .6; }

/* ── NELLFORMATIONS — REFAIT ─────────────── */
.nf-page { max-width: none; width: 100%; padding: 0 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }

.nf-header { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.nf-header-title { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); margin: 0; }
.nf-header-sub { font-size: .88rem; color: var(--text-secondary); margin-top: 3px; }

.nf-main-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .nf-main-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .nf-main-grid { grid-template-columns: 1fr; } }

.nf-card { background: var(--bg-primary); border: 1px solid var(--gray-200); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.nf-card-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 18px 18px 0 0; }
.nf-bar-orange { background: linear-gradient(90deg,#f97316,#fb923c); }
.nf-bar-blue   { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.nf-bar-purple { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }

.nf-card-head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.nf-card-emoji { font-size: 1.5rem; flex-shrink: 0; }
.nf-card-title { font-size: .95rem; font-weight: 800; color: var(--text-primary); }
.nf-card-sub { font-size: .7rem; color: var(--text-secondary); margin-top: 2px; }

/* Décompte */
.nf-countdown-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.nf-cd-unit { display: flex; flex-direction: column; align-items: center; background: var(--bg-secondary); border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px; flex: 1; }
.nf-cd-num { font-size: 1.4rem; font-weight: 900; color: var(--primary-color); line-height: 1; font-variant-numeric: tabular-nums; }
.nf-cd-lbl { font-size: .55rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-top: 3px; }
.nf-cd-sep { font-size: 1.1rem; font-weight: 900; color: var(--primary-color); opacity: .35; margin-bottom: 12px; flex-shrink: 0; }

/* Liste mises à jour */
.nf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.nf-list li { font-size: .82rem; color: var(--text-secondary); line-height: 1.45; padding-left: 14px; position: relative; }
.nf-list li::before { content: '→'; position: absolute; left: 0; color: #3b82f6; font-weight: 700; }
.nf-list-soon { opacity: .55; font-style: italic; }
.nf-list-soon::before { content: '' !important; }

/* Card dev */
.nf-card-text { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.nf-card-sep { height: 1px; background: var(--gray-200); }
.nf-creator-row { display: flex; align-items: center; gap: 10px; }
.nf-creator-emoji { font-size: 1.2rem; }
.nf-creator-name { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.nf-creator-sub { font-size: .7rem; color: var(--text-secondary); margin-top: 2px; }
.nf-tiktok-buttons { display: flex; gap: 8px; }
.nf-tiktok-btn { display: flex; align-items: center; gap: 5px; background: var(--bg-secondary); border: 1px solid var(--gray-200); color: var(--text-primary); padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; text-decoration: none; transition: all .2s; flex: 1; justify-content: center; }
.nf-tiktok-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Mini badge approuvé (discret en bas) */
.nf-approved-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(5,150,105,.05) 100%);
    border: 1px solid rgba(16,185,129,.25);
    border-left: 4px solid #10b981;
    border-radius: 14px;
    margin-top: 8px;
}
.nf-approved-banner-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.nf-approved-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.3);
    color: #10b981;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nf-approved-banner-text { min-width: 0; }
.nf-approved-banner-title { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.nf-approved-banner-sub { font-size: .75rem; color: var(--text-secondary); margin-top: 2px; }
.nf-approved-banner-sub em { font-style: italic; color: var(--text-primary); font-weight: 600; }
.nf-approved-banner-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s;
}
.nf-approved-banner-btn:hover { background: #059669; transform: translateY(-1px); }
@media (max-width: 580px) { .nf-approved-banner { flex-direction: column; align-items: flex-start; } }

/* ── COUNTDOWN GAMING 3-2-1 ──────────────── */
.np-countdown-overlay { position: fixed; inset: 0; background: linear-gradient(160deg,#0f0a1e 0%,#1a0503 100%); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.np-countdown-overlay.np-countdown-visible { opacity: 1; }
.np-countdown-num { font-family: 'Poppins',sans-serif; font-size: clamp(4rem,22vw,14rem); font-weight: 900; color: #fff; line-height: 1; user-select: none; text-align: center; opacity: 0; transform: scale(.6); will-change: transform,opacity; }
.np-countdown-num.np-countdown-pop { animation: np-pop .45s cubic-bezier(.34,1.56,.64,1) forwards; }
.np-countdown-num.np-countdown-go { color: #f97316; text-shadow: 0 0 40px rgba(249,115,22,.6),0 0 80px rgba(249,115,22,.3); }
@keyframes np-pop { 0%{opacity:0;transform:scale(.5)} 60%{opacity:1;transform:scale(1.08)} 100%{opacity:1;transform:scale(1)} }

/* ── PANELS PAUSE + GAME OVER ────────────── */
.np-panel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.75); z-index: 19; }
.np-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.92); opacity: 0; transition: transform .28s cubic-bezier(.34,1.56,.64,1),opacity .25s ease; z-index: 20; width: min(420px,92vw); background: linear-gradient(160deg,#0f0a1e 0%,#0a0612 100%); border: 1px solid rgba(139,92,246,.2); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.04),0 28px 64px rgba(0,0,0,.8),0 0 80px rgba(139,92,246,.08); color: white; }
.np-panel.np-panel-visible { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.np-panel-header { display: flex; align-items: center; gap: 14px; padding: 20px 22px 18px; background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.05); }
.np-panel-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.np-panel-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.np-panel-subtitle { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 2px; }
.np-panel-accent { height: 2px; flex-shrink: 0; }
.np-defeat-cause { display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: rgba(239,68,68,.06); border-bottom: 1px solid rgba(255,255,255,.04); }
.np-defeat-label { font-size: .78rem; color: rgba(255,255,255,.45); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.np-defeat-img { width: 44px; height: 44px; object-fit: contain; margin-left: auto; filter: drop-shadow(0 0 8px rgba(239,68,68,.5)); }
.np-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.np-stat-item { background: linear-gradient(160deg,#0f0a1e,#0a0612); padding: 16px; text-align: center; }
.np-stat-val { font-size: 1.6rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.np-stat-lbl { font-size: .68rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.np-setting-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.04); }
.np-setting-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.np-setting-icon { width: 34px; height: 34px; border-radius: 10px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.np-setting-label { font-size: .88rem; font-weight: 700; color: #fff; }
.np-setting-desc { font-size: .7rem; color: rgba(255,255,255,.38); margin-top: 2px; }
.np-panel-actions { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 20px; }
.np-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px; font-size: .92rem; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease,box-shadow .15s ease,background .15s ease; letter-spacing: .02em; }
.np-btn:hover { transform: translateY(-2px); }
.np-btn:active { transform: translateY(0); }
.np-btn-primary { background: linear-gradient(135deg,#f97316,#ea580c); color: white; box-shadow: 0 4px 18px rgba(249,115,22,.35); }
.np-btn-primary:hover { box-shadow: 0 8px 28px rgba(249,115,22,.5); }
.np-btn-secondary { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); color: #c4b5fd; }
.np-btn-secondary:hover { background: rgba(139,92,246,.22); }
.np-btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.np-btn-ghost:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); color: #f87171; }

/* ── POPUPS MODERNES ─────────────────────── */
/* modern-popup-overlay defined above */
.modern-popup-accent-bar { height: 2px; flex-shrink: 0; }
.modern-popup-header { padding: 20px 22px 18px; background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; }
.modern-popup-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.modern-popup-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modern-popup-title { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: .01em; line-height: 1.2; }
.modern-popup-subtitle { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 500; margin-top: 2px; letter-spacing: .02em; }
.modern-popup-close { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; flex-shrink: 0; }
.modern-popup-close:hover { background: rgba(239,68,68,.15); color: #ef4444; border-color: rgba(239,68,68,.25); transform: rotate(90deg); }
.modern-popup-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.modern-popup-body::-webkit-scrollbar { width: 4px; }
.modern-popup-body::-webkit-scrollbar-track { background: transparent; }
.modern-popup-body::-webkit-scrollbar-thumb { background: rgba(139,92,246,.25); border-radius: 10px; }
.modern-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); font-weight: 700; margin: 4px 0 2px; }
.pp-xp-card { background: linear-gradient(135deg,rgba(249,115,22,.15) 0%,rgba(234,88,12,.08) 100%); border: 1px solid rgba(249,115,22,.3); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.pp-level-badge { width: 56px; height: 56px; background: linear-gradient(135deg,#f97316,#ea580c); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 900; color: white; flex-shrink: 0; box-shadow: 0 0 24px rgba(249,115,22,.4); }
.pp-xp-info { flex: 1; min-width: 0; }
.pp-xp-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 10px; font-weight: 500; }
.pp-xp-bar-wrap { height: 8px; background: rgba(0,0,0,.4); border-radius: 99px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.pp-xp-bar-fill { height: 100%; background: linear-gradient(90deg,#f97316,#fb923c); border-radius: 99px; box-shadow: 0 0 10px rgba(249,115,22,.6); transition: width 1s cubic-bezier(.4,0,.2,1); }
.pp-xp-meta { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 500; }
.pp-reward-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); opacity: .55; }
.pp-reward-row.pp-unlocked { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.22); opacity: 1; }
.pp-reward-level { width: 38px; height: 38px; background: rgba(255,255,255,.07); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: rgba(255,255,255,.3); flex-shrink: 0; }
.pp-reward-info { flex: 1; }
.pp-reward-name { font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.7); }
.pp-reward-xp { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 2px; }
.pp-reward-img-wrap { width: 50px; height: 50px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.05); flex-shrink: 0; }
.rec-hero { background: linear-gradient(135deg,rgba(139,92,246,.2),rgba(109,40,217,.12)); border: 1px solid rgba(139,92,246,.3); border-radius: 18px; padding: 22px; text-align: center; }
.rec-hero-icon { font-size: 2.2rem; margin-bottom: 6px; }
.rec-hero-score { font-size: 3rem; font-weight: 900; color: white; line-height: 1; text-shadow: 0 0 30px rgba(139,92,246,.5); }
.rec-hero-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-top: 6px; font-weight: 600; }
.rec-stat-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rec-stat-emoji { font-size: 1.6rem; }
.rec-stat-value { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.rec-stat-label { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rec-reset-btn { background: rgba(239,68,68,.08); color: #f87171; border: 1px solid rgba(239,68,68,.2); padding: 8px 16px; border-radius: 10px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
.rec-reset-btn:hover { background: rgba(239,68,68,.18); }
.locker-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.locker-skin-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 10px 8px; text-align: center; cursor: pointer; position: relative; transition: all .2s; }
.locker-skin-item:hover:not(.locker-locked) { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); transform: translateY(-2px); }
.locker-skin-item.locker-selected { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.45); box-shadow: 0 0 16px rgba(16,185,129,.2); }
.locker-skin-item.locker-locked { cursor: not-allowed; opacity: .45; }
.locker-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; color: white; font-weight: 900; box-shadow: 0 0 8px rgba(16,185,129,.6); }
.locker-lock-badge { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: rgba(255,255,255,.5); font-size: .55rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; white-space: nowrap; }
.locker-skin-img { height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.locker-skin-name { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.6); }
.setting-row { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.setting-row-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.setting-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.setting-label { font-weight: 700; font-size: .92rem; color: #fff; }
.setting-desc { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.setting-volume { display: flex; align-items: center; gap: 10px; transition: opacity .3s; }
.setting-vol-label { font-size: .75rem; color: rgba(255,255,255,.4); white-space: nowrap; }
.setting-vol-value { font-size: .8rem; font-weight: 700; color: #60a5fa; width: 36px; text-align: right; }
.data-info-banner { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: 14px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.data-action-btn { width: 100%; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; transition: all .2s; color: white; }
.data-action-btn:hover { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.3); transform: translateY(-2px); }
.data-action-btn.reset-all-btn { border-color: rgba(239,68,68,.2); background: rgba(239,68,68,.04); }
.data-action-btn.reset-all-btn:hover { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.4); transform: translateY(-2px); }
.data-action-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.data-action-text { flex: 1; }
.data-action-title { font-weight: 700; font-size: .92rem; color: #fff; }
.data-action-desc { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.tik-toggle-card { background: rgba(236,72,153,.08); border: 1px solid rgba(236,72,153,.25); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tik-toggle-left { display: flex; align-items: center; gap: 14px; }
.tik-logo-wrap { width: 44px; height: 44px; background: rgba(236,72,153,.15); border: 1px solid rgba(236,72,153,.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tik-toggle-title { font-weight: 700; font-size: .95rem; color: #fff; }
.tik-toggle-desc { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.tik-section-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.tik-add-btn { display: flex; align-items: center; gap: 5px; background: rgba(236,72,153,.12); border: 1px solid rgba(236,72,153,.35); color: #f9a8d4; padding: 6px 12px; border-radius: 10px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .18s; }
.tik-add-btn:hover { background: rgba(236,72,153,.22); }
.tik-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; color: rgba(255,255,255,.3); font-size: .82rem; text-align: center; }
.tik-empty span { font-size: 2rem; }
.tik-empty p { font-weight: 600; color: rgba(255,255,255,.45); margin: 0; }
.tik-sc-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .2s,background .2s; }
.tik-sc-card:hover { border-color: rgba(236,72,153,.25); background: rgba(236,72,153,.03); }
.tik-sc-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tik-sc-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tik-sc-key { width: 38px; height: 38px; background: linear-gradient(145deg,rgba(236,72,153,.15),rgba(236,72,153,.08)); border: 1.5px solid rgba(236,72,153,.4); border-radius: 10px; color: #f9a8d4; font-family: monospace; font-weight: 900; font-size: .9rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .18s; box-shadow: 0 2px 8px rgba(236,72,153,.2); }
.tik-sc-key:hover { background: rgba(236,72,153,.25); transform: scale(1.06); }
.tik-sc-key.tik-sc-key-listening { border-color: #ec4899; background: rgba(236,72,153,.3); color: #fff; }
.tik-sc-obj-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 6px 10px 6px 6px; cursor: pointer; transition: all .18s; flex: 1; min-width: 0; color: white; text-align: left; }
.tik-sc-obj-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.tik-sc-obj-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.tik-sc-obj-info { flex: 1; min-width: 0; }
.tik-sc-obj-name { font-size: .8rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tik-sc-obj-type { font-size: .65rem; font-weight: 600; display: block; margin-top: 1px; }
.tik-sc-qty-row { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 4px 6px; }
.tik-sc-qty-btn { width: 22px; height: 22px; background: rgba(255,255,255,.08); border: none; border-radius: 6px; color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.tik-sc-qty-btn:hover { background: rgba(236,72,153,.25); }
.tik-sc-qty-val { font-size: .82rem; font-weight: 800; color: #fff; min-width: 16px; text-align: center; }
.tik-sc-qty-unit { font-size: .65rem; color: rgba(255,255,255,.35); font-weight: 600; }
.tik-sc-delay-sel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 600; padding: 5px 7px; cursor: pointer; outline: none; max-width: 100px; }
.tik-sc-delay-sel option { background: #1a0e2e; }
.tik-sc-del-btn { width: 30px; height: 30px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); border-radius: 9px; color: #f87171; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .18s; }
.tik-sc-del-btn:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.45); }
.tik-picker { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.tik-picker-visible { opacity: 1; pointer-events: auto; }
.tik-picker-inner { background: linear-gradient(160deg,#130d22,#0a0612); border: 1px solid rgba(236,72,153,.25); border-radius: 20px; width: min(92vw,480px); max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.8); transform: scale(.92) translateY(16px); transition: transform .25s cubic-bezier(.34,1.3,.64,1); overflow: hidden; }
.tik-picker-visible .tik-picker-inner { transform: scale(1) translateY(0); }
.tik-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; font-weight: 700; font-size: .9rem; color: #fff; }
.tik-picker-close { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: rgba(255,255,255,.6); width: 28px; height: 28px; cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.tik-picker-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.tik-picker-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 16px; overflow-y: auto; flex: 1; }
.tik-picker-grid::-webkit-scrollbar { width: 4px; }
.tik-picker-grid::-webkit-scrollbar-thumb { background: rgba(236,72,153,.25); border-radius: 4px; }
.tik-picker-item { display: flex; flex-direction: column; align-items: center; gap: 5px; background: rgba(255,255,255,.03); border: 1.5px solid rgba(255,255,255,.07); border-radius: 14px; padding: 10px 6px 8px; cursor: pointer; transition: all .18s; color: white; text-align: center; }
.tik-picker-item:hover { background: rgba(236,72,153,.1); border-color: rgba(236,72,153,.35); transform: translateY(-2px); }
.tik-picker-selected { background: rgba(236,72,153,.15)!important; border-color: #ec4899!important; box-shadow: 0 0 0 2px rgba(236,72,153,.2); }
.tik-picker-item img { width: 46px; height: 46px; object-fit: contain; }
.tik-picker-name { font-size: .66rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.2; }
.tik-picker-type { font-size: .58rem; font-weight: 600; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.15); transition: .25s; border-radius: 99px; border: 1px solid rgba(255,255,255,.1); }
.toggle-switch .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background: white; transition: .25s cubic-bezier(.4,0,.2,1); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.toggle-switch input:checked + .slider { background: linear-gradient(135deg,var(--primary-color),var(--secondary-color)); border-color: var(--primary-color); }
.toggle-switch input:checked + .slider:before { transform: translateX(22px); }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: white; cursor: pointer; margin-top: -7px; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid var(--primary-color); transition: transform .1s ease; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type=range]::-webkit-slider-runnable-track { height: 5px; cursor: pointer; background: rgba(255,255,255,.15); border-radius: 3px; }

/* ── NELL PARTY LOADING SCREEN ─────────────────────────────────────── */
.np-loading-screen {
    position: fixed; inset: 0; z-index: 2100;
    background: #080512;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.35s ease;
    pointer-events: all;
}
.np-loading-screen.np-loading-visible { opacity: 1; }
.np-loading-inner {
    display: flex; flex-direction: column; align-items: center; gap: 28px;
    animation: np-loading-entrance 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes np-loading-entrance {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.np-loading-logo { animation: np-loading-pulse 1.8s ease-in-out infinite; }
@keyframes np-loading-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(249,115,22,0.7)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 40px rgba(249,115,22,1)); transform: scale(1.04); }
}
.np-loading-bar-wrap {
    width: 220px; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px; overflow: hidden;
}
.np-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
    background-size: 200% 100%;
    border-radius: 99px;
    animation: np-loading-bar 1.1s ease-in-out forwards, np-loading-shimmer 0.8s linear infinite;
}
@keyframes np-loading-bar {
    from { width: 0%; }
    to   { width: 100%; }
}
@keyframes np-loading-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
.np-loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.np-loading-dots::after {
    content: '';
    animation: np-dots 1.2s steps(4, end) infinite;
}
@keyframes np-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ── COUNTDOWN INGAME (over game) ────────────────────────────────────── */
.np-countdown-overlay.np-countdown-ingame {
    background: transparent;
    backdrop-filter: blur(5px) brightness(0.5);
    -webkit-backdrop-filter: blur(5px) brightness(0.5);
    /* La position/taille peut être overridée par JS pour le mode TikTok */
}
.np-cd-bg-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(249,115,22,0.15) 0%, transparent 70%);
    animation: np-glow-pulse 1.5s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes np-glow-pulse {
    from { opacity: 0.6; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1.05); }
}
.np-cd-rings {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.np-cd-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(249,115,22,0.3);
    animation: np-ring-expand 2s ease-out infinite;
}
.np-cd-ring-1 { width: clamp(100px,28vmin,200px); height: clamp(100px,28vmin,200px); animation-delay: 0s; }
.np-cd-ring-2 { width: clamp(160px,44vmin,320px); height: clamp(160px,44vmin,320px); animation-delay: 0.4s; border-color: rgba(249,115,22,0.18); }
.np-cd-ring-3 { width: clamp(220px,60vmin,440px); height: clamp(220px,60vmin,440px); animation-delay: 0.8s; border-color: rgba(249,115,22,0.08); }
@keyframes np-ring-expand {
    0%   { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
/* Enhanced GO glow */
.np-countdown-num.np-countdown-go {
    color: #f97316;
    text-shadow:
        0 0 30px rgba(249,115,22,0.9),
        0 0 60px rgba(249,115,22,0.6),
        0 0 120px rgba(249,115,22,0.3);
}
/* Numbers neon effect */
.np-countdown-num:not(.np-countdown-go) {
    text-shadow:
        0 0 20px rgba(255,255,255,0.8),
        0 0 60px rgba(255,255,255,0.3);
}

/* ── POPUP RESPONSIVE MOBILE ──────────────────────────────── */
@media (max-width: 600px) {
    .modern-popup-content {
        max-height: 90vh;
        border-radius: 18px;
    }
    .modern-popup-overlay {
        padding: 12px;
        align-items: center;
    }
    .modern-popup-overlay.active .modern-popup-content {
        border-radius: 18px;
    }
    .nell-party-menu-container {
        max-height: 100dvh !important;
        padding: 0 !important;
    }
    .menu-content-grid {
        gap: 6px !important;
        padding: 6px 8px 8px !important;
    }
    .menu-hero {
        padding: 6px 0 4px !important;
    }
    .menu-logo-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .menu-logo-new {
        width: 75% !important;
        max-width: 340px !important;
    }
    .menu-card-play {
        height: 70px !important;
        border-radius: 16px !important;
    }
    .reset-confirmation-popup {
        max-width: 92vw !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   NELL PASS — SYSTÈME DE RÉCUPÉRATION DE RÉCOMPENSES
   ═══════════════════════════════════════════════════════════ */

/* ── Badge notification sur le bouton Nell Pass ── */
.menu-card-pass { position: relative; }

.pass-notif-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    font-size: 0.62rem;
    font-weight: 900;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    box-shadow: 0 2px 8px rgba(239,68,68,0.55);
    z-index: 5;
    animation: pass-badge-pulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pass-badge-pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 2px 8px rgba(239,68,68,0.55); }
    50%       { transform: scale(1.15); box-shadow: 0 3px 14px rgba(239,68,68,0.75); }
}

/* ── Lignes récompenses dans la popup ── */
.pp-reward-row.pp-claimable {
    background: rgba(249,115,22,0.10);
    border-color: rgba(249,115,22,0.35);
    opacity: 1;
    position: relative;
    overflow: hidden;
}
.pp-reward-row.pp-claimed {
    background: rgba(16,185,129,0.06);
    border-color: rgba(16,185,129,0.18);
    opacity: 0.72;
}
.pp-reward-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.06), transparent);
    animation: pp-row-shimmer 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pp-row-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Boutons réclamer / récupérée ── */
.pp-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    outline: none;
    letter-spacing: 0.02em;
}
.pp-claim-active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 3px 10px rgba(249,115,22,0.4);
    animation: pp-claim-glow 1.8s ease-in-out infinite alternate;
}
.pp-claim-active:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 5px 16px rgba(249,115,22,0.55);
}
.pp-claim-active:active {
    transform: scale(0.97);
}
@keyframes pp-claim-glow {
    from { box-shadow: 0 3px 10px rgba(249,115,22,0.35); }
    to   { box-shadow: 0 3px 18px rgba(249,115,22,0.65); }
}
.pp-claimed-badge {
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border: 1px solid rgba(52,211,153,0.25);
    cursor: default;
    font-size: 0.68rem;
}

/* ── Animation déblocage récompense (popup flottante) ── */
/* ══════════════════════════════════════════════════════════
   NELL PASS — ANIMATION PREMIUM DE RÉCUPÉRATION (CLAIM)
   ══════════════════════════════════════════════════════════ */

/* Overlay plein écran */
.claim-anim-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, background 0.4s ease;
}
.claim-anim-overlay.claim-anim-visible {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0,0,0,0.78);
}

/* Fond glow radial */
.claim-anim-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(249,115,22,0.22), transparent 68%);
    pointer-events: none;
    animation: claim-glow-breathe 1.8s ease-in-out infinite alternate;
}
@keyframes claim-glow-breathe {
    from { opacity: 0.6; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1.05); }
}

/* Conteneur de particules */
.claim-anim-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Particules individuelles */
.claim-particle {
    position: absolute;
}
@keyframes claim-particle-fly {
    0%   { transform: rotate(var(--angle)) translateX(0)    scale(1);   opacity: 1; }
    80%  { opacity: 0.8; }
    100% { transform: rotate(var(--angle)) translateX(var(--dist)) scale(0); opacity: 0; }
}

/* Carte principale */
.claim-anim-card {
    position: relative;
    background: linear-gradient(160deg, #1c0e04 0%, #120a1e 60%, #0f0805 100%);
    border: 1.5px solid rgba(249,115,22,0.55);
    border-radius: 28px;
    padding: 34px 38px 30px;
    text-align: center;
    width: min(90vw, 340px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 30px 80px rgba(0,0,0,0.9),
        0 0 80px rgba(249,115,22,0.2),
        0 0 160px rgba(249,115,22,0.08);
    animation: claim-card-pop 0.5s cubic-bezier(0.34,1.5,0.64,1) both;
    overflow: hidden;
}
@keyframes claim-card-pop {
    0%   { transform: scale(0.5) translateY(40px); opacity: 0; }
    100% { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* Shine diagonal animé sur la carte */
.claim-anim-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%, transparent 35%,
        rgba(255,255,255,0.06) 50%,
        transparent 65%, transparent 100%
    );
    background-size: 250% 100%;
    animation: claim-shine-sweep 2.5s ease-in-out 0.3s 3;
    border-radius: inherit;
    pointer-events: none;
}
@keyframes claim-shine-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -50% 0; }
}

/* Label haut */
.claim-anim-top-label {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(249,115,22,0.8);
    margin-bottom: 20px;
    animation: claim-fade-up 0.4s ease 0.15s both;
}

/* Wrap image + rings + rays */
.claim-anim-img-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

/* Rings animés */
.claim-anim-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(249,115,22,0.35);
    animation: claim-ring-expand 1.2s ease-out infinite;
}
.claim-anim-ring-1 { inset: -10px; animation-delay: 0s; }
.claim-anim-ring-2 { inset: -22px; animation-delay: 0.3s; }
.claim-anim-ring-3 { inset: -34px; animation-delay: 0.6s; border-color: rgba(251,191,36,0.2); }
@keyframes claim-ring-expand {
    0%   { opacity: 1;   transform: scale(0.8); }
    100% { opacity: 0;   transform: scale(1.2); }
}

/* Rayons rotatifs */
.claim-anim-rays {
    position: absolute;
    inset: -30px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,   rgba(249,115,22,0.18) 15deg,  transparent 30deg,
        transparent 75deg,  rgba(249,115,22,0.12) 90deg,  transparent 105deg,
        transparent 150deg, rgba(249,115,22,0.16) 165deg, transparent 180deg,
        transparent 225deg, rgba(249,115,22,0.12) 240deg, transparent 255deg,
        transparent 300deg, rgba(249,115,22,0.18) 315deg, transparent 330deg
    );
    border-radius: 50%;
    animation: claim-rays-spin 3s linear infinite;
    pointer-events: none;
}
@keyframes claim-rays-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Image de la récompense */
.claim-anim-img {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 22px rgba(249,115,22,0.75))
        drop-shadow(0 0 8px rgba(251,191,36,0.5));
    animation: claim-img-land 0.55s cubic-bezier(0.34,1.6,0.64,1) 0.1s both;
}
@keyframes claim-img-land {
    0%   { transform: scale(0.3) rotate(-15deg) translateY(-30px); opacity: 0; }
    70%  { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1)   rotate(0deg) translateY(0); opacity: 1; }
}

/* Nom de la récompense */
.claim-anim-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 0 24px rgba(249,115,22,0.5);
    margin-bottom: 6px;
    animation: claim-fade-up 0.4s ease 0.3s both;
}

/* Sous-titre */
.claim-anim-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(251,191,36,0.75);
    margin-bottom: 8px;
    animation: claim-fade-up 0.4s ease 0.38s both;
}

/* Hint équipement */
.claim-anim-hint {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
    margin-bottom: 24px;
    animation: claim-fade-up 0.4s ease 0.45s both;
}

/* Bouton fermer */
.claim-anim-close-btn {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 32px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 18px rgba(249,115,22,0.5), 0 0 0 0 rgba(249,115,22,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: claim-btn-appear 0.4s ease 0.55s both, claim-btn-pulse 2s ease-in-out 1s infinite;
}
.claim-anim-close-btn:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(249,115,22,0.7); }
.claim-anim-close-btn:active { transform: scale(0.97); }
@keyframes claim-btn-appear {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes claim-btn-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(249,115,22,0.5), 0 0 0 0 rgba(249,115,22,0.3); }
    50%       { box-shadow: 0 4px 18px rgba(249,115,22,0.5), 0 0 0 8px rgba(249,115,22,0); }
}

/* Animation fade-up générique */
@keyframes claim-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   TIKFINITY — NOTIFICATION SPAWN RACCOURCI
   ══════════════════════════════════════════════════════════ */

.tik-spawn-notif {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px) scale(0.88);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(15,8,30,0.96), rgba(10,5,20,0.96));
    border: 1.5px solid rgba(236,72,153,0.55);
    border-radius: 18px;
    padding: 10px 18px 10px 10px;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34,1.4,0.64,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(236,72,153,0.2);
    white-space: nowrap;
}
.tik-spawn-notif.tik-spawn-notif-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
.tik-spawn-notif-img {
    width: 38px; height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(236,72,153,0.5));
    flex-shrink: 0;
}
.tik-spawn-notif-count {
    font-size: 1rem;
    font-weight: 900;
    color: #f9a8d4;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* ── Badges d'effets actifs ─────────────────────────────── */
.tik-fx-badge {
    position: fixed;
    bottom: 20px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(10,5,20,0.92);
    border: 1.5px solid var(--fx-color, rgba(139,92,246,0.6));
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    z-index: 99990;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 12px var(--fx-color, rgba(139,92,246,0.3));
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-bottom: 0;
}
/* Empiler les badges verticalement */
.tik-fx-badge + .tik-fx-badge { bottom: calc(20px + 42px); }
.tik-fx-badge + .tik-fx-badge + .tik-fx-badge { bottom: calc(20px + 84px); }
.tik-fx-badge + .tik-fx-badge + .tik-fx-badge + .tik-fx-badge { bottom: calc(20px + 126px); }

.tik-fx-badge.tik-fx-badge-in  { opacity: 1; transform: translateX(0); }
.tik-fx-badge.tik-fx-badge-out { opacity: 0; transform: translateX(20px); }
.tik-fx-label { flex: 1; }
.tik-fx-timer {
    background: var(--fx-color, rgba(139,92,246,0.3));
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   TIKFINITY — PANEL CADEAUX
   ══════════════════════════════════════════════════════════ */

.tik-cadeaux-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(236,72,153,0.18);
    border-radius: 16px;
    padding: 12px 14px;
    transition: border-color 0.2s, background 0.2s;
}
.tik-cadeaux-card:hover { border-color: rgba(236,72,153,0.32); background: rgba(236,72,153,0.04); }

.tik-cadeaux-preview {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.tik-cadeaux-info { flex: 1; min-width: 0; }
.tik-cadeaux-title { font-size: 0.85rem; font-weight: 700; color: #fff; }
.tik-cadeaux-desc  { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.tik-cadeaux-dl-btn {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(236,72,153,0.1));
    border: 1px solid rgba(236,72,153,0.45);
    color: #f9a8d4;
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 0.78rem; font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
    white-space: nowrap;
}
.tik-cadeaux-dl-btn:hover {
    background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(236,72,153,0.18));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(236,72,153,0.3);
}
.tik-cadeaux-dl-btn:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════════════════
   POPUP CODE PIN — TÉLÉCHARGEMENT PANEL CADEAUX
   ══════════════════════════════════════════════════════════ */

.cadeaux-pin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.cadeaux-pin-overlay.cadeaux-pin-visible {
    opacity: 1;
    pointer-events: auto;
}

.cadeaux-pin-card {
    position: relative;
    background: linear-gradient(160deg, #130920 0%, #0a0514 100%);
    border: 1.5px solid rgba(236,72,153,0.45);
    border-radius: 24px;
    padding: 36px 32px 30px;
    width: min(90vw, 340px);
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 30px 80px rgba(0,0,0,0.8),
        0 0 60px rgba(236,72,153,0.15);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
    overflow: hidden;
}
.cadeaux-pin-overlay.cadeaux-pin-visible .cadeaux-pin-card {
    transform: scale(1) translateY(0);
}

/* Shine sur la carte */
.cadeaux-pin-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 0%, transparent 38%,
        rgba(236,72,153,0.06) 50%,
        transparent 62%, transparent 100%);
    background-size: 250% 100%;
    animation: cadeaux-shine 2.5s ease-in-out 0.3s 3;
    border-radius: inherit;
    pointer-events: none;
}
@keyframes cadeaux-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -50% 0; }
}

.cadeaux-pin-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    width: 28px; height: 28px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.cadeaux-pin-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.cadeaux-pin-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(236,72,153,0.4));
}

.cadeaux-pin-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.cadeaux-pin-desc {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    margin-bottom: 22px;
}

.cadeaux-pin-input-wrap {
    margin-bottom: 10px;
}

.cadeaux-pin-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(236,72,153,0.35);
    border-radius: 14px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.cadeaux-pin-input::placeholder { color: rgba(255,255,255,0.18); letter-spacing: 0.3em; }
.cadeaux-pin-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236,72,153,0.18), 0 0 20px rgba(236,72,153,0.12);
}

.cadeaux-pin-error {
    display: none;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 6px 12px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 8px;
}
.cadeaux-pin-error-anim {
    animation: cadeaux-error-shake 0.38s cubic-bezier(0.36,0.07,0.19,0.97);
}
@keyframes cadeaux-error-shake {
    0%,100% { transform: translateX(0); }
    18%     { transform: translateX(-6px); }
    36%     { transform: translateX(5px); }
    54%     { transform: translateX(-4px); }
    72%     { transform: translateX(3px); }
}

.cadeaux-pin-confirm-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border: none;
    border-radius: 13px;
    color: white;
    font-size: 0.9rem; font-weight: 800;
    padding: 13px 20px;
    cursor: pointer;
    margin-top: 14px;
    box-shadow: 0 4px 18px rgba(236,72,153,0.4);
    transition: all 0.18s;
    letter-spacing: 0.02em;
}
.cadeaux-pin-confirm-btn:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(236,72,153,0.55);
}
.cadeaux-pin-confirm-btn:active { transform: scale(0.97); }

/* ── Toast discret pour déblocage de niveau ── */
.pass-unlock-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #1c0e04, #120a1e);
    border: 1px solid rgba(249,115,22,0.35);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34,1.4,0.64,1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(249,115,22,0.12);
    white-space: nowrap;
}
.pass-unlock-toast.pass-unlock-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   NELL PARTY — ANIMATION WIN
   ═══════════════════════════════════════════════════════════ */

.np-win-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}
.np-win-overlay.np-win-visible {
    opacity: 1;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}
.np-win-overlay.np-win-exit {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Rayons rotatifs de fond */
.np-win-rays {
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,   rgba(251,191,36,0.14) 8deg,  transparent 16deg,
        transparent 40deg,  rgba(249,115,22,0.10) 48deg, transparent 56deg,
        transparent 80deg,  rgba(251,191,36,0.12) 88deg, transparent 96deg,
        transparent 120deg, rgba(249,115,22,0.08) 128deg,transparent 136deg,
        transparent 160deg, rgba(251,191,36,0.14) 168deg,transparent 176deg,
        transparent 200deg, rgba(249,115,22,0.10) 208deg,transparent 216deg,
        transparent 240deg, rgba(251,191,36,0.12) 248deg,transparent 256deg,
        transparent 280deg, rgba(249,115,22,0.08) 288deg,transparent 296deg,
        transparent 320deg, rgba(251,191,36,0.14) 328deg,transparent 336deg
    );
    animation: np-win-rays-spin 3s linear infinite;
    pointer-events: none;
}
@keyframes np-win-rays-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Contenu central */
.np-win-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: np-win-content-pop 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes np-win-content-pop {
    0%   { transform: scale(0.3) rotate(-6deg); opacity: 0; }
    60%  { transform: scale(1.08) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

/* Trophée */
.np-win-trophy {
    font-size: clamp(3rem, 15vmin, 5.5rem);
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(251,191,36,0.8));
    animation: np-win-trophy-bounce 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
@keyframes np-win-trophy-bounce {
    0%   { transform: translateY(-30px) scale(0.6); opacity: 0; }
    100% { transform: translateY(0)     scale(1);   opacity: 1; }
}

/* Texte WIN */
.np-win-text {
    font-family: 'Poppins', 'Arial Black', sans-serif;
    font-size: clamp(2.8rem, 14vmin, 5.2rem);
    font-weight: 900;
    font-style: italic;
    color: transparent;
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 40%, #f97316 70%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0.06em;
    text-shadow: none;
    filter: drop-shadow(0 0 24px rgba(249,115,22,0.65));
    animation: np-win-text-glow 1s ease-in-out 0.2s infinite alternate both;
    line-height: 1;
}
@keyframes np-win-text-glow {
    from { filter: drop-shadow(0 0 18px rgba(249,115,22,0.55)); }
    to   { filter: drop-shadow(0 0 36px rgba(251,191,36,0.85)); }
}

/* Sous-titre */
.np-win-sub {
    font-size: clamp(0.8rem, 3.5vmin, 1.05rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
    animation: np-win-sub-fade 0.5s ease 0.35s both;
}
@keyframes np-win-sub-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Compteur total */
.np-win-count {
    font-size: clamp(0.7rem, 3vmin, 0.88rem);
    font-weight: 700;
    color: rgba(251,191,36,0.7);
    letter-spacing: 0.06em;
    animation: np-win-sub-fade 0.5s ease 0.5s both;
}

/* Particules */
.np-win-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.np-win-particle {
    --angle: 0deg;
    --dist: 80px;
}
@keyframes np-win-particle-fly {
    0%   { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(0)    scale(1);   opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(var(--dist)) scale(0); opacity: 0; }
}

/* Avis 1 étoile — style distinct */
.mg-avis-card:has(.mg-avis-stars:not(:has(~ *)):not([data-stars])) { }
.mg-avis-card .mg-avis-stars:first-child + .mg-avis-text { }
/* Détection via data attribute */
.mg-avis-bad {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}
.mg-avis-bad:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 16px rgba(251,191,36,0.15) !important;
}
.mg-avis-bad .mg-avis-author { color: #b45309 !important; }

/* ══════════════════════════════════════════════════════════════════
   SYSTÈME D'AUTHENTIFICATION FIREBASE
   ══════════════════════════════════════════════════════════════════ */

/* Bouton user dans la navbar */
/* Bouton user — icône ronde dans la navbar */
.nc-user-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f97316; color: white;
    border: none; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.18s;
    font-size: 0.85rem; font-weight: 900;
    box-shadow: 0 2px 8px rgba(249,115,22,0.35);
    position: static;
    overflow: hidden;
}
.nc-user-btn:hover { background: #ea580c; transform: scale(1.08); }
.nc-user-btn img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.nc-user-btn span { display: none; }
.nc-user-avatar-letter {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f97316;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 900; color: white;
}

/* Overlay auth */
.nc-auth-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.28s ease;
}

/* Carte auth */
.nc-auth-card {
    background: #ffffff;
    border-radius: 24px;
    width: min(92vw, 400px);
    padding: 32px 28px 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
    position: relative;
    animation: ncAuthPop 0.35s cubic-bezier(0.34,1.4,0.64,1);
}
@keyframes ncAuthPop {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.nc-auth-close {
    position: absolute; top: 16px; right: 16px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; width: 30px; height: 30px;
    cursor: pointer; font-size: 0.78rem; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.nc-auth-close:hover { background: #fee2e2; color: #dc2626; }

/* Logo */
.nc-auth-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.nc-auth-logo-text { font-size: 1.1rem; font-weight: 900; color: #1e293b; }

/* Onglets */
.nc-auth-tabs {
    display: flex; gap: 4px;
    background: #f1f5f9; border-radius: 10px; padding: 3px;
    margin-bottom: 20px;
}
.nc-auth-tab {
    flex: 1; padding: 8px; border: none; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    background: transparent; color: #64748b;
    transition: all 0.18s;
}
.nc-auth-tab.active {
    background: #ffffff; color: #f97316;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Messages */
.nc-auth-msg {
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 14px;
}
.nc-auth-msg-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.nc-auth-msg-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Bouton Google */
.nc-google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 11px; font-size: 0.86rem; font-weight: 700; color: #1e293b;
    cursor: pointer; transition: all 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nc-google-btn:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }

/* Divider */
.nc-auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 14px 0;
    color: #94a3b8; font-size: 0.75rem;
}
.nc-auth-divider::before, .nc-auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* Champs */
.nc-auth-form { display: flex; flex-direction: column; gap: 12px; }
.nc-auth-field { display: flex; flex-direction: column; gap: 5px; }
.nc-auth-field label { font-size: 0.73rem; font-weight: 700; color: #475569; }
.nc-auth-field input {
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; color: #1e293b;
    font-size: 0.88rem; padding: 10px 13px; outline: none;
    transition: border-color 0.18s;
}
.nc-auth-field input:focus { border-color: #f97316; background: #fff7ed; }

/* Mot de passe oublié */
.nc-auth-forgot {
    background: none; border: none; color: #f97316;
    font-size: 0.75rem; font-weight: 600; cursor: pointer;
    text-align: right; padding: 0; align-self: flex-end;
    transition: opacity 0.15s;
}
.nc-auth-forgot:hover { opacity: 0.7; }

/* Bouton submit */
.nc-auth-submit {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; border: none; border-radius: 12px;
    padding: 13px; font-size: 0.92rem; font-weight: 800;
    cursor: pointer; width: 100%; margin-top: 4px;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    transition: all 0.2s;
}
.nc-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(249,115,22,0.45); }
.nc-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Menu profil */
.nc-profile-menu {
    background: #ffffff; border: 1.5px solid #f1f5f9;
    border-radius: 16px; padding: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    animation: ncMenuSlide 0.2s ease;
}
@keyframes ncMenuSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nc-profile-header { padding: 10px 12px 8px; }
.nc-profile-name { font-size: 0.88rem; font-weight: 800; color: #1e293b; }
.nc-profile-email { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; }
.nc-profile-divider { height: 1px; background: #f1f5f9; margin: 4px 0; }
.nc-profile-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: none; border: none; border-radius: 10px;
    padding: 9px 12px; font-size: 0.82rem; font-weight: 600;
    color: #ef4444; cursor: pointer; transition: background 0.15s;
}
.nc-profile-item:hover { background: #fef2f2; }

/* Toast */
.nc-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: white;
    padding: 11px 22px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 600;
    z-index: 999999; opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    white-space: nowrap;
}
.nc-toast-visible { opacity: 1; }

@media (max-width: 480px) {
    .nc-user-btn { padding: 7px 11px; font-size: 0.75rem; right: 10px; }
    .nc-auth-card { padding: 24px 18px 20px; }
}

/* ── Profil popup ── */
/* ── Profil popup — refonte propre ── */
.nc-prof-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-radius: 16px;
    border: 1px solid #fed7aa;
}
.nc-prof-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    border: 3px solid #fff;
}
.nc-prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nc-prof-avatar span { color: white; font-size: 1.4rem; font-weight: 900; }
.nc-prof-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
}
.nc-prof-email {
    font-size: 0.72rem;
    color: #92400e;
    margin-top: 3px;
    opacity: 0.8;
}

.nc-prof-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nc-prof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.87rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.14s ease;
}
.nc-prof-item svg { stroke: #9ca3af; flex-shrink: 0; transition: stroke 0.14s; }
.nc-prof-item:hover {
    background: #f8fafc;
    color: #111;
    transform: translateX(2px);
}
.nc-prof-item:hover svg { stroke: #f97316; }
.nc-prof-item-admin {
    color: #f97316 !important;
    background: rgba(249,115,22,0.06) !important;
}
.nc-prof-item-admin svg { stroke: #f97316 !important; }
.nc-prof-item-admin:hover { background: rgba(249,115,22,0.12) !important; }
.nc-prof-item-danger { color: #ef4444 !important; }
.nc-prof-item-danger svg { stroke: #ef4444 !important; }
.nc-prof-item-danger:hover { background: #fef2f2 !important; transform: none; }
.nc-prof-item-logout { color: #6b7280 !important; }
.nc-prof-item-logout svg { stroke: #9ca3af !important; }
.nc-prof-item-logout:hover { background: #f8fafc !important; color: #374151 !important; }

.nc-prof-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0f0f0, transparent);
    margin: 6px 4px;
}

.nc-prof-back-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    padding: 11px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.nc-prof-back-btn:hover { background: #f1f5f9; }

/* ══════════════════════════════════════════════════════════════════
   FAN WALL
   ══════════════════════════════════════════════════════════════════ */
.fw-container { max-width: none; width: 100%; padding: 0 0 40px; box-sizing: border-box; }
.fw-header { margin-bottom: 20px; }
.fw-title { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); margin: 0 0 4px; }
.fw-subtitle { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

/* Compose */
.fw-compose {
    background: #fff; border: 1.5px solid #e2e8f0;
    border-radius: 16px; padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.fw-textarea {
    width: 100%; min-height: 80px; resize: none;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 10px 13px; font-size: 0.88rem; color: #1e293b;
    font-family: inherit; outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
}
.fw-textarea:focus { border-color: #f97316; background: #fff7ed; }
.fw-compose-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}
.fw-count { font-size: 0.72rem; color: #94a3b8; }
.fw-submit-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; border: none; border-radius: 10px;
    padding: 9px 20px; font-size: 0.84rem; font-weight: 700;
    cursor: pointer; transition: all 0.18s;
    box-shadow: 0 3px 10px rgba(249,115,22,0.3);
}
.fw-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249,115,22,0.4); }

/* Bannière login */
.fw-login-banner {
    background: #fff7ed; border: 1.5px solid #fed7aa;
    border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
    font-size: 0.83rem; color: #9a3412; font-weight: 600;
    flex-wrap: wrap;
}
.fw-login-btn {
    background: #f97316; color: white; border: none;
    border-radius: 8px; padding: 8px 16px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background 0.15s;
    flex-shrink: 0;
}
.fw-login-btn:hover { background: #ea580c; }

/* Messages */
.fw-messages { display: flex; flex-direction: column; gap: 10px; }
.fw-loading, .fw-empty {
    text-align: center; color: #94a3b8;
    font-size: 0.85rem; padding: 32px;
}
.fw-message {
    background: #fff; border: 1.5px solid #f1f5f9;
    border-radius: 14px; padding: 14px 16px;
    display: flex; gap: 12px; align-items: flex-start;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: border-color 0.18s;
}
.fw-message:hover { border-color: #fed7aa; }
.fw-msg-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.fw-msg-avatar img { width: 40px; height: 40px; object-fit: cover; }
.fw-msg-avatar span { color: white; font-size: 0.9rem; font-weight: 900; }
.fw-msg-body { flex: 1; min-width: 0; }
.fw-msg-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 5px; gap: 8px;
}
.fw-msg-pseudo { font-size: 0.84rem; font-weight: 800; color: #1e293b; }
.fw-msg-date { font-size: 0.68rem; color: #94a3b8; flex-shrink: 0; }
.fw-msg-text { font-size: 0.82rem; color: #475569; line-height: 1.55; word-break: break-word; }

/* ══════════════════════════════════════════════════════════════════
   CHAT LIVE
   ══════════════════════════════════════════════════════════════════ */
.chat-container {
    display: flex; flex-direction: column;
    height: calc(100vh - 140px);
    max-height: 700px;
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}
.chat-header {
    padding: 16px 20px 12px;
    border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}
.chat-title-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 3px;
}
.chat-live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: chatPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes chatPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.05); }
}
.chat-title { font-size: 1.1rem; font-weight: 900; color: #1e293b; margin: 0; }
.chat-subtitle { font-size: 0.75rem; color: #94a3b8; margin: 0; }

/* Zone messages */
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.chat-loading, .chat-empty {
    text-align: center; color: #94a3b8;
    font-size: 0.82rem; padding: 24px; margin: auto;
}

/* Messages */
.chat-msg {
    display: flex; gap: 8px; align-items: flex-end;
    max-width: 85%;
}
.chat-msg-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.chat-msg-avatar img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.chat-msg-avatar span { color: white; font-size: 0.78rem; font-weight: 900; }
.chat-msg-avatar-me { opacity: 0.85; }
.chat-msg-content { display: flex; flex-direction: column; gap: 2px; }
.chat-msg-me .chat-msg-content { align-items: flex-end; }
.chat-msg-name { font-size: 0.7rem; font-weight: 700; margin-bottom: 2px; }
.chat-msg-bubble {
    background: #f1f5f9; color: #1e293b;
    padding: 8px 13px; border-radius: 16px 16px 16px 4px;
    font-size: 0.85rem; line-height: 1.45;
    word-break: break-word; max-width: 280px;
}
.chat-bubble-me {
    color: white;
    border-radius: 16px 16px 4px 16px;
}
.chat-msg-time { font-size: 0.62rem; color: #94a3b8; margin-top: 2px; }
.chat-msg-me .chat-msg-time { text-align: right; }

/* Zone saisie */
.chat-input-area {
    padding: 12px 16px;
    border-top: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}
.chat-login-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    font-size: 0.8rem; color: #64748b; font-weight: 600;
}
.chat-input-row {
    display: flex; gap: 8px; align-items: center;
}
.chat-input {
    flex: 1; background: #f8fafc;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 10px 14px; font-size: 0.88rem; color: #1e293b;
    outline: none; font-family: inherit;
    transition: border-color 0.18s;
}
.chat-input:focus { border-color: #f97316; background: #fff7ed; }
.chat-send-btn {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.18s;
    box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-cooldown {
    font-size: 0.75rem; color: #94a3b8;
    text-align: center; padding: 6px 0 0;
    font-weight: 600;
}

/* ── Fan Wall — design premium ── */
.fw-hint {
    font-size: 0.75rem; color: #f97316; font-weight: 600;
    margin-top: 8px; padding: 8px 12px;
    background: #fff7ed; border-radius: 8px; border: 1px solid #fed7aa;
}
.fw-textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.fw-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.fw-messages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.fw-message {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 16px;
    display: flex; gap: 12px; align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.22s ease;
    position: relative;
    border-color: color-mix(in srgb, var(--user-color, #f97316) 20%, transparent);
    background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--user-color, #f97316) 4%, #fff) 100%);
}
.fw-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: color-mix(in srgb, var(--user-color, #f97316) 40%, transparent);
}
.fw-message-me { grid-column: 1 / -1; }
.fw-msg-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fw-msg-avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.fw-msg-avatar span { color: white; font-size: 1rem; font-weight: 900; }
.fw-msg-body { flex: 1; min-width: 0; }
.fw-msg-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px; gap: 8px;
}
.fw-msg-pseudo { font-size: 0.85rem; font-weight: 800; }
.fw-msg-date { font-size: 0.65rem; color: #94a3b8; flex-shrink: 0; }
.fw-msg-text { font-size: 0.84rem; color: #334155; line-height: 1.55; word-break: break-word; }
.fw-delete-btn {
    margin-top: 10px;
    background: none; border: 1px solid #fecaca;
    border-radius: 6px; color: #ef4444;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; cursor: pointer;
    transition: all 0.15s;
}
.fw-delete-btn:hover { background: #fef2f2; }

/* ── Chat — bouton info ── */
.chat-info-btn {
    margin-left: auto;
    background: none; border: 1.5px solid #e2e8f0;
    border-radius: 8px; width: 28px; height: 28px;
    font-size: 0.85rem; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; flex-shrink: 0;
}
.chat-info-btn:hover { background: #f8fafc; border-color: #f97316; color: #f97316; }
.chat-info-panel {
    margin-top: 10px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 12px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
    animation: chatInfoIn 0.2s ease;
}
@keyframes chatInfoIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-info-item { font-size: 0.78rem; color: #475569; line-height: 1.5; }
.chat-info-item strong { color: #1e293b; }

/* Fix icône compte — s'assurer qu'elle est toujours visible */
.nc-user-btn svg, .nc-user-btn img, .nc-user-btn span {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Chat info panel — refonte propre ── */
.chat-info-panel {
    margin-top: 10px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 4px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    animation: chatInfoIn 0.2s ease;
    overflow: hidden;
}
.chat-info-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    font-size: 0.78rem; color: #475569; line-height: 1.4;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.12s;
}
.chat-info-item:last-child { border-bottom: none; }
.chat-info-item:hover { background: #f8fafc; }
.chat-info-item svg { flex-shrink: 0; color: #f97316; }
.chat-info-item strong { color: #1e293b; font-weight: 700; }

/* Chat msg me — sans avatar */
.chat-msg-me { margin-left: auto; }


/* ── Profil — stats Nell Party ── */
.nc-prof-stats {
    display: flex; align-items: center; gap: 6px;
    margin-top: 5px; flex-wrap: wrap;
}
.nc-prof-stat {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.7rem; color: #f97316; font-weight: 700;
}
.nc-prof-stat svg { color: #f97316; }
.nc-prof-stat-sep { color: #cbd5e1; font-size: 0.7rem; }

/* ── Mur communauté — cards ── */
.fw-messages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.fw-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    border: 1.5px solid color-mix(in srgb, var(--fw-color, #f97316) 18%, #f1f5f9);
    background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--fw-color, #f97316) 4%, #fff));
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.22s ease;
    position: relative;
}
.fw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    border-color: color-mix(in srgb, var(--fw-color, #f97316) 35%, #f1f5f9);
}
.fw-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.fw-card-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.fw-card-avatar img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.fw-card-avatar span { color: white; font-size: 0.95rem; font-weight: 900; }
.fw-card-meta { flex: 1; min-width: 0; }
.fw-card-name { display: block; font-size: 0.85rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-card-date { display: block; font-size: 0.65rem; color: #94a3b8; margin-top: 1px; }
.fw-card-text { font-size: 0.84rem; color: #334155; line-height: 1.55; word-break: break-word; }

/* 3 points menu */
.fw-card-more {
    position: relative; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #94a3b8;
    transition: all 0.15s;
}
.fw-card-more:hover { background: #f8fafc; color: #475569; }
.fw-card-dropdown {
    position: absolute; top: 32px; right: 0;
    background: #fff; border: 1.5px solid #f1f5f9;
    border-radius: 12px; padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px; z-index: 100;
    animation: fwDropIn 0.15s ease;
}
@keyframes fwDropIn {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}
.fw-card-delete {
    display: flex; align-items: center; gap: 8px;
    width: 100%; background: none; border: none;
    border-radius: 8px; padding: 9px 12px;
    font-size: 0.8rem; font-weight: 600; color: #ef4444;
    cursor: pointer; text-align: left;
    transition: background 0.12s;
}
.fw-card-delete:hover { background: #fef2f2; }

/* ══════════════════════════════════════════════════════════════════
   MUR DE LA COMMUNAUTÉ — Refonte complète
   ══════════════════════════════════════════════════════════════════ */

.fw-page { max-width: none; width: 100%; padding: 0 0 48px; box-sizing: border-box; }

/* Hero */
.fw-hero {
    background: linear-gradient(135deg, #1e0a00 0%, #2d1200 60%, #1a0800 100%);
    border-radius: 20px; padding: 36px 28px;
    margin-bottom: 20px; position: relative; overflow: hidden;
    border: 1.5px solid rgba(249,115,22,0.2);
}
.fw-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(249,115,22,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(251,191,36,0.08) 0%, transparent 50%);
}
.fw-hero-content { position: relative; }
.fw-hero-badge {
    display: inline-block;
    background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.35);
    color: #fb923c; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    padding: 4px 12px; border-radius: 99px; margin-bottom: 12px;
}
.fw-hero-title { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 900; color: #fff; margin: 0 0 8px; }
.fw-hero-sub { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; font-style: italic; }

/* Zone de saisie */
.fw-compose-wrap { margin-bottom: 20px; }
.fw-compose-inner {
    background: #fff; border-radius: 18px;
    border: 1.5px solid #f1f5f9;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.fw-compose-label { font-size: 0.72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.fw-input {
    width: 100%; min-height: 80px; resize: none;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 12px 14px; font-size: 0.92rem; color: #1e293b;
    font-family: inherit; outline: none; line-height: 1.55;
    transition: border-color 0.18s; box-sizing: border-box;
}
.fw-input:focus { border-color: #f97316; }
.fw-compose-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px;
}
.fw-char-count { font-size: 0.72rem; color: #94a3b8; font-weight: 600; }
.fw-publish-btn {
    display: flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; border: none; border-radius: 10px;
    padding: 9px 20px; font-size: 0.84rem; font-weight: 700;
    cursor: pointer; transition: all 0.18s;
    box-shadow: 0 3px 12px rgba(249,115,22,0.35);
}
.fw-publish-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,0.45); }
.fw-publish-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Bannière login */
.fw-login-wall {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 16px; padding: 18px 20px;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px; flex-wrap: wrap;
}
.fw-login-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff7ed; border: 1.5px solid #fed7aa;
    display: flex; align-items: center; justify-content: center;
    color: #f97316; flex-shrink: 0;
}
.fw-login-title { font-size: 0.9rem; font-weight: 800; color: #1e293b; }
.fw-login-sub { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.fw-login-btn {
    margin-left: auto; background: #f97316; color: white; border: none;
    border-radius: 10px; padding: 9px 18px; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s; white-space: nowrap; flex-shrink: 0;
}
.fw-login-btn:hover { background: #ea580c; }

/* Loading */
.fw-wall-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 40px; color: #94a3b8; font-size: 0.85rem;
}
.fw-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid #e2e8f0; border-top-color: #f97316;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Wall grid */
.fw-wall-grid { display: flex; flex-direction: column; gap: 12px; }
.fw-wall-empty {
    text-align: center; padding: 48px 24px; color: #94a3b8;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 0.85rem;
}

/* Cards */
.fw-wall-card {
    display: flex; align-items: stretch; gap: 0;
    background: #fff; border-radius: 16px;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden; position: relative;
    transition: all 0.22s ease;
}
.fw-wall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    border-color: color-mix(in srgb, var(--c) 30%, #f1f5f9);
}
.fw-wall-card-me {
    border-color: color-mix(in srgb, var(--c) 35%, #f1f5f9);
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--c) 4%, #fff));
}
/* Barre colorée à gauche */
.fw-wall-accent {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--c, #f97316);
    border-radius: 0;
}
/* Numéro */
.fw-wall-num {
    display: flex; align-items: center; justify-content: center;
    width: 52px; flex-shrink: 0;
    font-size: 1.1rem; font-weight: 900;
    color: color-mix(in srgb, var(--c) 25%, #e2e8f0);
    padding-left: 12px;
    font-variant-numeric: tabular-nums;
}
.fw-wall-body { flex: 1; padding: 16px 16px 16px 4px; min-width: 0; }
.fw-wall-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.fw-wall-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.fw-wall-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.fw-wall-avatar span { color: white; font-size: 0.82rem; font-weight: 900; }
.fw-wall-info { flex: 1; min-width: 0; }
.fw-wall-name { display: block; font-size: 0.85rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-wall-date { display: block; font-size: 0.65rem; color: #94a3b8; margin-top: 1px; }
.fw-wall-quote {
    margin: 0; padding: 0;
    font-size: 0.88rem; color: #334155; line-height: 1.6;
    font-style: italic;
    word-break: break-word;
}

/* 3 points */
.fw-wall-actions { position: relative; flex-shrink: 0; }
.fw-wall-dots {
    width: 28px; height: 28px; border-radius: 8px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; transition: all 0.15s;
}
.fw-wall-dots:hover { background: #f8fafc; color: #64748b; }
.fw-wall-menu {
    position: absolute; top: 32px; right: 0;
    background: #fff; border: 1.5px solid #f1f5f9;
    border-radius: 12px; padding: 4px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    min-width: 160px; z-index: 100;
    animation: fwDropIn 0.15s ease;
}
.fw-wall-del {
    display: flex; align-items: center; gap: 8px;
    width: 100%; background: none; border: none;
    border-radius: 8px; padding: 9px 12px;
    font-size: 0.8rem; font-weight: 600; color: #ef4444;
    cursor: pointer; text-align: left; transition: background 0.12s;
}
.fw-wall-del:hover { background: #fef2f2; }

@media (max-width: 480px) {
    .fw-wall-num { width: 36px; font-size: 0.85rem; }
}

/* ── Leaderboard — menu card ── */
.menu-card-leaderboard { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.mc-icon-leaderboard { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.3); color: #f97316; }
.menu-card-leaderboard:hover { box-shadow: 0 8px 32px rgba(249,115,22,0.25); }

/* ── Leaderboard popup ── */
.lb-info {
    font-size: 0.7rem; color: rgba(255,255,255,0.35);
    text-align: center; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .1em;
}
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 10px 14px;
    transition: background 0.15s;
}
.lb-row:hover { background: rgba(255,255,255,0.07); }
.lb-row-me {
    background: rgba(249,115,22,0.1) !important;
    border-color: rgba(249,115,22,0.35) !important;
}
.lb-row-podium { border-color: rgba(255,255,255,0.1) !important; }
.lb-rank {
    width: 28px; font-size: 1rem; font-weight: 900;
    text-align: center; flex-shrink: 0;
}
.lb-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lb-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.lb-avatar span { color: white; font-size: 0.8rem; font-weight: 900; }
.lb-info-player { flex: 1; min-width: 0; }
.lb-name { display: block; font-size: 0.85rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sub { font-size: 0.68rem; color: rgba(255,255,255,0.4); }
.lb-me-tag {
    background: #f97316; color: white;
    font-size: 0.58rem; font-weight: 800; padding: 1px 6px;
    border-radius: 99px; vertical-align: middle;
    text-transform: uppercase; letter-spacing: .05em;
}
.lb-score { text-align: right; flex-shrink: 0; }
.lb-score-val { display: block; font-size: 1rem; font-weight: 900; color: #fbbf24; }
.lb-score-lbl { font-size: 0.62rem; color: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════════════════════════
   RECORDS — Refonte
   ══════════════════════════════════════════════════════════════════ */
.rec-identity {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 0 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}
.rec-level-badge {
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .14em;
    padding: 4px 14px; border-radius: 99px;
    border: 1.5px solid; margin-bottom: 12px;
}
.rec-wins-display {
    display: flex; align-items: baseline; gap: 6px;
}
.rec-wins-num {
    font-size: 3.5rem; font-weight: 900; color: #fff;
    line-height: 1; letter-spacing: -0.02em;
}
.rec-wins-lbl {
    font-size: 1rem; font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: .1em;
}
.rec-games-lbl {
    font-size: 0.72rem; color: rgba(255,255,255,0.35);
    margin-top: 6px;
}

.rec-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 12px;
}
.rec-stat-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 14px;
    display: flex; flex-direction: column; gap: 6px;
    transition: background 0.15s;
}
.rec-stat-block:hover { background: rgba(255,255,255,0.07); }
.rec-stat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1.5px solid; display: flex; align-items: center; justify-content: center;
}
.rec-stat-val { font-size: 1.5rem; font-weight: 900; line-height: 1; margin-top: 4px; }
.rec-stat-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.4); line-height: 1.3; }

.rec-total-xp {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.rec-total-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.75rem; color: rgba(255,255,255,0.45); font-weight: 600;
}
.rec-total-val {
    font-size: 1.1rem; font-weight: 900; color: #fbbf24;
}

/* ══════════════════════════════════════════════════════════════════
   LEADERBOARD — Refonte
   ══════════════════════════════════════════════════════════════════ */
.lb-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 40px; color: rgba(255,255,255,0.4); font-size: 0.85rem;
}
.lb-empty {
    text-align: center; padding: 40px 20px;
    color: rgba(255,255,255,0.3); font-size: 0.85rem; line-height: 1.6;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lb-myrank {
    text-align: center; font-size: 0.78rem;
    color: rgba(255,255,255,0.4); margin-bottom: 12px;
}
.lb-myrank strong { color: #f97316; }
.lb-sort-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.65rem; color: rgba(255,255,255,0.25);
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 10px;
}
.lb-list { display: flex; flex-direction: column; gap: 5px; }
.lb-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 10px 13px;
    transition: background 0.15s;
}
.lb-row:hover { background: rgba(255,255,255,0.07); }
.lb-row-me {
    background: rgba(249,115,22,0.1) !important;
    border-color: rgba(249,115,22,0.3) !important;
}
.lb-rank-num {
    width: 26px; font-size: 0.9rem; font-weight: 900;
    color: rgba(255,255,255,0.25); text-align: center;
    flex-shrink: 0;
}
.lb-rank-podium { font-size: 1rem !important; }
.lb-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lb-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.lb-avatar span { color: white; font-size: 0.8rem; font-weight: 900; }
.lb-medal {
    position: absolute; bottom: -2px; right: -2px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px solid #0f0a1e;
}
.lb-player { flex: 1; min-width: 0; }
.lb-player-name { font-size: 0.85rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-player-sub { font-size: 0.67rem; color: rgba(255,255,255,0.35); margin-top: 1px; }
.lb-me-tag {
    background: #f97316; color: white;
    font-size: 0.58rem; font-weight: 800;
    padding: 1px 6px; border-radius: 99px;
    vertical-align: middle; text-transform: uppercase;
}
.lb-score-block { text-align: right; flex-shrink: 0; }
.lb-score-val { font-size: 1rem; font-weight: 900; color: #fbbf24; line-height: 1; }
.lb-score-lbl { font-size: 0.62rem; color: rgba(255,255,255,0.3); }

/* Records — nouvelles classes */
.rec-identity-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; flex-wrap: wrap; justify-content: center;
}
.rec-identity-stat {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 600;
}
.rec-identity-stat svg { color: rgba(255,255,255,0.3); }
.rec-identity-sep { color: rgba(255,255,255,0.2); font-size: 0.72rem; }
.rec-ranking-hint {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
    border-radius: 12px; padding: 10px 13px;
    font-size: 0.76rem; color: rgba(255,255,255,0.5);
    line-height: 1.5; margin-bottom: 14px;
}
.rec-ranking-hint svg { flex-shrink: 0; margin-top: 1px; }
.rec-ranking-hint strong { color: rgba(255,255,255,0.8); }
.rec-stat-sublbl {
    font-size: 0.62rem; color: rgba(255,255,255,0.25);
    margin-top: 2px;
}

/* Leaderboard — chevron + profil joueur */
.lb-chevron { flex-shrink: 0; }
.lb-row:hover .lb-chevron svg { stroke: rgba(255,255,255,0.5); }

/* Popup profil joueur */
.nc-player-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 12px 14px;
}
.nc-player-stat-val {
    font-size: 1.25rem; font-weight: 900; color: #fff;
    line-height: 1; margin-bottom: 4px;
}
.nc-player-stat-lbl {
    font-size: 0.68rem; color: rgba(255,255,255,0.4); line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════
   PRÉSENCE EN LIGNE
   ══════════════════════════════════════════════════════════════════ */
.chat-online-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0 0; flex-wrap: wrap;
}
.chat-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
    animation: chatPulse 2s ease-in-out infinite;
}
#chatOnlineCount {
    font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 600;
}
.chat-online-avatars { display: flex; align-items: center; gap: -4px; }
.chat-online-av {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid #0f172a;
    margin-left: -5px; object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.chat-online-av:first-child { margin-left: 0; }
.chat-online-av-letter {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 900; color: white;
}

/* ══════════════════════════════════════════════════════════════════
   FAVORIS & RÉACTIONS GALERIE
   ══════════════════════════════════════════════════════════════════ */
.fav-btn { transition: all 0.2s; }
.fav-btn svg { transition: all 0.2s; }
.fav-btn-active svg {
    fill: #f43f5e !important;
    stroke: #f43f5e !important;
}
.fav-btn-active { color: #f43f5e; }

.gallery-fav-count {
    position: absolute; bottom: 40px; right: 8px;
    font-size: 0.68rem; font-weight: 700;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 2px 7px; border-radius: 99px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.gallery-reactions {
    position: absolute; bottom: 6px; left: 6px; right: 6px;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    opacity: 0; transition: opacity 0.2s;
}
.gallery-card:hover .gallery-reactions { opacity: 1; }

.reaction-btn {
    display: flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 99px; padding: 3px 8px;
    font-size: 0.72rem; color: white; cursor: pointer;
    transition: all 0.15s;
}
.reaction-btn:hover { background: rgba(0,0,0,0.75); transform: scale(1.1); }
.reaction-btn.reaction-active {
    background: rgba(244,63,94,0.3);
    border-color: rgba(244,63,94,0.6);
}
.reaction-btn span { font-size: 0.68rem; font-weight: 700; }

.reaction-add-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px; width: 24px; height: 24px;
    font-size: 0.8rem; color: rgba(255,255,255,0.8);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.reaction-add-btn:hover { background: rgba(255,255,255,0.2); }

/* Emoji picker popup */
.emoji-picker-popup {
    background: #1e293b;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 8px;
    display: flex; gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    animation: fwDropIn 0.15s ease;
}
.ep-emoji {
    background: none; border: none;
    font-size: 1.3rem; cursor: pointer;
    border-radius: 8px; padding: 4px 6px;
    transition: all 0.12s; line-height: 1;
}
.ep-emoji:hover { background: rgba(255,255,255,0.1); transform: scale(1.2); }

/* ── Bouton réaction galerie ── */
.gallery-react-trigger {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 99px; padding: 3px 8px;
    font-size: 1rem; cursor: pointer;
    opacity: 0; transition: opacity 0.2s, transform 0.15s;
}
.gallery-card:hover .gallery-react-trigger { opacity: 1; }
.gallery-react-trigger:hover { transform: scale(1.15); }

/* ── Réactions chat messages ── */
.chat-msg-footer {
    display: flex; align-items: center; gap: 6px;
    margin-top: 3px; flex-wrap: wrap;
}
.chat-msg-me .chat-msg-footer { justify-content: flex-end; }
.chat-msg-reactions { display: flex; gap: 3px; flex-wrap: wrap; }
.chat-react-btn {
    background: none; border: none;
    font-size: 0.9rem; cursor: pointer;
    opacity: 0.45; transition: opacity 0.15s, transform 0.15s;
    padding: 0 2px; line-height: 1;
}
.chat-react-btn:hover { opacity: 1; transform: scale(1.2); }

/* reaction-btn & emoji picker déjà définis, override pour chat */
.chat-msg-reactions .reaction-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    font-size: 0.68rem; padding: 2px 6px;
}
.chat-msg-reactions .reaction-btn.reaction-active {
    background: rgba(244,63,94,0.25);
    border-color: rgba(244,63,94,0.5);
}

/* ── Bouton réaction — icône SVG + plus ── */
.gallery-react-trigger,
.chat-react-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
}
.react-plus {
    position: absolute;
    top: -3px; right: -3px;
    background: #f97316; color: white;
    font-size: 0.45rem; font-weight: 900;
    width: 10px; height: 10px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    border: 1px solid rgba(0,0,0,0.3);
}
.gallery-react-trigger svg { display: block; }
.chat-react-btn svg { display: block; }

/* Emoji picker — plus grand et visible */
.emoji-picker-popup {
    background: #1e293b;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 8px 10px;
    display: flex; gap: 6px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    animation: fwDropIn 0.15s ease;
}
.ep-emoji {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    border-radius: 10px; padding: 6px 8px;
    transition: all 0.12s; line-height: 1;
}
.ep-emoji:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.3);
}

/* ── Avatar wrap avec boutons action ── */
.nc-prof-avatar-wrap {
    position: relative; flex-shrink: 0;
}
.nc-prof-avatar-actions {
    position: absolute; bottom: -4px; right: -4px;
    display: flex; gap: 3px;
}
.nc-av-action-btn {
    width: 22px; height: 22px; border-radius: 50%;
    background: #f97316; border: 1.5px solid #fff;
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.nc-av-action-btn:hover { transform: scale(1.15); }
.nc-av-delete-btn { background: #ef4444 !important; }

/* ══ Panneau Admin ══ */
.nc-prof-item-admin { color: #f97316 !important; }
.nc-prof-item-admin:hover { background: rgba(249,115,22,0.1) !important; }

.nc-admin-panel { display: flex; flex-direction: column; gap: 8px; }
.nc-admin-loading { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.4); padding: 16px; }

.nc-admin-stats {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 4px;
}
.nc-admin-stat {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 10px; text-align: center;
}
.nc-admin-stat-val { display: block; font-size: 1.2rem; font-weight: 900; color: #f97316; }
.nc-admin-stat-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: .08em; }

.nc-admin-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 800; color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
}
.nc-admin-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
.nc-admin-list::-webkit-scrollbar { width: 3px; }
.nc-admin-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nc-admin-row {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04); border-radius: 10px; padding: 8px 10px;
}
.nc-admin-user-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.nc-admin-av {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 900; color: white; flex-shrink: 0; overflow: hidden;
}
.nc-admin-av img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.nc-admin-name { font-size: 0.78rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-admin-email { font-size: 0.65rem; color: rgba(255,255,255,0.35); }
.nc-admin-msg-text { font-size: 0.72rem; color: rgba(255,255,255,0.45); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nc-role-badge {
    font-size: 0.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    padding: 1px 6px; border-radius: 99px; vertical-align: middle;
}
.nc-role-admin { background: rgba(249,115,22,0.25); color: #f97316; }
.nc-role-mod   { background: rgba(139,92,246,0.25); color: #a78bfa; }

.nc-role-select {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: white; font-size: 0.72rem; padding: 4px 8px; cursor: pointer;
}
.nc-admin-del-btn {
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px; color: #f87171; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.nc-admin-del-btn:hover { background: rgba(239,68,68,0.25); }
.nc-admin-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ══ Homepage — CrabChat featured ══ */
.home-featured-chat { display: none !important; }
.hfc-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}
.hfc-live {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 700; color: #1f2937;
}
.hfc-join-btn {
    background: #fff4ed; border: 1.5px solid #fed7aa;
    border-radius: 8px; color: #ea580c;
    font-size: 0.75rem; font-weight: 700;
    padding: 6px 14px; cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
}
.hfc-join-btn:hover { background: #ffedd5; }
.hfc-messages {
    padding: 12px 16px; display: flex; flex-direction: column; gap: 10px;
    min-height: 110px; max-height: 180px; overflow: hidden;
    background: #fafafa;
}
.hfc-loading { font-size: 0.78rem; color: #9ca3af; text-align: center; padding: 20px; }
.hfc-msg { display: flex; align-items: flex-start; gap: 9px; }
.hfc-av {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 900; color: white; flex-shrink: 0; overflow: hidden;
}
.hfc-av img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.hfc-msg-body { flex: 1; min-width: 0; }
.hfc-name { font-size: 0.75rem; font-weight: 800; margin-right: 5px; }
.hfc-text { font-size: 0.8rem; color: #374151; word-break: break-word; }
.hfc-time { font-size: 0.63rem; color: #9ca3af; flex-shrink: 0; margin-top: 3px; }
.hfc-footer { padding: 12px 16px 14px; background: #fff; }
.hfc-cta {
    width: 100%; background: linear-gradient(135deg, #f97316, #ea580c);
    border: none; border-radius: 12px; color: white;
    font-size: 0.88rem; font-weight: 800; padding: 13px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.18s; box-shadow: 0 3px 12px rgba(249,115,22,0.25);
}
.hfc-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(249,115,22,0.35); }


/* ════════════════════════════════════════════════
   SIDEBAR — CSS unique et définitif
   ════════════════════════════════════════════════ */

/* ── Pill badges ── */
.nav-pill {
    display: inline-block;
    font-size: 0.48rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 99px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-pill-red    { background: #ef4444; color: #fff; }
.nav-pill-orange { background: #f97316; color: #fff; }

/* ══════════════════════════════════════════════════════
   SIDEBAR — Redesign moderne desktop (v4 — tailles généreuses)
   ══════════════════════════════════════════════════════ */
@media (min-width: 769px) {

    /* ─── Wrapper sidebar ─── */
    .sidebar {
        background: #f0f2f5 !important;
        border-right: 1px solid #e2e5ea !important;
        box-shadow: 2px 0 12px rgba(0,0,0,0.06) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* ─── Header logo ─── */
    .sidebar-header {
        padding: 20px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        background: #f0f2f5 !important;
        border-bottom: 1px solid #e2e5ea !important;
        flex-shrink: 0 !important;
        text-align: left !important;
    }
    .sidebar-logo {
        height: 56px !important;
        width: auto !important;
        object-fit: contain !important;
        margin: 0 !important;
        animation: none !important;
        filter: none !important;
    }
    .nc-user-btn-desktop {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        background: #e8eaed !important;
        border: 1px solid #d4d8de !important;
        color: #6b7280 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
    }
    .nc-user-btn-desktop:hover {
        background: #fff4ed !important;
        border-color: #fed7aa !important;
        color: #f97316 !important;
    }

    /* ─── Nell Party ─── */
    .party-game-section {
        padding: 14px 14px 12px !important;
        border-bottom: 1px solid #e2e5ea !important;
        background: #f0f2f5 !important;
        flex-shrink: 0 !important;
    }
    .party-game-btn,
    .party-game-btn-img {
        width: 100% !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: center !important;
        transition: transform 0.15s ease, opacity 0.15s !important;
    }
    .party-game-btn:hover,
    .party-game-btn-img:hover {
        transform: scale(1.03) !important;
        background: none !important;
        opacity: 0.9 !important;
    }
    .party-btn-img {
        width: 100% !important;
        max-width: 260px !important;
        height: auto !important;
        display: block !important;
        filter: drop-shadow(0 3px 8px rgba(249,115,22,0.2)) !important;
    }

    /* ─── Menu scroll ─── */
    .nav-menu {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 10px 10px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #d1d5db transparent !important;
    }
    .nav-menu::-webkit-scrollbar { width: 3px; }
    .nav-menu::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

    /* ─── Groupe de sections ─── */
    .nav-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        margin-bottom: 6px !important;
    }

    /* ─── Label de groupe ─── */
    .nav-group-label {
        font-size: 0.62rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.13em !important;
        color: #9ca3af !important;
        padding: 16px 10px 6px !important;
        display: block !important;
    }

    /* ─── Item nav — tailles généreuses ─── */
    .nav-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        min-height: 52px !important;
        border: 1.5px solid transparent !important;
        background: transparent !important;
        cursor: pointer !important;
        transition: all 0.13s ease !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        text-align: left !important;
        overflow: visible !important;
        position: relative !important;
    }
    .nav-item:hover {
        background: #e8eaed !important;
        border-color: #dde1e7 !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .nav-item.active {
        background: #ffffff !important;
        border-color: #e5e7eb !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important;
    }

    /* ─── Icône SVG colorée ─── */
    .nav-item-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 11px !important;
        background: var(--icon-bg, #f3f4f6) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: transform 0.13s ease !important;
    }
    .nav-item:hover .nav-item-icon {
        transform: scale(1.06) !important;
    }
    .nav-item-icon svg {
        width: 18px !important;
        height: 18px !important;
        stroke: var(--icon-color, #6b7280) !important;
        fill: none !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    /* ─── Corps texte ─── */
    .nav-item-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .nav-item-title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #374151 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.25 !important;
    }
    .nav-item-desc {
        font-size: 0.75rem !important;
        color: #9ca3af !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.2 !important;
    }
    .nav-item.active .nav-item-title {
        color: #111827 !important;
        font-weight: 700 !important;
    }
    .nav-item.active .nav-item-desc {
        color: #6b7280 !important;
    }
    .nav-item:hover .nav-item-title {
        color: #111827 !important;
    }

    /* ─── Badges ─── */
    .nav-badge {
        font-size: 0.52rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        padding: 3px 7px !important;
        border-radius: 99px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        line-height: 1.5 !important;
    }
    .nav-badge-red    { background: #ef4444 !important; color: #fff !important; }
    .nav-badge-orange { background: #f97316 !important; color: #fff !important; }

    /* Legacy — masquer les anciens éléments */
    .nav-pill      { display: none !important; }
    .nav-icon      { display: none !important; }
    .nav-text      { display: none !important; }
    .nav-separator { display: none !important; }

    /* ─── Footer ─── */
    .sidebar-footer {
        border-top: 1px solid #e2e5ea !important;
        background: #f0f2f5 !important;
        padding: 12px !important;
        flex-shrink: 0 !important;
    }
}
/* ── Boutons image Nell Party mobile ── */
.mobile-party-btn,
.mobile-party-btn-img {
    width: 100% !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
}
.mobile-party-btn:hover,
.mobile-party-btn-img:hover { transform: scale(1.03) !important; background: none !important; }

/* ── TikFinity dl card ── */
.tik-dl-card {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
}
.tik-dl-text { flex: 1; min-width: 0; }
.tik-dl-title { font-size: 0.82rem; font-weight: 700; color: #fff; }
.tik-dl-desc { font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-top: 1px; }
.tik-dl-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: white;
    font-size: 0.75rem; font-weight: 700;
    padding: 7px 14px; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s;
}
.tik-dl-btn:hover { background: rgba(255,255,255,0.2); }


/* ══ Homepage — section labels & news cards ══ */
.home-section-label-row { margin-bottom: 10px; }
.home-section-label-text {
    font-size: 0.78rem; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .1em;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.home-news-card {
    border-radius: 18px; padding: 22px 20px;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.2s; border: 1.5px solid transparent;
    display: flex; flex-direction: column; gap: 12px;
}
.home-news-card:hover { transform: translateY(-3px); }
.home-news-card-chat   { background: linear-gradient(135deg,#0f172a,#1e293b); border-color: rgba(249,115,22,0.25); }
.home-news-card-wall   { background: linear-gradient(135deg,#1a0a2e,#2d1458); border-color: rgba(139,92,246,0.25); }
.home-news-card-gallery{ background: linear-gradient(135deg,#0a1628,#112244); border-color: rgba(59,130,246,0.25); }
.home-news-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.home-news-icon svg { width: 22px; height: 22px; stroke: white; }
.home-news-badge {
    position: absolute; top: 8px; right: 8px;
    background: #ef4444; color: white;
    font-size: 0.52rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; padding: 2px 7px; border-radius: 99px;
}
.home-news-badge-orange { background: #f97316 !important; }
.home-news-title { font-size: 0.95rem; font-weight: 900; color: white; }
.home-news-desc  { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

@media (max-width: 600px) {
    .home-news-grid { grid-template-columns: 1fr; }
    .home-news-card { flex-direction: row; align-items: center; gap: 12px; }
}




/* ════════════════════════════════════════════════════════
   CRABCHAT — Interface propre fond orange clair
   ════════════════════════════════════════════════════════ */
.crab-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 260px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1.5px solid #f0f0f0;
}

/* Header */
.crab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1.5px solid #f5f5f5;
    flex-shrink: 0;
}
.crab-header-left { display: flex; align-items: center; gap: 12px; }
.crab-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: chatPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.crab-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #f97316;
    margin: 0 0 8px;
    display: inline-block;
}
.crab-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: #f97316;
    border-radius: 99px;
    margin-top: 8px;
}
.crab-subtitle { font-size: 0.86rem; color: #9ca3af; margin: 0; }
.crab-info-btn {
    width: 32px; height: 32px; border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.crab-info-btn:hover { border-color: #f97316; color: #f97316; background: #fff7ed; }

/* Panel info */
.crab-info-panel {
    margin: 0 16px;
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.crab-info-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    font-size: 0.82rem; color: #4b5563;
    border-bottom: 1px solid #f9fafb;
}
.crab-info-item:last-child { border-bottom: none; }
.crab-info-item svg { color: #f97316; flex-shrink: 0; }
.crab-info-item strong { color: #111; }

/* Zone messages — fond orange très clair */
.crab-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff8f2;
    scroll-behavior: smooth;
}
.crab-messages::-webkit-scrollbar { width: 4px; }
.crab-messages::-webkit-scrollbar-thumb { background: #fed7aa; border-radius: 2px; }

/* Messages */
.chat-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 75%; }
.chat-msg-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 900; color: white; flex-shrink: 0; overflow: hidden;
}
.chat-msg-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.chat-msg-content { display: flex; flex-direction: column; gap: 3px; max-width: 100%; }
.chat-msg-me .chat-msg-content { align-items: flex-end; }
.chat-msg-name { font-size: 0.72rem; font-weight: 700; margin-bottom: 1px; }
.chat-msg-bubble {
    background: #fff;
    border: 1.5px solid #f0f0f0;
    padding: 12px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 1rem; color: #1f2937;
    line-height: 1.55; word-break: break-word;
    max-width: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.chat-bubble-me {
    border-radius: 18px 18px 4px 18px;
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.chat-msg-footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-msg-me .chat-msg-footer { justify-content: flex-end; }
.chat-msg-time { font-size: 0.65rem; color: #9ca3af; }
.chat-msg-reactions { display: flex; gap: 3px; }
.chat-react-btn {
    background: none; border: none; cursor: pointer;
    font-size: 0.85rem; opacity: 0.45;
    transition: opacity 0.15s; padding: 0 2px; line-height: 1;
    position: relative;
}
.chat-react-btn:hover { opacity: 1; }
.chat-react-btn svg { display: block; }
.chat-empty, .chat-loading {
    text-align: center; color: #9ca3af;
    font-size: 0.88rem; padding: 40px; margin: auto;
}

/* Zone saisie */
.crab-input-area {
    padding: 14px 20px 18px;
    background: #fff;
    border-top: 1.5px solid #f0f0f0;
    flex-shrink: 0;
}
.crab-login-banner {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: #6b7280; flex-wrap: wrap;
    padding: 4px 0;
}
.crab-login-btn {
    margin-left: auto;
    background: #f97316; color: white; border: none;
    border-radius: 10px; padding: 8px 18px;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.crab-input-row { display: flex; gap: 10px; align-items: center; }
.crab-input {
    flex: 1; padding: 12px 18px;
    border: 1.5px solid #e5e7eb; border-radius: 14px;
    font-size: 0.95rem; color: #1f2937;
    background: #f9fafb; outline: none;
    font-family: inherit; transition: border-color 0.15s;
}
.crab-input:focus { border-color: #f97316; background: #fff7ed; }
.crab-send {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.15s;
    box-shadow: 0 3px 12px rgba(249,115,22,0.35);
}
.crab-send:hover { transform: scale(1.06); }
.crab-send:disabled { opacity: 0.45; transform: none; }
.crab-cooldown {
    font-size: 0.75rem; color: #9ca3af;
    text-align: center; padding-top: 6px; font-weight: 600;
}
/* Badge rôle */
.chat-role-badge {
    font-size: 0.55rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; padding: 1px 6px; border-radius: 99px;
    vertical-align: middle; margin-left: 4px;
}
.chat-role-admin { background: rgba(249,115,22,0.15); color: #ea580c; }
.chat-role-mod   { background: rgba(139,92,246,0.15); color: #8b5cf6; }

/* Réactions */
.reaction-btn {
    display: flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 99px; padding: 3px 8px;
    font-size: 0.72rem; color: #374151; cursor: pointer;
    transition: all 0.15s;
}
.reaction-btn:hover { background: rgba(249,115,22,0.1); border-color: #f97316; }
.reaction-btn.reaction-active { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.4); }
.reaction-btn span { font-size: 0.68rem; font-weight: 700; }

/* ════════════════════════════════════════════════════════
   MUR DE MESSAGES — Interface lisible et moderne
   ════════════════════════════════════════════════════════ */
.wall-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 40px;
}

/* Header */
.wall-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.wall-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #f97316;
    margin: 0 0 8px;
    display: inline-block;
}
.wall-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: #f97316;
    border-radius: 99px;
    margin-top: 8px;
}
.wall-subtitle { font-size: 0.92rem; color: #9ca3af; margin: 0; }

/* Formulaire */
.wall-compose {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.wall-input {
    width: 100%; min-height: 80px; resize: none;
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 12px 16px; font-size: 0.95rem; color: #1f2937;
    font-family: inherit; outline: none; box-sizing: border-box;
    transition: border-color 0.15s; background: #fafafa;
}
.wall-input:focus { border-color: #f97316; background: #fff; }
.wall-compose-footer {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 12px;
}
.wall-count { font-size: 0.75rem; color: #9ca3af; font-weight: 600; }
.wall-submit {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; border: none; border-radius: 12px;
    padding: 10px 22px; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
    box-shadow: 0 3px 12px rgba(249,115,22,0.3);
}
.wall-submit:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(249,115,22,0.4); }
.wall-submit:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }

/* Bannière login */
.wall-login {
    display: flex; align-items: center; gap: 12px;
    background: #fff7ed; border: 1.5px solid #fed7aa;
    border-radius: 14px; padding: 16px 20px;
    margin-bottom: 24px; flex-wrap: wrap;
    font-size: 0.88rem; color: #92400e; font-weight: 600;
}
.wall-login-btn {
    margin-left: auto; background: #f97316; color: white; border: none;
    border-radius: 10px; padding: 9px 20px; font-size: 0.84rem;
    font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background 0.15s; flex-shrink: 0;
}
.wall-login-btn:hover { background: #ea580c; }

/* Grille */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.wall-loading {
    grid-column: 1/-1;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 48px;
    font-size: 0.88rem; color: #9ca3af;
}

/* Cards */
.fw-wall-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    display: flex; align-items: stretch; gap: 0;
    border: 1.5px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s; position: relative; overflow: hidden;
}
.fw-wall-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: #e2e8f0; }
.fw-wall-card-me { border-color: #fed7aa; background: linear-gradient(135deg,#fff,#fff7ed); }
.fw-wall-accent { position: absolute; left:0; top:0; bottom:0; width:4px; background: var(--c, #f97316); border-radius:0; }
.fw-wall-num { display:flex; align-items:center; justify-content:center; width:48px; font-size:1.1rem; font-weight:900; color:#e5e7eb; padding-left:8px; flex-shrink:0; }
.fw-wall-body { flex:1; padding: 2px 12px 2px 8px; min-width:0; }
.fw-wall-top { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.fw-wall-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.fw-wall-avatar img { width:36px; height:36px; object-fit:cover; border-radius:50%; }
.fw-wall-avatar span { color:white; font-size:0.8rem; font-weight:900; }
.fw-wall-info { flex:1; min-width:0; }
.fw-wall-name { display:block; font-size:0.95rem; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fw-wall-date { display:block; font-size:0.66rem; color:#9ca3af; margin-top:1px; }
.fw-wall-quote { font-size:0.97rem; color:#374151; line-height:1.65; word-break:break-word; font-style:italic; margin:0; }
.fw-wall-actions { position:relative; flex-shrink:0; }
.fw-wall-dots { width:28px; height:28px; border-radius:8px; background:none; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#d1d5db; transition:all 0.15s; }
.fw-wall-dots:hover { background:#f5f5f5; color:#6b7280; }
.fw-wall-menu { position:absolute; top:32px; right:0; background:#fff; border:1.5px solid #f0f0f0; border-radius:12px; padding:4px; box-shadow:0 8px 24px rgba(0,0,0,0.1); min-width:160px; z-index:100; animation:fwDropIn 0.15s ease; }
.fw-wall-del { display:flex; align-items:center; gap:8px; width:100%; background:none; border:none; border-radius:8px; padding:9px 12px; font-size:0.82rem; font-weight:600; color:#ef4444; cursor:pointer; transition:background 0.12s; }
.fw-wall-del:hover { background:#fef2f2; }
.fw-wall-empty { grid-column:1/-1; text-align:center; padding:60px 24px; color:#9ca3af; font-size:0.9rem; display:flex; flex-direction:column; align-items:center; gap:14px; }

@media (max-width: 768px) {
    .crab-chat { height: calc(100vh - 200px); border-radius: 16px; }
    .wall-page { padding: 0 0 32px; }
    .wall-title { font-size: 1.4rem; }
    .wall-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   LAYOUT PC — Toutes les sections pleine largeur
   ════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

    /* ── Toutes les sections : padding uniforme, pleine largeur ── */
    .content-panel.active {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* ── Accueil ── */
    #accueil {
        padding: 40px 56px 56px !important;
    }
    .homepage-container {
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* ── Gallery ── */
    #gallery {
        padding: 36px 48px 48px !important;
    }
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 24px !important;
        max-width: none !important;
        width: 100% !important;
    }

    /* ── Miss Grill ── */
    #miss-grill {
        padding: 36px 48px 48px !important;
    }
    .mg-container {
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* ── Nell Imitations & Chansons ── */
    #nell-imitations,
    #chansons {
        padding: 36px 48px 48px !important;
    }
    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
        gap: 24px !important;
        max-width: none !important;
        width: 100% !important;
    }

    /* ── Nellou Spam ── */
    #spam {
        padding: 36px 48px 48px !important;
    }

    /* ── Nellformations ── */
    #informations {
        padding: 36px 48px 48px !important;
    }
    .nf-page {
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* ════ CRABCHAT — plein écran style Discord/Slack ════ */
    #chat.active {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        /* Hauteur = viewport - content-header */
        height: calc(100vh - 65px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    #chat.active .crab-chat {
        flex: 1 !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 1px solid #f0f0f0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    #chat.active .crab-header {
        padding: 20px 48px !important;
        border-bottom: 1.5px solid #f5f5f5 !important;
    }
    #chat.active .crab-title { font-size: 1.5rem !important; color: #f97316 !important; }
    #chat.active .crab-subtitle { font-size: 0.85rem !important; }
    #chat.active .crab-messages {
        flex: 1 !important;
        padding: 24px 48px !important;
        gap: 14px !important;
        overflow-y: auto !important;
    }
    #chat.active .chat-msg { max-width: 55% !important; }
    #chat.active .chat-msg-bubble {
        font-size: 0.97rem !important;
        max-width: none !important;
    }
    #chat.active .chat-msg-avatar { width: 40px !important; height: 40px !important; }
    #chat.active .chat-msg-avatar img { width: 40px !important; height: 40px !important; }
    #chat.active .crab-input-area {
        padding: 16px 48px 24px !important;
        background: #fff !important;
        border-top: 1.5px solid #f0f0f0 !important;
    }
    #chat.active .crab-input { font-size: 1rem !important; padding: 14px 20px !important; }
    #chat.active .crab-send { width: 50px !important; height: 50px !important; }
    #chat.active .crab-info-panel { margin: 0 48px 0 !important; }

    /* ════ MUR DE MESSAGES — plein écran, grille dense ════ */
    #fan-wall {
        padding: 40px 48px 60px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    #fan-wall .wall-page {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #fan-wall .wall-title { font-size: 1.7rem !important; color: #f97316 !important; }
    #fan-wall .wall-subtitle { font-size: 0.92rem !important; }
    #fan-wall .wall-compose {
        max-width: none !important;
        width: 100% !important;
    }
    #fan-wall .wall-input { font-size: 1rem !important; min-height: 90px !important; }
    #fan-wall .wall-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
    }
    #fan-wall .fw-wall-card { padding: 20px !important; }
    #fan-wall .fw-wall-name { font-size: 0.95rem !important; }
    #fan-wall .fw-wall-quote { font-size: 1rem !important; }
}


/* ══════════════════════════════════════════════════════════════════
   NELL GALLERY — Redesign moderne 2026 (Pinterest / Instagram style)
   ══════════════════════════════════════════════════════════════════ */

/* Wrapper global */
.gl-wrap {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
}

/* ── Header ── */
.gl-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 36px 48px 24px;
    flex-wrap: wrap;
}
.gl-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gl-subtitle {
    font-size: 0.88rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Tri ── */
.gl-sort-group {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
}
.gl-sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gl-sort-btn.active {
    background: #fff;
    color: #f97316;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.gl-sort-btn svg { stroke: currentColor; flex-shrink: 0; }

/* ── Catégories ── */
.gl-cats {
    display: flex;
    gap: 10px;
    padding: 0 48px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.gl-cats::-webkit-scrollbar { display: none; }
.gl-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 99px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.gl-cat-btn:hover {
    border-color: #f97316;
    color: #f97316;
    background: #fff7ed;
}
.gl-cat-btn.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.gl-cat-btn.active .gl-cat-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.gl-cat-count {
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    line-height: 1.5;
}
.gl-cat-new {
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ── Grille ── */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 4px 48px 48px;
}

/* ── Carte image ── */
.gl-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    cursor: pointer;
}
.gl-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}
.gl-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f3f4f6;
}
.gl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gl-card:hover .gl-card-img {
    transform: scale(1.06);
}

/* Overlay au hover */
.gl-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.gl-card:hover .gl-card-overlay {
    opacity: 1;
}
.gl-view-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    transition: all 0.15s;
    backdrop-filter: blur(4px);
}
.gl-view-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Badge likes sur l'image */
.gl-like-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 99px;
    pointer-events: none;
}
.gl-heart-icon { color: #ef4444; flex-shrink: 0; }

/* Footer carte */
.gl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

/* Bouton like */
.gl-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.15s ease;
}
.gl-like-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}
.gl-like-btn--liked {
    color: #ef4444 !important;
}
.gl-like-btn--liked .gl-like-heart {
    fill: #ef4444;
    stroke: #ef4444;
}
.gl-like-heart { transition: fill 0.15s, stroke 0.15s; }

/* Animation pop like */
@keyframes glLikePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.gl-like-pop .gl-like-heart {
    animation: glLikePop 0.4s cubic-bezier(0.36,0.07,0.19,0.97);
}

/* Bouton télécharger */
.gl-dl-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s;
}
.gl-dl-btn:hover {
    background: #f97316;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gl-header { padding: 20px 16px 16px; }
    .gl-cats   { padding: 0 16px 16px; }
    .gl-grid   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 4px 16px 32px; }
    .gl-title  { font-size: 1.6rem; }
    .gl-card-img-wrap { aspect-ratio: 1/1; }
}
@media (min-width: 1400px) {
    .gl-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Ancien système galerie — masqué */
.gallery-container, .gallery-header, .gallery-pagination { display: none !important; }

/* ══════════════════════════════════════════════════════════════════
   NELL GALLERY — Système de vues
   ══════════════════════════════════════════════════════════════════ */

/* ── Badge vues sur la carte (coin supérieur gauche) ── */
.gl-views-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.gl-views-badge svg { stroke: #93c5fd; flex-shrink: 0; }

/* ── Vues dans le footer carte ── */
.gl-footer-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    transition: opacity 0.2s ease;
}
.gl-footer-views svg { stroke: #93c5fd; flex-shrink: 0; }

/* ══ FULLSCREEN — Overlay refait ══ */
.gallery-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bouton fermer */
.gl-fs-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.gl-fs-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

/* Wrapper image + stats */
.gl-fs-wrap {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Image plein écran */
.gl-fs-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    display: block;
}

/* Barre de stats sous l'image */
.gl-fs-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 18px;
    width: 100%;
    box-sizing: border-box;
}

.gl-fs-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}
.gl-fs-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.gl-fs-stat-views svg { stroke: #93c5fd; }
.gl-fs-stat-likes svg { fill: #f87171; }

/* Séparateur */
.gl-fs-stat + .gl-fs-stat::before {
    content: '';
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
    margin-right: 6px;
}

/* Bouton Viewers */
.gl-fs-viewers-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gl-fs-viewers-btn:hover,
.gl-fs-viewers-btn--active {
    background: rgba(147,197,253,0.15);
    border-color: rgba(147,197,253,0.4);
    color: #93c5fd;
}
.gl-fs-viewers-btn svg { stroke: currentColor; }

/* Panel viewers */
.gl-fs-viewers-panel {
    width: 100%;
    background: rgba(15,15,20,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: glFadeIn 0.18s ease;
}

@keyframes glFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gl-fs-viewers-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #93c5fd;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gl-fs-viewers-header svg { stroke: #93c5fd; flex-shrink: 0; }

.gl-fs-viewers-list {
    max-height: 180px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.gl-fs-viewers-list::-webkit-scrollbar { width: 3px; }
.gl-fs-viewers-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.gl-fs-viewer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background 0.12s;
}
.gl-fs-viewer-item:hover { background: rgba(255,255,255,0.04); }

.gl-fs-viewer-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gl-fs-viewer-av--anon {
    background: linear-gradient(135deg, #4b5563, #374151);
}

.gl-fs-viewer-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.gl-fs-viewer-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gl-fs-viewer-date {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
}

.gl-fs-viewers-loading,
.gl-fs-viewers-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .gl-fs-img { max-height: 60vh; }
    .gl-fs-stats { gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
    .gl-fs-viewers-btn { margin-left: 0; }
    .gl-fs-viewers-panel { margin-top: 6px; }
}

/* ── Titre de section universel (CrabChat, Mur de messages…) ── */
.nc-section-heading {
    padding: 28px 48px 0;
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.nc-section-heading-title {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.1;
}
.nc-section-heading-bar {
    width: 44px;
    height: 3px;
    background: #f97316;
    border-radius: 99px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .nc-section-heading { padding: 20px 16px 0; }
    .nc-section-heading-title { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   MUR DE MESSAGES — Nouveau hero (même style Miss Grill)
   ════════════════════════════════════════════════════════════════ */
.fw2-page {
    width: 100%;
    padding: 28px 48px 56px;
    box-sizing: border-box;
}

.fw2-hero {
    position: relative;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 50%, #f3e8ff 100%);
    border: 1.5px solid #c4b5fd;
    border-radius: 18px;
    margin-bottom: 28px;
    overflow: hidden;
    padding: 44px 48px 38px;
}
.fw2-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(168,85,247,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.fw2-hero-content { position: relative; z-index: 1; }
.fw2-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.35);
    color: #6d28d9;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    padding: 5px 14px; border-radius: 99px;
    margin-bottom: 14px;
}
.fw2-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #4c1d95;
    margin: 0 0 8px;
    line-height: 1.1;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fw2-hero-sub {
    font-size: 0.88rem;
    color: #5b21b6;
    opacity: 0.75;
    margin: 0;
    font-style: italic;
}

/* ════════════════════════════════════════════════════════════════
   CRABCHAT — Nouveau hero (même style Miss Grill)
   ════════════════════════════════════════════════════════════════ */
.cc2-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    box-sizing: border-box;
    padding: 28px 48px 0;
    overflow-y: auto;
    scrollbar-width: none;
}
.cc2-page::-webkit-scrollbar { display: none; }
.cc2-page .crab-chat {
    flex: 1;
    min-height: 0;
    border-radius: 16px !important;
    border: 1.5px solid #f0f0f0 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
    margin-bottom: 32px;
    overflow: hidden;
}

.cc2-hero {
    position: relative;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef9c3 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 32px 48px 28px;
    flex-shrink: 0;
}
.cc2-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(249,115,22,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(251,191,36,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.cc2-hero-content { position: relative; z-index: 1; }
.cc2-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.35);
    color: #c2410c;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    padding: 5px 14px; border-radius: 99px;
    margin-bottom: 12px;
}
.cc2-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
    animation: chatPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.cc2-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin: 0 0 6px;
    line-height: 1.1;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cc2-hero-sub {
    font-size: 0.85rem;
    color: #92400e;
    opacity: 0.75;
    margin: 0;
    font-style: italic;
}

/* Désactiver les overrides #chat.active qui causaient le débordement */
#chat.active {
    height: auto !important;
    display: block !important;
    padding: 0 !important;
}
#chat.active .crab-chat {
    height: 100% !important;
    border-radius: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .fw2-page { padding: 20px 16px 40px; }
    .fw2-hero { padding: 28px 20px 24px; }
    .cc2-page { padding: 20px 16px 0; height: auto; }
    .cc2-hero { padding: 24px 20px 20px; }
    .cc2-page .crab-chat { height: calc(100vh - 360px); }
}

/* ════════════════════════════════════════════════════════════════════
   CRABCHAT v3 — Interface moderne style Discord / Messenger
   ════════════════════════════════════════════════════════════════════ */

/* Layout principal pleine hauteur */
.cc3-layout {
    display: flex;
    height: calc(100vh - 65px);
    overflow: hidden;
    background: #f8f9fb;
}

/* Colonne principale */
.cc3-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

/* ── Topbar ── */
.cc3-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    gap: 12px;
}
.cc3-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cc3-live-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: chatPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.cc3-topbar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.2;
}
.cc3-topbar-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}
.cc3-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc3-online-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
}
.cc3-online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
}
.cc3-rules-btn {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.cc3-rules-btn:hover {
    border-color: #f97316;
    color: #f97316;
    background: #fff7ed;
}

/* ── Panel règles ── */
.cc3-rules-panel {
    display: flex;
    gap: 0;
    flex-direction: column;
    background: #fffbf5;
    border-bottom: 1px solid #fed7aa;
    flex-shrink: 0;
    animation: cc3SlideDown 0.18s ease;
}
@keyframes cc3SlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cc3-rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 28px;
    font-size: 0.8rem;
    color: #92400e;
    border-bottom: 1px solid #fde68a22;
}
.cc3-rule-item:last-child { border-bottom: none; }
.cc3-rule-item strong { color: #c2410c; }

/* ── Zone messages ── */
.cc3-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.cc3-messages::-webkit-scrollbar { width: 5px; }
.cc3-messages::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 99px; }

/* Loading dots */
.cc3-loading {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin: auto;
}
.cc3-loading-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #f97316;
    animation: cc3Bounce 1.2s ease-in-out infinite;
}
.cc3-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.cc3-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes cc3Bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* Messages — groupement style Discord */
.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 70%;
    padding: 2px 0;
}
.chat-msg-me {
    align-self: flex-end;
    flex-direction: row-reverse;
}
/* Regrouper les messages du même auteur : masquer avatar si même expéditeur consécutif */
.chat-msg.cc3-grouped .chat-msg-avatar { visibility: hidden; }
.chat-msg.cc3-grouped { padding-top: 1px; }

.chat-msg-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 900;
    color: white; flex-shrink: 0;
    overflow: hidden;
    margin-top: 2px;
}
.chat-msg-avatar img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }

.chat-msg-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
}
.chat-msg-me .chat-msg-content { align-items: flex-end; }

.chat-msg-name {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 2px;
    padding-left: 2px;
}
.chat-role-badge {
    font-size: 0.5rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 1px 5px; border-radius: 4px;
    vertical-align: middle; margin-left: 4px;
}
.chat-role-admin { background: rgba(249,115,22,0.15); color: #ea580c; }
.chat-role-mod   { background: rgba(139,92,246,0.15); color: #8b5cf6; }

.chat-msg-bubble {
    background: #f3f4f6;
    padding: 9px 14px;
    border-radius: 18px 18px 18px 4px;
    font-size: 0.92rem;
    color: #1f2937;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
    position: relative;
}
.chat-bubble-me {
    border-radius: 18px 18px 4px 18px;
    color: #fff;
}

.chat-msg-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 2px;
}
.chat-msg-me .chat-msg-footer { justify-content: flex-end; }
.chat-msg-time {
    font-size: 0.62rem;
    color: #d1d5db;
    font-weight: 500;
}
.chat-react-btn {
    background: none; border: none; cursor: pointer;
    font-size: 0.82rem; opacity: 0; padding: 0 2px;
    transition: opacity 0.15s; line-height: 1;
}
.chat-msg:hover .chat-react-btn { opacity: 0.5; }
.chat-react-btn:hover { opacity: 1 !important; }

/* Réactions */
.chat-msg-reactions { display: flex; gap: 3px; flex-wrap: wrap; }
.reaction-btn {
    display: flex; align-items: center; gap: 3px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 99px; padding: 2px 7px;
    font-size: 0.7rem; color: #374151;
    cursor: pointer; transition: all 0.15s;
}
.reaction-btn:hover { background: #fff7ed; border-color: #f97316; }
.reaction-btn.reaction-active { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.4); }

.chat-empty {
    text-align: center; color: #d1d5db;
    font-size: 0.88rem; padding: 60px 20px; margin: auto;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* ── Barre de saisie ── */
.cc3-input-area {
    padding: 14px 20px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cc3-login-banner {
    display: flex; align-items: center; gap: 10px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.85rem; color: #92400e; font-weight: 600;
    flex-wrap: wrap;
}
.cc3-login-btn {
    margin-left: auto;
    background: #f97316; color: #fff; border: none;
    border-radius: 10px; padding: 8px 18px;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.cc3-login-btn:hover { background: #ea580c; }

.cc3-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fb;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    transition: border-color 0.15s;
}
.cc3-input-row:focus-within {
    border-color: #f97316;
    background: #fff;
}
.cc3-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.93rem;
    color: #1f2937;
    font-family: inherit;
    padding: 7px 0;
}
.cc3-input::placeholder { color: #9ca3af; }
.cc3-send {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}
.cc3-send:hover { transform: scale(1.07); }
.cc3-send:disabled { opacity: 0.45; transform: none; box-shadow: none; }

.cc3-cooldown {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.73rem; color: #9ca3af;
    padding: 6px 4px 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .cc3-layout { height: auto; flex-direction: column; }
    .cc3-topbar { padding: 12px 16px; }
    .cc3-messages { padding: 16px; }
    .cc3-input-area { padding: 10px 12px 14px; }
    .chat-msg { max-width: 85%; }
}

/* ════════════════════════════════════════════════════════════════
   CRABCHAT — Panneau membres
   ════════════════════════════════════════════════════════════════ */
.cc3-layout {
    display: flex !important;
    height: calc(100vh - 65px) !important;
}
.cc3-main {
    flex: 1 !important;
    min-width: 0 !important;
}
.cc3-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #f8f9fb;
    border-left: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cc3-sidebar-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 14px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cc3-sidebar-header svg { stroke: #9ca3af; flex-shrink: 0; }
.cc3-member-count {
    margin-left: auto;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
}
.cc3-sidebar-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 5px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cc3-sidebar-section-label--offline {
    color: #9ca3af;
    padding-top: 6px;
}
.cc3-online-dot-sm {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}
.cc3-members-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px 12px;
    scrollbar-width: none;
}
.cc3-members-list::-webkit-scrollbar { display: none; }
.cc3-members-loading {
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #d1d5db;
}
.cc3-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: default;
    transition: background 0.12s;
}
.cc3-member-item:hover { background: #f0f0f0; }
.cc3-member-av {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 900;
    color: white; flex-shrink: 0; overflow: hidden;
}
.cc3-member-av img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.cc3-member-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc3-member-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}
.cc3-member-dot--online {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

/* ════════════════════════════════════════════════════════════════
   NELL PARTY — Boutons image officiels (grille originale)
   ════════════════════════════════════════════════════════════════ */

/* Grille = même que l'original : 2 colonnes, Jouer en span 2 */
/* ── Grille menu Nell Party ── */
.menu-content-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 6px 16px 12px !important;
    flex: 1 !important;
    align-content: center !important;
    justify-items: center !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

/* ── Boutons secondaires — taille identique, grille parfaite ── */
/* Keyframes flottement premium — 7 variantes avec décalages */
@keyframes npFloat0 { 0%,100%{transform:translateY(0)   scale(1);}    50%{transform:translateY(-3px) scale(1.01);} }
@keyframes npFloat1 { 0%,100%{transform:translateY(-1px) scale(1.005);} 50%{transform:translateY(2px)  scale(0.995);} }
@keyframes npFloat2 { 0%,100%{transform:translateY(1px)  scale(0.998);} 50%{transform:translateY(-2px) scale(1.008);} }
@keyframes npFloat3 { 0%,100%{transform:translateY(-2px) scale(1.006);} 50%{transform:translateY(1px)  scale(0.997);} }
@keyframes npFloat4 { 0%,100%{transform:translateY(0)   scale(1.002);} 50%{transform:translateY(-3px) scale(1);} }
@keyframes npFloat5 { 0%,100%{transform:translateY(2px)  scale(0.997);} 50%{transform:translateY(-1px) scale(1.006);} }
@keyframes npFloat6 { 0%,100%{transform:translateY(-1px) scale(1);   } 50%{transform:translateY(3px)  scale(1.01);} }

.np-imgbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 88px;
    /* Animation flottement par défaut — sera override par nth-child */
    animation: npFloat0 3.4s ease-in-out infinite;
    transition:
        transform 0.2s cubic-bezier(0.34,1.3,0.64,1),
        filter 0.2s ease,
        animation-play-state 0.1s;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.22));
    box-sizing: border-box;
    will-change: transform;
}
/* Décalages uniques par position dans la grille */
.np-imgbtn:nth-child(2) { animation: npFloat1 3.8s ease-in-out 0.4s  infinite; }
.np-imgbtn:nth-child(3) { animation: npFloat2 3.2s ease-in-out 0.9s  infinite; }
.np-imgbtn:nth-child(4) { animation: npFloat3 4.0s ease-in-out 0.2s  infinite; }
.np-imgbtn:nth-child(5) { animation: npFloat4 3.6s ease-in-out 0.7s  infinite; }
.np-imgbtn:nth-child(6) { animation: npFloat5 3.5s ease-in-out 1.1s  infinite; }
.np-imgbtn:nth-child(7) { animation: npFloat6 3.9s ease-in-out 0.5s  infinite; }
.np-imgbtn:nth-child(8) { animation: npFloat1 3.3s ease-in-out 1.4s  infinite; }

.np-imgbtn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    pointer-events: none;
}

/* Hover : stoppe l'animation + zoom premium */
.np-imgbtn:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.04) !important;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)) brightness(1.08);
    transition-duration: 0.18s;
}

/* Clic : pression */
.np-imgbtn:active {
    animation-play-state: paused;
    transform: scale(0.96) !important;
    transition-duration: 0.07s;
}

/* ── Bouton Jouer — centré, réduit ~12%, flottement premium ── */
@keyframes npFloatPlay {
    0%,100% { transform: translateY(0)    scale(1); }
    50%      { transform: translateY(-4px) scale(1.008); }
}
.np-imgbtn--play {
    grid-column: span 2;
    width: 88%;
    height: auto;
    justify-self: center;
    animation: npFloatPlay 4s ease-in-out infinite !important;
}
.np-imgbtn--play img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}
.np-imgbtn--play:hover {
    animation-play-state: paused !important;
    transform: translateY(-6px) scale(1.03) !important;
    filter: drop-shadow(0 18px 32px rgba(249,115,22,0.5)) brightness(1.08) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .menu-content-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .np-imgbtn         { height: 76px; }
    .np-imgbtn--play   { width: 90%; }
}
@media (max-width: 480px) {
    .np-imgbtn         { height: 66px; }
    .np-imgbtn--play   { width: 95%; }
}

/* Responsive chat sidebar */
@media (max-width: 768px) {
    .cc3-sidebar { display: none; }
    .cc3-layout { height: auto !important; }
}

/* ── Classement — même taille que les autres, centré sur sa ligne ── */
.np-imgbtn--leaderboard {
    grid-column: 1 / -1;
    width: calc(50% - 4px);   /* exactement la même largeur qu'un bouton 2-colonnes */
    justify-self: center;
    /* height, border-radius etc. hérités de .np-imgbtn */
}

/* ── Casier — carte stylisée vert forêt, même taille que np-imgbtn ── */
.np-imgbtn--locker {
    background: linear-gradient(145deg, #064e35 0%, #043d28 100%) !important;
    border: 1.5px solid rgba(52,211,153,0.30);
    box-shadow: 0 2px 10px rgba(5,80,50,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
    /* width et height hérités de .np-imgbtn — pas d'override */
}
.np-imgbtn--locker:hover {
    border-color: rgba(110,231,183,0.5);
    box-shadow: 0 8px 22px rgba(5,100,60,0.3), inset 0 1px 0 rgba(255,255,255,0.10);
}
/* np-locker-card — supprimé, remplacé par image officielle */

@media (max-width: 768px) {
    .np-imgbtn--leaderboard { width: calc(50% - 4px); }
}

/* ════════════════════════════════════════════════════════════════
   POPUP BIENVENUE V7 — Premium, moderne
   ════════════════════════════════════════════════════════════════ */
.nc-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.75);
    backdrop-filter: blur(12px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.nc-welcome-overlay--visible { opacity: 1; }

.nc-welcome-modal {
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    animation: ncWelcomeIn 0.45s cubic-bezier(0.34,1.3,0.64,1) both;
    position: relative;
    overflow: hidden;
}
.nc-welcome-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ef4444, #8b5cf6, #16a34a);
}

@keyframes ncWelcomeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nc-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

.nc-welcome-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.nc-welcome-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.2;
}
.nc-welcome-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 22px;
    text-align: center;
    line-height: 1.5;
}

/* Grille nouveautés */
.nc-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
}
.nc-welcome-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 11px 14px;
    transition: background 0.15s;
}
.nc-welcome-feat:hover { background: #f3f4f6; }
.nc-welcome-feat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nc-welcome-feat-icon svg { stroke: currentColor; }
.nc-welcome-feat-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}
.nc-welcome-feat-sub {
    font-size: 0.73rem;
    color: #9ca3af;
}

/* Boutons CTA */
.nc-welcome-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}
.nc-welcome-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34,1.3,0.64,1);
    box-shadow: 0 6px 18px rgba(249,115,22,0.4);
}
.nc-welcome-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(249,115,22,0.5);
}
.nc-welcome-btn-secondary {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.nc-welcome-btn-secondary:hover {
    background: #e9ecef;
    border-color: #d1d5db;
}

.nc-welcome-skip {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}
.nc-welcome-skip:hover { color: #6b7280; }

/* CSS Nellformations — carte verte (ajoutée pour V7 archive) */
.nf-card-green { border-top: 3px solid #10b981; }
.nf-card-top-bar.nf-bar-green { background: linear-gradient(90deg, #10b981, #059669); }

@media (max-width: 480px) {
    .nc-welcome-modal { padding: 28px 20px 22px; border-radius: 20px; }
    .nc-welcome-title { font-size: 1.25rem; }
    .nc-welcome-actions { flex-direction: column; }
}

/* ── Badge sécurité — formulaire de connexion/inscription ── */
.nc-auth-security {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 9px 13px;
    margin-top: 14px;
    font-size: 0.72rem;
    color: #15803d;
    font-weight: 600;
    line-height: 1.4;
}
.nc-auth-security svg { stroke: #16a34a; flex-shrink: 0; }
.nc-auth-security strong { color: #14532d; }

/* ── CrabChat — occupe exactement la hauteur dispo sans scroll de page ── */
#chat.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* content-body ne scrolle plus quand le chat est actif */
.content-body:has(#chat.active) {
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* cc3-layout remplit toute la hauteur de son parent */
#chat.active .cc3-layout {
    flex: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* cc3-main remplit aussi */
#chat.active .cc3-main {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* messages prennent le reste de la place */
#chat.active .cc3-messages {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* input ne se réduit jamais */
#chat.active .cc3-input-area {
    flex-shrink: 0 !important;
}

/* sidebar aussi */
#chat.active .cc3-sidebar {
    overflow-y: auto !important;
    min-height: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   MOBILE — Bottom nav + Drawer (max-width: 768px UNIQUEMENT)
   Zero impact sur le CSS desktop
   ══════════════════════════════════════════════════════════ */

/* Éléments cachés par défaut sur desktop */
.mb-bottom-nav,
.mb-drawer,
.mb-drawer-overlay { display: none; }

@media (max-width: 768px) {

    /* ── Masquer ancien hamburger + menu slide ── */
    .hamburger-btn,
    .mobile-menu     { display: none !important; }

    /* ── Cacher la sidebar desktop ── */
    .sidebar         { display: none !important; }
    .main-area       { margin-left: 0 !important; }

    /* ── Décaler le contenu : header en haut + bottom nav en bas ── */
    .main-area {
        margin-top: 56px !important;
        padding-bottom: 64px !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    /* ── Header mobile existant — agrandir légèrement ── */
    .mobile-header-content { min-height: 56px !important; }

    /* ══ BOTTOM NAV ══ */
    .mb-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #ebebeb;
        z-index: 500;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mb-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: none;
        cursor: pointer;
        color: #9ca3af;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding: 6px 0 4px;
        transition: color 0.13s;
        position: relative;
    }
    .mb-nav-btn svg { stroke: currentColor; }
    .mb-nav-btn span { line-height: 1; }

    .mb-nav-btn.active { color: #f97316; }
    .mb-nav-btn.active svg { stroke: #f97316; }
    .mb-nav-btn.active::before {
        content: '';
        position: absolute;
        top: 0; left: 15%; right: 15%;
        height: 2px;
        background: #f97316;
        border-radius: 0 0 3px 3px;
    }

    /* ══ OVERLAY + DRAWER ══ */
    .mb-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 600;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .mb-drawer-overlay.open { display: block; }

    .mb-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #fff;
        border-radius: 22px 22px 0 0;
        padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        z-index: 601;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
    }
    .mb-drawer.open { transform: translateY(0); }

    .mb-drawer-handle {
        width: 36px; height: 4px;
        background: #e5e7eb;
        border-radius: 99px;
        margin: 0 auto 14px;
        flex-shrink: 0;
    }

    /* Bouton Nell Party dans drawer */
    .mb-drawer-party-btn {
        background: none; border: none; cursor: pointer;
        width: 100%; padding: 0 0 14px;
        flex-shrink: 0;
    }
    .mb-drawer-party-btn img {
        width: 100%; height: 56px;
        object-fit: contain;
        filter: drop-shadow(0 3px 8px rgba(249,115,22,0.25));
    }

    /* Grille sections */
    .mb-drawer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .mb-drawer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        background: #f9fafb;
        border: 1px solid #f0f0f0;
        border-radius: 14px;
        padding: 14px 6px 10px;
        cursor: pointer;
        font-size: 0.67rem;
        font-weight: 700;
        color: #374151;
        transition: background 0.12s, transform 0.1s;
        -webkit-tap-highlight-color: transparent;
    }
    .mb-drawer-item:active {
        transform: scale(0.95);
        background: #f0f0f0;
    }

    .mb-drawer-icon {
        width: 38px; height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Sections : padding bottom pour ne pas être cachées par la nav */
    .content-panel.active {
        padding-bottom: 24px !important;
    }
}

/* ══════════════════════════════════════════════════════════
   CRABCHAT — Panneau invite TikTok Live
   ══════════════════════════════════════════════════════════ */

/* Bouton Live dans la topbar */
.cc3-invite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}
.cc3-invite-btn svg { fill: #fff; flex-shrink: 0; }
.cc3-invite-btn:hover {
    background: linear-gradient(135deg, #222, #444);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cc3-invite-btn--active {
    background: linear-gradient(135deg, #fe2c55, #c0002e) !important;
    box-shadow: 0 4px 14px rgba(254,44,85,0.4) !important;
}

/* Panneau invite */
.cc3-invite-panel {
    background: #fff;
    border-bottom: 2px solid #fe2c55;
    padding: 14px 20px 16px;
    flex-shrink: 0;
    animation: cc3SlideDown 0.18s ease;
}
.cc3-invite-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.cc3-invite-header svg { fill: #fe2c55; flex-shrink: 0; }
.cc3-invite-tip {
    font-size: 0.72rem;
    color: #9ca3af;
    margin: 0 0 12px;
    line-height: 1.45;
}

/* Liste des messages */
.cc3-invite-messages {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
    padding-right: 2px;
}
.cc3-invite-messages::-webkit-scrollbar { width: 3px; }
.cc3-invite-messages::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

.cc3-invite-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px 12px;
    transition: background 0.12s;
}
.cc3-invite-msg:hover { background: #f3f4f6; }
.cc3-invite-msg span {
    flex: 1;
    font-size: 0.78rem;
    color: #374151;
    line-height: 1.45;
    min-width: 0;
}
.cc3-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.cc3-copy-btn:hover {
    border-color: #fe2c55;
    color: #fe2c55;
    background: #fff5f7;
}

/* ══════════════════════════════════════════════════════════
   CRABCHAT — Mode invité (pseudo libre)
   ══════════════════════════════════════════════════════════ */

/* Bannière saisie pseudo invité */
.cc3-guest-banner {
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cc3-guest-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
    transition: border-color 0.15s;
}
.cc3-guest-form:focus-within { border-color: #f97316; }
.cc3-guest-icon { flex-shrink: 0; display: flex; align-items: center; }
.cc3-guest-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #1f2937;
    font-family: inherit;
    padding: 6px 0;
}
.cc3-guest-input::placeholder { color: #9ca3af; }
.cc3-guest-input.cc3-input-error {
    animation: cc3Shake 0.3s ease;
}
@keyframes cc3Shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}
.cc3-guest-confirm {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.cc3-guest-confirm:hover { transform: scale(1.03); }

.cc3-guest-or {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: #9ca3af;
    justify-content: center;
}
.cc3-guest-or span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cc3-guest-login {
    background: none;
    border: none;
    color: #f97316;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Tag pseudo invité dans la barre de saisie */
.cc3-input-sender {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 0 0 4px;
    flex-shrink: 0;
}
.cc3-guest-tag-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}
.cc3-guest-tag-badge {
    font-size: 0.55rem;
    font-weight: 800;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 4px;
    padding: 1px 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cc3-guest-tag-change {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.12s;
}
.cc3-guest-tag-change:hover { color: #f97316; }

/* Badge Invité dans les messages */
.chat-role-guest {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    font-size: 0.48rem !important;
}

/* ── Stats hero — visites + en ligne ── */
.hero-stat-visits .stat-number { color: #8b5cf6; }
.hero-stat-online .stat-number {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #22c55e;
}
.hero-online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
    animation: chatPulse 2s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
}

/* ── Badge Nouveau sur les sons (Nell Imitations) ── */
.audio-new-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════
   MOBILE — Interface application (max-width: 768px)
   ══════════════════════════════════════════════════════════ */

/* Éléments mobiles cachés sur desktop */
.app-header,
.app-bottom-nav,
.app-drawer,
.app-overlay { display: none; }

/* Badge Nouveau sons */
.audio-new-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    line-height: 1.6;
}

@media (max-width: 768px) {

    html, body { overflow-x: hidden !important; max-width: 100vw !important; }

    /* Masquer tout l'ancien système hamburger */
    .mobile-header,
    .mobile-menu,
    .hamburger-btn,
    .mb-bottom-nav,
    .mb-drawer,
    .mb-drawer-overlay { display: none !important; }

    /* Masquer sidebar desktop + forcer layout plein écran */
    .sidebar { display: none !important; width: 0 !important; }
    .app-container { display: block !important; }
    .main-area {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding-bottom: 72px !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
    }
    .content-header { display: none !important; }

    /* Bandeau */
    .nc-banner {
        position: relative !important;
        top: auto !important;
        font-size: 0.71rem !important;
        padding: 7px 12px !important;
        line-height: 1.4 !important;
    }

    /* ── Header app ── */
    .app-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        height: 52px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        padding: 0 14px;
        z-index: 400;
        box-shadow: 0 1px 6px rgba(0,0,0,0.07);
        gap: 10px;
    }
    .app-header-logo { height: 26px; object-fit: contain; flex-shrink: 0; }
    .app-header-title {
        flex: 1;
        font-size: 0.9rem;
        font-weight: 800;
        color: #f97316;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .app-header-user {
        width: 34px; height: 34px;
        border-radius: 50%;
        background: #f3f4f6;
        border: 1.5px solid #e5e7eb;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; color: #6b7280;
        flex-shrink: 0; overflow: hidden; padding: 0;
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
    }
    .app-header-user * { pointer-events: none; }
    .app-header-user img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

    /* ── Bottom nav ── */
    .app-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #ebebeb;
        z-index: 400;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .app-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: none;
        color: #9ca3af;
        font-size: 0.59rem;
        font-weight: 700;
        cursor: pointer;
        transition: color 0.13s;
        padding: 5px 0 4px;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    .app-nav-btn svg { stroke: currentColor; }
    .app-nav-btn.active { color: #f97316; }
    .app-nav-btn.active svg { stroke: #f97316; }
    .app-nav-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0; left: 18%; right: 18%;
        height: 2.5px;
        background: #f97316;
        border-radius: 99px 99px 0 0;
    }

    /* ── Overlay ── */
    .app-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 500;
        backdrop-filter: blur(4px);
    }
    .app-overlay.open { display: block; }

    /* ── Drawer ── */
    .app-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #fff;
        border-radius: 24px 24px 0 0;
        z-index: 501;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
    .app-drawer.open { transform: translateY(0); }
    .app-drawer-pill {
        width: 38px; height: 4px;
        background: #e5e7eb;
        border-radius: 99px;
        margin: 12px auto 14px;
    }
    .app-drawer-sections { padding: 0 16px 20px; }
    .app-drawer-section-title {
        font-size: 0.6rem; font-weight: 800;
        text-transform: uppercase; letter-spacing: 0.1em;
        color: #9ca3af; padding: 4px 0 10px; margin-top: 4px;
    }
    .app-drawer-game { background: none; border: none; cursor: pointer; width: 100%; padding: 0 0 14px; }
    .app-drawer-game img { width: 100%; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(249,115,22,0.3)); }
    .app-drawer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .app-drawer-item {
        display: flex; flex-direction: column; align-items: center; gap: 7px;
        background: #f9fafb; border: 1px solid #f0f0f0; border-radius: 14px;
        padding: 14px 6px 10px; cursor: pointer;
        font-size: 0.67rem; font-weight: 700; color: #374151;
        -webkit-tap-highlight-color: transparent; text-align: center;
        transition: transform 0.1s;
    }
    .app-drawer-item:active { transform: scale(0.95); background: #f0f0f0; }
    .app-drawer-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

    /* ── Panels ── */
    .content-panel.active { padding: 14px 12px 32px !important; box-sizing: border-box !important; }

    /* ── CrabChat mobile ── */
    .cc3-sidebar { display: none !important; }
    .cc3-layout  { height: calc(100svh - 116px) !important; }
    .cc3-topbar  { padding: 10px 14px !important; }
    .cc3-messages { padding: 12px 14px !important; }
    .cc3-input-area { padding: 10px 12px 12px !important; }
    .cc3-invite-btn { font-size: 0.64rem !important; padding: 5px 8px !important; }
    .chat-msg { max-width: 85% !important; }

    /* ── Hero ── */
    .hero-stats-container { grid-template-columns: repeat(2,1fr) !important; gap: 7px !important; }
    .hero-main-title { font-size: clamp(1.8rem,8vw,2.6rem) !important; }
    .hero-subtitle { font-size: 0.8rem !important; }

    /* ── Gallery ── */
    .gl-grid { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }

    /* ── Mur, Audio, Nellformations ── */
    .wall-grid { grid-template-columns: 1fr !important; }
    .audio-grid { grid-template-columns: 1fr !important; }
    .nf-main-grid { grid-template-columns: 1fr !important; }

    /* ── Planning events ── */
    .hp-event { padding: 13px !important; gap: 12px !important; }
    .hp-event-emoji { width: 50px !important; height: 50px !important; }
    .hp-event-title { font-size: 0.9rem !important; }
}

/* ── Planning événements — Accueil ── */
.home-planning { display:flex; flex-direction:column; gap:12px; margin-bottom:8px; }

.hp-event {
    display:flex; align-items:center; gap:18px;
    background:#fff; border:1.5px solid #e5e7eb; border-radius:20px;
    padding:20px 22px; position:relative; overflow:hidden;
    transition:all 0.18s ease;
}
.hp-event::before {
    content:''; position:absolute; left:0; top:0; bottom:0;
    width:5px; background:#e5e7eb; border-radius:4px 0 0 4px;
}
.hp-event-soon   { background:linear-gradient(135deg,#fff7ed,#fffbeb); border-color:#fed7aa; box-shadow:0 4px 16px rgba(249,115,22,0.12); }
.hp-event-soon::before { background:linear-gradient(180deg,#f97316,#ea580c); }
.hp-event-today  { background:linear-gradient(135deg,#fef2f2,#fff7ed); border-color:#fca5a5; animation:hpPulse 2s ease-in-out infinite; }
.hp-event-today::before { background:#ef4444; }
.hp-event-past   { opacity:0.55; filter:grayscale(0.4); }
.hp-event-past::before { background:#d1d5db; }

@keyframes hpPulse { 0%,100%{box-shadow:0 4px 20px rgba(239,68,68,0.15);}50%{box-shadow:0 4px 28px rgba(239,68,68,0.3);} }

.hp-event-emoji {
    width:68px; height:68px; border-radius:18px;
    background:#f9fafb; display:flex; align-items:center; justify-content:center;
    overflow:hidden; flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.hp-event-emoji img { width:100%; height:100%; object-fit:cover; border-radius:18px; }
.hp-event-body { flex:1; }
.hp-event-title { font-size:1.1rem; font-weight:900; color:#111; }
.hp-event-date  { font-size:0.82rem; color:#9ca3af; font-weight:600; margin-top:4px; }
.hp-event-status { flex-shrink:0; }

.hp-status { font-size:0.78rem; font-weight:800; padding:6px 14px; border-radius:99px; white-space:nowrap; }
.hp-status-past     { background:#f0fdf4; color:#16a34a; }
.hp-status-today    { background:#fef2f2; color:#dc2626; }
.hp-status-soon     { background:#fff7ed; color:#f97316; }
.hp-status-upcoming { background:#f3f4f6; color:#6b7280; }

/* ── Bandeau domaine — Accueil ── */
.home-domain-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.home-domain-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f97316, #ea580c);
    border-radius: 4px 0 0 4px;
}
.home-domain-icon {
    width: 42px; height: 42px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #f97316;
}
.home-domain-text { flex: 1; min-width: 0; }
.home-domain-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f97316;
    margin-bottom: 3px;
}
.home-domain-desc {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.45;
}
.home-domain-desc strong { color: #111; font-weight: 800; }

@media (max-width: 768px) {
    .home-domain-banner { padding: 13px 14px 13px 16px; gap: 12px; border-radius: 14px; }
    .home-domain-icon { width: 36px; height: 36px; border-radius: 10px; }
    .home-domain-title { font-size: 0.65rem; }
    .home-domain-desc { font-size: 0.78rem; }
}

/* ── Annonce Discord ── */
.discord-announce {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(88,101,242,0.25);
}
.discord-announce.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.discord-announce-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.discord-announce-img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 50px rgba(88,101,242,0.35);
}

@media (max-width: 768px) {
    .discord-announce { border-radius: 14px; margin-bottom: 18px; }
    .discord-announce-img { border-radius: 14px; }
}
