/* ============================================
   🔧 RESET + BASE + VARIABLES
============================================ */
:root {
    --bg: #0d0d0d;
    --panel: #1a1a1a;
    --panel-2: #151515;
    --border: #2a2a2a;
    --text-dim: #9a9aa2;
    --accent: #ff4d4d;
    --accent-2: #ffb020;
    --accent-soft: rgba(255, 77, 77, 0.12);
    --success: #22c55e;
    --content-width: 700px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: white;
}

body.light-mode {
    background: #f2f2f2;
    color: black;
}

/* Light-mode: make the whole UI readable */
body.light-mode .sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    color: #111827;
}
body.light-mode .left-item {
    color: #111827;
}
body.light-mode .left-item:hover {
    background: #f3f4f6;
}
body.light-mode .left-item.active {
    background: #fff0f0;
    color: var(--accent);
}
body.light-mode .dropdown-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}
body.light-mode .topbar {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
body.light-mode .hero {
    background: linear-gradient(135deg, #fff5f0, #ffffff 60%);
    border: 1px solid #f0d9d9;
}
body.light-mode .hero-sub,
body.light-mode .hero-stat span,
body.light-mode .tabs-row button {
    color: #6b7280;
}
body.light-mode .tabs-row {
    border-bottom-color: #e5e7eb;
}
body.light-mode .post,
body.light-mode .right-box,
body.light-mode .notif-panel,
body.light-mode .notif-item,
body.light-mode .channel-box,
body.light-mode .live-item,
body.light-mode .event-card,
body.light-mode .prono-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}
body.light-mode .prono-desc,
body.light-mode .status,
body.light-mode .prono-status {
    color: #4b5563;
}
body.light-mode .news-item {
    color: #4b5563;
    border-bottom-color: #eee;
}
body.light-mode .mobile-top {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

/* Utilitaire: cacher/afficher */
.hidden { display: none !important; }

/* Topbar mobile (bouton hamburger) */
.mobile-top {
    display: none;
}

/* ============================================
   🟦 SIDEBAR (commune à toutes les pages)
============================================ */
.sidebar {
    width: 240px;
    background: #000;
    color: #fff;
    padding: 35px 16px 25px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-right: 1px solid #111;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    box-sizing: border-box;
}

.logo-sidebar {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.left-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.left-item {
    color: #e6eef3;
    text-decoration: none;
    font-size: 22px;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background-color .15s ease, color .15s ease;
}

.left-item i {
    font-size: 26px;
}

.left-item:hover {
    background: #111;
    color: #fff;
}

.left-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* -------- PARAMÈTRES -------- */
.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-btn {
    font-size: 20px;
    cursor: pointer;
    color: #ddd;
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 0;
    background: #0f1419;
    padding: 12px;
    border-radius: 10px;
    width: 210px;
    border: 1px solid #253341;
}

.switch-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* -------- SWITCH -------- */
.switch {
    position: relative;
    width: 48px;
    height: 24px;
}
.switch input { display: none; }

.slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #555;
    border-radius: 30px;
}

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

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

/* ============================================
   🌐 MAIN CONTENT (base)
============================================ */
.main-content {
    margin-left: 240px;
    padding-right: 300px;
    width: calc(100% - 240px);
    min-height: 100vh;
    box-sizing: border-box;
}

/* ============================================
   🎯 HERO (en-tête commun à toutes les pages)
============================================ */
.topbar {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.big-title {
    margin: 0;
    font-size: 45px;
    font-weight: 800;
}

.topbar.hero {
    text-align: left;
    border-bottom: none;
    max-width: var(--content-width);
    margin: 28px auto 0 auto;
    padding: 36px 34px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% -10%, rgba(255,77,77,.16), transparent 55%),
        linear-gradient(135deg, #1a1215, #14141a 60%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp .35s ease both;
}

.topbar.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, transparent 70%);
    pointer-events: none;
}

.topbar.hero > * {
    position: relative;
}

body.light-mode .topbar.hero::before {
    background-image: linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}

.hero .topbar-actions {
    position: absolute;
    top: 26px;
    right: 28px;
}

.hero .big-title {
    font-size: 36px;
}

.hero-compact {
    padding: 22px 30px;
}

.topbar.hero.hero-compact {
    text-align: center;
}

.hero-compact .big-title {
    margin: 0;
}

.hero-sub {
    color: var(--text-dim);
    margin: 6px 0 18px 0;
    font-size: 14px;
}

.hero-stats {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-stat b {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.hero-stat span {
    font-size: 12px;
    color: var(--text-dim);
}

/* ============================================
   🔘 RACCOURCIS RAPIDES (accueil)
============================================ */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    max-width: var(--content-width);
    margin: 26px auto 8px auto;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    transition: transform .15s ease, color .15s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    color: inherit;
}

.quick-link-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
}

.quick-link-live { background: linear-gradient(135deg, var(--accent-fill, var(--accent)), #b91c1c); }
.quick-link-pronos { background: linear-gradient(135deg, #eab308, #b45309); }
.quick-link-events { background: linear-gradient(135deg, #6366f1, #4338ca); }
.quick-link-profile { background: linear-gradient(135deg, #22c55e, #15803d); }

/* ============================================
   🗂️ TABS (onglets catégories, accueil)
============================================ */
.tabs-row {
    display: flex;
    gap: 10px;
    max-width: var(--content-width);
    margin: 8px auto 18px auto;
    padding: 0 4px;
    overflow-x: auto;
}

.tabs-row button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid #333;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.tabs-row button i {
    font-size: 16px;
}

.tabs-row button:hover {
    border-color: #555;
    color: inherit;
}

.tabs-row button.active {
    background: linear-gradient(135deg, var(--accent-fill, var(--accent)), var(--accent-2));
    border-color: transparent;
    color: #1a0d0d;
    transform: translateY(-1px);
}

body.light-mode .tabs-row button {
    background: #ffffff;
    border-color: #e5e7eb;
}
body.light-mode .tabs-row button.active { color: #1a0d0d; }

/* ============================================
   📰 FEED (accueil) + emplacements pub
============================================ */
.feed-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
}

.feed-col {
    width: 100%;
    max-width: var(--content-width);
    min-width: 0;
}

.ad-rail {
    display: none;
    flex-shrink: 0;
    width: 130px;
    min-height: 420px;
    margin-top: 22px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .02em;
    position: sticky;
    top: 24px;
}

@media (min-width: 1500px) {
    .ad-rail { display: flex; }
}

.feed {
    max-width: var(--content-width);
    margin: 10px auto;
    transition: opacity .2s ease;
}

.feed.feed-switching {
    opacity: .35;
}

.post {
    background: var(--panel);
    border-radius: 22px;
    border: 1px solid #333;
    margin-bottom: 24px;
    font-size: 18px;
    display: flex;
    gap: 18px;
    padding: 30px;
    transition: transform .15s ease, border-color .15s ease;
    animation: fadeInUp .35s ease both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

.post:hover {
    transform: translateY(-2px);
    border-color: #444;
}

.post-badge {
    width: 5px;
    border-radius: 4px;
    background: var(--accent);
    flex-shrink: 0;
}

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

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.circle {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #666, #222);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
}

.username {
    font-size: 19px;
    font-weight: bold;
}

.timestamp {
    color: var(--text-dim);
    font-size: 13px;
    margin-left: 10px;
    font-weight: 400;
}

.post p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.post-image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-top: 14px;
}

/* ============================================
   🟩 PANEL DROIT (commun : accueil / live / pronos / événements)
============================================ */
.right-panel {
    position: fixed;
    top: 28px;
    right: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-box {
    background: var(--panel);
    border: 1px solid #333;
    padding: 22px;
    border-radius: 14px;
    animation: fadeInUp .35s ease both;
}

.right-box h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 800;
}

/* Carte CTA (croisement entre sections) */
.cta-card {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
}

.cta-card h3,
.cta-card p {
    color: #1a0d0d;
}

.cta-card p {
    opacity: .85;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.cta-card .cta-btn {
    display: inline-block;
    background: #1a0d0d;
    color: white;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: opacity .15s ease;
}
.cta-card .cta-btn:hover { opacity: .85; }

/* Liste "actualités du jour" */
.news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #262626;
    font-size: 13px;
    line-height: 1.5;
    color: #ccc;
}
.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
}

/* Carte Live compacte */
.live-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.live-mini:hover { border-color: var(--accent); transform: translateY(-1px); }
.live-mini-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255,77,77,.6);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    70% { box-shadow: 0 0 0 7px rgba(255,77,77,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}
.live-mini-text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.live-mini-text b { font-size: 13px; font-weight: 800; }
.live-mini-text small { font-size: 11.5px; color: var(--text-dim); }
.live-mini > i { color: var(--text-dim); font-size: 18px; }

/* Carte fusionnée "Qui suivre" + "Mes réseaux" */
.accounts-card { padding: 14px 12px; border-radius: 14px; }

.accounts-section h3 {
    margin: 0 0 6px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim);
}

.accounts-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 8px;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background .15s ease, color .15s ease;
}
.follow-item:hover { background: rgba(255,255,255,.06); color: var(--accent); }
body.light-mode .follow-item:hover { background: rgba(0,0,0,.05); }

.pfp {
    width: 28px;
    height: 28px;
    background: #666;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

img.pfp { display: block; object-fit: cover; }
.pfp-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Avatars personnalisés "Qui suivre" (mettre les fichiers dans /images) */
.pfp-aka { background-image: url("images/aka_sport.png"); }
.pfp-ufcfra { background-image: url("images/ufcfra.png"); }
.pfp-ufc { background-image: url("images/ufc.png"); }
.pfp-ufcnews { background-image: url("images/ufcnews.png"); }
.pfp-x { background-image: url("images/logo_x.png"); }
.pfp-tiktok { background-image: url("images/logo_tiktok.png"); }
.pfp-youtube { background-image: url("images/logo_youtube.png"); }


/* ============================================
   🔴 PAGE LIVE (bandeau / canaux / viewers)
============================================ */
.live-now-bar {
    max-width: var(--content-width);
    margin: 15px auto 25px auto;
    background: #111;
    border-radius: 999px;
    border: 1px solid #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    flex-wrap: wrap;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulseBlink 1s infinite;
}

@keyframes pulseBlink {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.3; transform: scale(1); }
}

.live-item {
    background: var(--panel);
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.viewer-count {
    transition: .3s;
}
.viewer-count.updated {
    transform: translateY(-3px);
    opacity: 0.6;
}

.channels {
    max-width: var(--content-width);
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.channel-box {
    background: var(--panel-2);
    border-radius: 14px;
    border: 1px solid #333;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .15s ease, border-color .15s ease;
    animation: fadeInUp .35s ease both;
}
.channel-box:hover {
    transform: translateY(-2px);
    border-color: #444;
}

.channel-box h3 {
    margin: 0;
    font-size: 18px;
}

.status {
    font-size: 13px;
    color: #bbb;
}

.pub-btn,
.access-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .15s ease, transform .15s ease;
}
.pub-btn:hover, .access-btn:hover { opacity: .9; }
.pub-btn[disabled] { opacity: .5; cursor: not-allowed; }

.access-btn {
    background: var(--success);
}

/* ---------------------------- */
/* 🎯 PAGE PRONOS (pronostics.html) */
/* ---------------------------- */
.prono-grid {
    max-width: var(--content-width);
    margin: 25px auto 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prono-card {
    background: var(--panel-2);
    border: 1px solid #333;
    border-left: 4px solid var(--tier-color, var(--accent));
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    font-size: 16px;
    transition: transform .15s ease, border-color .15s ease;
    animation: fadeInUp .35s ease both;
}
.prono-card:hover {
    transform: translateY(-2px);
}

.prono-card[data-prono="safe"] { --tier-color: var(--success); }
.prono-card[data-prono="semisafe"] { --tier-color: #eab308; }
.prono-card[data-prono="fun"] { --tier-color: var(--accent-2); }
.prono-card[data-prono="ultrafun"] { --tier-color: var(--accent); }

.prono-left h3 {
    margin: 0 0 6px 0;
    font-size: 19px;
}

.prono-desc {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
}

.prono-status {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.prono-right {
    display: flex;
    gap: 8px;
}

.prono-pub-btn,
.prono-access-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: opacity .15s ease;
}
.prono-pub-btn:hover, .prono-access-btn:hover { opacity: .9; }

.prono-access-btn {
    background: var(--success);
}

.prono-pub-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .prono-grid {
        max-width: none;
        width: 95%;
        grid-template-columns: 1fr;
    }
}

/* ============================================
   👤 PAGE PROFIL / ADMIN (cards + modal auth)
============================================ */
.profile-wrap {
    max-width: var(--content-width);
    margin: 22px auto 40px auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 18px;
    animation: fadeInUp .35s ease both;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    flex-shrink: 0;
}

.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-option {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    font-size: 18px;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}

.avatar-option:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.avatar-option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.avatar-option:disabled {
    opacity: .4;
    cursor: not-allowed;
}

body.light-mode .avatar-option {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.profile-badge {
    font-weight: 800;
    font-size: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.input {
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 15px;
    transition: border-color .15s ease;
}
.input:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.input {
    resize: vertical;
    min-height: 90px;
}

body.light-mode #usersTable th,
body.light-mode #usersTable td {
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

#usersTable tr {
    transition: background-color .15s ease;
}
#usersTable tr:hover {
    background: rgba(255,255,255,0.03);
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    color: white;
    background: var(--accent);
    transition: opacity .15s ease;
}
.btn:hover { opacity: .9; }

.btn.secondary {
    background: var(--success);
}

.topbar-actions {
    display: flex;
    justify-content: flex-end;
}

.auth-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: opacity .15s ease;
}
.auth-btn:hover { opacity: .9; }

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.auth-dialog {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    border-radius: 18px;
    border: 1px solid #333;
    background: #0f1419;
    padding: 16px;
    animation: fadeInUp .25s ease both;
}

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

.auth-dialog-header h3 {
    margin: 0;
}

.auth-close {
    cursor: pointer;
    opacity: 0.8;
    font-size: 18px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-message {
    margin-top: 10px;
    color: #f87171;
    font-weight: 700;
    min-height: 20px;
}

body.light-mode .card,
body.light-mode .auth-dialog {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}
body.light-mode .input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #111827;
}
body.light-mode .auth-backdrop {
    background: rgba(17,24,39,0.45);
}

@media (max-width: 900px) {
    .profile-wrap {
        width: 95%;
        max-width: none;
        grid-template-columns: 1fr;
    }
    .auth-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 🔍 RECHERCHE (overlay "command palette") ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.search-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.search-panel {
    position: relative;
    width: min(600px, 92vw);
    background: #101317;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    padding: 8px;
    transform: translateY(-14px) scale(.98);
    transition: transform .25s ease;
}

.search-overlay.show .search-panel {
    transform: translateY(0) scale(1);
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.search-input-row i {
    font-size: 20px;
    color: var(--text-dim);
}

.search-input-row input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 17px;
    padding: 6px 0;
    font-family: inherit;
}

.search-input-row input:focus {
    outline: none;
}

.search-close {
    background: #21252b;
    border: none;
    color: #ccc;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}

.search-close:hover {
    background: #2c313a;
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding: 6px;
}

.search-hint,
.search-empty {
    padding: 18px 10px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
    margin: 0;
}

.search-result-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.06);
}

.search-result-item .circle {
    width: 34px;
    height: 34px;
    margin: 0;
}

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

.sr-title {
    font-size: 13px;
    font-weight: 700;
}

.sr-snippet {
    font-size: 13px;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-viewall {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.search-viewall:hover {
    opacity: .8;
}

body.light-mode .search-panel {
    background: #ffffff;
    border-color: #e5e7eb;
}
body.light-mode .search-input-row input {
    color: #111827;
}
body.light-mode .search-close {
    background: #f3f4f6;
    color: #374151;
}
body.light-mode .search-close:hover {
    background: #e5e7eb;
}
body.light-mode .search-result-item:hover {
    background: #f3f4f6;
}
body.light-mode .sr-snippet {
    color: #4b5563;
}

/* ---------------------------- */
/* 🔔 PANEL NOTIFICATIONS */
/* ---------------------------- */
.notif-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.notif-backdrop.visible { opacity: 1; pointer-events: auto; }

.notif-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: 390px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,77,77,.12), transparent 45%),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px 16px 12px;
    z-index: 999;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translateX(40px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
}
.notif-panel.visible { transform: none; opacity: 1; pointer-events: auto; }

.notif-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 6px; margin-bottom: 14px; }
.notif-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.notif-title h3 { margin: 0; font-size: 21px; font-weight: 800; }
.notif-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    vertical-align: 1px;
}
.notif-filters button.active .notif-count { background: #1a0d0d; color: #fff; }
.notif-count[hidden] { display: none; }
.notif-header-actions { display: flex; align-items: center; gap: 12px; }
.notif-mark-read {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.notif-mark-read:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.notif-mark-read:disabled { opacity: .4; cursor: default; }
.notif-close { cursor: pointer; font-size: 15px; opacity: .6; transition: opacity .15s ease; }
.notif-close:hover { opacity: 1; }

.notif-filters {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 0 6px 12px;
    background: rgba(255,255,255,.05);
    border-radius: 999px;
}
.notif-filters button {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.notif-filters button:hover { color: inherit; }
.notif-filters button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d0d; }

.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 0 6px 6px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.notif-section {
    margin: 8px 2px 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.notif-section:first-child { margin-top: 0; }

.notif-item {
    --tone: var(--accent);
    position: relative;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    animation: notifIn .4s cubic-bezier(.2,.9,.3,1) both;
    animation-delay: calc(var(--n, 0) * 45ms);
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.notif-item:hover { background: rgba(255,255,255,.07); transform: translateX(-2px); border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
@keyframes notifIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

.notif-item[class*="sport-"] { --tone: var(--sport); }
.notif-item.unread { background: color-mix(in srgb, var(--tone) 9%, transparent); border-color: color-mix(in srgb, var(--tone) 32%, transparent); }
.notif-item.unread::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tone);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent);
}
.notif-item.is-now .notif-icon { animation: livePulse 1.8s infinite; }

.notif-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 18%, transparent);
}
.notif-body { flex: 1; min-width: 0; padding-right: 14px; }
.notif-body b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.notif-body p {
    margin: 0 0 5px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #d4d4d8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-time { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }

.notif-empty { margin: auto; text-align: center; padding: 30px 20px; }
.notif-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent);
    background: var(--accent-soft);
}
.notif-empty b { display: block; font-size: 16px; margin-bottom: 4px; }
.notif-empty p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* Pastille de non lus dans le menu */
.left-item .nav-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.left-item .nav-badge[hidden] { display: none; }

body.light-mode .notif-backdrop { background: rgba(17,24,39,.35); }
body.light-mode .notif-panel { background: radial-gradient(circle at 100% 0%, rgba(255,77,77,.08), transparent 45%), #fff; border-color: #e5e7eb; color: #111827; }
body.light-mode .notif-filters { background: #f3f4f6; }
body.light-mode .notif-item { background: #f9fafb; border-color: #e5e7eb; color: #111827; }
body.light-mode .notif-item:hover { background: #f3f4f6; }
body.light-mode .notif-body p { color: #4b5563; }
body.light-mode .notif-time { color: #6b7280; }

@media (max-width: 600px) {
    .notif-panel { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); max-width: none; }
}

/* ============================================
   🗂️ ÉTAT VIDE (sections en reconstruction)
============================================ */
.empty-state {
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 20px;
    animation: fadeInUp .35s ease both;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    max-width: 420px;
    margin: 0 auto;
}

/* ============================================
   ✨ ANIMATIONS (fluidité générale)
============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

a { transition: color .15s ease, opacity .15s ease; }

/* ============================================
   📱 RESPONSIVE
============================================ */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-content {
        margin-left: 0 !important;
        padding-right: 0;
        width: 100% !important;
        padding: 10px;
    }
    .right-panel { display: none; }

    .mobile-top {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 14px;
        background: #000;
        border-bottom: 1px solid #111;
        z-index: 1200;
        box-sizing: border-box;
    }

    .mobile-top h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
    }

    #openMenu {
        font-size: 26px;
        cursor: pointer;
    }

    .main-content {
        padding-top: 64px;
    }

    .sidebar.sidebar-open {
        display: flex;
        width: min(86vw, 320px);
        z-index: 1300;
    }

    .big-title { font-size: 32px; }

    .topbar.hero {
        max-width: none;
        margin: 12px 12px 0 12px;
    }
    .hero .topbar-actions {
        position: static;
        justify-content: flex-end;
        margin-bottom: 10px;
    }

    .quick-links {
        max-width: none;
        margin: 18px 12px 4px 12px;
        gap: 16px;
        justify-content: space-between;
    }
    .quick-link-icon { width: 50px; height: 50px; font-size: 20px; }

    .tabs-row {
        max-width: none;
        margin: 14px 12px 6px 12px;
    }
    .tabs-row button { padding: 9px 14px; font-size: 13px; }

    .feed { width: 100%; margin: 10px 0; }
    .post { width: 100%; font-size: 16px; padding: 18px; gap: 12px; }
    .circle { width: 46px; height: 46px; }

    .live-now-bar, .channels { width: 95%; max-width: none; flex-direction: column; align-items: stretch; }
    .channels { grid-template-columns: 1fr; }
    .live-now-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

    .channel-box { align-items: flex-start; }
    .pub-btn, .access-btn { width: 100%; text-align: center; }
}

/* ============================================
   🛡️ PANNEAU ADMIN (s'ouvre comme les notifications)
============================================ */
.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.admin-backdrop.visible { opacity: 1; pointer-events: auto; }

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    transform: translate(-50%, -46%) scale(.97);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.admin-panel.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.admin-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.admin-head h3 i { color: var(--accent); }
.admin-close { cursor: pointer; font-size: 16px; opacity: .6; transition: opacity .15s ease; }
.admin-close:hover { opacity: 1; }

.admin-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    margin-bottom: 16px;
}
.admin-tabs button {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.admin-tabs button:hover { color: inherit; }
.admin-tabs button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a0d0d;
}

.admin-body { overflow-y: auto; padding-right: 2px; }
.admin-tab { display: none; }
.admin-tab.active { display: block; animation: fadeInUp .25s ease both; }

.admin-label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 6px 2px; color: var(--text-dim); }
.admin-label small { font-weight: 400; }
.admin-counter { text-align: right; font-size: 11px; color: var(--text-dim); margin: 4px 2px 14px; }
.admin-tab .input { width: 100%; box-sizing: border-box; }

.admin-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.admin-actions-top { margin: 0 0 12px; }
.admin-msg { font-size: 13px; font-weight: 700; color: var(--accent); }
.admin-msg.ok { color: var(--success); }

.admin-users { display: flex; flex-direction: column; gap: 8px; }
.admin-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.admin-user-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.admin-user-main small { color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.admin-user-actions { display: flex; gap: 6px; flex-shrink: 0; }

.admin-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--text-dim);
    margin-left: 4px;
    vertical-align: middle;
}
.admin-badge.admin { background: var(--accent-soft); color: var(--accent); }
.admin-badge.banned { background: rgba(239,68,68,.18); color: #ef4444; }

.admin-mini {
    border: 1px solid var(--border);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.admin-mini:hover { border-color: var(--accent); color: var(--accent); }
.admin-mini.danger:hover { border-color: #ef4444; color: #ef4444; }
.admin-empty { color: var(--text-dim); text-align: center; padding: 20px 0; }

body.light-mode .admin-panel { background: #fff; border-color: #e5e7eb; color: #111827; }
body.light-mode .admin-user { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .admin-tabs { background: #f3f4f6; }
body.light-mode .admin-mini { color: #111827; border-color: #d1d5db; }
body.light-mode .admin-backdrop { background: rgba(17,24,39,.35); }

/* Déplacement du panneau admin (poignée) */
.admin-head-actions { display: flex; align-items: center; gap: 12px; }
.admin-grip {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255,255,255,.05);
    color: var(--text-dim);
    font-size: 17px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.admin-grip:hover { border-color: var(--accent); color: var(--accent); }
.admin-panel.dragging { transition: none; box-shadow: 0 40px 90px rgba(0,0,0,.65); }
.admin-panel.dragging .admin-grip { cursor: grabbing; border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
body.admin-dragging, body.admin-dragging * { user-select: none !important; cursor: grabbing !important; }
body.light-mode .admin-grip { background: #f3f4f6; border-color: #d1d5db; }

/* Onglet Comptes du panneau admin */
.admin-account-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.admin-account-form .input { width: 100%; }
.admin-row { display: flex; gap: 8px; }
.admin-row .input { flex: 1; min-width: 0; }
.admin-account-form .admin-actions { margin-top: 4px; }
.admin-sub {
    margin: 14px 2px 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim);
}
.admin-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px 7px 12px;
    margin-bottom: 6px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
}
.admin-account a { color: inherit; text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account a:hover { color: var(--accent); }
body.light-mode .admin-account { background: #f9fafb; border-color: #e5e7eb; }

/* ============================================
   🛡️ REFONTE ADMIN : composer + utilisateurs
============================================ */
.composer {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px 10px;
    transition: border-color .2s ease;
}
.composer:focus-within { border-color: rgba(255,77,77,.5); }
.composer-top { display: flex; gap: 12px; }
.composer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.composer-main { flex: 1; min-width: 0; }
.composer-name { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.composer textarea {
    width: 100%;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    padding: 0;
    min-height: 110px;
}
.composer textarea::placeholder { color: var(--text-dim); }

.composer-image {
    position: relative;
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.composer-image[hidden] { display: none; }
.composer-image img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.composer-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.composer-image-remove:hover { background: var(--accent); }

.composer-imagebar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dim);
}
.composer-imagebar[hidden] { display: none; }
.composer-imagebar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
}

.composer-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.composer-tool {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--accent);
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.composer-tool:hover { background: var(--accent-soft); }
.composer-bottom .admin-msg { flex: 1; }
.composer-count { display: inline-flex; align-items: center; gap: 6px; }
.composer-count svg { transform: rotate(-90deg); }
.composer-count .ring-bg { fill: none; stroke: var(--border); stroke-width: 3; }
.composer-count .ring-fg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .15s ease, stroke .2s ease; }
.composer-count .ring-fg.warn { stroke: var(--accent-2); }
.composer-count .ring-fg.danger { stroke: #ef4444; }
.composer-count span { display: none; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.composer-count span.show { display: inline; }
.composer .btn { display: inline-flex; align-items: center; gap: 6px; }
.composer .btn:disabled { opacity: .4; cursor: not-allowed; }

/* Utilisateurs */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-stat {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}
.admin-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.admin-stat span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.admin-stat.danger b { color: #ef4444; }

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 12px;
    color: var(--text-dim);
    transition: border-color .15s ease;
}
.admin-search:focus-within { border-color: var(--accent); }
.admin-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
}
.admin-users .admin-user { padding: 10px 12px 10px 10px; gap: 12px; transition: background .15s ease, opacity .15s ease; }
.admin-users .admin-user:hover { background: #17181b; }
.admin-user.is-banned { opacity: .6; }
.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3a3a44, #26262c);
}
.admin-user-main { flex: 1; }
.admin-user-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-user-name .admin-badge { margin-left: 0; }
.admin-user-main small { white-space: nowrap; }
.admin-badge.you { background: rgba(34,197,94,.16); color: var(--success); }
.admin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-dim);
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.admin-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.admin-icon.danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.12); }
.admin-icon.ok:hover { border-color: var(--success); color: var(--success); background: rgba(34,197,94,.12); }

body.light-mode .composer, body.light-mode .admin-stat { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .composer-imagebar, body.light-mode .admin-search { background: #fff; border-color: #e5e7eb; }
body.light-mode .admin-users .admin-user:hover { background: #f3f4f6; }
body.light-mode .admin-user-avatar { background: linear-gradient(135deg, #9ca3af, #6b7280); }
body.light-mode .admin-icon { border-color: #d1d5db; }

/* ============================================
   🔴 PAGE LIVE (refonte : prochain live, canaux, programme)
============================================ */
.live-page { max-width: var(--content-width); margin: 22px auto 40px; }
.live-page .section-title {
    margin: 26px 2px 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
}

/* Prochain live */
.next-live {
    --sport: var(--accent);
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px 26px;
    border: 1px solid color-mix(in srgb, var(--sport) 45%, transparent);
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--sport) 32%, transparent), transparent 60%),
        linear-gradient(135deg, #1a1215, #14141a 65%);
    animation: fadeInUp .35s ease both;
}
.next-live[hidden] { display: none; }
.next-live-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.next-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sport) 22%, transparent);
    color: var(--sport);
}
.next-live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sport); animation: pulseBlink 1.2s infinite; }
.next-live-sport { font-size: 12px; font-weight: 700; color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px; }
.next-live h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.next-live-desc { margin: 0 0 4px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.next-live-when { margin: 0; font-size: 14px; font-weight: 700; }

.countdown { display: flex; gap: 10px; margin-top: 18px; }
.countdown-cell {
    min-width: 66px;
    padding: 10px 12px 8px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.countdown-cell b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-cell span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; }
.next-live-going { margin-top: 16px; font-weight: 800; color: var(--sport); }

/* Couleurs par sport */
.sport-ufc { --sport: #ef4444; }
.sport-boxe { --sport: #f97316; }
.sport-nba { --sport: #f59e0b; }
.sport-foot { --sport: #22c55e; }
.sport-tennis { --sport: #a3e635; }
.sport-autre { --sport: #8b5cf6; }

/* Canaux */
.live-page .channels { max-width: none; margin: 0; }
.channel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: var(--panel-2);
    border: 1px solid #333;
    transition: transform .15s ease, border-color .15s ease;
    animation: fadeInUp .35s ease both;
}
.channel-card:hover { transform: translateY(-2px); border-color: #4a4a4a; }
.channel-head { display: flex; align-items: center; gap: 12px; }
.channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    flex-shrink: 0;
}
.channel-head h3 { margin: 0; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.channel-head small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.channel-steps { display: flex; gap: 6px; }
.channel-steps i { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); transition: background .3s ease; }
.channel-steps i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.channel-card .pub-btn, .channel-card .access-btn { width: 100%; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.channel-card .access-btn.no-link { background: #3a3a44; cursor: default; }
.channel-card.unlocked { border-color: rgba(34,197,94,.45); }

/* Programme (panneau de droite) */
.lives-card { padding: 16px 12px 12px; }
.lives-card h3 { margin: 0 0 10px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.lives-empty { margin: 4px 8px 6px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.live-row {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background .15s ease;
}
.live-row:hover { background: rgba(255,255,255,.05); }
.live-date {
    width: 42px;
    flex-shrink: 0;
    text-align: center;
    padding: 5px 0 6px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sport) 18%, transparent);
    color: var(--sport);
    line-height: 1.1;
}
.live-date b { display: block; font-size: 17px; font-weight: 800; }
.live-date span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.live-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-info b { font-size: 13px; line-height: 1.3; }
.live-info small { font-size: 11.5px; color: var(--text-dim); }
.live-row.now .live-date { background: var(--sport); color: #111; }

body.light-mode .next-live { background: linear-gradient(135deg, #fff5f0, #ffffff 65%); }
body.light-mode .countdown-cell { background: #f3f4f6; border-color: #e5e7eb; }
body.light-mode .channel-card { background: #fff; border-color: #e5e7eb; }
body.light-mode .channel-steps i { background: #e5e7eb; }
body.light-mode .live-row:hover { background: #f3f4f6; }

@media (max-width: 900px) {
    .live-page { width: 95%; }
    .next-live { padding: 20px 18px; }
    .next-live h2 { font-size: 21px; }
    .countdown-cell { min-width: 0; flex: 1; }
    .live-page .channels { grid-template-columns: 1fr; }
}

/* Onglet Live du panneau admin */
.admin-sub.first { margin-top: 0; }
.admin-channels { display: flex; flex-direction: column; gap: 8px; }
.admin-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .3s ease, background .3s ease;
}
.admin-channel.saved { border-color: var(--success); background: rgba(34,197,94,.08); }
.admin-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.admin-channel-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-channel-fields .input { width: 100%; padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.admin-live-line { display: flex; flex-direction: column; min-width: 0; }
.admin-live-line b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-live-line small { color: var(--text-dim); font-size: 11.5px; }
body.light-mode .admin-channel { background: #f9fafb; border-color: #e5e7eb; }

/* Page Live : barre viewers + carte "Comment ça marche" */
.live-page .live-now-bar { max-width: none; margin: 14px 0 0; }
.how-card { padding: 16px 12px 14px; }
.how-card h3 { margin: 0 0 10px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.how-steps li { display: flex; gap: 11px; align-items: center; padding: 7px 8px; border-radius: 12px; }
.how-steps li > span {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #1a0d0d;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.how-steps b { display: block; font-size: 13px; line-height: 1.3; }
.how-steps small { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
body.light-mode .live-now-bar { background: #fff; border-color: #e5e7eb; }
body.light-mode .live-item { background: #f3f4f6; border-color: #e5e7eb; }
.live-page .live-now-bar { border-radius: 18px; padding: 10px 14px; gap: 8px; font-size: 13px; }
.live-page .live-now-bar .live-item { padding: 5px 10px; font-size: 13px; white-space: nowrap; }
.live-page .live-now-bar .live-dot { width: 8px; height: 8px; margin-right: 5px; }

/* Accueil : catégories + recherche sur la même ligne */
.feed-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: var(--content-width);
    margin: 8px auto 18px auto;
}
.feed-toolbar .tabs-row {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 2px 4px;
    max-width: none;
}
.feed-search {
    flex: 0 1 190px;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.feed-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.feed-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
}
.feed-search input::-webkit-search-cancel-button { cursor: pointer; }
body.light-mode .feed-search { background: #fff; border-color: #e5e7eb; }
body.light-mode .feed-search input { color: #111827; }
.tabs-row { scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }

/* ============================================
   🎬 PAGE ÉVÉNEMENTS (refonte)
============================================ */
.event-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.event-filters[hidden] { display: none; }
.event-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.event-filters button:hover { color: inherit; border-color: #555; }
.event-filters button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #1a0d0d; }

/* Événement à la une */
.next-event {
    --sport: var(--accent);
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    min-height: 250px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--sport) 45%, transparent);
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--sport) 32%, transparent), transparent 60%),
        linear-gradient(135deg, #1a1215, #14141a 65%);
    animation: fadeInUp .35s ease both;
}
.next-event[hidden] { display: none; }
.next-event-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.next-event.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10,10,12,.25) 0%, rgba(10,10,12,.92) 85%);
}
.next-event-inner { position: relative; z-index: 2; padding: 24px 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; }
.next-event h2 { margin: 0 0 6px; font-size: 27px; line-height: 1.2; }
.next-event .next-live-desc { color: #d4d4d8; }

/* Cartes */
.section-title[hidden] { display: none; }
.event-grid {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 14px;
}
.event-grid .empty-state { grid-column: 1 / -1; }
.event-tile {
    --sport: var(--accent);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel-2);
    border: 1px solid #333;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    animation: fadeInUp .35s ease both;
}
.event-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sport) 60%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.event-tile-media {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 44px;
    color: var(--sport);
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--sport) 35%, transparent), transparent 70%),
        #14141a;
}
.event-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-tile:hover .event-tile-media img { transform: scale(1.05); }
.event-tile-tag, .event-tile-count {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.event-tile-tag { top: 10px; left: 10px; background: rgba(0,0,0,.55); color: var(--sport); text-transform: uppercase; letter-spacing: .05em; }
.event-tile-count { bottom: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-variant-numeric: tabular-nums; }
.event-tile-body { padding: 14px 16px 16px; }
.event-tile-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.event-tile-when { margin: 0; font-size: 12.5px; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.event-tile-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #b4b4bc; }

/* Mini calendrier */
.cal-card { padding: 14px 14px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 13px; }
.cal-nav {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.cal-nav:hover { background: var(--accent-soft); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { font-size: 10px; font-weight: 800; color: var(--text-dim); padding: 3px 0; }
.cal-cell { font-size: 12px; font-weight: 600; padding: 6px 0; border-radius: 8px; position: relative; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-cell.has-event { background: color-mix(in srgb, var(--sport) 24%, transparent); color: var(--sport); font-weight: 800; cursor: default; }

body.light-mode .event-filters button { background: #fff; border-color: #e5e7eb; }
body.light-mode .event-tile { background: #fff; border-color: #e5e7eb; }
body.light-mode .event-tile-body h3 { color: #111827; }
body.light-mode .next-event { background: linear-gradient(135deg, #fff5f0, #ffffff 65%); }
body.light-mode .cal-nav { background: #f3f4f6; }

@media (max-width: 900px) {
    .event-grid { grid-template-columns: 1fr; display: grid; }
    .event-tile { height: auto; }
    .next-event h2 { font-size: 22px; }
}

/* Onglet Événements du panneau admin */
.admin-evimage { margin-top: 0; }
#adminEvPreview { margin-top: 0; }
#adminEvPreview img { max-height: 150px; }
.admin-panel { width: 600px; }
.admin-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-size: 12.5px; padding: 9px 6px; }

/* ============================================
   👤 PAGE PROFIL (refonte)
============================================ */
.profile-page { max-width: var(--content-width); margin: 22px auto 40px; }

/* Visiteur non connecté */
.pf-guest {
    text-align: center;
    padding: 46px 24px;
    border-radius: 22px;
    background: var(--panel-2);
    border: 1px dashed var(--border);
    animation: fadeInUp .35s ease both;
}
.pf-guest[hidden], #pfMain[hidden] { display: none; }
.pf-guest-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--accent);
    background: var(--accent-soft);
}
.pf-guest h2 { margin: 0 0 6px; font-size: 22px; }
.pf-guest p { margin: 0 0 18px; color: var(--text-dim); font-size: 14px; }

/* Carte profil */
.pf-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    animation: fadeInUp .35s ease both;
}
.pf-banner { height: 130px; position: relative; }
.pf-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000, transparent 70%);
}
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 24px; margin-top: -48px; position: relative; z-index: 1; }
.pf-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    background: var(--panel);
    border: 5px solid var(--panel-2);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.pf-avatar.is-initial { font-size: 40px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.pf-edit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: inherit;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pf-edit:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.pf-info { padding: 12px 24px 24px; }
.pf-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-info h2 { margin: 0; font-size: 24px; }
.pf-role {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--text-dim);
}
.pf-role.admin { background: var(--accent-soft); color: var(--accent); }
.pf-bio { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.pf-bio.empty { color: var(--text-dim); font-style: italic; font-size: 14px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.pf-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Cartes d'info */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pf-box {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    animation: fadeInUp .35s ease both;
}
.pf-box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pf-box-head b { font-size: 14px; }
.pf-box-head span { font-size: 13px; font-weight: 800; color: var(--accent); }
.pf-box-head a { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pf-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.pf-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-dim); }
.pf-steps li { display: flex; align-items: center; gap: 8px; }
.pf-steps li.done { color: var(--success); }
.pf-steps i { font-size: 16px; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-stats div { padding: 12px; text-align: center; border-radius: 14px; background: rgba(255,255,255,.05); }
.pf-stats b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.pf-stats b small { font-size: 14px; color: var(--text-dim); font-weight: 700; }
.pf-stats span { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pf-soon { margin-top: 14px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips span { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border); color: var(--text-dim); }

/* Menu "Modifier le profil" */
.pm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.pm-backdrop.visible { opacity: 1; pointer-events: auto; }
.pm-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: 470px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translate(-50%, -46%) scale(.97);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
}
.pm-menu.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.pm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pm-head h3 { margin: 0; font-size: 19px; }
.pm-close { cursor: pointer; opacity: .6; transition: opacity .15s ease; }
.pm-close:hover { opacity: 1; }
.pm-label { display: flex; justify-content: space-between; margin: 16px 2px 8px; font-size: 12px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.pm-label small { font-weight: 700; text-transform: none; letter-spacing: 0; }
.pm-menu .input { width: 100%; }
.pm-menu textarea.input { resize: none; }
.pm-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.pm-logout { border: none; background: none; color: #ef4444; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.pm-logout:hover { text-decoration: underline; }
.pm-msg { flex: 1; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pm-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.pm-foot .btn:disabled { opacity: .5; }

body.light-mode .pf-card, body.light-mode .pf-box, body.light-mode .pf-guest { background: #fff; border-color: #e5e7eb; }
body.light-mode .pf-avatar { background: #f3f4f6; border-color: #fff; }
body.light-mode .pf-edit { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .pf-stats div { background: #f3f4f6; }
body.light-mode .pf-bar { background: #e5e7eb; }
body.light-mode .pm-menu { background: #fff; border-color: #e5e7eb; color: #111827; }
body.light-mode .pm-backdrop { background: rgba(17,24,39,.35); }

@media (max-width: 900px) {
    .profile-page { width: 95%; }
    .pf-grid { grid-template-columns: 1fr; }
    .pf-head { padding: 0 16px; }
    .pf-info { padding: 12px 16px 20px; }
}
.pm-menu .avatar-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pm-menu .avatar-option { width: 100%; height: 48px; }
.pm-menu .input { font-family: inherit; }

/* ============================================
   🟦 SIDEBAR : logo + paramètres (refonte)
============================================ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px;
    margin-bottom: 8px;
    color: inherit;
    text-decoration: none;
}
.brand-mark {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1a0d0d;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 22px rgba(255,77,77,.35);
    transition: transform .25s cubic-bezier(.2,.9,.3,1), box-shadow .25s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 10px 28px rgba(255,77,77,.5); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }
body.light-mode .brand { color: #111827; }

/* Paramètres */
.settings { position: relative; }
.settings-btn {
    width: 100%;
    border: none;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.settings-btn > i:first-child { transition: transform .4s ease; }
.settings-btn.open > i:first-child { transform: rotate(60deg); }
.settings-btn.open { background: #111; color: #fff; }
.settings-caret { margin-left: auto; font-size: 20px !important; opacity: .6; transition: transform .25s ease; }
.settings-btn.open .settings-caret { transform: rotate(180deg); }

.settings-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 8px;
    border-radius: 18px;
    background: #14141a;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
    opacity: 0;
    transform: translateY(8px) scale(.97);
    transform-origin: bottom left;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.9,.3,1);
    z-index: 50;
}
.settings-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.settings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease;
}
.settings-row:hover { background: rgba(255,255,255,.05); }
.settings-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
    background: var(--accent-soft);
}
.settings-label { flex: 1; line-height: 1.25; }

/* Interrupteurs plus soignés */
.switch { width: 44px; height: 26px; flex-shrink: 0; }
.switch .slider { background: #3a3a44; transition: background .25s ease; }
.switch .slider::before { width: 20px; height: 20px; left: 3px; bottom: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,.9,.3,1); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked + .slider::before { transform: translateX(18px); }

body.light-mode .settings-btn.open { background: #f3f4f6; color: #111827; }
body.light-mode .settings-menu { background: #fff; border-color: #e5e7eb; color: #111827; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
body.light-mode .settings-row:hover { background: #f3f4f6; }
body.light-mode .switch .slider { background: #d1d5db; }
.settings-menu { right: -48px; }
.settings-label { white-space: nowrap; }
@media (max-width: 900px) { .settings-menu { right: 0; } .settings-label { white-space: normal; } }
.sidebar { z-index: 30; }

/* ============================================
   📱 MOBILE (refonte complète : ≤ 900px)
   Barre du haut + barre d'onglets en bas + menu latéral
============================================ */
.tabbar, .drawer-backdrop { display: none; }

@media (max-width: 900px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

    /* --- barre du haut --- */
    .mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 58px;
        padding: 0 12px 0 14px;
        z-index: 900;
        background: rgba(10,10,12,.86);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
    }
    .mt-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
    .mt-brand b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
    .mt-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 19px; box-shadow: 0 4px 14px rgba(255,77,77,.4); }
    .mt-actions { display: flex; align-items: center; gap: 4px; }
    .mt-btn {
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 14px;
        background: none;
        color: inherit;
        font-size: 24px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mt-btn:active { background: rgba(255,255,255,.08); }
    .mt-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; padding: 1px 5px; font-size: 10px; box-shadow: none; }
    #openMenu { font-size: 26px; }

    /* --- barre d'onglets --- */
    .tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(10,10,12,.9);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
    }
    .tabbar a {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 2px;
        border-radius: 14px;
        color: var(--text-dim);
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 700;
        -webkit-tap-highlight-color: transparent;
        transition: color .15s ease, background .15s ease;
    }
    .tabbar a i { font-size: 23px; transition: transform .2s ease; }
    .tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .tabbar a.active { color: var(--accent); background: var(--accent-soft); }
    .tabbar a.active i { transform: translateY(-1px) scale(1.08); }

    /* --- menu latéral (drawer) --- */
    .sidebar {
        display: flex;
        width: min(84vw, 310px);
        z-index: 1300;
        padding: 26px 14px 22px;
        gap: 16px;
        transform: translateX(-102%);
        visibility: hidden;
        transition: transform .3s cubic-bezier(.2,.9,.3,1), visibility 0s linear .3s;
        box-shadow: none;
    }
    .sidebar.sidebar-open {
        transform: none;
        visibility: visible;
        transition: transform .3s cubic-bezier(.2,.9,.3,1), visibility 0s;
        box-shadow: 0 0 60px rgba(0,0,0,.6);
    }
    .left-nav { gap: 6px; }
    .left-item { font-size: 19px; padding: 12px 12px; }
    .left-item i { font-size: 24px; }
    .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1250;
        background: rgba(0,0,0,.55);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .drawer-backdrop.visible { opacity: 1; pointer-events: auto; }
    body.drawer-open { overflow: hidden; }

    /* --- contenu --- */
    .main-content { padding: 70px 12px 0 !important; min-height: 0; }
    .topbar.hero, .topbar.hero-compact { margin: 6px 0 0 !important; padding: 16px 18px; border-radius: 20px; }
    .hero-compact .big-title, .hero .big-title { font-size: 26px; }

    /* le panneau de droite passe sous le contenu */
    .right-panel {
        display: flex !important;
        position: static;
        width: auto;
        margin: 6px 12px 10px;
        gap: 12px;
    }
    .ad-rail { display: none !important; }

    /* accueil */
    .quick-links { gap: 6px; margin: 16px 0 6px; }
    .feed-toolbar { margin: 10px 0 14px; gap: 10px; }
    .feed-toolbar .tabs-row { flex: 1 1 100%; }
    .feed-search { flex: 1 1 100%; }
    .post { padding: 16px 16px 16px 14px; border-radius: 18px; }
    .post .circle { width: 44px; height: 44px; }
    .post p { font-size: 16px; }
    .post-image { border-radius: 14px; }

    /* live */
    .live-page { width: 100% !important; margin: 14px 0 20px; }
    .live-page .live-now-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        border-radius: 16px;
        padding: 10px 12px;
    }
    .live-now-bar::-webkit-scrollbar { display: none; }
    .live-page .live-now-bar b { flex-shrink: 0; }
    .live-page .channels { grid-template-columns: 1fr 1fr; gap: 10px; }
    .channel-card { padding: 14px 12px 12px; gap: 12px; }
    .channel-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .channel-icon { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
    .channel-head h3 { font-size: 15px; }
    .channel-card .pub-btn, .channel-card .access-btn { padding: 10px 8px; font-size: 13px; }
    .next-live { padding: 18px 16px; }
    .next-live h2 { font-size: 20px; }
    .countdown { gap: 6px; }
    .countdown-cell { flex: 1; min-width: 0; padding: 8px 4px 6px; }
    .countdown-cell b { font-size: 21px; }

    /* événements */
    .event-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 14px; }
    .event-filters::-webkit-scrollbar { display: none; }
    .event-filters button { flex-shrink: 0; }
    .next-event, .next-event-inner { min-height: 220px; }
    .next-event-inner { padding: 18px 16px; }
    .event-grid { grid-template-columns: 1fr; }

    /* profil */
    .profile-page { width: 100% !important; margin: 14px 0 20px; }
    .pf-banner { height: 100px; }
    .pf-avatar { width: 84px; height: 84px; font-size: 40px; }
    .pf-head { margin-top: -42px; }
    .pf-edit { padding: 8px 13px; font-size: 13px; }

    /* panneaux : au-dessus des barres, plein écran utile */
    .notif-panel { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; max-width: none; border-radius: 20px; }
    .admin-panel { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 16px; }
    .admin-tabs { overflow-x: auto; scrollbar-width: none; }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-tabs button { flex: 0 0 auto; padding: 9px 13px; }
    .pm-menu { width: calc(100vw - 20px); padding: 18px; }
    .settings-menu { right: 0; }

    /* champs : 16px évite le zoom automatique sur iPhone */
    input, textarea, select, .input { font-size: 16px !important; }
}

@media (max-width: 380px) {
    .tabbar a span { font-size: 9.5px; }
    .hero-compact .big-title, .hero .big-title { font-size: 23px; }
    .quick-link-icon { width: 52px; height: 52px; }
}

body.light-mode .mobile-top { background: rgba(255,255,255,.9); }
body.light-mode .tabbar { background: rgba(255,255,255,.92); border-top-color: #e5e7eb; }
body.light-mode .tabbar a.active { background: #fff0f0; }
body.light-mode .mt-btn:active { background: #f3f4f6; }
@media (max-width: 900px) {
    .live-page .live-now-bar { flex-direction: row; align-items: center; }
    .mt-badge { font-size: 11px; min-width: 19px; }
}
@media (max-width: 900px) {
    .event-grid { gap: 10px; }
    .event-tile { flex-direction: row; border-radius: 16px; }
    .event-tile-media { width: 122px; flex-shrink: 0; aspect-ratio: auto; min-height: 124px; font-size: 34px; }
    .event-tile-tag { top: 6px; left: 6px; font-size: 9.5px; padding: 3px 7px; }
    .event-tile-count { left: 6px; right: auto; bottom: 6px; font-size: 10px; padding: 3px 7px; }
    .event-tile-body { min-width: 0; padding: 12px 12px 12px 14px; display: flex; flex-direction: column; justify-content: center; }
    .event-tile-body h3 { font-size: 15px; }
    .event-tile-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 12.5px; }
}

/* Catégories du feed */
.post-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--sport, var(--accent));
    background: color-mix(in srgb, var(--sport, var(--accent)) 16%, transparent);
}
.composer-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.composer-cats button {
    border: 1px solid var(--border);
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.composer-cats button:hover { color: inherit; border-color: #555; }
.composer-cats button.active { color: #1a0d0d; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Likes + suppression des posts + toast */
.post-body { position: relative; }
.post-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.like-btn i { font-size: 18px; }
.like-btn span:empty { display: none; }
.like-btn:hover { color: #ff4d6d; border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.08); }
.like-btn.liked { color: #ff4d6d; border-color: rgba(255,77,109,.55); background: rgba(255,77,109,.12); }
.like-btn.pop i { animation: likePop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.post-del {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    min-width: 32px;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.post:hover .post-del, .post-del.confirm, .post-del:focus-visible { opacity: 1; }
.post-del:hover { color: #ef4444; border-color: rgba(239,68,68,.6); }
.post-del.confirm { color: #fff; background: #ef4444; border-color: #ef4444; }
@media (hover: none) { .post-del { opacity: .85; } }
.post.removing { opacity: 0; transform: scale(.97); transition: opacity .25s ease, transform .25s ease; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1500;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 999px;
    background: #1f1f26;
    border: 1px solid var(--border);
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    font-size: 14px;
    font-weight: 600;
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--accent); font-weight: 800; text-decoration: none; margin-left: 4px; }
@media (max-width: 900px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
body.light-mode .toast { background: #fff; border-color: #e5e7eb; color: #111827; }
body.light-mode .post-del { background: #fff; }
.post-header .post-cat { margin-left: 8px; }


/* ============================================
   🪙 GOLDS
============================================ */
:root { --gold: #facc15; }
.gold-ico { color: var(--gold); }
.toast b { color: var(--gold); }

.pf-golds { margin-top: 14px; background: radial-gradient(circle at 0% 0%, rgba(250,204,21,.13), transparent 55%), var(--panel-2); border-color: rgba(250,204,21,.28); }
.pf-golds .pf-box-head a { display: inline-flex; align-items: center; }
.gold-hero { display: flex; align-items: center; gap: 14px; }
.gold-coin {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4a3300;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 6px 20px rgba(250,204,21,.35);
}
.gold-balance { display: flex; align-items: baseline; gap: 8px; }
.gold-balance b { font-size: 38px; font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.gold-balance span { font-size: 14px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.gold-caption { display: block; margin: 10px 2px 0; font-size: 11.5px; line-height: 1.45; color: var(--text-dim); }
.gold-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 16px 0 4px; }
.gold-ways span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: var(--text-dim);
}
.gold-ways span i { color: var(--gold); font-size: 15px; flex-shrink: 0; }
.gold-ways span b { margin-left: auto; color: var(--gold); white-space: nowrap; }
.gold-hist-head { margin: 18px 2px 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.gold-history { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gold-history li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--border); font-size: 13.5px; }
.gh-ico { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: rgba(34,197,94,.14); color: var(--success); }
.gold-history li.neg .gh-ico { background: rgba(239,68,68,.12); color: #ef4444; }
.gold-history li .gh-label { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-history li small { color: var(--text-dim); font-size: 12px; flex-shrink: 0; }
.gold-history li b { color: var(--gold); min-width: 42px; text-align: right; flex-shrink: 0; }
.gold-history li b.neg { color: #ef4444; }
.gold-history li.empty { color: var(--text-dim); border-top: 1px solid var(--border); }
body.light-mode .pf-golds { background: #fffbeb; border-color: #fde68a; }
body.light-mode .gold-ways span { background: #fff; }
body.light-mode .gh-ico { background: rgba(34,197,94,.14); }
body.light-mode .gold-history li.neg .gh-ico { background: rgba(239,68,68,.12); }
@media (max-width: 900px) { .gold-ways { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
@media (max-width: 480px) { .gold-ways { grid-template-columns: 1fr; } .gold-ways span b { white-space: normal; text-align: right; } }

/* ============================================
   📊 PRONOSTICS EN GOLDS
============================================ */
.prono-legal { margin: 22px 2px 0; font-size: 11.5px; line-height: 1.55; color: var(--text-dim); }
.prono-legal[hidden] { display: none; }
.pm-side-text { margin: 0 8px 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

.pm-balance {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 20px;
    background: radial-gradient(circle at 0% 0%, rgba(250,204,21,.14), transparent 55%), var(--panel-2);
    border: 1px solid rgba(250,204,21,.3);
    animation: fadeInUp .35s ease both;
}
.pm-balance-coin {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #4a3300;
    background: linear-gradient(135deg, #fde047, #f59e0b);
}
.pm-balance b { display: block; font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.pm-balance small { color: var(--text-dim); font-size: 12.5px; }
.pm-balance > div:nth-child(2) { flex: 1; min-width: 0; }
.pm-free { font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; color: var(--success); background: rgba(34,197,94,.13); white-space: nowrap; }
.pm-balance .pub-btn { text-decoration: none; }

.pm-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pm-card {
    --sport: var(--accent);
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: var(--panel-2);
    border: 1px solid #333;
    animation: fadeInUp .35s ease both;
}
.pm-card.closed { opacity: .92; }
.pm-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-sport { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--sport); background: color-mix(in srgb, var(--sport) 16%, transparent); }
.pm-status { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.pm-status.open { color: var(--success); }
.pm-card h3 { margin: 12px 0 4px; font-size: 19px; line-height: 1.25; }
.pm-when { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

.pm-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.pm-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px 10px;
    text-align: left;
    color: inherit;
    font: inherit;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pm-opt:disabled { cursor: default; }
.pm-opt:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.pm-opt.chosen, .pm-opt.mine { border-color: var(--accent); background: var(--accent-soft); }
.pm-opt.won { border-color: var(--success); background: rgba(34,197,94,.12); }
.pm-opt.lost { opacity: .55; }
.pm-opt-label { font-size: 14px; font-weight: 700; line-height: 1.25; }
.pm-opt-label em { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-left: 4px; }
.pm-opt-label i { color: var(--gold); }
.pm-opt-odds { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pm-opt-bar { width: 100%; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.pm-opt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.pm-opt small { font-size: 11px; color: var(--text-dim); }

.pm-foot { margin-top: 14px; }
.pm-note { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text-dim); font-size: 13px; font-weight: 600; }
.pm-bet { padding: 14px; border-radius: 14px; background: rgba(250,204,21,.06); border: 1px dashed rgba(250,204,21,.35); display: flex; flex-direction: column; gap: 10px; }
.pm-bet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-bet-row label { font-size: 13px; font-weight: 700; }
.pm-stake { width: 120px; text-align: right; font-weight: 800; font-size: 16px; }
.pm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-chip { border: 1px solid var(--border); background: none; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.pm-chip:hover { color: var(--gold); border-color: var(--gold); }
.pm-gain { font-size: 13.5px; font-weight: 600; }
.pm-gain b { color: var(--gold); font-size: 17px; margin: 0 2px; }
.pm-gain b i { font-size: 16px; }
.pm-gain small { color: var(--text-dim); }
.pm-go { align-self: stretch; padding: 12px; }
.pm-go:disabled { opacity: .5; }
.pm-msg { min-height: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pm-msg:empty { display: none; }
.pm-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 13.5px; line-height: 1.5; }
.pm-result > i { font-size: 24px; color: var(--text-dim); }
.pm-result.won { background: rgba(34,197,94,.12); }
.pm-result.won > i, .pm-result.won b { color: var(--success); }
.pm-result.lost > i, .pm-result.lost b { color: #ef4444; }
.pm-result.pending > i { color: var(--gold); }

/* admin */
.admin-odds { flex: 0 0 90px !important; text-align: right; }
.admin-mini.ok:hover { border-color: var(--success); color: var(--success); }
.admin-pronos { display: flex; flex-direction: column; gap: 10px; }
.pr-match { padding: 10px 12px; background: #111; border: 1px solid var(--border); border-radius: 14px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pr-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 9px; font-size: 12.5px; }
.pr-opt.win { background: rgba(34,197,94,.12); }
.pr-actions { margin-top: 6px; }
body.light-mode .pr-match { background: #f9fafb; border-color: #e5e7eb; }

body.light-mode .pm-balance, body.light-mode .pm-card { background: #fff; border-color: #e5e7eb; }
body.light-mode .pm-opt { background: #f9fafb; }

@media (max-width: 900px) {
    .pm-balance { flex-wrap: wrap; padding: 14px 16px; }
    .pm-balance .pm-free { order: 3; }
    .pm-options { grid-template-columns: 1fr; }
    .pm-opt { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
    .pm-opt-label { flex: 1; }
    .pm-opt-bar { order: 5; }
    .pm-opt small { order: 6; }
    .pm-bet-row { flex-wrap: wrap; }
}
.pm-options { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.pm-opt { padding: 12px 12px 10px; }

/* ============================================
   🛍️ BOUTIQUE
============================================ */
.shop-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
#shopFilters { margin-top: 16px; }
#shopFilters[hidden] { display: none; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }

.shop-item {
    --rc: #71717a;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: var(--panel-2);
    border: 1px solid #333;
    animation: fadeInUp .35s ease both;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shop-item:hover { transform: translateY(-3px); border-color: var(--rc); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.shop-item.common { --rc: #71717a; }
.shop-item.rare { --rc: #38bdf8; }
.shop-item.epic { --rc: #a855f7; }
.shop-item.legendary { --rc: #facc15; }
.shop-item.is-eq { border-color: var(--success); box-shadow: 0 0 0 1px rgba(34,197,94,.4); }

.shop-prev { height: 92px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--rc) 10%, #14141a); }
.shop-prev.p-avatar { font-size: 46px; }
.shop-prev.p-banner { background-size: cover; }
.shop-info { min-width: 0; }
.shop-info b { display: block; font-size: 14px; line-height: 1.25; }
.shop-info small { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.rar { font-weight: 800; color: var(--rc); }

.shop-badge {
    --c: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 17px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 18%, transparent);
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), 0 0 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.shop-prev.p-badge .shop-badge { width: 52px; height: 52px; font-size: 28px; }
.shop-badge[hidden] { display: none; }
.pf-badge { flex-shrink: 0; }

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.shop-btn:hover { opacity: .9; }
.shop-btn.buy { color: #3b2a00; background: linear-gradient(135deg, #fde047, #f59e0b); }
.shop-btn.buy[data-poor] { opacity: .55; }
.shop-btn.equip { color: #fff; background: var(--accent); }
.shop-btn.on { color: var(--success); background: rgba(34,197,94,.14); }
.shop-btn:disabled { opacity: .5; cursor: default; }

.pf-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-actions .pf-edit { margin-bottom: 0; text-decoration: none; }
.how-steps li > span > i { font-size: 14px; }

body.light-mode .shop-item { background: #fff; border-color: #e5e7eb; }
body.light-mode .shop-prev { background: color-mix(in srgb, var(--rc) 10%, #f3f4f6); }

@media (max-width: 900px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-prev { height: 80px; }
}
@media (max-width: 380px) { .pf-actions .pf-edit { padding: 8px 10px; } }
.pf-edit { white-space: nowrap; }

/* Pass VIP */
.shop-item.vip-item { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; padding: 16px; border-color: rgba(250,204,21,.5); background: radial-gradient(circle at 0% 0%, rgba(250,204,21,.16), transparent 60%), var(--panel-2); }
.shop-item.vip-item .shop-prev { width: 96px; height: 96px; flex-shrink: 0; }
.shop-item.vip-item .shop-info { flex: 1; }
.shop-item.vip-item .shop-info b { font-size: 18px; }
.shop-item.vip-item .shop-btn { width: auto; min-width: 130px; flex-shrink: 0; }
.shop-prev.p-vip { font-size: 46px; color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 8px 26px rgba(250,204,21,.4); }
.vip-soon { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); font-weight: 500; }
.pf-role.vip { background: linear-gradient(135deg, #fde047, #f59e0b); color: #3b2a00; }
.pf-role.vip[hidden] { display: none; }
.pf-role.vip i { margin-right: 2px; }
body.light-mode .shop-item.vip-item { background: #fffbeb; border-color: #fde68a; }

@media (max-width: 900px) {
    .shop-item.vip-item { flex-wrap: wrap; }
    .shop-item.vip-item .shop-btn { width: 100%; }
}

.admin-mini.armed, .admin-icon.armed { background: #ef4444; border-color: #ef4444; color: #fff; }
.admin-icon.armed { width: auto; padding: 0 12px; font-size: 12px; font-weight: 800; }


/* ============================================
   💬 COMMENTAIRES : fenêtre dédiée
============================================ */
.cmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cmt-btn i { font-size: 18px; }
.cmt-btn span:empty { display: none; }
.cmt-btn:hover { color: #38bdf8; border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.09); }

.cs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.cs-backdrop.visible { opacity: 1; pointer-events: auto; }
body.cs-open { overflow: hidden; }

.cs {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: 560px;
    max-width: calc(100vw - 32px);
    height: min(720px, calc(100vh - 48px));
    border-radius: 24px;
    background: radial-gradient(circle at 100% 0%, rgba(56,189,248,.09), transparent 45%), var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translate(-50%, -46%) scale(.97);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
}
.cs.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.cs-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.cs-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.cs-head h3 > i { color: #38bdf8; }
.cs-count { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(56,189,248,.16); color: #38bdf8; }
.cs-count:empty { display: none; }
.cs-close { border: none; background: none; color: inherit; font-size: 15px; opacity: .6; cursor: pointer; padding: 6px; }
.cs-close:hover { opacity: 1; }
.cs-grip { display: none; }

.cs-post { margin: 0 16px 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); }
.cs-post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13.5px; }
.cs-post p { margin: 0; font-size: 14px; line-height: 1.45; color: #d4d4d8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.cs-list { flex: 1; overflow-y: auto; padding: 8px 16px 10px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.cs-item { display: flex; gap: 10px; animation: notifIn .3s cubic-bezier(.2,.9,.3,1) both; }
.cs-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3a3a44, #26262c);
}
.cs-avatar.me { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d0d; }
.cs-body { min-width: 0; max-width: calc(100% - 48px); }
.cs-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 4px 3px; }
.cs-meta b { font-size: 13px; }
.cs-meta small { color: var(--text-dim); font-size: 11.5px; }
.cs-admin { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.cs-badge { --c: var(--accent); display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
.cs-bubble { position: relative; display: inline-block; max-width: 100%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: rgba(255,255,255,.07); }
.cs-item.mine .cs-bubble { background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cs-bubble p { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.cs-del {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translate(100%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    white-space: nowrap;
    transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.cs-item:hover .cs-del, .cs-del.confirm { opacity: 1; }
.cs-del:hover { color: #ef4444; }
.cs-del.confirm { color: #fff; background: #ef4444; }

.cs-empty { margin: auto; text-align: center; padding: 30px 20px; }
.cs-empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #38bdf8; background: rgba(56,189,248,.12); }
.cs-empty b { display: block; margin-bottom: 3px; font-size: 16px; }
.cs-empty p { margin: 0; font-size: 13px; color: var(--text-dim); }
.cs-skeleton { display: flex; flex-direction: column; gap: 14px; }
.cs-skeleton i { display: block; height: 52px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: csShimmer 1.2s infinite linear; }
@keyframes csShimmer { to { background-position: -200% 0; } }

.cs-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.cs-form { display: flex; align-items: flex-end; gap: 10px; }
.cs-form .cs-avatar { width: 38px; height: 38px; }
.cs-field { position: relative; flex: 1; min-width: 0; }
.cs-field textarea {
    width: 100%;
    display: block;
    resize: none;
    max-height: 110px;
    padding: 11px 44px 11px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #0f0f0f;
    color: inherit;
    font: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cs-field textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.14); }
.cs-left { position: absolute; right: 14px; bottom: 11px; font-size: 11px; font-weight: 800; color: var(--text-dim); }
.cs-left:empty { display: none; }
.cs-left.warn { color: #ef4444; }
.cs-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a0d0d;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, opacity .15s ease;
}
.cs-send:hover:not(:disabled) { transform: scale(1.06); }
.cs-send:disabled { opacity: .5; cursor: default; }
.cs-err { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.cs-err:empty { display: none; }
.cs-login { text-align: center; padding: 6px 0; font-size: 14px; color: var(--text-dim); }
.cs-login a { color: var(--accent); font-weight: 800; text-decoration: none; }

body.light-mode .cs { background: radial-gradient(circle at 100% 0%, rgba(56,189,248,.08), transparent 45%), #fff; border-color: #e5e7eb; color: #111827; }
body.light-mode .cs-post { background: #f3f4f6; }
body.light-mode .cs-post p { color: #4b5563; }
body.light-mode .cs-bubble { background: #f3f4f6; }
body.light-mode .cs-field textarea { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .cs-backdrop { background: rgba(17,24,39,.35); }

/* Mobile : panneau qui monte du bas */
@media (max-width: 900px) {
    .cs {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 88vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
    }
    .cs.visible { transform: translateY(0); }
    .cs-grip { display: block; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 99px; background: rgba(255,255,255,.2); }
    .cs-head { padding-top: 24px; }
    .cs-field textarea { font-size: 16px; }
    .cs-del { position: static; transform: none; opacity: 1; margin: 0 0 0 8px; padding: 2px 4px; }
    .cs-bubble { display: flex; align-items: center; }
    .cs-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

.cs-meta .cs-del { position: static; transform: none; padding: 2px 6px; margin-left: 2px; font-size: 11.5px; }
@media (max-width: 900px) { .cs-bubble { display: inline-block; } .cs-meta .cs-del { margin: 0 0 0 2px; } }

/* ============================================
   ✨ FINITIONS
============================================ */
/* Mode clair : les variables suivent le thème (bordures, texte secondaire, or) */
body.light-mode {
    --border: #e5e7eb;
    --text-dim: #6b7280;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --gold: #b7791f;
    --accent-soft: rgba(255, 77, 77, 0.10);
}

/* Navigation au clavier : anneau de focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible, a:focus-visible, .left-item:focus-visible { border-radius: 12px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

/* Squelette de chargement du fil d'actualité */
.post-skel { padding: 26px 30px; margin: 0 0 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border); }
.post-skel i { display: block; height: 14px; margin-bottom: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(128,128,128,.10), rgba(128,128,128,.22), rgba(128,128,128,.10)); background-size: 200% 100%; animation: csShimmer 1.2s infinite linear; }
.post-skel i:nth-child(1) { width: 38%; height: 18px; }
.post-skel i:nth-child(3) { width: 72%; margin-bottom: 0; }

/* Page 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.nf .brand { margin-bottom: 26px; }
.nf-code { font-size: clamp(90px, 22vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin: 0; font-size: 28px; }
.nf p { margin: 0 0 18px; color: var(--text-dim); }
.nf-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 12px 22px; }

/* Respect du réglage "réduire les animations" du système */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   🎁 AMÉLIORATIONS : pastille Golds, bandeau live, lightbox, classement, activité, agenda
============================================ */
/* Pastille de solde */
.gold-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #4a3300;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(250,204,21,.28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gold-pill i { font-size: 17px; }
.gold-pill b { font-weight: 800; font-variant-numeric: tabular-nums; }
.gold-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(250,204,21,.4); }
.sidebar-bottom > .gold-pill { align-self: flex-start; margin: 0 0 8px 6px; }
@media (max-width: 900px) {
    .mt-actions .gold-pill { padding: 6px 11px; font-size: 13.5px; margin-right: 4px; box-shadow: none; }
}

/* Bandeau "prochain live" */
.next-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 14px;
    padding: 12px 16px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    background: radial-gradient(circle at 100% 0%, rgba(255,77,77,.14), transparent 60%), var(--panel);
    border: 1px solid rgba(255,77,77,.3);
    animation: fadeInUp .35s ease both;
    transition: transform .15s ease, border-color .15s ease;
}
.next-strip[hidden] { display: none; }
.next-strip:hover { transform: translateY(-1px); border-color: var(--accent); }
.ns-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--accent); animation: livePulse 1.8s infinite; }
.ns-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ns-text b { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ns-text small { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-strip > i { color: var(--text-dim); font-size: 20px; }

/* Lightbox */
.post-image { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .2s ease;
    cursor: zoom-out;
}
.lightbox.show { opacity: 1; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 92vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); transform: scale(.96); transition: transform .25s cubic-bezier(.2,.9,.3,1); }
.lightbox.show img { transform: scale(1); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer; }

/* Classement */
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-list li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 12px; }
.lb-list li:hover { background: rgba(128,128,128,.08); }
.lb-rank { width: 22px; text-align: center; font-size: 12px; font-weight: 800; color: var(--m, var(--text-dim)); }
.lb-rank i { font-size: 18px; }
.lb-avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3a3a44, #26262c); }
.lb-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-total { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.lb-empty { font-size: 12.5px; color: var(--text-dim); }
body.light-mode .lb-avatar { background: linear-gradient(135deg, #9ca3af, #6b7280); }

/* Activité du profil */
.pf-stats-4 { grid-template-columns: repeat(4, 1fr); }
.pf-stats-4 b { font-size: 22px; }
.pf-rate { display: block; margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }
.pf-rate b { color: var(--text); }
@media (max-width: 900px) { .pf-stats-4 { grid-template-columns: repeat(2, 1fr); } }

/* Chiffres clés de l'admin */
.admin-stats-6 { grid-template-columns: repeat(3, 1fr); margin-top: -4px; }
.admin-stats-6 .admin-stat b { font-size: 19px; }

/* Ajouter à l'agenda */
.ics-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: inherit;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.ics-btn:hover { background: rgba(255,255,255,.16); border-color: var(--sport, var(--accent)); }
.ics-btn.small { margin-top: 10px; padding: 5px 11px; font-size: 11.5px; }
body.light-mode .ics-btn { border-color: #d1d5db; background: #f3f4f6; }
.lb-name { display: block; }
.lb-name .cs-badge { margin-left: 5px; vertical-align: middle; }

/* ============================================
   🛍️ BOUTIQUE 2.0 : aperçu, essai, tri, images perso
============================================ */
/* Images d'avatars / badges perso */
.av-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cs-avatar, .lb-avatar, .admin-user-avatar, .composer-avatar, .pf-avatar, .avatar-option, .shop-prev.p-avatar, .shop-pv-avatar { overflow: hidden; }
.cs-badge.is-img, .shop-badge.is-img { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.shop-badge.is-img { box-shadow: 0 0 0 1.5px rgba(255,255,255,.25); }
.pf-avatar .av-img { border-radius: 50%; }

/* Solde + objectif */
.pm-goal { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); }
.pm-goal b { display: inline; font-size: inherit; color: var(--text); }
.pm-goal-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.pm-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fde047, #f59e0b); transition: width .5s cubic-bezier(.2,.9,.3,1); }
.pm-goal-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 700; }
.pm-goal-ok b { color: var(--success); }
body.light-mode .pm-goal-bar { background: #e5e7eb; }

/* Aperçu du profil (reste visible en défilant) */
.shop-pv {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(rgba(10,10,12,.55), rgba(10,10,12,.72)), var(--pv-bg, var(--panel-2));
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: border-color .2s ease;
}
.shop-pv.is-trying { border-color: var(--accent); }
.shop-pv-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    background: rgba(255,255,255,.14);
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.shop-pv-text { flex: 1; min-width: 0; }
.shop-pv-name { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.shop-pv-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-pv-text small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.75); }
.shop-pv-reset {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.shop-pv-reset:hover { background: rgba(0,0,0,.6); }
.shop-pv .shop-badge { width: 26px; height: 26px; font-size: 15px; }

/* Barre filtres + tri */
.shop-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shop-toolbar .event-filters { flex: 1; min-width: 0; margin-top: 16px; }
.event-filters button em { font-style: normal; font-size: 11px; opacity: .65; margin-left: 2px; }
.shop-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 6px 0 12px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text-dim);
}
.shop-sort select { border: none; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 8px 6px 2px; cursor: pointer; outline: none; }
.shop-sort select option { background: var(--panel); color: var(--text); }
body.light-mode .shop-sort { background: #fff; border-color: #e5e7eb; }

/* Cartes : essayer, nouveau, achat possible */
.shop-item { position: relative; }
.shop-item.can-buy { border-color: rgba(250,204,21,.45); }
.shop-item.can-buy::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 22px rgba(250,204,21,.13) inset; }
.shop-try {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    background: rgba(0,0,0,.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.shop-try:hover { transform: scale(1.1); background: rgba(0,0,0,.75); }
.shop-try.on { background: var(--accent); }
.shop-new {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 12px rgba(255,77,77,.4);
}
.shop-btn.buy.armed { color: #fff; background: var(--accent); animation: armedPulse .9s ease-in-out infinite; }
@keyframes armedPulse { 50% { transform: scale(1.04); } }
.shop-prev.p-avatar .av-img { border-radius: 50%; width: 72px; height: 72px; }
.shop-prev.p-badge .shop-badge.is-img { width: 56px; height: 56px; }

@media (max-width: 900px) {
    .shop-pv { top: 66px; padding: 10px 12px; gap: 10px; }
    .shop-pv-avatar { width: 48px; height: 48px; font-size: 24px; }
    .shop-pv-name { font-size: 15px; }
    .shop-pv-text small { font-size: 11px; }
    .shop-pv-reset { padding: 6px 9px; font-size: 11px; }
    .shop-toolbar .event-filters, .shop-sort { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .shop-btn.buy.armed { animation: none; } }

/* Série de connexion (profil) */
.gold-streak { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(249,115,22,.09); border: 1px solid rgba(249,115,22,.25); font-size: 12.5px; color: var(--text-dim); }
.gold-streak b { color: #fb923c; }
.gold-streak i.ri-fire-fill { color: #fb923c; }
.gs-days { display: flex; gap: 5px; }
.gs-days i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.gs-days i.on { background: linear-gradient(135deg, #fdba74, #f97316); border-color: #f97316; box-shadow: 0 0 8px rgba(249,115,22,.5); }
body.light-mode .gs-days i { background: #e5e7eb; border-color: #d1d5db; }
body.light-mode .gs-days i.on { background: linear-gradient(135deg, #fdba74, #f97316); border-color: #f97316; }

/* Admin : onglet Boutique */
.shop-drop { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed var(--border); border-radius: 14px; background: #111; cursor: pointer; transition: border-color .15s ease; }
.shop-drop:hover { border-color: var(--accent); }
.shop-drop-prev { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--text-dim); background: rgba(255,255,255,.05); }
.shop-drop-prev.type-avatar { border-radius: 50%; }
.shop-drop-prev.type-banner { width: 120px; height: 40px; border-radius: 10px; }
.shop-drop-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-drop-text { display: flex; flex-direction: column; min-width: 0; }
.shop-drop-text b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-drop-text small { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.admin-shoplist { display: flex; flex-direction: column; gap: 6px; }
.admin-shopitem { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: #111; border: 1px solid var(--border); border-radius: 12px; transition: border-color .3s ease, opacity .2s ease; }
.admin-shopitem.saved { border-color: var(--success); }
.admin-shopitem.is-off { opacity: .6; }
.shop-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.05); }
.shop-thumb.type-avatar, .shop-thumb.type-badge { border-radius: 50%; }
.shop-thumb.type-banner { width: 64px; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-shopitem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-shopitem-main b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shopitem-main small { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-price { width: 74px; flex: none; padding: 6px 8px; font-size: 13px; text-align: right; }
body.light-mode .shop-drop, body.light-mode .admin-shopitem { background: #f9fafb; border-color: #e5e7eb; }

/* Admin : 7 onglets sur deux lignes + champ prix compact */
.admin-tabs { flex-wrap: wrap; border-radius: 18px; }
.admin-tabs button { flex: 1 1 auto; }
.admin-tab .admin-price { width: 74px; flex: none; }

/* ============================================
   ✨ PAGES 2.0 : auteur des posts, cartes de droite, live, historique des pronos
============================================ */
/* Auteur d'un post : avatar réel, badge, tag Admin */
.circle { display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 26px; font-weight: 800; color: #fff; }
.circle .av-img { border-radius: 50%; }
.post-header { flex-wrap: wrap; row-gap: 6px; }
.post-header .timestamp { white-space: nowrap; }
.post-header .cs-badge { margin-left: 6px; }
.post-admin { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: rgba(255,77,77,.14); }
body.light-mode .circle { background: linear-gradient(135deg, #9ca3af, #6b7280); }

/* Cartes "prochain événement / live" (panneau de droite) */
.rp-next {
    --sport: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px 14px 18px;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.rp-next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sport); }
.rp-next:hover { transform: translateY(-1px); border-color: var(--sport); }
.rp-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.rp-tag i { color: var(--sport); font-size: 13px; }
.rp-tag.is-live i { color: var(--accent); }
.rp-next > b { font-size: 14.5px; line-height: 1.3; }
.rp-next > small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.rp-next > small i { color: var(--sport); }
.rp-more { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin: 8px 8px 0 0; font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }
.rp-more:hover { text-decoration: underline; }
#rpWidgets { display: contents; }
.right-panel .lb-list li { padding: 6px 4px; }

/* Live : cartes de canaux aux couleurs du sport */
.channel-card[class*="sport-"] { box-shadow: inset 0 3px 0 var(--sport); }
.channel-card[class*="sport-"] .channel-icon { background: linear-gradient(135deg, var(--sport), color-mix(in srgb, var(--sport) 55%, #000)); }
.channel-card[class*="sport-"] .channel-steps i.on { background: var(--sport); }
.channel-card.unlocked { box-shadow: inset 0 3px 0 var(--success); }
.channel-card.unlocked .channel-steps i.on { background: var(--success); }

/* État vide riche (aucun live) */
.lives-empty-rich { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 8px; text-align: center; }
.lives-empty-rich > i { font-size: 30px; color: var(--text-dim); opacity: .7; }
.lives-empty-rich b { font-size: 13.5px; }
.lives-empty-rich small { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.lives-empty-rich a { margin-top: 6px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.lives-empty-rich a:hover { text-decoration: underline; }

/* Pronostics : Mes pronostics */
.pm-mine { margin-top: 22px; padding: 16px 16px 8px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--border); animation: fadeInUp .35s ease both; }
.pmine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 4px 10px; }
.pmine-head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.pmine-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.pmine-sum span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text-dim); background: rgba(255,255,255,.06); }
.pmine-sum b { color: var(--text); }
.pmine-sum .pos b { color: var(--success); }
.pmine-sum .neg b { color: var(--accent); }
.pmine-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pmine-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--border); }
.pmine-row:first-child { border-top: none; }
.pmine-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--text-dim); background: rgba(255,255,255,.07); }
.pmine-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pmine-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmine-main small { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmine-side { text-align: right; display: flex; flex-direction: column; flex-shrink: 0; }
.pmine-side b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
.pmine-side small { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.pmine-row.st-won .pmine-ico { color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); }
.pmine-row.st-won .pmine-side b, .pmine-row.st-won .pmine-side small { color: var(--success); }
.pmine-row.st-lost .pmine-ico { color: var(--accent); background: rgba(255,77,77,.12); }
.pmine-row.st-lost .pmine-side b { color: var(--text-dim); }
.pmine-row.st-pending .pmine-ico { color: #38bdf8; background: rgba(56,189,248,.12); }
body.light-mode .pm-mine { background: #fff; border-color: #e5e7eb; }
body.light-mode .pmine-row { border-color: #f0f0f0; }
body.light-mode .pmine-sum span { background: #f3f4f6; }
@media (max-width: 900px) { .pm-mine { padding: 14px 12px 6px; } }

/* Le bouton supprimer (admin) ne recouvre pas le tag Admin */
.post-body:has(.post-del) .post-header { padding-right: 44px; }

/* ============================================
   ✨ POLISH 3 : fenêtre de connexion + vitrine des badges
============================================ */
/* Fenêtre de connexion : plus compacte, à onglets */
.auth-dialog { width: min(400px, calc(100vw - 28px)); padding: 22px 22px 18px; }
.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: rgba(255,255,255,.05);
    border-radius: 999px;
}
.auth-tabs button {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.auth-tabs button.active { color: #fff; background: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-field { position: relative; display: flex; align-items: center; }
.auth-field > i:first-child { position: absolute; left: 14px; color: var(--text-dim); font-size: 16px; pointer-events: none; }
.auth-field .input { width: 100%; padding-left: 40px; box-sizing: border-box; }
.auth-field .input[type="password"], .auth-field .input[type="text"] { padding-right: 42px; }
.auth-eye { position: absolute; right: 6px; width: 32px; height: 32px; border: none; background: none; color: var(--text-dim); font-size: 17px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.auth-eye:hover { color: var(--text); background: rgba(255,255,255,.06); }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 12px; font-size: 14.5px; }
.auth-message { min-height: 0; margin-top: 4px; }
.auth-message:not(:empty) {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
}
body.light-mode .auth-tabs { background: #f3f4f6; }
body.light-mode .auth-field > i:first-child { color: #9ca3af; }

/* Vitrine des badges (page profil) */
.pf-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pf-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    font: inherit;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.pf-badge-item.owned:hover { transform: translateY(-2px); border-color: var(--rc, var(--accent)); }
.pf-badge-item.on { border-color: var(--success); background: rgba(34,197,94,.08); }
.pf-badge-item:disabled { cursor: default; opacity: .5; }
.pf-badge-ico .shop-badge { width: 34px; height: 34px; font-size: 18px; }
.pf-badge-name { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pf-badge-item small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-dim); font-weight: 700; }
body.light-mode .pf-badge-item { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .pf-badge-item.on { background: rgba(34,197,94,.1); }

@media (max-width: 900px) {
    .auth-dialog { padding: 18px 16px 14px; }
    .pf-badges-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

/* ============================================
   ✈️ ADMIN : onglet Telegram
============================================ */
.tg-status { display: flex; flex-direction: column; gap: 8px; }

/* File d'attente Telegram */
.queue-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--home-line, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  margin-bottom: 8px;
}
.queue-bar .admin-tgrow-main { flex: 1; min-width: 0; }
.queue-item .admin-icon { flex: none; }
.tg-line { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #111; border: 1px solid var(--border); }
.tg-line > i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.tg-line b { display: block; font-size: 13px; }
.tg-line small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: var(--text-dim); }
.tg-line code { padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); font-size: 11px; }
.tg-line.ok { border-color: rgba(34,197,94,.35); }
.tg-line.ok > i { color: var(--success); }
.tg-line.bad { border-color: rgba(239,68,68,.4); }
.tg-line.bad > i { color: #ef4444; }
.tg-line.warn { border-color: rgba(245,158,11,.4); }
.tg-line.warn > i { color: #f59e0b; }
.tg-line.idle > i { color: var(--text-dim); }
.tg-head { display: flex; align-items: center; justify-content: space-between; }
.tg-head .admin-sub { margin-bottom: 6px; }
.admin-tglist { display: flex; flex-direction: column; gap: 6px; }
.admin-tgrow, .admin-tgimport { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #111; border: 1px solid var(--border); border-radius: 12px; }
.admin-tgrow.is-pending { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.06); }
.admin-tgrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-tgrow-main b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-tgrow-main small { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-pending { color: #f59e0b; font-weight: 800; }
.tg-cat { width: 92px; flex: none; padding: 6px 8px; font-size: 12.5px; }
.admin-tgimport > i { font-size: 17px; flex-shrink: 0; color: var(--text-dim); }
.admin-tgimport.st-published > i { color: var(--success); }
.admin-tgimport.st-failed > i { color: #ef4444; }
.admin-tgimport.st-processing > i { color: #38bdf8; }
body.light-mode .tg-line, body.light-mode .admin-tgrow, body.light-mode .admin-tgimport { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .tg-line code { background: rgba(0,0,0,.07); }

/* Telegram : le sélecteur de catégorie garde sa petite largeur (sinon .admin-tab .input le met à 100%) */
.admin-tab .tg-cat { width: 92px; flex: none; }
.admin-tgrow .switch { flex-shrink: 0; }
.tg-head { margin-top: 14px; }

/* ============================================
   🖼️ IMAGES DES POSTS : photo entière (jamais coupée), fond flou autour
============================================ */
.post-media {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 160px;
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0b0b0d;
    isolation: isolate;
}
/* même photo, agrandie et floutée : elle remplit les côtés d'une photo en portrait */
.post-media-bg {
    position: absolute;
    inset: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    object-fit: cover;
    filter: blur(24px) brightness(.5) saturate(1.25);
    pointer-events: none;
    z-index: 0;
}
.post-media .post-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: min(520px, 75vh);
    object-fit: contain;
    margin: 0;
    border: 0;
    border-radius: 0;
}
.post-media { cursor: zoom-in; }
body.light-mode .post-media { background: #e5e7eb; border-color: #e5e7eb; }
body.light-mode .post-media-bg { filter: blur(24px) brightness(.9) saturate(1.1); }
@media (max-width: 900px) {
    .post-media { border-radius: 14px; }
    .post-media .post-image { max-height: min(480px, 70vh); }
}
@media (prefers-reduced-motion: reduce) { .post-media-bg { filter: blur(24px) brightness(.5); } }

/* ============================================
   📰 POSTS : en-tête épuré (avatar + tag + heure), catégorie en bas à droite
============================================ */
.post-header { flex-wrap: nowrap; row-gap: 0; margin-bottom: 16px; }
.post-header .circle { margin-right: 14px; }
.post-meta { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.post-who { display: flex; align-items: center; gap: 8px; line-height: 1; }
.post-who .post-admin { margin-left: 0; }
.post-who .cs-badge { margin-left: 0; }
.post-who .username { font-size: 17px; }
.post-meta .timestamp { margin-left: 0; font-size: 13px; line-height: 1.2; }
/* catégorie : à droite de la rangée des actions */
.post-actions .post-cat { margin-left: auto; padding: 5px 12px; font-size: 11px; }
@media (max-width: 900px) {
    .post-header { margin-bottom: 12px; }
    .post-header .circle { margin-right: 12px; }
    .post-who .username { font-size: 16px; }
}

/* ============================================
   🥊 REFONTE ACCUEIL (body:is(.page-home, .ui2)) — style maquette
============================================ */
body:is(.page-home, .ui2) {
    font-family: 'Manrope', system-ui, sans-serif;
    --home-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --home-card: #161616;
    --home-line: #262626;
}
body:is(.page-home, .ui2).light-mode { --home-card: #ffffff; --home-line: #e5e7eb; }

/* Sidebar */
body:is(.page-home, .ui2) .sidebar { background: var(--bg); border-right: 1px solid #222; }
body:is(.page-home, .ui2).light-mode .sidebar { background: #ffffff; border-right-color: #e5e7eb; }
body:is(.page-home, .ui2) .brand-mark { border-radius: 10px; }
body:is(.page-home, .ui2) .brand-text b { font-family: var(--home-display); font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
body:is(.page-home, .ui2) .left-nav { gap: 4px; }
body:is(.page-home, .ui2) .left-item { font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 10px; color: #c4c4cc; }
body:is(.page-home, .ui2) .left-item i { font-size: 20px; }
body:is(.page-home, .ui2) .left-item.active { background: #1c1414; color: #ff6b6b; font-weight: 700; }
body:is(.page-home, .ui2).light-mode .left-item { color: #374151; }
body:is(.page-home, .ui2).light-mode .left-item.active { background: #fff0f0; color: #d92b2b; }

/* Hero prochain événement */
.fight-hero {
    position: relative;
    overflow: hidden;
    max-width: var(--content-width);
    margin: 28px auto 0;
    padding: 32px;
    border-radius: 20px;
    background: var(--home-card);
    border: 1px solid var(--home-line);
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeInUp .35s ease both;
}
.fight-hero > * { position: relative; }
.fh-vs {
    position: absolute;
    right: -30px;
    top: -60px;
    font-family: var(--home-display);
    font-weight: 800;
    font-style: italic;
    font-size: 260px;
    line-height: 1;
    letter-spacing: -6px;
    color: #1d1d1d;
    pointer-events: none;
    user-select: none;
}
body.light-mode .fh-vs { color: #f3f4f6; }
.fh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fh-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #0d0d0d;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fh-when { color: var(--text-dim); font-size: 14px; text-transform: capitalize; }
.fh-when:empty { display: none; }
.fh-title {
    margin: 0;
    font-family: var(--home-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(44px, 7vw, 72px);
    line-height: .92;
    letter-spacing: -1px;
    overflow-wrap: break-word;
    hyphens: auto;
}
.fh-accent { color: var(--accent); }
.fh-desc { margin: 0; color: var(--text-dim); font-size: 16px; max-width: 520px; line-height: 1.5; }
.fh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s ease, border-color .15s ease;
}
.fh-btn:hover { transform: translateY(-1px); }
.fh-btn-main { background: var(--accent); color: #0d0d0d; }
.fh-btn-ghost { border: 1px solid #3a3a3a; color: inherit; }
.fh-btn-ghost:hover { border-color: var(--accent); }
body.light-mode .fh-btn-ghost { border-color: #d1d5db; }

/* Onglets catégories */
body:is(.page-home, .ui2) .feed-toolbar { margin-top: 24px; }
body:is(.page-home, .ui2) .tabs-row button {
    font-family: inherit;
    font-size: 14px;
    padding: 0 18px;
    min-height: 44px;
    background: var(--home-card);
    border-color: var(--home-line);
    color: #c4c4cc;
}
body:is(.page-home, .ui2) .tabs-row button.active { background: var(--accent); border-color: var(--accent); color: #0d0d0d; transform: none; }
body:is(.page-home, .ui2).light-mode .tabs-row button { color: #374151; }
body:is(.page-home, .ui2).light-mode .tabs-row button.active { color: #0d0d0d; }
body:is(.page-home, .ui2) .feed-search { background: var(--home-card); border-color: var(--home-line); border-radius: 12px; }

/* Posts */
body:is(.page-home, .ui2) .post {
    background: var(--home-card);
    border: 1px solid var(--home-line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    font-size: 16px;
}
body:is(.page-home, .ui2) .post-badge { display: none; }
body:is(.page-home, .ui2) .post .circle { width: 44px; height: 44px; margin-right: 12px; }
body:is(.page-home, .ui2) .post .username { font-size: 15px; }
body:is(.page-home, .ui2) .post p { font-size: 16px; line-height: 1.55; }
body:is(.page-home, .ui2) .post-media { border-radius: 12px; }
body:is(.page-home, .ui2) .post-cat {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Panneau droit */
body:is(.page-home, .ui2) .right-box { background: var(--home-card); border: 1px solid var(--home-line); border-radius: 16px; padding: 20px; }
body:is(.page-home, .ui2) .right-box h3 {
    font-family: var(--home-display);
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
body:is(.page-home, .ui2) .live-mini { background: #1c1414; border-color: #3a1f1f; }
body:is(.page-home, .ui2).light-mode .live-mini { background: #fff0f0; border-color: #fecaca; }
body:is(.page-home, .ui2) .live-mini-text b { font-size: 15px; }
body:is(.page-home, .ui2) .live-mini-text small { font-size: 13px; }

@media (max-width: 900px) {
    .fight-hero { margin: 16px 16px 0; padding: 24px 20px; }
    .fh-vs { font-size: 180px; top: -40px; }
}

/* ============================================
   🎨 UI2 : pages secondaires au style de l'accueil
============================================ */
.fight-hero.is-compact { margin-top: 22px; padding: 26px 30px; gap: 12px; }
.fight-hero.is-compact .fh-title { font-size: clamp(38px, 5.5vw, 58px); }
.fight-hero.is-compact .fh-vs { font-size: 210px; top: -46px; right: -10px; }
.fight-hero.is-compact .fh-desc { font-size: 15px; }
.fight-hero.is-compact .fh-btn { min-height: 44px; font-size: 14px; padding: 0 18px; }
@media (max-width: 900px) {
    .fight-hero.is-compact { margin: 12px 14px 0; padding: 20px 18px; gap: 10px; }
    .fight-hero.is-compact .fh-vs { font-size: 130px; top: -28px; right: -6px; }
    .fight-hero.is-compact .fh-title { font-size: clamp(34px, 11vw, 46px); }
    .fight-hero.is-compact .fh-actions { gap: 8px; }
    .fight-hero.is-compact .fh-btn { min-height: 42px; padding: 0 14px; font-size: 13px; }
}

/* Filtres en pastilles (événements, boutique) : mêmes que les onglets de l'accueil */
body.ui2 .event-filters button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 0 16px;
    min-height: 40px;
    background: var(--home-card);
    border: 1px solid var(--home-line);
    color: #c4c4cc;
}
body.ui2 .event-filters button:hover { border-color: #3a3a3a; color: inherit; }
body.ui2 .event-filters button.active { background: var(--accent); border-color: var(--accent); color: #0d0d0d; }
body.ui2.light-mode .event-filters button { color: #374151; }
body.ui2.light-mode .event-filters button.active { color: #0d0d0d; }

/* Boutons d'action : rectangles arrondis comme ceux du bandeau (les pastilles restent pour les filtres) */
body.ui2 :is(.pub-btn, .access-btn, .shop-btn, .btn, .pf-edit) { border-radius: 12px; }

/* Cartes : même rayon que l'accueil, fond plein harmonisé */
body.ui2 :is(.channel-card, .pm-card, .pm-mine, .shop-item, .pf-box, .pf-card, .event-tile, .live-now-bar) { border-radius: 16px; }
body.ui2 :is(.channel-card, .pm-card, .pm-mine, .shop-item:not(.can-buy):not(.is-eq), .pf-box:not(.pf-golds), .pf-card, .event-tile) { background: var(--home-card); }

/* Titres : police d'affichage condensée comme sur l'accueil */
body.ui2 .section-title,
body.ui2 .pf-box-head b,
body.ui2 .pmine-head h3 {
    font-family: var(--home-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: inherit;
}

/* Mobile : le bandeau s'aligne sur les cartes et reste compact (le contenu passe en premier) */
@media (max-width: 900px) {
    .fight-hero.is-compact { margin: 12px 0 0; padding: 18px 16px; gap: 10px; }
    .fight-hero.is-compact .fh-desc { display: none; }
    .fight-hero.is-compact .fh-title { font-size: clamp(34px, 10vw, 42px); }
    .fight-hero.is-compact .fh-actions { flex-wrap: nowrap; gap: 8px; }
    .fight-hero.is-compact .fh-btn { flex: 1 1 0; justify-content: center; text-align: center; line-height: 1.15; min-height: 42px; padding: 0 10px; font-size: 13px; }
    .fight-hero.is-compact .fh-btn i { display: none; }
}

/* ============================================
   ⚖️ PAGES LÉGALES + liens légaux + consentement
============================================ */
.legal-page {
    max-width: var(--content-width);
    margin: 18px auto 48px;
    padding: 28px 32px 34px;
    background: var(--home-card, #161616);
    border: 1px solid var(--home-line, #262626);
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.7;
}
.legal-updated { margin: 0 0 6px; color: var(--text-dim); font-size: 13px; }
.legal-page h2 {
    margin: 30px 0 8px;
    font-family: var(--home-display, inherit);
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.legal-updated + h2 { margin-top: 10px; }
.legal-page p { margin: 8px 0; }
.legal-page ul { margin: 8px 0; padding-left: 20px; }
.legal-page li { margin: 5px 0; }
.legal-page a { color: var(--accent); }
mark.ph { background: #fde047; color: #1a1a1a; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--home-line, #262626); }
.legal-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); white-space: nowrap; }
.legal-table code { padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.08); font-size: 12px; }
body.light-mode .legal-table code { background: rgba(0,0,0,.07); }
@media (max-width: 900px) {
    .legal-page { margin: 12px 0 36px; padding: 20px 16px 26px; }
    .legal-page h2 { font-size: 22px; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; box-sizing: border-box; }
    .legal-table thead { display: none; }
    .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--home-line, #262626); }
    .legal-table td { padding: 4px 0; border: 0; }
    .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
}

/* Liens légaux en bas du menu */
.legal-links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 8px 10px 0; font-size: 11.5px; }
.legal-links a { color: var(--text-dim); text-decoration: none; }
.legal-links a:hover { color: var(--accent); text-decoration: underline; }

/* Consentement à l'inscription */
.auth-consent { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-dim); }
.auth-consent a { color: var(--accent); }


/* ===== Signalements (feed + admin) ===== */
.flag-btn, .cs-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 999px;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
}
.flag-btn { width: 32px; height: 32px; font-size: 16px; opacity: .55; }
.flag-btn:hover, .cs-flag:hover { color: #ef4444; background: rgba(239, 68, 68, .12); opacity: 1; }
.cs-flag { width: 24px; height: 24px; font-size: 13px; margin-left: 4px; opacity: .5; }
.cs-item:hover .cs-flag { opacity: 1; }
.flag-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .6); }
.flag-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1101;
    width: 420px;
    max-width: calc(100vw - 32px);
    padding: 22px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.flag-dialog h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.flag-dialog h3 i { color: #ef4444; }
.flag-help { margin: 0 0 12px; font-size: 13px; color: var(--text-dim); }
.flag-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 700; }
.flag-opt:has(input:checked) { border-color: #ef4444; background: rgba(239, 68, 68, .08); }
.flag-opt input { accent-color: #ef4444; }
.flag-dialog textarea.input { width: 100%; resize: none; margin-top: 6px; }
.flag-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.flag-msg { flex: 1; font-size: 13px; font-weight: 700; color: #ef4444; }
.flag-cancel { border: none; background: none; color: var(--text-dim); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.flag-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.admin-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.report-item .admin-icon { flex: none; }

/* ===== Suppression du compte (profil) ===== */
.pm-danger { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.pm-danger-link { border: none; background: none; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 2px; display: inline-flex; align-items: center; gap: 6px; }
.pm-danger-link:hover { color: #ef4444; }
.pm-danger form p { margin: 10px 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.pm-danger form p b { color: #ef4444; }
.pm-danger-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pm-danger-foot .pm-msg { flex: 1; color: #ef4444; }
.pm-danger-cancel { border: none; background: none; color: var(--text-dim); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.pm-danger-btn { display: inline-flex; align-items: center; gap: 6px; background: #ef4444; border-color: #ef4444; color: #fff; }


/* ===== Caisses (boutique) ===== */
.crate-zone { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.crate-card {
    --cc: #22c55e;
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel-2, #14141a);
    border: 1px solid color-mix(in srgb, var(--cc) 35%, var(--border));
    overflow: hidden;
}
.crate-card.paid { --cc: #facc15; }
.crate-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--cc) 20%, transparent), transparent 62%); }
.crate-card > * { position: relative; }
.crate-art {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #111;
    background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--cc) 40%, transparent);
}
.crate-info h3 { margin: 0; font-size: 18px; }
.crate-info p { margin: 2px 0 10px; font-size: 13px; color: var(--text-dim); }
.crate-rates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.crate-rates li { --rc: #71717a; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; border-left: 3px solid var(--rc); background: color-mix(in srgb, var(--rc) 8%, transparent); }
.crate-rates li.rare { --rc: #38bdf8; }
.crate-rates li.epic { --rc: #a855f7; }
.crate-rates li.legendary { --rc: #facc15; }
.crate-rates li.vip { --rc: #f59e0b; background: color-mix(in srgb, var(--rc) 16%, transparent); }
.crate-rates li span { color: var(--text-dim); }
.crate-rates li b { color: var(--rc); }
.crate-btn {
    grid-column: 1 / -1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border: none; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 800; text-decoration: none;
    color: #1a1200; background: linear-gradient(135deg, #fde047, #f59e0b);
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.crate-card.free .crate-btn { background: linear-gradient(135deg, #86efac, #22c55e); color: #052e16; }
.crate-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.crate-btn[data-poor] { opacity: .6; }
.crate-btn.armed { background: #ef4444 !important; color: #fff !important; }
.crate-btn.wait { background: var(--panel); color: var(--text-dim); cursor: default; border: 1px solid var(--border); }
.crate-btn.alt { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; }
.crate-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

body.crate-open { overflow: hidden; }
.crate-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .86); animation: crateFade .25s ease; }
.crate-stage {
    position: fixed; z-index: 1201; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
    padding: 20px 16px 18px; border-radius: 22px; text-align: center;
    background: var(--panel); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.crate-stage-title { margin: 0 0 14px; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.reel-window { position: relative; height: 176px; overflow: hidden; border-radius: 14px; background: #0b0b10; border: 1px solid var(--border); }
.reel-window::before, .reel-window::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.reel-window::before { left: 0; background: linear-gradient(90deg, #0b0b10, transparent); }
.reel-window::after { right: 0; background: linear-gradient(270deg, #0b0b10, transparent); }
.reel-track { display: flex; gap: 8px; padding: 12px 0; will-change: transform; }
.reel-card {
    --rc: #71717a;
    flex: 0 0 132px; width: 132px; min-width: 0; overflow: hidden; height: 152px; padding: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border-radius: 12px; border-bottom: 4px solid var(--rc);
    background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #14141a), #14141a);
}
.reel-card.rare { --rc: #38bdf8; }
.reel-card.epic { --rc: #a855f7; }
.reel-card.legendary { --rc: #facc15; }
.reel-card.vip { --rc: #f59e0b; }
.reel-card .shop-prev { width: 100%; height: 84px; }
.reel-card span { display: block; width: 100%; text-align: center; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-marker { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #facc15; box-shadow: 0 0 14px 2px rgba(250, 204, 21, .75); pointer-events: none; }
.reel-marker::before, .reel-marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 7px solid transparent; }
.reel-marker::before { top: 0; border-top-color: #facc15; }
.reel-marker::after { bottom: 0; border-bottom-color: #facc15; }
.crate-skip { margin-top: 14px; border: none; background: none; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.crate-skip:hover { color: var(--text); }
.crate-stage.done .reel-window { height: 130px; opacity: .45; transition: opacity .4s ease, height .4s ease; }
.crate-stage.done .reel-card { height: 106px; }
.crate-stage.done .reel-card .shop-prev { height: 52px; }
.crate-result { margin-top: 16px; animation: crateRise .5s cubic-bezier(.2, .9, .3, 1); }
.crate-win { --rc: #71717a; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 34px 16px; border-radius: 18px; border: 1px solid var(--rc); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%), var(--panel-2, #14141a); box-shadow: 0 0 56px color-mix(in srgb, var(--rc) 45%, transparent); }
.crate-win.rare { --rc: #38bdf8; }
.crate-win.epic { --rc: #a855f7; }
.crate-win.legendary { --rc: #facc15; }
.crate-win.vip { --rc: #f59e0b; }
.crate-win-prev .shop-prev { --rc: inherit; width: 150px; height: 120px; margin: 0 auto 4px; background: color-mix(in srgb, var(--rc) 12%, #14141a); }
.crate-win-prev .shop-prev.p-badge .shop-badge { width: 64px; height: 64px; font-size: 34px; }
.crate-win-rar { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }
.crate-win h4 { margin: 0; font-size: 22px; }
.crate-note { margin: 6px 0 0; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.crate-note.new { color: var(--success); }
.crate-note.dup { color: #facc15; }
.crate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.crate-actions .crate-btn { grid-column: auto; }
@keyframes crateFade { from { opacity: 0; } }
@keyframes crateRise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .crate-backdrop, .crate-result { animation: none; } }
@media (max-width: 760px) {
    .crate-zone { grid-template-columns: 1fr; }
    .reel-window { height: 164px; }
    .reel-card { height: 140px; }
}
body.light-mode .crate-card { background: #fff; }
body.light-mode .crate-btn.wait { background: #f3f4f6; }


/* ===== Choix bannière / badge dans « Modifier le profil » + bouton son des caisses ===== */
.cosm-picker { display: grid; gap: 8px; }
.cosm-picker.banners { grid-template-columns: repeat(3, 1fr); }
.cosm-picker.badges { grid-template-columns: repeat(5, 1fr); }
.cosm-option {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 0; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; overflow: hidden;
    background: #14141a; transition: border-color .15s ease, transform .15s ease;
}
.cosm-picker.banners .cosm-option { height: 46px; }
.cosm-picker.badges .cosm-option { height: 48px; }
.cosm-option:hover { transform: translateY(-2px); }
.cosm-option.selected { border-color: var(--accent, #ff4d4d); box-shadow: 0 0 0 2px rgba(255, 77, 77, .25); }
.cosm-option.selected::after { content: "\2713"; position: absolute; top: 2px; right: 4px; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.cosm-banner { width: 100%; height: 100%; display: block; background-size: cover; }
.cosm-empty { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-dim); }
.cosm-empty a { color: var(--accent, #ff4d4d); font-weight: 700; }
.crate-mute { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2, #14141a); color: var(--text); font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.crate-mute:hover { border-color: #facc15; color: #facc15; }
body.light-mode .cosm-option { background: #f3f4f6; }


/* ===== Classement de la semaine (pronostics) ===== */
.wk-board { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--panel-2); border: 1px solid rgba(250, 204, 21, .3); background-image: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .12), transparent 55%); }
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wk-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.wk-head h3 i { color: #facc15; }
.wk-head small { color: var(--text-dim); font-size: 12.5px; }
.wk-head small b { color: var(--text); }
.wk-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wk-prizes li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 12.5px; font-weight: 700; }
.wk-prizes li > i:first-child { color: var(--m); font-size: 16px; }
.wk-prizes .ri-coin-fill { color: var(--gold, #facc15); }
.wk-prizes em { font-style: normal; font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.wk-list li { padding: 8px 10px; }
.wk-list li.is-me { background: rgba(250, 204, 21, .12); outline: 1px solid rgba(250, 204, 21, .4); }
.wk-list .lb-name { font-size: 14px; }
.wk-wins { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.wk-pts { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; color: #facc15; }
.wk-me { margin: 10px 4px 0; font-size: 13.5px; }
.wk-me a { color: var(--accent, #ff4d4d); font-weight: 700; }
.wk-note { margin: 6px 4px 0; font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.wk-last { margin: 10px 4px 0; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--text-dim); }
.wk-last span { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; }
.wk-last span i { color: var(--m); }
.wk-last small { color: var(--text-dim); font-weight: 600; }
@media (max-width: 520px) { .wk-wins { display: none; } }
body.light-mode .wk-prizes li { background: rgba(0, 0, 0, .05); }

/* ===== Page Classement : onglets, podium, liste ===== */
.rk-tabs { display: flex; gap: 6px; padding: 5px; margin-top: 16px; border-radius: 16px; background: var(--home-card, var(--panel)); border: 1px solid var(--home-line, var(--border)); overflow-x: auto; scrollbar-width: none; }
.rk-tabs::-webkit-scrollbar { display: none; }
.rk-tabs button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; border: none; border-radius: 12px; background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.rk-tabs button:hover { color: var(--text); }
.rk-tabs button.active { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; box-shadow: 0 6px 18px rgba(245, 158, 11, .3); }
.rk-view { margin-top: 16px; animation: rkFade .3s ease both; }
.rk-intro { margin: 0; font-size: 13.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.rk-intro i { color: var(--gold, #facc15); }

/* compte à rebours */
.rk-clock { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .16), transparent 60%), var(--home-card, var(--panel)); border: 1px solid rgba(250, 204, 21, .3); }
.rk-clock-text small { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.rk-clock-text b { font-size: 16px; }
.rk-clock-digits { display: flex; gap: 8px; }
.rk-clock-digits div { min-width: 62px; padding: 6px 8px; text-align: center; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--home-line, var(--border)); }
.rk-clock-digits b { display: block; font-family: var(--home-display, inherit); font-size: 28px; line-height: 1; font-style: italic; color: #facc15; font-variant-numeric: tabular-nums; }
.rk-clock-digits small { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* podium */
.rk-podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 10px; margin: 30px 0 14px; }
.rk-slot { --mc: #facc15; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rk-who { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px 12px; max-width: 100%; text-align: center; animation: rkPop .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.rk-slot.first .rk-who { animation-delay: .1s; }
.rk-slot.second .rk-who { animation-delay: .2s; }
.rk-slot.third .rk-who { animation-delay: .3s; }
.rk-crown { font-size: 28px; color: #facc15; filter: drop-shadow(0 4px 10px rgba(250, 204, 21, .6)); animation: rkFloat 2.4s ease-in-out infinite; }
.rk-avatar { position: relative; width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3a3a44, #26262c); border: 3px solid var(--mc, #3a3a44); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mc, #3a3a44) 16%, transparent), 0 12px 30px color-mix(in srgb, var(--mc, #3a3a44) 32%, transparent); overflow: hidden; }
.rk-slot.first .rk-avatar { width: 92px; height: 92px; font-size: 40px; }
.rk-avatar.ghost { background: transparent; border-style: dashed; box-shadow: none; color: var(--text-dim); font-size: 24px; }
.rk-avatar.sm { width: 38px; height: 38px; font-size: 17px; border-width: 2px; box-shadow: none; --mc: var(--home-line, #333); }
.rk-name { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-slot.empty .rk-name { color: var(--text-dim); font-weight: 600; }
.rk-pts { font-family: var(--home-display, inherit); font-size: 28px; line-height: 1; font-style: italic; font-weight: 800; color: var(--mc); }
.rk-slot.first .rk-pts { font-size: 36px; }
.rk-sub { font-size: 12px; color: var(--text-dim); }
.rk-step { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 42%, #15151b), #15151b 92%); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent); border-bottom: 0; transform-origin: bottom; animation: rkGrow .6s cubic-bezier(.2, .9, .3, 1) both; }
.rk-slot.first .rk-step { height: 150px; }
.rk-slot.second .rk-step { height: 112px; animation-delay: .08s; }
.rk-slot.third .rk-step { height: 88px; animation-delay: .16s; }
.rk-step > b { font-family: var(--home-display, inherit); font-size: 46px; line-height: 1; font-style: italic; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.rk-prize { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rk-prize i { color: #facc15; }
.rk-prize em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.rk-warn { max-width: 90%; padding: 0 6px; font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--text-dim); }
.rk-slot.me .rk-avatar { outline: 3px solid rgba(250, 204, 21, .55); outline-offset: 3px; }
.rk-slot.empty .rk-step { opacity: .55; }

/* liste (4e place et suivantes) */
.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-row { position: relative; display: grid; grid-template-columns: 34px 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); overflow: hidden; }
.rk-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: linear-gradient(90deg, rgba(250, 204, 21, .16), rgba(250, 204, 21, 0)); pointer-events: none; }
.rk-row > * { position: relative; }
.rk-row.me { border-color: rgba(250, 204, 21, .65); box-shadow: 0 0 0 1px rgba(250, 204, 21, .25); }
.rk-rank { font-family: var(--home-display, inherit); font-size: 22px; font-style: italic; font-weight: 800; color: var(--text-dim); text-align: center; }
.rk-score { font-family: var(--home-display, inherit); font-size: 20px; font-style: italic; color: #facc15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-row .rk-name { justify-content: flex-start; }

/* ma position (collée en bas de l'écran) */
.rk-me { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(22, 22, 22, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(250, 204, 21, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 13.5px; text-align: center; }
.rk-me a { color: var(--accent, #ff4d4d); font-weight: 800; }
.rk-me .ok { color: var(--success, #22c55e); }
.rk-me-rank { font-family: var(--home-display, inherit); font-size: 28px; line-height: 1; font-style: italic; font-weight: 800; color: #facc15; }

/* règles, semaine dernière, champions */
.rk-rules { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); font-size: 13px; color: var(--text-dim); }
.rk-rules summary { cursor: pointer; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; list-style: none; }
.rk-rules summary::-webkit-details-marker { display: none; }
.rk-rules p { margin: 10px 0 0; line-height: 1.6; }
.rk-rules b { color: var(--text); }
.rk-card { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); }
.rk-card h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.rk-lastrow { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 700; }
.rk-lastrow span { display: inline-flex; align-items: center; gap: 5px; }
.rk-lastrow i { color: var(--mc); font-size: 17px; }
.rk-lastrow small { color: var(--text-dim); font-weight: 600; }
.rk-empty { margin: 30px 0; text-align: center; color: var(--text-dim); }
.rk-empty.big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; border-radius: 20px; background: var(--home-card, var(--panel-2)); border: 1px dashed var(--home-line, var(--border)); }
.rk-empty.big i { font-size: 54px; color: #facc15; }
.rk-empty.big b { font-size: 18px; color: var(--text); }
.rk-empty.big p { margin: 0; max-width: 380px; line-height: 1.55; }
.rk-cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 12px; background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; font-weight: 800; text-decoration: none; }
.rk-hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rk-champ { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; border-radius: 18px; text-align: center; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); }
.rk-champ.latest { border-color: rgba(250, 204, 21, .55); background: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, .16), transparent 70%), var(--home-card, var(--panel-2)); }
.rk-champ small { color: var(--text-dim); font-size: 12px; }
.rk-champ .rk-pts { font-size: 26px; }
.rk-trophy { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #15151b; color: #facc15; font-size: 15px; border: 2px solid #facc15; }
.rk-avatar:has(.rk-trophy) { overflow: visible; }

@keyframes rkFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes rkGrow { from { transform: scaleY(0); opacity: 0; } }
@keyframes rkPop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes rkFloat { 50% { transform: translateY(-5px); } }
body.light-mode .rk-me { background: rgba(255, 255, 255, .94); }
body.light-mode .rk-clock-digits div { background: #f3f4f6; }
body.light-mode .rk-step { background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 35%, #fff), #f3f4f6 92%); }
body.light-mode .rk-step > b { color: #1a1a1a; text-shadow: none; }
body.light-mode .rk-trophy { background: #fff; }

@media (max-width: 900px) {
    .rk-me { bottom: 78px; }
}
@media (max-width: 560px) {
    .rk-tabs button { padding: 10px 6px; font-size: 12.5px; gap: 4px; }
    .rk-tabs button i { display: none; }
    .rk-podium { gap: 6px; }
    .rk-avatar { width: 54px; height: 54px; font-size: 24px; }
    .rk-slot.first .rk-avatar { width: 72px; height: 72px; font-size: 32px; }
    .rk-pts { font-size: 22px; }
    .rk-slot.first .rk-pts { font-size: 28px; }
    .rk-name { font-size: 12.5px; }
    .rk-slot.first .rk-step { height: 120px; }
    .rk-slot.second .rk-step { height: 90px; }
    .rk-slot.third .rk-step { height: 70px; }
    .rk-step > b { font-size: 36px; }
    .rk-prize { font-size: 11.5px; padding: 2px 8px; }
    .rk-prize em { display: none; }
    .rk-row { grid-template-columns: 28px 34px minmax(0, 1fr) auto; gap: 10px; }
    .rk-row .rk-sub { display: none; }
    .rk-clock { justify-content: center; text-align: center; }
    .rk-clock-digits div { min-width: 56px; }
    .rk-me { flex-direction: column; gap: 4px; }
}


/* ============================================
   BOUTIQUE : refonte (vestiaire, caisses, catalogue)
============================================ */
.bt-page { display: block; }
.bt-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-top: 16px; }
.bt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 2px 12px; }
.bt-head h2 { margin: 0; font-family: var(--home-display, inherit); font-size: 26px; font-style: italic; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.bt-head h2 i { color: #facc15; font-size: 24px; }
.bt-head small { color: var(--text-dim); font-size: 13px; }

/* Golds */
.bt-wallet { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .2), transparent 62%), var(--home-card, var(--panel-2)); border: 1px solid rgba(250, 204, 21, .32); }
.bt-wallet-main { display: flex; align-items: center; gap: 14px; }
.bt-coin { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 8px 22px rgba(250, 204, 21, .4); }
.bt-wallet-main small { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.bt-balance { font-family: var(--home-display, inherit); font-size: 44px; line-height: 1; font-style: italic; color: #facc15; font-variant-numeric: tabular-nums; }
.bt-wallet-title { font-size: 17px; }
.bt-goal { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.bt-goal b { color: var(--text); }
.bt-goal .ok { color: var(--success, #22c55e); font-weight: 700; }
.bt-goal-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bt-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fde047); }
.bt-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s ease; }
.bt-link:hover { background: rgba(255, 255, 255, .12); }
.bt-link.primary { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; }

/* Mon profil (aperçu / essayage) */
.bt-me { position: relative; border-radius: 20px; overflow: hidden; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); transition: border-color .2s ease; }
.bt-me.is-trying { border-color: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, .35); }
.bt-me-banner { height: 86px; background-size: cover !important; background-position: center !important; }
.bt-me-row { display: flex; align-items: center; gap: 14px; padding: 0 16px 14px; margin-top: -30px; }
.bt-me-avatar { width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3a3a44, #26262c); border: 4px solid var(--home-card, #161616); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.bt-me-text { flex: 1; min-width: 0; padding-top: 30px; }
.bt-me-name { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.bt-me-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-dim); }
.bt-reset { align-self: flex-end; margin-bottom: 2px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bt-reset:hover { border-color: #ef4444; color: #ef4444; }

/* Caisses */
.cr-zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.cr-card { --cc: #22c55e; position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; border-radius: 22px; background: var(--home-card, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--cc) 40%, var(--home-line, var(--border))); overflow: hidden; }
.cr-card.paid { --cc: #facc15; }
.cr-card.event { --cc: #ef4444; }
.cr-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--cc) 22%, transparent), transparent 58%); }
.cr-card > * { position: relative; }
.cr-art { display: flex; align-items: flex-start; justify-content: center; }
.cr-chest { width: 84px; height: 84px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #111; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); box-shadow: 0 12px 30px color-mix(in srgb, var(--cc) 42%, transparent); transform: rotate(-4deg); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.cr-card:hover .cr-chest { transform: rotate(3deg) scale(1.06); }
.cr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-title h3 { margin: 0; font-size: 19px; }
.cr-tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); }
.cr-body p { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }
.cr-bar { display: flex; gap: 2px; height: 10px; margin: 14px 0 10px; border-radius: 999px; overflow: hidden; }
.cr-bar span { min-width: 5px; background: var(--rc, #71717a); }
.cr-bar .rare, .cr-legend .rare { --rc: #38bdf8; }
.cr-bar .epic, .cr-legend .epic { --rc: #a855f7; }
.cr-bar .legendary, .cr-legend .legendary { --rc: #facc15; }
.cr-bar .vip, .cr-legend .vip { --rc: #f97316; }
.cr-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; }
.cr-legend li { --rc: #71717a; display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.cr-legend li i { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--rc); }
.cr-legend li span { flex: 1; min-width: 0; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-legend li b { color: var(--rc); font-variant-numeric: tabular-nums; }
.cr-legend li.vip { grid-column: 1 / -1; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--rc) 14%, transparent); }
.cr-card .crate-btn { grid-column: 1 / -1; }
.cr-card.free .crate-btn { background: linear-gradient(135deg, #86efac, #22c55e); color: #052e16; }
.cr-card.free .crate-btn.wait { background: var(--panel); color: var(--text-dim); }
.cr-card.event .crate-btn { background: linear-gradient(135deg, #fca5a5, #ef4444); color: #fff; }

/* VIP */
.bt-vip { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 18px 20px; border-radius: 22px; border: 1px solid rgba(250, 204, 21, .55); background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .24), transparent 62%), var(--home-card, var(--panel-2)); }
.bt-vip-crown { width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 10px 30px rgba(250, 204, 21, .45); }
.bt-vip-text { flex: 1; min-width: 0; }
.bt-vip-text small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #facc15; }
.bt-vip-text h3 { margin: 2px 0 4px; font-family: var(--home-display, inherit); font-size: 30px; font-style: italic; line-height: 1; }
.bt-vip-text p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.bt-vip-act { flex-shrink: 0; min-width: 130px; }
.bt-vip-act .bt-btn { padding: 0 18px; }

/* Catalogue : filtres */
.bt-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bt-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bt-tabs::-webkit-scrollbar { display: none; }
.bt-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--home-line, var(--border)); border-radius: 999px; background: var(--home-card, var(--panel)); color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.bt-tab em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.bt-tab:hover { color: var(--text); }
.bt-tab.active { background: linear-gradient(135deg, #fde047, #f59e0b); border-color: transparent; color: #1a1200; }
.bt-tab.active em { background: rgba(0, 0, 0, .15); }
.bt-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bt-chip { --rc: #a1a1aa; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--home-line, var(--border)); border-radius: 999px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bt-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.bt-chip.common { --rc: #71717a; }
.bt-chip.rare { --rc: #38bdf8; }
.bt-chip.epic { --rc: #a855f7; }
.bt-chip.legendary { --rc: #facc15; }
.bt-chip.all i { background: conic-gradient(#71717a, #38bdf8, #a855f7, #facc15, #71717a); }
.bt-chip.active { color: var(--text); border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.bt-sort { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); }
.bt-sort select { border: 1px solid var(--home-line, var(--border)); border-radius: 10px; background: var(--home-card, var(--panel)); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 10px; }

/* Catalogue : cartes */
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.bt-grid .lives-empty { grid-column: 1 / -1; }
.bt-card { --rc: #71717a; position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--home-card, #161616); border: 1px solid color-mix(in srgb, var(--rc) 26%, var(--home-line, #262626)); overflow: hidden; animation: btIn .4s ease both; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bt-card.rare { --rc: #38bdf8; }
.bt-card.epic { --rc: #a855f7; }
.bt-card.legendary { --rc: #facc15; }
.bt-card:hover { transform: translateY(-4px); border-color: var(--rc); box-shadow: 0 16px 36px color-mix(in srgb, var(--rc) 24%, transparent); }
.bt-card.is-owned { border-color: rgba(34, 197, 94, .35); }
.bt-card.is-eq { border-color: #22c55e; box-shadow: 0 0 0 1px rgba(34, 197, 94, .4); }
.bt-art { position: relative; height: 156px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 34%, #17171d), #111116 78%); }
.bt-card.legendary .bt-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); transform: translateX(-120%); animation: btShine 4.5s ease-in-out infinite; pointer-events: none; }
.bt-art .shop-prev { width: 100%; height: 100%; background: none; border-radius: 0; box-shadow: none; }
.bt-art .shop-prev.p-avatar { width: 112px; height: 112px; border-radius: 24px; font-size: 54px; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); border: 2px solid color-mix(in srgb, var(--rc) 60%, transparent); transition: transform .3s ease; }
.bt-card:hover .bt-art .shop-prev.p-avatar { transform: scale(1.06); }
.bt-art .shop-prev.p-banner { background-size: cover !important; background-position: center !important; transition: transform .4s ease; }
.bt-card:hover .bt-art .shop-prev.p-banner { transform: scale(1.06); }
.bt-art .shop-prev.p-badge .shop-badge { width: 76px; height: 76px; font-size: 40px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.bt-rar-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: var(--rc); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bt-new { position: absolute; bottom: 8px; left: 10px; padding: 2px 8px; border-radius: 999px; background: #22c55e; color: #04230f; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bt-try { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.bt-try:hover { background: #f59e0b; color: #1a1200; transform: scale(1.1); }
.bt-try.on { background: #f59e0b; color: #1a1200; }
.bt-info { padding: 12px 14px 4px; }
.bt-info b { display: block; font-size: 14.5px; line-height: 1.25; }
.bt-info small { color: var(--text-dim); font-size: 12px; }
.bt-act { margin-top: auto; padding: 8px 12px 12px; }
.bt-btn { width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.bt-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.bt-btn.buy { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; }
.bt-btn.buy.poor { background: transparent; border-color: var(--home-line, var(--border)); color: var(--text-dim); }
.bt-btn.equip { background: rgba(255, 255, 255, .08); border-color: var(--home-line, var(--border)); color: var(--text); }
.bt-btn.on { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .5); color: #4ade80; }
.bt-btn.armed { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; }

@keyframes btIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes btShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

body.light-mode .bt-art { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 30%, #fff), #eef0f4 78%); }
body.light-mode .bt-card { background: #fff; }
body.light-mode .bt-link, body.light-mode .bt-btn.equip { background: #f3f4f6; }

@media (max-width: 560px) {
    .bt-head h2 { font-size: 22px; }
    .bt-balance { font-size: 38px; }
    .cr-card { grid-template-columns: 68px 1fr; gap: 12px; padding: 14px; }
    .cr-chest { width: 68px; height: 68px; font-size: 36px; border-radius: 18px; }
    .bt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bt-art { height: 132px; }
    .bt-art .shop-prev.p-avatar { width: 92px; height: 92px; font-size: 44px; }
    .bt-vip { flex-wrap: wrap; }
    .bt-vip-act { width: 100%; }
    .bt-info b { font-size: 13.5px; }
}


/* ============================================
   PROFIL : refonte (sans bandeau, Golds repliables, missions, collection)
============================================ */
.profile-page { margin-top: 16px; }
.profile-page .pf-card, .profile-page .pf-box { background: var(--home-card, var(--panel-2)); border-color: var(--home-line, var(--border)); border-radius: 22px; }
.pf-banner { height: 150px; }
.pf-box-head b { display: inline-flex; align-items: center; gap: 7px; }
.pf-box-head b i { color: var(--accent, #ff4d4d); font-size: 17px; }
.pf-count { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 800; color: var(--text); }

/* chiffres clés dans la carte */
.pf-statstrip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--home-line, var(--border)); }
.pf-stat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 14px 6px 12px; text-align: center; }
.pf-stat + .pf-stat { border-left: 1px solid var(--home-line, var(--border)); }
.pf-stat i { font-size: 17px; color: var(--accent, #ff4d4d); }
.pf-stat b { font-family: var(--home-display, inherit); font-size: 30px; line-height: 1.1; font-style: italic; font-weight: 800; }
.pf-stat b small { font-size: 16px; color: var(--text-dim); font-weight: 700; }
.pf-stat span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.pf-stat em { font-style: normal; font-size: 11px; color: var(--text-dim); }

/* Mes Golds : menu qui se déplie */
.pf-gold { margin-top: 12px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .15), transparent 60%), var(--home-card, var(--panel-2)); border: 1px solid rgba(250, 204, 21, .3); }
.pf-gold summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.pf-gold summary::-webkit-details-marker { display: none; }
.pf-gold summary:hover { background: rgba(250, 204, 21, .05); }
.pf-gold-coin { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 6px 18px rgba(250, 204, 21, .35); }
.pf-gold-main small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.pf-gold-main b { font-family: var(--home-display, inherit); font-size: 34px; line-height: 1; font-style: italic; color: #facc15; font-variant-numeric: tabular-nums; }
.pf-gold-streak { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); }
.pf-gold-streak > i { color: #f97316; font-size: 17px; }
.pf-gold-streak > b { color: var(--text); }
.pf-gold-streak .gs-days { display: inline-flex; gap: 4px; background: none; border: 0; padding: 0; }
.pf-gold-streak .gs-days i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pf-gold-streak .gs-days i.on { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, .7); }
.pf-gold-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text); font-size: 12.5px; font-weight: 800; }
.pf-gold-toggle i { font-size: 20px; transition: transform .25s ease; }
.pf-gold .when-open { display: none; }
.pf-gold[open] .when-open { display: inline; }
.pf-gold[open] .when-closed { display: none; }
.pf-gold[open] .pf-gold-toggle i { transform: rotate(180deg); }
.pf-gold-body { padding: 2px 18px 18px; border-top: 1px solid rgba(250, 204, 21, .18); animation: pfOpen .25s ease both; }
.pf-gold-body .gold-caption { margin: 12px 0 0; }
.pf-gold-shop { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: linear-gradient(135deg, #fde047, #f59e0b); color: #1a1200; font-size: 14px; font-weight: 800; text-decoration: none; }
@keyframes pfOpen { from { opacity: 0; transform: translateY(-6px); } }

/* missions : profil complété + aujourd'hui */
.profile-page .pf-grid { margin-top: 12px; }
.pf-quest-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pf-quest-top p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.pf-quest-top p b { color: var(--text); }
.pf-ring { --p: 0; position: relative; width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--accent, #ff4d4d) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.pf-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--home-card, #161616); }
.pf-ring b { position: relative; font-family: var(--home-display, inherit); font-size: 26px; font-style: italic; }
.pf-ring b small { font-size: 13px; color: var(--text-dim); }
.profile-page .pf-steps { margin: 0; gap: 6px; }
.profile-page .pf-steps li { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 700; }
.profile-page .pf-steps li span { flex: 1; }
.profile-page .pf-steps li em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold, #facc15); }
.profile-page .pf-steps li.done em { color: var(--success, #22c55e); }
.pf-quest-btn { width: 100%; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; border: none; border-radius: 12px; background: var(--accent, #ff4d4d); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.pf-quest-btn:hover { filter: brightness(1.1); }
.pf-quests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-quests li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.pf-quests li > div { flex: 1; min-width: 0; }
.pf-quests li b { display: block; font-size: 13.5px; }
.pf-quests li small { display: block; margin: 1px 0 5px; font-size: 12px; color: var(--text-dim); }
.pf-quests li .pf-bar { margin-top: 4px; }
.pf-q-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--accent, #ff4d4d); background: var(--accent-soft, rgba(255, 77, 77, .14)); }
.pf-quests li em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--gold, #facc15); white-space: nowrap; }
.pf-quests li.done .pf-q-ico { color: var(--success, #22c55e); background: rgba(34, 197, 94, .14); }
.pf-quests li.done em { color: var(--success, #22c55e); font-size: 18px; }

/* collection de badges */
.profile-page .pf-collection { margin-top: 12px; }
.pf-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pf-badge-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid var(--home-line, var(--border)); border-radius: 16px; background: rgba(255, 255, 255, .035); color: var(--text); font: inherit; text-align: center; cursor: default; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.pf-badge-item.owned { cursor: pointer; background: rgba(255, 255, 255, .06); }
.pf-badge-item.owned:hover { transform: translateY(-3px); border-color: var(--accent, #ff4d4d); }
.pf-badge-item.on { border-color: #22c55e; background: rgba(34, 197, 94, .1); box-shadow: 0 0 0 1px rgba(34, 197, 94, .35); }
.pf-badge-item:not(.owned) { opacity: .55; }
.pf-badge-item:not(.owned) .pf-badge-ico { filter: grayscale(1); }
.pf-badge-ico .shop-badge { width: 52px; height: 52px; font-size: 28px; }
.pf-badge-name { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.pf-badge-item small { font-size: 11.5px; color: var(--text-dim); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.pf-badge-flag { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 999px; background: #22c55e; color: #04230f; font-size: 9.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pf-more { margin-top: 14px; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: var(--accent, #ff4d4d); text-decoration: none; }

@media (max-width: 700px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-statstrip { grid-template-columns: 1fr 1fr; }
    .pf-stat:nth-child(3) { border-left: 0; }
    .pf-stat:nth-child(n + 3) { border-top: 1px solid var(--home-line, var(--border)); }
    .pf-banner { height: 120px; }
    .pf-gold summary { gap: 10px; padding: 12px 14px; }
    .pf-gold-streak .gs-days { display: none; }
    .pf-gold-toggle .when-closed, .pf-gold-toggle .when-open { display: none !important; }
    .pf-gold-toggle { padding: 7px 8px; }
    .pf-badges-grid { grid-template-columns: repeat(3, 1fr); }
}
body.light-mode .pf-stat, body.light-mode .pf-quests li, body.light-mode .profile-page .pf-steps li { background: transparent; }
body.light-mode .pf-ring::before { background: #fff; }

/* Profil : la mise en page s'adapte à la largeur de la colonne (et pas seulement de l'écran) */
.profile-page { container-type: inline-size; container-name: pf; }
.profile-page .pf-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
@container pf (max-width: 560px) {
    .pf-statstrip { grid-template-columns: 1fr 1fr; }
    .pf-stat:nth-child(3) { border-left: 0; }
    .pf-stat:nth-child(n + 3) { border-top: 1px solid var(--home-line, var(--border)); }
    .pf-gold-streak .gs-days { display: none; }
    .pf-gold-toggle .when-closed, .pf-gold-toggle .when-open { display: none !important; }
    .pf-gold-toggle { padding: 7px 8px; }
    .pf-banner { height: 120px; }
}


/* ============================================
   NIVEAUX : pastille de niveau + passe du profil
============================================ */
.lvl-chip { --lc: #71717a; display: inline-flex; align-items: center; flex-shrink: 0; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; color: var(--lc); background: color-mix(in srgb, var(--lc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); vertical-align: middle; }
.lvl-chip.t2 { --lc: #22c55e; }
.lvl-chip.t3 { --lc: #38bdf8; }
.lvl-chip.t4 { --lc: #a855f7; }
.lvl-chip.t5 { --lc: #facc15; background: linear-gradient(135deg, rgba(250, 204, 21, .3), rgba(245, 158, 11, .16)); }
.lb-name .lvl-chip, .rk-name .lvl-chip, .cs-meta .lvl-chip { margin-left: 2px; }

.pf-pass { margin-top: 12px; background: radial-gradient(circle at 0% 0%, rgba(168, 85, 247, .16), transparent 55%), var(--home-card, var(--panel-2)); }
.pf-pass-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-lvl-badge { position: relative; width: 78px; height: 78px; flex-shrink: 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #c084fc, #7c3aed); color: #fff; box-shadow: 0 10px 28px rgba(124, 58, 237, .45); }
.pf-lvl-badge small { font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .85; }
.pf-lvl-badge b { font-family: var(--home-display, inherit); font-size: 40px; line-height: .95; font-style: italic; font-weight: 800; }
.pf-lvl-badge i { position: absolute; top: -12px; font-size: 22px; color: #facc15; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.pf-pass-main { flex: 1; min-width: 200px; }
.pf-pass-main small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.pf-pass-main small b { color: #c084fc; }
.pf-xpbar { height: 12px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pf-xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c084fc, #f0abfc); box-shadow: 0 0 12px rgba(192, 132, 252, .6); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.pf-xpline { font-size: 13px; color: var(--text-dim); }
.pf-xpline b { color: var(--text); }
.pf-pass-next { flex-shrink: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(192, 132, 252, .5); }
.pf-pass-next small { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c084fc; }
.pf-pass-next > div { display: flex; align-items: center; gap: 10px; }
.pf-pass-next b { display: block; font-size: 14px; }
.pf-pass-next span:last-child { font-size: 12.5px; color: var(--text-dim); }

/* le passe : les 30 niveaux défilent à l'horizontale */
.pf-trackwrap { position: relative; margin: 18px -4px 0; }
.pf-track { display: flex; align-items: stretch; gap: 0; padding: 14px 8px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.pf-track::-webkit-scrollbar { display: none; }
.pf-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--home-line, var(--border)); border-radius: 50%; background: rgba(20, 20, 24, .92); color: var(--text); font-size: 20px; cursor: pointer; }
.pf-arrow:hover { border-color: #c084fc; color: #c084fc; }
.pf-arrow[data-dir="-1"] { left: -2px; }
.pf-arrow[data-dir="1"] { right: -2px; }
.pf-tile { --tc: #52525b; position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 8px 12px; margin-right: 10px; border-radius: 18px; text-align: center; scroll-snap-align: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--home-line, var(--border)); }
.pf-tile::after { content: ""; position: absolute; top: 28px; right: -11px; width: 10px; height: 3px; border-radius: 2px; background: var(--home-line, #333); }
.pf-tile:last-child::after { display: none; }
.pf-tile.big { flex-basis: 132px; border-color: rgba(250, 204, 21, .5); background: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, .16), transparent 70%), rgba(255, 255, 255, .05); }
.pf-tile.done { --tc: #22c55e; border-color: rgba(34, 197, 94, .35); }
.pf-tile.done::after { background: #22c55e; }
.pf-tile.now { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192, 132, 252, .45), 0 12px 30px rgba(124, 58, 237, .35); background: radial-gradient(circle at 50% 0%, rgba(192, 132, 252, .22), transparent 70%), rgba(255, 255, 255, .06); }
.pf-tile-lvl { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 30px; padding: 1px 9px; border-radius: 999px; background: var(--tc); color: #fff; font-size: 13px; font-weight: 800; }
.pf-tile.now .pf-tile-lvl { background: #7c3aed; }
.pf-tile.big:not(.done) .pf-tile-lvl { background: #f59e0b; color: #1a1200; }
.pf-r-art { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255, 255, 255, .06); font-size: 26px; }
.pf-tile.big .pf-r-art { width: 72px; height: 72px; border-radius: 18px; font-size: 34px; }
.pf-r-art.coin { color: #facc15; background: rgba(250, 204, 21, .12); }
.pf-r-art.flag { color: #c084fc; background: rgba(192, 132, 252, .14); }
.pf-r-art.mystery { color: #facc15; background: repeating-linear-gradient(135deg, rgba(250, 204, 21, .14), rgba(250, 204, 21, .14) 6px, rgba(250, 204, 21, .06) 6px, rgba(250, 204, 21, .06) 12px); border: 1px dashed rgba(250, 204, 21, .6); }
.pf-r-art.mystery.sm { width: 40px; height: 40px; font-size: 20px; }
.pf-r-art.banner { background-size: cover !important; background-position: center !important; }
.pf-r-art.badge .shop-badge { width: 40px; height: 40px; font-size: 22px; }
.pf-tile.big .pf-r-art.badge .shop-badge { width: 52px; height: 52px; font-size: 28px; }
.pf-tile-name { font-size: 12px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.pf-tile-gold { font-size: 11.5px; font-weight: 800; color: var(--gold, #facc15); }
.pf-tile-state { margin-top: auto; font-size: 15px; color: var(--text-dim); }
.pf-tile.done .pf-tile-state { color: #22c55e; }
.pf-tile:not(.done) { opacity: .88; }
.pf-tile:not(.done):not(.now) .pf-r-art { filter: saturate(.55); }

.pf-xp-how { margin-top: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--home-line, var(--border)); overflow: hidden; }
.pf-xp-how summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 800; }
.pf-xp-how summary::-webkit-details-marker { display: none; }
.pf-xp-how .pf-chev { margin-left: auto; transition: transform .2s ease; }
.pf-xp-how[open] .pf-chev { transform: rotate(180deg); }
.pf-sources { list-style: none; margin: 0; padding: 0 14px; }
.pf-sources li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--home-line, var(--border)); }
.pf-src-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #c084fc; background: rgba(192, 132, 252, .14); }
.pf-sources li div { flex: 1; min-width: 0; }
.pf-sources li b { display: block; font-size: 13px; }
.pf-sources li small { font-size: 11.5px; color: var(--text-dim); }
.pf-src-xp { font-size: 12px; font-weight: 800; color: #c084fc; white-space: nowrap; }
.pf-sources li em { min-width: 56px; text-align: right; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--text-dim); }
.pf-xp-note { margin: 0; padding: 10px 14px 14px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }

@container pf (max-width: 560px) {
    .pf-pass-next { width: 100%; }
    .pf-lvl-badge { width: 66px; height: 66px; }
    .pf-lvl-badge b { font-size: 34px; }
    .pf-src-xp { display: none; }
}
body.light-mode .pf-arrow { background: rgba(255, 255, 255, .95); }
body.light-mode .pf-tile { background: #f6f7f9; }


/* ============================================
   PASSE DE NIVEAU : nouvelle direction artistique
============================================ */
.profile-page .pf-pass {
    padding: 20px 18px 16px;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(168, 85, 247, .30), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(236, 72, 153, .18), transparent 55%),
        linear-gradient(180deg, #17121f, #100d17);
    border-color: rgba(168, 85, 247, .38);
    overflow: hidden;
}
.ps-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ps-emblem { position: relative; width: 92px; height: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(145deg, #f0abfc, #a855f7 45%, #ec4899); filter: drop-shadow(0 12px 22px rgba(168, 85, 247, .55)); }
.ps-emblem > span { width: calc(100% - 8px); height: calc(100% - 8px); display: flex; flex-direction: column; align-items: center; justify-content: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #2a1745, #140c24); }
.ps-emblem small { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #f0abfc; }
.ps-emblem small i { font-size: 18px; color: #facc15; }
.ps-emblem b { font-family: var(--home-display, inherit); font-size: 46px; line-height: .95; font-style: italic; font-weight: 800; color: #fff; text-shadow: 0 0 18px rgba(240, 171, 252, .7); }
.ps-info { flex: 1; min-width: 210px; }
.ps-tier { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f0abfc; background: rgba(168, 85, 247, .2); border: 1px solid rgba(240, 171, 252, .35); }
.ps-info h3 { margin: 6px 0 10px; font-family: var(--home-display, inherit); font-size: 30px; line-height: 1; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.ps-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c084fc 60%, #f9a8d4); box-shadow: 0 0 14px rgba(192, 132, 252, .8); transition: width .9s cubic-bezier(.2, .9, .3, 1); position: relative; overflow: hidden; }
.ps-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: psShine 3s ease-in-out infinite; }
.ps-barline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 12.5px; color: var(--text-dim); }
.ps-barline b { color: var(--text); }
.ps-next { flex-shrink: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(240, 171, 252, .5); }
.ps-next small { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f0abfc; }
.ps-next > div { display: flex; align-items: center; gap: 10px; }
.ps-next b { display: block; font-size: 14px; }
.ps-next .ps-art.avatar { width: 46px; height: 46px; border-radius: 14px; }
.ps-next > div > span:last-child { font-size: 12.5px; color: var(--text-dim); }

/* piste : un rail continu avec des nœuds, les récompenses en dessous */
.ps-trackwrap { position: relative; margin: 18px -6px 0; }
.ps-track { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 30px 6px 10px; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-trackwrap::before, .ps-trackwrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 2; pointer-events: none; }
.ps-trackwrap::before { left: 0; background: linear-gradient(90deg, #130e1c, transparent); }
.ps-trackwrap::after { right: 0; background: linear-gradient(270deg, #130e1c, transparent); }
.ps-trackwrap .pf-arrow { z-index: 3; }
.ps-tile { --rc: #52525b; position: relative; flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; padding-top: 0; scroll-snap-align: center; }
.ps-tile.big { flex-basis: 156px; }
.ps-tile::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.ps-tile.done::before { background: linear-gradient(90deg, #a855f7, #ec4899); box-shadow: 0 0 8px rgba(192, 132, 252, .6); }
.ps-tile.now::before { background: linear-gradient(90deg, #ec4899 50%, rgba(255, 255, 255, .12) 50%); }
.ps-tile:first-child::before { left: 50%; }
.ps-tile:last-child::before { right: 50%; }
.ps-flag { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 6px; background: #f0abfc; color: #2a1040; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ps-flag::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #f0abfc; border-bottom: 0; }
.ps-node { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--home-display, inherit); font-size: 18px; font-style: italic; font-weight: 800; color: #cbd5e1; background: #231a33; border: 3px solid #3b2f52; }
.ps-tile.done .ps-node { background: linear-gradient(135deg, #a855f7, #ec4899); border-color: #f0abfc; color: #fff; font-size: 17px; }
.ps-tile.now .ps-node { width: 42px; height: 42px; margin: -4px 0; background: #fff; color: #5b21b6; border-color: #c084fc; font-size: 22px; box-shadow: 0 0 0 5px rgba(192, 132, 252, .35), 0 0 22px rgba(192, 132, 252, .8); animation: psPulse 2s ease-in-out infinite; }
.ps-tile.big .ps-node { border-color: #f59e0b; color: #fde047; }
.ps-tile.big.done .ps-node { border-color: #fde047; color: #fff; }
.ps-card { width: calc(100% - 12px); margin-top: 12px; padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); transition: transform .2s ease; }
.ps-tile.big .ps-card { padding: 14px 8px 14px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%), rgba(255, 255, 255, .05); border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 10px 28px color-mix(in srgb, var(--rc) 18%, transparent); }
.ps-tile:hover .ps-card { transform: translateY(-3px); }
.ps-tile.now .ps-card { border-color: #c084fc; box-shadow: 0 0 0 1px rgba(192, 132, 252, .5), 0 12px 30px rgba(124, 58, 237, .35); }
.ps-tile.r-rare { --rc: #38bdf8; }
.ps-tile.r-epic { --rc: #a855f7; }
.ps-tile.r-legendary { --rc: #facc15; }
.ps-tile.r-common { --rc: #94a3b8; }
.ps-tile.r-legendary.big .ps-card { animation: psGlow 3.2s ease-in-out infinite; }
.ps-prize { position: relative; display: flex; align-items: center; justify-content: center; }
.ps-art { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255, 255, 255, .06); font-size: 26px; }
.ps-art.avatar { border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent); box-shadow: 0 8px 20px color-mix(in srgb, var(--rc) 28%, transparent); }
.ps-tile.big .ps-art { width: 96px; height: 96px; border-radius: 22px; font-size: 40px; }
.ps-art.icon.coin { color: #facc15; background: rgba(250, 204, 21, .12); }
.ps-art.icon { color: #c084fc; background: rgba(192, 132, 252, .14); }
.ps-art.icon.mystery { color: #facc15; background: repeating-linear-gradient(135deg, rgba(250, 204, 21, .14), rgba(250, 204, 21, .14) 6px, rgba(250, 204, 21, .06) 6px, rgba(250, 204, 21, .06) 12px); border: 1px dashed rgba(250, 204, 21, .6); }
.ps-art.icon.sm { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.ps-art.banner { background-size: cover !important; background-position: center !important; }
.ps-tile.big .ps-art.banner { width: 124px; height: 62px; }
.ps-art.badge .shop-badge { width: 44px; height: 44px; font-size: 24px; }
.ps-tile.big .ps-art.badge .shop-badge { width: 64px; height: 64px; font-size: 34px; }
.ps-lock { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1b1326; border: 2px solid #3b2f52; color: #cbd5e1; font-size: 13px; }
.ps-tile.locked:not(.big) .ps-art { filter: saturate(.5) brightness(.85); }
.ps-tile.locked.big .ps-art { filter: saturate(.7) brightness(.78); }
.ps-name { font-size: 12px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.ps-tile.big .ps-name { font-size: 13.5px; }
.ps-gold { font-size: 11.5px; font-weight: 800; color: var(--gold, #facc15); }
.ps-prev { padding: 1px 8px; border-radius: 999px; border: 1px dashed rgba(240, 171, 252, .6); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f0abfc; }
.ps-previewnote { margin: 4px 0 0; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

@keyframes psShine { 0%, 40% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }
@keyframes psPulse { 50% { box-shadow: 0 0 0 8px rgba(192, 132, 252, .22), 0 0 28px rgba(192, 132, 252, .9); } }
@keyframes psGlow { 50% { box-shadow: 0 10px 36px rgba(250, 204, 21, .38); } }

@container pf (max-width: 560px) {
    .ps-hero { gap: 14px; }
    .ps-emblem { width: 78px; height: 86px; }
    .ps-emblem b { font-size: 38px; }
    .ps-info h3 { font-size: 26px; }
    .ps-next { width: 100%; }
    .ps-tile { flex-basis: 96px; }
    .ps-tile.big { flex-basis: 140px; }
}
body.light-mode .profile-page .pf-pass { background: linear-gradient(180deg, #f5f0ff, #ffffff); }
body.light-mode .ps-card { background: #f6f7f9; }


/* ============================================
   ADMIN PANEL : refonte (menu à gauche, cartes, libellés clairs)
============================================ */
.adm-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.adm-backdrop.visible { opacity: 1; pointer-events: auto; }
.adm-panel {
    position: fixed; z-index: 1001; top: 50%; left: 50%;
    width: min(1120px, calc(100vw - 28px)); height: min(860px, calc(100vh - 28px));
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 24px; border: 1px solid var(--home-line, var(--border)); background: #0f0f12;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .7);
    transform: translate(-50%, -48%) scale(.98); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .25s ease;
}
.adm-panel.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--home-line, var(--border)); background: linear-gradient(180deg, #17171c, #121216); }
.adm-top-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.adm-logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #ff6b4a, #ff3d6e); box-shadow: 0 8px 22px rgba(255, 77, 77, .4); }
.adm-top h2 { margin: 0; font-family: var(--home-display, inherit); font-size: 28px; line-height: 1; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.adm-top small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.adm-close { width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--home-line, var(--border)); border-radius: 50%; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; transition: all .15s ease; }
.adm-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

.adm-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.adm-nav { overflow-y: auto; padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--home-line, var(--border)); background: #0b0b0e; }
.adm-nav button { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--text-dim); font: inherit; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.adm-nav button i { width: 22px; flex-shrink: 0; font-size: 19px; }
.adm-nav button span { flex: 1; min-width: 0; }
.adm-nav button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.adm-nav button.active { background: rgba(255, 77, 77, .14); color: #ff7a7a; }
.adm-nav button.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #ff4d4d; }
.adm-nav-group { margin: 18px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); opacity: .65; }
.adm-nav .admin-badge { margin-left: auto; }

.adm-main { overflow-y: auto; padding: 22px 24px 28px; scrollbar-width: thin; }
.adm-tab { display: none; }
.adm-tab.active { display: flex; flex-direction: column; gap: 16px; animation: admIn .25s ease both; }
@keyframes admIn { from { opacity: 0; transform: translateY(8px); } }

.adm-card { padding: 20px 22px; border-radius: 18px; background: #16161b; border: 1px solid var(--home-line, #26262c); }
.adm-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.adm-card h3 i { color: #ff6b4a; font-size: 19px; }
.adm-card .tg-head { margin-bottom: 4px; }
.adm-hint { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.adm-hint b { color: var(--text); }
.adm-card > h3 + :not(.adm-hint):not(.tg-head) { margin-top: 12px; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.adm-field > span, .adm-label { font-size: 13px; font-weight: 800; }
.adm-label { margin: 8px 0 2px; }
.adm-field em, .adm-label em { font-style: normal; font-weight: 600; color: var(--text-dim); }

/* champs et boutons plus grands, plus lisibles */
.adm-panel .input, .adm-panel select.input, .adm-panel textarea { width: 100%; padding: 12px 14px; font-size: 14.5px; border-radius: 12px; border: 1px solid #2c2c33; background: #0d0d10; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.adm-panel .input:focus, .adm-panel textarea:focus { outline: none; border-color: #ff6b4a; box-shadow: 0 0 0 3px rgba(255, 107, 74, .2); }
.adm-panel .btn { padding: 12px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 800; }
.adm-panel .admin-account-form { display: flex; flex-direction: column; gap: 14px; }
.adm-panel .admin-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.adm-panel .admin-msg { font-size: 13.5px; font-weight: 700; }
.adm-panel .admin-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.adm-odds { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #0d0d10; border: 1px solid #26262c; }
.adm-odds-head { display: grid; grid-template-columns: 1fr 120px; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }

/* aperçu */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.adm-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; border-radius: 16px; background: #16161b; border: 1px solid var(--home-line, #26262c); overflow: hidden; }
.adm-stat i { font-size: 20px; color: #ff6b4a; }
.adm-stat b { font-family: var(--home-display, inherit); font-size: 36px; line-height: 1.05; font-style: italic; font-variant-numeric: tabular-nums; }
.adm-stat span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.adm-todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #0f0f13; border: 1px solid #26262c; }
.adm-todo + .adm-todo { margin-top: 8px; }
.adm-todo > div { flex: 1; min-width: 0; font-size: 14px; }
.adm-todo-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.adm-todo.warn .adm-todo-ico { color: #fbbf24; background: rgba(251, 191, 36, .14); }
.adm-todo.info .adm-todo-ico { color: #38bdf8; background: rgba(56, 189, 248, .14); }
.adm-todo-btn { flex-shrink: 0; padding: 8px 14px; border: 1px solid #34343c; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.adm-todo-btn:hover { border-color: #ff6b4a; color: #ff7a7a; }
.adm-allgood { margin: 0; padding: 16px; border-radius: 14px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); color: #4ade80; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.adm-allgood i { font-size: 22px; }
.adm-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.adm-quick button { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid #2a2a31; border-radius: 14px; background: #101014; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 800; text-align: left; cursor: pointer; transition: all .15s ease; }
.adm-quick button i { font-size: 20px; color: #ff6b4a; }
.adm-quick button:hover { transform: translateY(-2px); border-color: #ff6b4a; background: #17171c; }

/* listes : lignes plus aérées */
.adm-panel .admin-account, .adm-panel .admin-user, .adm-panel .admin-shopitem, .adm-panel .admin-tgrow, .adm-panel .admin-tgimport, .adm-panel .admin-channel {
    padding: 12px 14px; border-radius: 14px; background: #0f0f13; border: 1px solid #26262c;
}
.adm-panel .admin-accounts, .adm-panel .admin-users, .adm-panel .admin-shoplist, .adm-panel .admin-tglist, .adm-panel .admin-channels, .adm-panel .admin-pronos { display: flex; flex-direction: column; gap: 8px; }
.adm-panel .admin-user { display: flex; align-items: center; gap: 12px; }
.adm-panel .admin-empty { margin: 0; padding: 18px; text-align: center; font-size: 13.5px; color: var(--text-dim); border: 1px dashed #2c2c33; border-radius: 14px; }
.adm-panel .admin-shopitem { display: flex; align-items: center; gap: 12px; }
.adm-panel .admin-live-line b { font-size: 14.5px; }
.adm-panel .admin-live-line small { font-size: 12.5px; }
.adm-panel .admin-icon, .adm-panel .admin-mini { transition: all .15s ease; }
.adm-panel .admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.adm-panel .admin-search { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 14px; border-radius: 12px; background: #0d0d10; border: 1px solid #2c2c33; }
.adm-panel .admin-search input { flex: 1; padding: 12px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
.adm-panel .pr-match { padding: 14px; border-radius: 14px; background: #0f0f13; border: 1px solid #26262c; }
.adm-panel .composer { border: 0; padding: 0; background: transparent; box-shadow: none; }
.adm-panel .composer textarea { min-height: 150px; font-size: 15.5px; line-height: 1.55; }
.adm-panel .composer-tool { width: auto; padding: 8px 14px; gap: 6px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.adm-panel .shop-drop { padding: 14px; border-radius: 14px; border: 2px dashed #34343c; background: #0d0d10; }
.adm-panel .shop-drop:hover { border-color: #ff6b4a; }

@media (max-width: 820px) {
    .adm-panel { width: 100vw; height: 100vh; border-radius: 0; border: 0; top: 0; left: 0; transform: translateY(16px); }
    .adm-panel.visible { transform: none; }
    .adm-top { padding: 12px 14px; }
    .adm-top h2 { font-size: 22px; }
    .adm-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .adm-nav { flex-direction: row; gap: 4px; padding: 10px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--home-line, var(--border)); scrollbar-width: none; }
    .adm-nav::-webkit-scrollbar { display: none; }
    .adm-nav-group { display: none; }
    .adm-nav button { flex-shrink: 0; padding: 9px 13px; font-size: 13.5px; }
    .adm-nav button.active::before { display: none; }
    .adm-main { padding: 14px; }
    .adm-grid2, .adm-quick { grid-template-columns: 1fr; }
    .adm-card { padding: 16px; }
}
.adm-nav .admin-badge[hidden], .adm-panel .admin-badge[hidden] { display: none !important; }

/* champs à l'intérieur des lignes de liste : taille fixe (sinon ils prennent toute la largeur) */
.adm-panel .admin-price { width: 112px; flex: none; text-align: right; }
.adm-panel .tg-cat, .adm-panel .admin-tgrow select.input, .adm-panel .queue-bar select.input { width: auto; min-width: 150px; flex: none; }
.adm-panel .admin-shopitem-main, .adm-panel .admin-tgrow-main { flex: 1; min-width: 0; }
.adm-panel .admin-shopitem-main b, .adm-panel .admin-tgrow-main b { overflow-wrap: anywhere; }
.adm-panel .admin-channel { display: flex; align-items: center; gap: 12px; }
.adm-panel .admin-channel-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
@media (max-width: 820px) { .adm-panel .admin-channel-fields { grid-template-columns: 1fr; } .adm-panel .tg-cat, .adm-panel .admin-tgrow select.input { min-width: 0; width: 100%; } }


/* ===== Caisses événement ===== */
.cr-card.event { grid-column: 1 / -1; --cc: #ef4444; border-color: rgba(239, 68, 68, .55); background: radial-gradient(circle at 0% 0%, rgba(239, 68, 68, .2), transparent 55%), radial-gradient(circle at 100% 100%, rgba(250, 204, 21, .1), transparent 50%), var(--home-card, var(--panel-2)); }
.cr-card.event .cr-chest { color: #fff; }
.cr-card.event.is-soon { border-style: dashed; }
.cr-card.event .cr-body > p { margin: 4px 0 0; }
.cr-count { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 11px; border-radius: 999px; background: rgba(239, 68, 68, .16); border: 1px solid rgba(239, 68, 68, .5); color: #fca5a5; font-size: 12.5px; font-weight: 800; }
.cr-count b { color: #fff; font-variant-numeric: tabular-nums; }
.cr-count.soon { background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .5); color: #7dd3fc; }
.cr-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.cr-thumb { --rc: #71717a; position: relative; width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--rc) 14%, #14141a); border: 2px solid color-mix(in srgb, var(--rc) 55%, transparent); overflow: visible; }
.cr-thumb.rare { --rc: #38bdf8; }
.cr-thumb.epic { --rc: #a855f7; }
.cr-thumb.legendary { --rc: #facc15; }
.cr-thumb .cr-mini { width: 100%; height: 100%; border-radius: 11px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cr-thumb .cr-mini.banner { background-size: cover !important; background-position: center !important; }
.cr-thumb .cr-mini.badge .shop-badge { width: 34px; height: 34px; font-size: 19px; }
.cr-thumb:not(.own):not(.mystery) .cr-mini { filter: grayscale(.85) brightness(.6); }
.cr-thumb.own { box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 55%, transparent); }
.cr-thumb.own > i { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #22c55e; color: #04230f; font-size: 13px; border: 2px solid #15151b; }
.cr-thumb.mystery { --rc: #ef4444; color: #fca5a5; font-size: 24px; border-style: dashed; background: rgba(239, 68, 68, .08); }
.cr-collection { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text-dim); }
.cr-collection b { color: var(--text); }
.cr-coll-bar { flex: 1; height: 9px; max-width: 280px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cr-coll-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ef4444, #f59e0b); transition: width .6s ease; }
.cr-pity { margin: 0 0 4px !important; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); }
.cr-pity i { color: #22c55e; font-size: 16px; }
.cr-pity b { color: var(--text); }
.crate-coll { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); }
.crate-coll b { color: var(--text); }
.crate-guar { color: #22c55e; font-weight: 800; }
.bt-limited { position: absolute; bottom: 8px; left: 10px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bt-limited.lvl { background: linear-gradient(135deg, #7c3aed, #ec4899); }
@media (max-width: 560px) { .cr-thumb { width: 50px; height: 50px; } .cr-count { margin-left: 0; } }


/* ===== Admin : section Caisses ===== */
.adm-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.adm-rate { --rc: #71717a; display: grid; grid-template-columns: 1fr 86px auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #0d0d10; border: 1px solid #26262c; border-left: 4px solid var(--rc); }
.adm-rate.rare { --rc: #38bdf8; }
.adm-rate.epic { --rc: #a855f7; }
.adm-rate.legendary { --rc: #facc15; }
.adm-rate.vip { --rc: #f97316; }
.adm-rate span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }
.adm-rate span i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.adm-rate .input { padding: 8px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.adm-rate em { font-style: normal; color: var(--text-dim); font-weight: 700; }
.adm-rate-total { grid-column: 1 / -1; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.adm-rate-total.ok { background: rgba(34, 197, 94, .1); color: #4ade80; }
.adm-rate-total.bad { background: rgba(239, 68, 68, .12); color: #f87171; }
.adm-price { max-width: 240px; margin-bottom: 8px; }
.adm-hint-s { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.adm-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: #0f0f13; border: 1px solid #26262c; }
.adm-ev + .adm-ev { margin-top: 8px; }
.adm-ev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-ev-main b { font-size: 15.5px; margin-right: 8px; }
.adm-ev-main small { font-size: 12.5px; color: var(--text-dim); }
.adm-warn { color: #fbbf24 !important; display: flex; align-items: center; gap: 5px; }
.adm-status { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.adm-status.live { background: rgba(34, 197, 94, .16); color: #4ade80; }
.adm-status.soon { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.adm-status.off { background: rgba(255, 255, 255, .08); color: var(--text-dim); }
.adm-ev-thumbs { display: flex; gap: 4px; }
.adm-ev-thumbs img { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; border: 1px solid #34343c; }
.adm-ev-actions { display: flex; gap: 6px; }
@media (max-width: 820px) { .adm-ev { grid-template-columns: 1fr; } .adm-ev-thumbs { flex-wrap: wrap; } }


/* ===== Nous contacter ===== */
.settings-row.settings-link { width: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.ct-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.ct-dot[hidden] { display: none; }
.settings-btn.has-dot { position: relative; }
.settings-btn.has-dot::after { content: ""; position: absolute; top: 8px; left: 22px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
body.ct-open { overflow: hidden; }
.ct-backdrop { position: fixed; inset: 0; z-index: 1300; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.ct-backdrop.visible { opacity: 1; pointer-events: auto; }
.ct-dialog { position: fixed; z-index: 1301; top: 50%; left: 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); display: flex; flex-direction: column; border-radius: 24px; background: #121216; border: 1px solid var(--home-line, var(--border)); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); transform: translate(-50%, -47%) scale(.97); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.2, .9, .3, 1), opacity .22s ease; overflow: hidden; }
.ct-dialog.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.ct-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--home-line, var(--border)); background: linear-gradient(180deg, #19191f, #131317); }
.ct-head > div { flex: 1; min-width: 0; }
.ct-head h3 { margin: 0; font-family: var(--home-display, inherit); font-size: 26px; line-height: 1; font-style: italic; text-transform: uppercase; }
.ct-head small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.ct-logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #38bdf8, #6366f1); box-shadow: 0 8px 22px rgba(99, 102, 241, .4); }
.ct-close { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--home-line, var(--border)); border-radius: 50%; background: transparent; color: var(--text); font-size: 21px; cursor: pointer; }
.ct-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.ct-tabs { display: flex; gap: 6px; padding: 10px 18px 0; }
.ct-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; border-bottom: 3px solid transparent; }
.ct-tabs button.active { color: var(--text); border-bottom-color: #6366f1; }
.ct-tabs[hidden] { display: none; }
.ct-body { padding: 18px 22px 22px; overflow-y: auto; }
.ct-label, .ct-field > span { font-size: 13px; font-weight: 800; }
.ct-field > span em { font-style: normal; font-weight: 600; color: var(--text-dim); }
.ct-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.ct-cats button { padding: 9px 15px; border: 1px solid #2c2c33; border-radius: 999px; background: #0d0d10; color: var(--text-dim); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.ct-cats button:hover { color: var(--text); border-color: #4a4a55; }
.ct-cats button.active { background: linear-gradient(135deg, #6366f1, #38bdf8); border-color: transparent; color: #fff; }
.ct-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.ct-field textarea, .ct-field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #2c2c33; background: #0d0d10; color: var(--text); font: inherit; font-size: 14.5px; resize: vertical; }
.ct-field textarea { min-height: 130px; line-height: 1.5; }
.ct-field textarea:focus, .ct-field input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
.ct-count { align-self: flex-end; font-size: 12px; color: var(--text-dim); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-note { margin: 0 0 16px; display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.ct-note i { color: #38bdf8; font-size: 16px; flex-shrink: 0; }
.ct-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ct-foot .btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 22px; border-radius: 12px; font-weight: 800; }
.ct-err { flex: 1; font-size: 13px; font-weight: 700; color: #f87171; }
.ct-ghost { padding: 11px 18px; border: 1px solid #34343c; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.ct-ghost:hover { border-color: #6366f1; }
.ct-loading, .ct-empty { margin: 30px 0; text-align: center; color: var(--text-dim); }
.ct-empty i { display: block; font-size: 42px; margin-bottom: 8px; color: #6366f1; }
.ct-empty .ct-ghost { margin-top: 14px; }
.ct-done { text-align: center; padding: 14px 0 4px; }
.ct-done-ico { font-size: 62px; color: #22c55e; line-height: 1; }
.ct-done h4 { margin: 6px 0; font-size: 20px; }
.ct-done p { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; }
.ct-done .ct-foot { justify-content: center; }
.ct-list { display: flex; flex-direction: column; gap: 10px; }
.ct-item { padding: 14px; border-radius: 14px; background: #0d0d10; border: 1px solid #26262c; }
.ct-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-item-top small { color: var(--text-dim); font-size: 12px; margin-right: auto; }
.ct-chip { padding: 2px 10px; border-radius: 999px; background: rgba(99, 102, 241, .16); color: #a5b4fc; font-size: 12px; font-weight: 800; }
.ct-state { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-dim); font-size: 11.5px; font-weight: 800; }
.ct-state.ok { background: rgba(34, 197, 94, .16); color: #4ade80; }
.ct-item > p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-reply { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .35); }
.ct-reply.is-new { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, .2); }
.ct-reply b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #a5b4fc; }
.ct-reply p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ct-dialog { top: auto; bottom: 0; left: 0; width: 100vw; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(24px); } .ct-dialog.visible { transform: none; } .ct-body { padding: 16px; } }


/* ===== Admin : Messages ===== */
.msg-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-chip { padding: 8px 14px; border: 1px solid #2c2c33; border-radius: 999px; background: #0d0d10; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.msg-chip b { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 11.5px; }
.msg-chip.active { background: linear-gradient(135deg, #6366f1, #38bdf8); border-color: transparent; color: #fff; }
.msg-filters .input { width: auto; min-width: 190px; max-width: 100%; }
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { padding: 14px 16px; border-radius: 16px; background: #0d0d10; border: 1px solid #26262c; }
.msg-item.is-new { border-color: rgba(99, 102, 241, .6); box-shadow: inset 3px 0 0 #6366f1; }
.msg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.msg-cat { padding: 3px 11px; border-radius: 999px; background: rgba(99, 102, 241, .18); color: #a5b4fc; font-size: 12px; font-weight: 800; }
.msg-who { font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.msg-who b { color: var(--text); }
.msg-top small { margin-left: auto; color: var(--text-dim); font-size: 12px; }
.msg-text { margin: 10px 0 6px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { display: block; font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
.msg-reply { margin-top: 10px; padding: 10px 13px; border-radius: 12px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); }
.msg-reply b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4ade80; }
.msg-reply p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.msg-actions .admin-mini { width: auto; height: auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.msg-actions .admin-mini.danger { margin-left: auto; }
.msg-write { flex: 1 1 100%; order: 3; }
.msg-write summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #38bdf8); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.msg-write summary::-webkit-details-marker { display: none; }
.msg-write[open] summary { margin-bottom: 10px; }
.msg-write textarea { font: inherit; font-size: 14px; width: 100%; min-height: 84px; margin-bottom: 8px; resize: vertical; }
.msg-cats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.msg-catrow { display: flex; align-items: center; gap: 8px; }
.msg-catrow .input { flex: 1; min-width: 0; width: auto; }
.msg-catrow small { flex: none; min-width: 70px; text-align: right; color: var(--text-dim); font-size: 12px; }
.msg-catrow.off .input { opacity: .5; text-decoration: line-through; }
.msg-addcat { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-addcat .input { flex: 1 1 200px; width: auto; }


/* ===== Tickets de caisse (récompense de niveau) ===== */
.ps-art.icon.ticket { color: #38bdf8; background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(99, 102, 241, .22)); border: 1px solid rgba(56, 189, 248, .55); }
.crate-btn.ticket { background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; }


/* ===== Caisses : vitrine avec une vraie caisse ===== */
.cr-zone { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cr-card.cx { display: flex; flex-direction: column; padding: 0; gap: 0; border-radius: 26px; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); transition: transform .25s ease, box-shadow .25s ease; }
.cr-card.cx:hover { transform: translateY(-3px); box-shadow: 0 24px 54px color-mix(in srgb, var(--cc) 22%, rgba(0, 0, 0, .4)); }
.cr-card.cx::before { display: none; }
.cx-stage { position: relative; height: 218px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 88%, color-mix(in srgb, var(--cc) 42%, transparent), transparent 64%), radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 15px 15px, linear-gradient(180deg, #17171e, #0d0d11); border-bottom: 1px solid color-mix(in srgb, var(--cc) 35%, var(--home-line, var(--border))); }
.cx-stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cc) 80%, #fff), transparent); opacity: .7; }
.cx-tag { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 12px; background: rgba(0, 0, 0, .5); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cx-ticket { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px rgba(99, 102, 241, .5); }
.cr-card.cx .cr-body { flex: 1; padding: 18px 20px 4px; }
.cr-card.cx .cr-title h3 { font-family: var(--home-display, inherit); font-size: 26px; font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.cr-card.cx .crate-btn { width: auto; margin: 16px 20px 20px; }
.cr-card.paid.cx .crate-btn:not(.ticket):not(.wait) { background: linear-gradient(135deg, #fde047, #f59e0b); color: #2a1a00; }
/* caisse événement : grande bannière, la caisse à gauche */
.cr-zone { container-type: inline-size; }
.cr-card.cx.event { display: grid; grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); border-width: 1px; }
.cr-card.cx.event .cx-stage { grid-row: 1; height: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid rgba(239, 68, 68, .35); }
.cr-card.cx.event .cr-body { grid-column: 2; grid-row: 1; padding: 20px 22px 4px; }
.cr-card.cx.event .crate-btn { grid-column: 1 / -1; }
@container (max-width: 680px) {
  .cr-card.cx.event { grid-template-columns: minmax(0, 1fr); }
  .cr-card.cx.event .cx-stage { border-right: 0; border-bottom: 1px solid rgba(239, 68, 68, .35); min-height: 218px; }
  .cr-card.cx.event .cr-body { grid-column: 1; grid-row: 2; }
  .cr-card.cx.event .crate-btn { grid-row: 3; }
}
@media (max-width: 560px) { .cx-stage { height: 190px; } .cr-card.cx .cr-title h3 { font-size: 23px; } .cr-card.cx .cr-body { padding: 16px 16px 2px; } .cr-card.cx .crate-btn { margin: 14px 16px 16px; } }
@media (prefers-reduced-motion: reduce) { .cx3-case, .cx3-p { animation: none !important; } }


/* ===== Caisse 3D ===== */
.cx3-scene { position: absolute; inset: 0; perspective: 780px; perspective-origin: 50% 24%; pointer-events: none; filter: drop-shadow(0 0 20px color-mix(in srgb, var(--ac) 40%, transparent)); }
.cx3-scene.free { --b1: #476b43; --b2: #1b2f1d; --ac: #4ade80; --gl: #bbf7d0; }
.cx3-scene.paid { --b1: #3d3a36; --b2: #141311; --ac: #facc15; --gl: #fef08a; }
.cx3-scene.event { --b1: #7d2a25; --b2: #2c0b0a; --ac: #fb923c; --gl: #fed7aa; }
.cx3-floor { position: absolute; left: 50%; bottom: 14px; width: 250px; height: 54px; margin-left: -125px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--ac) 50%, transparent), transparent 68%); }
.cx3-case { --gap: 8px; position: absolute; left: 50%; bottom: 76px; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-21deg) rotateY(-30deg); animation: cx3Sway 8s ease-in-out infinite alternate; }
.cr-card.cx:hover .cx3-case { --gap: 19px; }
.cr-card.cx.is-wait .cx3-case { --gap: 0px; animation-duration: 14s; }
@keyframes cx3Sway { from { transform: translateY(0) rotateX(-21deg) rotateY(-44deg); } to { transform: translateY(-5px) rotateX(-21deg) rotateY(-14deg); } }
.cx3-box { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.cx3-box.lid { transform: translateY(calc(-44px - var(--gap))); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.cx3-box.glow { transform: translateY(-31px); }
.cx3-f { position: absolute; left: 0; top: 0; overflow: hidden; backface-visibility: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px), radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 0 18px rgba(0, 0, 0, .55); }
.cx3-f::before { content: ""; position: absolute; inset: 4px; border: 2px solid rgba(255, 255, 255, .13); border-radius: 3px; }
.cx3-f::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 9px 9px, #d3dae2 0 2px, transparent 2.7px), radial-gradient(circle at calc(100% - 9px) 9px, #d3dae2 0 2px, transparent 2.7px), radial-gradient(circle at 9px calc(100% - 9px), #d3dae2 0 2px, transparent 2.7px), radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #d3dae2 0 2px, transparent 2.7px); opacity: .75; }
.f-front, .f-back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.f-front { transform: translateZ(calc(var(--d) / 2)); }
.f-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); filter: brightness(.5); }
.f-right, .f-left { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.f-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.68); }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.48); }
.f-top, .f-bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.f-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.25); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.cx3-box.glow .cx3-f { background: linear-gradient(to top, var(--ac), #fff 88%); box-shadow: none; filter: none; }
.cx3-box.glow .cx3-f::before, .cx3-box.glow .cx3-f::after { display: none; }
.cr-card.cx.is-wait .cx3-box.glow, .cr-card.cx.is-wait .cx3-p { display: none; }
.cr-card.cx.is-wait .cx3-scene { filter: grayscale(.6) brightness(.78); }
.cx3-latch, .cx3-hook { position: absolute; z-index: 1; border-radius: 3px 3px 6px 6px; background: linear-gradient(90deg, #7d8996, #e8ecf0 45%, #758190); box-shadow: 0 2px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.cx3-latch { top: -1px; width: 26px; height: 28px; margin-left: -13px; }
.cx3-latch::after { content: ""; position: absolute; left: 50%; top: 10px; width: 12px; height: 7px; margin-left: -6px; border-radius: 2px; background: #111; box-shadow: inset 0 1px 2px #000; }
.cx3-hook { bottom: -1px; width: 18px; height: 12px; margin-left: -9px; border-radius: 6px 6px 3px 3px; }
.cx3-plate { position: absolute; z-index: 1; left: 50%; top: 31px; transform: translateX(-50%); padding: 4px 12px 3px; border-radius: 2px; background: var(--ac); color: #0b0b0b; font: 800 12px/1 var(--home-display, sans-serif); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
.cx3-stripe { position: absolute; z-index: 1; left: 5px; right: 5px; bottom: 5px; height: 7px; background: repeating-linear-gradient(135deg, var(--ac) 0 7px, #0c0c0c 7px 14px); opacity: .92; }
.cx3-handle { position: absolute; z-index: 1; left: 50%; top: 14px; width: 54px; height: 22px; margin-left: -27px; border-radius: 8px; background: #050505; box-shadow: inset 0 0 7px #000, 0 0 0 3px #7f8b99, 0 0 0 4px rgba(0, 0, 0, .5); }
.cx3-handle::after { content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 7px; border-radius: 4px; background: linear-gradient(#eef1f4, #7a8694); }
.cx3-ribs { position: absolute; z-index: 1; left: 18%; right: 18%; top: 6px; bottom: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .11) 0 3px, rgba(0, 0, 0, .3) 3px 9px); border-radius: 3px; }
.cx3-panel { position: absolute; z-index: 1; inset: 13px 24px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 7px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 3px, transparent 3px 11px); display: flex; align-items: center; justify-content: center; }
.cx3-emb { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ac); color: #0a0a0a; font-size: 22px; box-shadow: 0 0 20px var(--ac), 0 0 0 3px rgba(0, 0, 0, .45); }
.cx3-p { position: absolute; left: calc(50% + var(--x)); bottom: 128px; width: 5px; height: 5px; border-radius: 50%; background: var(--gl); box-shadow: 0 0 9px 2px var(--ac); opacity: 0; animation: cx3Rise 2.8s ease-out infinite; }
@keyframes cx3Rise { 0% { transform: translateY(0) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-78px) scale(1); opacity: 0; } }


/* ===== Petits « ? » d'aide ===== */
.hp-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; margin: 0 0 0 6px; padding: 0; vertical-align: middle; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text-dim); font: 800 12px/1 inherit; font-style: normal; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.hp-btn::after { content: ""; position: absolute; inset: -9px; }
.hp-btn:hover, .hp-btn[aria-expanded="true"] { background: #38bdf8; border-color: #38bdf8; color: #04141f; transform: scale(1.08); }
.hp-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.hp-pop { position: fixed; z-index: 2000; top: 0; left: 0; width: min(340px, calc(100vw - 24px)); padding: 15px 17px 16px; border-radius: 18px; background: #181820; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); color: var(--text); font-size: 13.5px; line-height: 1.5; opacity: 0; transform: translateY(6px) scale(.97); pointer-events: none; transition: opacity .16s ease, transform .18s ease; font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; text-align: left; }
.hp-pop.visible { opacity: 1; transform: none; pointer-events: auto; }
.hp-pop::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax, 30px) - 7px); width: 14px; height: 14px; transform: rotate(45deg); background: #181820; border-left: 1px solid rgba(255, 255, 255, .16); border-top: 1px solid rgba(255, 255, 255, .16); }
.hp-pop.above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.hp-pop h4 { display: flex; align-items: center; gap: 8px; margin: 0 28px 8px 0; font-size: 15px; font-weight: 800; }
.hp-pop h4 i { color: #38bdf8; font-size: 18px; }
.hp-pop ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hp-pop li { position: relative; padding-left: 15px; color: var(--text-dim); }
.hp-pop li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.hp-pop li b { color: var(--text); font-weight: 800; }
.hp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #38bdf8; font-weight: 800; font-size: 13px; text-decoration: none; }
.hp-link:hover { text-decoration: underline; }
.hp-close { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 17px; cursor: pointer; }
.hp-close:hover { background: #ef4444; }
.pm-balance small { white-space: nowrap; }


/* ===== Page Live ===== */
.lv-stage { --cc: #a855f7; position: relative; overflow: hidden; margin-bottom: 16px; padding: 24px 24px 24px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--cc) 50%, var(--home-line, var(--border))); background: radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--cc) 34%, transparent), transparent 62%), linear-gradient(160deg, #1b1b22, #101014); box-shadow: 0 22px 50px rgba(0, 0, 0, .35); }
.lv-stage[hidden] { display: none; }
.lv-stage.sport-ufc { --cc: #ef4444; } .lv-stage.sport-boxe { --cc: #f43f5e; } .lv-stage.sport-nba { --cc: #f59e0b; }
.lv-stage.sport-foot { --cc: #22c55e; } .lv-stage.sport-tennis { --cc: #a3e635; } .lv-stage.sport-autre { --cc: #a855f7; }
.lv-stage > * { position: relative; }
.lv-stage-wm { position: absolute !important; right: -16px; bottom: -34px; font-size: 200px; line-height: 1; color: var(--cc); opacity: .13; transform: rotate(-12deg); pointer-events: none; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lv-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lv-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.lv-badge.live { background: #ef4444; border-color: #ef4444; color: #fff; }
.lv-badge.live .dot { background: #fff; animation: lvPulse 1.3s infinite; }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.lv-sport { display: inline-flex; align-items: center; gap: 6px; color: var(--cc); font-size: 14px; font-weight: 800; }
.lv-stage h2 { margin: 16px 0 6px; font-family: var(--home-display, inherit); font-size: clamp(28px, 5vw, 40px); line-height: 1; font-style: italic; text-transform: uppercase; }
.lv-desc { max-width: 560px; margin: 0 0 12px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.lv-when { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: 12px; background: rgba(0, 0, 0, .38); font-size: 14px; font-weight: 700; }
.lv-when i { color: var(--cc); }
.lv-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 470px; }
.lv-cell { padding: 13px 6px 10px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); }
.lv-cell b { display: block; font-family: var(--home-display, inherit); font-size: clamp(28px, 6vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.lv-cell span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.lv-going { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-going p { margin: 0; flex: 1 1 220px; font-weight: 700; }
.lv-go { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 12px; background: var(--cc); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }

.lv-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 20px; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); }
.lv-progress[hidden] { display: none; }
.lv-progress-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 23px; color: #04230f; background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 8px 22px rgba(34, 197, 94, .35); }
.lv-progress-main { flex: 1; min-width: 0; }
.lv-progress-main b { font-size: 15px; }
.lv-progress-main small { display: block; margin-top: 2px; color: var(--text-dim); font-size: 12.5px; line-height: 1.4; }
.lv-bar { height: 8px; margin-top: 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #a3e635); transition: width .6s ease; }

.lv-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.lv-ch { --cc: #fb923c; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 24px; background: linear-gradient(165deg, color-mix(in srgb, var(--cc) 15%, #18181e), #111116 68%); border: 1px solid color-mix(in srgb, var(--cc) 35%, var(--home-line, var(--border))); animation: lvIn .5s both; }
@keyframes lvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lv-ch.ch-ufc { --cc: #ef4444; } .lv-ch.ch-boxe { --cc: #f43f5e; } .lv-ch.ch-nba { --cc: #f59e0b; }
.lv-ch.ch-foot { --cc: #22c55e; } .lv-ch.ch-tennis { --cc: #a3e635; } .lv-ch.ch-public { --cc: #fb923c; }
.lv-ch > * { position: relative; }
.lv-ch-wm { position: absolute !important; right: -14px; top: -16px; font-size: 120px; line-height: 1; color: var(--cc); opacity: .1; transform: rotate(14deg); pointer-events: none; }
.lv-ch-top { display: flex; align-items: center; gap: 13px; }
.lv-ch-ico { width: 54px; height: 54px; flex-shrink: 0; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); box-shadow: 0 10px 24px color-mix(in srgb, var(--cc) 40%, transparent); }
.lv-ch h3 { margin: 0; font-size: 19px; font-weight: 800; }
.lv-ch-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--text-dim); }
.lv-ch.unlocked .lv-ch-state { color: #4ade80; }
.lv-steps { display: flex; align-items: center; }
.lv-step { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); color: var(--text-dim); font-size: 17px; transition: all .3s ease; }
.lv-step.on { background: var(--cc); border-color: var(--cc); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--cc) 55%, transparent); }
.lv-step.next { border-color: var(--cc); color: var(--cc); animation: lvRing 1.9s ease-out infinite; }
@keyframes lvRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cc) 55%, transparent); } 100% { box-shadow: 0 0 0 11px transparent; } }
.lv-link { flex: 1; height: 3px; margin: 0 7px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.lv-link.on { background: var(--cc); }
.lv-ch-hint { margin: -4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
.lv-ch-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: auto; border: 0; border-radius: 15px; font: inherit; font-size: 14.5px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 88%, #fff), color-mix(in srgb, var(--cc) 68%, #000)); box-shadow: 0 10px 24px color-mix(in srgb, var(--cc) 28%, transparent); transition: transform .15s ease, filter .15s ease; }
.lv-ch-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.lv-ch-btn.open { background: linear-gradient(135deg, #4ade80, #16a34a); color: #052e16; box-shadow: 0 10px 24px rgba(34, 197, 94, .28); }
.lv-ch-btn.no-link { background: #2a2a31; color: var(--text-dim); box-shadow: none; cursor: default; }
.lv-ch-btn:disabled { cursor: default; }
.lv-ch-btn.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; background: #fff; animation: lvLoad 2s linear forwards; }
.lv-ch-btn.busy i { animation: lvSpin 1s linear infinite; }
@keyframes lvLoad { from { width: 0; } to { width: 100%; } }
@keyframes lvSpin { to { transform: rotate(360deg); } }
.lv-ch.unlocked { border-color: rgba(74, 222, 128, .55); box-shadow: 0 0 0 1px rgba(74, 222, 128, .2), 0 18px 40px rgba(34, 197, 94, .12); }
.lv-ch.fresh { animation: lvBurst 1s ease-out; }
@keyframes lvBurst { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(74, 222, 128, .8); } 60% { transform: scale(1.025); } 100% { transform: none; box-shadow: 0 0 0 26px rgba(74, 222, 128, 0); } }
@media (max-width: 560px) { .lv-stage { padding: 20px 18px; } .lv-progress { padding: 12px 14px; } .lv-ch { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .lv-ch, .lv-step.next, .lv-badge.live .dot, .lv-ch.fresh { animation: none !important; } }


/* ===== Accueil : recherche + menu « sport » ===== */
.feed-toolbar { flex-wrap: nowrap; gap: 10px; }
.feed-toolbar .feed-search { flex: 1 1 auto; min-width: 0; padding: 0 16px; min-height: 46px; border-radius: 14px; }
.feed-toolbar .feed-search input { font-size: 14.5px; }
.feed-filter { position: relative; flex-shrink: 0; }
.ff-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--home-line, var(--border)); border-radius: 14px; background: var(--home-card, var(--panel)); color: var(--text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.ff-btn:hover { border-color: #4a4a55; }
.ff-btn > i:first-child { font-size: 18px; color: var(--text-dim); }
.ff-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--home-card, var(--panel))); }
.ff-btn.on > i:first-child { color: var(--accent); }
.ff-chev { transition: transform .2s ease; color: var(--text-dim); }
.ff-btn[aria-expanded="true"] .ff-chev { transform: rotate(180deg); }
.ff-menu { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 210px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; background: #17171d; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 50px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .15s ease, transform .18s ease; }
.ff-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.ff-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.ff-menu button i { width: 22px; text-align: center; font-size: 18px; color: var(--text-dim); }
.ff-menu button[data-cat="ufc"] i { color: #ef4444; } .ff-menu button[data-cat="boxe"] i { color: #f43f5e; } .ff-menu button[data-cat="nba"] i { color: #f59e0b; }
.ff-menu button[data-cat="foot"] i { color: #22c55e; } .ff-menu button[data-cat="tennis"] i { color: #a3e635; } .ff-menu button[data-cat="tout"] i { color: #fb923c; }
.ff-menu button:hover { background: rgba(255, 255, 255, .08); }
.ff-menu button.active { background: rgba(255, 255, 255, .1); }
.ff-menu button.active::after { content: "\2713"; margin-left: auto; color: var(--accent); font-weight: 800; }
body.light-mode .ff-menu { background: #fff; border-color: #e5e7eb; box-shadow: 0 18px 40px rgba(0, 0, 0, .15); }
body.light-mode .ff-menu button { color: #111827; }
body.light-mode .ff-btn { color: #111827; background: #fff; border-color: #e5e7eb; }
@media (max-width: 560px) { .feed-toolbar .feed-search { flex: 1 1 0; } .ff-btn:not(.on) #ffLabel { display: none; } .ff-btn { padding: 0 13px; } }


/* ===== Pronostics : portefeuille + cartes de match ===== */
.pv-wallet { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; padding: 16px 18px; border-radius: 22px; background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, .16), transparent 60%), var(--home-card, var(--panel-2)); border: 1px solid rgba(250, 204, 21, .35); }
.pv-coin { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #4a3300; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 10px 26px rgba(250, 204, 21, .35); }
.pv-wallet-main { flex: 1 1 140px; min-width: 0; }
.pv-wallet-main small { display: block; color: var(--text-dim); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pv-wallet-main b { display: block; font-family: var(--home-display, inherit); font-size: 34px; line-height: 1.05; font-style: italic; color: #facc15; font-variant-numeric: tabular-nums; }
.pv-wallet-main .pv-title-s { font-size: 22px; color: var(--text); }
.pv-free { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, .13); border: 1px solid rgba(34, 197, 94, .4); color: #4ade80; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pv-login { padding: 11px 20px; border-radius: 12px; background: linear-gradient(135deg, #fde047, #f59e0b); color: #2a1a00; font-weight: 800; text-decoration: none; }
.pv-stats { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pv-stats span { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text-dim); font-size: 13px; font-weight: 700; }
.pv-stats b { color: var(--text); }
.pv-stats .pos b { color: #4ade80; } .pv-stats .neg b { color: #f87171; }

.pv-list { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pv-card { --cc: #a855f7; position: relative; overflow: hidden; padding: 18px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--cc) 42%, var(--home-line, var(--border))); background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--cc) 17%, transparent), transparent 56%), var(--home-card, var(--panel-2)); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); animation: lvIn .5s both; }
.pv-card.sport-ufc { --cc: #ef4444; } .pv-card.sport-boxe { --cc: #f43f5e; } .pv-card.sport-nba { --cc: #f59e0b; }
.pv-card.sport-foot { --cc: #22c55e; } .pv-card.sport-tennis { --cc: #a3e635; } .pv-card.sport-autre { --cc: #a855f7; }
.pv-card.closed { border-color: var(--home-line, var(--border)); }
.pv-card > * { position: relative; }
.pv-wm { position: absolute !important; right: -14px; top: 18px; font-size: 150px; line-height: 1; color: var(--cc); opacity: .09; transform: rotate(-10deg); pointer-events: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pv-sport { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--cc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); color: var(--cc); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pv-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--text-dim); }
.pv-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.pv-status.open { color: #4ade80; } .pv-status.open .dot { background: #22c55e; animation: lvPulse 1.6s infinite; }
.pv-title { margin: 14px 0 4px; font-family: var(--home-display, inherit); font-size: clamp(24px, 4.2vw, 32px); line-height: 1.02; font-style: italic; text-transform: uppercase; }
.pv-when { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.pv-versus { display: grid; align-items: stretch; gap: 10px; margin-top: 16px; }
.pv-versus.n2 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pv-versus.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-vs { align-self: center; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0b0b0e; border: 1px solid rgba(255, 255, 255, .2); font-family: var(--home-display, inherit); font-size: 13px; font-style: italic; color: var(--text-dim); }
.pv-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.pv-opt:disabled { cursor: default; }
.pv-opt:not(:disabled):hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.pv-label { font-size: 15px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pv-odds { display: flex; flex-direction: column; align-items: center; font-family: var(--home-display, inherit); font-size: 38px; line-height: 1; font-style: italic; color: var(--cc); font-variant-numeric: tabular-nums; }
.pv-odds small { font-family: inherit; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
.pv-bar { width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--cc); }
.pv-pct { color: var(--text-dim); font-size: 12px; font-weight: 600; }
.pv-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--cc); color: #0b0b0b; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.pv-tag.win { background: linear-gradient(135deg, #fde047, #f59e0b); }
.pv-opt.chosen, .pv-opt.mine { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, rgba(0, 0, 0, .3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 22%, transparent), 0 14px 30px color-mix(in srgb, var(--cc) 18%, transparent); }
.pv-opt.won { border-color: #facc15; background: rgba(250, 204, 21, .12); box-shadow: 0 0 22px rgba(250, 204, 21, .3); }
.pv-opt.won .pv-odds { color: #facc15; }
.pv-opt.lost { opacity: .45; }
.pv-foot { margin-top: 16px; }
.pv-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 14px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .2); color: var(--text-dim); font-size: 13.5px; font-weight: 600; text-align: center; }
.pv-bet { padding: 14px; border-radius: 20px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); animation: lvIn .3s both; }
.pv-bet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-bet-head > span { font-size: 14px; font-weight: 800; }
.pv-stepper { display: inline-flex; align-items: center; gap: 6px; }
.pv-step { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--text); font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pv-step:hover { background: var(--cc); border-color: var(--cc); color: #0b0b0b; }
.pv-stake { width: 92px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #0d0d10; color: #facc15; font: inherit; font-size: 20px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pv-stake::-webkit-outer-spin-button, .pv-stake::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pv-stake:focus { outline: none; border-color: var(--cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 25%, transparent); }
.pv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pv-chip { padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pv-chip:hover { border-color: var(--cc); color: var(--cc); }
.pv-gain { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding: 11px 14px; margin-bottom: 12px; border-radius: 14px; background: rgba(250, 204, 21, .09); border: 1px solid rgba(250, 204, 21, .3); font-size: 13.5px; font-weight: 700; }
.pv-gain b { font-family: var(--home-display, inherit); font-size: 26px; line-height: 1; font-style: italic; color: #facc15; }
.pv-gain small { color: var(--text-dim); }
.pv-go { width: 100%; min-height: 50px; border: 0; border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 90%, #fff), color-mix(in srgb, var(--cc) 66%, #000)); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 26px color-mix(in srgb, var(--cc) 30%, transparent); transition: transform .15s ease, filter .15s ease; }
.pv-go:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.pv-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pv-msg { min-height: 18px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #f87171; text-align: center; }
.pv-msg:empty { min-height: 0; margin: 0; }
.pv-result { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.pv-result > i { font-size: 28px; color: var(--text-dim); }
.pv-result strong { display: block; margin-top: 2px; font-size: 15px; }
.pv-result.won { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .5); } .pv-result.won > i, .pv-result.won strong { color: #4ade80; }
.pv-result.lost { background: rgba(239, 68, 68, .09); border-color: rgba(239, 68, 68, .4); } .pv-result.lost > i, .pv-result.lost strong { color: #f87171; }
.pv-result.pending { background: rgba(56, 189, 248, .09); border-color: rgba(56, 189, 248, .4); } .pv-result.pending > i, .pv-result.pending strong { color: #7dd3fc; }
@container (max-width: 440px) {
  .pv-versus.n3 { grid-template-columns: minmax(0, 1fr); }
  .pv-versus.n3 .pv-opt { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 14px 16px 10px; }
  .pv-versus.n3 .pv-odds { flex-direction: row; align-items: baseline; gap: 6px; font-size: 30px; }
  .pv-versus.n3 .pv-odds small { margin: 0; }
  .pv-versus.n3 .pv-bar { order: 5; } .pv-versus.n3 .pv-pct { order: 6; }
  .pv-versus.n3 .pv-tag { left: 16px; transform: none; }
  .pv-odds { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .pv-card, .pv-bet, .pv-status.open .dot { animation: none !important; } }


/* ===== Connexion / inscription ===== */
body.auth-open { overflow: hidden; }
.pf-guest { padding: 0; text-align: left; border: 0; background: none; display: flex; flex-direction: column; gap: 14px; }
.pf-guest[hidden] { display: none; }
.gs-hero { position: relative; overflow: hidden; padding: 36px 30px 32px; border-radius: 28px; border: 1px solid rgba(255, 77, 77, .4); background: radial-gradient(circle at 100% 0%, rgba(255, 77, 77, .28), transparent 60%), radial-gradient(circle at 0% 100%, rgba(250, 204, 21, .12), transparent 55%), linear-gradient(160deg, #1d1b21, #111115); box-shadow: 0 22px 50px rgba(0, 0, 0, .35); }
.gs-hero > * { position: relative; }
.gs-wm { position: absolute !important; right: -24px; bottom: -48px; font-size: 270px; line-height: 1; color: #ff4d4d; opacity: .1; transform: rotate(-10deg); pointer-events: none; }
.gs-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gs-hero h2 { margin: 16px 0 10px; font-family: var(--home-display, inherit); font-size: clamp(38px, 7vw, 58px); line-height: .95; font-style: italic; text-transform: uppercase; }
.gs-hero h2 em { font-style: italic; color: #ff4d4d; }
.gs-hero p { max-width: 480px; margin: 0 0 22px; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.gs-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-main { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.gs-ghost { padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.gs-ghost:hover { border-color: #ff4d4d; color: #ff4d4d; }
.gs-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 400px) { .gs-perks { grid-template-columns: minmax(0, 1fr); } }
.gs-perk { padding: 18px; border-radius: 22px; background: var(--home-card, var(--panel-2)); border: 1px solid var(--home-line, var(--border)); }
.gs-perk span { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 24px; color: #fff; background: linear-gradient(135deg, #ff4d4d, #f59e0b); box-shadow: 0 10px 22px rgba(255, 77, 77, .28); }
.gs-perk:nth-child(3) span { background: linear-gradient(135deg, #22c55e, #84cc16); box-shadow: 0 10px 22px rgba(34, 197, 94, .28); }
.gs-perk:nth-child(4) span { background: linear-gradient(135deg, #a855f7, #6366f1); box-shadow: 0 10px 22px rgba(168, 85, 247, .28); }
.gs-perk:nth-child(5) span { background: linear-gradient(135deg, #fde047, #f59e0b); color: #4a3300; box-shadow: 0 10px 22px rgba(250, 204, 21, .28); }
.gs-perk b { display: block; font-size: 16px; margin-bottom: 4px; }
.gs-live { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: linear-gradient(120deg, rgba(239, 68, 68, .2), var(--home-card, var(--panel-2)) 70%); border-color: rgba(239, 68, 68, .5); transition: transform .15s ease, border-color .15s ease; }
.gs-live:hover { transform: translateY(-2px); border-color: #ef4444; }
.gs-live > span { margin: 0 !important; flex-shrink: 0; background: linear-gradient(135deg, #ef4444, #f97316) !important; box-shadow: 0 10px 22px rgba(239, 68, 68, .35) !important; }
.gs-live > div { flex: 1; min-width: 0; }
.gs-go { font-size: 22px; color: #ef4444; flex-shrink: 0; }
.gs-perk small { display: block; color: var(--text-dim); font-size: 13px; line-height: 1.5; }

.auth-backdrop { background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.auth-dialog.au2 { display: grid; grid-template-columns: 250px minmax(0, 1fr); width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14); background: #121216; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.au-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(160deg, #ff4d4d, #f97316 55%, #b91c1c); color: #fff; }
.au-side > * { position: relative; }
.au-wm { position: absolute !important; right: -34px; bottom: -40px; font-size: 220px; line-height: 1; color: #fff; opacity: .13; transform: rotate(-12deg); pointer-events: none; }
.au-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--home-display, inherit); font-size: 24px; font-style: italic; letter-spacing: .02em; }
.au-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .28); font-size: 20px; }
.au-side h4 { margin: 14px 0 0; font-family: var(--home-display, inherit); font-size: 30px; line-height: 1; font-style: italic; text-transform: uppercase; }
.au-side ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.au-side li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.au-side li i { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .28); font-size: 14px; }
.au-main { position: relative; padding: 28px 28px 22px; overflow-y: auto; }
.au-main h3 { margin: 0; font-family: var(--home-display, inherit); font-size: 32px; line-height: 1; font-style: italic; text-transform: uppercase; }
.au-sub { margin: 6px 0 18px; color: var(--text-dim); font-size: 14px; }
.au-main .auth-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: transparent; color: var(--text); font-size: 20px; opacity: 1; cursor: pointer; }
.au-main .auth-close:hover { background: #ef4444; border-color: #ef4444; }
.au-main .auth-tabs { margin-bottom: 16px; }
.au-label { margin: 2px 0 -4px; font-size: 12.5px; font-weight: 800; color: var(--text-dim); }
.au-label small { margin-left: 6px; font-weight: 600; opacity: .8; }
.au-main .auth-field .input { min-height: 48px; border-radius: 14px; font-size: 15px; background: #0d0d10; }
.au-main .auth-field .input:focus { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, .22); outline: none; }
.au-main .auth-submit { min-height: 50px; margin-top: 6px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.au-meter { height: 6px; margin-top: -2px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.au-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: #64748b; transition: width .25s ease, background .25s ease; }
.au-meter i.bad { background: #ef4444; } .au-meter i.mid { background: #f59e0b; } .au-meter i.good { background: #84cc16; } .au-meter i.great { background: #22c55e; }
.au-hint { margin-top: -6px; color: var(--text-dim); font-size: 12px; }
@media (max-width: 640px) {
  .auth-modal { align-items: flex-end; }
  .auth-dialog.au2 { grid-template-columns: 1fr; width: 100vw; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .au-side { display: none; }
  .au-main { padding: 24px 20px 20px; }
  .gs-hero { padding: 28px 20px 24px; }
}
body.light-mode .auth-dialog.au2 { background: #fff; border-color: #e5e7eb; }


/* ===== Page Événements ===== */
.ev-toolbar { display: flex; justify-content: flex-end; margin: 18px 0 0; }
.ev-toolbar[hidden] { display: none; }
.lv-stage.ev-stage { margin-top: 16px; }
.lv-stage > .ev-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; z-index: 0; }
.lv-stage.has-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 10, 14, .94), rgba(10, 10, 14, .35)); }
.lv-stage.has-image > *:not(.ev-bg) { z-index: 2; }
.ev-ics { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ev-ics:hover { background: rgba(255, 255, 255, .16); border-color: var(--cc, var(--accent)); }
.ev-ics.small { margin: 0; width: 100%; justify-content: center; padding: 10px; border-radius: 12px; font-size: 13px; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 4px; }
.ev-grid .empty-state { grid-column: 1 / -1; }
.ev-month { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-family: var(--home-display, inherit); font-size: 22px; font-style: italic; text-transform: uppercase; }
.ev-month::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent); }
.ev-tile { --cc: #a855f7; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: linear-gradient(165deg, color-mix(in srgb, var(--cc) 10%, #18181e), #111116 70%); border: 1px solid color-mix(in srgb, var(--cc) 30%, var(--home-line, var(--border))); animation: lvIn .5s both; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ev-tile.sport-ufc { --cc: #ef4444; } .ev-tile.sport-boxe { --cc: #f43f5e; } .ev-tile.sport-nba { --cc: #f59e0b; }
.ev-tile.sport-foot { --cc: #22c55e; } .ev-tile.sport-tennis { --cc: #a3e635; } .ev-tile.sport-autre { --cc: #a855f7; }
.ev-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cc) 65%, transparent); box-shadow: 0 18px 40px color-mix(in srgb, var(--cc) 16%, rgba(0, 0, 0, .35)); }
.ev-media { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--cc) 45%, transparent), transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--cc) 18%, #1a1a20), #121217); }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ev-tile:hover .ev-media img { transform: scale(1.06); }
.ev-media-ico { font-size: 76px; color: var(--cc); opacity: .5; transform: rotate(-10deg); }
.ev-tag, .ev-count { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ev-tag { top: 10px; left: 10px; color: var(--cc); text-transform: uppercase; letter-spacing: .05em; }
.ev-count { bottom: 10px; right: 10px; color: #fff; font-variant-numeric: tabular-nums; }
.ev-body { flex: 1; display: flex; gap: 13px; padding: 14px 16px 12px; }
.ev-date { width: 52px; flex-shrink: 0; align-self: flex-start; padding: 7px 0 6px; border-radius: 14px; text-align: center; background: color-mix(in srgb, var(--cc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent); }
.ev-date b { display: block; font-family: var(--home-display, inherit); font-size: 26px; line-height: 1; font-style: italic; color: var(--cc); }
.ev-date span { display: block; margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.ev-info { min-width: 0; }
.ev-info h3 { margin: 0 0 5px; font-size: 16.5px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.ev-when { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.ev-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #b4b4bc; }
.ev-tile .ev-ics.small { margin: 0 16px 16px; width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { .ev-tile { animation: none !important; } }


/* ===== Page 404 ===== */
.nf { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 28%, rgba(255, 77, 77, .2), transparent 55%), radial-gradient(circle at 85% 90%, rgba(250, 204, 21, .08), transparent 45%); }
.nf > * { position: relative; }
.nf2-stage { margin: 4px 0 0; }
.nf2-code { display: inline-flex; align-items: center; justify-content: center; gap: .02em; font-family: var(--home-display, inherit); font-size: clamp(110px, 26vw, 200px); line-height: .95; font-style: italic; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 3px #ff4d4d; text-shadow: 0 0 60px rgba(255, 77, 77, .35); }
.nf2-card { width: .5em; height: .72em; margin: 0 .05em; border-radius: 10px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: .09em; font-size: inherit; background: linear-gradient(145deg, #ff5a5a, #c81e1e); box-shadow: 0 18px 50px rgba(239, 68, 68, .55), inset 0 0 0 3px rgba(255, 255, 255, .22); transform: rotate(-9deg); animation: nf2Swing 3.6s ease-in-out infinite; -webkit-text-stroke: 0; }
.nf2-card i { font-size: .16em; color: rgba(255, 255, 255, .85); }
@keyframes nf2Swing { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.nf2-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nf h1 { font-family: var(--home-display, inherit); font-size: clamp(34px, 7vw, 52px); font-style: italic; text-transform: uppercase; line-height: 1; }
.nf2-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.nf2-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.nf2-links a:hover { border-color: #ff4d4d; color: #ff4d4d; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .nf2-card { animation: none !important; } }


/* ===== Page d'accès privé ===== */
.gate .gate-form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.gate .auth-field .input { min-height: 50px; border-radius: 14px; font-size: 15px; background: #0d0d10; }
.gate .auth-field .input:focus { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, .22); outline: none; }
.gate .auth-submit { min-height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.gate-msg { min-height: 20px; text-align: center; font-size: 13.5px; font-weight: 700; color: #f87171; }


/* ===== E-mails de compte ===== */
.au-link { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.au-link:hover { color: #ff4d4d; }
.au-forgot { align-self: flex-end; margin: -6px 0 -2px; }
.au-help { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.au-help b { color: var(--text); }
.auth-message.ok { color: #4ade80; }
.pf-mail { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #f59e0b; }
.pf-mail.ok { color: #4ade80; }
.pf-mail-btn { margin-left: 6px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pf-mail-btn:hover:not(:disabled) { border-color: #ff4d4d; color: #ff4d4d; }
.nf [hidden] { display: none !important; }


/* ===== Choisir une image sur l'ordinateur (admin) ===== */
.adm-pick { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: var(--text); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.adm-pick:hover { border-color: #ff4d4d; color: #ff4d4d; }
.composer-imagebar.admin-evimage, #adminImageBar { flex-wrap: wrap; }
.composer-imagebar.admin-evimage input[type="text"], #adminImageBar input[type="text"] { flex: 1 1 180px; min-width: 0; }
