/* =========================================================
   BRASIL+ DAYZ - Premium template stylesheet
   Theme: dark slate + tropical green + gold accents
   ========================================================= */

:root {
    --bm-bg:        #020617;
    --bm-bg-soft:   #0b1226;
    --bm-card:      #0f172a;
    --bm-card-hi:   #131c34;
    --bm-border:    rgba(148, 163, 184, 0.12);
    --bm-border-hi: rgba(148, 163, 184, 0.22);
    --bm-text:      #e2e8f0;
    --bm-muted:     #94a3b8;
    --bm-mute2:     #64748b;
    --bm-green:     #16a34a;
    --bm-green-2:   #22c55e;
    --bm-green-d:   #15803d;
    --bm-gold:      #fbbf24;
    --bm-gold-d:    #f59e0b;
    --bm-red:       #ef4444;
    --bm-purple:    #a855f7;
    --bm-shadow:    0 20px 50px -20px rgba(2, 6, 23, .7);
    --bm-glow-grn:  0 0 30px rgba(34, 197, 94, .35);
    --bm-glow-gld:  0 0 30px rgba(251, 191, 36, .35);
    --bm-radius:    16px;
    --bm-radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bm-bg);
    color: var(--bm-text);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

/* ============ BACKGROUND PATTERN + ORBS ============ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(22,163,74,0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(251,191,36,0.10), transparent 60%),
        radial-gradient(700px 400px at 50% 110%, rgba(34,197,94,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.bm-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    z-index: 0;
    pointer-events: none;
    animation: bm-float 18s ease-in-out infinite;
}
.bm-orb.orb-1 { width: 420px; height: 420px; background: #16a34a; top: -120px; right: -100px; }
.bm-orb.orb-2 { width: 360px; height: 360px; background: #fbbf24; bottom: -120px; left: -120px; animation-delay: -7s; }
.bm-orb.orb-3 { width: 280px; height: 280px; background: #22c55e; top: 40%; left: 35%; opacity: .25; animation-delay: -3s; }

@keyframes bm-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* ============ LAYOUT WRAPPER ============ */
.bm-app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.bm-main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 132px 24px 80px;
    position: relative;
    z-index: 1;
}
@media (max-width: 640px) {
    .bm-main { padding: 96px 16px 60px; }
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 .6em;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; color: var(--bm-muted); }
a { color: var(--bm-green-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bm-green); }

.bm-gradient-text {
    background: linear-gradient(90deg, #22c55e, #16a34a 40%, #fbbf24 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.bm-gold-text { color: var(--bm-gold); }

/* ============ NAV ============ */
/* ===== HEADER 2 NIVEAUX ===== */
.bm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: box-shadow .25s, background .25s;
}
.bm-header.scrolled {
    box-shadow: 0 8px 30px -12px rgba(0,0,0,.7);
}
/* Topbar (niveau 1) */
.bm-topbar {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, .82);
    border-bottom: 1px solid var(--bm-border);
}
.bm-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bm-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.bm-logo-img { height: 40px; width: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); }
.bm-logo .logo-mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--bm-green), var(--bm-gold));
    display: grid;
    place-items: center;
    color: #052e16;
    font-weight: 900;
    box-shadow: 0 8px 20px -6px rgba(22,163,74,.7);
}
.bm-logo .logo-plus { color: var(--bm-gold); }

