@import "tailwindcss";

/* OMBRES & LUMIERES — Mafiaz.World — Design System v2 */

@font-face { font-family: 'UnifrakturCook'; src: url('/fonts/UnifrakturCook-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('/fonts/BebasNeue-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/fonts/Quicksand-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/fonts/Quicksand-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/fonts/Quicksand-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Core palette */
  --color-black: #0a0a0a;
  --color-red: #c41e1e; --color-red-dark: #8b0000; --color-red-light: #e63946;
  --color-gold: #d4a843; --color-gold-light: #f0d68a; --color-gold-dark: #a07a28;
  --color-white: #ffffff;

  /* Backgrounds — layered depth system */
  --bg-primary: #0c0c10;
  --bg-secondary: #121216;
  --bg-tertiary: #1a1a22;
  --bg-panel: #14141c;
  --bg-header: #0a0a10;
  --bg-card: #16161e;
  --bg-card-hover: #1c1c28;
  --bg-elevated: #1e1e2a;
  --bg-surface: rgba(255,255,255,0.04);
  --bg-surface-bright: rgba(255,255,255,0.08);

  /* Text — improved readability */
  --text-primary: #f5f5f7;
  --text-secondary: #b8b8c4;
  --text-muted: #7a7a88;
  --text-faint: #50505c;

  /* Borders */
  --border-dark: #2a2a38;
  --border-medium: #3a3a4a;
  --border-gold: rgba(212,168,67,0.25);
  --border-red: rgba(196,30,30,0.25);

  /* Layout */
  --header-height: 56px; --footer-height: 208px; --sidebar-width: 300px;

  /* Typography */
  --font-title: 'UnifrakturCook', 'Old English Text MT', serif;
  --font-subtitle: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-body: 'Quicksand', 'Nunito', sans-serif;

  /* Panels — v2 mockup tokens */
  --panel-gradient: linear-gradient(180deg, rgba(18,18,24,0.92), rgba(12,12,16,0.96));
  --shadow-inset-gold: inset 0 1px 0 rgba(212,168,67,0.08);
  --shadow-panel-drop: 0 8px 24px rgba(0,0,0,0.4);
  --gold-gradient: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 50%, var(--color-gold-dark));
  --gold-gradient-soft: linear-gradient(180deg, rgba(212,168,67,0.08), rgba(212,168,67,0.02));

  /* Markers map — game-icons SVG palette (refonte markers Phase 1). */
  /* Joueur / Territoire */
  --marker-gold:        #facc15;
  --marker-gold-dark:   #d4af37;
  /* Forces de l'ordre */
  --marker-police-mun:  #60a5fa;
  --marker-police-nat:  #1e40af;
  --marker-bac:         #0c1e4d;
  --marker-stups:       #0a0a0a;
  --marker-gign:        #374151;
  --marker-fbi:         #0a0a0a;
  --marker-dea:         #0a0a0a;
  /* Urgences */
  --marker-emergency:   #ef4444;
  /* POI sémantique */
  --marker-residence:   #22c55e;
  --marker-commerce:    #facc15;
  --marker-production:  #f97316;
  --marker-public:      #cfd2d6;
  --marker-illegal:     #a855f7;
  --marker-rackete:     #dc2626;
  /* Missions */
  --marker-mission-crime:      #dc2626;
  --marker-mission-politique:  #a855f7;
  --marker-mission-redemption: #22c55e;
  /* États joueur spéciaux */
  --marker-state-warning: #dc2626;
  --marker-state-info:    #facc15;
}

/* Mafiaz markers — SVG game-icons (Phase 1). */
.mafiaz-marker { line-height: 0; }
.mafiaz-marker svg { width: 100%; height: 100%; display: block; }

html { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { background: var(--bg-primary); color: var(--text-primary); margin: 0; min-height: 100vh; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }
::selection { background: var(--color-gold); color: var(--color-black); }

/* Typography */
.font-gothic { font-family: var(--font-title); }
.font-impact { font-family: var(--font-subtitle); letter-spacing: 0.05em; text-transform: uppercase; }
.text-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Glow effects */
.glow-red { text-shadow: 0 0 10px rgba(196,30,30,0.5), 0 0 20px rgba(196,30,30,0.3); }
.glow-gold { text-shadow: 0 0 10px rgba(212,168,67,0.5), 0 0 20px rgba(212,168,67,0.3); }
.glow-red-box { box-shadow: 0 0 20px rgba(196,30,30,0.15), 0 0 60px rgba(196,30,30,0.05); }
.glow-gold-box { box-shadow: 0 0 20px rgba(212,168,67,0.12), 0 0 60px rgba(212,168,67,0.04); }

/* Card system */
.panel-glass { background: rgba(14,14,18,0.8); backdrop-filter: blur(12px); border: 1px solid var(--border-dark); }

/* v2 mockup rounded panel — used by sidebars, main, footer */
.panel-rounded {
  background: var(--panel-gradient);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  box-shadow: var(--shadow-inset-gold), var(--shadow-panel-drop);
  position: relative;
  overflow: hidden auto;
}
.panel-scroll { overflow-y: auto; overflow-x: hidden; }
.panel-scroll::-webkit-scrollbar { width: 5px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }

/* Header ::after gold/red split hairline (mockup signature) */
.game-shell > header:first-child {
  position: relative;
}
.game-shell > header:first-child::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212,168,67,0.5),
    rgba(196,30,30,0.3),
    rgba(212,168,67,0.5),
    transparent);
  pointer-events: none;
  z-index: 12;
}

