:root {
  --bg: #0a0a0c;
  --bg-elevated: #121216;
  --bg-panel: #141418;
  --border: rgba(201, 162, 39, 0.18);
  --border-strong: rgba(201, 162, 39, 0.35);
  --text: #f2efe6;
  --text-muted: #8a8680;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dim: rgba(201, 162, 39, 0.12);
  --accent: #c9a227;
  --accent-hover: #b8921f;
  --discord: #5865f2;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #2ecc71;
  --forgeur: #e8c547;
  --braqueur: #7eb8ff;
  --radius: 12px;
  --nav-width: 240px;
  --nav-width-collapsed: 52px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

body {
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 32px;
}

.brand {
  margin-bottom: 24px;
  text-align: center;
}

.gon-logo {
  display: block;
  object-fit: contain;
}

.gon-logo-lg {
  width: min(160px, 60vw);
  height: auto;
  margin: 0 auto 20px;
}

.gon-logo-sm {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.brand p {
  margin: 0;
  color: var(--text-muted);
}

.login-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.35);
  color: #ffb3c0;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-discord {
  width: 100%;
  background: var(--discord);
  color: white;
}

.btn-discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-discord:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--border-strong);
}

.btn-forge {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.btn-forge:hover {
  background: var(--gold-dim);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.dashboard {
  min-height: 100vh;
  display: flex;
}

.app-nav {
  width: var(--nav-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: #080809;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.25s ease;
  z-index: 96;
}

.app-nav.is-collapsed {
  width: var(--nav-width-collapsed);
  padding: 0;
  align-items: center;
}

.app-nav-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 20px;
  flex-shrink: 0;
  width: 100%;
}

body.nav-collapsed .app-nav-brand {
  justify-content: center;
  align-items: center;
  padding: 14px 0 10px;
}

body.nav-collapsed .app-nav-brand-main {
  display: none;
}

.app-nav-brand-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.topbar-brand {
  display: none;
  align-items: center;
  flex-shrink: 0;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--border);
}

body.nav-collapsed .topbar-brand {
  display: flex;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.app-nav-brand-text {
  min-width: 0;
  overflow: hidden;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
  color: inherit;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.app-nav:not(.is-collapsed) .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.app-nav:not(.is-collapsed) .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.app-nav:not(.is-collapsed) .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.app-nav-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.app-nav.is-collapsed .app-nav-body {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  flex: 0;
  max-height: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.app-nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.app-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  line-height: 1.1;
}

.app-nav-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.app-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.app-nav-item.is-active {
  color: var(--gold-light);
  background: var(--gold-dim);
  border-color: var(--border-strong);
  font-weight: 600;
}

.app-nav-item.is-disabled {
  opacity: 0.45;
  cursor: default;
  user-select: none;
}

.app-nav-icon {
  opacity: 0.9;
}

.app-nav-promo {
  position: relative;
  margin-top: 20px;
  min-height: 292px;
  border-radius: 15px;
  border: 1px solid rgba(154, 125, 74, 0.45);
  overflow: hidden;
  flex-shrink: 0;
  background: #080808;
}

.app-nav-promo-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/promo-forge-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

.app-nav-promo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #080808 0%,
    rgba(8, 8, 8, 0.9) 28%,
    rgba(8, 8, 8, 0.5) 52%,
    rgba(8, 8, 8, 0.12) 78%,
    transparent 100%
  );
}

.app-nav-promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 20px 18px 18px;
}

.app-nav-promo-title {
  margin: 0 0 26px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7d4a;
}

.app-nav-promo-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.app-nav-promo-list li {
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.promo-la {
  color: #ffffff;
  font-weight: 400;
}

.app-nav-promo-list strong {
  color: #e5b143;
  font-weight: 700;
}

.app-nav-promo-tag {
  margin-top: auto;
  align-self: center;
  padding-top: 28px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #9a7d4a;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 9, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-main .crypto-ticker-wrap {
  flex: 1;
}

.crypto-ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.crypto-ticker {
  overflow: hidden;
  width: 100%;
}

.crypto-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: crypto-scroll 45s linear infinite;
}

.crypto-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes crypto-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.crypto-ticker-placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.crypto-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
}

.crypto-item img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.crypto-symbol {
  font-weight: 700;
  color: var(--text);
}

.crypto-price {
  color: var(--text-muted);
}

.crypto-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 0.78rem;
}

.crypto-change.up {
  color: var(--success);
}

.crypto-change.down {
  color: var(--danger);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.menu-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.drawer-open {
  overflow: hidden;
}

.panels-root {
  display: none !important;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 16px 20px 24px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.sidebar-left,
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-dynamic {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.panel-static {
  opacity: 0.92;
}

.panel-quote {
  text-align: center;
  padding: 22px 18px 24px;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.04) 0%, var(--bg-panel) 40%);
}

.user-panel h2 {
  color: var(--text);
}

.panel-quote-icon {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 22px;
  margin-bottom: 18px;
}

.panel-quote-icon span {
  display: block;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.35);
}

