:root {
  /* Palette Call of Duty / Warzone */
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-sidebar: rgba(14, 14, 12, 0.97);
  --bg-card: rgba(22, 22, 20, 0.95);
  --bg-input: rgba(8, 8, 7, 0.95);
  --border: rgba(255, 156, 0, 0.12);
  --border-glow: rgba(255, 156, 0, 0.45);
  --text: #e8e4dc;
  --text-muted: #a39e92;
  --cod-orange: #ff9c00;
  --cod-amber: #d4a054;
  --cod-olive: #4a5c3a;
  --cod-steel: #2c2f2e;
  --cyan: var(--cod-orange);
  --violet: var(--cod-amber);
  --pink: #b85c38;
  --accent: var(--cod-orange);
  --accent-2: #e8a030;
  --accent-soft: rgba(255, 156, 0, 0.15);
  --accent-glow: rgba(255, 156, 0, 0.35);
  --success: #6b8f4e;
  --warning: var(--cod-orange);
  --danger: #c44;
  --radius: 6px;
  --radius-sm: 4px;
  --font: "Inter", system-ui, sans-serif;
  --font-panel: "Teko", "Inter", sans-serif;
  --team-logo-url: url("/assets/team-logo.png");
  --sidebar-w: 268px;
  --rail-w: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Fond CoD — visible mais lisible ─── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0e0d0b;
}

.bg-gaming-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(255, 156, 0, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(74, 92, 58, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(255, 120, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #1a1814 0%, #12100e 50%, #0a0908 100%);
}

/* Lignes topographiques — bien visibles */
.bg-neon-beams {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ff9c00' stroke-opacity='0.55' stroke-width='1.2'%3E%3Cpath d='M0 80 Q100 60 200 90 T400 70'/%3E%3Cpath d='M0 160 Q120 140 220 170 T400 150'/%3E%3Cpath d='M0 240 Q80 220 180 250 T400 230'/%3E%3Cpath d='M0 320 Q140 300 240 330 T400 310'/%3E%3Cpath d='M50 0 Q70 100 90 200 T110 400'/%3E%3Cpath d='M200 0 Q220 120 200 240 T210 400'/%3E%3Cpath d='M320 0 Q300 150 330 280 T340 400'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* Grille perspective orange */
.bg-floor-grid {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -22%;
  height: 65%;
  background-image:
    linear-gradient(rgba(255, 156, 0, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 156, 0, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(320px) rotateX(70deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, black 5%, black 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, black 5%, black 35%, transparent 92%);
  animation: grid-scroll 14s linear infinite;
  opacity: 0.75;
}

@keyframes grid-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 40px; }
}

/* Coins HUD tactiques */
.bg-hex-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, #ff9c00 0%, #ff9c00 3px, transparent 3px) top left / 100px 100px no-repeat,
    linear-gradient(225deg, #ff9c00 0%, #ff9c00 3px, transparent 3px) top right / 100px 100px no-repeat,
    linear-gradient(45deg, rgba(255,156,0,0.8) 0%, transparent 15%) bottom left / 70px 70px no-repeat,
    linear-gradient(315deg, rgba(255,156,0,0.8) 0%, transparent 15%) bottom right / 70px 70px no-repeat;
  opacity: 0.85;
}

.bg-hex-pattern::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cod-orange), transparent 40%, transparent 60%, var(--cod-orange));
  opacity: 0.4;
}

/* Légère texture (pas de grain lourd) */
.bg-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.3) 3px,
    rgba(0, 0, 0, 0.3) 4px
  );
}

/* Vignette légère sur les bords seulement */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 85% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.bg-team-logo {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: min(32vmin, 280px);
  height: min(32vmin, 280px);
  background-image: var(--team-logo-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  filter: sepia(0.25) contrast(1.15) drop-shadow(0 0 60px rgba(255, 156, 0, 0.4));
  pointer-events: none;
}

.bg-team-logo.hidden-logo {
  display: none;
}

a { color: var(--cod-orange); text-decoration: none; }

/* ─── Landing ─── */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.landing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 3rem 2.75rem;
  max-width: 460px;
  box-shadow:
    0 0 0 1px rgba(255, 156, 0, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 156, 0, 0.08);
}

