/* ==========================================================================
   Maffiadon - in-game shell styling
   Dark gray theme, Verdana. Authored for Maffiadon.
   ========================================================================== */

:root {
  /* Maffiadon accents (softened from crime-club's neon-yellow). */
  --accent-gold: #ecd45a;
  --accent-gold-deep: #b89a3a;
  /* Programmatic replacements for the old repeating texture.jpg strips:
     glossy vertical gradient bars in the same gray/teal palette. Shared
     with the public site (site.module.css) since game.css is loaded globally. */
  --bar-panel: linear-gradient(
    180deg,
    #565658 0%,
    #737375 44%,
    #67676a 56%,
    #4c4c4e 100%
  );
  --bar-subpanel: linear-gradient(
    180deg,
    #545456 0%,
    #6a6a6c 50%,
    #4b4b4d 100%
  );
  --bar-sidebar: linear-gradient(
    180deg,
    #42454d 0%,
    #4b4e57 52%,
    #3a3d44 66%,
    #2e3036 100%
  );
  /* Sidebar section headers: a teal-green (menu + profile columns). */
  --bar-sidehead: linear-gradient(
    180deg,
    #3d514c 0%,
    #536460 52%,
    #3a4d48 66%,
    #2b3936 100%
  );
  --bar-banner: linear-gradient(180deg, #39393b 0%, #515153 55%, #656567 100%);
  --bar-strip: linear-gradient(180deg, #444446 0%, #363638 100%);
  /* thin top sheen that gives the flat bars a bit of glass, like the originals */
  --bar-gloss: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #5b5a58;
  color: #ffffff;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
}

a {
  color: #ffffff;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-decoration: none;
  outline: none;
}

td {
  font-size: 11px;
}

select,
input,
textarea {
  padding: 4px 7px;
  background-color: #2c2b2d;
  color: #ffffff;
  border: 1px solid #050505;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: #b89a3a;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(138, 146, 143, 0.35);
  outline: none;
}

input[type="submit"],
input[type="button"],
button {
  padding: 6px 15px;
  color: #ffffff;
  border: 1px solid #050505;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    #56575b 0%,
    #47484c 50%,
    #3d3e41 51%,
    #333437 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 1px 1px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.12s ease,
    filter 0.12s ease,
    box-shadow 0.12s ease;
}

button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 1px;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background: linear-gradient(
    180deg,
    #616266 0%,
    #4f5054 50%,
    #434448 51%,
    #37383b 100%
  );
}

input[type="submit"]:active,
input[type="button"]:active,
button:active {
  background: linear-gradient(180deg, #333437 0%, #3d3e41 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* --- Sidebar navigation --- */
td.sidehead {
  padding: 5px;
  background-color: #3a4d48;
  background-image: var(--bar-sidehead);
  box-shadow: var(--bar-gloss);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

td.sidelink {
  padding: 2px 2px 2px 3px;
  background-color: #3a4440;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  transition: background-color 0.12s ease;
}

td.sidelink:hover {
  background-color: #4a5651;
  box-shadow: inset 3px 0 0 var(--accent-gold);
}

td.sidelink--active {
  background-color: #313b37;
  box-shadow: inset 3px 0 0 #ecd45a;
}

/* Family-gated menu item shown before you have a family: greyed, non-clickable. */
td.sidelink--locked {
  color: #6b7472;
  cursor: not-allowed;
}
td.sidelink--locked:hover {
  background-color: transparent;
  box-shadow: none;
}
td.sidelink--locked .member,
td.sidelink--locked .gold,
td.sidelink--locked .strong {
  color: #6b7472 !important;
}

/* --- Center banner + status strip --- */
td.topbanner {
  background-color: #4a4446;
  background-image: var(--bar-banner);
  text-align: left;
}

td.topstrip {
  padding: 5px;
  background-image: var(--bar-strip);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  text-align: left;
}

/* --- Content panels --- */
td.panelhead {
  padding: 5px;
  background-image: var(--bar-panel);
  box-shadow: var(--bar-gloss);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

td.panelbox {
  padding: 12px 11px;
  background-color: #454547;
  line-height: 1.5;
  text-align: center;
  vertical-align: top;
}

/* --- Data grid rows --- */
td.gridhead {
  padding: 5px 8px;
  background-color: #282829;
  border-bottom: 2px solid var(--accent-gold-deep);
  color: #d7d3cb;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-align: center;
}

.gridrow {
  padding: 5px 8px;
  background-color: #434345;
  text-align: left;
  transition: background-color 0.12s ease;
}

.gridrow2 {
  padding: 5px 8px;
  background-color: #4d4d4f;
  text-align: left;
  transition: background-color 0.12s ease;
}

.gridrow:hover,
.gridrow2:hover {
  background-color: #565058;
  box-shadow: inset 3px 0 0 var(--accent-gold);
}

/* --- Text highlights --- */
.gold {
  color: #ecd45a;
}

.member {
  color: #ffffff;
}

.strong {
  font-weight: bold;
}

/* --- "Coming soon" sidebar badge --- */
.soon-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 7px;
  background-color: rgba(236, 212, 90, 0.14);
  border: 1px solid rgba(236, 212, 90, 0.45);
  color: #ecd45a;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.4px;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- "Work in Progress" sidebar badge (blue) --- */
.wip-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 7px;
  background-color: rgba(74, 157, 232, 0.16);
  border: 1px solid rgba(74, 157, 232, 0.55);
  color: #7bbef5;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.4px;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Star marker before a menu label --- */
.menu-star {
  margin-right: 4px;
  color: #ecd45a;
  font-size: 10px;
  vertical-align: middle;
}

/* --- "Coming soon" content panel --- */
.soon-panel {
  padding: 32px 18px 38px;
  text-align: center;
}

.soon-panel__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: #ecd45a;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  animation: soon-float 3s ease-in-out infinite;
}

@keyframes soon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.soon-panel__title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #ecd45a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.soon-panel__text {
  margin: 0 auto;
  max-width: 340px;
  line-height: 1.6;
  color: #d8dcda;
}

.soon-panel__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 12px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfd3d1;
}

.pos {
  color: #19f51d;
}

.neg {
  color: #ff5252;
}

/* --- Quick-action shortcut box (top of center column) --- */
.quickbox {
  width: 240px;
  height: 64px;
  margin: 0 40px 0 0;
  padding: 5px 8px;
  float: right;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quickflex {
  display: flex;
  height: 100%;
  align-items: center;
}

.quickgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  width: 100%;
}

.quickcell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 0;
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

.quickcell:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.quickicon {
  display: block;
  width: 20px;
  height: 20px;
}

/* cooldown countdown overlaid on a quickbox icon (e.g. crimes) */
.quick-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  text-align: center;
  color: #ecd45a;
  font-size: 8px;
  font-weight: bold;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 1px #000,
    0 0 2px #000;
  pointer-events: none;
}

/* --- Help button (info link) --- */
.helpbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  background-color: #383739;
  border: 1px solid #010101;
  border-radius: 3px;
  font-weight: bold;
  line-height: 1;
  vertical-align: middle;
}

