/* 
 * 🎨 Jadox Cybernetic Universe Landing Page (V7 - 4 Social Monitors & 4-Column Stats)
 * Design original du site avec lueurs néon, orbites, 4 cartes médias et 4 métriques de réseaux sociaux.
 */

:root {
    --bg-dark: #020617;
    --bg-light: #f8fafc;
    
    --card-bg-dark: rgba(15, 23, 42, 0.6);
    --card-bg-light: rgba(255, 255, 255, 0.65);
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-hover: rgba(99, 102, 241, 0.25);
    --border-light: rgba(15, 23, 42, 0.06);
    --border-light-hover: rgba(99, 102, 241, 0.25);
    
    --text-primary-dark: #f8fafc;
    --text-primary-light: #0f172a;
    
    --text-muted-dark: #94a3b8;
    --text-muted-light: #475569;
    
    --color-twitch: #a970ff;
    --color-youtube: #ff3333;
    --color-instagram: #e1306c;
    --color-tiktok: #00f2fe;
    --color-discord: #5865f2;
    --color-primary: #6366f1;
    --color-secondary: #10b981;
    --color-accent: #f43f5e;
}

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

body.bento-body {
    background: var(--bg-dark);
    min-height: 100vh;
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text-primary-dark);
    padding: 50px 20px;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ═══════════ TEXTURE DE GRAIN CINÉMATIQUE ═══════════ */
body.bento-body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

/* ═══════════ AURORAS EN ARRIÈRE-PLAN (GLOW) ═══════════ */
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -2;
    animation: floatGlow 22s ease-in-out infinite alternate;
    transition: opacity 0.5s ease;
}

.aurora-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 80%);
    top: -5%; left: 15%;
}

.aurora-2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 80%);
    bottom: -8%; right: 12%;
    animation-delay: -6s;
}

.aurora-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 46, 147, 0.22) 0%, transparent 80%);
    top: 35%; right: 20%;
    animation-delay: -11s;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(40px) scale(1.15) rotate(15deg); }
}