/* Very light wash over the bandeau Facebook background — we want the image
   to read FULLY through the interface, same as the mockup. The panels
   themselves (.panel-rounded at 92-96% opacity) give the readable look,
   so the veil here is only a subtle warmth + a whisper of darkening for
   edge-of-screen legibility. NOTE: no `position: relative; z-index: 1` on
   .game-shell > * — that rule clobbers fixed overlays (Phone / Lightbox). */
.game-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(12,12,16,0.18) 0%, rgba(8,8,12,0.28) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Footer column base — the 5-col grid itself is in Footer.tsx; per-col
   shared behaviour (min-height, last col no border) goes here. */
.footer-col { min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.footer-col:last-child { border-right: 0 !important; }

/* ========== Footer column head/title (v2 mockup f-head / f-title) ========== */
.footer-col .font-impact {
  font-family: var(--font-subtitle);
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== Histoire story tabs (Crime / Politique / Rédemption) ==========
   v2 mockup lines 292-305. Centered vertically, short "evolue" meta above. */
.story {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4px 0;
  min-height: 0;
}
.story-meta {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-subtitle);
  letter-spacing: .16em;
}
.story-meta b { color: var(--color-gold-light); }
.story-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.story-tab {
  text-align: center; cursor: pointer;
  padding: 10px 4px;
  border-radius: 10px;
  transition: .2s;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit;
}
.story-tab:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.story-tab svg { width: 22px; height: 22px; margin-bottom: 4px; }
.story-tab .n {
  font-size: 11px;
  font-family: var(--font-subtitle);
  letter-spacing: .14em;
  display: block;
  margin-top: 4px;
}
.story-tab-c {
  color: var(--color-red-light);
  border-color: var(--border-red);
  box-shadow: inset 0 1px 0 rgba(230,57,70,0.08);
}
.story-tab-c:hover:not([disabled]) {
  background: linear-gradient(180deg, rgba(196,30,30,0.08), var(--bg-card-hover));
  border-color: var(--color-red);
}
.story-tab-p {
  color: var(--color-gold-light);
  border-color: var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(240,214,138,0.08);
}
.story-tab-p:hover:not([disabled]) {
  background: linear-gradient(180deg, rgba(212,168,67,0.08), var(--bg-card-hover));
  border-color: var(--color-gold);
}
.story-tab-r {
  color: #8bffa8;
  border-color: rgba(96,224,132,0.2);
  box-shadow: inset 0 1px 0 rgba(139,255,168,0.08);
}
.story-tab-r:hover:not([disabled]) {
  background: linear-gradient(180deg, rgba(96,224,132,0.08), var(--bg-card-hover));
  border-color: rgba(96,224,132,0.5);
}
.story-tab-locked {
  opacity: 0.35; cursor: not-allowed; color: var(--text-muted);
  border-color: var(--border-dark);
}

/* ========== Chat messages (v2 mockup chat-msg) ========== */
.chat-msg {
  font-size: 12px;
  padding: 6px 0;
  color: var(--text-secondary);
  line-height: 1.4;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
}
.chat-msg:last-child { border: 0; }
.chat-msg .u {
  font-weight: 700;
  font-family: var(--font-subtitle);
  letter-spacing: .06em;
}
.chat-msg .u.me { color: var(--color-gold-light); }
.chat-msg .u.p1 { color: #ff88c0; }
.chat-msg .u.p2 { color: #8cc8ff; }
.chat-msg .t {
  color: var(--text-faint);
  font-size: 10px;
  margin-left: 6px;
}
.chat-msg .b {
  color: var(--text-primary);
  margin-top: 2px;
  font-size: 12px;
}

/* ========== Chat input (v2 mockup chat-input + chat-send) ========== */
.chat-input {
  margin-top: auto;
  display: flex; gap: 6px; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  transition: .15s;
}
.chat-input:focus-within {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.chat-input input {
  flex: 1;
  background: transparent; border: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.chat-input input::placeholder { color: var(--text-faint); }
.chat-send {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--gold-gradient);
  color: #1a1a22; border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: .15s;
  box-shadow: 0 2px 6px rgba(212,168,67,0.2);
  flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.05); }

/* ========== f-switch tabs (v2 mockup) ========== */
.f-switch {
  display: flex; gap: 2px;
  background: rgba(0,0,0,0.4);
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border-dark);
}
.f-switch button {
  border: 0; background: transparent;
  color: var(--text-muted);
  padding: 4px 9px; font-size: 10px;
  border-radius: 5px; cursor: pointer;
  font-family: var(--font-subtitle);
  letter-spacing: .12em;
  transition: .15s;
}
.f-switch button:hover { color: var(--text-secondary); }
.f-switch button.on {
  background: rgba(212,168,67,0.12);
  color: var(--color-gold-light);
  box-shadow: inset 0 0 0 1px var(--border-gold);
}

/* .f-head row + .f-title text-with-icon — used by every footer column to
   give the same 'title + inline SVG' signature as the v2 mockup. */
.f-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; flex-shrink: 0;
}
.f-title {
  font-family: var(--font-subtitle);
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.f-title svg {
  width: 13px; height: 13px;
  color: var(--color-gold);
  flex-shrink: 0;
}
.f-title-btn {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px 2px; margin: 0;
  transition: color .15s;
}
.f-title-btn:hover { color: var(--color-gold-light); }

/* ========== Gestion Gang / Cartel top tabs (v2 mockup gest-tabs) ========== */
.gest-tabs {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}
.gest-tabs::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: .3s;
}
.gest-tab {
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  font-family: var(--font-subtitle);
  letter-spacing: .14em;
  font-size: 11px;
  color: var(--text-muted);
  transition: .15s;
  border-radius: 6px;
}
.gest-tab svg { width: 13px; height: 13px; flex-shrink: 0; }
.gest-tab:hover { color: var(--text-secondary); }
.gest-tab-on { color: var(--color-gold-light); }
.gest-tab-on svg { color: var(--color-gold); }

/* Empire head (gang name + availability) */
.empire-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 6px 0 8px 0;
}
.gang-name {
  color: var(--color-gold-light);
  font-family: var(--font-subtitle);
  letter-spacing: .1em;
  font-size: 15px;
}
.availability {
  font-size: 10px; color: var(--text-muted);
  font-family: var(--font-subtitle); letter-spacing: .15em;
}
.new-order {
  width: 100%; margin: 4px 0;
  padding: 9px;
  background: linear-gradient(90deg, rgba(212,168,67,0.18), rgba(212,168,67,0.05));
  border: 1px dashed var(--border-gold);
  color: var(--color-gold-light);
  border-radius: 8px;
  font-family: var(--font-subtitle); letter-spacing: .16em;
  font-size: 11px; cursor: pointer;
  transition: .15s;
}
.new-order:hover {
  background: linear-gradient(90deg, rgba(212,168,67,0.28), rgba(212,168,67,0.08));
  border-style: solid;
}