.helpbtn:hover {
  background-color: #2f2f30;
}

.helpbtn__q {
  display: block;
}

/* --- Header wordmark --- */
/* Self-contained SVG: the ornate M + AFFIADON are drawn large inside a fixed
   viewBox (so the tall script ascender can never be clipped by the banner),
   then the whole thing is scaled down to the header footprint. */
.gamelogo {
  display: inline-block;
  padding: 4px 12px;
  user-select: none;
}

.gamelogo svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- App shell layout (responsive grid; replaces the old outer <table>) --- */
/* Full-width: fixed sidebars hug the left/right screen edges, center fills. */
.shell {
  padding: 10px 0 24px;
}

.shell-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: start;
}

.shell-col {
  min-width: 0;
}

/* tablet: left menu + content side by side, profile spans full width below */
@media (max-width: 920px) {
  .shell-grid {
    grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  }
  .shell-right {
    grid-column: 1 / -1;
  }
}

/* phone: single column, content first */
@media (max-width: 600px) {
  .shell-grid {
    grid-template-columns: 1fr;
  }
  .shell-center {
    order: -1;
  }
  .shell-right {
    grid-column: auto;
  }
  .quickbox {
    display: none;
  }
}

/* --- Nieuws (news feed) --- */
.news {
  max-width: 840px;
  margin: 0 auto;
  padding: 4px 8px 12px;
}

.news-masthead {
  padding: 10px 2px 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-gold-deep);
}