.bm-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Pastille solde Diamantes */
.bm-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(14,165,233,.08));
    border: 1px solid rgba(56,189,248,.28);
    color: #7dd3fc;
    text-decoration: none;
    font-size: 14px;
    transition: all .18s;
}
.bm-balance-pill:hover { border-color: rgba(56,189,248,.55); box-shadow: 0 0 16px rgba(56,189,248,.2); }
.bm-balance-pill i.fa-gem { color: #38bdf8; }
.bm-balance-pill strong { color: #fff; font-weight: 700; }
.bm-balance-pill .bm-plus-mini {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(56,189,248,.2);
    font-size: 10px;
}
/* Bouton icone (Discord) */
.bm-icon-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bm-border-hi);
    color: var(--bm-muted);
    text-decoration: none;
    transition: all .18s;
}
.bm-icon-discord { background: rgba(88,101,242,.12); border-color: rgba(88,101,242,.35); color: #a5b4fc; }
.bm-icon-discord:hover { background: rgba(88,101,242,.22); }
/* Menu compte */
.bm-account { position: relative; }
.bm-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--bm-border-hi);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .18s;
}
.bm-account-btn:hover { background: rgba(255,255,255,.08); }
.bm-account-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bm-account-btn > i.fa-user { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-green); color: #fff; }
.bm-account-caret { font-size: 11px; color: var(--bm-muted); transition: transform .2s; }
.bm-account-menu.open ~ .bm-account-caret, .bm-account-menu.open + .bm-account-caret { transform: rotate(180deg); }
.bm-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--bm-card);
    border: 1px solid var(--bm-border-hi);
    border-radius: 14px;
    padding: 7px;
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s;
    z-index: 60;
}
.bm-account-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.bm-account-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--bm-text);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s;
}
.bm-account-menu a:hover { background: rgba(255,255,255,.06); }
.bm-account-menu a i { width: 16px; text-align: center; color: var(--bm-muted); }
.bm-account-menu .bm-account-logout { color: #fca5a5; margin-top: 4px; border-top: 1px solid var(--bm-border); padding-top: 11px; }
.bm-account-menu .bm-account-logout i { color: #fca5a5; }

/* Navbar (niveau 2) */
.bm-navbar {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, .55);
    border-bottom: 1px solid var(--bm-border);
}
.bm-nav-links {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    list-style: none;
    height: 48px;
}
.bm-nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-muted);
    transition: color .18s;
    white-space: nowrap;
}
.bm-nav-links a::after {
    content: "";
    position: absolute;
    left: 15px; right: 15px; bottom: 0;
    height: 2px;
    background: var(--bm-green);
    transform: scaleX(0);
    transition: transform .2s;
    border-radius: 2px 2px 0 0;
}
.bm-nav-links a:hover { color: #fff; }
.bm-nav-links a.active { color: #fff; }
.bm-nav-links a.active::after { transform: scaleX(1); }
.bm-nav-links a.is-vip { color: var(--bm-gold); }
.bm-nav-links a.is-vip:hover { color: #fde68a; }
.bm-nav-links a.is-vip::after { background: var(--bm-gold); }

.bm-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bm-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(22,163,74,.12);
    border: 1px solid rgba(34,197,94,.3);
    border-radius: 999px;
    letter-spacing: .04em;
}
.bm-live .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: bm-pulse 2s infinite;
}
@keyframes bm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
    70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.bm-burger {
    display: none;
    background: none;
    border: 1px solid var(--bm-border-hi);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (max-width: 1023px) {
    .bm-navbar { display: none; }
    .bm-burger { display: inline-flex; }
    .bm-main { padding-top: 86px; }
    .bm-account-name { display: none; }
}
.bm-mobile-menu {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(2,6,23,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bm-border);
    padding: 16px 20px 22px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    z-index: 49;
}
.bm-mobile-menu.open { transform: translateY(0); }
.bm-mobile-menu a {
    display: block;
    padding: 12px 14px;
    color: var(--bm-text);
    font-weight: 500;
    border-radius: 8px;
}
.bm-mobile-menu a:hover { background: rgba(255,255,255,.05); }
.bm-mobile-menu a.is-vip { color: var(--bm-gold); }

/* ============ BUTTONS ============ */
.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    line-height: 1;
    font-family: inherit;
}
.bm-btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(22,163,74,.6);
}
.bm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -8px rgba(22,163,74,.8);
    color: #fff;
}
.bm-btn-accent {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f1505;
    box-shadow: 0 10px 30px -10px rgba(251,191,36,.55);
}
.bm-btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -8px rgba(251,191,36,.75);
    color: #1f1505;
}
.bm-btn-ghost {
    background: rgba(255,255,255,.03);
    color: var(--bm-text);
    border-color: var(--bm-border-hi);
}
.bm-btn-ghost:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    border-color: rgba(148,163,184,.35);
}
.bm-btn-danger {
    background: rgba(239,68,68,.12);
    color: #fca5a5;
    border-color: rgba(239,68,68,.3);
}
.bm-btn-danger:hover { background: rgba(239,68,68,.2); color: #fff; }
.bm-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.bm-btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.bm-btn-block { width: 100%; }

/* ============ CARDS ============ */
.bm-card {
    background: linear-gradient(180deg, rgba(15,23,42,.85), rgba(11,18,38,.75));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 26px;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bm-card:hover {
    border-color: var(--bm-border-hi);
}
.bm-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(34,197,94,.35);
    box-shadow: 0 24px 50px -22px rgba(2,6,23,.9), 0 0 0 1px rgba(34,197,94,.15);
}
.bm-card-glow {
    box-shadow: var(--bm-shadow);
}
.bm-card-gold {
    border-color: rgba(251,191,36,.3);
    background: linear-gradient(180deg, rgba(31,21,5,.6), rgba(15,23,42,.85));
    box-shadow: 0 0 0 1px rgba(251,191,36,.15), 0 24px 50px -22px rgba(245,158,11,.35);
}

/* ============ HERO ============ */
.bm-hero {
    position: relative;
    padding: 50px 0 60px;
    text-align: center;
}
.bm-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.25);
    color: #86efac;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 22px;
}
.bm-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 18px;
}
.bm-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--bm-muted);
    max-width: 720px;
    margin: 0 auto 32px;
}
.bm-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ STATS GRID ============ */
.bm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 50px 0;
}
@media (max-width: 900px) {
    .bm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.bm-stat {
    padding: 22px 20px;
    background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(11,18,38,.7));
    border: 1px solid var(--bm-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .2s, border-color .2s;
}
.bm-stat:hover { transform: translateY(-3px); border-color: rgba(34,197,94,.3); }
.bm-stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(22,163,74,.12);
    color: var(--bm-green-2);
    border: 1px solid rgba(34,197,94,.2);
}
.bm-stat-icon.is-gold { background: rgba(251,191,36,.12); color: var(--bm-gold); border-color: rgba(251,191,36,.25); }
.bm-stat-icon.is-red  { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.25); }
.bm-stat-icon.is-prp  { background: rgba(168,85,247,.12); color: #c4b5fd; border-color: rgba(168,85,247,.25); }
.bm-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.bm-stat-label {
    font-size: 13px;
    color: var(--bm-muted);
    margin-top: 4px;
}

/* ============ SECTION HEADER ============ */
.bm-section {
    margin: 60px 0;
}
.bm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.bm-section-head h2 {
    margin: 0;
}
.bm-section-head .sub {
    color: var(--bm-muted);
    margin: 4px 0 0;
}
.bm-section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-green-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bm-section-link:hover { color: var(--bm-gold); }

/* ============ SERVER CARDS ============ */
.bm-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}
.bm-server-card {
    padding: 24px;
    background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(11,18,38,.7));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.bm-server-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bm-green), var(--bm-gold));
    opacity: .6;
}
.bm-server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34,197,94,.4);
    box-shadow: 0 24px 50px -22px rgba(2,6,23,.9), 0 0 0 1px rgba(34,197,94,.15);
}
.bm-server-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}
.bm-server-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.bm-server-meta {
    font-size: 13px;
    color: var(--bm-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.bm-badge-online { background: rgba(34,197,94,.14); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.bm-badge-off    { background: rgba(148,163,184,.14); color: #cbd5e1; border: 1px solid rgba(148,163,184,.3); }
.bm-badge-plat   { background: rgba(59,130,246,.14); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.bm-badge-gold   { background: rgba(251,191,36,.14); color: var(--bm-gold); border: 1px solid rgba(251,191,36,.3); }
.bm-badge-vip    { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.12)); color: var(--bm-gold); border: 1px solid rgba(251,191,36,.4); }

.bm-server-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.bm-server-stats > div {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--bm-border);
    border-radius: 10px;
    padding: 10px 12px;
}
.bm-server-stats .lbl { font-size: 11px; color: var(--bm-mute2); text-transform: uppercase; letter-spacing: .04em; }
.bm-server-stats .val { font-size: 1.15rem; font-weight: 700; color: #fff; margin-top: 2px; }
.bm-server-stats .val .pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: bm-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
}
.bm-server-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.bm-server-actions .bm-btn { flex: 1; }

/* ============ LEADERBOARD TABLE ============ */
.bm-table-wrap {
    background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(11,18,38,.7));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow-x: auto;            /* tables larges scrollables horizontalement (mobile/tablette) */
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(12px);
}
.bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.bm-table thead th {
    text-align: left;
    padding: 14px 16px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--bm-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bm-mute2);
    font-weight: 600;
}
.bm-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148,163,184,.05);
}
.bm-table tbody tr { transition: background .15s; }
.bm-table tbody tr:hover { background: rgba(34,197,94,.04); }
.bm-table tbody tr:last-child td { border-bottom: none; }
.bm-table .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    background: rgba(148,163,184,.08);
    color: #cbd5e1;
}
.bm-table .rank.gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1f1505; box-shadow: 0 4px 14px -4px rgba(251,191,36,.6); }
.bm-table .rank.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0f172a; }
.bm-table .rank.bronze { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.bm-table .player-name { color: #fff; font-weight: 600; }
.bm-table .player-name:hover { color: var(--bm-green-2); }
.bm-table .score { color: var(--bm-green-2); font-weight: 700; }
.bm-table tr.is-me { background: rgba(251,191,36,.06); }

/* ============ SERVER FILTER CHIPS ============ */
.bm-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.bm-chip {
    padding: 8px 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bm-border);
    color: var(--bm-muted);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .18s;
    cursor: pointer;
}
.bm-chip:hover { color: #fff; border-color: var(--bm-border-hi); }
.bm-chip.active {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px -10px rgba(22,163,74,.7);
}

.bm-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--bm-border);
    padding-bottom: 6px;
}
.bm-tab {
    padding: 8px 16px;
    color: var(--bm-muted);
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -7px;
    transition: all .18s;
}
.bm-tab:hover { color: #fff; }
.bm-tab.active {
    color: #fff;
    border-bottom-color: var(--bm-green-2);
}

/* ============ KILLFEED ============ */
.bm-killfeed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bm-kill-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15,23,42,.7);
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    font-size: 14px;
    transition: all .18s;
}
.bm-kill-line:hover { border-color: var(--bm-border-hi); transform: translateX(2px); }
.bm-kill-line .killer { color: var(--bm-green-2); font-weight: 600; }
.bm-kill-line .victim { color: var(--bm-text); }
.bm-kill-line .arrow { color: var(--bm-mute2); margin: 0 6px; }
.bm-kill-line .weapon { color: var(--bm-gold); font-weight: 500; }
.bm-kill-line .dist { color: var(--bm-muted); font-size: 12px; margin-left: 8px; }
.bm-kill-line .meta {
    font-size: 12px;
    color: var(--bm-mute2);
    text-align: right;
    line-height: 1.5;
}
.bm-kill-line .meta .srv { display: block; color: var(--bm-green-2); font-weight: 600; }
.bm-kill-line.is-hs { border-color: rgba(251,191,36,.3); background: linear-gradient(90deg, rgba(251,191,36,.08), rgba(15,23,42,.7) 30%); }
.bm-kill-line.is-hs .weapon::after {
    content: "HEADSHOT";
    margin-left: 8px;
    padding: 2px 6px;
    background: var(--bm-gold);
    color: #1f1505;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: .04em;
}

