/* ===== QUOTEX CLONE - TRADE INTERFACE CSS (FULL FUNCTIONALITY & RESPONSIVE) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --t-bg-main:    #1c1f2d; /* Quotex Dark Slate Navy Canvas */
  --t-bg-card:    #2b3040; /* Quotex Container & Panels */
  --t-bg-sidebar: #1c1f2d; /* Quotex Left Sidebar */
  --t-bg-surface: #2b3040;
  --t-bg-input:   #1c1f2d; /* Dark input fill */
  --t-border:     rgba(255, 255, 255, 0.08);
  --t-border-sub: #2b3040;
  --t-green:      #0faf59; /* Exact Quotex Green */
  --t-green-dark: #10a055;
  --t-green-bg:   rgba(15, 175, 89, 0.14);
  --t-green-shadow: 0 4px 10px 0 rgba(15, 175, 89, 0.25);
  --t-red:        #e85b4e; /* Exact Quotex Red */
  --t-red-dark:   #db4635;
  --t-red-bg:     rgba(232, 91, 78, 0.14);
  --t-red-shadow: 0 4px 10px 0 rgba(232, 91, 78, 0.25);
  --t-blue:       #026fd3; /* Exact Quotex Blue */
  --t-bright-blue:#2b99ff;
  --t-yellow:     #ff9800; /* Amber/Gold */
  --t-text:       #FFFFFF; /* White */
  --t-text-sub:   #8593a8;
  --t-text-muted: #78839b;
  --t-overlay:    rgba(28, 31, 45, 0.90);
  --t-radius:     8px;
}

@keyframes pulse {
  0% { opacity: 0; transform: scale(.5); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes qxGlowGreen {
  0%, 100% { box-shadow: 0 4px 10px 0 rgba(53, 184, 114, 0.25); }
  50% { box-shadow: 0 6px 18px 0 rgba(53, 184, 114, 0.45); }
}

@keyframes qxGlowRed {
  0%, 100% { box-shadow: 0 4px 10px 0 rgba(255, 98, 81, 0.25); }
  50% { box-shadow: 0 6px 18px 0 rgba(255, 98, 81, 0.45); }
}

html, body.trade-body {
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--t-bg-main) !important;
  color: var(--t-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Master Layout */
.trade-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: var(--t-bg-main);
}

/* =========================================
   1. LEFT SIDEBAR (EXACT QUOTEX)
   ========================================= */
.trade-sidebar {
  width: 56px;
  background: #1c1f2d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 6px;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #78839b;
  text-decoration: none;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar-btn.active {
  background: #0074e4;
  color: #fff;
}
.sidebar-btn.active svg {
  stroke: #fff;
}

.sidebar-badge-wrap {
  position: relative;
  display: inline-flex;
}
.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #026FD3;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sidebar-icon-mini {
  background: transparent;
  border: none;
  color: #7b879d;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-icon-mini:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-payout-pct {
  font-size: 10px;
  font-weight: 800;
  color: #0FAF59;
  background: rgba(0, 200, 83, 0.1);
  padding: 3px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

/* =========================================
   2. MAIN TRADING AREA & TOPBAR
   ========================================= */
.trade-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* HEADER / TOPBAR */
.trade-header {
  height: 50px;
  background: #1c1f2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 50;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-hamburger {
  background: transparent;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.btn-hamburger:hover {
  color: #fff;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-logo-icon {
  width: 24px;
  height: 24px;
}
.brand-text {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}
.brand-sub-dot {
  color: #55657e;
  font-weight: 900;
  margin: 0 1px;
}
.brand-sub-text {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
}

/* Middle Rocket 50% Bonus Banner (Quotex Exact) */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.header-bonus-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #03a650 0%, #00b057 100%);
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 176, 87, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-bonus-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 176, 87, 0.5);
}
.bonus-rocket-img {
  font-size: 16px;
  line-height: 1;
}
.bonus-banner-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}
.bonus-banner-text b {
  font-weight: 800;
  color: #ffffff;
}
.bonus-percent-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Open Asset Tabs Strip */
.qx-open-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-add-asset-square {
  width: 32px;
  height: 32px;
  background: #0074e4;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-add-asset-square:hover {
  filter: brightness(1.15);
}
.qx-tab-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #232733;
  border-radius: 6px;
  padding: 4px 10px;
  color: #fff;
  cursor: pointer;
  height: 32px;
  user-select: none;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.qx-tab-pill:hover {
  background: #2b3040;
}
.qx-tab-pill.active {
  background: #0b0d13;
  border-color: rgba(255, 255, 255, 0.08);
}
.payout-pill-pct {
  font-size: 11px;
  font-weight: 800;
}
.payout-pill-pct.text-green {
  color: #00c853;
}
.payout-pill-pct.text-gold {
  color: #ff9800;
}
.qx-active-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0b0d13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  color: #fff;
  cursor: pointer;
  height: 32px;
  user-select: none;
}
.qx-active-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.qx-active-tab .flag-icon {
  font-size: 14px;
}
.qx-active-tab .symbol-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.qx-active-tab .payout-badge {
  color: #ff9800;
  font-size: 11px;
  font-weight: 800;
}
.tab-chevron {
  font-size: 8px;
  color: #7b879d;
  margin-left: 2px;
}
.pair-info-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #026FD3;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
  padding-left: 2px;
}
.pair-info-link:hover {
  text-decoration: underline;
}
.trade-sub-badge {
  font-size: 8px;
  font-weight: 700;
  color: #a5c5ff;
  margin-top: 1px;
}
.tab-close-icon {
  color: #64748b;
  font-size: 10px;
  margin-left: 4px;
}
.tab-close-icon:hover {
  color: #FF6251;
}