/* Variante rouge — Rejoindre un Gang, Rejoindre un Cartel, Dissoudre, etc. */
.new-order.is-red {
  background: linear-gradient(90deg, rgba(196,30,30,0.18), rgba(196,30,30,0.05));
  border: 1px dashed var(--border-red);
  color: var(--color-red-light);
}
.new-order.is-red:hover {
  background: linear-gradient(90deg, rgba(196,30,30,0.28), rgba(196,30,30,0.08));
  border-style: solid;
}

/* Jauge chaleur cartel (0..100) */
.heat-bar {
  height: 10px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; position: relative;
  border: 1px solid var(--border-dark);
}
.heat-bar > .heat-fill {
  height: 100%;
  background: linear-gradient(90deg, #4aa852 0%, #d4a843 40%, #e17b2c 70%, #c41e1e 100%);
  transition: width 0.4s ease;
}
.heat-bar-label {
  font-family: var(--font-subtitle); letter-spacing: .12em;
  font-size: 10px; color: var(--text-muted);
}

/* Overlay prison cartel (sur Tab Gestion Cartel) */
.cartel-prison-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,16,0.92);
  z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; justify-content: center; align-items: stretch;
  border-radius: 10px;
  border: 1px solid var(--color-red);
}
.cartel-prison-overlay h3 {
  font-family: var(--font-subtitle); letter-spacing: .18em;
  color: var(--color-red-light); text-align: center;
  font-size: 13px; margin-bottom: 4px;
}
.cartel-prison-overlay p {
  font-size: 11px; color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 8px;
}

/* Specialist card */
.specialist-card {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  font-size: 11px;
}
.specialist-card .spec-role {
  font-family: var(--font-subtitle); letter-spacing: .1em;
  color: var(--color-gold-light); font-size: 10px;
}
.specialist-card .spec-skill {
  color: var(--text-secondary);
}

/* Reinforcement marker (carte) */
.reinforcement-marker {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-gold-dark);
  box-shadow: 0 0 6px rgba(212,168,67,0.6);
}
.orders-list {
  font-size: 11px; color: var(--text-muted);
  padding: 4px 0; font-style: italic;
  font-family: var(--font-subtitle); letter-spacing: .1em;
}

