/* ── Bank modal (profile menu → Bank) ────────────────────────────────────── */
#bank-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4vh;
  z-index: 9000;
}
#bank-modal {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  width: min(96vw, 760px);
  min-height: 60vh;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bank-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bank-copy-btn,
.bank-priv-btn {
  background: #111;
  border: 1px solid #252525;
  border-radius: 4px;
  color: #888;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bank-copy-btn:hover { color: #c4b5fd; border-color: #4a3a88; }
.bank-priv-btn:hover { color: #aaa; border-color: #3a3a3a; }
.bank-priv-btn.bank-priv-public { color: #7dd8a0; border-color: #2a5a3a; background: #0e1a12; }

.bank-add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.bank-add-row .trd-pick-wrap { flex: 1; }
.bank-qty-input {
  width: 70px;
  flex-shrink: 0;
  background: #111;
  border: 1px solid #252525;
  border-radius: 4px;
  color: #ddd;
  font-size: 13px;
  text-align: center;
  padding: 4px 6px;
}
.bank-add-btn {
  background: #1a1230;
  border: 1px solid #4a3a88;
  border-radius: 4px;
  color: #c4b5fd;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 18px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.bank-add-btn:hover { background: #241a44; }

#bank-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 60px;
}
.bank-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
}
.bank-item-name {
  flex: 1;
  color: #ccc;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-untradable-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cc7777;
  border: 1px solid #3a2020;
  background: #1a0f0f;
  border-radius: 3px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.bank-row-qty { width: 60px; }
.bank-step-btn {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
  line-height: 1.2;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.bank-step-btn:hover { color: #c4b5fd; border-color: #4a3a88; background: #1a1230; }
.bank-row-del {
  background: none;
  border: none;
  color: #444;
  font-size: 15px;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.bank-row-del:hover { color: #ee5555; }

.bank-shard-wrap {
  display: none;
  align-items: center;
  gap: 5px;
  color: #bbb;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.bank-shard-wrap input { accent-color: #4a3a88; cursor: pointer; }

.bank-shard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 8px 8px;
}
.bank-shard-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #888;
  font-size: 11px;
}
.bank-shard-stat input {
  width: 34px;
  background: #111;
  border: 1px solid #252525;
  border-radius: 3px;
  color: #ddd;
  font-size: 11px;
  padding: 2px 4px;
  outline: none;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.bank-shard-stat input:focus { border-color: #4a3a88; }
.bank-shard-stat input::-webkit-outer-spin-button,
.bank-shard-stat input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bank-note-input {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #252525;
  border-radius: 4px;
  color: #ddd;
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
  font-family: inherit;
}
.bank-note-input:focus { border-color: #4a3a88; }
.bank-note-input::placeholder { color: #444; }

/* ── Read-only viewer for another player's public bank ───────────────────── */
#bank-view-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9200;
}
#bank-view-modal {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  width: min(96vw, 520px);
  max-height: 84vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bank-view-body { display: flex; flex-direction: column; gap: 10px; }
.bank-view-list { display: flex; flex-direction: column; gap: 3px; }
.bank-view-qty {
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Banks page (main nav) ───────────────────────────────────────────────── */
.banks-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.banks-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.banks-search { max-width: 340px; flex: 1; min-width: 200px; }
.banks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.bank-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.bank-user-card:hover { background: #16162a; border-color: #4a3a88; }
.bank-user-av { flex-shrink: 0; pointer-events: none; }
.bank-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bank-user-name {
  color: #ccccff;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-user-meta { color: #666; font-size: 11px; }
.bank-user-has {
  color: #7dd8a0;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "View Bank" button in the player profile popup (reports.js modal) */
.report-bank-btn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  border: 1px solid #34344e;
  border-radius: 9px;
  background: #181826;
  color: #d2cbef;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  margin-bottom: 8px;
  transition: 0.15s;
}
.report-bank-btn:hover { background: #232338; border-color: #4a4a6e; }
