/* CekRebate Exness Trading Workstation — Architectural Bento Fintech + Crisp Day Mode */
.trd-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 20px 64px;
}
.trd-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,24,39,0.88) 0%, rgba(11,15,25,0.94) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid #F59E0B;
}
.trd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.42);
  color: #FBBF24;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.trd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}
.trd-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: #F8FAFC;
  font-weight: 800;
}
.trd-hero p {
  margin: 0;
  max-width: 720px;
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.6;
}
.trd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.trd-btn-primary, .trd-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.trd-btn-primary {
  background: #F59E0B;
  color: #09090B;
  border: 1px solid #F59E0B;
}
.trd-btn-primary:hover {
  background: #FBBF24;
  border-color: #FBBF24;
}
.trd-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.14);
}
.trd-btn-ghost:hover {
  border-color: #F59E0B;
  color: #FBBF24;
}

/* Workstation Grid */
.trd-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}
.trd-panel {
  border-radius: 14px;
  background: rgba(15,23,42,0.82);
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
}
.trd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(9,13,22,0.55);
}
.trd-panel-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #CBD5E1;
}

/* Watchlist */
.trd-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.trd-cat-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.trd-cat-btn.is-active {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.55);
  color: #FBBF24;
}
.trd-watchlist {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}
.trd-sym-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #F1F5F9;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s ease;
}
.trd-sym-btn:hover {
  background: rgba(255,255,255,0.04);
}
.trd-sym-btn.is-active {
  background: rgba(245,158,11,0.12);
  border-inline-start: 3px solid #F59E0B;
}
.trd-sym-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: #F8FAFC;
}
.trd-sym-name {
  display: block;
  font-size: 0.73rem;
  color: #94A3B8;
  margin-top: 2px;
}
.trd-sym-right {
  text-align: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.trd-sym-price {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #E2E8F0;
}
.trd-sym-rebate {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(16,185,129,0.14);
  color: #34D399;
  font-size: 0.69rem;
  font-weight: 700;
}

/* Center Chart Panel */
.trd-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trd-active-pair {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.trd-pair-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
}
.trd-pair-price {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.12rem;
  font-weight: 800;
  color: #FBBF24;
}
.trd-pair-chg {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.trd-pair-chg.up { background: rgba(16,185,129,0.16); color: #34D399; }
.trd-pair-chg.down { background: rgba(239,68,68,0.16); color: #F87171; }

.trd-tf-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.trd-tf-btn, .trd-mode-btn {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #CBD5E1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.trd-tf-btn.is-active, .trd-mode-btn.is-active {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #09090B;
}

.trd-ohlc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(9,13,22,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: #94A3B8;
}
.trd-ohlc-bar b { color: #F1F5F9; font-weight: 700; }
.trd-ema-legend { margin-inline-start: auto; display: inline-flex; gap: 10px; }
.trd-ema20-tag { color: #38BDF8; font-weight: 700; }
.trd-ema50-tag { color: #F59E0B; font-weight: 700; }

.trd-canvas-wrap {
  position: relative;
  width: 100%;
  height: 430px;
  background: #090D16;
}
#trdChartCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.trd-chart-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,13,22,0.72);
  color: #FBBF24;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.trd-chart-loader.is-loading { opacity: 1; }

.trd-chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.76rem;
  color: #94A3B8;
}

/* Right Execution Quotes & 90% Auto Rebate Box */
.trd-side-body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trd-bbo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trd-bbo-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: #0B1018;
  border: 1px solid rgba(255,255,255,0.09);
}
.trd-bbo-card.bid { border-top: 2px solid #EF4444; }
.trd-bbo-card.ask { border-top: 2px solid #10B981; }
.trd-bbo-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
}
.trd-bbo-val {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.04rem;
  font-weight: 800;
  color: #F8FAFC;
}
.trd-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trd-mini-stat {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.trd-mini-stat span {
  display: block;
  font-size: 0.69rem;
  color: #94A3B8;
}
.trd-mini-stat strong {
  display: block;
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: #FBBF24;
}

.trd-rebate-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.32);
}
.trd-rebate-box h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #FBBF24;
}
.trd-ctrl-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #CBD5E1;
  margin: 8px 0 5px;
}
.trd-select, .trd-range {
  width: 100%;
}
.trd-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #0B1018;
  border: 1px solid rgba(255,255,255,0.16);
  color: #F8FAFC;
  font-size: 0.83rem;
  font-weight: 600;
}
.trd-range { accent-color: #F59E0B; cursor: pointer; }
.trd-rebate-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #0B1018;
  border: 1px solid rgba(16,185,129,0.35);
}
.trd-rebate-usd {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #34D399;
}
.trd-rebate-local {
  display: block;
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: #94A3B8;
}

/* Info Cards Below Workstation */
.trd-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.trd-info-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid #F59E0B;
}
.trd-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #F8FAFC;
}
.trd-info-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #CBD5E1;
}

