*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0e17;
  --bg2: #111827;
  --bg3: #151c2c;
  --bg4: #1a2236;
  --green: #00c853;
  --green2: #00e676;
  --red: #ff1744;
  --red2: #ff5252;
  --blue: #0095ff;
  --border: #1e293b;
  --border2: #2a3546;
  --text: #ffffff;
  --text2: #94a3b8;
  --text3: #64748b;
  --nav-w: 48px;
  --right-w: 295px;
  --top-h: 46px;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
  outline: none;
}

/* ===== DESKTOP LAYOUT ===== */
.app {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr var(--right-w);
  grid-template-rows: var(--top-h) 1fr;
  height: 100vh;
}

/* Top Bar */
.top-bar {
  grid-column: 1/3;
  grid-row: 1;
  background: linear-gradient(90deg, #0e1420 0%, #111827 50%, #0d121c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  height: var(--top-h);
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.topbar-add-asset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #f1f5f9);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
}

.topbar-add-asset-btn:hover {
  background: rgba(0, 200, 83, 0.18);
  border-color: rgba(0, 200, 83, 0.55);
  color: var(--green, #00c853);
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.25);
}

.topbar-add-asset-btn:active {
  transform: scale(0.95);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #00c853, #00e676);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.logo-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #ffffff 0%, #00e676 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.bell-btn {
  position: relative;
  background: none;
  color: var(--text2);
  font-size: 15px;
  padding: 3px;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.balance-display {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.demo-tag {
  background: rgba(0, 149, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(0, 149, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.deposit-btn {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #fff;
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.32);
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
}

.deposit-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(0, 200, 83, 0.48);
}

.withdraw-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 5px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}

.withdraw-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Asset Pair Bar (Integrated in Top Navbar) */
.asset-bar-wrap {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  height: 100%;
  margin: 0 6px 0 2px;
  overflow: hidden;
}

.asset-bar {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.asset-bar.is-dragging {
  cursor: grabbing !important;
  user-select: none;
  scroll-behavior: auto;
}

.asset-bar::-webkit-scrollbar {
  height: 3px;
}

.asset-bar::-webkit-scrollbar-track {
  background: transparent;
}

.asset-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.asset-bar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 83, 0.35);
}

/* Sliding Scroll Navigation Controls */
.asset-nav-scroll-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  border-radius: 5px;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text2, #94a3b8);
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.18s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.asset-nav-scroll-btn:hover:not(:disabled):not(.disabled) {
  background: rgba(0, 200, 83, 0.22);
  color: #fff;
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.2);
}

.asset-nav-scroll-btn:disabled,
.asset-nav-scroll-btn.disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.asset-nav-left {
  margin-right: 3px;
}

.asset-nav-right {
  margin-left: 3px;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text2, #94a3b8);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  height: 30px;
  flex: 0 1 154px;
  min-width: 124px;
  max-width: 160px;
  position: relative;
  box-sizing: border-box;
  user-select: none;
}

.asset-chip:hover {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text, #f1f5f9);
  border-color: rgba(255, 255, 255, 0.15);
}

.asset-chip.active {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.45);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.12);
}

.asset-chip.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--green, #00c853);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 6px var(--green, #00c853);
}