.news-masthead-title {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.news-masthead-sub {
  margin: 4px 0 0;
  color: #a7a39d;
  font-size: 11px;
}

.news-card {
  margin-bottom: 16px;
  padding: 13px 16px 15px;
  background: linear-gradient(180deg, #3d3e41 0%, #343436 100%);
  border: 1px solid #050505;
  border-left: 3px solid var(--accent-gold);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.news-tag {
  padding: 1px 9px;
  background-color: rgba(236, 212, 90, 0.14);
  border: 1px solid rgba(236, 212, 90, 0.5);
  border-radius: 10px;
  color: var(--accent-gold);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-card-date {
  color: #948f88;
  font-size: 10px;
  white-space: nowrap;
}

.news-card-title {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.news-card-body {
  line-height: 1.6;
  color: #e6e4e0;
}

.news-card-body p {
  margin: 0 0 10px;
}

.news-sig {
  margin: 13px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #a7a39d;
  font-style: italic;
}

/* --- Health meter (right-column HUD, distinct from the rank bar) --- */
.healthmeter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.health-heart {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.health-track {
  position: relative;
  width: 82px;
  height: 13px;
  overflow: hidden;
  background-color: #2b2c2e;
  border: 1px solid #111111;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.health-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.health-good {
  background: linear-gradient(180deg, #4fd06a 0%, #2ea44a 50%, #23833b 100%);
}

.health-warn {
  background: linear-gradient(180deg, #e6c14a 0%, #cf9a20 100%);
}

.health-crit {
  background: linear-gradient(180deg, #e2543b 0%, #b8281a 100%);
}

.health-notch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 7px,
    rgba(0, 0, 0, 0.5) 7px,
    rgba(0, 0, 0, 0.5) 9px
  );
}

.health-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

/* --- Rank / level meter (gold star badge + XP bar) --- */
.rankmeter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.rank-level {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: bold;
  line-height: 1;
  color: #4a3300;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rank-track {
  position: relative;
  width: 76px;
  height: 13px;
  overflow: hidden;
  background-color: #2b2c2e;
  border: 1px solid #111111;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rank-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    #f3d778 0%,
    #e0b23f 50%,
    #b9871c 51%,
    #9c6f12 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rank-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

/* --- Crime / action panel --- */
.crime-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
}

.crime-stats span {
  color: #aeaaa2;
}

.crime-stats span b {
  color: #ffffff;
  font-size: 12px;
}

.crime-xp {
  position: relative;
  height: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #2b2c2e;
  border: 1px solid #111111;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.crime-xp-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    #f3d778 0%,
    #e0b23f 50%,
    #b9871c 51%,
    #9c6f12 100%
  );
}

.crime-xp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

.crime-result {
  margin: 4px 0 12px;
  padding: 8px 10px;
  border: 1px solid #000000;
  border-radius: 2px;
}

.crime-ok {
  background-color: rgba(25, 245, 29, 0.1);
  border-color: rgba(25, 245, 29, 0.35);
}

.crime-bad {
  background-color: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.35);
}

.crime-gains {
  margin-top: 4px;
  color: #d7d2cb;
}

/* --- Tiered crime list --- */
.crime-band {
  margin-top: 14px;
}

.crime-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background-image: var(--bar-subpanel);
  box-shadow: var(--bar-gloss);
  border: 1px solid #050505;
  border-radius: 3px 3px 0 0;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.crime-lock {
  color: #cbd6d0;
  font-weight: normal;
  font-size: 10px;
}

.crime-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-top: 0;
}

.crime-item:last-child {
  border-radius: 0 0 3px 3px;
}

.crime-item-locked {
  opacity: 0.55;
}

.crime-info {
  min-width: 0;
}

.crime-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* difficulty as an angular risk meter - bars fill by difficulty level */
.riskmeter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.riskmeter .rm-bar {
  width: 3px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.13);
  transform: skewX(-14deg);
}

.riskmeter .rm-label {
  margin-left: 3px;
}

.riskmeter.diff-easy {
  color: #5fe063;
}
.riskmeter.diff-medium {
  color: #ecd45a;
}
.riskmeter.diff-hard {
  color: #ff6b6b;
}

.riskmeter.diff-easy .rm-bar:nth-child(1),
.riskmeter.diff-medium .rm-bar:nth-child(-n + 2),
.riskmeter.diff-hard .rm-bar {
  background-color: currentColor;
  box-shadow: 0 0 4px currentColor;
}

/* boxy dossier-stamp tag with a colored file-tab edge (tiers, ranks) */
.tag {
  display: inline-block;
  padding: 1px 6px;
  background-color: #2b2c2e;
  border: 1px solid #060606;
  border-left: 3px solid #6a6a6c;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d7d2cb;
}

.tag--tier1 {
  border-left-color: #b89a3a;
}
.tag--tier2 {
  border-left-color: #5fe063;
}
.tag--tier3 {
  border-left-color: #5a96ff;
}
.tag--tier4 {
  border-left-color: #ecd45a;
}
.tag--tier5 {
  border-left-color: #ff6b6b;
}

.crime-desc {
  margin: 3px 0;
  color: #cfcac3;
}

.crime-reward {
  color: #b7b3ad;
  font-size: 10px;
}

.crime-action {
  flex: 0 0 auto;
}

.crime-need {
  color: #b7b3ad;
  font-size: 10px;
  white-space: nowrap;
}

/* --- HUD timers (profile column) --- */
.hud-timers {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  background-color: rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  font-size: 10px;
}

.hud-timer-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-timer-time {
  flex: 0 0 auto;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.hud-timer-fly .hud-timer-time {
  color: #ecd45a;
}

.hud-timer-jail .hud-timer-time {
  color: #ff5252;
}

/* --- Jail action buttons (roster) --- */
.jail-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.jail-actions button {
  white-space: nowrap;
}

/* --- Skills / vaardigheden page --- */
.skills-doc {
  margin-top: 14px;
}

.skills-doc h4 {
  margin: 12px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  color: #ecd45a;
  font-size: 12px;
}

.skills-doc p {
  margin: 0 0 6px;
  color: #cfcac3;
}

.skills-doc ul {
  margin: 0;
  padding-left: 18px;
}

.skills-doc li {
  margin-bottom: 5px;
  color: #cfcac3;
}

/* --- Car theft / garage --- */
/* rarity as a hard-edged stamp (no soft pill) */
.car-rarity {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.car-rarity.r-common {
  color: #b7b3ad;
  border-color: rgba(183, 179, 173, 0.5);
}
.car-rarity.r-uncommon {
  color: #5fe063;
  border-color: rgba(25, 245, 29, 0.5);
}
.car-rarity.r-rare {
  color: #8ab6ff;
  border-color: rgba(90, 150, 255, 0.55);
}
.car-rarity.r-exotic {
  color: #ecd45a;
  border-color: rgba(236, 212, 90, 0.55);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.car-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-left: 3px solid #6a6a6c;
  border-radius: 3px;
}

.car-card.r-uncommon {
  border-left-color: #19f51d;
}
.car-card.r-rare {
  border-left-color: #5a96ff;
}
.car-card.r-exotic {
  border-left-color: #ecd45a;
}

.car-img {
  flex: 0 0 auto;
  width: 168px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #050505;
  border-radius: 2px;
  background-color: #2b2c2e;
}

.car-body {
  flex: 1 1 auto;
  min-width: 0;
}

.car-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.car-meta {
  margin: 4px 0 6px;
  color: #b7b3ad;
  font-size: 10px;
}

.car-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.car-actions button {
  padding: 4px 9px;
}

/* stolen-car reveal image in the steal result box */
.steal-result {
  display: flex;
  gap: 12px;
  align-items: center;
}

.steal-img {
  flex: 0 0 auto;
  width: 150px;
  height: 108px;
  object-fit: cover;
  border: 1px solid #050505;
  border-radius: 3px;
  background-color: #2b2c2e;
}

.steal-body {
  min-width: 0;
}

/* --- Bank panel --- */
.bank-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bank-img {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #050505;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.bank-intro {
  flex: 1 1 auto;
  min-width: 0;
}

.bank-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-card {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bank-card span {
  color: #b7b3ad;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bank-card b {
  font-size: 13px;
}

.bank-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bank-form {
  flex: 1 1 240px;
  padding: 10px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-radius: 3px;
}

.bank-form-head {
  margin-bottom: 7px;
  font-weight: bold;
}

.bank-form-head span {
  margin-left: 6px;
  color: #b7b3ad;
  font-weight: normal;
  font-size: 10px;
}

.bank-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bank-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 7px;
}

.bank-max {
  padding: 6px 10px;
}

/* --- Offshore (death-proof) account, shown under the normal bank --- */
.offshore {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #6a726f;
}

.offshore-head {
  margin-bottom: 6px;
  padding: 4px 8px;
  background-image: var(--bar-subpanel);
  box-shadow: var(--bar-gloss);
  border: 1px solid #000;
  font-weight: bold;
  color: #ecd45a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.offshore-note {
  margin: 0 0 10px;
  color: #cfd6d4;
}

/* stack the image above the text on narrow screens */
@media (max-width: 560px) {
  .bank-top {
    flex-direction: column;
  }
  .bank-img {
    width: 100%;
    height: auto;
  }
}

button:disabled {
  opacity: 0.4;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

/* --- Live realtime (online count + activity feed) --- */
/* online-members grid (center "Online leden" page) */
.online-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}

.online-grid-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #ffffff;
  font-size: 11px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #19f51d;
  box-shadow: 0 0 4px rgba(25, 245, 29, 0.8);
}

/* --- Shoutbox (realtime chat) --- */
.shout-log {
  height: 320px;
  overflow-y: auto;
  padding: 8px 10px;
  background-color: #2b3535;
  border: 1px solid #050505;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.shout-msg {
  margin-bottom: 5px;
  line-height: 1.45;
  word-break: break-word;
}

.shout-time {
  margin-right: 5px;
  color: #b89a3a;
}

.shout-user {
  color: #ffffff; /* default; per-user colour is set inline (future purchasable colours) */
  font-weight: bold;
}

.shout-text {
  color: #e9e9e9;
}

.shout-empty {
  margin: 0;
  color: #9aa3a1;
  font-style: italic;
}

.shout-typing {
  min-height: 15px;
  padding: 3px 2px;
  color: #9aa3a1;
  font-style: italic;
}

.shout-error {
  margin-bottom: 6px;
  color: #ff5252;
  font-weight: bold;
}

.shout-form {
  display: flex;
  gap: 6px;
}

.shout-input {
  flex: 1;
  min-width: 0;
}

.shout-count {
  margin-top: 4px;
  color: #b89a3a;
  text-align: right;
}

/* --- Shoutbox: @mention autocomplete dropdown (above the input) --- */
.shout-compose {
  position: relative;
}
.shout-suggest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 3px);
  z-index: 30;
  background-color: #2f3a3a;
  border: 1px solid #050505;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.shout-suggest-item {
  display: block;
  width: 100%;
  padding: 5px 9px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #dfe3e1;
  text-align: left;
  font-weight: bold;
}
.shout-suggest-item--active,
.shout-suggest-item:hover {
  background-color: #4a5a5a;
  box-shadow: inset 3px 0 0 #7cc0ff;
  color: #ffffff;
}

/* --- Shoutbox: mentions, replies & ping highlight --- */
.shout-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* the message text flexes; actions sit in a fixed right-hand column */
.shout-content {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* Discord-style: a message that pings the CURRENT viewer (and only them) gets
   a gold left bar + soft yellow wash so it's instantly clear it's for you. */
.shout-msg--ping {
  border-left: 3px solid #faa61a;
  border-radius: 2px;
  padding: 2px 6px;
  margin-left: -9px;
  background-color: rgba(250, 166, 26, 0.14);
}
.shout-msg--ping:hover {
  background-color: rgba(250, 166, 26, 0.2);
}

.shout-mention {
  color: #7cc0ff;
  background-color: rgba(124, 192, 255, 0.12);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: bold;
}

.shout-mention--me {
  color: #ffe07c;
  background-color: rgba(255, 208, 60, 0.18);
}

/* Discord-style "replying to" quote line above a message */
.shout-reply {
  margin: 0 0 1px 2px;
  color: #9aa3a1;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.shout-reply b {
  color: #cdd3d1;
}
.shout-reply-arrow {
  margin-right: 3px;
  color: #6f7a76;
}

/* per-message actions, right-aligned into a uniform column across messages */
.shout-actions {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.shout-line:hover .shout-actions {
  opacity: 1;
}
.shout-action {
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 15px;
  color: #cfd3d1;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.shout-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* reply composer banner above the input */
.shout-replybar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-left: 3px solid #b89a3a;
  background-color: rgba(0, 0, 0, 0.25);
  color: #cdd3d1;
}
.shout-replybar-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #9aa3a1;
}
.shout-replybar-x {
  padding: 0 6px;
  font-weight: bold;
  line-height: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 3px;
}

/* --- Ping toasts (bottom-centre, auto-dismiss in 10s) --- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  position: relative;
  min-width: 250px;
  max-width: 360px;
  background: linear-gradient(180deg, #2c2d30 0%, #232427 100%);
  border: 1px solid #050505;
  border-left: 3px solid #ff4444;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-body {
  padding: 8px 24px 8px 12px;
  color: #eaecec;
  line-height: 1.4;
}

.toast-text {
  margin-top: 3px;
  color: #b9bdbc;
  word-break: break-word;
}

.toast-x {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0 6px;
  color: #9aa09e;
  background: none;
  border: 0;
  font-size: 13px;
  line-height: 16px;
}
.toast-x:hover {
  color: #ffffff;
  background: none;
}

.toast-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ff6b6b, #d40000);
  transform-origin: left center;
  animation: toast-shrink 10s linear forwards;
}

@keyframes toast-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* --- Player profile --- */
.profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-main {
  flex: 1;
  min-width: 240px;
}

.profile-side {
  width: 190px;
  flex-shrink: 0;
}

.profile-sectionhead {
  margin: 14px 0 6px;
  padding: 4px 8px;
  background-image: var(--bar-subpanel);
  box-shadow: var(--bar-gloss);
  border: 1px solid #000;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.profile-main > .profile-sectionhead:first-child,
.profile-side > .profile-sectionhead:first-child {
  margin-top: 0;
}

.profile-info {
  border: 1px solid #050505;
}

.profile-row {
  display: flex;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.profile-row:nth-child(even) {
  background-color: #3f4f4f;
}

.profile-row:nth-child(odd) {
  background-color: #384747;
}

.profile-label {
  width: 120px;
  flex-shrink: 0;
  color: #cfd6d4;
  font-weight: bold;
}

.profile-value {
  color: #ffffff;
}

.profile-empty {
  margin: 0;
  padding: 6px 8px;
  color: #9aa3a1;
  font-style: italic;
  background-color: #384747;
  border: 1px solid #050505;
}

.profile-text {
  margin: 0;
  padding: 8px;
  color: #e9e9e9;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #384747;
  border: 1px solid #050505;
}

.profile-avatar {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #050505;
  background-color: #2b3535;
}

.profile-avatar--empty,
.profile-banner--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: #9aa3a1;
  font-style: italic;
}

.profile-banner {
  width: 100%;
  border: 1px solid #050505;
  background-color: #2b3535;
}

/* --- Account settings --- */
.settings-form {
  max-width: 460px;
}

.settings-hint {
  margin: 0 0 12px;
  color: #cfd6d4;
}

.settings-label {
  display: block;
  margin: 10px 0 4px;
  font-weight: bold;
  color: #e6e6e6;
}

.settings-input {
  width: 100%;
}

.settings-textarea {
  resize: vertical;
  line-height: 1.4;
}

.settings-preview {
  width: 120px;
  margin-top: 8px;
}

.settings-form button {
  margin-top: 12px;
}

/* --- BBCode editor --- */
.bb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.bb-toolbar button {
  margin-top: 0;
  padding: 3px 9px;
  min-width: 26px;
}

.bb-preview-label {
  margin: 10px 0 4px;
  font-weight: bold;
  color: #e6e6e6;
}

.bb-preview {
  min-height: 44px;
  padding: 8px;
  background-color: #384747;
  border: 1px solid #050505;
}

/* --- Rendered BBCode (profile text + editor preview) --- */
.bbcode {
  color: #e9e9e9;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.bbcode img.bb-img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
}

.bbcode a {
  color: #ecd45a;
  font-weight: bold;
}

.bbcode a:hover {
  text-decoration: underline;
}

.bbcode blockquote.bb-quote {
  margin: 6px 0;
  padding: 4px 10px;
  border-left: 3px solid #ecd45a;
  background-color: rgba(0, 0, 0, 0.2);
  color: #cfd6d4;
}

.feed {
  margin-top: 12px;
  border: 1px solid #000000;
}

.feed-head {
  padding: 5px;
  background-image: var(--bar-sidebar);
  box-shadow: var(--bar-gloss);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.feed-body {
  padding: 6px 8px;
  background-color: #454547;
}

.feed-item {
  margin: 0 0 5px;
  font-size: 10px;
  line-height: 1.45;
}

.feed-item:last-child {
  margin-bottom: 0;
}

/* --- Bezittingen (ownable state establishments) --- */
.bez-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.bez-state {
  background-color: #2b2526;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
}
.bez-state-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background-image: var(--bar-sidebar);
  box-shadow: var(--bar-gloss);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
.bez-here {
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ecd45a;
}
.bez-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas:
    "thumb name"
    "thumb meta"
    "thumb actions"
    "form  form";
  align-items: center;
  gap: 3px 10px;
  padding: 7px 8px;
  background-color: #454547;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.bez-thumb {
  grid-area: thumb;
  align-self: center;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #050505;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bez-row > .bez-name {
  grid-area: name;
}
.bez-row > .bez-meta {
  grid-area: meta;
}
.bez-row > .bez-actions {
  grid-area: actions;
}
.bez-row > .bez-kf-form {
  grid-area: form;
}

/* Establishment header image on its own page. */
.bez-banner {
  margin: 0 0 14px;
  text-align: center;
}

.bez-banner img {
  display: inline-block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #050505;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.bez-row:last-child {
  border-bottom: 0;
}
.bez-mine {
  background-color: #2f3a34;
  box-shadow: inset 3px 0 0 #19f51d;
}
.bez-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.bez-owner {
  font-size: 10px;
  color: #cfd3d1;
}
.bez-meta {
  margin: 2px 0 5px;
  font-size: 10px;
  color: #d8dcda;
}
.bez-actions {
  display: flex;
  gap: 5px;
}
.bez-actions button {
  padding: 3px 10px;
  font-size: 10px;
}
.bez-kf-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  font-size: 10px;
}
.bez-kf-form label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bez-kf-hint {
  color: #9aa3a1;
}

/* --- Uitrustingenwinkel / Inventory shop cards --- */
.shop-section {
  margin: 12px 0 4px;
  padding: 4px 8px;
  background-image: var(--bar-sidebar);
  box-shadow: var(--bar-gloss);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.shop-card {
  background-color: #2b2526;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
}
.shop-img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  background-color: #2b3535;
}
.shop-noimg {
  background-image: linear-gradient(
    135deg,
    #33403f 25%,
    #2b3535 25% 50%,
    #33403f 50% 75%,
    #2b3535 75%
  );
  background-size: 16px 16px;
}
.shop-body {
  padding: 6px 8px;
}
.shop-name {
  margin-bottom: 2px;
}
.shop-desc {
  font-size: 10px;
  color: #cfd3d1;
  line-height: 1.4;
}
.shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}
.shop-foot button {
  padding: 3px 10px;
  font-size: 10px;
}
.shop-owned {
  font-size: 10px;
  color: #9aa3a1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* --- Moderation & helpdesk --- */
.mod-section {
  margin: 10px 0;
  padding: 8px 10px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-radius: 2px;
}
.mod-head {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ecd45a;
}
.mod-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.mod-form input {
  min-width: 96px;
}
.mod-check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.mod-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mod-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 2fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  background-color: #454547;
  border-radius: 2px;
}
.mod-row--empty {
  display: block;
  color: #b8bcbb;
}
.mod-row-when,
.mod-row-reason {
  color: #d8dcda;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mod-row button {
  padding: 3px 8px;
}

.ticket-text {
  width: 100%;
  min-height: 60px;
  margin-bottom: 8px;
  resize: vertical;
}
.ticket {
  margin-bottom: 8px;
  padding: 7px 9px;
  background-color: #454547;
  border-left: 3px solid var(--accent-gold-deep);
  border-radius: 2px;
}
.ticket-top {
  margin-bottom: 3px;
}
.ticket-by {
  color: #b8bcbb;
  font-size: 10px;
}
.ticket-msg {
  color: #d8dcda;
  white-space: pre-wrap;
}
.ticket-answer {
  margin-top: 6px;
  padding: 6px 8px;
  background-color: rgba(53, 196, 106, 0.1);
  border-left: 3px solid #35c46a;
  border-radius: 2px;
}
.tick-status {
  display: inline-block;
  padding: 0 5px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}
.tick-open {
  background-color: rgba(255, 140, 43, 0.18);
  color: #ff8c2b;
}
.tick-answered {
  background-color: rgba(53, 196, 106, 0.18);
  color: #35c46a;
}
.tick-closed {
  background-color: rgba(255, 255, 255, 0.12);
  color: #cfd3d1;
}

/* Full-screen block shown to a banned account */
.ban-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.88);
}
.ban-card {
  max-width: 420px;
  padding: 26px 30px 30px;
  text-align: center;
  background-color: #3c3d40;
  border: 2px solid #e5484d;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.ban-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #e5484d;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.ban-reason {
  margin: 0 0 8px;
  font-size: 13px;
  color: #ffffff;
}
.ban-until {
  margin: 0 0 18px;
  color: #b8bcbb;
}