/* Cartel join table */
.cartel-join {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px;
}
.cartel-join-head {
  display: grid;
  grid-template-columns: 1fr 48px 40px 22px 68px;
  gap: 6px; align-items: center;
  padding: 4px 6px;
  color: var(--text-muted);
  font-family: var(--font-subtitle); letter-spacing: .12em; font-size: 9px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.cartel-row {
  display: grid;
  grid-template-columns: 1fr 48px 40px 22px 68px;
  gap: 6px; align-items: center;
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: .15s;
}
.cartel-row:hover { border-color: var(--border-gold); background: rgba(212,168,67,0.04); }
.cartel-row .c-name {
  color: var(--text-primary); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cartel-row .c-xp {
  color: var(--color-gold-light); font-variant-numeric: tabular-nums;
  font-family: var(--font-subtitle); font-size: 10px; text-align: right;
}
.cartel-row .c-mem {
  color: var(--text-secondary); font-variant-numeric: tabular-nums;
  font-size: 10px; text-align: right;
}
.cartel-row .c-info {
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  display: grid; place-items: center;
  cursor: pointer; transition: .15s;
}
.cartel-row .c-info:hover {
  border-color: var(--border-gold); color: var(--color-gold-light);
}
.cartel-row .c-join {
  padding: 4px 8px; border-radius: 5px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  color: #1a1a22; font-weight: 700; border: 0;
  font-family: var(--font-subtitle); letter-spacing: .1em; font-size: 10px;
  cursor: pointer; transition: .15s;
}
.cartel-row .c-join:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(212,168,67,0.35);
}

/* ========== Sidebar profile avatar (v2 mockup) ========== */
.profile-avatar-wrap {
  display: grid; place-items: center;
  padding-top: 4px;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--gold-gradient);
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(212,168,67,0.1),
    0 0 0 1px var(--color-gold-dark),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 2px 0 rgba(255,255,255,0.3);
  color: #1a1a22;
}
.profile-avatar::before {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(212,168,67,0.25);
  animation: rotBorder 40s linear infinite;
  pointer-events: none;
}
@keyframes rotBorder { to { transform: rotate(360deg); } }
.profile-avatar-letter {
  font-size: 44px; font-weight: 700; line-height: 1;
  font-family: var(--font-subtitle);
}
.profile-avatar-tier {
  position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-red-light), var(--color-red-dark));
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  border: 2px solid var(--bg-panel);
  font-family: var(--font-subtitle);
  letter-spacing: .14em;
  box-shadow: 0 2px 6px rgba(196,30,30,0.4);
  white-space: nowrap;
}

/* Section title with signature gold bar — aside > section titles */
.game-middle aside .font-impact,
.game-middle aside h3,
.game-middle aside h4 {
  position: relative;
  display: flex; align-items: center; gap: 8px;
}

/* ========== Chip-clock + header actions (v2 mockup) ========== */
.chip-clock {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--color-gold-light);
  font-family: var(--font-subtitle);
  letter-spacing: .14em;
  font-size: 14px;
  background: linear-gradient(180deg, rgba(18,18,22,0.95), rgba(10,10,14,0.95));
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 0 1px rgba(10,10,14,0.8), 0 4px 12px rgba(0,0,0,0.4);
}

/* Header top-right icon buttons + avatar wrap */
.header-actions button[aria-label="Messages"],
.header-actions button[aria-label="Notifications"],
.header-actions > button:not([aria-label="Ouvrir le téléphone"]) {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  transition: .15s;
  position: relative;
}
.header-actions button[aria-label="Messages"]:hover,
.header-actions button[aria-label="Notifications"]:hover {
  border-color: var(--border-gold);
  color: var(--color-gold-light);
  background: rgba(212,168,67,0.04);
}

/* Mando avatar wrap (v2) */
.avatar-wrap-v2 {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  cursor: pointer; transition: .15s;
}
.avatar-wrap-v2:hover {
  border-color: var(--border-gold);
  background: rgba(212,168,67,0.04);
}
.avatar-wrap-v2 .avatar-name {
  font-family: var(--font-subtitle);
  letter-spacing: .1em;
  color: var(--color-gold-light);
}
.avatar-wrap-v2 .avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold-gradient);
  display: grid; place-items: center;
  font-weight: 700; color: #1a1a22;
  border: 1px solid var(--color-gold);
  box-shadow: 0 2px 8px rgba(212,168,67,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========== Phone column (v2 mockup, 1:1) ========== */
.phone-col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 12px;
  background: transparent; border: 0; cursor: pointer;
  width: 100%; height: 100%;
  transition: transform .18s;
}
.phone-col:hover { transform: scale(1.03); }
.phone-frame {
  width: 78px; height: 124px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1a22, #060609);
  border: 2px solid var(--border-gold);
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.6),
    inset 0 2px 4px rgba(212,168,67,0.1),
    0 0 24px rgba(212,168,67,0.08);
  color: var(--color-gold-light);
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.4));
}
.phone-frame::before {
  content: ''; position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}