/* CRISP BLACK-ON-WHITE DAY MODE OVERRIDES */
html[data-theme="light"] .trd-hero {
  background: #FFFFFF;
  border-color: #D4D4D8;
  border-top: 3px solid #D97706;
  box-shadow: 0 6px 20px rgba(9,9,11,0.05);
}
html[data-theme="light"] .trd-badge {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}
html[data-theme="light"] .trd-hero h1,
html[data-theme="light"] .trd-pair-title,
html[data-theme="light"] .trd-sym-code,
html[data-theme="light"] .trd-bbo-val,
html[data-theme="light"] .trd-info-card h2 {
  color: #09090B;
}
html[data-theme="light"] .trd-hero p,
html[data-theme="light"] .trd-info-card p,
html[data-theme="light"] .trd-ctrl-label {
  color: #18181B;
}
html[data-theme="light"] .trd-btn-ghost {
  background: #F4F4F5;
  color: #09090B;
  border-color: #A1A1AA;
}
html[data-theme="light"] .trd-panel,
html[data-theme="light"] .trd-info-card {
  background: #FFFFFF;
  border-color: #D4D4D8;
  box-shadow: 0 4px 16px rgba(9,9,11,0.05);
}
html[data-theme="light"] .trd-panel-head {
  background: #F8FAFC;
  border-bottom-color: #E4E4E7;
}
html[data-theme="light"] .trd-panel-head h2 { color: #09090B; }
html[data-theme="light"] .trd-cat-btn {
  border-color: #D4D4D8;
  color: #27272A;
}
html[data-theme="light"] .trd-cat-btn.is-active {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}
html[data-theme="light"] .trd-sym-btn {
  border-bottom-color: #E4E4E7;
  color: #09090B;
}
html[data-theme="light"] .trd-sym-btn:hover { background: #F8FAFC; }
html[data-theme="light"] .trd-sym-btn.is-active {
  background: #FFFBEB;
  border-inline-start-color: #D97706;
}
html[data-theme="light"] .trd-sym-name { color: #52525B; }
html[data-theme="light"] .trd-sym-price { color: #09090B; }
html[data-theme="light"] .trd-sym-rebate { background: #DCFCE7; color: #065F46; }
html[data-theme="light"] .trd-pair-price { color: #B45309; }
html[data-theme="light"] .trd-tf-btn,
html[data-theme="light"] .trd-mode-btn {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: #09090B;
}
html[data-theme="light"] .trd-tf-btn.is-active,
html[data-theme="light"] .trd-mode-btn.is-active {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}
html[data-theme="light"] .trd-ohlc-bar {
  background: #F8FAFC;
  border-bottom-color: #E4E4E7;
  color: #3F3F46;
}
html[data-theme="light"] .trd-ohlc-bar b { color: #09090B; }
html[data-theme="light"] .trd-canvas-wrap { background: #FFFFFF; }
html[data-theme="light"] .trd-chart-loader { background: rgba(255,255,255,0.82); color: #92400E; }
html[data-theme="light"] .trd-chart-foot { border-top-color: #E4E4E7; color: #3F3F46; }
html[data-theme="light"] .trd-bbo-card,
html[data-theme="light"] .trd-mini-stat,
html[data-theme="light"] .trd-rebate-result {
  background: #F8FAFC;
  border-color: #D4D4D8;
}
html[data-theme="light"] .trd-bbo-lbl,
html[data-theme="light"] .trd-mini-stat span,
html[data-theme="light"] .trd-rebate-local { color: #3F3F46; }
html[data-theme="light"] .trd-mini-stat strong,
html[data-theme="light"] .trd-rebate-box h3 { color: #92400E; }
html[data-theme="light"] .trd-rebate-box { background: #FFFBEB; border-color: #F59E0B; }
html[data-theme="light"] .trd-select { background: #FFFFFF; border-color: #A1A1AA; color: #09090B; }
html[data-theme="light"] .trd-rebate-usd { color: #047857; }

@media (max-width: 1080px) {
  .trd-grid { grid-template-columns: 1fr; }
  .trd-watchlist { max-height: 250px; }
  .trd-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trd-main { padding: 16px 12px 48px; }
  .trd-hero { padding: 16px; }
  .trd-canvas-wrap { height: 330px; }
}


/* === BEGIN_TRD_EXNESS_HERO_BG === */
.trd-hero {
  background-image:
    linear-gradient(90deg, rgba(6, 9, 17, 0.90) 0%, rgba(6, 9, 17, 0.62) 48%, rgba(6, 9, 17, 0.14) 100%),
    url('/assets/exness-hero-bg.webp?v=20261123q') !important;
  background-size: cover !important;
  background-position: center right !important;
  border: 1px solid rgba(255, 222, 2, 0.28) !important;
  border-top: 3px solid #FFDE02 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), 0 0 32px rgba(255, 222, 2, 0.10) !important;
}
html[data-theme="light"] .trd-hero {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.16) 100%),
    url('/assets/exness-hero-bg-light.webp?v=20261123q') !important;
  background-size: cover !important;
  background-position: center right !important;
  border: 1px solid rgba(217, 119, 6, 0.30) !important;
  border-top: 3px solid #D97706 !important;
}
/* === END_TRD_EXNESS_HERO_BG === */