.flag-pair,
.dual-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-name {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.chip-otc-tag {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
  flex-shrink: 0;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 3px;
  border-radius: 2px;
  margin-left: 1px;
}

.chip-pct {
  font-size: 11px;
  color: var(--green, #00c853);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 2px;
}

.asset-chip.active .chip-pct {
  color: #00e676;
}

/* Active Trade State on Tab - shows live Profit/Loss badge clearly without clipping */
.asset-chip.has-active-trade,
.asset-chip:has(.chip-status-badge:not([style*="display: none"])) {
  flex: 0 0 auto !important;
  min-width: 152px !important;
  max-width: 230px !important;
  overflow: visible !important;
  padding-right: 6px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.asset-chip.has-active-trade.active,
.asset-chip:has(.chip-status-badge:not([style*="display: none"])).active {
  background: rgba(0, 200, 83, 0.14) !important;
  border-color: rgba(0, 200, 83, 0.5) !important;
}

/* Hide payout percentage when active trade profit/loss badge is displaying so it doesn't crowd */
.asset-chip.has-active-trade .chip-pct,
.asset-chip:has(.chip-status-badge:not([style*="display: none"])) .chip-pct {
  display: none !important;
}

.asset-chip .chip-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin-left: auto;
  min-width: 52px;
  height: 18px;
  line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.asset-chip.has-active-trade .chip-status-badge,
.asset-chip:has(.chip-status-badge:not([style*="display: none"])) .chip-status-badge {
  display: inline-flex !important;
  margin-left: auto !important;
}

.chip-status-badge.win {
  background-color: var(--green, #00c853) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.4);
}

.chip-status-badge.loss {
  background-color: var(--red, #ff1744) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.4);
}

.chip-status-badge.neutral {
  background-color: #ff5722 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.chip-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 3px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.chip-close-btn:hover {
  color: #ff5252;
  background-color: rgba(255, 82, 82, 0.18);
}

/* Compact modes as tabs scale up */
.asset-bar.tabs-compact .asset-chip {
  padding: 0 6px;
  gap: 4px;
  min-width: 118px;
  max-width: 138px;
  flex: 0 1 138px;
}
.asset-bar.tabs-compact .chip-name {
  font-size: 11px;
}
.asset-bar.tabs-compact .chip-pct {
  font-size: 10.5px;
}
.asset-bar.tabs-compact .chip-otc-tag {
  display: none;
}

.asset-bar.tabs-ultra-compact .asset-chip {
  padding: 0 5px;
  gap: 4px;
  min-width: 114px;
  max-width: 126px;
  flex: 0 1 126px;
}
.asset-bar.tabs-ultra-compact .chip-name {
  font-size: 10.5px;
}
.asset-bar.tabs-ultra-compact .chip-pct {
  font-size: 10px;
}
.asset-bar.tabs-ultra-compact .chip-otc-tag {
  display: none;
}
.asset-bar.tabs-ultra-compact .chip-close-btn {
  margin-left: 1px;
  font-size: 12px;
  width: 13px;
  height: 13px;
}

/* Left Nav Sidebar */
.left-nav {
  grid-column: 1;
  grid-row: 2;
  background: #0d121c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  z-index: 50;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-radius: 6px;
  cursor: pointer;
  width: 40px;
  color: var(--text3);
  transition: all .2s;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 149, 255, 0.16), rgba(0, 229, 255, 0.08));
  color: #38bdf8;
  box-shadow: inset 3px 0 0 #0095ff;
}

.nav-item.active {
  color: #38bdf8;
}

.nav-icon {
  font-size: 16px;
}

.nav-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.nav-spacer {
  flex: 1;
}

.nav-percent {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
  margin-top: 2px;
}

.join-us-btn {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  border-radius: 6px;
  padding: 4px;
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  gap: 1px;
  cursor: pointer;
  border: none;
}

/* Chart Area */
.chart-area {
  grid-column: 2;
  grid-row: 2;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* .chart-toolbar styling moved to floating tools in chart.css */
.pair-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pair-flags-lg {
  font-size: 22px;
}

.pair-name-lg {
  font-weight: 700;
  font-size: 14px;
}

.pair-otc {
  background: rgba(0, 149, 255, 0.2);
  color: var(--blue);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.pair-pct-lg {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.pair-chevron {
  color: var(--text3);
  cursor: pointer;
}

.toolbar-spacer {
  flex: 1;
}

/* Right Panel */
.right-panel {
  grid-column: 3;
  grid-row: 1/3;
  background: linear-gradient(180deg, #121824 0%, #0e131d 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
}

.rp-inner-scroll {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 6px 95px 6px;
  scroll-behavior: smooth;
  overscroll-behavior: auto;
}

.rp-inner-scroll::-webkit-scrollbar {
  width: 5px;
}

.rp-inner-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.rp-inner-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.rp-inner-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

.rp-top-btns {
  display: flex;
  gap: 6px;
  padding: 8px 8px;
}

.rp-dt-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
}

.rp-dt-btn:hover {
  transform: translateY(-1px);
}

.rp-deposit {
  background: #00c853;
}

.rp-withdraw {
  background: #363a45;
}

.rp-trade-box {
  background: linear-gradient(180deg, #182130 0%, #141b27 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 2px 10px 2px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rp-pair-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.rp-pair-flags {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.rp-pair-name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.rp-pair-pct {
  color: #8c93a0;
  font-weight: 800;
  font-size: 13px;
  margin-left: auto;
}

.rp-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rp-pending-left {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #3fb1f7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.toggle-wrap {
  position: relative;
  width: 34px;
  height: 18px;
}

.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border2);
  border-radius: 20px;
  cursor: pointer;
  transition: .3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.toggle-wrap input:checked+.toggle-slider {
  background: var(--blue);
}

.toggle-wrap input:checked+.toggle-slider::before {
  transform: translateX(16px);
}

.rp-input-field-wrap {
  position: relative;
  margin: 6px 0 8px;
}

.rp-input-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  padding: 0 4px;
}

.time-mode-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 2px;
  gap: 2px;
}

.mode-pill-opt {
  background: transparent;
  border: none;
  color: #7b8599;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.mode-pill-opt:hover {
  color: #ffffff;
}

.mode-pill-opt.active {
  background: linear-gradient(135deg, #0095ff 0%, #00e5ff 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 149, 255, 0.4);
}

.m-input-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

.time-mode-switch-pill.mobile {
  padding: 1px;
}

.time-mode-switch-pill.mobile .mode-pill-opt {
  padding: 2px 6px;
  font-size: 11px;
}

.time-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.time-opt-clock-val {
  font-weight: 800;
  color: #ffffff;
}

.time-opt-rem-tag {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 6px;
  border-radius: 10px;
}

.rp-input-field {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin: 4px 0 8px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.22s ease;
}

.rp-input-field:focus-within,
.rp-input-field:hover {
  border-color: rgba(0, 149, 255, 0.5);
  background: rgba(0, 149, 255, 0.05);
  box-shadow: 0 0 14px rgba(0, 149, 255, 0.15);
}

.rp-input-label {
  position: absolute;
  top: -6px;
  left: 12px;
  background: #212735;
  padding: 0 4px;
  font-size: 10px;
  color: #7b8599;
}

.rp-switch-text {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #212735;
  padding: 0 6px;
  font-size: 8px;
  color: #3fb1f7;
  font-weight: 800;
  white-space: nowrap;
}

.rp-btn-minus,
.rp-btn-plus {
  background: #2f3647;
  color: #b0b5be;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}

.rp-btn-minus:hover,
.rp-btn-plus:hover {
  background: #3e485e;
  color: #fff;
}

.rp-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  text-align: center;
}

.rp-val-input {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  outline: none;
}

.time-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #212735;
  border: 1px solid #3e4a5d;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}

.time-dropdown.show {
  display: block;
}

.time-opt {
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #8c93a0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.time-opt:last-child {
  border-bottom: none;
}

.time-opt:hover,
.time-opt.active {
  background: rgba(0, 149, 255, 0.1);
  color: #3fb1f7;
}

/* Quotex-style Time Grid Selector */
.time-grid-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
}

.time-grid-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #8c93a0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.time-grid-pill:hover {
  background: rgba(0, 149, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 149, 255, 0.35);
}

.time-grid-pill.active {
  background: linear-gradient(135deg, #0095ff 0%, #00e5ff 100%);
  color: #ffffff;
  border-color: rgba(0, 149, 255, 0.6);
  box-shadow: 0 2px 10px rgba(0, 149, 255, 0.35);
}

.time-dropdown::-webkit-scrollbar {
  width: 4px;
}

.time-dropdown::-webkit-scrollbar-thumb {
  background: #3e4a5d;
  border-radius: 2px;
}

#mobileTimeDropdown {
  top: auto;
  bottom: calc(100% + 8px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.rp-payout-row {
  display: flex;
  align-items: baseline;
  margin: 6px 0 10px;
  font-size: 11px;
}

.rp-payout-lbl {
  color: #8c93a0;
  font-weight: 600;
}

.rp-payout-dots {
  flex: 1;
  border-bottom: 2px dotted #3e4a5d;
  margin: 0 6px;
  transform: translateY(-4px);
}

.rp-payout-val {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.rp-trade-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-up-lg,
.btn-down-lg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.3px;
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-up-lg {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.35);
}

.btn-up-lg:hover {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(0, 200, 83, 0.5);
}

.btn-down-lg {
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 100%);
  box-shadow: 0 4px 20px rgba(255, 23, 68, 0.35);
}

.btn-down-lg:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(255, 23, 68, 0.5);
}

.btn-arrow-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.btn-up-lg .btn-arrow-circle {
  background: rgba(255, 255, 255, 0.25);
}

.btn-down-lg .btn-arrow-circle {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   WINTRADELY ULTRA-PREMIUM DESKTOP TRADING TERMINAL — TRADES & HISTORY
   Redesigned for high-clarity monitoring on laptop & desktop screens
   ========================================================================== */

.rp-trades-section {
  display: flex;
  flex-direction: column;
  margin: 8px 0 16px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 20, 32, 0.96) 0%, rgba(9, 13, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-height: 260px;
  max-height: 540px;
  flex-shrink: 0;
  position: relative;
}

/* Header Tab Bar Container */
.rp-trades-tabs,
.rp-trades-tabs-nav {
  display: flex;
  align-items: center;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.rp-tab,
.rp-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  position: relative;
  outline: none;
}

.rp-tab:hover,
.rp-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.rp-tab.active,
.rp-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#dTabRunning.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.16) 0%, rgba(2, 132, 199, 0.2) 100%);
  border-color: rgba(0, 230, 118, 0.42);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.12), inset 0 1px 0 rgba(0, 230, 118, 0.2);
}

/* Pulsating Live Radar Beacon Dot in Tab */
.rp-tab-beacon,
.rp-tab-live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rp-tab-live-dot {
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: rpLivePulse 1.4s ease-in-out infinite;
}

.rp-tab-beacon-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.rp-tab-beacon-ping {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #00e676;
  opacity: 0.8;
  animation: thTabRipple 1.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes thTabRipple {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes rpLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

.rp-tab-label,
.rp-tab-text {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 12px;
}

.rp-tab-count,
.rp-tab-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 7px;
  border-radius: 999px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.rp-tab.active .rp-tab-badge,
.rp-tab-btn.active .rp-tab-count {
  background: #0284c7;
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.45);
}

#dTabRunning.active .rp-tab-badge,
#dTabRunning.active .rp-tab-count {
  background: #00c853;
  color: #ffffff;
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.5);
}

.rp-tab-closed-icon {
  opacity: 0.8;
  flex-shrink: 0;
}

/* ── Trades Scrollable Body ── */
.rp-trades-body {
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: left;
  padding: 10px 8px 32px 8px;
  overflow-y: auto !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
}

.rp-trades-body--hidden {
  display: none !important;
}

.rp-trades-body::-webkit-scrollbar {
  width: 6px;
}

.rp-trades-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  margin: 4px 0;
}