.phone-frame::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(212,168,67,0.06), transparent 60%);
  pointer-events: none;
}
.phone-label {
  font-family: var(--font-subtitle); letter-spacing: .14em;
  font-size: 10px; color: var(--text-muted);
}
.phone-stats {
  display: flex; gap: 8px;
  font-size: 10px; color: var(--text-muted);
  font-family: monospace;
}
.phone-stats .bat { color: #8bffa8; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.phone-stats .sig { color: var(--color-gold-light); display: inline-flex; align-items: center; gap: 3px; }

/* ========== SidebarLeft tabs (v2 mockup, lines 87-91) ========== */
/* Sticky: the nav stays at the top of the sidebar while the tab content
   below it scrolls freely. Solid gradient bg so content scrolling
   underneath doesn't show through. */
.sl-tabs {
  display: flex; gap: 2px;
  padding: 4px;
  border-bottom: 1px solid var(--border-dark);
  border-radius: 15px 15px 0 0;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(18,18,24,0.98), rgba(14,14,22,0.96));
  backdrop-filter: blur(10px);
}
.sl-tab {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-subtitle);
  letter-spacing: .12em;
  border-radius: 10px;
  transition: .2s;
  border: 0;
  background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  white-space: nowrap;
  min-width: 0;
}
.sl-tab:hover:not(.sl-tab-active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}
.sl-tab-active {
  color: var(--color-gold-light);
  background: linear-gradient(180deg, rgba(212,168,67,0.15), rgba(212,168,67,0.04));
  box-shadow: inset 0 0 0 1px var(--border-gold);
}
.sl-tab svg {
  width: 18px; height: 18px; display: block;
  flex-shrink: 0;
}
.sl-tab > span {
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ========== SidebarLeft sections (v2 mockup) ========== */
.sl-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-dark);
}
.sl-section:last-child { border: 0; }
.sl-section-title {
  font-family: var(--font-subtitle);
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.sl-section-title::before {
  content: '';
  width: 4px; height: 14px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212,168,67,0.4);
}

/* Sidebar gauge (horizontal row — mockup parity) */
.sl-gauge { margin-bottom: 14px; }
.sl-gauge:last-child { margin-bottom: 0; }
.sl-gauge-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 5px; font-size: 13px;
}
.sl-gauge-label { color: var(--text-secondary); }
.sl-gauge-val {
  color: var(--color-gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-subtitle);
  letter-spacing: .05em;
}
.sl-gauge-hot .sl-gauge-val { color: var(--color-red-light); }
.sl-gauge-cool .sl-gauge-val { color: #b0c8e0; }
.sl-gauge-bar {
  height: 6px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), var(--bg-tertiary));
  border: 1px solid var(--border-dark);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.sl-gauge-fill {
  height: 100%; border-radius: 3px; position: relative;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold) 60%, var(--color-gold-light));
  box-shadow: 0 0 6px rgba(212,168,67,0.4);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.sl-gauge-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
  border-radius: 3px;
}
.sl-gauge-hot .sl-gauge-fill {
  background: linear-gradient(90deg, var(--color-red-dark), var(--color-red) 60%, var(--color-red-light));
  box-shadow: 0 0 10px rgba(196,30,30,0.5);
}
.sl-gauge-cool .sl-gauge-fill {
  background: linear-gradient(90deg, #2a4055, #6a8cab, #b0c8e0);
  box-shadow: 0 0 6px rgba(140,170,200,0.3);
}

/* Progression tier cards */
.sl-progression {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  transition: .15s;
  cursor: default;
}
.sl-progression:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.sl-progression-name { font-size: 13px; color: var(--text-secondary); }
.sl-p-tier {
  font-family: var(--font-subtitle);
  letter-spacing: .12em;
  padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
}
.sl-p-tier-crime {
  color: var(--color-red-light);
  background: linear-gradient(180deg, rgba(230,57,70,0.15), rgba(196,30,30,0.05));
  border: 1px solid var(--border-red);
}
.sl-p-tier-pol {
  color: var(--color-gold-light);
  background: linear-gradient(180deg, rgba(240,214,138,0.15), rgba(212,168,67,0.04));
  border: 1px solid var(--border-gold);
}
.sl-p-tier-red {
  color: #8bffa8;
  background: linear-gradient(180deg, rgba(140,255,168,0.12), rgba(96,224,132,0.03));
  border: 1px solid rgba(96,224,132,0.25);
}

/* Casier / Dossier pénal */
.sl-casier { display: flex; flex-direction: column; gap: 6px; }
.sl-casier-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.sl-casier-row:last-child { border: 0; }
.sl-casier-row .k { display: flex; align-items: center; gap: 8px; }
.sl-casier-row .v { font-weight: 600; color: var(--text-primary); }
.tag-free {
  color: #8bffa8;
  background: rgba(96,224,132,0.08);
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-family: var(--font-subtitle);
  letter-spacing: .15em;
  border: 1px solid rgba(96,224,132,0.2);
}
.tag-jail {
  color: var(--color-red-light);
  background: rgba(196,30,30,0.12);
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-family: var(--font-subtitle);
  letter-spacing: .15em;
  border: 1px solid var(--border-red);
}

/* ========== SidebarRight sections (v2 mockup) ========== */
.sr-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-dark);
}
.sr-section:last-child { border: 0; }
.sr-section-title {
  font-family: var(--font-subtitle);
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.sr-section-title::before {
  content: '';
  width: 4px; height: 14px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212,168,67,0.4);
}