.landing-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cod-orange), var(--cod-amber), #8b6914);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.landing h1 {
  font-family: var(--font-panel);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #fff, var(--cod-orange), var(--cod-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary, .btn-discord {
  background: linear-gradient(180deg, #ffb020 0%, #e07800 50%, #b85c00 100%);
  color: #1a1000;
  font-family: var(--font-panel);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 #6b3d00,
    0 6px 24px rgba(255, 156, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover, .btn-discord:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 5px 0 #6b3d00,
    0 10px 32px rgba(255, 156, 0, 0.45);
}

.btn-primary:active, .btn-discord:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #6b3d00, 0 4px 16px rgba(255, 156, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
  background: rgba(255, 156, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.15);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}

.link-btn:hover { color: var(--cyan); }

/* ─── Layout ─── */
.panel-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Server rail */
.server-rail {
  background: rgba(3, 4, 10, 0.9);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.server-icon:hover {
  border-color: var(--cyan);
  border-radius: 14px;
  transform: scale(1.05);
}

.server-icon.active {
  border-color: var(--cyan);
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.2), 0 0 24px rgba(255, 156, 0, 0.3);
}

.server-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar */
.nav-sidebar {
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}

.nav-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.4;
}

.nav-header {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(145deg, #3d4a2f, #1a1a18);
  border: 1px solid rgba(255, 156, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-panel);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 156, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  padding: 2px;
}

.brand-shine {
  position: relative;
  z-index: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-title {
  font-family: var(--font-panel);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--cod-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cod-orange);
  margin-top: 2px;
}

.guild-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 156, 0, 0.06);
  border: 1px solid rgba(255, 156, 0, 0.15);
  border-radius: 999px;
  max-width: 100%;
}

.guild-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.guild-dot.pulse { animation: pulse-dot 2s ease infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.guild-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
}

.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 156, 0, 0.3);
  border-radius: 4px;
}

.nav-section {
  padding: 0.85rem 0.75rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cod-orange);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 3px 0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.2s;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.nav-item.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 156, 0, 0.15), rgba(74, 92, 58, 0.1));
  border-color: rgba(255, 156, 0, 0.25);
  box-shadow: 0 0 24px rgba(255, 156, 0, 0.1), inset 0 0 20px rgba(255, 156, 0, 0.05);
}

.nav-item.active svg {
  opacity: 1;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}

.nav-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0, 0, 0, 0.2);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(255, 156, 0, 0.3);
  box-shadow: 0 0 16px rgba(255, 156, 0, 0.2);
}

.user-name { font-size: 0.88rem; font-weight: 600; }

/* Main — zone lisible par-dessus le fond */
.main-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 1;
}

.main-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 9, 0.72) 0%,
    rgba(14, 13, 11, 0.55) 45%,
    rgba(10, 10, 9, 0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 2rem 2.5rem 7rem;
  overflow-y: auto;
  width: 100%;
  max-width: 1100px;
}

.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--violet));
  border-radius: 8px;
}

/* Page header */
.page-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
  border-radius: 2px;
}

.page-hero h1 {
  font-family: var(--font-panel);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #fff 30%, var(--cod-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 640px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-panel);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cod-orange);
  background: rgba(255, 156, 0, 0.08);
  border: 1px solid rgba(255, 156, 0, 0.35);
  border-left: 3px solid var(--cod-orange);
  border-radius: 2px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  position: relative;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-accent, linear-gradient(90deg, var(--cyan), var(--violet)));
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-card .stat-icon svg { width: 18px; height: 18px; }