.rp-trades-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.rp-trades-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   WINTRADELY CYBER-FINTECH TRADE CARDS
   ========================================================================== */

.th-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 23, 38, 0.96) 0%, rgba(9, 14, 24, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 12px 10px 12px;
  margin-bottom: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  animation: thCardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@keyframes thCardIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.th-card--completed {
  animation: none !important;
  transform: none !important;
}

.th-card--completed:hover {
  transform: translateY(-2px) !important;
}

.th-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* Ambient Glow Bar at the very top of each card */
.th-card-glow-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

/* Card States: Winning, Losing, Tied */
.th-card--win {
  border-color: rgba(0, 230, 118, 0.32);
  background: linear-gradient(145deg, rgba(0, 230, 118, 0.06) 0%, rgba(13, 20, 32, 0.98) 60%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 230, 118, 0.08);
}

.th-card--win .th-card-glow-bar {
  background: linear-gradient(90deg, #00e676 0%, #00c853 100%);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
}

.th-card--win:hover {
  border-color: rgba(0, 230, 118, 0.48);
  box-shadow: 0 10px 28px rgba(0, 230, 118, 0.16);
}

.th-card--loss {
  border-color: rgba(255, 23, 68, 0.32);
  background: linear-gradient(145deg, rgba(255, 23, 68, 0.06) 0%, rgba(13, 20, 32, 0.98) 60%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 23, 68, 0.08);
}

.th-card--loss .th-card-glow-bar {
  background: linear-gradient(90deg, #ff1744 0%, #d50000 100%);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

.th-card--loss:hover {
  border-color: rgba(255, 23, 68, 0.48);
  box-shadow: 0 10px 28px rgba(255, 23, 68, 0.16);
}

.th-card--tie {
  border-color: rgba(148, 163, 184, 0.25);
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.05) 0%, rgba(13, 20, 32, 0.98) 60%);
}

.th-card--tie .th-card-glow-bar {
  background: #94a3b8;
}

/* ── Card Header Row 1: Pair + Chips ── */
.th-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
  flex-wrap: nowrap;
}

.th-card-asset {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.th-flag-circle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-asset-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.th-asset-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.th-asset-otc {
  font-size: 8.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 4px;
  padding: 1px 4.5px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.th-card-chips {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.th-chip-acc {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 5px;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-transform: uppercase;
  flex-shrink: 0;
  box-sizing: border-box;
}

.th-acc-dot {
  display: inline-block;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.th-chip-acc--demo {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.18);
}

.th-chip-acc--demo .th-acc-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.th-chip-acc--live {
  color: #00e676;
  background: rgba(0, 230, 118, 0.16);
  border: 1px solid rgba(0, 230, 118, 0.45);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.28);
}

.th-chip-acc--live .th-acc-dot {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.th-acc-dot--live {
  animation: thLivePulse 1.8s infinite;
}

@keyframes thLivePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.th-chip-dir {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.th-chip-dir.dir-up {
  background: rgba(0, 230, 118, 0.16);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.36);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.18);
}

.th-chip-dir.dir-down {
  background: rgba(255, 23, 68, 0.16);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.36);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.18);
}

.th-dir-icon {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

/* Outcome Badge (Settled trades) */
.th-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
  border: 1px solid transparent;
}

.th-outcome-badge.is-win {
  background: rgba(0, 230, 118, 0.16);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.36);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.th-outcome-badge.is-loss {
  background: rgba(255, 23, 68, 0.16);
  color: #ff1744;
  border-color: rgba(255, 23, 68, 0.36);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}

.th-outcome-badge.is-tie {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.th-outcome-icon {
  font-size: 10px;
  font-weight: 900;
}

/* ── Live Price Battleground Panel (Strike vs Current/Close) ── */
.th-battle-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 9px;
  gap: 6px;
}

.th-strike-box,
.th-current-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.th-current-box {
  align-items: flex-end;
  text-align: right;
}

.th-battle-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.1;
}

