.rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.room-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01) 24%, transparent 100%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.95), rgba(8, 8, 10, 0.98)),
    #0b0b0d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 34px, 36px 100%;
  opacity: 0.22;
  pointer-events: none;
}

.room-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -45% 30%;
  height: 130px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.18;
  background: rgba(65, 191, 120, 0.8);
  pointer-events: none;
}

.room-card[data-trend="down"]::after {
  background: rgba(210, 76, 76, 0.85);
}

.room-card[data-trend="flat"]::after {
  background: rgba(106, 143, 255, 0.82);
}

.room-card.active {
  border-color: rgba(106, 143, 255, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(106, 143, 255, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.room-market-bar,
.room-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.room-market-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.room-symbol,
.room-board,
.room-market-stat {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 10, 0.82);
  color: var(--text-soft);
  font: 600 0.67rem/1 "IBM Plex Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.room-symbol {
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.07);
}

.room-board {
  color: rgba(255, 255, 255, 0.52);
}

.room-title {
  min-width: 0;
  margin: 0;
  color: #f3f6fb;
  font: 600 0.86rem/1.2 "IBM Plex Sans", "Segoe UI", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-market-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.room-market-change {
  color: #61d48a;
}

.room-card[data-trend="down"] .room-market-change {
  color: #ea7272;
}

.room-card[data-trend="flat"] .room-market-change {
  color: #8aa8ff;
}

.room-visual {
  position: relative;
  min-height: 132px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.room-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #61d48a;
}

.room-card[data-trend="down"] .room-chart-svg {
  color: #d76a6a;
}

.room-card[data-trend="flat"] .room-chart-svg {
  color: #7f99f8;
}

.room-chart-volume rect {
  fill: rgba(255, 255, 255, 0.14);
}

.room-chart-area {
  opacity: 0.9;
}

.room-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

.room-watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.11);
  font: 700 clamp(2rem, 4vw, 3.4rem) / 0.92 "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

.room-quote {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.82);
  color: rgba(255, 255, 255, 0.68);
  font: 600 0.64rem/1 "IBM Plex Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.room-footer {
  align-items: end;
}

.room-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.room-users {
  color: rgba(236, 240, 246, 0.68);
  font: 0.74rem/1.45 "IBM Plex Mono", "Consolas", monospace;
  min-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-action {
  min-width: 104px;
}

.participant-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121212;
  margin-bottom: 8px;
}

.participant-chip.speaking {
  border-color: rgba(52, 209, 111, 0.28);
  background:
    linear-gradient(90deg, rgba(52, 209, 111, 0.08), transparent 50%),
    #121212;
}

.participant-chip.you {
  border-color: rgba(98, 165, 255, 0.3);
}

.participant-meta {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.admin-row {
  display: grid;
  gap: 10px;
  padding: 11px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121212;
}

.admin-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .rooms-list {
    grid-template-columns: 1fr;
  }

  .room-market-bar,
  .room-footer {
    grid-template-columns: 1fr;
  }

  .room-market-stats {
    justify-content: flex-start;
  }

  .room-action {
    width: 100%;
  }
}
