/* ── Badge row (Live + Currency pill) ─────────────────── */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 0; }
.ctrl-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  background: var(--navy); border: 1px solid var(--navy);
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  line-height: 1; cursor: pointer; font-family: inherit;
  transition: border-color 0.2s; white-space: nowrap; position: relative;
}
.ctrl-badge:hover { border-color: var(--accent); }
.ctrl-badge:not(.live) { padding-left: 0.75rem; }
.ctrl-badge .cb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block; flex-shrink: 0;
}
.ctrl-badge.live .cb-dot {
  animation: livePulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(46,205,167,0.5);
}
.ctrl-badge .cb-text {
  background: linear-gradient(90deg, #2ECDA7, #38BDF8);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 700;
}
.ctrl-badge .cb-arrow {
  font-size: 0.55rem;
  background: linear-gradient(90deg, #2ECDA7, #38BDF8);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; transition: transform 0.2s; margin-left: -0.05rem;
}
.ctrl-badge.open .cb-arrow { transform: rotate(180deg); }
.ctrl-badge.off .cb-dot {
  background: #E879F9; box-shadow: 0 0 6px rgba(232,121,249,0.5);
  animation: livePulse 2.4s ease-in-out infinite;
}
.ctrl-badge.off .cb-text {
  background: linear-gradient(90deg, #E879F9, #93C5FD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ctrl-badge.off:hover { border-color: #E879F9; }

/* ── Currency dropdown ────────────────────────────────── */
.cur-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,27,42,.12); min-width: 230px; z-index: 100;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  display: flex; flex-direction: column; max-height: 320px;
}
.cur-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cur-dropdown .cd-search { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.cur-dropdown .cd-search input {
  width: 100%; padding: 6px 10px; border: 1.5px solid #e2e8f0;
  border-radius: 6px; font-size: 0.8rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.cur-dropdown .cd-search input:focus { border-color: var(--accent); }
.cur-dropdown .cd-search input::placeholder { color: #94a3b8; }
.cur-dropdown .cd-list { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cur-dropdown .cd-list::-webkit-scrollbar { width: 5px; }
.cur-dropdown .cd-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cur-dropdown button.cur-opt {
  display: flex; align-items: center; gap: 0.5rem; padding: 7px 14px;
  font-size: 0.8rem; cursor: pointer; transition: background 0.12s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit; color: var(--text-dark, #1e293b);
}
.cur-dropdown button.cur-opt:hover { background: #E0FFF5; }
.cur-dropdown button.cur-opt.active { background: #E0FFF5; font-weight: 700; color: var(--accent); }
.cur-dropdown .cd-sym { font-weight: 700; color: var(--accent); min-width: 24px; }
.cur-dropdown .cd-empty { padding: 12px 14px; font-size: 0.8rem; color: #94a3b8; text-align: center; }