/* --- Berichten: unread notification badge on the "Berichten" menu item --- */
.msg-badge {
  display: inline-block;
  margin-left: 6px;
  min-width: 15px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff6b6b 0%, #d40000 100%);
  border: 1px solid #7a0000;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  line-height: 15px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 0 5px rgba(255, 40, 40, 0.75);
  animation: msg-pulse 1.5s ease-in-out infinite;
}

@keyframes msg-pulse {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(255, 40, 40, 0.55);
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 70, 70, 1);
  }
}

/* --- Berichten: compose form + autocomplete --- */
.msg-field {
  margin-bottom: 10px;
}
.msg-field > label {
  display: block;
  margin-bottom: 3px;
  font-weight: bold;
  color: #cfd3d2;
}
.msg-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  resize: vertical;
}
.msg-autocomplete {
  position: relative;
  max-width: 260px;
}
.msg-autocomplete input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
}
.msg-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  background-color: #2f2f30;
  border: 1px solid #050505;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  max-height: 190px;
  overflow-y: auto;
}
.msg-suggest-item {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
}
.msg-suggest-item:hover {
  background-color: #54494b;
  box-shadow: inset 3px 0 0 #b89a3a;
}

/* --- Berichten: inbox rows --- */
.msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.msg-time {
  color: #9aa09e;
  font-size: 10px;
  white-space: nowrap;
}
.msg-body {
  color: #e7eae9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Drugs/drank smuggling --- */
.contra-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.contra-tab {
  padding: 4px 14px;
}
.contra-tab--on {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -2px 0 #ecd45a;
}
.contra-qty {
  width: 60px;
}
.contra-index-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #050505;
  margin-top: 6px;
}
.contra-index {
  border-collapse: collapse;
  font-size: 10px;
  white-space: nowrap;
}
.contra-index td {
  padding: 3px 7px;
  border: 1px solid #2b2c2e;
  text-align: right;
}
.ci-corner,
.ci-head {
  background-color: #2f2f30;
  font-weight: bold;
  text-align: center;
}
.ci-corner,
.ci-row {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
}
.ci-cell {
  background-color: #454547;
}
.ci-pos {
  color: #19f51d;
}
.ci-neg {
  color: #ff5252;
}
.ci-zero {
  color: #8a8f8d;
}

