:root {
  color-scheme: dark;
  --bg: #111418;
  --panel: #1b1f27;
  --panel-alt: #222735;
  --accent: #8bc34a;
  --accent-alt: #4caf50;
  --danger: #ff6b6b;
  --muted: #6f7a8b;
  --text: #f5f7fa;
  --weedami-sfondi-base: /sfondi/;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #21263a 0%, var(--bg) 60%);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.status-bar {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.15rem 0.85rem 0.9rem;
  background: rgba(17, 20, 24, 0.9);
  border-bottom: 1px solid #242d3e;
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.status-bar.collapsed .status-top-row,
.status-bar.collapsed .travel-row,
.status-bar.collapsed .header-inventory {
  display: none;
}

.status-bar.collapsed {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  min-height: 32px;
}

.status-bar-toggle {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
}

.status-bar-toggle button {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  gap: 0.1rem;
  align-items: center;
}

.status-bar-toggle button span {
  font-size: 0.85rem;
}
.status-bar.collapsed::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.status-bar.collapsed .status-bar-toggle button {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.4);
  border-radius: 999px 999px 0 0;
  padding-bottom: 0.3rem;
}

.status-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-top-row > * {
  font-size: 0.75rem;
}

.language-player-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 185px;
}

.language-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0;
}

.status-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.status-right-group > * {
  font-size: 0.75rem;
}

.ranking {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.35rem 0.7rem;
  min-width: 185px;
  gap: 0.4rem;
}

.ranking .ranking-progress {
  font-weight: 700;
}

.ranking-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.ranking .ranking-legal {
  font-size: 0.7rem;
  color: var(--muted);
}

.travel-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.travel-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.travel-controls {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}