.btn-add-tab {
  width: 28px;
  height: 32px;
  background: #1a2233;
  border: 1px solid #28354d;
  border-radius: 6px;
  color: #0FAF59;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-add-tab:hover {
  background: #222d42;
  border-color: #0FAF59;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header-bell {
  background: transparent;
  border: none;
  color: #7b879d;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  position: relative;
}
.btn-header-bell:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.bell-count-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #026FD3;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Middle Bonus Badge (Quotex) */
.header-bonus-badge {
  display: flex;
  align-items: center;
  background: #141926;
  border: 1px solid #232c3f;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
}
.bonus-pill-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7e8ea6;
}
.bonus-pill-content b {
  color: #fff;
}
.bonus-pct-tag {
  background: #026FD3;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Top Chart Status Strip */
.chart-top-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0f131d;
  border-bottom: 1px solid #1a202d;
  font-size: 11px;
  height: 28px;
  flex-shrink: 0;
  z-index: 10;
}
.status-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-clock-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.live-clock-pill .clock-val {
  color: #cbd5e1;
}
.live-clock-pill .clock-tz {
  font-size: 10px;
}
.live-stream-ticker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #55657e;
  font-size: 10px;
  font-weight: 600;
}
.ticker-dot {
  width: 5px;
  height: 5px;
  background: #0FAF59;
  border-radius: 50%;
  display: inline-block;
}
.status-bar-right {
  display: flex;
  align-items: center;
}
.market-sentiment-wrap {
  display: flex;
  width: 110px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}
.sentiment-bar-green {
  background: #0FAF59;
  color: #fff;
}
.sentiment-bar-red {
  background: #FF6251;
  color: #fff;
}