/* ============ VIP CARDS ============ */
.bm-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    margin: 30px 0;
    align-items: stretch;
}
.bm-vip-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(11,18,38,.85));
    border: 1px solid var(--bm-border);
    border-radius: 20px;
    padding: 30px 26px;
    position: relative;
    transition: all .25s;
    overflow: hidden;
}
.bm-vip-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(34,197,94,0.10), transparent 60%);
    pointer-events: none;
}
.bm-vip-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34,197,94,.4);
    box-shadow: 0 30px 60px -25px rgba(2,6,23,.9), 0 0 0 1px rgba(34,197,94,.2);
}
.bm-vip-card.is-featured {
    border-color: rgba(251,191,36,.5);
    background: linear-gradient(180deg, rgba(31,21,5,.6), rgba(15,23,42,.92));
    box-shadow: 0 0 0 1px rgba(251,191,36,.3), 0 30px 60px -25px rgba(245,158,11,.35);
    transform: scale(1.02);
}
.bm-vip-card.is-featured::before {
    background: radial-gradient(circle at top right, rgba(251,191,36,0.18), transparent 60%);
}
.bm-vip-card.is-featured:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(251,191,36,.4), 0 36px 70px -22px rgba(245,158,11,.55);
}
.bm-vip-pop {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f1505;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    animation: bm-pulse-gold 2.5s ease-in-out infinite;
}
@keyframes bm-pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.6); }
    50% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}
.bm-vip-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: rgba(34,197,94,.12);
    color: var(--bm-green-2);
    border: 1px solid rgba(34,197,94,.3);
    margin-bottom: 16px;
}
.bm-vip-card.is-featured .bm-vip-icon {
    background: rgba(251,191,36,.14);
    color: var(--bm-gold);
    border-color: rgba(251,191,36,.4);
}
/* Image custom (tier VIP / pack Diamantes) : fallback sur l icone si absente. */
.bm-tier-img, .bm-pack-img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(148,163,184,.25);
}
.bm-vip-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.bm-vip-desc {
    color: var(--bm-muted);
    font-size: 14px;
    margin: 0 0 18px;
    min-height: 38px;
}
.bm-vip-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 16px 0 20px;
}
.bm-vip-price .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.bm-vip-price .per {
    color: var(--bm-muted);
    font-size: 14px;
}
.bm-vip-benefits {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}
.bm-vip-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--bm-text);
}
.bm-vip-benefits li i {
    color: var(--bm-green-2);
    margin-top: 3px;
    flex-shrink: 0;
}
.bm-vip-card.is-featured .bm-vip-benefits li i { color: var(--bm-gold); }

/* ============ VIP BANNER ============ */
.bm-vip-banner {
    margin: 60px 0;
    padding: 40px;
    border-radius: var(--bm-radius);
    background:
        linear-gradient(135deg, rgba(251,191,36,.14), rgba(245,158,11,.06) 60%, rgba(15,23,42,.95)),
        radial-gradient(circle at right, rgba(251,191,36,.2), transparent 70%);
    border: 1px solid rgba(251,191,36,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.bm-vip-banner h2 { color: #fde68a; margin: 0 0 8px; }
.bm-vip-banner p { color: rgba(254,243,199,.85); margin: 0; max-width: 620px; }
.bm-vip-banner .crown {
    position: absolute;
    right: -30px; top: 50%;
    transform: translateY(-50%);
    font-size: 180px;
    color: rgba(251,191,36,.06);
    pointer-events: none;
}

/* ============ FORMS ============ */
.bm-form-group {
    display: block;
    margin-bottom: 18px;
}
.bm-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}
.bm-form-group .help {
    font-size: 12px;
    color: var(--bm-mute2);
    margin-top: 4px;
}
.bm-input, .bm-select, .bm-textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(2,6,23,.6);
    border: 1px solid var(--bm-border-hi);
    color: var(--bm-text);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.bm-input:focus, .bm-select:focus, .bm-textarea:focus {
    outline: none;
    border-color: var(--bm-green-2);
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.bm-textarea { resize: vertical; min-height: 90px; }
.bm-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.bm-checkbox input { accent-color: var(--bm-green); width: 16px; height: 16px; }

/* ============ MODAL ============ */
.bm-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 200;
}
.bm-modal-bg.open { display: flex; animation: bm-fade .2s ease; }
@keyframes bm-fade { from { opacity: 0; } to { opacity: 1; } }
.bm-modal {
    background: var(--bm-card);
    border: 1px solid var(--bm-border-hi);
    border-radius: 18px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: bm-slide .25s ease;
}
@keyframes bm-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bm-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: none;
    border: none;
    color: var(--bm-muted);
    font-size: 22px;
    cursor: pointer;
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}
.bm-modal-close:hover { color: #fff; background: rgba(255,255,255,.05); }

/* ============ PROFILE ============ */
.bm-profile-card {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(11,18,38,.75));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
}
.bm-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid var(--bm-green);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bm-bg-soft);
}
.bm-profile-card h2 { margin: 0 0 6px; }
.bm-profile-card .sub { color: var(--bm-muted); margin: 0; }
.bm-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 28px 0;
}
@media (max-width: 768px) {
    .bm-profile-grid { grid-template-columns: 1fr; }
    .bm-profile-card { flex-direction: column; text-align: center; }
}

/* ============ FEATURES ============ */
.bm-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 50px 0;
}
.bm-feature {
    padding: 26px;
    background: rgba(15,23,42,.65);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    transition: all .2s;
}
.bm-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(34,197,94,.3);
    background: rgba(15,23,42,.85);
}
.bm-feature .icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(22,163,74,.08));
    border: 1px solid rgba(34,197,94,.25);
    color: var(--bm-green-2);
    margin-bottom: 14px;
}
.bm-feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.bm-feature p { margin: 0; font-size: 14px; }