.th-strike-val {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.th-current-val {
  font-size: 13.5px;
  font-weight: 900;
  font-family: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.th-spread-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.th-spread-indicator.is-win {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.28);
}

.th-spread-indicator.is-loss {
  background: rgba(255, 23, 68, 0.1);
  border-color: rgba(255, 23, 68, 0.28);
}

.th-spread-indicator.is-tie {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.28);
}

.th-spread-arrow {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.th-spread-diff {
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* ── Row 3: Financials & Status Pill ── */
.th-fin-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 2px 7px 2px;
  gap: 8px;
}

.th-fin-row--completed {
  padding-bottom: 4px;
}

.th-fin-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-fin-side--right {
  align-items: flex-end;
  text-align: right;
}

.th-fin-caption {
  font-size: 9px;
  font-weight: 800;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.th-fin-amount {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.th-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  border: 1px solid transparent;
  margin-bottom: 2px;
}

.th-live-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  animation: thPulseAnim 1.2s infinite ease-in-out;
}

@keyframes thPulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.th-status-label {
  font-weight: 800;
}

.th-live-pnl-val,
.th-completed-pnl {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* ── Row 4: Shimmer Countdown Bar & Timer Tray ── */
.th-timer-tray {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.th-timer-bar-track {
  width: 100%;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.th-timer-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.9s linear;
  box-shadow: 0 0 8px currentColor;
  position: relative;
}

.th-timer-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: thProgressShimmer 2s infinite linear;
}

@keyframes thProgressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.th-timer-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.th-timer-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.th-clock-svg {
  flex-shrink: 0;
}

.th-timer-countdown {
  font-size: 12.5px;
  font-weight: 900;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.th-order-tag {
  font-size: 10px;
  font-weight: 700;
  color: #78859e;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ── Completed Card Footer ── */
.th-settled-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.th-time-range {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #78859e;
  line-height: 1.2;
}

.th-time-range svg {
  opacity: 0.75;
}

.th-trade-ref {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.4px;
}

/* ── Completed Tab Summary Banner ── */
.th-history-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.th-sum-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-sum-card--winrate {
  align-items: center;
  text-align: center;
}

.th-sum-card--pnl {
  align-items: flex-end;
  text-align: right;
}

.th-sum-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #8899aa;
  letter-spacing: 0.5px;
}

.th-sum-val {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* ── Vector Empty States ── */
.empty-trades.th-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 18px;
  text-align: center;
  gap: 10px;
  margin: auto;
}

.th-empty-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  animation: none;
}

@keyframes thEmptyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15); }
}