.stat-card.stat-cyan { --stat-accent: linear-gradient(90deg, #ff9c00, #d4a054); }
.stat-card.stat-cyan .stat-icon { color: var(--cod-orange); }
.stat-card.stat-violet { --stat-accent: linear-gradient(90deg, #6b8f4e, #4a5c3a); }
.stat-card.stat-violet .stat-icon { color: var(--success); }
.stat-card.stat-green { --stat-accent: linear-gradient(90deg, #6b8f4e, #3d5230); }
.stat-card.stat-green .stat-icon { color: var(--success); }
.stat-card.stat-amber { --stat-accent: linear-gradient(90deg, #ff9c00, #b85c00); }
.stat-card.stat-amber .stat-icon { color: var(--cod-orange); }

.stat-card .label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-card .value {
  font-family: var(--font-panel);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.stat-card .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stat-card.stat-green .value { color: var(--success); }
.stat-card.stat-cyan .value { color: var(--cod-orange); }

/* Live dashboard */
.live-dashboard { margin-bottom: 2rem; }

.live-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.live-dashboard-head h3 {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.live-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b8f4e;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 143, 78, 0.45);
  background: rgba(107, 143, 78, 0.12);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-badge.offline {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  animation: none;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1100px) {
  .live-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.live-stat-card .value {
  font-size: 2.15rem;
}

.live-stat-skeleton,
.chart-skeleton {
  min-height: 110px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.chart-skeleton { min-height: 220px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
}

.chart-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.chart-card h4 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.donut-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
}

.donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #6b8f4e 0 calc(var(--online) * 1%),
    #3a3f44 calc(var(--online) * 1%) 100%
  );
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-value {
  font-family: var(--font-panel);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--success);
}

.donut-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chart-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.dot-green { background: #6b8f4e; }
.dot-gray { background: #4a4f55; }

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-row .bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.bar-row .bar-meta strong {
  color: var(--text);
  font-weight: 600;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.chart-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Cards */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 156, 0, 0.2), transparent 40%, rgba(74, 92, 58, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: rgba(255, 156, 0, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 40px rgba(255, 156, 0, 0.06);
}

.card:hover::before { opacity: 1; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.card-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(74, 92, 58, 0.4), rgba(20, 20, 18, 0.9));
  border: 1px solid rgba(255, 156, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(255, 156, 0, 0.15);
}

.card-icon svg { width: 24px; height: 24px; color: var(--cyan); }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-body {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

/* Fields */
.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.field > label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-panel);
  color: var(--cod-amber);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input:not(.color-swatch-input),
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.field input:not(.color-swatch-input):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.15), 0 0 20px rgba(255, 156, 0, 0.1);
}

.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

/* Sélecteur de couleur visuel */
.color-picker-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.color-swatch-btn:hover,
.color-swatch-btn:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.12);
}

.color-swatch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

.color-swatch-preview {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  background: var(--swatch, #57f287);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  pointer-events: none;
}

.color-swatch-action {
  font-size: 0.88rem;
  color: var(--text-muted);
  pointer-events: none;
}

.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-preset {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.color-preset:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.color-preset.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trial-notes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trial-note-row {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.trial-note-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.trial-note-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.trial-note-identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trial-note-input {
  width: 100%;
  min-height: 88px;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
}

.trial-note-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.12);
}

.trial-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.trial-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trial-member-card {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.trial-member-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.trial-member-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trial-member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.trial-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.trial-badge-vote {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.45);
}

.trial-badge-ok {
  background: rgba(87, 242, 135, 0.15);
  border-color: rgba(87, 242, 135, 0.4);
}

.trial-badge-ko {
  background: rgba(237, 66, 69, 0.15);
  border-color: rgba(237, 66, 69, 0.4);
}

.trial-member-timing {
  text-align: right;
  min-width: 8rem;
}

.trial-timing-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.trial-member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
}

.trial-member-stats strong {
  display: block;
  margin-top: 0.15rem;
}

.trial-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trial-history {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.trial-history summary {
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.trial-history ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trial-history-date {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

@media (max-width: 720px) {
  .trial-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-member-head {
    flex-wrap: wrap;
  }

  .trial-member-timing {
    text-align: left;
    width: 100%;
  }
}
.hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.45;
}

.hint code {
  background: rgba(255, 156, 0, 0.1);
  color: var(--cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.logo-preview-wrap {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.logo-preview {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(255, 156, 0, 0.25));
}

/* Toggle */
.toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.toggle span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle input:checked + span {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.4);
}

.toggle input:checked + span::before { transform: translate(22px, -50%); }

.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

/* Role chips */
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--chip-border, var(--border));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--chip-color, var(--text-muted));
  box-shadow: inset 0 0 0 1px transparent;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--chip-border, var(--cyan));
}

.chip.selected {
  border-color: var(--chip-border, var(--cyan));
  background: var(--chip-bg, rgba(255, 156, 0, 0.15));
  color: var(--chip-color, #fff);
  box-shadow: 0 0 20px var(--chip-glow, rgba(255, 156, 0, 0.25));
}

.chip.separator {
  opacity: 0.45;
  cursor: default;
  font-size: 0.7rem;
  font-weight: 500;
}

.chip.separator:hover { transform: none; }

.chip-tag {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.85;
}

.role-selected-section {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.role-selected-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cod-amber);
  margin-bottom: 0.75rem;
}

.role-selected-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 156, 0, 0.2);
  color: var(--cod-orange);
  font-size: 0.72rem;
}

.role-selected-list .chip {
  cursor: default;
}

.chip-remove {
  margin-left: 0.4rem;
  padding: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.chip-remove:hover {
  background: rgba(200, 68, 68, 0.35);
}

.role-selected-empty {
  margin-top: 0.25rem;
}

/* Quick access */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
}

.quick-card:hover {
  border-color: rgba(255, 156, 0, 0.4);
  background: rgba(255, 156, 0, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 156, 0, 0.12);
}

.quick-card svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(255, 156, 0, 0.5));
}

.quick-card span { font-size: 0.9rem; font-weight: 600; }

/* Module pills */
.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.module-pill.on {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.module-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Roster */
.roster-grid { display: grid; gap: 0.55rem; }

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.roster-row:hover { border-color: rgba(255, 156, 0, 0.25); }

.roster-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 156, 0, 0.2), rgba(74, 92, 58, 0.2));
  color: var(--cyan);
  text-transform: capitalize;
}