/* ============ ALERTS ============ */
.bm-alert {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.bm-alert i { font-size: 18px; flex-shrink: 0; }
.bm-alert-success { background: rgba(34,197,94,.10); color: #86efac; border-color: rgba(34,197,94,.3); }
.bm-alert-danger  { background: rgba(239,68,68,.10); color: #fca5a5; border-color: rgba(239,68,68,.3); }
.bm-alert-info    { background: rgba(59,130,246,.10); color: #93c5fd; border-color: rgba(59,130,246,.3); }
.bm-alert-warning { background: rgba(251,191,36,.10); color: #fde68a; border-color: rgba(251,191,36,.3); }

/* ============ EMPTY STATE ============ */
.bm-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15,23,42,.5);
    border: 1px dashed var(--bm-border-hi);
    border-radius: var(--bm-radius);
    color: var(--bm-muted);
}
.bm-empty i { font-size: 42px; color: var(--bm-mute2); margin-bottom: 14px; }
.bm-empty h3 { color: var(--bm-text); margin: 0 0 8px; }

/* ============ FOOTER ============ */
.bm-footer {
    margin-top: 80px;
    border-top: 1px solid var(--bm-border);
    background: rgba(2,6,23,.6);
    backdrop-filter: blur(12px);
    padding: 50px 24px 28px;
    position: relative;
    z-index: 1;
}
.bm-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.bm-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.bm-footer-col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 16px;
}
.bm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bm-footer-col li {
    margin-bottom: 8px;
}
.bm-footer-col a {
    color: var(--bm-muted);
    font-size: 14px;
}
.bm-footer-col a:hover { color: var(--bm-green-2); }
.bm-footer-bottom {
    border-top: 1px solid var(--bm-border);
    padding-top: 22px;
    color: var(--bm-mute2);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bm-footer-bottom a { color: var(--bm-green-2); }

/* Lang switcher */
.bm-lang-switcher { display: inline-flex; align-items: center; gap: 6px; }
.bm-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 16px;
    line-height: 1;
    opacity: 0.55;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
    text-decoration: none;
}
.bm-lang-flag:hover { opacity: 1; transform: translateY(-1px); }
.bm-lang-flag.active {
    opacity: 1;
    border-color: var(--bm-green);
    background: rgba(22, 163, 74, 0.08);
}

@media (max-width: 768px) {
    .bm-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .bm-footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .bm-footer-grid { grid-template-columns: 1fr; }
}

/* ============ FADE IN ============ */
.bm-fade-in {
    animation: bm-fadeUp .6s ease both;
}
@keyframes bm-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bm-fade-in.d-1 { animation-delay: .05s; }
.bm-fade-in.d-2 { animation-delay: .1s; }
.bm-fade-in.d-3 { animation-delay: .15s; }
.bm-fade-in.d-4 { animation-delay: .2s; }

/* ============ HELPERS ============ */
.bm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) {
    .bm-grid-2, .bm-grid-3 { grid-template-columns: 1fr; }
}
.bm-text-c { text-align: center; }
.bm-text-r { text-align: right; }
.bm-flex { display: flex; }
.bm-flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.bm-mt-2 { margin-top: 16px; }
.bm-mt-4 { margin-top: 32px; }
.bm-mb-2 { margin-bottom: 16px; }
.bm-mb-4 { margin-bottom: 32px; }
.bm-muted { color: var(--bm-muted); }
.bm-tiny { font-size: 12px; }
.bm-fw-700 { font-weight: 700; }

.bm-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.bm-pagination a, .bm-pagination span {
    padding: 8px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bm-border);
    color: var(--bm-muted);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.bm-pagination a:hover { color: #fff; border-color: var(--bm-border-hi); }
.bm-pagination .active {
    background: linear-gradient(135deg, var(--bm-green), var(--bm-green-d));
    color: #fff;
    border-color: transparent;
}

/* ============ MOBILE OPTIMIZATIONS ============ */
@media (max-width: 640px) {
    .bm-hero { padding: 20px 0 30px; }
    .bm-hero-cta { flex-direction: column; align-items: stretch; }
    .bm-hero-cta .bm-btn { width: 100%; }
    .bm-section { margin: 40px 0; }
    .bm-vip-card.is-featured { transform: none; }
    .bm-vip-card.is-featured:hover { transform: translateY(-4px); }
    .bm-table thead { display: none; }
    .bm-table tbody tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid var(--bm-border);
    }
    .bm-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 4px;
        border: none;
    }
    .bm-table tbody td::before {
        content: attr(data-label);
        color: var(--bm-mute2);
        font-size: 12px;
        text-transform: uppercase;
    }
    .bm-kill-line {
        grid-template-columns: 1fr;
    }
    .bm-kill-line .meta { text-align: left; }
}

/* ====== V2 : animations live killfeed + Charts cards ====== */
@keyframes bmSlideInTop {
    0%   { opacity: 0; transform: translateY(-12px) scale(.97); }
    100% { opacity: 1; transform: translateY(0)     scale(1);   }
}
@keyframes bmSlideOutBottom {
    0%   { opacity: 1; max-height: 200px; }
    100% { opacity: 0; max-height: 0;   padding-top:0; padding-bottom:0; margin:0; }
}
.bm-slide-in  { animation: bmSlideInTop 0.45s cubic-bezier(.4,.2,.2,1) both; }
.bm-slide-out { animation: bmSlideOutBottom 0.35s ease both; overflow:hidden; }

/* Charts cards */
.bm-card canvas { max-width: 100%; }

/* Rank colors */
.rank.gold   { background: rgba(251,191,36,.18); color: #fbbf24; border-color: rgba(251,191,36,.45); }
.rank.silver { background: rgba(203,213,225,.18); color: #cbd5e1; border-color: rgba(203,213,225,.45); }
.rank.bronze { background: rgba(161,98,7,.18);   color: #fcd34d; border-color: rgba(161,98,7,.45);   }

/* ============ V3 : Content cards (news / events / gallery) ============ */
.bm-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.bm-content-card {
    background: var(--bm-card);
    border: 1px solid var(--bm-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease;
}
.bm-content-card:hover { transform: translateY(-3px); border-color: var(--bm-border-hi); }
.bm-content-cover {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(15,23,42,.20));
    background-size: cover;
    background-position: center;
    display: block;
    border-bottom: 1px solid var(--bm-border);
}
.bm-content-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bm-content-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.bm-content-excerpt { color: var(--bm-muted); font-size: .92rem; line-height: 1.5; margin: 0; }
.bm-content-meta { display: flex; gap: 12px; align-items: center; color: var(--bm-mute2); font-size: 12px; margin-top: auto; }
.bm-content-meta a { color: var(--bm-green-2); }
.bm-content-meta .badge { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }

.bm-news-detail {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bm-card);
    border: 1px solid var(--bm-border);
    border-radius: 16px;
    padding: 28px 32px 36px;
}
.bm-news-detail-cover {
    width: calc(100% + 64px);
    margin: -28px -32px 24px;
    aspect-ratio: 16 / 7;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}
.bm-news-detail h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.bm-news-detail .bm-news-meta { color: var(--bm-mute2); font-size: 13px; margin: 0 0 20px; display: flex; gap: 14px; }
.bm-news-detail .bm-rich-content { color: var(--bm-text); line-height: 1.7; }
.bm-news-detail .bm-rich-content h2 { font-size: 1.4rem; margin: 24px 0 10px; color: #fff; }
.bm-news-detail .bm-rich-content h3 { font-size: 1.15rem; margin: 20px 0 8px; color: #fff; }
.bm-news-detail .bm-rich-content p  { margin: 0 0 14px; }
.bm-news-detail .bm-rich-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.bm-news-detail .bm-rich-content a { color: var(--bm-green-2); }
.bm-news-detail .bm-rich-content ul,
.bm-news-detail .bm-rich-content ol { margin: 12px 0 16px; padding-left: 24px; }
.bm-news-detail .bm-rich-content li { margin: 4px 0; }
.bm-news-detail .bm-rich-content blockquote {
    border-left: 3px solid var(--bm-green-2);
    padding: 4px 16px;
    margin: 16px 0;
    color: var(--bm-muted);
    background: rgba(34,197,94,.04);
}

/* Event card */
.bm-event-card {
    background: var(--bm-card);
    border: 1px solid var(--bm-border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bm-event-card .bm-event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bm-event-card .bm-event-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 0; }
.bm-event-card .bm-event-date  { color: var(--bm-green-2); font-weight: 600; font-size: .9rem; }
.bm-event-card .bm-event-desc  { color: var(--bm-muted); font-size: .9rem; line-height: 1.5; margin: 0; }
.bm-event-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(34,197,94,.16);
    color: var(--bm-green-2);
    border: 1px solid rgba(34,197,94,.35);
}

/* Gallery */
.bm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.bm-gallery-item {
    background: var(--bm-card);
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bm-gallery-media {
    aspect-ratio: 16 / 9;
    background: #0a0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bm-gallery-media img,
.bm-gallery-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.bm-gallery-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.bm-gallery-caption { color: #e2e8f0; font-size: .92rem; margin: 0; }
.bm-gallery-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 12px; color: var(--bm-mute2); font-size: 12px; }
.bm-vote-btn {
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.32);
    color: var(--bm-green-2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.bm-vote-btn[disabled], .bm-vote-btn.voted { opacity: .6; cursor: default; }

.bm-video-embed { width: 100%; height: 100%; border: 0; }

/* Subtabs (content -> news/events/pages) */
.bm-subtabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--bm-border);
    margin: 0 0 18px;
    flex-wrap: wrap;
}
.bm-subtab {
    padding: 8px 16px;
    color: var(--bm-mute2);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.bm-subtab:hover { color: #fff; }
.bm-subtab.active { color: #fff; border-bottom-color: var(--bm-green-2); }

/* =========================================================
   RAFFINEMENTS PREMIUM (v5) - profondeur, accents, finition
   ========================================================= */

/* Titres de section : barre d'accent verticale + meilleure hierarchie */
.bm-section-head h2 {
    position: relative;
    padding-left: 16px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
}
.bm-section-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 0.85em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bm-green-2), var(--bm-green-d));
    box-shadow: 0 0 12px rgba(34,197,94,.5);
}

/* Cards : liseré supérieur lumineux au hover + glow plus riche */
.bm-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,.25), transparent);
    border-radius: var(--bm-radius) var(--bm-radius) 0 0;
    opacity: .6;
    pointer-events: none;
}
.bm-card-hover { cursor: pointer; }
.bm-card-hover::before {
    background: linear-gradient(90deg, transparent, rgba(34,197,94,.5), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.bm-card-hover:hover::before { opacity: 1; }

/* Hero : halo radial derriere le titre + tag plus vivant */
.bm-hero { padding: 64px 0 56px; }
.bm-hero::before {
    content: "";
    position: absolute;
    top: 10%; left: 50%;
    transform: translateX(-50%);
    width: min(680px, 90%); height: 320px;
    background: radial-gradient(ellipse at center, rgba(34,197,94,.16), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}
.bm-hero-tag {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px -8px rgba(34,197,94,.4);
}
.bm-hero-title { letter-spacing: -0.03em; line-height: 1.05; }

/* Gradient text plus riche (vert -> or) */
.bm-gradient-text {
    background: linear-gradient(120deg, #4ade80 0%, #22c55e 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Boutons : depth + shine au hover */
.bm-btn { font-weight: 700; letter-spacing: .01em; }
.bm-btn-primary {
    box-shadow: 0 8px 20px -8px rgba(22,163,74,.6);
}
.bm-btn-primary:hover {
    box-shadow: 0 12px 28px -8px rgba(22,163,74,.75);
    transform: translateY(-1px);
}
.bm-btn-accent { box-shadow: 0 8px 20px -8px rgba(245,158,11,.55); }
.bm-btn-accent:hover { transform: translateY(-1px); }

/* Stats : valeur en gradient + icone plus presente */
.bm-stat { transition: transform .2s, border-color .2s; }
.bm-stat:hover { transform: translateY(-3px); border-color: var(--bm-border-hi); }
.bm-stat-value {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Badges : un peu plus de presence */
.bm-badge { font-weight: 700; letter-spacing: .02em; }

/* Tables : lignes plus lisibles au hover */
.bm-table tbody tr { transition: background .12s; }
.bm-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* Empty states : plus elegants */
.bm-empty {
    padding: 48px 24px;
    text-align: center;
}
.bm-empty i {
    font-size: 2.4rem;
    color: var(--bm-mute2);
    margin-bottom: 14px;
    opacity: .6;
}

/* Animation fade-in plus douce */
.bm-fade-in { animation: bmFadeUp .5s ease both; }
@keyframes bmFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   ADMIN PANEL (layout dedie : topbar + sidebar + content)
   Utilise par includes/admin_layout.php (pages/site-admin.php)
   ========================================================= */
:root {
    --bm-admin-topbar-h: 58px;
    --bm-admin-sidebar-w: 250px;
}

/* Le body admin n utilise pas .bm-app : on gere le layout via topbar + shell */
body.bm-admin-body { min-height: 100vh; }

/* ---------- Topbar admin (fine) ---------- */
.bm-admin-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--bm-admin-topbar-h);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bm-border);
}
.bm-admin-topbar-left,
.bm-admin-topbar-right { display: flex; align-items: center; gap: 12px; }

.bm-admin-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--bm-border);
    color: var(--bm-text);
    width: 38px; height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}
.bm-admin-burger:hover { border-color: var(--bm-border-hi); }

.bm-admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
}
.bm-admin-logo:hover { color: #fff; }
.bm-admin-logo-img { height: 30px; width: auto; border-radius: 6px; }
.bm-admin-logo .logo-mark {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--bm-green-2);
}
.bm-admin-logo .logo-plus { color: var(--bm-gold); }
.bm-admin-badge {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bm-green-2);
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .3);
    padding: 2px 7px;
    border-radius: 6px;
}