/* --- Eerpunten (honour points) --- */
.eer-hero {
  padding: 16px 0 14px;
  text-align: center;
}
.eer-count {
  margin-top: 4px;
  font-size: 30px;
  font-weight: bold;
  color: #f2c14e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.eer-sub {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfd3d1;
}

/* --- Messages: unread badge + conversation threads --- */
.msg-badge {
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 8px;
  background-color: #e5484d;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
}
.convo-unread {
  display: inline-block;
  margin-left: 6px;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background-color: #e5484d;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
}
.convo-snip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b8bcbb;
}
.thread-back {
  padding: 2px 8px;
  font-size: 10px;
}
.thread-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 4px;
}
.thread-msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.thread-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.thread-theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.thread-bubble {
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #454547;
  white-space: pre-wrap;
  word-break: break-word;
}
.thread-mine .thread-bubble {
  background-color: #3d4048;
}
.thread-time {
  margin-top: 2px;
  font-size: 9px;
  color: #9aa3a1;
}
.thread-reply {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.thread-reply textarea {
  flex: 1;
  resize: vertical;
}

/* Your own name in player lists (online + Ledenlijst) - just bold, like the sidebar. */
.self-name {
  font-weight: bold;
}

/* Makelaardij house markers */
.house-done {
  color: #19f51d;
  font-weight: bold;
}
.house-own {
  color: #ecd45a;
  font-size: 10px;
}

/* --- Bank Overval (co-op heist) --- */
.heist-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0;
  padding: 8px 10px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.heist-crew {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.heist-member {
  padding: 6px 8px;
  background-color: #3d3d3f;
  border-radius: 3px;
}
.heist-member-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.heist-tag {
  padding: 0 5px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.12);
  font-size: 9px;
}
.heist-x {
  margin-left: auto;
  padding: 1px 7px;
  font-size: 10px;
}
.heist-member-role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.heist-fit {
  font-size: 10px;
  color: #cfd3d1;
}
.heist-scores {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 10px;
  color: #9aa3a1;
}
.heist-s-on {
  color: #ecd45a;
  font-weight: bold;
}
.heist-invite {
  padding: 8px 10px;
  margin-bottom: 8px;
  background-color: rgba(236, 212, 90, 0.1);
  border: 1px solid rgba(236, 212, 90, 0.4);
  border-radius: 3px;
}
.heist-invite-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.heist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.heist-ready {
  font-size: 12px;
  line-height: 1;
  color: #9aa3a1;
}
.heist-pick {
  margin-left: 4px;
  font-size: 10px;
  color: #ecd45a;
}
.heist-menu-dots {
  margin-left: 5px;
  font-size: 9px;
  letter-spacing: 1px;
  vertical-align: middle;
}
.heist-menu-dots .dim {
  color: #6b6f6d;
}

/* Auto tunen stat bars */
.tune-bar {
  display: flex;
  height: 7px;
  max-width: 220px;
  margin-top: 3px;
  background-color: #2a2a2c;
  border-radius: 4px;
  overflow: hidden;
}
.tune-bar-base {
  background-color: #6a86a0;
}
.tune-bar-bonus {
  background-color: #ecd45a;
}
.tune-th {
  white-space: nowrap;
  user-select: none;
}
.tune-th:hover {
  background-color: #3a3a3c;
}
.tune-sel {
  padding: 3px 3px 3px 4px;
  background-color: #37474a;
  box-shadow: inset 3px 0 0 #ecd45a;
}
.tune-head {
  margin: 2px 0 6px;
  font-size: 12px;
}
.tune-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tune-row-info {
  flex: 1;
  min-width: 0;
}

/* Straatraces open lobby */
.race-block {
  margin-top: 12px;
}
.race-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Toplijst (leaderboard) */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.lb-card {
  padding: 8px;
  background-color: #3d3d3f;
  border-radius: 3px;
}
.lb-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lb-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lb-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.lb-rank {
  width: 20px;
  text-align: right;
  color: #9aa3a1;
}
.lb-val {
  margin-left: auto;
  font-weight: bold;
}
.lb-me {
  background-color: rgba(236, 212, 90, 0.09);
  border-radius: 2px;
}
.lb-foot {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: #cfd3d1;
}

/* Markt (marketplace) */
.mkt-sell {
  margin: 8px 0;
  padding: 8px;
  background-color: #2f2f31;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mkt-sell-head {
  font-weight: bold;
  margin-bottom: 6px;
}
.mkt-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.mkt-car-preview {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}
.mkt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.mkt-tab {
  padding: 3px 10px;
  background-color: #3d3d3f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfd3d1;
  cursor: pointer;
  border-radius: 3px;
}
.mkt-tab--on {
  background-color: #6a1414;
  color: #fff;
}
.mkt-listing {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mkt-mine {
  border: 1px solid rgba(236, 212, 90, 0.35);
}
.mkt-car-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: 10px;
}
.mkt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
}
.mkt-seller {
  opacity: 0.6;
  font-size: 10px;
}
.mkt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