/* Account Switcher (Orange Demo Quotex Style) */
.account-switcher-wrap {
  position: relative;
}
.account-switcher {
  display: flex;
  align-items: center;
  background: #181d29;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 3px 12px;
  cursor: pointer;
  user-select: none;
}
.account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.acc-top-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.acc-icon-cap {
  font-size: 10px;
}
.account-type.text-orange {
  font-size: 9px;
  font-weight: 800;
  color: #ff9800;
  letter-spacing: 0.5px;
}
.acc-chevron.text-orange {
  color: #ff9800;
}
.account-balance {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Exact Quotex 2-Column Account Popover (Screenshot 4) */
.qx-account-popover {
  position: fixed;
  background: #151b27;
  border: 1px solid #232c3f;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: none;
  padding: 0;
  box-sizing: border-box;
}
.qx-account-popover.open {
  display: flex !important;
}

.account-popover-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.popover-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-popover {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-popover:hover {
  color: #fff;
}

.acc-popover-main {
  flex: 1;
  background: #151b27;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
}
.standard-profit-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d2332;
  border-radius: 6px;
  padding: 8px 12px;
}
.wqiyJ {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qjGlZ {
  font-size: 11px;
  font-weight: 800;
  color: #8b9ab4;
  letter-spacing: 0.5px;
}
.VgpLl {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.btn-hide-balance-eye {
  background: transparent;
  border: none;
  color: #7b879d;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}
.btn-hide-balance-eye:hover { color: #fff; }

.acc-user-meta {
  padding: 2px 0;
}
.user-email-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.user-id-val {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.acc-curr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #7b879d;
  border-bottom: 1px solid #1e2638;
  padding-bottom: 10px;
}
.acc-curr-row b {
  color: #fff;
}
.btn-change-curr {
  background: #026FD3;
  border: none;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.btn-change-curr:hover { filter: brightness(1.15); }

.acc-types-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-item-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 8px;
  transition: background 0.15s;
}
.acc-item-box:hover {
  background: rgba(255, 255, 255, 0.03);
}
.acc-item-box.active {
  background: rgba(37, 116, 255, 0.08);
}
.acc-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.custom-radio-label input[type="radio"] {
  accent-color: #026FD3;
  width: 14px;
  height: 14px;
}
.acc-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.acc-balance-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-left: 22px;
}
.acc-limit-note {
  font-size: 10px;
  color: #64748b;
  margin-left: 22px;
}
.btn-set-limit {
  background: transparent;
  border: none;
  color: #026FD3;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  margin-left: 22px;
  padding: 0;
  letter-spacing: 0.4px;
}
.btn-set-limit:hover { text-decoration: underline; }

.demo-bal-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-edit-pencil {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
}
.btn-edit-pencil:hover { color: #fff; }
.btn-refill-inline {
  background: #1c2436;
  border: 1px solid #28344e;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-refill-inline:hover { background: #026FD3; }

.edit-demo-box {
  margin: 8px 0 4px 22px;
  padding: 10px 12px;
  background: #101622;
  border: 1px solid #1f2a3e;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-demo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edit-demo-label {
  font-size: 11px;
  color: #8b9ab4;
  font-weight: 600;
}
.edit-demo-input {
  background: #0b0f17 !important;
  border: 1px solid #2a374f !important;
  border-radius: 4px !important;
  color: #fff !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.edit-demo-input:focus {
  border-color: #026FD3 !important;
}
.btn-confirm-demo {
  background: #026FD3 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  cursor: pointer !important;
  align-self: flex-start !important;
  transition: background 0.15s !important;
}
.btn-confirm-demo:hover {
  background: #1a60e0 !important;
}

/* Right Navigation Menu in Popover */
.acc-popover-nav {
  width: 130px;
  background: #0b0e17;
  border-left: 1px solid #1a202d;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
}
.acc-popover-nav li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
  display: block;
}
.acc-popover-nav li a:hover {
  color: #fff;
}
.btn-logout-link {
  background: transparent;
  border: none;
  color: #FF6251;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}
.btn-logout-link:hover {
  filter: brightness(1.2);
}

/* EXACT QUOTEX "MORE" SLIDE-OUT DRAWER (Screenshot 2) */
.qx-more-drawer {
  position: absolute;
  top: 0;
  left: 56px;
  width: 250px;
  height: 100vh;
  background: #141724;
  border-right: 1px solid #222a3d;
  z-index: 150;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.7);
}
.more-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}
.more-drawer-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.more-drawer-close {
  background: transparent;
  border: none;
  color: #7b879d;
  font-size: 15px;
  cursor: pointer;
}
.more-drawer-close:hover { color: #fff; }
.more-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.more-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.more-drawer-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.more-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.more-item-left svg {
  color: #8b9ab4;
}
.more-drawer-item:hover .more-item-left svg {
  color: #026FD3;
}
.more-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.more-badge-blue {
  background: #026FD3;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more-item-chevron {
  color: #64748b;
  font-size: 18px;
  font-weight: 400;
}

/* EXACT QUOTEX SETTINGS SIDEPANEL (DOM & Screenshot Exact) */
.settings-sidepanel {
  position: absolute;
  top: 0;
  left: 56px;
  width: 290px;
  height: 100vh;
  background: #141724;
  border-right: 1px solid #222a3d;
  z-index: 160;
  padding: 18px 16px;
  overflow-y: auto;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.7);
}
.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.settings-panel-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.settings-panel-close {
  background: transparent;
  border: none;
  color: #7b879d;
  font-size: 15px;
  cursor: pointer;
}
.settings-panel-close:hover { color: #fff; }

.settings-controls-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #1f2738;
  padding-top: 12px;
}
.settings-sub-title {
  font-size: 11px;
  font-weight: 800;
  color: #7b879d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-control--select {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-control__label {
  font-size: 10px;
  font-weight: 700;
  color: #6d7b93;
}
.input-control__value {
  background: #0d101a;
  border: 1px solid #222a3d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.theme-radio-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d101a;
  border: 1px solid #222a3d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
}
.theme-radio-opt input[type="radio"] {
  accent-color: #026FD3;
}
.grid-opacity-ctrl {
  display: flex;
  align-items: center;
  background: #0d101a;
  border: 1px solid #222a3d;
  border-radius: 6px;
  overflow: hidden;
  height: 34px;
}
.grid-opacity-ctrl .input-control__button {
  background: transparent;
  border: none;
  color: #8b9ab4;
  font-size: 16px;
  font-weight: 800;
  width: 32px;
  cursor: pointer;
}
.grid-opacity-ctrl .input-control__button:hover { color: #fff; }
.grid-opacity-ctrl input {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}
.setting-chk-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.setting-chk-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.setting-chk-row input[type="checkbox"] {
  accent-color: #026FD3;
  width: 14px;
  height: 14px;
}
.setting-chk-row p {
  font-size: 10px;
  color: #64748b;
  margin-left: 22px;
}
.graph-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d101a;
  border: 1px solid #222a3d;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.color-picker-input {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.bg-upload-label {
  display: block;
  background: #0d101a;
  border: 1px dashed #28344e;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
}
.bg-upload-label:hover { border-color: #026FD3; }
.pV2Zn { font-size: 12px; font-weight: 700; color: #026FD3; }
.zShVT { font-size: 10px; color: #64748b; margin-top: 2px; }

/* Deposit Button (Green) */
.btn-deposit-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0faf59;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  transition: filter 0.15s;
  height: 34px;
}
.btn-deposit-header:hover {
  filter: brightness(1.1);
}

/* Withdrawal Button (Dark) */
.btn-withdrawal-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #313746;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  transition: all 0.15s;
  height: 34px;
}
.btn-withdrawal-header:hover {
  background: #3a4254;
}

/* =========================================
   3. CHART AREA (WATERMARK & FLOATING CONTROLS)
   ========================================= */
.chart-area {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  background: #161922;
  overflow: hidden;
}

/* Vertical Traders Sentiment Strip on Left of Chart (Exact Screenshot) */
.sidebar-sentiment-strip {
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 24px;
  width: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}
.sent-top-pct, .sent-bottom-pct {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.sent-line-track {
  width: 3px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sent-line-red {
  background: #ff5252;
  width: 100%;
  transition: height 0.4s ease;
}
.sent-line-green {
  background: #00c853;
  width: 100%;
  transition: height 0.4s ease;
}

/* Floating Chart Top-Left Controls Stack (Exact Screenshot) */
.chart-top-left-stack {
  position: absolute;
  top: 14px;
  left: 48px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.btn-add-asset-square {
  width: 34px;
  height: 34px;
  background: #026FD3;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-add-asset-square:hover {
  filter: brightness(1.15);
}
.payout-badge-yellow {
  color: #ffb300;
  font-size: 11px;
  font-weight: 800;
  margin-left: 2px;
}
.floating-clock-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8b9ab4;
  font-variant-numeric: tabular-nums;
  padding-left: 2px;
}
.live-dot-green {
  width: 6px;
  height: 6px;
  background: #0FAF59;
  border-radius: 50%;
  display: inline-block;
}
.btn-floating-pair-info {
  background: transparent;
  border: none;
  color: #026FD3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 0;
}
.btn-floating-pair-info:hover {
  text-decoration: underline;
}
.btn-floating-pair-info .info-bubble {
  font-size: 12px;
}

/* Floating Green Trade Opened Toast (Screenshot Exact) */
.floating-green-toast {
  position: absolute;
  top: 108px;
  left: 48px;
  z-index: 40;
  background: #0FAF59;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
}
.toast-dismiss-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 2px;
}

/* EXACT QUOTEX WIN/RESULT BADGE ON CHART (Screenshot Exact) */
.chart-result-badge {
  position: absolute;
  right: 210px;
  top: 48%;
  z-index: 40;
  border-radius: 6px;
  padding: 6px 12px;
  min-width: 116px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  animation: badgePopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.chart-result-badge.win {
  background: #0FAF59;
  box-shadow: 0 4px 18px rgba(0, 200, 83, 0.45);
}
.chart-result-badge.loss {
  background: #FF6251;
  box-shadow: 0 4px 18px rgba(255, 59, 83, 0.45);
}
.chart-result-badge.tie {
  background: #283347;
}
.result-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.result-badge-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.3px;
}
.result-badge-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.85;
}
.result-badge-close:hover {
  opacity: 1;
}
.result-badge-amount {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* EXACT QUOTEX BOTTOM-LEFT WIN/DEAL OUTCOME CARD (Screenshot Exact) */
.bottom-result-card {
  position: absolute;
  bottom: 44px;
  left: 160px;
  z-index: 38;
  min-width: 180px;
  background: #151b27;
  border: 1px solid #232c3f;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: badgePopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.result-card-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8b9ab4;
}
.card-flag {
  font-size: 12px;
}
.card-sym {
  color: #ffffff;
  font-weight: 700;
}
.card-dot {
  color: #64748b;
}
.card-dur {
  color: #8b9ab4;
  font-variant-numeric: tabular-nums;
}
.result-card-close {
  background: transparent;
  border: none;
  color: #7b879d;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
}
.result-card-close:hover {
  color: #fff;
}
.result-card-amount {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.result-card-amount.win {
  color: #0FAF59;
}
.result-card-amount.loss {
  color: #FF6251;
}
.result-card-amount.tie {
  color: #8b9ab4;
}

.chart-result-badge.fade-out,
.bottom-result-card.fade-out {
  opacity: 0;
  transform: scale(0.92);
}

@keyframes badgePopIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FLOATING PENDING TRADE POPUP (Exact Quotex Screenshot 2 & 3) */
.pending-trade-popup {
  position: absolute;
  top: 30px;
  right: 280px;
  width: 250px;
  background: #141722;
  border: 1px solid #222a3d;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  padding: 14px;
  z-index: 45;
  display: flex;
  flex-direction: column;
}
.pending-popup-tabs {
  display: flex;
  background: #10141e;
  border-radius: 6px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 12px;
}
.pending-tab {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  background: transparent;
  color: #7b879d;
  cursor: pointer;
  transition: all 0.15s;
}
.pending-tab.active {
  background: #026FD3;
  color: #fff;
}
.pending-field-block {
  margin-bottom: 10px;
}
.pending-field-block label {
  font-size: 10px;
  font-weight: 700;
  color: #6d7b93;
  margin-bottom: 4px;
  display: block;
}
.pending-val-input {
  width: 100%;
  background: #0b0e17;
  border: 1px solid #222a3d;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
  outline: none;
  box-sizing: border-box;
}
.pending-hint-text {
  font-size: 10px;
  color: #6d7b93;
  margin-top: 4px;
}
.pending-period-box {
  width: 100%;
  background: #0b0e17;
  border: 1px solid #222a3d;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  box-sizing: border-box;
}
.pending-invest-control {
  display: flex;
  align-items: center;
  background: #0b0e17;
  border: 1px solid #222a3d;
  border-radius: 6px;
  padding: 4px 8px;
  gap: 6px;
}
.btn-step-sm {
  background: transparent;
  border: none;
  color: #8493a8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-step-sm:hover { color: #fff; }
.pending-invest-num {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.pending-switch-link {
  background: transparent;
  border: none;
  color: #026FD3;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.pending-switch-link:hover { text-decoration: underline; }
.pending-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.btn-pending-call {
  width: 100%;
  height: 40px;
  background: #0FAF59;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-pending-call:hover { filter: brightness(1.1); }
.btn-pending-put {
  width: 100%;
  height: 40px;
  background: #FF6251;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-pending-put:hover { filter: brightness(1.1); }
.arrow-round {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.pending-footer-link {
  text-align: center;
  margin-top: 12px;
}
.pending-footer-link a {
  color: #026FD3;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.pending-footer-link a:hover {
  text-decoration: underline;
}

/* Round Arrow Badge in Big Action Buttons */
.trade-btn-circle-arrow {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

/* Sidebar Join Us & Help Green Pill */
.sidebar-icon-join {
  text-decoration: none;
  color: #7b879d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
}
.join-icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.join-text {
  font-size: 7px;
  font-weight: 800;
  color: #7b879d;
  white-space: nowrap;
}
.sidebar-btn-help-green {
  background: #0FAF59;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 44px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  transition: filter 0.15s;
}
.sidebar-btn-help-green:hover {
  filter: brightness(1.1);
}

.chart-demo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 110px;
  font-weight: 900;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
  color: transparent;
  letter-spacing: 18px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.trade-chart-canvas {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 2;
}

/* Floating Bottom-Left Toolbar (Pencil, Timeframe, Chart Type) */
.chart-floating-tools-left {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-tool-pop-wrap {
  position: relative;
}
.chart-float-btn {
  background: #181d2a;
  border: 1px solid #252e42;
  color: #fff;
  border-radius: 6px;
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}
.chart-float-btn:hover {
  background: #222a3d;
  border-color: #3b4866;
}
.chart-float-btn.text-bold {
  font-weight: 800;
}

/* Timeframe Pop Menu */
.timeframe-pop-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #151a24;
  border: 1px solid #263044;
  border-radius: 6px;
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.timeframe-pop-menu.open {
  display: flex;
}
.tf-opt-btn {
  background: transparent;
  border: none;
  color: #7b879d;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.tf-opt-btn:hover {
  background: #1e2638;
  color: #fff;
}
.tf-opt-btn.active {
  background: rgba(37, 116, 255, 0.2);
  color: #026FD3;
}

/* Floating Zoom (Bottom Center) */
.chart-floating-zoom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 4px;
}
.zoom-btn {
  background: #181d2a;
  border: 1px solid #252e42;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.zoom-btn:hover {
  background: #222a3d;
}

/* Trade Marker Lines Overlay */
.trade-marker-lines-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 3;
}
.trade-guide-line {
  position: absolute;
  top: 20px;
  bottom: 30px;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-start;
  padding-left: 4px;
}
.trade-guide-line span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  white-space: nowrap;
}
.line-begin { left: 55%; }
.line-end { left: 60%; }

/* =========================================
   4. RIGHT TRADING PANEL (EXACT QUOTEX)
   ========================================= */
.trade-panel {
  width: 280px;
  background: #2b3040;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.asset-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.panel-asset-row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.panel-asset-plus {
  color: #0074e4;
  font-size: 16px;
  font-weight: 800;
}
.panel-asset-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.panel-payout-val {
  font-size: 13px;
  font-weight: 800;
  color: #ff9800;
}

.pending-trade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 8px;
  font-size: 11px;
  color: #8593a8;
  font-weight: 700;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #141720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: .15s;
  border-radius: 18px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: #8593a8;
  transition: .15s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #0074e4;
  border-color: #0074e4;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
  background-color: #ffffff;
}

.panel-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px;
}

.control-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #1c1f2d;
  padding: 4px 8px 6px;
}
.fieldset-legend {
  font-size: 10px;
  font-weight: 700;
  color: #78839b;
  padding: 0 4px;
  margin-left: 6px;
}

.control-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-step {
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  color: #8593a8;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-step:hover { color: #fff; }

.control-val-display {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.switch-time-btn {
  background: transparent;
  border: none;
  color: #0074e4;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
}
.switch-time-btn:hover { text-decoration: underline; }

.control-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-input {
  width: 70px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  outline: none;
}
.currency-suffix {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-left: 3px;
}

/* Payout & Investment Summary Box (Quotex) */
.payout-summary-box {
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payout-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.payout-sum-row.invest-row {
  color: #64748b;
  font-size: 10px;
}
.payout-label {
  color: #78839b;
  font-weight: 600;
}
.payout-dots {
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 1px;
  overflow: hidden;
  margin: 0 4px;
  flex: 1;
}
.payout-val {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.payout-invest-val {
  color: #8b9ab4;
  font-weight: 700;
}

.otc-deal-notice {
  font-size: 9px;
  color: #55657e;
  padding: 0 14px 10px;
  text-align: center;
  line-height: 1.3;
}

/* Big Action Buttons */
.trade-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 12px;
}
.btn-trade {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  transition: filter 0.15s;
}
.btn-trade:hover { filter: brightness(1.1); }
.btn-call { background: #0faf59; }
.btn-put  { background: #e85b4e; }
.btn-trade-title {
  font-size: 17px;
  font-weight: 800;
}
.trade-btn-circle-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

/* Trades Section */
.panel-trades {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 180px;
  position: relative;
}
.trades-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
}
.trades-nav-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.trades-count-pill {
  color: #78839b;
  font-size: 11px;
}
.trades-nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-trades-icon {
  background: transparent;
  border: none;
  color: #78839b;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}
.btn-trades-icon:hover { color: #fff; }

.trades-date-banner {
  padding: 4px 14px;
  background: #141720;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
  font-weight: 800;
  color: #5d6a80;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trades-list {
  flex: 1;
  overflow-y: auto;
}
.empty-trades {
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: #5d6a80;
}
.empty-trades-quotex-box {
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.empty-box-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #141720;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d6a80;
}
.empty-trades-quotex-box p {
  font-size: 11px;
  line-height: 1.5;
  color: #78839b;
  margin: 0;
  max-width: 210px;
}
.panel-bottom-expander {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  color: #5d6a80;
  margin-top: auto;
}

/* Active Deals Card (Quotex with Sell Now button) */
.active-deal-card {
  padding: 10px 14px;
  border-bottom: 1px solid #1b212f;
  background: #141824;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.active-deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deal-dir-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 12px;
}
.deal-dir-badge.up { color: #0FAF59; }
.deal-dir-badge.down { color: #FF6251; }
.deal-dir-arrow { font-size: 10px; }
.deal-symbol { color: #fff; font-weight: 800; }
.deal-time {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.active-deal-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}
.deal-invest {
  color: #fff;
}
.deal-payout {
  font-size: 13px;
  font-weight: 800;
}
.deal-payout.profit {
  color: #0FAF59;
}
.deal-payout.loss {
  color: #7b879d;
}
.btn-sell-now {
  background: #026FD3;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  width: 100%;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.btn-sell-now:hover {
  background: #1a60dd;
}

.trade-item-detail {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}
.trade-dir-up { color: var(--t-green); font-weight: 700; }
.trade-dir-down { color: var(--t-red); font-weight: 700; }
.trade-result-win { color: var(--t-green); font-weight: 800; }
.trade-result-loss { color: var(--t-red); font-weight: 800; }

/* Quotex Exact Deals Accordion Card (DOM Extraction) */
.vEqGz {
  border-bottom: 1px solid #1b212f;
  background: #141824;
}
.Woibv {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.Woibv:hover {
  background: #181d2b;
}
.ib6yR {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.RxOUE {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.xEiET {
  font-size: 11px;
  color: #6d7b93;
  font-variant-numeric: tabular-nums;
}
.Fqtla {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  color: #fff;
}
.lCITV {
  font-size: 11px;
  font-weight: 700;
}
.Fqtla.PITOa, .lCITV.C9c0x {
  color: #0FAF59;
}
.Fqtla.C9c0x, .lCITV.PITOa {
  color: #64748b;
}
.ow8Ej {
  list-style: none;
  padding: 8px 0 0 0;
  margin: 8px 0 0 0;
  border-top: 1px dashed #222a3d;
  display: none;
  flex-direction: column;
  gap: 5px;
}
.Woibv.expanded .ow8Ej {
  display: flex;
}
.V3Wz7 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.AUfBG {
  margin: 0;
  color: #5e6c84;
}
.w3o70 {
  color: #c5d0e3;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tIBbz {
  background: rgba(0, 200, 83, 0.1);
  color: #0FAF59;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Sidebar Popover (Exact Quotex DOM) */
.sidebar-popup-menu {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 220px;
  background: #141824;
  border: 1px solid #222a3d;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 250;
  padding: 12px;
}
.ITF_4 {
  border-bottom: 1px solid #1f2536;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.xP2MH {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  word-break: break-all;
}
.dU72c {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.BzTDr {
  color: #8c9ba5;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.BzTDr:hover, .BzTDr.active {
  color: #fff;
  background: #1f2637;
}
._P4DH {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
._P4DH.yfNFe {
  border-top: 1px solid #1f2536;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.X0awi {
  background: #0FAF59;
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.IXa0p {
  color: #026FD3;
  font-size: 12px;
  text-decoration: none;
}
.ibNIZ {
  color: #FF6251;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}


/* =========================================
   4. ASSET SELECTOR DRAWER & MODALS
   ========================================= */
.asset-panel-drawer {
  position: absolute;
  top: 52px;
  left: 58px;
  width: 330px;
  height: calc(100vh - 52px);
  background: #141926;
  border-right: 1px solid var(--t-border);
  z-index: 150;
  display: none;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6);
}
.asset-panel-drawer.open {
  display: flex;
  animation: slideInLeft 0.2s ease-out;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-15px); }
  to   { opacity: 1; transform: translateX(0); }
}

.drawer-header {
  padding: 12px;
  border-bottom: 1px solid var(--t-border);
}
.drawer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.drawer-close {
  background: transparent;
  color: var(--t-text-muted);
  font-size: 14px;
}
.asset-cat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.cat-btn {
  flex: 1;
  background: var(--t-bg-surface);
  border: 1px solid var(--t-border);
  color: var(--t-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px;
  border-radius: 4px;
}
.cat-btn.active {
  background: var(--t-blue);
  color: #fff;
  border-color: var(--t-blue);
}

.asset-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--t-bg-surface);
  border: 1px solid var(--t-border);
  border-radius: 6px;
  padding: 5px 8px;
}
.asset-search-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.asset-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.asset-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.asset-list-item:hover { background: var(--t-bg-surface); }
.asset-list-item.selected {
  background: rgba(41, 121, 255, 0.15);
  border: 1px solid rgba(41, 121, 255, 0.3);
}
.item-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.item-flag { font-size: 16px; flex-shrink: 0; }
.item-names { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.item-symbol { font-size: 12px; font-weight: 700; }
.item-fullname { font-size: 10px; color: var(--t-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-right { flex-shrink: 0; padding-left: 8px; }
.item-payout { font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Side Modals (Signals) */
.side-modal-drawer {
  position: absolute;
  top: 52px;
  left: 58px;
  width: 300px;
  height: calc(100vh - 52px);
  background: #141926;
  border-right: 1px solid var(--t-border);
  z-index: 150;
  display: none;
  flex-direction: column;
}
.side-modal-drawer.open {
  display: flex;
}
.side-drawer-header {
  padding: 14px;
  border-bottom: 1px solid var(--t-border);
}
.drawer-title-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13px;
}
.signals-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.signal-card {
  background: var(--t-bg-surface);
  border: 1px solid var(--t-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sig-hdr { display: flex; justify-content: space-between; font-size: 12px; }
.sig-conf { font-weight: 700; }
.sig-body { display: flex; justify-content: space-between; align-items: center; }
.sig-badge { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.sig-badge.up { background: rgba(0, 200, 83, 0.15); color: var(--t-green); }
.sig-badge.down { background: rgba(255, 59, 83, 0.15); color: var(--t-red); }
.sig-tf { font-size: 11px; color: var(--t-text-muted); }
.btn-copy-sig {
  background: var(--t-blue);
  color: #fff;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

/* Center Modal (Leaderboard & Settings) */
.center-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.center-modal.open {
  display: flex;
}
.modal-card {
  background: #161c2b;
  border: 1px solid var(--t-border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--t-border);
}
.modal-body {
  padding: 16px 20px;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-table th, .leaderboard-table td {
  padding: 10px 8px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid var(--t-border);
}
.settings-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Toast */
.trade-toast {
  position: fixed;
  top: 64px;
  right: 280px;
  background: #181d2a;
  border: 1px solid var(--t-border);
  border-radius: 8px;
  padding: 10px 16px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease-out;
}
.trade-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.trade-toast.win { border-color: rgba(0, 200, 83, 0.5); background: rgba(14, 28, 22, 0.95); }
.trade-toast.loss { border-color: rgba(255, 59, 83, 0.5); background: rgba(32, 16, 20, 0.95); }
.toast-title { font-size: 12px; font-weight: 800; margin-bottom: 2px; }
.toast-title.win { color: var(--t-green); }
.toast-title.loss { color: var(--t-red); }
.toast-body { font-size: 11px; color: #cbd5e1; }

/* Indicators Menu */
.indicators-menu-wrap {
  position: relative;
}
.btn-indicators-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--t-bg-card);
  border: 1px solid var(--t-border);
  color: var(--t-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-indicators-toggle:hover, .btn-indicators-toggle.active {
  background: var(--t-bg-hover);
  color: #fff;
  border-color: var(--t-blue);
}
.indicators-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 0;
  margin-bottom: 4px;
  width: 220px;
  background: #151a24;
  border: 1px solid var(--t-border);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 100;
}
.indicators-dropdown.open {
  display: block;
}
.indicators-dropdown-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t-text-muted);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--t-border);
}
.indicator-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.indicator-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.indicator-option input[type="checkbox"] {
  accent-color: var(--t-blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Quick Preset Chips */
.quick-preset-chips {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.preset-chip, .invest-chip {
  flex: 1;
  background: #182030;
  border: 1px solid var(--t-border);
  border-radius: 4px;
  color: var(--t-text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 0;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.preset-chip:hover, .invest-chip:hover {
  background: var(--t-bg-hover);
  color: #fff;
}
.preset-chip.active, .invest-chip.active {
  background: rgba(0, 119, 255, 0.2);
  border-color: var(--t-blue);
  color: #fff;
}

/* Controls Wrapper */
.panel-controls-wrap {
  display: flex;
  flex-direction: column;
}

/* Responsive adjustments */
/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL QUOTEX MOBILE & TABLET FIDELITY)
   ========================================================================== */

@media (max-width: 1080px) {
  .header-bonus-badge { display: none; }
  .brand-sub { display: none; }
  .pair-info-link span { display: none; }
  .trade-panel { width: 240px; }
  .payout-dots { letter-spacing: 0; }
}

@media (max-width: 860px) {
  html, body.trade-body {
    overflow: hidden !important;
  }

  .trade-layout {
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100vw !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* 1. Main Center Chart Area */
  .trade-main {
    order: 1;
    flex: 1;
    min-height: 0 !important;
    height: auto !important;
    width: 100vw !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .trade-header {
    height: 48px;
    padding: 0 10px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-left, .header-center, .btn-hamburger, .btn-withdrawal-header {
    display: none !important;
  }

  .header-right {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .account-switcher-wrap {
    order: 1;
  }

  .account-switcher {
    padding: 5px 10px !important;
    background: #1f2533 !important;
    border: 1px solid #2d384b !important;
    border-radius: 20px !important;
  }

  .account-info {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .acc-top-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .account-type {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ff9800 !important;
  }

  .account-balance {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #fff !important;
  }

  .acc-chevron {
    font-size: 9px !important;
    color: #ff9800 !important;
  }

  .btn-header-bell {
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #cbd5e1;
    position: relative;
  }

  .bell-count-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #FF6251;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
  }

  .btn-deposit-header {
    order: 3;
    display: inline-flex !important;
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #0FAF59 !important;
    border-radius: 6px !important;
  }

  .chart-area {
    flex: 1;
    min-height: 180px !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
  }
  .trade-chart-canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .chart-top-left-stack, .sidebar-sentiment-strip {
    display: none !important;
  }

  /* Mobile floating stack top-left on chart */
  .mobile-chart-float-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 50 !important;
  }
  .btn-mobile-chart-menu {
    width: 34px !important;
    height: 34px !important;
    background: #1e2432 !important;
    border: 1px solid #2d374a !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }
  .btn-mobile-briefcase {
    height: 32px !important;
    padding: 0 10px !important;
    background: #026FD3 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(2, 111, 211, 0.4) !important;
  }
  .mobile-briefcase-count {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #fff !important;
  }

  /* 2. Trade Controls Panel (Docked Below Chart) */
  .trade-panel {
    order: 2;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-left: none !important;
    border-top: 1px solid #1f2536 !important;
    padding: 8px 10px 56px 10px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    background: #141722;
  }

  /* Row 1: Asset selector pill + Pending Trade toggle */
  .asset-summary-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 6px 0 !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .panel-asset-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #1e2432 !important;
    border: 1px solid #2d374a !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    cursor: pointer !important;
  }
  .panel-flag-icon { font-size: 14px !important; }
  .panel-asset-name { font-size: 12px !important; font-weight: 700 !important; color: #fff !important; }
  .panel-payout-val { font-size: 12px !important; font-weight: 800 !important; color: #00c853 !important; margin-left: 2px !important; }
  .panel-asset-chevron { font-size: 9px !important; color: #8b9ab4 !important; }
  .pending-trade-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
  }
  .pending-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #2574ff !important;
    letter-spacing: 0.3px !important;
  }

  .otc-deal-notice { display: none !important; }

  /* Dual columns for Time and Investment (Equal 50% split) */
  .panel-controls-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .control-fieldset {
    position: relative !important;
    padding: 4px 6px 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .fieldset-legend {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #8b9ab4 !important;
    padding: 0 4px !important;
    margin-left: 4px !important;
  }
  .switch-time-btn {
    position: absolute !important;
    top: 3px !important;
    right: 6px !important;
    font-size: 8px !important;
    padding: 0 2px !important;
    letter-spacing: 0.2px !important;
    z-index: 2 !important;
  }
  .control-input-group {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }
  .btn-step {
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .control-val-display {
    flex: 1 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #fff !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }
  .control-input-wrap {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
  }
  .control-input,
  .edit-demo-box input,
  input, select, textarea {
    font-size: 16px !important;
  }
  .control-input {
    width: 50px !important;
    text-align: right !important;
  }
  .currency-suffix {
    font-size: 14px !important;
    margin-left: 2px !important;
  }

  /* Payout & Investment Rows (Quotex Mobile Screenshot 1 Exact) */
  .payout-summary-box {
    padding: 6px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .payout-sum-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .payout-dots {
    display: block !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    color: #313c52 !important;
    padding: 0 4px !important;
    letter-spacing: 2px !important;
  }

  /* Side-by-side Up & Down Trade Buttons (Strict 50-50 width) */
  .trade-buttons-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 0 0 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-trade {
    height: 48px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-trade-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .trade-btn-circle-arrow {
    width: 26px !important;
    height: 26px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
  }

  /* Trades List in mobile is inside bottom drawer */
  .panel-trades {
    display: none !important;
  }

  /* 3. Bottom Mobile App Navigation (Exact Quotex) */
  .trade-sidebar {
    order: 3;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 50px !important;
    flex-direction: row !important;
    border-right: none !important;
    border-top: 1px solid #1f2536 !important;
    background: #141722 !important;
    padding: 0 !important;
    z-index: 300 !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .sidebar-top {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-around !important;
  }
  .sidebar-nav {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-around !important;
    gap: 0 !important;
  }
  .sidebar-btn {
    flex: 1 !important;
    max-width: 120px !important;
    height: 48px !important;
    padding: 2px 0 !important;
    border-radius: 4px !important;
    gap: 2px !important;
  }
  .sidebar-btn .btn-lbl {
    font-size: 8px !important;
  }
  .sidebar-btn-tournaments {
    display: flex !important;
  }
  .sidebar-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-nav-badge {
    position: absolute;
    top: -3px;
    right: -7px;
    background: #026FD3;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    border: 1px solid #141722;
  }
  .trade-sub-badge { display: none; }
  .sidebar-bottom { display: none !important; }

  /* Responsive Signals and More Drawers */
  .side-modal-drawer {
    top: 46px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 46px - 50px) !important;
    z-index: 350 !important;
  }

  .qx-more-drawer {
    position: fixed !important;
    bottom: 50px !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: 75vh !important;
    height: auto !important;
    border-right: none !important;
    border-top: 1px solid #222a3d !important;
    border-radius: 16px 16px 0 0 !important;
    z-index: 400 !important;
    overflow-y: auto !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
  }

  /* Responsive Account Switcher Popover */
  .qx-account-popover {
    position: fixed !important;
    top: 50px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    flex-direction: column !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95) !important;
    border: 1px solid #283347 !important;
  }
  .acc-popover-main {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .standard-profit-pill {
    padding: 6px 10px !important;
  }
  .acc-curr-row {
    padding-bottom: 6px !important;
  }
  .acc-types-group {
    gap: 6px !important;
  }
  .acc-item-box {
    padding: 6px 8px !important;
  }
  .acc-balance-val, .acc-limit-note, .btn-set-limit {
    margin-left: 12px !important;
  }
  .acc-popover-nav {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #1a202d !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    background: #0f131d !important;
  }
  .acc-popover-nav li {
    list-style: none !important;
  }
  .acc-popover-nav li a, .acc-popover-nav li button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    text-align: center !important;
    border: none !important;
    width: 100% !important;
  }
  .acc-popover-nav li a:hover, .acc-popover-nav li button:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  /* Floating chart tools on mobile */
  .chart-floating-tools-left {
    bottom: 8px;
    left: 8px;
    gap: 4px;
  }
  .chart-float-btn {
    width: 28px;
    height: 28px;
  }
  .chart-floating-zoom { display: none; }
  .trade-marker-lines-overlay { display: none; }

  /* Responsive Pending Trade & Indicators Dropdowns */
  .pending-trade-popup {
    position: fixed !important;
    top: 52px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 550 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9) !important;
  }

  .indicators-dropdown {
    bottom: calc(100% + 6px) !important;
    top: auto !important;
    left: 0 !important;
    width: 210px !important;
    max-width: calc(100vw - 20px) !important;
    z-index: 500 !important;
  }

  /* Asset Panel Drawer - Full width on mobile */
  .asset-panel-drawer {
    position: fixed !important;
    top: 46px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 46px - 50px) !important;
    z-index: 450 !important;
    box-shadow: none !important;
    border-right: none !important;
    box-sizing: border-box !important;
  }
  .asset-cat-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  .asset-cat-tabs::-webkit-scrollbar { display: none !important; }
  .cat-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
  }
  .drawer-header {
    padding: 10px 12px !important;
  }
  .asset-list-item {
    padding: 10px 12px !important;
  }
  .item-right {
    flex-shrink: 0 !important;
    padding-left: 8px !important;
  }
  .item-payout {
    white-space: nowrap !important;
  }
  .side-modal-drawer {
    position: fixed !important;
    top: 46px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 46px - 50px) !important;
    z-index: 450 !important;
    border-right: none !important;
  }
}

@media (max-width: 480px) {
  .btn-hamburger { display: none !important; }
  .brand-text { display: none !important; }
  .btn-withdrawal-header { display: none !important; }

  .account-switcher {
    padding: 4px 8px !important;
  }
  .account-type {
    display: inline-block !important;
    font-size: 11px !important;
  }
  .account-balance {
    font-size: 12px !important;
  }
  .btn-deposit-header {
    padding: 0 12px !important;
    font-size: 12px !important;
    height: 32px !important;
  }
  .trade-header {
    padding: 0 8px !important;
  }
}

/* Mobile Trades Drawer Bottom Sheet (Screenshots 2 & 3) */
.mobile-trades-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.mobile-drawer-sheet {
  position: relative;
  width: 100%;
  max-height: 75vh;
  background: #141724;
  border-top: 1px solid #232c3f;
  border-radius: 16px 16px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.85);
  animation: slideUpMobDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpMobDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mobile-drawer-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2738;
}
.mobile-drawer-tabs {
  display: flex;
  gap: 8px;
}
.mobile-d-tab {
  background: transparent;
  border: none;
  color: #8b9ab4;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.mobile-d-tab.active {
  background: #1f2636;
  color: #fff;
}
.mob-d-badge {
  background: #026FD3;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: #8b9ab4;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 28px;
  max-height: calc(75vh - 58px);
}
.mobile-deal-card {
  background: #1b212f;
  border: 1px solid #283347;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mob-deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mob-deal-symbol {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mob-deal-timer {
  font-size: 12px;
  font-weight: 700;
  color: #8b9ab4;
  font-variant-numeric: tabular-nums;
}
.mob-deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mob-deal-invest {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mob-deal-invest.up { color: #00c853; }
.mob-deal-invest.down { color: #ff3b53; }
.mob-deal-payout {
  font-size: 14px;
  font-weight: 800;
  color: #8b9ab4;
}
.mob-deal-payout.profit { color: #00c853; }
.mob-deal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-mob-double {
  height: 36px;
  background: #252d3f;
  border: 1px solid #364259;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-mob-double:hover { background: #2d374c; color: #fff; }
.btn-mob-sell {
  height: 36px;
  background: #026FD3;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.btn-mob-sell:hover { background: #1a60e0; }