.bm-admin-viewsite {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bm-muted);
    font-size: .85rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid var(--bm-border);
    transition: all .18s;
}
.bm-admin-viewsite:hover { color: #fff; border-color: var(--bm-border-hi); background: rgba(148,163,184,.06); }

.bm-admin-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--bm-text);
    font-weight: 600;
}
.bm-admin-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bm-border-hi); }

.bm-admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--bm-border);
    color: var(--bm-muted);
    transition: all .18s;
}
.bm-admin-logout:hover { color: var(--bm-red); border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); }

/* ---------- Shell (sidebar + content) ---------- */
.bm-admin-shell {
    display: flex;
    align-items: flex-start;
    padding-top: var(--bm-admin-topbar-h);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---------- Sidebar verticale fixe ---------- */
.bm-admin-sidebar {
    position: fixed;
    top: var(--bm-admin-topbar-h);
    left: 0;
    bottom: 0;
    width: var(--bm-admin-sidebar-w);
    overflow-y: auto;
    padding: 18px 12px 40px;
    background: rgba(11, 18, 38, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--bm-border);
    z-index: 40;
}
.bm-admin-sidebar::-webkit-scrollbar { width: 8px; }
.bm-admin-sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,.18); border-radius: 8px; }

.bm-admin-nav-group { margin-bottom: 18px; }
.bm-admin-nav-group-title {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bm-mute2);
    padding: 0 12px 6px;
}
.bm-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--bm-muted);
    font-size: .9rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.bm-admin-nav-link i { width: 18px; text-align: center; font-size: .95rem; }
.bm-admin-nav-link:hover { color: #fff; background: rgba(148,163,184,.07); }
.bm-admin-nav-link.active {
    color: #fff;
    background: rgba(34, 197, 94, .12);
    border-left-color: var(--bm-green-2);
}
.bm-admin-nav-link.active i { color: var(--bm-green-2); }

/* Overlay pour fermer la sidebar en mobile */
.bm-admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: var(--bm-admin-topbar-h) 0 0 0;
    background: rgba(2, 6, 23, .6);
    z-index: 35;
}
.bm-admin-sidebar-overlay.open { display: block; }

/* ---------- Zone de contenu ---------- */
.bm-admin-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--bm-admin-sidebar-w);
    width: calc(100% - var(--bm-admin-sidebar-w));
    max-width: 1200px;
    padding: 26px 32px 70px;
}
.bm-admin-pagehead { margin-bottom: 20px; }
.bm-admin-pagehead-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

/* ---------- Responsive : sidebar repliable (burger) ---------- */
@media (max-width: 1024px) {
    .bm-admin-content { padding: 22px 22px 60px; }
}
@media (max-width: 900px) {
    .bm-admin-burger { display: inline-flex; align-items: center; justify-content: center; }
    .bm-admin-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
    }
    .bm-admin-sidebar.open { transform: translateX(0); }
    .bm-admin-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 16px 56px;
    }
}

/* =========================================================
   HOME REFONTE PREMIUM (v8) - hero image, stats band,
   server rows, podium top players, killfeed rows
   ========================================================= */

/* ---------- HERO avec image de fond + overlay ---------- */
.bm-hero-landing {
    margin: -132px -24px 0;        /* deborde sur le padding-top du main */
    padding: 168px 24px 72px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    isolation: isolate;
}
.bm-hero-landing.has-bg {
    background-image: var(--bm-hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bm-hero-landing.has-bg::before { display: none; } /* on neutralise le halo radial v5 quand image */
.bm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(2,6,23,.55) 0%, rgba(2,6,23,.78) 55%, rgba(2,6,23,.96) 100%),
        radial-gradient(900px 420px at 50% 0%, rgba(22,163,74,.25), transparent 70%);
    pointer-events: none;
}
.bm-hero-inner { position: relative; z-index: 1; }
@media (max-width: 640px) {
    .bm-hero-landing {
        margin: -96px -16px 0;
        padding: 120px 16px 48px;
        border-radius: 0 0 18px 18px;
    }
    .bm-hero-landing .bm-hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}