/* Sub-tabs inside a section (finance tabs, parc tabs) — v2 mockup finance-tabs */
.sr-sub-tabs {
  display: flex; gap: 3px;
  background: rgba(0,0,0,0.4);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border-dark);
}
.sr-sub-tab {
  flex: 1;
  padding: 7px 6px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-subtitle);
  letter-spacing: .14em;
  transition: .2s;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.sr-sub-tab:hover:not(.sr-sub-tab-active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}
.sr-sub-tab-active {
  background: linear-gradient(180deg, rgba(212,168,67,0.18), rgba(212,168,67,0.05));
  color: var(--color-gold-light);
  box-shadow: inset 0 0 0 1px var(--border-gold);
}

/* Rivaux row (v2 mockup) */
.rival-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  font-size: 12px;
  transition: .15s;
}
.rival-row:hover { border-color: var(--border-gold); }
.rival-name { color: var(--text-secondary); font-weight: 600; }
.rival-status {
  font-family: var(--font-subtitle);
  letter-spacing: .1em;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
}
.rival-status-tense {
  color: var(--color-red-light);
  background: rgba(196,30,30,0.1);
  border: 1px solid var(--border-red);
}
.rival-status-ally {
  color: #8bffa8;
  background: rgba(96,224,132,0.08);
  border: 1px solid rgba(96,224,132,0.2);
}
.rival-status-neutral {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
}

/* Fortune box (v2 mockup) */
.fortune-box {
  margin-top: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(212,168,67,0.02));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(212,168,67,0.15);
}
.fortune-box::before {
  content: ''; position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle, rgba(212,168,67,0.1), transparent 50%);
  pointer-events: none;
}
.fortune-box-label {
  font-family: var(--font-subtitle); letter-spacing: .16em;
  color: var(--color-gold-light); font-size: 13px;
  position: relative; z-index: 1;
}
.fortune-box-value {
  font-size: 22px; font-weight: 700;
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-subtitle);
  letter-spacing: .04em;
  text-shadow: 0 0 20px rgba(212,168,67,0.3);
  position: relative; z-index: 1;
}

.card-dark { background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 12px; transition: all 0.2s ease; }
.card-dark:hover { background: var(--bg-card-hover); border-color: var(--border-medium); }
.card-bright { background: var(--bg-elevated); border: 1px solid var(--border-medium); border-radius: 12px; }
.card-accent-red { background: linear-gradient(135deg, rgba(196,30,30,0.08), rgba(196,30,30,0.02)); border: 1px solid rgba(196,30,30,0.2); border-radius: 12px; }
.card-accent-gold { background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(212,168,67,0.01)); border: 1px solid rgba(212,168,67,0.15); border-radius: 12px; }

/* Gradient borders */
.border-gradient-gold {
  border: 1px solid transparent;
  background-origin: border-box; background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, var(--color-gold-dark), transparent, var(--color-gold));
}
.border-gradient-red {
  border: 1px solid transparent;
  background-origin: border-box; background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, var(--color-red-dark), transparent, var(--color-red));
}

/* Section dividers */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-dark) 20%, var(--color-gold-dark) 50%, var(--border-dark) 80%, transparent); }
.section-divider-red { height: 1px; background: linear-gradient(90deg, transparent, var(--border-dark) 20%, var(--color-red-dark) 50%, var(--border-dark) 80%, transparent); }

/* Hero backgrounds */
.bg-hero-pattern {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196,30,30,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,67,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(196,30,30,0.04) 0%, transparent 50%);
}
.bg-subtle-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Button system */
.btn-primary { background: linear-gradient(135deg, var(--color-red-dark), var(--color-red)); color: white; font-weight: 700; border-radius: 8px; box-shadow: 0 0 20px rgba(196,30,30,0.3), inset 0 1px 0 rgba(255,255,255,0.1); transition: all 0.2s ease; }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(196,30,30,0.4), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-gold { background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold)); color: var(--color-black); font-weight: 700; border-radius: 8px; box-shadow: 0 0 20px rgba(212,168,67,0.2); transition: all 0.2s ease; }
.btn-gold:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(212,168,67,0.35); }
.btn-ghost { background: var(--bg-surface); border: 1px solid var(--border-dark); color: var(--text-secondary); border-radius: 8px; transition: all 0.2s ease; }
.btn-ghost:hover { background: var(--bg-surface-bright); border-color: var(--border-medium); color: var(--text-primary); }

/* Badge system */
.badge-red { background: rgba(196,30,30,0.15); color: var(--color-red-light); border: 1px solid rgba(196,30,30,0.25); }
.badge-gold { background: rgba(212,168,67,0.12); color: var(--color-gold-light); border: 1px solid rgba(212,168,67,0.2); }
.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }

/* Leaflet */
.leaflet-container { background: var(--bg-primary) !important; }
.leaflet-tile { filter: brightness(0.6) contrast(1.1) saturate(0.3) hue-rotate(180deg) !important; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(196,30,30,0.2); } 50% { box-shadow: 0 0 40px rgba(196,30,30,0.35); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.4); opacity: 0; } }
@keyframes pulseline { 50% { opacity: 0.3; } }