/* Families */
/* Family banner (Familie Plaatje) + custom BBCode profile body */
.fam-banner {
  margin-bottom: 10px;
  text-align: center;
}
.fam-banner img {
  max-width: 100%;
  max-height: 260px;
  height: auto;
  border: 1px solid #050505;
  background-color: #2b3535;
}
.fam-banner-preview {
  margin: 6px 0;
  max-width: 320px;
}
.fam-banner-preview img {
  max-width: 100%;
  height: auto;
  border: 1px solid #050505;
}
.fam-profile-body {
  margin: 12px 0;
  padding: 10px;
  background-color: #384747;
  border: 1px solid #050505;
}

/* --- Family missions --- */
.fammis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.fammis-card {
  padding: 10px;
  background-color: #3c3d40;
  border: 1px solid #050505;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.fammis-card.maxed {
  border-color: #ecd45a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(236, 212, 90, 0.3);
}
.fammis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.fammis-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.fammis-title {
  font-weight: bold;
  font-size: 13px;
}
.fammis-tier {
  font-size: 10px;
  color: #ecd45a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fammis-desc {
  min-height: 28px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #cfd6d4;
}
.fammis-bar {
  height: 10px;
  background-color: #2b3535;
  border: 1px solid #050505;
  border-radius: 5px;
  overflow: hidden;
}
.fammis-bar-fill {
  height: 100%;
  background: linear-gradient(180deg, #19f51d 0%, #12b016 100%);
  transition: width 0.35s ease;
}
.fammis-card.maxed .fammis-bar-fill {
  background: linear-gradient(180deg, #ecd45a 0%, #cfd400 100%);
}
.fammis-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
}
.fammis-reward {
  color: #ecd45a;
  font-weight: bold;
  white-space: nowrap;
}

.fam-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0;
}
.fam-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.fam-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fam-members {
  margin: 8px 0;
}
.fam-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.fam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #555;
  flex: 0 0 auto;
}
.fam-dot.on {
  background-color: #19f51d;
}
.fam-role {
  font-size: 10px;
  color: #f2c14e;
  text-transform: uppercase;
}
.fam-lvl {
  font-size: 10px;
  opacity: 0.6;
}
.fam-mgmt {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.fam-mgmt button {
  font-size: 10px;
  padding: 1px 6px;
}

/* Familie Profiel page: two-column blocks + member health bars */
.fam-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  align-items: start;
}
.fam-block {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 10px;
  background-color: #2f2f31;
  overflow: hidden;
}
.fam-block-head {
  background-color: #3d3d3f;
  padding: 5px 8px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.fam-block-body {
  padding: 8px;
}
.fam-plaatje {
  text-align: center;
}
.fam-plaatje img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 2px;
  display: block;
  margin: 0 auto;
}
.fam-hpbar {
  display: inline-block;
  width: 64px;
  height: 10px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
  vertical-align: middle;
}
.fam-hpfill {
  display: block;
  height: 100%;
}

