*,
*::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: 215px;
  --top-h: 44px;
  --asset-h: 42px;
}

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) var(--asset-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 14px;
  gap: 14px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}

.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;
}

.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 */
.asset-bar {
  grid-column: 2/3;
  grid-row: 2;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 0 12px;
}

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

.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(255, 255, 255, 0.18);
}

.asset-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 30px;
}

.asset-chip:hover,
.asset-chip.active {
  background: rgba(0, 200, 83, 0.08);
  color: var(--text);
  border-color: rgba(0, 200, 83, 0.25);
}

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

.flag-pair {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-name {
  font-size: 12px;
  font-weight: 700;
}

.chip-pct {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
}

.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: 4px;
  min-width: 55px;
  height: 18px;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.chip-status-badge.win {
  background-color: var(--green, #00c853);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chip-status-badge.loss {
  background-color: var(--red, #ff1744);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.chip-close-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.chip-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Left Nav Sidebar */
.left-nav {
  grid-column: 1;
  grid-row: 2/4;
  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: 3;
  background: #0d1117;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* .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/4;
  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;
  display: flex;
  flex-direction: column;
  padding: 0 6px 6px 6px;
}

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

.rp-inner-scroll::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

.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 {
  font-size: 16px;
  display: flex;
}

.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;
}

.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);
}

.rp-trades-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 2px;
  min-height: 0;
}

.rp-trades-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rp-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  color: #8c93a0;
  font-size: 12px;
  font-weight: 700;
  border-top: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1e2433;
  transition: background 0.2s, color 0.2s;
}

.rp-tab.active {
  border-top-color: #3fb1f7;
  background: #212735;
  color: #fff;
}

.rp-tab-badge {
  background: #2a3345;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  color: #fff;
  min-width: 16px;
}

.rp-tab.active .rp-tab-badge {
  background: var(--blue);
}

.rp-tab-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: rpLivePulse 1.5s ease-in-out infinite;
}

@keyframes rpLivePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.rp-trades-body {
  background: #212735;
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 12px 10px 16px;
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

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

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

.rp-trades-body::-webkit-scrollbar-thumb {
  background: #3e4a5d;
  border-radius: 2px;
}

.th-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  animation: thCardIn 0.35s ease;
}

@keyframes thCardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.th-card--up {
  border-left: 3px solid #00e676;
}

.th-card--down {
  border-left: 3px solid #ff1744;
}

.th-card--win {
  border-left: 3px solid #00e676;
}

.th-card--loss {
  border-left: 3px solid #ff1744;
}

.th-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.th-card-head--run {
  margin-bottom: 12px;
}

.th-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.th-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.th-card-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
}

.th-card-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-card-sub {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

.th-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.th-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
}

.th-card-row--run {
  margin-bottom: 12px;
}

.th-card-profit {
  font-size: 16px;
  font-weight: 800;
}

.th-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-card-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.th-card-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s linear;
}

.th-card-timer {
  font-weight: 800;
  font-size: 14px;
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty-trades {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  flex: 1;
}

.empty-box-icon {
  width: 56px;
  height: 56px;
  background: #2e3646;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-box-icon svg {
  stroke: #fff;
  fill: none;
}

.empty-trades p {
  color: #8c93a0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 220px;
  margin: 0;
}

/* 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: #0d1117;
  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%;
}

.m-trading-panel {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 3px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.m-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0px;
}

.m-pair-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-pair-flags {
  font-size: 14px;
}

.m-pair-name {
  font-weight: 700;
  font-size: 11.5px;
}

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

.m-pending-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
}

.m-pending-lbl {
  font-size: 9px;
  color: var(--blue);
  font-weight: 600;
}

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

.m-input-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m-input-lbl {
  font-size: 8.5px;
  color: var(--text3);
}

.m-input-row {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 5px;
  overflow: hidden;
  height: 24px;
}

.m-input-row input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 2px 4px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.m-input-btn {
  background: none;
  border: none;
  color: var(--text3);
  padding: 0 5px;
  font-size: 12px;
  cursor: pointer;
  height: 24px;
  display: flex;
  align-items: center;
}

.m-switch-center {
  text-align: center;
  font-size: 8px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0;
  line-height: 1;
}

.m-payout-row {
  display: flex;
  justify-content: flex-end;
  font-size: 9.5px;
  color: var(--text2);
  margin-top: 0px;
}

.m-payout-row span {
  font-weight: 700;
  color: var(--text);
  margin-left: 3px;
}

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

.m-btn-up {
  background: linear-gradient(135deg, #00c853, #00e676);
  border: none;
  border-radius: 5px;
  padding: 6px 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.m-btn-down {
  background: linear-gradient(135deg, #ff1744, #ff5252);
  border: none;
  border-radius: 5px;
  padding: 6px 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.m-bottom-nav {
  display: flex;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding: 1px 0 calc(1px + env(safe-area-inset-bottom, 0px));
}

.m-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 1px;
  cursor: pointer;
  color: var(--text3);
  position: relative;
  transition: all .2s;
}

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

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

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

.m-nav-new-tag {
  border-radius: 999px;
  width: auto;
  height: auto;
  padding: 0px 3px;
  font-size: 6.5px;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  top: 0px;
  right: calc(50% - 16px);
}

.m-nav-lbl {
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1.1;
}

/* 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);
}

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

/* ── 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);
}

.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: 215px;
    --nav-w: 48px;
  }

  .withdraw-btn {
    display: none;
  }
}

/* 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.12) !important;
}

.tb-dropdown-menu .ct-btn[data-chart-type="line"].active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

.tb-dropdown-menu .ct-btn[data-chart-type="area"].active {
  color: #22d3ee !important;
  background: rgba(34, 211, 238, 0.12) !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);
}