/* ---------- STATS band : icone dans carre arrondi colore ---------- */
.bm-stats-band { margin-top: 36px; }

/* ---------- SERVER LIST (cartes riches empilees) ---------- */
.bm-server-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bm-server-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(11,18,38,.7));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    position: relative;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bm-server-row::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bm-green-2), var(--bm-gold));
    opacity: .7;
}
.bm-server-row:hover {
    transform: translateY(-3px);
    border-color: rgba(34,197,94,.4);
    box-shadow: 0 24px 50px -22px rgba(2,6,23,.9), 0 0 0 1px rgba(34,197,94,.15);
}
.bm-server-thumb {
    width: 64px; height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 26px;
    overflow: hidden;
    border: 1px solid var(--bm-border-hi);
    flex-shrink: 0;
}
.bm-server-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-server-body { min-width: 0; }
.bm-server-row .bm-server-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.bm-server-row .bm-server-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bm-server-facts {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--bm-muted);
}
.bm-server-facts .fact { display: inline-flex; align-items: center; gap: 6px; }
.bm-server-facts .k { color: var(--bm-mute2); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.bm-server-facts .pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 2px;
    animation: bm-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
}
.bm-server-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.bm-server-cta .bm-btn { white-space: nowrap; justify-content: flex-start; }
@media (max-width: 720px) {
    .bm-server-row {
        grid-template-columns: 52px 1fr;
        gap: 14px;
    }
    .bm-server-thumb { width: 52px; height: 52px; font-size: 21px; }
    .bm-server-cta {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .bm-server-cta .bm-btn { flex: 1; justify-content: center; }
}

/* ---------- PODIUM top joueurs ---------- */
.bm-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.bm-podium-card {
    position: relative;
    text-align: center;
    padding: 30px 18px 22px;
    background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(11,18,38,.72));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bm-podium-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(2,6,23,.9); }
.bm-podium-card.is-gold   { border-color: rgba(251,191,36,.45); box-shadow: 0 0 0 1px rgba(251,191,36,.18), 0 24px 50px -22px rgba(245,158,11,.3); }
.bm-podium-card.is-silver { border-color: rgba(203,213,225,.35); }
.bm-podium-card.is-bronze { border-color: rgba(249,115,22,.35); }
.bm-podium-rank {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    background: rgba(148,163,184,.12);
    color: #cbd5e1;
}
.bm-podium-rank.is-gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1f1505; box-shadow: 0 4px 14px -4px rgba(251,191,36,.6); }
.bm-podium-rank.is-silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0f172a; }
.bm-podium-rank.is-bronze { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.bm-podium-avatar {
    width: 84px; height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--bm-bg-soft);
    border: 3px solid var(--bm-border-hi);
    font-size: 32px;
    color: var(--bm-mute2);
}
.bm-podium-card.is-gold   .bm-podium-avatar { border-color: var(--bm-gold); }
.bm-podium-card.is-silver .bm-podium-avatar { border-color: #cbd5e1; }
.bm-podium-card.is-bronze .bm-podium-avatar { border-color: #f97316; }
.bm-podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-podium-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}
.bm-podium-kills {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--bm-green-2);
    line-height: 1;
}
.bm-podium-kills span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--bm-mute2);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 4px;
}
.bm-podium-kd { margin-top: 10px; font-size: 13px; color: var(--bm-muted); }
.bm-podium-kd strong { color: #fff; }
@media (max-width: 720px) {
    .bm-podium { grid-template-columns: 1fr; }
}

/* ---------- KILLFEED rows refonte ---------- */
.bm-kill-line .bm-kill-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.bm-kill-line .wicon {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(34,197,94,.12);
    color: var(--bm-green-2);
    font-size: 12px;
    flex-shrink: 0;
}
.bm-kill-line.is-hs .wicon { background: rgba(251,191,36,.14); color: var(--bm-gold); }
.bm-kill-line .meta { display: flex; align-items: center; gap: 12px; }
.bm-kill-line .meta .dist {
    display: inline-block;
    color: var(--bm-text);
    font-weight: 600;
    font-size: 12px;
}
.bm-kill-line .meta .srv { display: inline; color: var(--bm-green-2); font-weight: 600; }
.bm-kill-line .meta .ago { color: var(--bm-mute2); }
@media (max-width: 560px) {
    .bm-kill-line .meta .dist { display: none; }   /* cacher la distance si trop etroit */
    .bm-kill-line .meta { gap: 8px; }
}

/* =========================================================
   RECORDS (recordmen do site)
   ========================================================= */
.bm-records-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 820px) {
    .bm-records-grid { grid-template-columns: 1fr; gap: 16px; }
}
.bm-record-card { padding: 22px; }
.bm-record-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bm-border);
}
.bm-record-head h3 { margin: 0; font-size: 1.05rem; }
.bm-record-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex-shrink: 0;
}
.bm-record-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bm-record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background .15s;
}
.bm-record-item:hover { background: rgba(255,255,255,.025); }
.bm-record-item.is-top {
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.18);
}
.bm-record-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    background: rgba(148,163,184,.08);
    color: #cbd5e1;
    flex-shrink: 0;
}
.bm-record-rank.gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1f1505; box-shadow: 0 4px 14px -4px rgba(251,191,36,.6); }
.bm-record-rank.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0f172a; }
.bm-record-rank.bronze { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.bm-record-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--bm-border);
    background: rgba(148,163,184,.08);
}
.bm-record-avatar-ph {
    display: grid;
    place-items: center;
    color: var(--bm-mute2);
    font-size: 14px;
}
.bm-record-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-record-user {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bm-record-sub { font-size: 11px; color: var(--bm-mute2); }
.bm-record-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--bm-green-2);
    flex-shrink: 0;
    white-space: nowrap;
}
.bm-record-item.is-top .bm-record-value { color: var(--bm-gold); }

/* =========================================================
   CONQUISTAS / BADGES (perfil)
   ========================================================= */
.bm-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 820px) { .bm-badge-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 440px) { .bm-badge-grid { grid-template-columns: 1fr; } }
.bm-ach {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--bm-border);
    background: linear-gradient(180deg, rgba(15,23,42,.6), rgba(11,18,38,.5));
    opacity: .55;
    filter: grayscale(.7);
    transition: transform .2s, border-color .2s, opacity .2s, filter .2s;
}
.bm-ach.is-on {
    opacity: 1;
    filter: none;
    border-color: rgba(34,197,94,.3);
    box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 16px 36px -22px rgba(34,197,94,.5);
}
.bm-ach.is-on:hover { transform: translateY(-3px); }
.bm-ach-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(148,163,184,.1);
    color: var(--bm-mute2);
    border: 1px solid var(--bm-border);
}
.bm-ach.is-on .bm-ach-icon {
    background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(251,191,36,.12));
    color: var(--bm-gold);
    border-color: rgba(251,191,36,.35);
}
.bm-ach-body { min-width: 0; }
.bm-ach-name {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bm-ach-check { color: var(--bm-green-2); font-size: 12px; }
.bm-ach-desc { font-size: 12px; color: var(--bm-muted); margin-top: 3px; line-height: 1.4; }
.bm-ach-progress {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bm-mute2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =========================================================
   MAPA INTERATIVO (kills geolocalizados)
   ========================================================= */
/* Bandeau "reglement requis" (owner only) */
.bm-pay-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(251,191,36,.18), rgba(239,68,68,.14));
    border-bottom: 1px solid rgba(251,191,36,.4);
    color: #fde68a; padding: 10px 18px; font-size: .9rem; font-weight: 600;
}
.bm-pay-banner i { color: #fbbf24; }
.bm-pay-banner span { flex: 1; min-width: 220px; }
.bm-pay-banner-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fbbf24; color: #1a1205; padding: 7px 14px; border-radius: 8px;
    font-weight: 700; text-decoration: none; white-space: nowrap; transition: .15s;
}
.bm-pay-banner-btn:hover { background: #fcd34d; }

.bm-map-card { padding: 18px; }
.bm-map-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--bm-muted);
}
.bm-map-toolbar .bm-map-srv { color: #fff; font-weight: 600; }
.bm-map-toolbar i { color: var(--bm-green-2); margin-right: 4px; }
.bm-map-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.bm-map-toggle input { accent-color: var(--bm-green); }
.bm-map-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 760px;
    margin: 0 auto;
    background: #0a0a14;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    overflow: hidden;
}
.bm-map-img {
    width: 100%;
    height: 100%;
    /* fill (pas contain) : l image carree occupe exactement 100%x100% de la box,
       meme repere que .bm-map-points (inset:0) => pas de decalage des points. */
    object-fit: fill;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.bm-map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}