/* OrderBar action tooltips — gang (red) + cartel (gold) variants */
.order-bar-tip-gang {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 5px;
  background: rgba(10,10,14,0.98);
  border: 1px solid var(--border-red);
  color: var(--color-red-light);
  font-family: var(--font-subtitle); font-size: 10px; letter-spacing: .1em;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s; z-index: 10;
}
.order-bar-tip-cartel {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 5px;
  background: rgba(10,10,14,0.98);
  border: 1px solid var(--border-gold);
  color: var(--color-gold-light);
  font-family: var(--font-subtitle); font-size: 10px; letter-spacing: .1em;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s; z-index: 10;
}
button:hover > .order-bar-tip-gang,
button:hover > .order-bar-tip-cartel { opacity: 1; }

/* ========== Journal Footer Column ========== */
.journal-col-refresh { position: relative; overflow: hidden; }
.journal-col-refresh > *:not(.journal-bg) { position: relative; z-index: 1; }

.journal-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86%; height: auto;
  opacity: 0.045; pointer-events: none;
  color: var(--color-gold-light); z-index: 0;
}

.journal-shortcut {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 14px;
  background: linear-gradient(135deg, rgba(196,30,30,0.14), rgba(212,168,67,0.04));
  border: 1px solid var(--border-red); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; transition: .15s;
  position: relative; overflow: hidden; text-align: left; width: 100%;
}
.journal-shortcut::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--color-red-light);
  box-shadow: 0 0 8px rgba(196,30,30,0.5);
}
.journal-shortcut:hover {
  background: linear-gradient(135deg, rgba(196,30,30,0.22), rgba(212,168,67,0.08));
  transform: translateY(-1px); border-color: var(--color-red);
}
.journal-shortcut .js-main { flex: 1; min-width: 0; }
.journal-shortcut .js-type { margin-bottom: 2px; }
.journal-shortcut .js-title {
  font-size: 11.5px; color: var(--text-primary); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.journal-shortcut .js-time {
  font-family: monospace; font-size: 9px;
  color: var(--text-muted); flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.journal-shortcut .js-arrow {
  color: var(--color-red-light); flex-shrink: 0; transition: transform .15s;
}
.journal-shortcut:hover .js-arrow { transform: translateX(3px); }

.journal-shortcut-empty {
  padding: 8px 10px; border: 1px dashed var(--border-dark);
  border-radius: 10px; margin-bottom: 8px;
}
.journal-shortcut-empty .dim { color: var(--text-faint); font-size: 8.5px; font-family: var(--font-subtitle); letter-spacing: .2em; }

.journal-header-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 2px; margin-bottom: 8px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-subtitle); letter-spacing: .18em;
  font-size: 11px; color: var(--text-muted);
  transition: color .15s;
}
.journal-header-btn svg { color: var(--color-gold); }
.journal-header-btn:hover { color: var(--color-gold-light); }

.journal-events {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  min-height: 0; padding-right: 2px;
}
.journal-events::-webkit-scrollbar { width: 4px; }
.journal-events::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 2px; }

.j-event {
  display: flex; gap: 8px; padding: 6px 6px 6px 10px;
  border-radius: 7px; border: 0;
  border-left: 2px solid var(--border-dark);
  cursor: pointer; transition: .15s;
  background: rgba(255,255,255,0.015);
  text-align: left; width: 100%;
}
.j-event:hover { background: rgba(212,168,67,0.04); border-left-color: var(--color-gold-dark); }
.j-event-read { opacity: 0.55; }
.j-event-main { flex: 1; min-width: 0; }
.j-event-type { margin-bottom: 1px; }
.j-event-title {
  font-size: 11px; color: var(--text-secondary); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.j-event-time {
  font-family: monospace; font-size: 9px;
  color: var(--text-faint); flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}

.journal-empty-zone {
  flex: 1; display: grid; place-items: center; padding: 10px;
  color: var(--text-faint); font-size: 10.5px; text-align: center; line-height: 1.5;
}

/* ========== ExpandableBlock button + lightbox ========== */
.expand-block-btn {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(10,10,14,0.8);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  z-index: 4;
}
.expand-block-btn:hover {
  background: rgba(212,168,67,0.1);
  border-color: var(--border-gold);
  color: var(--color-gold-light);
  transform: translateY(-1px);
}

.expand-lightbox-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,6,10,0.82);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 32px;
  animation: fadeInUp .18s ease;
}
.expand-lightbox-panel {
  position: relative;
  width: min(100%, 960px);
  max-height: calc(100vh - 64px);
  background: linear-gradient(180deg, rgba(22,22,30,0.98), rgba(14,14,22,0.98));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(212,168,67,0.15);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.expand-lightbox-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.expand-lightbox-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 14px 22px;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}