/* ═══════════ BOUTON THÈME FLOTTANT ═══════════ */
.theme-toggle-btn {
    position: fixed;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* ═══════════ CONTENEUR ET GRILLE BENTO ═══════════ */
.bento-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ═══════════ CARTES BENTO DE BASE ═══════════ */
.bento-card {
    position: relative;
    background: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 26px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.scale-hover:hover {
    border-color: var(--border-dark-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.bento-card.full-width {
    grid-column: span 4;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.bento-card:hover .card-glow {
    opacity: 1;
}

.card-scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    z-index: 2;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-primary-dark);
}

.icon-neon {
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* ═══════════ TAGS CYBER ═══════════ */
.cyber-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.cyber-tag.secure {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cyber-tag.live-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulseGlow 1.5s infinite alternate;
}

.cyber-tag.offline-tag {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════ 1. CARTE PROFIL - STAGE CYBERNETIC ═══════════ */
.profile-card {
    grid-column: span 2;
    padding: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 27, 75, 0.4) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.profile-stage-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    z-index: 2;
}

.tech-orbit-container {
    position: relative;
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-container {
    position: relative;
    width: 76px; height: 76px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(99, 102, 241, 0.35);
    pointer-events: none;
}

.ring-outer {
    inset: -6px;
    animation: orbitRotate 25s linear infinite;
}

.ring-middle {
    inset: -2px;
    border-style: solid;
    border-color: rgba(168, 85, 247, 0.25) transparent;
    animation: orbitRotate 15s linear infinite reverse;
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.live-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.profile-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.verified-badge {
    color: #38bdf8;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.profile-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted-dark);
}

.profile-status-wrapper {
    margin-top: 4px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-indicator.live {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator.offline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot.pulsing {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Dock Lien Sociaux */
.profile-dock-wrapper {
    z-index: 2;
}

.profile-dock {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.dock-item.twitch:hover { border-color: var(--color-twitch); color: var(--color-twitch); box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }
.dock-item.youtube:hover { border-color: var(--color-youtube); color: var(--color-youtube); box-shadow: 0 0 15px rgba(255, 51, 51, 0.3); }
.dock-item.instagram:hover { border-color: var(--color-instagram); color: var(--color-instagram); box-shadow: 0 0 15px rgba(225, 48, 108, 0.3); }
.dock-item.tiktok:hover { border-color: var(--color-tiktok); color: var(--color-tiktok); box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }
.dock-item.discord:hover { border-color: var(--color-discord); color: var(--color-discord); box-shadow: 0 0 15px rgba(88, 101, 242, 0.3); }

/* ═══════════ 2. CARTE AUTHENTIFICATION & SESSION ═══════════ */
.auth-card {
    grid-column: span 2;
}

.auth-intro {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

.auth-buttons-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-btn.member {
    background: var(--color-discord);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.auth-btn.member:hover {
    background: #6a77f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
}

.auth-btn.staff {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-btn.staff:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* User Profile Connected */
.btn-logout {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.user-widget-avatar-wrapper {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-widget-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
}

.user-widget-avatar-placeholder {
    width: 100%; height: 100%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}

.user-widget-info {
    display: flex;
    flex-direction: column;
}

.user-widget-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
}

.user-widget-role {
    font-size: 0.78rem;
    color: #818cf8;
    font-weight: 700;
}

.connected-actions-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-link-btn {
    flex: 1;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary-dark);
}

.action-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-link-btn.staff-btn { border-color: rgba(99, 102, 241, 0.35); color: #818cf8; }
.action-link-btn.diagnostics-btn { border-color: rgba(16, 185, 129, 0.35); color: #34d399; }
.action-link-btn.member-btn { border-color: rgba(6, 182, 212, 0.35); color: #38bdf8; }

/* ═══════════ 3. MEDIA MONITORS (TWITCH, YOUTUBE, TIKTOK, INSTAGRAM) ═══════════ */
.twitch-card, .youtube-card, .tiktok-card, .instagram-card {
    grid-column: span 2;
    min-height: 420px;
}

.twitch-offline-vod {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.twitch-color { color: var(--color-twitch); }
.youtube-color { color: var(--color-youtube); }
.tiktok-color { color: var(--color-tiktok); }
.instagram-color { color: var(--color-instagram); }

.stream-title, .video-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.stream-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted-dark);
    margin-top: 4px;
    margin-bottom: 14px;
}

.stream-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.twitch-player-wrapper, .youtube-player-wrapper, .tiktok-preview-wrapper, .instagram-preview-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #000;
    margin-top: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

.youtube-player-wrapper iframe, .twitch-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.twitch-preview-link, .twitch-vod-link, .tiktok-preview-link, .instagram-preview-link, .youtube-preview-link {
    position: relative;
    display: block;
    width: 100%; height: 100%;
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.twitch-preview-img, .vod-preview-img, .tiktok-preview-img, .instagram-preview-img, .youtube-preview-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.twitch-preview-link:hover .twitch-preview-img,
.twitch-vod-link:hover .vod-preview-img,
.tiktok-preview-link:hover .tiktok-preview-img,
.instagram-preview-link:hover .instagram-preview-img,
.youtube-preview-link:hover .youtube-preview-img {
    transform: scale(1.06);
}

.twitch-play-overlay, .vod-play-overlay, .tiktok-play-overlay, .instagram-play-overlay, .youtube-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    transition: background 0.3s ease;
    border-radius: 20px;
}

.play-btn-circle {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--color-twitch);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transition: transform 0.3s ease;
}

.tiktok-btn-circle {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--color-tiktok);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    transition: transform 0.3s ease;
}

.instagram-btn-circle {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.6);
    transition: transform 0.3s ease;
}

.youtube-btn-circle {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--color-youtube, #ff0000);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.twitch-vod-link:hover .play-btn-circle,
.tiktok-preview-link:hover .tiktok-btn-circle,
.instagram-preview-link:hover .instagram-btn-circle,
.youtube-preview-link:hover .youtube-btn-circle {
    transform: scale(1.15);
}

.twitch-offline-content, .youtube-offline-content, .tiktok-offline-content, .instagram-offline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.offline-icon-wrapper {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted-dark);
}

.offline-message {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
}

/* Boutons Media */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.mt-1 { margin-top: 10px; }
.mt-auto { margin-top: auto; }

.btn-twitch {
    background: var(--color-twitch);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-twitch:hover {
    background: #b86eef;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-youtube {
    background: var(--color-youtube);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.btn-youtube:hover {
    background: #ff5555;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.5);
}

.btn-tiktok {
    background: var(--color-tiktok);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-tiktok:hover {
    background: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.btn-capsule {
    border-radius: 20px;
}

/* ═══════════ 4. CARTE STATISTIQUES GLOBAL & RÉSEAUX (5 COLONNES) ═══════════ */
.horizontal-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.stat-cyber-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--box-border-color, rgba(255, 255, 255, 0.06));
    box-shadow: 0 4px 20px var(--box-glow-color, transparent);
    transition: all 0.3s ease;
    min-width: 0;
}

.stat-cyber-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-cyber-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-cyber-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.stat-cyber-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.stat-cyber-label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: visible;
}

/* ═══════════ 5. CARTE CALENDRIER ═══════════ */
.calendar-card {
    grid-column: span 4;
}

.calendar-color { color: #6366f1; }

.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-time {
    font-size: 0.8rem;
    color: #818cf8;
    font-weight: 700;
}

.event-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.event-organizer {
    font-size: 0.78rem;
    color: var(--text-muted-dark);
}

.calendar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: var(--text-muted-dark);
    gap: 10px;
}

.calendar-empty i {
    font-size: 2.2rem;
    opacity: 0.4;
}

.calendar-empty p {
    font-size: 0.88rem;
    font-weight: 700;
}

/* ═══════════ 6. TUILES DE RACCOURCIS EN LIGNE COMPLÈTE ═══════════ */
.shortcut-tile {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    text-decoration: none;
    color: var(--text-primary-dark);
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.04);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.shortcut-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shortcut-tile:hover {
    border-color: var(--border-dark-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.shortcut-tile:hover .shortcut-bg-glow {
    opacity: 0.15;
}

.shortcut-icon {
    font-size: 2.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.shortcut-tile:hover .shortcut-icon {
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 0 12px currentColor);
}

.shortcut-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* ═══════════ FOOTER ═══════════ */
.bento-footer {
    grid-column: span 4;
    text-align: center;
    padding: 40px 10px 10px 10px;
    font-size: 0.82rem;
    color: var(--text-muted-dark);
    z-index: 1;
}

/* ═══════════ CONNECT MODAL DISCORD ═══════════ */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 5, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal {
    position: relative;
    width: 100%; max-width: 440px;
    background: #090c1c;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.12);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    0% { transform: scale(0.92) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.login-modal-icon-wrapper {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0 auto 24px auto;
}

.login-modal h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #fff;
}

.login-modal p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted-dark);
    margin-bottom: 30px;
}

.login-modal-btn-discord {
    height: 52px;
    border-radius: 14px;
    background: var(--color-discord);
    color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.login-modal-btn-discord:hover {
    transform: translateY(-2px);
    background: #6a77f3;
}

/* ═══════════ MODE CLAIR ═══════════ */
body.bento-body.light-mode {
    background: var(--bg-light);
    color: var(--text-primary-light);
}

body.bento-body.light-mode .bento-card {
    background: var(--card-bg-light);
    border-color: var(--border-light);
    color: var(--text-primary-light);
}

body.bento-body.light-mode .profile-name { color: #0f172a; }
body.bento-body.light-mode .profile-subtitle,
body.bento-body.light-mode .auth-intro,
body.bento-body.light-mode .stream-meta-item,
body.bento-body.light-mode .offline-message,
body.bento-body.light-mode .event-organizer,
body.bento-body.light-mode .calendar-empty p,
body.bento-body.light-mode .bento-footer p {
    color: var(--text-muted-light);
}

body.bento-body.light-mode .stat-cyber-box,
body.bento-body.light-mode .user-profile-widget,
body.bento-body.light-mode .event-item,
body.bento-body.light-mode .dock-item,
body.bento-body.light-mode .shortcut-tile {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary-light);
}

body.bento-body.light-mode .stat-cyber-val,
body.bento-body.light-mode .user-widget-name,
body.bento-body.light-mode .stream-title,
body.bento-body.light-mode .video-title,
body.bento-body.light-mode .event-name {
    color: #0f172a;
}

body.bento-body.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-light);
    color: #334155;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .horizontal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-footer, .bento-card.full-width {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body.bento-body {
        padding: 30px 14px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-card, .auth-card, .stats-card, .twitch-card, .youtube-card, .tiktok-card, .instagram-card, .calendar-card, .shortcut-tile, .bento-card.full-width {
        grid-column: span 1 !important;
    }
    
    .horizontal-stats-grid {
        grid-template-columns: 1fr;
    }

    .bento-footer {
        grid-column: span 1;
    }

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

    .profile-dock {
        justify-content: center;
    }

    .auth-buttons-wrapper {
        flex-direction: column;
    }
}