.bm-map-lines line { stroke: rgba(251,191,36,.5); stroke-width: .25; }
.bm-map-points { position: absolute; inset: 0; pointer-events: none; }
.bm-map-pt {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: auto;
}
.bm-map-pt.pt-killer {
    width: 11px; height: 11px;
    background: #22c55e;
    border: 2px solid #052e16;
    box-shadow: 0 0 8px rgba(34,197,94,.7);
    cursor: pointer;
    padding: 0;
    transition: transform .12s;
    z-index: 3;
}
.bm-map-pt.pt-killer:hover,
.bm-map-pt.pt-killer:focus-visible {
    transform: translate(-50%, -50%) scale(1.5);
    outline: none;
    z-index: 5;
}
.bm-map-pt.pt-killer.is-hs {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251,191,36,.8);
}
.bm-map-pt.pt-victim {
    width: 7px; height: 7px;
    background: #f87171;
    border: 1px solid #450a0a;
    opacity: .8;
    z-index: 2;
}
.bm-map-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: rgba(2,6,23,.95);
    border: 1px solid var(--bm-border-hi);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    box-shadow: var(--bm-shadow);
}
.bm-map-tooltip .bm-map-tip-meta { color: var(--bm-green-2); font-weight: 600; }
.bm-map-tooltip .bm-map-tip-ago { color: var(--bm-mute2); font-size: 11px; }
.bm-map-overlay-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--bm-mute2);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
.bm-map-overlay-empty i { margin-right: 6px; }
.bm-map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--bm-muted);
}
.bm-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bm-map-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.bm-map-dot.dot-killer { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.7); }
.bm-map-dot.dot-victim { background: #f87171; }

/* =========================================================
   PASSE RESPONSIVE MOBILE (v11) - corrections ciblees
   Toutes les regles ci-dessous sont en max-width => aucun
   impact sur le rendu desktop.
   ========================================================= */

/* ---- Topbar : empeche le debordement horizontal quand logo + solde + compte
        + burger sont serres. Le nom du site tronque proprement. ---- */
@media (max-width: 640px) {
    .bm-topbar-inner { padding: 10px 14px; gap: 8px; }
    .bm-topbar-right { gap: 7px; }
    .bm-logo { min-width: 0; font-size: 1.05rem; gap: 9px; }
    .bm-logo span:not(.logo-mark):not(.logo-plus) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .bm-balance-pill { padding: 6px 7px 6px 11px; font-size: 13px; }
}

/* ---- Onglets : scroll horizontal propre en mobile (au lieu de wrapper sur
        plusieurs lignes). Concerne profil (5), leaderboard (6), subtabs. ---- */
@media (max-width: 768px) {
    .bm-tabs,
    .bm-subtabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
    }
    .bm-tabs::-webkit-scrollbar,
    .bm-subtabs::-webkit-scrollbar { display: none; }
    .bm-tab,
    .bm-subtab { white-space: nowrap; flex: 0 0 auto; }
}

/* ---- Killfeed : empeche un pseudo nom tres long de pousser la largeur
        (debordement horizontal) sur petit ecran. ---- */
@media (max-width: 640px) {
    .bm-kill-line { min-width: 0; }
    .bm-kill-line > div { min-width: 0; }
    .bm-kill-line .killer,
    .bm-kill-line .victim { word-break: break-word; overflow-wrap: anywhere; }
}

/* ---- Modales : padding reduit + plein ecran utile en tres petit mobile. ---- */
@media (max-width: 480px) {
    .bm-modal-bg { padding: 12px; }
    .bm-modal { padding: 22px 18px; border-radius: 16px; }
}

/* ---- Stats band a 3 cartes (tempo-online, profil) : 2 colonnes a 900px
        On garde 2 colonnes meme en petit mobile (coherent avec la maquette
        validee : stats en 2x2 sur telephone). ---- */

/* =========================================================
   ADMIN : tables larges (sans data-label) -> on garde le rendu
   tableau et on scrolle horizontalement plutot que le mode "carte"
   global (qui necessite des data-label, absents ici).
   ========================================================= */
@media (max-width: 640px) {
    body.bm-admin-body .bm-table { min-width: 560px; }
    body.bm-admin-body .bm-table thead { display: table-header-group; }
    body.bm-admin-body .bm-table tbody tr { display: table-row; }
    body.bm-admin-body .bm-table tbody td {
        display: table-cell;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(148,163,184,.05);
        justify-content: flex-start;
    }
    body.bm-admin-body .bm-table tbody td::before { content: none; }
}

/* =========================================================
   PROXIMO EVENTO : bandeau countdown (home)
   ========================================================= */