.expand-lightbox-title {
  font-family: var(--font-subtitle); letter-spacing: .2em;
  font-size: 14px; color: var(--color-gold-light);
  text-transform: uppercase;
}
.expand-lightbox-close {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-dark);
  color: var(--text-muted); cursor: pointer;
  transition: all .15s;
}
.expand-lightbox-close:hover {
  background: rgba(196,30,30,0.1);
  border-color: var(--border-red);
  color: var(--color-red-light);
}
.expand-lightbox-body {
  flex: 1; overflow-y: auto; padding: 22px;
  color: var(--text-primary);
}

/* ========== Akasha Production banner ========== */
.akasha-banner {
  flex-shrink: 0;
  position: relative;
  height: 28px;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(10,10,14,1) 0%,
      rgba(26,26,34,0.98) 25%,
      rgba(22,22,30,0.95) 50%,
      rgba(26,26,34,0.98) 75%,
      rgba(10,10,14,1) 100%);
  border-bottom: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-dark);
}
.akasha-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,168,67,0.15) 20%,
    rgba(212,168,67,0.55) 50%,
    rgba(212,168,67,0.15) 80%,
    transparent 100%);
}
.akasha-banner::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,168,67,0.06) 45%,
    rgba(240,214,138,0.12) 50%,
    rgba(212,168,67,0.06) 55%,
    transparent 100%);
  animation: akasha-shimmer 9s linear infinite;
  pointer-events: none;
}
@keyframes akasha-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.akasha-banner-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--color-gold-light);
  position: relative; z-index: 1;
  padding: 0 18px;
}
.akasha-banner-sigil {
  color: var(--color-gold);
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(212,168,67,0.4));
}
.akasha-banner-sigil-right { transform: rotate(180deg); }
.akasha-banner-text {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-subtitle); letter-spacing: .26em;
  font-size: 10px; text-transform: uppercase; white-space: nowrap;
}
.akasha-banner-prelude { color: var(--text-muted); }
.akasha-banner-brand {
  color: var(--color-gold-light);
  text-shadow: 0 0 12px rgba(212,168,67,0.4);
  font-weight: 700; letter-spacing: .32em;
  position: relative;
}
.akasha-banner-brand::before,
.akasha-banner-brand::after {
  content: '·'; color: var(--color-red-light);
  margin: 0 10px; opacity: 0.7;
}
.akasha-banner-suffix { color: var(--text-muted); opacity: .9; }
@media (max-width: 900px) {
  .akasha-banner-suffix { display: none; }
  .akasha-banner-sigil-right { display: none; }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); background-size: 200% 100%; animation: shimmer 3s infinite; }

/* Phase 15 Iter 8.2 (19-04-2026) — Combat flash sur POI marker carte */
@keyframes combat-flash-green {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.85); transform: scale(1); }
  30%  { box-shadow: 0 0 0 18px rgba(34,197,94,0); transform: scale(1.35); }
  60%  { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);  transform: scale(1); }
}
@keyframes combat-flash-red {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.85); transform: scale(1); }
  30%  { box-shadow: 0 0 0 18px rgba(239,68,68,0); transform: scale(1.35); }
  60%  { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0);  transform: scale(1); }
}
.combat-flash-green { animation: combat-flash-green 1.6s ease-out; border-radius: 50%; }
.combat-flash-red   { animation: combat-flash-red   1.6s ease-out; border-radius: 50%; }

/* Phase 15 (20-04-2026) — Animation map-pick OrderWizard
 * Consigne user : shrink (rapetisse au clic) → vert (change de couleur) →
 * grow (regrossit au lâché). 3 phases lissées en 700ms, filter vert pendant
 * la transition.
 */
@keyframes map-pick-anim {
  0%   { transform: scale(1); filter: none; }
  25%  { transform: scale(0.55); filter: hue-rotate(120deg) brightness(1.3) saturate(2); }
  55%  { transform: scale(0.75); filter: hue-rotate(120deg) brightness(1.5) saturate(2.5); }
  90%  { transform: scale(1.25); filter: hue-rotate(120deg) brightness(1.4) saturate(2); }
  100% { transform: scale(1); filter: none; }
}
.map-pick-anim {
  animation: map-pick-anim 700ms cubic-bezier(.4, 0, .2, 1);
  transform-origin: center center;
}

/* Flash vert au clic hors POI (patrol) */
@keyframes map-pick-loc-flash {
  0%   { transform: scale(0.4); opacity: 0.9; box-shadow: 0 0 0 0 rgba(34,197,94,0.8); }
  60%  { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 0 24px rgba(34,197,94,0); }
  100% { transform: scale(1.8); opacity: 0; box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.map-pick-location-flash {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34,197,94,0.85);
  border: 2px solid #86efac;
  animation: map-pick-loc-flash 900ms ease-out forwards;
}

/* Phase 8.5d (2026-04-29) — Scrollbar invisible pour les colonnes notif Journal
   (spec user : "scrollable chacune, sans afficher de barre de scroll"). */
.journal-no-scrollbar { scrollbar-width: none; }
.journal-no-scrollbar::-webkit-scrollbar { display: none; }
