/* Backtest credit/settings modal styles */

.bt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-modal {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 400px;
  max-width: 92vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.bt-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.bt-modal-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.bt-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.bt-modal-close:hover { color: var(--text); }

.bt-modal-body {
  padding: 18px;
}

/* Credit info */
.bt-credit-info {
  margin-bottom: 16px;
}

.bt-credit-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.bt-credit-row:last-child { border-bottom: none; }

.bt-credit-label { color: var(--muted); }
.bt-credit-value { font-weight: 600; font-family: var(--mono); }

/* Deposit section */
.bt-deposit-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bt-deposit-section h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bt-deposit-addr {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: var(--muted);
  user-select: all;
}

/* API key section */
.bt-apikey-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bt-apikey-section h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bt-apikey-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.bt-apikey-input {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}

.bt-apikey-input:focus { border-color: var(--blue); }

.bt-apikey-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
