/* NextDay · Panel staff — noir et blanc, arrondi (même DA que le menu staff V2). */
:root { --bg: #0a0a0a; --panel: rgba(255,255,255,.04); --line: rgba(255,255,255,.09); --muted: rgba(255,255,255,.55); --ok: #5ad682; --bad: #ff5a68; --warn: #f5c46b; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: #fff; font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }
svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.kicker { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: rgba(10,10,10,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-title { font-size: 17px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.search-top { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search-top input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 12.5px 'Montserrat'; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.me img { width: 30px; height: 30px; border-radius: 50%; }
.me .grade { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.me a { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 10.5px; }
.me a:hover { background: rgba(255,255,255,.15); }

main { max-width: 1200px; margin: 0 auto; padding: 28px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.6; }
.error { color: var(--bad); }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.result { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.result:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.result .n { font-size: 14px; font-weight: 800; }
.result .s { font-size: 11px; font-weight: 600; color: var(--muted); }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h1 { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; background: rgba(255,255,255,.07); }
.pill.on { background: #fff; color: #0a0a0a; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.online .dot { background: var(--ok); }
.pill.bad { background: rgba(255,90,104,.18); color: #ffb3ba; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { grid-column: span 4; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.card.wide { grid-column: span 8; }
.card.full { grid-column: span 12; }
.card h2 { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 12.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.big { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.money { display: flex; flex-direction: column; gap: 12px; }
.money .row { display: flex; justify-content: space-between; align-items: baseline; }
.money .row span { color: var(--muted); font-size: 12px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 10px 10px; }
td { padding: 10px; border-top: 1px solid var(--line); font-weight: 600; vertical-align: top; }
td.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.08); }
.tag.ban { background: rgba(255,90,104,.2); color: #ffb3ba; }
.tag.kick, .tag.jail { background: rgba(245,196,107,.18); color: #f9dca5; }
.chars { display: flex; gap: 8px; flex-wrap: wrap; }
.chars a { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 700; }
.chars a:hover { background: rgba(255,255,255,.14); }

/* Pages de connexion / refus (rendues par les Pages Functions). */
body.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.box { max-width: 420px; padding: 30px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.box h1 { margin: 8px 0 10px; font-size: 22px; }
.box p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.btn { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 11px; background: #fff; color: #0a0a0a; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 900px) {
  .card, .card.wide { grid-column: span 12; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  main { padding: 16px; }
}

.demo { padding: 8px 16px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: #0a0a0a; }

/* Menu latéral, chiffres, filtres, pagination */
.layout { display: flex; min-height: calc(100vh - 67px); }
.side { width: 220px; flex-shrink: 0; padding: 20px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75); }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.on { background: #fff; color: #0a0a0a; }
.layout main { flex: 1; min-width: 0; margin: 0; max-width: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lnk { font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.3); }
.lnk:hover { border-color: #fff; }
.tag.on { background: rgba(90,214,130,.18); color: #a9efc0; }
.more { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more:hover { color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font: 700 10.5px 'Montserrat'; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
.chip:hover { background: rgba(255,255,255,.12); }
.chip.on { background: #fff; color: #0a0a0a; }
.field { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 12px 'Montserrat'; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 11px; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
}

/* Entreprises / staff */
.result.company { gap: 6px; }
.result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.result .row b { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.okc { color: var(--ok); }
.hero .kicker a:hover { color: #fff; }
td .s { color: var(--muted); font-size: 11px; }
.note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); font-weight: 600; }