.panel-quote-icon span:last-child {
  height: 22px;
}

.panel-quote p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.panel-quote-author {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.market-stats .muted {
  color: var(--text-muted);
}

.market-stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.market-stats li:last-child {
  border-bottom: none;
}

.market-stats .up {
  color: var(--success);
}

.market-stats .down {
  color: var(--danger);
}

.market-stats small {
  opacity: 0.85;
  margin-left: 4px;
}

.panel-quote-mark {
  display: none;
}

.sidebar,
.main-column {
  min-width: 0;
}

.fear-greed-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.fear-greed-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.fear-greed-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1744, #f39c12, #3ba55d);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.fear-greed-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.25);
  border-right: 2px solid white;
  transition: width 0.4s ease;
}

.fear-greed-source {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filters-panel h2 {
  margin: 0;
}

.filters-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filters-group-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.filters-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.filter-chip.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.filter-chip .chip-count {
  opacity: 0.65;
  font-size: 0.72rem;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.filter-dropdown-trigger::after {
  content: "▾";
  color: var(--text-muted);
  font-size: 0.75rem;
}

.filter-dropdown-trigger:hover,
.filter-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--gold);
}

.filter-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.filter-dropdown-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.filter-dropdown-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.filter-dropdown-option.active {
  background: rgba(88, 101, 242, 0.2);
  color: var(--text);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-toggle input {
  accent-color: var(--gold);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.state-message {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.state-error {
  color: #ffb3c0;
  border-color: rgba(255, 23, 68, 0.35);
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alert-card {
  --alert-color: var(--accent);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--alert-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.alert-card-light {
  padding: 14px 16px;
}

.alert-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.alert-card.is-clickable:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}

.alert-card.is-breaking {
  border-left-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(255, 23, 68, 0.12), var(--shadow);
}

.alert-card.is-locked {
  opacity: 0.88;
}

.alert-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.alert-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.alert-card-warn {
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1;
}

.alert-card-flags {
  font-size: 1rem;
  line-height: 1;
}

.alert-card-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.alert-card-info {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--forgeur);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.alert-card-info:hover {
  background: rgba(240, 178, 50, 0.12);
}

.alert-card-time {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.alert-card-headline {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}

.alert-card-headline.locked {
  color: var(--text-muted);
  font-style: italic;
}

.alert-card-more {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--forgeur);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.alert-card-more:hover {
  text-decoration: underline;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alert-badge.breaking {
  background: rgba(255, 23, 68, 0.22);
  color: #ff8a9b;
}

.alert-badge-critical {
  background: rgba(255, 23, 68, 0.15);
  color: #ff8a9b;
  border: 1px solid rgba(255, 23, 68, 0.35);
}

.alert-badge-category {
  background: rgba(255, 255, 255, 0.04);
  color: #ff8a9b;
  border: 1px solid rgba(255, 23, 68, 0.25);
}

.alert-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.alert-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(85vh, 820px);
  overflow-y: auto;
  background: #1a1410;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--alert-color, var(--danger));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.alert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.alert-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.alert-modal-content {
  padding: 22px 22px 24px;
}

.alert-modal-inner {
  --alert-color: var(--danger);
}

.alert-modal-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 40px;
  margin-bottom: 12px;
}

.alert-modal-flags {
  font-size: 1.1rem;
}

.alert-modal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.alert-modal-headline {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.alert-modal-interpretation {
  border: 1px solid rgba(240, 178, 50, 0.45);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.22);
}

.alert-modal-interpretation-title {
  color: var(--forgeur);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.alert-modal-interpretation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.load-more-sentinel {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.user-avatar-ring {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 270deg,
    var(--gold-light) 0deg 180deg,
    rgba(255, 255, 255, 0.12) 180deg 360deg
  );
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.15);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg-panel);
  object-fit: cover;
  display: block;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.user-role {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.user-role.forgeur {
  background: var(--gold-dim);
  color: var(--forgeur);
  border: 1px solid var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-role.braqueur {
  background: rgba(87, 166, 255, 0.15);
  color: var(--braqueur);
}

.user-role-hint {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .app-nav.is-collapsed {
    display: none;
  }

  .app-nav:not(.is-collapsed) {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 88vw) !important;
    max-width: min(320px, 88vw);
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45);
    z-index: 96;
  }

  .app-nav-body {
    overflow-y: auto;
  }

  .app-nav-mobile-panels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .nav-toggle--topbar {
    display: flex;
    flex-shrink: 0;
  }

  .topbar-brand {
    order: 1;
  }

  .crypto-ticker-wrap {
    order: 2;
    flex: 1;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }
}

@media (min-width: 1101px) {
  .app-nav-mobile-panels {
    display: none;
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 12px;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .crypto-ticker-wrap {
    order: 4;
    flex-basis: 100%;
  }
}