/* --- Legal links in the game footer --- */
.footer-legal {
  color: #b9bdbc;
  font-size: 10px;
}
.footer-legal:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Forum --- */
.forum-back {
  margin-right: 10px;
  padding: 1px 8px;
  font-size: 10px;
}

/* category cards on the forum landing */
.forum-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.forum-cat {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #050505;
  border-left: 3px solid #b89a3a;
  border-radius: 3px;
  background: linear-gradient(180deg, #42454d 0%, #2e3036 100%);
}
.forum-cat:hover {
  border-left-color: #ecd45a;
  background: linear-gradient(180deg, #445353 0%, #384545 100%);
}
.forum-cat-title {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}
.forum-cat-desc {
  margin-top: 3px;
  color: #c7cbca;
}
.forum-cat-count {
  margin-top: 5px;
  font-size: 10px;
  color: #9aa3a1;
}

/* topic list */
.forum-list-actions {
  margin-bottom: 8px;
}
.forum-topic-title {
  color: #ffffff;
}
.forum-topic-meta {
  color: #9aa3a1;
  font-size: 10px;
}
.forum-lock {
  color: #ff9d5c;
  font-size: 10px;
}

/* create/reply form fields */
.forum-field {
  margin-bottom: 10px;
}
.forum-field > label {
  display: block;
  margin-bottom: 3px;
  font-weight: bold;
  color: #cfd3d2;
}
.forum-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
}

/* thread posts */
.forum-post {
  margin-bottom: 8px;
  border: 1px solid #050505;
  border-radius: 3px;
  background-color: #3a3a3c;
  overflow: hidden;
}
.forum-post--op {
  border-left: 3px solid #ecd45a;
}
.forum-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 9px;
  background-color: #2f2f30;
  border-bottom: 1px solid #050505;
}
.forum-post-time {
  color: #9aa3a1;
  font-size: 10px;
  white-space: nowrap;
}
.forum-post-body {
  padding: 9px;
  color: #e7eae9;
  line-height: 1.5;
  word-break: break-word;
}
.forum-reply-form {
  margin-top: 12px;
}
.forum-locked {
  margin-top: 12px;
  color: #ff9d5c;
  font-style: italic;
}