.th-empty-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.th-empty-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  max-width: 220px;
}

/* Fallback & Legacy Aliases */
.th-card-accent { display: none; }
.th-head-row { display: flex; align-items: center; justify-content: space-between; }
.th-price-grid { display: flex; align-items: center; }
.th-fin-grid { display: flex; align-items: flex-end; justify-content: space-between; }


/* Chart Bottom Tools - moved to floating tools in chart.css */
.bottom-tool {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all .2s;
}

.bottom-tool:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ===== MOBILE UI — FULL SCREEN & COMPACT OPTIMIZED ===== */
.mobile-app {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
  background: var(--bg);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.m-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  min-height: 42px;
  background: transparent;
  border-bottom: none;
  pointer-events: auto;
}

.m-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-menu-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-menu-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px;
}

.m-menu-dots span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.m-live-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.m-balance {
  font-weight: 700;
  font-size: 13px;
}

.m-account-btn {
  background: rgba(13, 17, 23, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.notif-bell-btn#mNotifBtn {
  background: rgba(13, 17, 23, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.m-bell {
  position: relative;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text2);
  padding: 2px;
}

.m-bell-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.m-deposit-btn {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  border-radius: 5px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 11px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35);
}

.m-chart {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.m-chart-label {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text2);
}

.m-chart-label.begin {
  top: 10px;
  left: 30%;
}

.m-chart-label.end {
  top: 10px;
  right: 10%;
}

.m-price-tag {
  position: absolute;
  right: 0;
  background: rgba(0, 149, 255, 0.9);
  border-radius: 4px 0 0 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.m-chart-time-info {
  position: absolute;
  top: 52px;
  left: 8px;
  background: none;
  border-radius: 6px;
  padding: 0;
  font-size: 9.5px;
  color: var(--text2);
  z-index: 15;
}

.m-chart-time-info .m-time-val {
  font-weight: 700;
  font-size: 11px;
  color: var(--text);
}

canvas#mobileChart {
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════════════════
   ── COMPACT MOBILE TRADING PANEL & MAXIMIZED CHART ──
   ══════════════════════════════════════════════════════ */
.m-trading-panel {
  background: linear-gradient(180deg, #161c28 0%, #111622 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.m-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
}

.m-pair-info {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex: 1;
}

.m-pair-flags {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.m-pair-name {
  font-weight: 800;
  font-size: 11px;
  color: #ffffff;
}

.m-pair-pct {
  background: rgba(0, 200, 83, 0.15);
  color: #00e676;
  font-weight: 800;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 2px;
}

.m-pair-chevron {
  color: #7b8599;
  font-size: 9px;
}

.m-history-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  color: #38bdf8;
  font-size: 9px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.m-history-btn:active {
  transform: scale(0.94);
}

.m-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.m-input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px 4px;
}

.m-input-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px;
}

.m-input-lbl {
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.m-input-row {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  height: 26px;
  transition: all 0.2s ease;
}

.m-input-row:hover, .m-input-row:focus-within {
  border-color: rgba(0, 149, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 149, 255, 0.25);
}

.m-input-row input {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  padding: 1px 2px;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.m-input-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #38bdf8;
  width: 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.m-input-btn:hover {
  background: rgba(0, 149, 255, 0.2);
  color: #ffffff;
}

.m-input-btn:active {
  transform: scale(0.92);
}

.m-payout-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin: 1px 0 2px;
}

.m-payout-row span {
  font-weight: 800;
  color: #00e676;
  margin-left: 4px;
}

.m-trade-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.m-btn-up, .m-btn-down {
  border: none;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.m-btn-up {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.m-btn-down {
  background: linear-gradient(135deg, #d50000 0%, #ff1744 50%, #ff5252 100%);
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.m-btn-up:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.m-btn-down:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.m-btn-up:active, .m-btn-down:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

.m-btn-arrow-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Enhanced Glassmorphic Mobile Bottom Nav */
.m-bottom-nav {
  display: flex;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
}

.m-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 1px;
  cursor: pointer;
  color: #7b8599;
  position: relative;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.m-nav-item:active {
  transform: scale(0.92);
}

.m-nav-item.active, .m-nav-item:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.m-nav-icon {
  font-size: 16px;
  line-height: 1;
}

.m-nav-lbl {
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.lang-opt-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lang-opt-card:hover, .lang-opt-card.active {
  background: rgba(0, 149, 255, 0.12);
  border-color: rgba(0, 149, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 149, 255, 0.2);
}

/* Notification */
.notification {
  position: fixed;
  top: 60px;
  right: 16px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform .4s ease;
  box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

.notification.show {
  transform: translateX(0);
}

@media(max-width:767px) {
  .app {
    display: none;
  }

  .mobile-app {
    display: flex;
  }

  .m-menu-btn {
    display: none;
  }

  .market-overlay {
    align-items: flex-end;
  }

  .market-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    transform: translateY(100%);
    padding-bottom: 20px;
  }

  .market-overlay.show .market-modal {
    transform: translateY(0);
  }

  .account-dropdown {
    position: fixed;
    top: 56px;
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 9999;
  }

  .support-overlay {
    align-items: flex-end;
  }

  .support-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .support-overlay.show .support-modal {
    transform: translateY(0);
  }

  .support-form {
    padding: 16px 18px 20px;
  }

  .sf-textarea {
    min-height: 80px;
  }
}

/* --- Premium Mobile More Menu (Bottom Sheet) --- */
/* --- Premium Mobile More Menu (Quotex / Binomo Level Bottom Sheet) --- */
.m-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(4, 7, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m-more-overlay.show {
  opacity: 1;
  visibility: visible;
}

.m-more-sheet {
  width: 100%;
  max-width: 540px;
  max-height: min(88vh, 740px);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -25px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.08);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.m-more-sheet::-webkit-scrollbar {
  width: 4px;
}

.m-more-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.m-more-overlay.show .m-more-sheet {
  transform: translateY(0);
}

.m-more-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin: 6px auto 16px;
}

.m-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.m-more-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 2px;
}

.m-more-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.m-more-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.m-more-close:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ── Quick User Account Strip ── */
.m-more-user-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-more-user-strip:active {
  transform: scale(0.98);
  background: rgba(56, 189, 248, 0.14);
}

.m-more-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.m-more-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-more-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-more-user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
}

.m-more-status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: liveDotPulse 1.8s infinite;
}

.m-more-user-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ── Menu Grid Layout ── */
.m-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 6px;
}

/* ── Section Dividers ── */
.m-more-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.m-more-section-title:first-child {
  margin-top: 0;
}

.m-more-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.m-more-section-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

/* ── Card Badges ── */
.m-more-card-badge {
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  line-height: 1.2;
  z-index: 2;
}

.m-more-badge--green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.m-more-badge--gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.m-more-badge--cyan {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.m-more-badge--purple {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.m-more-badge--blue {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.m-more-badge--pink {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

/* ── Menu Card ── */
.m-more-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.45);
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  min-height: 70px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  backdrop-filter: blur(10px);
}

.m-more-overlay.show .m-more-card {
  animation: mMoreCardIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.m-more-overlay.show .m-more-card:nth-child(1) {
  animation-delay: 0.03s;
}

.m-more-overlay.show .m-more-card:nth-child(2) {
  animation-delay: 0.06s;
}

.m-more-overlay.show .m-more-card:nth-child(3) {
  animation-delay: 0.09s;
}

.m-more-overlay.show .m-more-card:nth-child(4) {
  animation-delay: 0.12s;
}

.m-more-overlay.show .m-more-card:nth-child(5) {
  animation-delay: 0.15s;
}

.m-more-overlay.show .m-more-card:nth-child(6) {
  animation-delay: 0.18s;
}

.m-more-overlay.show .m-more-card:nth-child(7) {
  animation-delay: 0.21s;
}

.m-more-overlay.show .m-more-card:nth-child(8) {
  animation-delay: 0.24s;
}

.m-more-overlay.show .m-more-card:nth-child(9) {
  animation-delay: 0.27s;
}

@keyframes mMoreCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.m-more-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(18px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.m-more-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.m-more-card-icon svg {
  width: 20px;
  height: 20px;
}

.m-more-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.m-more-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.m-more-card-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.m-more-card-arrow {
  color: var(--text3);
  font-size: 16px;
  font-weight: bold;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.m-more-card:active {
  transform: scale(0.96);
  background: rgba(30, 41, 59, 0.8);
}

.m-more-card:active .m-more-card-arrow {
  color: #38bdf8;
  transform: translateX(3px);
}

/* ── Card Themes ── */
.m-more-card--account .m-more-card-glow {
  background: #6366f1;
}

.m-more-card--account .m-more-card-icon {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}

.m-more-card--account:active {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.m-more-card--deposit .m-more-card-glow {
  background: #10b981;
}

.m-more-card--deposit .m-more-card-icon {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
}

.m-more-card--deposit:active {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.m-more-card--transaction .m-more-card-glow {
  background: #06b6d4;
}

.m-more-card--transaction .m-more-card-icon {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #fff;
}

.m-more-card--transaction:active {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

.m-more-card--analytics .m-more-card-glow {
  background: #8b5cf6;
}

.m-more-card--analytics .m-more-card-icon {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
}

.m-more-card--analytics:active {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.m-more-card--support .m-more-card-glow {
  background: #3b82f6;
}

.m-more-card--support .m-more-card-icon {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
}

.m-more-card--support:active {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.m-more-card--history .m-more-card-glow {
  background: #f59e0b;
}

.m-more-card--history .m-more-card-icon {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #fff;
}

.m-more-card--history:active {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.m-more-card--affiliate .m-more-card-glow {
  background: #ec4899;
}

.m-more-card--affiliate .m-more-card-icon {
  background: linear-gradient(135deg, #db2777, #f472b6);
  color: #fff;
}

.m-more-card--affiliate:active {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
}

.m-more-card--forex .m-more-card-glow {
  background: #14b8a6;
}

.m-more-card--forex .m-more-card-icon {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  color: #fff;
}

.m-more-card--forex:active {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.25);
}

.m-more-card--settings .m-more-card-glow {
  background: #64748b;
}

.m-more-card--settings .m-more-card-icon {
  background: linear-gradient(135deg, #475569, #94a3b8);
  color: #fff;
}

.m-more-card--settings:active {
  border-color: rgba(100, 116, 139, 0.4);
  box-shadow: 0 6px 20px rgba(100, 116, 139, 0.25);
}

/* ── Withdrawal Theme ── */
.m-more-card--withdrawal .m-more-card-glow {
  background: #f59e0b;
}

.m-more-card--withdrawal .m-more-card-icon {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  color: #fff;
}

.m-more-card--withdrawal:active {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

/* ── Leaderboard Theme ── */
.m-more-card--leaderboard .m-more-card-glow {
  background: #eab308;
}

.m-more-card--leaderboard .m-more-card-icon {
  background: linear-gradient(135deg, #ca8a04, #eab308, #fde047);
  color: #fff;
}

.m-more-card--leaderboard:active {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.25);
}

/* ── Community Theme ── */
.m-more-card--community .m-more-card-glow {
  background: #00e676;
}

.m-more-card--community .m-more-card-icon {
  background: linear-gradient(135deg, #00b0ff, #00e676);
  color: #fff;
}

.m-more-card--community:active {
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.25);
}

/* ── Logout Card Theme ── */
.m-more-card--logout {
  grid-column: 1 / -1;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.m-more-card--logout .m-more-card-glow {
  background: #ef4444;
}

.m-more-card--logout .m-more-card-icon {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.m-more-card--logout:active {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.35);
}

/* ── Small Screen Adaptive Fit ── */
@media (max-width: 420px) {
  .m-more-grid {
    gap: 8px;
  }
  .m-more-card {
    padding: 10px 10px;
    gap: 8px;
    min-height: 64px;
    border-radius: 14px;
  }
  .m-more-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .m-more-card-icon svg {
    width: 17px;
    height: 17px;
  }
  .m-more-card-label {
    font-size: 12px;
  }
  .m-more-card-sub {
    font-size: 9px;
  }
  .m-more-card-badge {
    font-size: 7.5px;
    padding: 1px 4px;
    top: 5px;
    right: 6px;
  }
  .m-more-card-arrow {
    display: none;
  }
}

.m-nav-item.m-nav-more-active {
  color: var(--blue);
}

.m-nav-item.m-nav-more-active .m-nav-icon {
  transform: scale(1.08);
}

/* ── Light Mode Customizations ── */
body.light-mode .m-more-sheet {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .m-more-handle {
  background: rgba(0, 0, 0, 0.18);
}

body.light-mode .m-more-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text2);
}

body.light-mode .m-more-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.light-mode .m-more-card:active {
  background: #ffffff;
}

@media (max-width: 360px) {
  .m-more-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .m-more-card {
    min-height: 62px;
    padding: 10px 12px;
  }

  .m-more-card-icon {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 768px) {
  .m-more-overlay {
    display: none;
  }
}


/* Responsive: small desktop tablet adjustments */
@media(max-width:1100px) and (min-width:768px) {
  :root {
    --right-w: 225px;
    --nav-w: 48px;
  }

  .withdraw-btn {
    display: none;
  }
}

@media(min-width: 1440px) {
  :root {
    --right-w: 250px;
  }
}

/* Collapsible Promo Code Widget Styles */
.promo-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 0 4px 6px 4px;
  background: rgba(255, 193, 7, 0.03);
  border: 1px dashed rgba(255, 193, 7, 0.15);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.promo-toggle-header:hover {
  background: rgba(255, 193, 7, 0.08);
  color: #fff;
  border-color: rgba(255, 193, 7, 0.35);
}

.promo-toggle-chevron {
  font-size: 9px;
  color: var(--text3);
  transition: transform 0.2s ease;
}

/* Adjust promo card styles when inside collapse container */
#promoCollapseContainer {
  margin: 0 4px 8px 4px !important;
  border: 1px solid rgba(255, 193, 7, 0.25);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, #111827 100%) !important;
  animation: none !important;
}

/* Toolbar Dropdowns */
.toolbar-dropdown {
  position: relative;
  display: inline-block;
}

.tb-dropdown-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text2);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 30px;
}

.tb-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.tb-dropdown-trigger .chevron {
  font-size: 9px;
  color: var(--text3);
  transition: transform 0.2s ease;
}

.toolbar-dropdown.open .tb-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.tb-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  min-width: 150px;
  backdrop-filter: blur(12px);
  flex-direction: column;
  gap: 2px;
}

.tb-dropdown-menu.show {
  display: flex;
}

/* Adjust dropdown buttons to be full-width list items */
.tb-dropdown-menu .ct-btn,
.tb-dropdown-menu .ind-btn {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: left !important;
  padding: 7px 10px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text2) !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.tb-dropdown-menu .ct-btn:hover,
.tb-dropdown-menu .ind-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text) !important;
}

.tb-dropdown-menu .ct-btn.active,
.tb-dropdown-menu .ind-btn.active {
  background: rgba(0, 149, 255, 0.1) !important;
  color: var(--blue) !important;
}

/* Specific colors for indicators in active state inside dropdown */
.tb-dropdown-menu .ind-btn[data-indicator="ema"].active {
  color: #ffd600 !important;
  background: rgba(255, 214, 0, 0.12) !important;
}

.tb-dropdown-menu .ind-btn[data-indicator="sma"].active {
  color: #00bcd4 !important;
  background: rgba(0, 188, 212, 0.12) !important;
}

.tb-dropdown-menu .ind-btn[data-indicator="bb"].active {
  color: #ce93d8 !important;
  background: rgba(206, 147, 216, 0.12) !important;
}

/* Specific colors for chart types in active state inside dropdown */
.tb-dropdown-menu .ct-btn[data-chart-type="candlestick"].active {
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.16) !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2) !important;
}

.tb-dropdown-menu .ct-btn[data-chart-type="line"].active {
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.16) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

.tb-dropdown-menu .ct-btn[data-chart-type="area"].active {
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.16) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

.ind-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text3);
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ind-btn.active .ind-dot.ema-dot {
  background: #ffd600;
  transform: scale(1.2);
}

.ind-btn.active .ind-dot.sma-dot {
  background: #00bcd4;
  transform: scale(1.2);
}

.ind-btn.active .ind-dot.bb-dot {
  background: #ce93d8;
  transform: scale(1.2);
}

/* ══════════════════════════════════════════════════════
   ── QUOTEX STYLE TRADE SETTLEMENT TOAST & CHART BADGE ──
   ══════════════════════════════════════════════════════ */
.quotex-trade-toast {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: quotexToastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
}

@media(max-width: 767px) {
  .quotex-trade-toast {
    top: 55px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 340px;
  }
}

.quotex-trade-toast.win {
  background: rgba(10, 35, 20, 0.94);
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 10px 30px rgba(0, 200, 83, 0.4);
}

.quotex-trade-toast.loss {
  background: rgba(35, 10, 15, 0.94);
  border: 1px solid rgba(255, 23, 68, 0.5);
  box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
}

.quotex-trade-toast.tie {
  background: rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 30px rgba(100, 116, 139, 0.4);
}

.quotex-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.quotex-trade-toast.win .quotex-toast-icon {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.5);
}

.quotex-trade-toast.loss .quotex-toast-icon {
  background: rgba(255, 23, 68, 0.2);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.5);
}

.quotex-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quotex-toast-title {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.quotex-toast-amount {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.quotex-trade-toast.win .quotex-toast-amount {
  color: #00e676;
}

.quotex-trade-toast.loss .quotex-toast-amount {
  color: #ff1744;
}

.quotex-trade-toast.tie .quotex-toast-icon {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.quotex-trade-toast.tie .quotex-toast-amount {
  color: #94a3b8;
}

.quotex-toast-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
}

@keyframes quotexToastIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quotexToastOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.85);
  }
}

/* On-Chart Floating Result Badge */
.chart-result-badge {
  position: absolute;
  z-index: 100;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: floatResultBadge 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.chart-result-badge.win {
  background: linear-gradient(135deg, #00c853, #00e676);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.7);
}

.chart-result-badge.loss {
  background: linear-gradient(135deg, #ff1744, #ff5252);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.7);
}

.chart-result-badge.tie {
  background: linear-gradient(135deg, #475569, #64748b);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(100, 116, 139, 0.7);
}

@keyframes floatResultBadge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.15);
  }
  40% {
    transform: translate(-50%, -60%) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85%) scale(0.85);
  }
}

/* ==========================================================================
   WINTRADELY ULTRA-CRISP DUAL CIRCULAR FLAG & ASSET BADGES
   Crisp SVG rendering for Desktop & Mobile devices
   ========================================================================== */
.dual-flag-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}
.dual-flag-badge.size-xs { width: 28px; height: 18px; }
.dual-flag-badge.size-xs .flag-circle { width: 18px; height: 18px; }
.dual-flag-badge.size-xs .flag-circle-2 { margin-left: -8px; }

.dual-flag-badge.size-sm { width: 34px; height: 20px; }
.dual-flag-badge.size-sm .flag-circle { width: 20px; height: 20px; }
.dual-flag-badge.size-sm .flag-circle-2 { margin-left: -8px; }

.dual-flag-badge.size-md { width: 42px; height: 26px; }
.dual-flag-badge.size-md .flag-circle { width: 26px; height: 26px; }
.dual-flag-badge.size-md .flag-circle-2 { margin-left: -10px; }

.dual-flag-badge.size-lg { width: 50px; height: 30px; }
.dual-flag-badge.size-lg .flag-circle { width: 30px; height: 30px; }
.dual-flag-badge.size-lg .flag-circle-2 { margin-left: -12px; }

.flag-circle {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: #1e293b;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.flag-circle-1 { z-index: 1; }
.flag-circle-2 {
  z-index: 2;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.flag-circle svg,
.flag-circle .flag-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
/* ── Trade History Summary Bar ── */
.th-history-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9px;
  padding: 7px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.th-sum-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.th-sum-item--right {
  align-items: flex-end;
  text-align: right;
}

.th-sum-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.th-sum-val {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

/* ── Account Badges (Demo vs Live) ── */
.th-acc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.th-acc-badge.th-acc--demo {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.th-acc-badge.th-acc--live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