.travel-vehicle-preview {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.travel-vehicle-preview.has-icon {
  background: rgba(0, 0, 0, 0.1);
}

.selected-vehicle-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.vehicle-icon-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.networth-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.networth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.networth-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.networth-card-header p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.networth-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.networth-card-body .muted {
  color: var(--muted);
  margin: 0;
}

.networth-chart {
  width: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.networth-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.networth-chart-meta div {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.networth-chart-meta small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.networth-chart-meta strong {
  font-size: 1rem;
}

.refresh-networth {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cameretta-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cameretta-lower-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.cameretta-storage,
.cameretta-actions {
  flex: 1 1 320px;
}

.cameretta-actions .storage-actions {
  width: 100%;
}

.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;
}

.brand-logo-inline {
  width: 165px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.header-inventory {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
  text-align: right;
  margin-top: auto;
  padding-right: 0.3rem;
}

.header-inventory-title {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: right;
}

.inventory-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  margin-left: auto;
  justify-content: flex-end;
  align-self: flex-end;
}

.inventory-strip::-webkit-scrollbar {
  height: 6px;
}

.inventory-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.inventory-strip li {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.7rem;
  padding: 0.18rem 0.35rem;
  font-size: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-item .product-label span:last-child {
  font-size: 0.6rem;
}

.inventory-qty {
  font-weight: 600;
  color: var(--accent);
}

.inventory-empty {
  color: var(--muted);
}

.header-inventory-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.header-destination-miniatures {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.language-switcher label {
  font-size: 0.75rem;
  color: var(--muted);
}

.language-switcher select {
  min-width: 95px;
}

.ranking,
.server-time {
  min-width: 190px;
}

.active-player {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--muted);
}

.active-player strong {
  font-size: 0.85rem;
  color: var(--text);
}

.active-player span {
  font-size: 0.85rem;
  color: var(--text);
}

.wallets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wallets .wallet-chip {
  background: var(--panel);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wallet-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.action-form input,
.action-form button {
  max-width: 300px;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.product-icon {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.building-label,
.luxury-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.building-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.luxury-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.building-label-large {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.building-label-large .building-icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.luxury-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.luxury-preview-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.luxury-asset-preview strong {
  font-size: 0.95rem;
  margin-top: 0.2rem;
  display: block;
  text-align: center;
}

.luxury-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.luxury-assets-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.luxury-assets-summary .positive {
  color: #80ffb3;
  font-weight: 600;
}

.luxury-assets-summary .negative {
  color: #ff9a9a;
  font-weight: 600;
}

.luxury-asset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.luxury-asset-card-body {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.luxury-asset-info strong {
  display: block;
  font-size: 0.95rem;
}

.luxury-asset-stats {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.luxury-asset-stats .positive {
  color: #80ffb3;
  font-weight: 600;
  margin-left: 0.25rem;
}

.luxury-asset-stats .negative {
  color: #ff9a9a;
  font-weight: 600;
  margin-left: 0.25rem;
}

.luxury-asset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.luxury-asset-actions button {
  min-width: 90px;
}

.travel-controls div {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.25rem;
}

select,
input,
button {
  border-radius: 0.5rem;
  border: 1px solid #313a4c;
  background: var(--panel-alt);
  color: inherit;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.status-bar select,
.status-bar input,
.status-bar button {
  font-size: 0.78rem;
  padding: 0.32rem 0.55rem;
}

.status-bar label {
  font-size: 0.75rem;
}

button {
  cursor: pointer;
  background: var(--accent-alt);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
}

button.danger {
  background: var(--danger);
  color: #fff;
}

button.danger:disabled {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.6);
}

button:disabled {
  background: #313a4c;
  color: var(--muted);
  cursor: not-allowed;
}

.gate-card .gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.gate-card .gate-actions button {
  width: 230px;
  max-width: 100%;
  text-align: left;
}

button.crypto-button {
  background: #1f6feb;
  color: #fff;
}

button.crypto-button:disabled {
  background: #2c3f60;
  color: rgba(255, 255, 255, 0.6);
}

main {
  flex: 1;
  display: grid;
  /* colonna centrale = tutto lo spazio, colonna smartphone = larghezza del pannello */
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-panel,
.smartphone,
.scoreboard-panel {
  background: rgba(22, 26, 36, 0.92);
  border-radius: 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.location-panel--cameretta {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SCameretta.png) center top no-repeat;
  background-size: 100% 100%;
}
.location-panel--cameretta .card,
.location-panel--cameretta .location-actions,
.location-panel--cameretta .location-meta,
.location-panel--cameretta .travel-card,
.location-panel--cameretta .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}
.location-panel--bar {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.25)
    ),
    url(/sfondi/SBar.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--bar .card,
.location-panel--bar .location-actions,
.location-panel--bar .location-meta,
.location-panel--bar .travel-card,
.location-panel--bar .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}
.location-panel--concessionario-auto {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SConcessionaria%20auto.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--concessionario-auto .card,
.location-panel--concessionario-auto .location-actions,
.location-panel--concessionario-auto .location-meta,
.location-panel--concessionario-auto .travel-card,
.location-panel--concessionario-auto .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}


.location-panel--mercato-nero-ghetto {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SGetto%20gate.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--mercato-nero-ghetto .card,
.location-panel--mercato-nero-ghetto .location-actions,
.location-panel--mercato-nero-ghetto .location-meta,
.location-panel--mercato-nero-ghetto .travel-card,
.location-panel--mercato-nero-ghetto .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}
.location-panel--mercato-nero-ghetto.black-market-active {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SGhetto.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--mercato-nero-ghetto.black-market-active .card,
.location-panel--mercato-nero-ghetto.black-market-active .location-actions,
.location-panel--mercato-nero-ghetto.black-market-active .location-meta,
.location-panel--mercato-nero-ghetto.black-market-active .travel-card,
.location-panel--mercato-nero-ghetto.black-market-active .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}
.location-panel--negozio-lusso {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SNegozio%20Lusso.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--negozio-lusso .card,
.location-panel--negozio-lusso .location-actions,
.location-panel--negozio-lusso .location-meta,
.location-panel--negozio-lusso .travel-card,
.location-panel--negozio-lusso .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel--banca {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SBanca.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--banca .card,
.location-panel--banca .location-actions,
.location-panel--banca .location-meta,
.location-panel--banca .travel-card,
.location-panel--banca .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel--capannone {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SCapannone.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--capannone .card,
.location-panel--capannone .location-actions,
.location-panel--capannone .location-meta,
.location-panel--capannone .travel-card,
.location-panel--capannone .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel--deposito-spedizioni {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SMagazzino%20postale.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--deposito-spedizioni .card,
.location-panel--deposito-spedizioni .location-actions,
.location-panel--deposito-spedizioni .location-meta,
.location-panel--deposito-spedizioni .travel-card,
.location-panel--deposito-spedizioni .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel--agenzia-immobiliare {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/SAgenzia%20Immobiliare.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--agenzia-immobiliare .card,
.location-panel--agenzia-immobiliare .location-actions,
.location-panel--agenzia-immobiliare .location-meta,
.location-panel--agenzia-immobiliare .travel-card,
.location-panel--agenzia-immobiliare .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel--studio-legale {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)
    ),
    url(/sfondi/StudioLegale.png) center top no-repeat;
  background-size: 100% 100%;
}

.location-panel--studio-legale .card,
.location-panel--studio-legale .location-actions,
.location-panel--studio-legale .location-meta,
.location-panel--studio-legale .travel-card,
.location-panel--studio-legale .smartphone {
  background: rgba(22, 26, 36, 0.55) !important;
  backdrop-filter: blur(4px);
}

.location-panel header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

#locationName {
  margin: 0;
  font-size: 1.6rem;
}

#locationMeta {
  font-size: 0.82rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.real-estate-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}

.real-estate-card {
  width: min(100%, 360px);
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.real-estate-card-header,
.real-estate-card-body {
  width: 100%;
}

.real-estate-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.real-estate-card-body button {
  margin-top: 0.35rem;
  align-self: center;
}

.real-estate-card .blocked-message {
  text-align: center;
}

.capannone-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.facility-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facility-tablist {
  display: flex;
  gap: 0.5rem;
}

.facility-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.facility-tab--collapsed {
  opacity: 0.7;
}

.facility-tabpanel {
  width: 100%;
}

.facility-tabpanel--collapsed {
  display: none;
}

.facility-tabs .storage-card {
  width: fit-content;
  max-width: min(100%, 640px);
  align-self: flex-start;
  min-width: 360px;
}

.facility-tabs .storage-card.storage-card-compact {
  width: 100%;
  max-width: 100%;
  min-width: auto;
}

.facility-machines-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facility-storage-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facility-storage-header h3 {
  margin: 0 0 0.25rem;
}

.facility-storage-header p {
  margin: 0;
  color: var(--muted);
}

.facility-storage-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.facility-machines-intro h3 {
  margin: 0 0 0.25rem;
}

.facility-machines-intro p {
  margin: 0;
  color: var(--muted);
}

.facility-machine-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.facility-machine-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.facility-machine-card--empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}

.facility-machine-card-header {
  position: relative;
}

.facility-machine-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.facility-machine-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.facility-machine-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: var(--danger);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.facility-machine-remove:hover {
  opacity: 0.85;
}

.facility-machine-setup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facility-machine-select {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.facility-machine-select select {
  width: 100%;
  background: var(--panel-alt);
  border: 1px solid #313a4c;
  color: inherit;
  padding: 0.4rem 0.65rem;
}

.facility-machine-input-select {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.facility-machine-input-select select {
  width: 100%;
  background: var(--panel-alt);
  border: 1px solid #313a4c;
  color: inherit;
  padding: 0.4rem 0.65rem;
}

.facility-machine-input-preview {
  margin-bottom: 0.35rem;
}

.facility-machine-price {
  margin: 0;
  font-weight: 600;
}

.facility-machine-status {
  border-radius: 0.65rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.facility-machine-status--running {
  background: rgba(31, 162, 255, 0.08);
  border: 1px solid rgba(31, 162, 255, 0.4);
}

.facility-machine-status--idle {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.facility-machine-status-text {
  margin: 0;
  font-weight: 600;
}

.facility-machine-status-meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.facility-machine-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding-left: 0.35rem;
  font-weight: 600;
  color: var(--accent);
}

.facility-machine-flow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
}

.facility-machine-flow-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.facility-machine-flow-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.facility-machine-flow-arrow {
  font-weight: 700;
  color: var(--muted);
}

.law-firm-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.law-firm-dual-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: flex-start;
}
.law-firm-dual-row .law-firm-card {
  margin: 0;
}

.law-firm-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.law-firm-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

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

.law-firm-searches,
.law-firm-lawyers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.law-firm-search,
.law-firm-lawyers li {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.65rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.law-firm-search-ready {
  border-color: rgba(31, 162, 255, 0.4);
}

.law-firm-search-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.law-firm-countdown {
  font-weight: 600;
  color: var(--accent);
}

.lawyer-stars {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.lawyer-star {
  margin-right: 0.05rem;
}

.lawyer-stars .lawyer-star.filled {
  color: var(--accent);
}

.law-firm-lawyer-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.law-firm-card.law-firm-cases section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.law-firm-card.law-firm-cases h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.lawsuit-start label,
.lawsuit-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.lawsuit-start select,
.lawsuit-start input[type="range"] {
  width: 100%;
}

.lawsuit-preview {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lawsuit-preview span {
  font-size: 1.15rem;
  font-weight: 700;
}

.lawsuit-entry,
.lawsuit-history-entry {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.65rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lawsuit-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lawsuit-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.lawsuit-odds {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lawsuit-odds .attacker {
  color: var(--accent);
}

.lawsuit-odds .defender {
  color: #7cb342;
}

.lawsuit-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lawsuit-controls label {
  flex: 1 1 200px;
}

.lawsuit-controls input[type="range"] {
  width: 100%;
}

.lawsuit-controls input[type="number"] {
  width: 100%;
  padding: 0.35rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
}

.lawsuit-settle {
  align-self: flex-end;
}

.lawsuit-morale,
.lawsuit-finance,
.lawsuit-snapshot {
  font-size: 0.8rem;
  color: var(--muted);
}

.lawsuit-history-entry {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.lawsuit-history-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.facility-machine-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.facility-machine-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.facility-machine-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text);
  padding: 0.4rem 0.5rem;
}

.facility-machine-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.facility-machine-form-actions button {
  align-self: flex-start;
}

.facility-machine-cancel {
  background: var(--danger);
  border: none;
  color: #fff;
}

.facility-machine-cancel:hover:not(:disabled) {
  opacity: 0.9;
}

.facility-machine-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.facility-machine-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.facility-machine-meta-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card {
  background: var(--panel);
  border-radius: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.storage-zone {
  margin-bottom: 1rem;
}

.storage-actions {
  margin-top: 0.5rem;
}

.liquidate-panel {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.liquidate-panel button {
  align-self: flex-start;
}

.storage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.storage-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-entry:last-child {
  border-bottom: none;
}

.storage-entry > div:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.storage-entry-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.storage-entry-value {
  font-weight: 600;
  color: var(--text);
}

.storage-card-compact {
  width: 100%;
}

.storage-compact-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.storage-list-compact {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.storage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.storage-chip-qty {
  font-weight: 600;
  color: var(--accent);
}

.storage-chip-empty {
  color: var(--muted);
  font-style: italic;
}

.travel-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.travel-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.travel-card-route {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.travel-card-arrival {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-countdown {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.travel-illustration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  justify-content: center;
}

.travel-illustration-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 72px;
}

.travel-illustration-node span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.travel-illustration-node--vehicle {
  background: rgba(139, 195, 74, 0.12);
  border-color: rgba(139, 195, 74, 0.4);
}

.travel-illustration-node--vehicle span {
  color: var(--accent);
}

.travel-illustration-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.travel-illustration-fallback {
  width: 40px;
  height: 40px;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.travel-illustration-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 36px;
  color: var(--muted);
}

.travel-illustration-trail {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: travel-trail 1.2s linear infinite;
}

.travel-illustration-trail:nth-child(2) {
  animation-delay: 0.2s;
}

.travel-illustration-trail:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes travel-trail {
  0% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
  100% {
    opacity: 0.2;
    transform: translateX(8px);
  }
}

.card-header {
  margin-bottom: 0.6rem;
}

.card-title {
  margin: 0 0 0.35rem;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.action-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.form-row.secondary {
  flex-direction: row;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.blocked-message {
  color: var(--danger);
  font-style: italic;
  min-height: 1.1em;
}

.smartphone {
  transition: width 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  /* larghezza pannello aperto */
  width: 300px;
  min-width: 300px;
  align-self: stretch;
}
.smartphone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.smartphone-header button {
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}

.smartphone-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.smartphone-tab {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.smartphone-tab.active {
  background: var(--accent-alt);
  border-color: var(--accent-alt);
  color: #0c1605;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.smartphone.collapsed .smartphone-tabs {
  display: none;
}

.smartphone-tab-badge {
  background: var(--accent);
  color: #102909;
  border-radius: 999px;
  min-width: 1rem;
  height: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smartphone-tab-badge:empty {
  display: none;
}

.smartphone-tab.has-unread {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(139, 195, 74, 0.35);
}

.smartphone-tab.has-unread::after {
  content: "✉";
  position: absolute;
  top: 0.1rem;
  right: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
  animation: message-tab-pulse 1.6s ease-in-out infinite;
}

@keyframes message-tab-pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

.smartphone-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.smartphone-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.destination-miniatures {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.1rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.destination-miniature {
  min-width: 50px;
  padding: 0.12rem 0.2rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 64px;
  min-height: 64px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.destination-miniature-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.destination-miniature-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.2);
}

.destination-miniature img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.destination-miniature.active,
.destination-miniature:hover {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(139, 195, 74, 0.4);
}

.destination-miniature-label {
  font-size: 0.5rem;
  color: var(--muted);
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0.03em;
  max-width: 80px;
  font-weight: 600;
  word-break: break-word;
  display: block;
  min-height: 1.6rem;
}

.smartphone-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.smartphone-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.smartphone-panel.active {
  display: flex;
}

.smartphone-body.collapsed {
  display: none;
}

.smartphone.collapsed {
  width: 70px;
  min-width: 70px;
  padding: 0.75rem 0.5rem;
  align-items: center;
}

.smartphone.collapsed .smartphone-header {
  flex-direction: column;
}

.smartphone.collapsed .smartphone-header h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
}

.smartphone.collapsed .smartphone-body {
  display: none;
}

.smartphone.collapsed .smartphone-panel {
  display: none;
}

.smartphone-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.smartphone-inventory-section {
  gap: 0.35rem;
}

.smartphone-inventory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.smartphone-inventory-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  min-width: 78px;
  max-width: 150px;
  line-height: 1;
}

.smartphone-inventory-item .product-label {
  gap: 0.2rem;
}

.smartphone-inventory-item .product-label span:last-child {
  font-size: 0.65rem;
}

.smartphone-inventory-item .product-icon {
  width: 22px;
  height: 22px;
}

.smartphone-inventory-empty {
  font-size: 0.6rem;
  color: var(--muted);
}

.report-center {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.report-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.report-center-actions {
  display: flex;
  gap: 0.3rem;
}

.report-center-actions button {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
}

.report-helper {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.report-entry {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.report-entry--unread {
  border-color: var(--accent);
}

.report-entry--read {
  opacity: 0.75;
}

.report-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.report-entry-header strong {
  font-size: 0.85rem;
}

.report-entry-header time {
  font-size: 0.7rem;
  color: var(--muted);
}

.report-entry p {
  margin: 0;
  font-size: 0.82rem;
}

.report-amount {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
}

.report-entry--checkpoint {
  border-color: #f39c12;
}

.report-entry--transfer-in {
  border-color: #81c784;
}

.report-entry--transfer-out {
  border-color: #64b5f6;
}

.report-entry--vehicle,
.report-entry--property,
.report-entry--license {
  border-color: #ce93d8;
}

.report-empty {
  text-align: center;
  padding: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  color: var(--muted);
}

.messages-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.messages-compose form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.messages-compose label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.messages-compose input,
.messages-compose textarea {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.6rem;
  color: var(--text);
  font-family: inherit;
}

.messages-compose textarea {
  resize: vertical;
}

.messages-compose button {
  align-self: flex-start;
}

.messages-helper {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.messages-helper.error {
  color: var(--danger);
}

.messages-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.messages-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.messages-filters {
  display: flex;
  gap: 0.3rem;
}

.messages-filters button {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
}

.messages-filters button.active {
  background: var(--accent-alt);
  color: #0c1605;
}

.messages-status {
  font-size: 0.75rem;
  color: var(--muted);
}

.messages-status.error {
  color: var(--danger);
}

.messages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.message-entry {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.message-entry--inbox.message-entry--unread {
  border-color: var(--accent);
}

.message-entry--sent {
  border-color: rgba(118, 195, 255, 0.45);
}

.message-entry-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.message-entry-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.message-entry-header strong {
  font-size: 0.85rem;
}

.message-entry-header time {
  font-size: 0.7rem;
  color: var(--muted);
}

.message-delete-button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-delete-button:hover {
  color: var(--accent);
}

.message-entry p {
  margin: 0;
  font-size: 0.82rem;
}

.message-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.message-entry-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.message-entry-illustration {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.message-entry-illustration--unread {
  background: radial-gradient(circle at top, rgba(139, 195, 74, 0.35), rgba(17, 23, 15, 0.85));
  border-color: rgba(139, 195, 74, 0.6);
  box-shadow: 0 0 18px rgba(139, 195, 74, 0.35);
  color: var(--text);
}

.message-illustration-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.message-illustration-arrow {
  font-size: 0.85rem;
  opacity: 0.65;
}

.message-entry-illustration--unread .message-illustration-arrow {
  animation: message-illustration-pulse 1.4s ease-in-out infinite;
}

@keyframes message-illustration-pulse {
  0% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

.message-reply-button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.message-reply-button:hover:not(:disabled) {
  background: rgba(139, 195, 74, 0.15);
}

.message-empty {
  text-align: center;
  padding: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-widgets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scoreboard-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scoreboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scoreboard-header h2 {
  margin: 0;
}

#scoreboardSubtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.scoreboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scoreboard-actions .ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.scoreboard-actions button {
  flex: 1;
  min-width: 100px;
}

.shared-markets {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.shared-markets strong {
  color: var(--accent);
}

.shared-markets small {
  color: var(--muted);
}

.server-leaderboard {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.server-leaderboard-header h3 {
  margin: 0;
}

.server-leaderboard-header span {
  font-size: 0.75rem;
  color: var(--muted);
}

.server-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.server-leaderboard-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  gap: 0.75rem;
}

.server-leaderboard-entry .meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.server-leaderboard-entry small {
  color: var(--muted);
  font-size: 0.75rem;
}

.server-leaderboard-entry .net {
  font-weight: 600;
}

.scoreboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scoreboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  gap: 0.75rem;
}

.scoreboard-entry.active {
  border-color: var(--accent);
  background: rgba(139, 195, 74, 0.08);
}

.scoreboard-entry .meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.scoreboard-entry small {
  color: var(--muted);
  font-size: 0.8rem;
}

.scoreboard-entry button {
  min-width: 110px;
}

.placement-badge {
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  min-width: 48px;
  text-align: center;
}

.listing {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.listing li {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.65rem;
  border-radius: 0.75rem;
}

.smart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.smart-action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.smart-action form .form-row,
.smart-action form button {
  max-width: 300px;
}

.smart-action button {
  width: 100%;
  max-width: 300px;
}

.wallet-flow-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wallet-flow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-weight: 600;
  max-width: 100%;
}

.wallet-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-flow-node-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.wallet-flow-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.wallet-flow-arrow {
  font-size: 1.1rem;
  color: var(--muted);
}

.wallet-flow-meta {
  margin: 0;
  font-size: 0.75rem;
}

.dealership-price {
  font-weight: 600;
  margin: 0.35rem 0 0.75rem;
}

.vehicle-offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vehicle-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.vehicle-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.vehicle-preview strong {
  font-size: 1rem;
}

.vehicle-preview-icon {
  width: 144px;
  height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.vehicle-offer-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vehicle-purchase-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem;
  width: 100%;
}

.vehicle-hint {
  text-align: center;
  margin: 0;
}

.vehicle-bonus {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}

.vehicle-risk {
  margin: 0;
  color: #f7c843;
  font-weight: 600;
}

.vehicle-offer-card button {
  width: 100%;
}

.modals {
  padding: 1.5rem;
}

.accounting-panel {
  padding: 1.5rem;
  background: rgba(17, 20, 24, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accounting-panel header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.accounting-summary {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
}

.category-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.category-chip {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.accounting-controls {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.accounting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accounting-list.collapsed {
  display: none;
}

.accounting-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.accounting-entry .meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.accounting-entry .meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.accounting-entry .amount {
  font-weight: 700;
}

.accounting-entry.in .amount {
  color: var(--accent);
}

.accounting-entry.out .amount {
  color: var(--danger);
}

.form-row.inline-trade {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
}

.form-row.inline-trade label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-row.inline-trade select,
.form-row.inline-trade input {
  max-width: 150px;
}

.stock-market-card {
  margin-top: 1rem;
}

.stock-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stock-positions-column button {
  width: auto;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.stock-positions-column button.danger {
  background: var(--danger);
  color: #fff;
}

.stock-quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.quote-data {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stock-sparkline {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.stock-sparkline svg {
  width: 80px;
  height: 24px;
}

.stock-sparkline:hover svg polyline {
  stroke: var(--accent);
}

.pending-orders-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pending-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pending-order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.pending-order-info small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.65;
}

.pending-order-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-order-actions button {
  margin: 0;
}

.bar-section {
  margin-bottom: 1.25rem;
}

.bar-section h3 {
  margin: 0 0 0.25rem;
}

.appointment-filters {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.product-flag input {
  accent-color: var(--accent);
}

.bar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bar-market {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-list,
.appointment-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.trade-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trade-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.trade-line strong {
  color: var(--accent);
}

.trade-card button {
  align-self: flex-start;
}

.black-market-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge.availability-badge {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.cost-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.badge.negative {
  color: var(--danger);
}

.appointment-card {
  background: var(--panel);
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.appointment-card h4 {
  margin: 0 0 0.25rem;
}

.appointment-card .status {
  color: var(--muted);
  font-size: 0.85rem;
}

.appointment-card button {
  width: 100%;
  margin-top: 0.5rem;
}

.appointment-card button[data-cancel] {
  background: var(--danger);
}

.explanation {
  color: var(--danger);
  font-style: italic;
  font-size: 0.85rem;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.2s ease;
}

.auth-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  background: rgba(22, 26, 36, 0.98);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: min(420px, 90vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.6);
}

.auth-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-lang-switch {
  display: flex;
  gap: 0.35rem;
}

.auth-lang-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.15rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.auth-lang-switch button.active {
  border-color: var(--accent);
  background: rgba(139, 195, 74, 0.18);
}

.auth-card header h2 {
  margin: 0;
}

.auth-card header button {
  background: transparent;
  border: none;
  font-size: 1.1rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.auth-logo img {
  width: 175px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
}

.auth-feedback {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-feedback.error {
  color: var(--danger);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form.hidden {
  display: none;
}

.auth-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-accounts {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-account-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.auth-account-list button {
  flex: 1;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.auth-account-list button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.linkish {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  text-align: left;
}

.linkish:hover {
  text-decoration: underline;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr;
  }

  .travel-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .side-column {
    flex-direction: column;
  }
}
.positive {
  color: var(--accent);
}

.negative {
  color: var(--danger);
}
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none; /* così non blocca i click sul gioco */
}

.notification {
  background: rgba(15, 15, 15, 0.92);
  color: #f5f5f5;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  max-width: 260px;
  line-height: 1.3;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto; /* ma la singola notifica può ricevere hover se serve */
}

.notification-error {
  border-left: 4px solid #ff5555;
}

.notification-hide {
  opacity: 0;
  transform: translateY(-10px);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-window {
  background: #111;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
  font-size: 0.9rem;
}

.modal-window h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.modal-window p {
  margin: 0.3rem 0;
}

.confiscated-list {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0;
}

.confiscated-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  font-family: monospace;
}

.confiscated-item-name {
  margin-right: 0.5rem;
}

.confiscated-item-qty {
  opacity: 0.85;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.modal-actions button {
  background: #b02b2b; 
  border: none;
  color: #f5f5f5;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-actions button:hover {
  background: #822c2c; 
}


.modal-actions button:hover {
  background: #2c5282;
}
.modal-police-image {
  display: block;
  margin: 0 auto 0.8rem auto;
  width: 150px;       /* prima era 80px */
  height: auto;
  opacity: 1;
  border-radius: 6px; /* opzionale: leggero arrotondamento */
}

.stock-history-modal {
  max-width: 480px;
}

.stock-history-chart {
  margin: 1rem 0;
}

.stock-history-chart svg {
  width: 100%;
  height: 200px;
}

.stock-history-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

.stock-history-summary {
  text-align: center;
  font-weight: 600;
}


.language-player-row .ranking {
  margin-left: 0.5rem;
}
.law-firm-lawyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.intro-popup {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.intro-popup-box {
  max-width: 480px;
  background: #1b1f24;
  color: #f5f7fa;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 15px 45px rgba(0,0,0,0.45);
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
}

.intro-popup-box h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--accent, #8bc34a);
}

.intro-btn {
  margin-top: 1.6rem;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent, #8bc34a), var(--accent-alt, #4caf50));
  color: #0b0f10;
  transition: 0.15s ease;
}

.intro-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.intro-btn:active {
  transform: translateY(0);
  filter: brightness(0.9);
}
.facility-machine-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 8px 0;
}

.facility-machine-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  transition: width 0.25s linear;
  border-radius: 4px;
}