/* TradiusPro palette and typography from dashboard, trade details and blueprint. */
:root {
  --line: #334155;
  --muted: #94a3b8;
  --panel: rgba(30, 41, 59, 0.92);
  --accent: #3b82f6;
  background: #0f172a;
  color: #cbd5e1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body {
  background: linear-gradient(145deg, #0f172a 0%, #162338 55%, #0f172a 100%);
  background-attachment: fixed;
  color: #cbd5e1;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

header {
  background: rgba(15, 23, 42, 0.94);
  border-color: #334155;
  backdrop-filter: blur(12px);
}

.brand b {
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: 0.4px;
  color: #f1f5f9;
  font-size: 17px;
}

.brand b > span {
  font-family: Inter, sans-serif;
  letter-spacing: 3px;
  color: #94a3b8;
}

nav button {
  color: #94a3b8;
}

nav button:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #f1f5f9;
}

nav .active {
  color: #60a5fa;
  border-color: #3b82f6;
}

h1 {
  color: #f1f5f9;
  font-weight: 600;
}

h1 span {
  color: #94a3b8;
}

.eyebrow {
  color: #60a5fa;
}

.session-actions > span,
.header-right {
  color: #94a3b8;
}

button {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
  border-radius: 6px;
}

button:hover {
  background: #334155;
  color: #f8fafc;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #60a5fa;
}

.primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

input,
select,
textarea {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
  border-radius: 6px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

label {
  color: #94a3b8;
}

input[type="checkbox"] {
  accent-color: #3b82f6;
}

.chart-card,
.panel,
.blotter {
  background: rgba(30, 41, 59, 0.94);
  border-color: #334155;
  border-radius: 12px;
  box-shadow: 0 10px 18px -12px #0008;
}

.chart-toolbar,
.replaybar,
.blotter-top {
  background: rgba(15, 23, 42, 0.45);
}

.panel-heading h2 {
  color: #f1f5f9;
  font-weight: 600;
}

.badge {
  background: #334155;
  color: #cbd5e1;
}

.selected {
  border-color: #3b82f6 !important;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.buy {
  background: #065f46;
  border-color: #059669;
  color: #d1fae5;
}

.buy:hover {
  background: #047857;
  color: white;
}

.sell {
  background: #991b1b;
  border-color: #dc2626;
  color: #fee2e2;
}

.sell:hover {
  background: #b91c1c;
  color: white;
}

.positive {
  color: #34d399 !important;
}

.negative {
  color: #f87171 !important;
}

.account-row b,
.riskline b {
  color: #e2e8f0;
}

.account-row,
.micro,
.quote small,
.level-row span {
  color: #94a3b8;
}

.text-btn {
  color: #60a5fa;
}

.progress i {
  background: #3b82f6;
}

.progress > div {
  background: #334155;
}

.tab.active {
  color: #60a5fa;
  border-color: #3b82f6;
}

.tab span {
  background: #334155;
  color: #cbd5e1;
}

th {
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-weight: 600;
}

td {
  border-color: #334155;
  color: #cbd5e1;
}

tbody tr:hover {
  background: rgba(51, 65, 85, 0.4);
}

dialog {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 60px #0008;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(5px);
}

.modal-top h2 {
  color: #f1f5f9;
  font-weight: 600;
}

.modal-intro {
  color: #94a3b8;
}

.section-title {
  color: #60a5fa;
  border-color: #334155;
}

.stat {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px 14px;
}

.stat b {
  font-size: 24px;
  color: #f1f5f9;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat small {
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.equity-chart {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
}

.filters button.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: white;
}

.data-box {
  background: #1e293b;
  border-color: #475569;
  border-radius: 12px;
}

.data-note {
  background: #1e293b;
  color: #cbd5e1;
}

#quickMenu {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 15px 35px #0008;
}

#quickMenu .quick-heading {
  color: #f1f5f9;
}

#toast {
  background: #1e293b;
  border-color: #3b82f6;
  color: #e2e8f0;
  z-index: 100;
}

#loading {
  background: #0f172a;
  color: #cbd5e1;
}

footer {
  color: #94a3b8;
}

.dark-chart .canvas-wrap,
.dark-chart .chart-meta {
  background: #0f172a;
  color: #cbd5e1;
}

.chart-full .chart-card {
  border-radius: 0;
}

@media (max-width: 780px) {
  .brand b {
    font-size: 13px;
  }

  .stat {
    padding: 14px 8px;
  }

  .stat b {
    font-size: 20px;
  }
}

/* Backdrop shared with the main TradiusPro site; replay chart surfaces remain intact. */
@media screen {
  body.dark-chart {
    background-color: #080e1d !important;
    background-image:
      radial-gradient(ellipse 50rem 34rem at 75% 8%, rgba(47, 84, 159, .18), transparent 70%),
      radial-gradient(ellipse 38rem 30rem at 8% 52%, rgba(30, 58, 111, .13), transparent 75%),
      linear-gradient(145deg, #0c1427, #080e1d 72%) !important;
    background-attachment: fixed !important;
  }
}