/* Content grid - use full width */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.content-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .content-grid.two-cols { grid-template-columns: 1fr; }
}

/* Save dock */
.save-bar {
  position: fixed;
  bottom: 1.5rem;
  left: calc(var(--rail-w) + var(--sidebar-w));
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 100;
  box-shadow:
    0 0 0 1px rgba(255, 156, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.save-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(90deg, var(--cod-orange), var(--cod-amber), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: xor;
  opacity: 0.5;
  pointer-events: none;
}

.save-feedback {
  margin-left: auto;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2d6a3e 0%, #1e4628 100%);
  border: 1px solid #6b8f4e;
  color: #e8f5e9;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.save-feedback.visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 156, 0, 0.15), rgba(74, 92, 58, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state .empty-icon svg { width: 32px; height: 32px; color: var(--cyan); opacity: 0.8; }

.error-banner {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(16px) scale(0.96);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 500;
  pointer-events: none;
  min-width: 240px;
  text-align: center;
}

.toast-success {
  background: linear-gradient(135deg, #2d6a3e 0%, #1e4628 100%);
  border: 1px solid #6b8f4e;
  color: #e8f5e9;
}

.toast-error {
  background: linear-gradient(135deg, #6b2020 0%, #401010 100%);
  border: 1px solid var(--danger);
  color: #fecaca;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.discord-activity .save-bar {
  left: calc(var(--rail-w) + var(--sidebar-w));
  right: 0.75rem;
}

.discord-activity .main-content {
  padding-bottom: 6rem;
}

@media (max-width: 960px) {
  .discord-activity .save-bar {
    left: 64px;
  }
}

.hidden { display: none !important; }

.loading {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1.25rem;
  color: var(--text-muted);
}

.loader-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 156, 0, 0.15);
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(255, 156, 0, 0.3);
}

@keyframes spin { to { transform: rotate(360deg); } }

.notify-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.notify-sub-row:hover {
  border-color: rgba(255, 156, 0, 0.25);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.notify-sub-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.notify-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #1a1410 0%, #0f0d0c 100%);
  border: 1px solid rgba(255, 156, 0, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.notify-modal h3 {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.notify-modal .modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.stats-counter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}

.stats-counters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats-counter-row {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.stats-counter-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stats-counter-head .hint {
  margin-left: auto;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.15);
  color: #ff6b6b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.empty-state.compact {
  padding: 1rem 0;
}

@media (max-width: 960px) {
  .panel-layout { grid-template-columns: 64px 1fr; }
  .nav-sidebar { display: none; }
  .save-bar { left: 64px; }
}
