/* ================================================================
   blackmarket.css — стили для чёрного рынка
   Добавь: <link rel="stylesheet" href="/static/blackmarket.css"/> в index.html
   ================================================================ */

/* ── Информационный баннер ─────────────────────────────────────── */
.bm-info-banner {
  background: rgba(255, 200, 0, 0.07);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 16px 12px;
}
.bm-info-banner svg { flex-shrink: 0; margin-top: 1px; color: #f0b429; }

/* ── Секции ────────────────────────────────────────────────────── */
.bm-section-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 16px 16px 8px;
}

/* ── Строка листинга ────────────────────────────────────────────── */
.bm-listing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.bm-listing-row:last-child { border-bottom: none; }
.bm-listing-row:active { background: var(--card-bg); }
.bm-listing-row.bm-mine { background: rgba(99,102,241,0.04); }

/* ── Кнопка отмены листинга ────────────────────────────────────── */
.bm-cancel-btn {
  background: rgba(239,68,68,0.1);
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--red);
  display: flex;
  align-items: center;
  transition: background 0.15s;
  margin-left: auto;
  flex-shrink: 0;
}
.bm-cancel-btn:active { background: rgba(239,68,68,0.2); }

/* ── Попап покупки/листинга ─────────────────────────────────────── */
#bm-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;          /* выше nav (обычно z-index:10), выше screen-holding (z-index:6) */
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;   /* явно разрешаем клики */
}
.bm-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.bm-popup-card {
  position: relative;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 20px 0 calc(env(safe-area-inset-bottom) + 24px);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.bm-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Кнопка "Продать на ЧР" в кошельке ─────────────────────────── */
.btn-blackmarket {
  background: rgba(99,102,241,0.12);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
  margin-top: 10px;
}
.btn-blackmarket:active { background: rgba(99,102,241,0.22); }
