/* ── DQT v16 — Forex Watchlist Styles ── */

/* Watchlist rows */
.forex-wl-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1px 4px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  position: relative;
}
.forex-wl-row:hover { background: rgba(255,255,255,.04); }
.forex-wl-row.active { background: rgba(212,168,83,.08); border-left: 2px solid var(--gold); }

.forex-wl-pair {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
}
.forex-wl-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72em;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: .03em;
}
.forex-wl-source {
  font-size: .55em;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  margin-left: auto;
  padding: 1px 4px;
  border-radius: 3px;
}
.forex-wl-source:not(.stale) { color: var(--green); }
.forex-wl-source.stale { color: var(--text-dim); }

.forex-wl-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68em;
}
.forex-wl-bid { color: var(--red); }
.forex-wl-ask { color: var(--green); }
.forex-wl-spread {
  font-size: .75em;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.forex-wl-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62em;
  align-self: center;
}

.forex-wl-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .65em;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  padding: 1px 3px;
  border-radius: 3px;
}
.forex-wl-row:hover .forex-wl-remove { opacity: 1; }
.forex-wl-remove:hover { background: var(--red-dim); color: var(--red); }

.forex-wl-add-row {
  padding: 6px 10px;
}
.forex-wl-add-btn {
  width: 100%;
  padding: 5px;
  background: var(--gold-dim);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: .68em;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all .15s;
}
.forex-wl-add-btn:hover { background: rgba(212,168,83,.2); }

/* Forex Catalogue (in modal) */
.forex-cat-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.forex-cat-label {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: .72em;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.forex-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.forex-cat-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68em;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.forex-cat-btn:hover { background: rgba(212,168,83,.1); color: var(--text-bright); border-color: rgba(212,168,83,.3); }
.forex-cat-btn.active { background: rgba(212,168,83,.15); color: var(--gold); border-color: rgba(212,168,83,.4); }

/* Backend badge flash */
#backend-status { transition: color .3s; }

/* Toast container (override) */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-msg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74em;
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: toastIn .25s ease;
  pointer-events: all;
}
.toast-msg.fade-out { animation: toastOut .3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(10px); }
}