.bm-event-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 6px 0 26px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(22,163,74,.10), rgba(15,23,42,.6));
    border: 1px solid rgba(34,197,94,.28);
    border-radius: var(--bm-radius);
    text-decoration: none;
    color: var(--bm-text);
    box-shadow: var(--bm-shadow);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bm-event-banner:hover {
    border-color: rgba(34,197,94,.5);
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -22px rgba(22,163,74,.4);
}
.bm-event-banner-clock {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(34,197,94,.14);
    color: var(--bm-green-2);
    font-size: 1.4rem;
}
.bm-event-banner-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bm-event-banner-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--bm-green-2);
    text-transform: uppercase;
}
.bm-event-banner-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bm-event-banner-when {
    font-size: .82rem;
    color: var(--bm-muted);
}
.bm-countdown {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bm-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    padding: 6px 4px;
    background: rgba(2,6,23,.55);
    border: 1px solid var(--bm-border);
    border-radius: 10px;
}
.bm-countdown-block .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bm-countdown-block .lbl {
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--bm-mute2);
    margin-top: 4px;
    text-transform: uppercase;
}
.bm-countdown-sep {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bm-mute2);
    padding-bottom: 12px;
}
.bm-countdown-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(34,197,94,.16);
    border: 1px solid rgba(34,197,94,.4);
    color: var(--bm-green-2);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .06em;
}
.bm-countdown-live i { font-size: 8px; animation: bmPulse 1.4s infinite; }
@keyframes bmPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 720px) {
    .bm-event-banner { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .bm-event-banner-info { flex: 1 1 100%; order: 2; }
    .bm-event-banner-clock { order: 1; width: 40px; height: 40px; font-size: 1.15rem; }
    .bm-countdown { order: 3; flex: 1 1 100%; justify-content: center; }
    .bm-countdown-block { min-width: 42px; }
    .bm-countdown-block .num { font-size: 1.25rem; }
}

/* =========================================================
   ONGLETS (tabs) — reutilisable
   ========================================================= */
.bm-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 4px;
    flex-wrap: wrap;
}
.bm-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bm-border);
    color: var(--bm-muted);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .18s;
}
.bm-tab:hover { color: #fff; border-color: var(--bm-border-hi); }
.bm-tab.active {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px -10px rgba(22,163,74,.7);
}

/* =========================================================
   HALL DA FAMA MENSAL : prix + selecteur de mois + podium kills
   ========================================================= */
.bm-hof-prize {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(56,189,248,.10);
    border: 1px solid rgba(56,189,248,.3);
    color: #7dd3fc;
    font-weight: 600;
    font-size: .9rem;
}
.bm-hof-prize i { color: #38bdf8; }
.bm-month-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.bm-kill-podium {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: end;
    gap: 14px;
    margin-top: 10px;
}
.bm-kill-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 20px;
    background: linear-gradient(180deg, var(--bm-card-hi), var(--bm-card));
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
}
.bm-kill-podium-card.rank-1 { padding-top: 30px; padding-bottom: 28px; }
.bm-kill-podium-card.is-gold {
    border-color: rgba(251,191,36,.45);
    box-shadow: 0 0 0 1px rgba(251,191,36,.18), 0 24px 50px -22px rgba(245,158,11,.35);
}
.bm-kill-podium-card.is-silver { border-color: rgba(203,213,225,.35); }
.bm-kill-podium-card.is-bronze { border-color: rgba(249,115,22,.35); }
.bm-kill-podium-medal {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.bm-kill-podium-medal.is-gold   { background: rgba(251,191,36,.16); color: var(--bm-gold); }
.bm-kill-podium-medal.is-silver { background: rgba(203,213,225,.16); color: #cbd5e1; }
.bm-kill-podium-medal.is-bronze { background: rgba(249,115,22,.16); color: #fb923c; }
.bm-kill-podium-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.bm-kill-podium-label.is-gold   { color: var(--bm-gold); }
.bm-kill-podium-label.is-silver { color: #cbd5e1; }
.bm-kill-podium-label.is-bronze { color: #fb923c; }
.bm-kill-podium-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: grid; place-items: center;
    background: rgba(255,255,255,.04);
    border: 2px solid var(--bm-border-hi);
    margin-bottom: 12px;
}
.bm-kill-podium-card.rank-1 .bm-kill-podium-avatar { width: 90px; height: 90px; }
.bm-kill-podium-avatar.is-gold   { border-color: rgba(251,191,36,.6); }
.bm-kill-podium-avatar.is-silver { border-color: rgba(203,213,225,.5); }
.bm-kill-podium-avatar.is-bronze { border-color: rgba(249,115,22,.5); }
.bm-kill-podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-kill-podium-avatar i { font-size: 1.6rem; color: var(--bm-mute2); }
.bm-kill-podium-name {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    word-break: break-word;
}
.bm-kill-podium-name .bm-badge-vip { margin-top: 6px; }
.bm-kill-podium-kills {
    margin-top: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bm-green-2);
    line-height: 1;
}
.bm-kill-podium-kills span {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--bm-mute2);
    text-transform: uppercase;
    margin-top: 5px;
}

@media (max-width: 640px) {
    .bm-kill-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .bm-kill-podium-card.rank-1 { order: -1; }
    .bm-kill-podium-card.rank-1 { padding-top: 22px; padding-bottom: 20px; }
    .bm-kill-podium-card.rank-1 .bm-kill-podium-avatar { width: 72px; height: 72px; }
}


/* ===== VIDEO YOUTUBE (Conheca o servidor) ===== */
.bm-video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--bm-radius);
    overflow: hidden;
    border: 1px solid var(--bm-border-hi);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(34,197,94,.12);
    background: #000;
}
.bm-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   CAIXA MISTERIOSA (loot box)
   ============================================================ */
.bm-lootbox-ticketbar {
    max-width: 520px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(192,132,252,.12), rgba(56,189,248,.08));
    border: 1px solid rgba(192,132,252,.30);
    border-radius: 16px;
    text-align: center;
}
.bm-lootbox-ticketbar-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #e9d5ff;
}
.bm-lootbox-ticketbar-main i { color: #c084fc; }
.bm-lootbox-ticket-count {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    margin-left: 4px;
}
.bm-lootbox-ticketbar-sub {
    margin-top: 6px;
    font-size: .82rem;
    color: var(--bm-muted);
}

.bm-lootbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}
.bm-lootbox-card {
    background: var(--bm-card);
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.bm-lootbox-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
    filter: drop-shadow(0 10px 22px rgba(192,132,252,.35));
}
.bm-lootbox-img-fallback {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c084fc;
    background: rgba(192,132,252,.12);
    border: 1px solid rgba(192,132,252,.3);
    border-radius: 18px;
}
.bm-lootbox-name { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }
.bm-lootbox-desc { margin: 0 0 14px; color: var(--bm-muted); font-size: .9rem; }
.bm-lootbox-rewards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
    text-align: left;
}
.bm-lootbox-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(2,6,23,.4);
    border: 1px solid rgba(148,163,184,.10);
    border-left: 3px solid var(--rw-color, #94a3b8);
    border-radius: 8px;
    font-size: .85rem;
}
.bm-lootbox-reward i { color: var(--rw-color, #94a3b8); width: 18px; text-align: center; }
.bm-lootbox-reward-label { flex: 1; color: #e2e8f0; font-weight: 600; }
.bm-lootbox-reward-rarity {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rw-color, #94a3b8);
    font-weight: 700;
}
.bm-lootbox-reward-pct { color: var(--bm-muted); font-size: .78rem; min-width: 44px; text-align: right; }
.bm-lootbox-open-btn { margin-top: auto; }

/* ----- Modal reveal ----- */
.bm-lootbox-modal { max-width: 640px; text-align: center; }
.bm-lootbox-roll-wrap { padding: 10px 0; }
.bm-lootbox-roll-viewport {
    position: relative;
    overflow: hidden;
    height: 150px;
    border-radius: 14px;
    background: rgba(2,6,23,.6);
    border: 1px solid rgba(148,163,184,.16);
}
.bm-lootbox-roll-marker {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(#fbbf24, #c084fc);
    z-index: 3;
    box-shadow: 0 0 14px rgba(251,191,36,.8);
}
.bm-lootbox-roll-track {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    display: flex;
    gap: 10px;
    padding: 14px 0;
    will-change: transform;
}
.bm-lootbox-roll-cell {
    flex: 0 0 110px;
    width: 110px;
    height: 122px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(15,23,42,.9);
    border: 1px solid var(--rc-color, #94a3b8);
    border-top: 3px solid var(--rc-color, #94a3b8);
}
.bm-lootbox-roll-cell i { font-size: 1.8rem; color: var(--rc-color, #94a3b8); }
.bm-lootbox-roll-cell span {
    font-size: .72rem;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.1;
    max-height: 2.4em;
    overflow: hidden;
}

.bm-lootbox-result { padding: 14px 0; animation: bmLootboxPop .4s ease; }
.bm-lootbox-result-icon {
    width: 96px; height: 96px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    border: 3px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 28px -4px currentColor;
}
.bm-lootbox-result-title { margin: 0 0 4px; font-size: 1.6rem; font-weight: 900; }
.bm-lootbox-result-label { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.bm-lootbox-result-status { margin: 0 0 20px; }
@keyframes bmLootboxPop {
    0% { transform: scale(.7); opacity: 0; }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 600px) {
    .bm-lootbox-roll-cell { flex: 0 0 90px; width: 90px; }
}

/* =========================================================
   Autocomplete classname DayZ (admin webshop)
   Dropdown en position:fixed (injecte dans <body>) pour echapper
   au clipping des cartes / lignes de bundle.
   ========================================================= */
.bm-ac-wrap { position: relative; }
.bm-ac-dropdown {
    position: fixed;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bm-card-hi);
    border: 1px solid var(--bm-border-hi);
    border-radius: var(--bm-radius-sm);
    box-shadow: var(--bm-shadow);
    z-index: 99999;
    padding: 4px;
}
.bm-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background .12s;
}
.bm-ac-item:hover { background: rgba(34, 197, 94, .14); }
.bm-ac-item-name { color: var(--bm-text); font-weight: 600; }
.bm-ac-item-class {
    margin-left: auto;
    color: var(--bm-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.76rem;
}
.bm-ac-hint {
    padding: 8px 10px;
    color: var(--bm-muted);
    font-size: 0.8rem;
    font-style: italic;
}
