/* RoboTrade Pure Obsidian Deep Black & Frosted Glassmorphism Design System */
:root {
  --bg-primary: #030508;
  --bg-secondary: rgba(8, 11, 18, 0.78);
  --bg-card: rgba(11, 15, 25, 0.72);
  --bg-card-hover: rgba(18, 25, 40, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 210, 255, 0.35);

  --glass-bg: rgba(9, 13, 22, 0.72);
  --glass-blur: blur(24px) saturate(190%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --color-bullish: #00e676;
  --color-bullish-glow: rgba(0, 230, 118, 0.28);
  --color-bearish: #ff1744;
  --color-bearish-glow: rgba(255, 23, 68, 0.28);
  
  --color-accent: #00d2ff;
  --color-ai: #a855f7;
  --color-warning: #ffab00;

  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(0, 210, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #030508 0%, #020306 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.3);
}

/* Header & Top Bar - Pure Frosted Black Glass (Compact Single-Line 52px Header) */
.top-nav {
  position: relative;
  z-index: 999999;
  height: 52px;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: visible !important;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.logo-badge {
  background: linear-gradient(135deg, #00d2ff, #7c4dff);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.4);
}

.brand-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.brand-title span {
  color: var(--color-accent);
}

/* Control Pills */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

/* Top Main Navigation Menu Bar (منوهای ناوبری بالای صفحه) */
.top-main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(13, 18, 30, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.16);
  border-radius: 9999px;
  padding: 2px 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  position: relative;
  font-family: inherit;
}

.nav-menu-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-menu-item.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.22), rgba(124, 77, 255, 0.22));
  border-color: rgba(0, 210, 255, 0.45);
  color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
  font-weight: 700;
}

.nav-menu-item .nav-item-icon {
  font-size: 11.5px;
  line-height: 1;
}

.nav-menu-item .nav-item-badge {
  font-size: 8px;
  background: #a855f7;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Top Market Controls (Symbol & Timeframe Selectors) */
.top-market-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.symbol-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 8px;
  padding: 0 6px;
  height: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.symbol-selector:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.symbol-selector .selector-icon {
  font-size: 11px;
}

.symbol-selector select.clean-select {
  background: transparent;
  color: #00e5ff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11.5px;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
}

.symbol-selector select.clean-select option {
  background: #0d121e;
  color: var(--text-main);
}

.timeframe-selector {
  display: flex;
  align-items: center;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  height: 28px;
  padding: 1px;
}

.timeframe-selector .tf-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  height: 24px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.timeframe-selector .tf-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.timeframe-selector .tf-btn.active {
  background: var(--color-accent);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* Right Section Container */
.nav-right-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: visible !important;
  z-index: 1000000;
}

/* Account State Pill */
.account-pill {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 10px;
  gap: 10px;
  font-size: 11px;
}

.account-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.account-stat .stat-icon {
  font-size: 12px;
  line-height: 1;
}

.account-stat .stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-main);
}

.stat-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-val.positive {
  color: var(--color-bullish);
}

.stat-val.negative {
  color: var(--color-bearish);
}

/* ========================================================================= */
/* Bot Runtime Live Timer Pill & History Popover                             */
/* ========================================================================= */
.bot-timer-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible !important;
  z-index: 1000001;
}

.bot-timer-pill {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  padding: 3px 9px;
  gap: 7px;
  font-size: 11px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  height: 32px;
  box-sizing: border-box;
}

.bot-timer-pill:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bot-timer-pill.paused {
  border-color: rgba(255, 171, 0, 0.35);
  background: rgba(18, 14, 8, 0.85);
}

.bot-timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 7px #00e676;
  flex-shrink: 0;
  animation: bot-timer-pulse 1.8s infinite ease-in-out;
}

.bot-timer-pill.paused .bot-timer-dot {
  background: #ffab00;
  box-shadow: 0 0 6px #ffab00;
  animation: none;
}

@keyframes bot-timer-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.bot-timer-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bot-timer-icon {
  font-size: 11px;
  line-height: 1;
}

.bot-timer-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.bot-timer-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-main);
}

.bot-timer-val.duration {
  color: #00e5ff;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.25);
  font-size: 12px;
}

.bot-timer-pill.paused .bot-timer-val.duration {
  color: #ffab00;
  text-shadow: none;
}

.bot-timer-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

/* Small History Trigger Button next to timer */
.btn-timer-history {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 2px 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  font-size: 10px;
  line-height: 1;
  outline: none;
  height: 22px;
}

.btn-timer-history:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
  color: #00e5ff;
  transform: scale(1.04);
}

.btn-timer-history .history-icon {
  font-size: 10px;
}

.history-badge-count {
  background: rgba(0, 229, 255, 0.25);
  color: #00e5ff;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 3px;
  font-family: var(--font-mono);
  line-height: 12px;
}

/* Floating Glassmorphic Popover - Guaranteed Viewport-Fixed Positioning */
.timer-history-popover {
  position: fixed !important;
  top: 54px !important;
  right: 170px !important;
  min-width: 330px !important;
  max-width: 380px !important;
  max-height: calc(100vh - 65px) !important;
  overflow-y: auto !important;
  background: rgba(8, 12, 20, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.15) !important;
  padding: 14px;
  z-index: 2147483647 !important;
  animation: popoverDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  text-align: right;
}

body.lang-en .timer-history-popover {
  direction: ltr;
  text-align: left;
}

@keyframes popoverDrop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.history-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.popover-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.popover-icon {
  font-size: 14px;
}

.btn-close-popover {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}

.btn-close-popover:hover {
  color: #ff5252;
}

/* Active Live Card inside popover */
.history-active-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 229, 255, 0.04) 100%);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.history-active-card.paused {
  background: rgba(255, 171, 0, 0.08);
  border-color: rgba(255, 171, 0, 0.3);
}

.active-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.active-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.history-active-card.paused .active-badge-tag {
  background: rgba(255, 171, 0, 0.18);
  color: #ffab00;
  border-color: rgba(255, 171, 0, 0.35);
}

.active-badge-tag .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: bot-timer-pulse 1.5s infinite;
}

.active-start-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.active-elapsed-large {
  font-size: 20px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.history-active-card.paused .active-elapsed-large {
  color: #ffab00;
  text-shadow: none;
}

/* Cumulative runtime strip */
.history-cumulative-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.history-cumulative-strip strong {
  color: var(--text-main);
  font-size: 12px;
}

/* Past Sessions List */
.history-sessions-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sessions-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 2px;
}

.btn-clear-history-sm {
  background: transparent;
  border: none;
  color: #ff5252;
  font-size: 10px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-clear-history-sm:hover {
  background: rgba(255, 82, 82, 0.15);
}

.sessions-scroll-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.sessions-scroll-list::-webkit-scrollbar {
  width: 4px;
}

.sessions-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.session-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10.5px;
  transition: background 0.15s;
}

.session-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.session-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-num-title {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-times-sub {
  font-size: 9.5px;
  color: var(--text-muted);
}

.session-duration-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  padding: 3px 7px;
}

.empty-sessions-hint {
  text-align: center;
  padding: 14px 8px;
  color: var(--text-muted);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.badge-mode {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge-mode.paper {
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-bullish);
  padding: 2px 6px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 12px;
  flex-shrink: 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-bullish);
  box-shadow: 0 0 6px var(--color-bullish);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Trading Terminal Wrapper - Locked Viewport Flex Container */
#main-trading-terminal {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* Main Workspace Grid - Fully Locked 100% Viewport Row System */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 100%;
  flex: 1 1 0;
  min-height: 0;
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 100vw;
}

/* Sidebar Collapse Toggle Handle (فلش جمع‌کننده سایدبار) */
.btn-sidebar-drawer-toggle {
  position: absolute;
  top: 50%;
  right: 340px;
  transform: translateY(-50%);
  width: 14px;
  height: 38px;
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(14px);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.6);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.2s ease,
              background 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
  padding: 0;
}

.btn-sidebar-drawer-toggle:hover {
  background: rgba(16, 22, 38, 0.98);
  border-color: rgba(0, 210, 255, 0.5);
  color: #00d2ff;
  width: 18px;
  box-shadow: -4px 0 20px rgba(0, 210, 255, 0.4);
}

.sidebar-arrow-icon svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: currentColor;
}

/* When the sidebar is collapsed completely */
.workspace-grid.sidebar-hidden {
  grid-template-columns: 1fr 0px;
}

.workspace-grid.sidebar-hidden .sidebar-panel {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  padding: 0;
  overflow: hidden;
  border-left: none;
}

.workspace-grid.sidebar-hidden .btn-sidebar-drawer-toggle {
  right: 0px;
  border-radius: 8px 0 0 8px;
}

.workspace-grid.sidebar-hidden .sidebar-arrow-icon svg {
  transform: rotate(180deg);
}

/* Chart Container Left - Completely Fixed Viewport Bounds */
.chart-pane-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* Chart Header Overlays & OHLC */
.chart-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  z-index: 10;
}

/* Unified Terminal Brand Badge & AI HUD Toggle */
.chart-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.terminal-brand-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.btn-toggle-hud-top {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-hud-top:hover, .btn-toggle-hud-top.active {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* Live Dynamic Targets Tactical Deck Directly on Chart Top Bar */
.chart-targets-deck {
  display: flex;
  align-items: center;
  gap: 8px;
}

.target-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(13, 17, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.target-badge-pill .pill-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.9;
}

.target-badge-pill .pill-value {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ENTRY Pill (Cyan / Bright White) */
.target-badge-pill.entry {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.12);
}
.target-badge-pill.entry .pill-label {
  color: #38bdf8;
}
.target-badge-pill.entry .pill-value {
  color: #ffffff;
}

/* SL (Stop Loss) Pill (Crimson Red) */
.target-badge-pill.sl {
  background: rgba(255, 23, 68, 0.08);
  border-color: rgba(255, 23, 68, 0.35);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.12);
}
.target-badge-pill.sl .pill-label {
  color: #ff5252;
}
.target-badge-pill.sl .pill-value {
  color: #ff5252;
}

/* TP1 (Target 1) Pill (Emerald Green) */
.target-badge-pill.tp1 {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.12);
}
.target-badge-pill.tp1 .pill-label {
  color: #00e676;
}
.target-badge-pill.tp1 .pill-value {
  color: #00e676;
}

/* TP2 (Target 2) Pill (Teal / Cyan) */
.target-badge-pill.tp2 {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.12);
}
.target-badge-pill.tp2 .pill-label {
  color: #34d399;
}
.target-badge-pill.tp2 .pill-value {
  color: #34d399;
}

.tradingview-widget-container {
  width: 100%;
  height: 100%;
}

.tradingview-widget-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}



/* Glassmorphic AI Quantum HUD on Chart */
.ai-hud-card {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 280px;
  background: rgba(13, 18, 28, 0.92);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 210, 255, 0.12);
  backdrop-filter: blur(16px);
  z-index: 25;
  transition: all 0.2s ease;
  overflow: hidden;
  pointer-events: auto;
}

.ai-hud-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 210, 255, 0.2);
}

.ai-hud-card .hud-header,
.ai-hud-card button,
.ai-hud-card a,
.ai-hud-card input {
  pointer-events: auto; /* Buttons and controls remain interactive */
}

.ai-hud-card.minimized {
  width: auto;
  border-color: rgba(0, 210, 255, 0.2);
}

.ai-hud-card.minimized .hud-body {
  display: none;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.hud-status-dot.pulse {
  animation: hudPulse 1.8s infinite;
}

@keyframes hudPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.hud-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
  flex: 1;
  margin-left: 8px;
}

.hud-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
}

.hud-badge.BUY, .hud-badge.STRONG_BUY {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid #00e676;
}

.hud-badge.SELL, .hud-badge.STRONG_SELL {
  background: rgba(255, 23, 68, 0.2);
  color: #ff1744;
  border: 1px solid #ff1744;
}

.hud-minimize-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.hud-minimize-btn:hover {
  color: #fff;
}

.hud-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-lbl {
  color: var(--text-dim);
  font-weight: 600;
}

.hud-val {
  color: var(--text-main);
  font-weight: 700;
}

.hud-val.highlight {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.hud-val.smc {
  color: #f59e0b;
  font-weight: 600;
}

.hud-bias-pill {
  display: flex;
  align-items: center;
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  gap: 6px;
}

.bull-pct {
  color: #00e676;
  font-weight: 700;
}

.bear-pct {
  color: #ff1744;
  font-weight: 700;
}

.bias-divider {
  width: 1px;
  height: 10px;
  background: var(--border-color);
}

.hud-targets-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  font-family: var(--font-mono);
}

.hud-tgt small {
  display: block;
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hud-tgt strong {
  font-size: 11px;
  color: var(--text-main);
}

.hud-tgt.sl strong {
  color: var(--color-bearish);
}

.hud-tgt.tp strong {
  color: var(--color-bullish);
}

.hud-quick-trade-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(124, 77, 255, 0.25));
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hud-quick-trade-btn:hover {
  background: linear-gradient(135deg, var(--color-accent), #7c4dff);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
  transform: translateY(-1px);
}

.hud-quick-trade-btn.buy {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(0, 210, 255, 0.2));
  border-color: #00e676;
  color: #00e676;
}

.hud-quick-trade-btn.buy:hover {
  background: #00e676;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

.hud-quick-trade-btn.sell {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.25), rgba(245, 158, 11, 0.2));
  border-color: #ff1744;
  color: #ff1744;
}

.hud-quick-trade-btn.sell:hover {
  background: #ff1744;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
}

.ohlc-display {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}

.ohlc-item span.label {
  color: var(--text-dim);
}

.ohlc-item span.val {
  color: var(--text-main);
  font-weight: 600;
}

.indicator-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ind-chip {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ind-chip.active {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-light);
}

.ind-chip.st-chip.active { border-color: var(--color-bullish); color: var(--color-bullish); }
.ind-chip.ema21-chip.active { border-color: #f59e0b; color: #f59e0b; }
.ind-chip.ema50-chip.active { border-color: #3b82f6; color: #3b82f6; }
.ind-chip.ema200-chip.active { border-color: #ec4899; color: #ec4899; }

.chart-pane-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 0;
}

/* TradingView Chart Container */
.chart-container-inner {
  flex: 1 1 0;
  position: relative;
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tv-candlestick-chart {
  width: 100%;
  flex: 7 1 0;
  min-height: 100px;
  position: relative;
}

#tv-subchart-pane {
  width: 100%;
  flex: 3 1 0;
  min-height: 80px;
  position: relative;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   INTERACTIVE DOCK RESIZER / SPLITTER HANDLE (Between Chart and Bottom Dock)
   ========================================================================== */
.dock-resizer-handle {
  height: 22px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.96) 0%, rgba(3, 5, 10, 0.98) 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  user-select: none;
  position: relative;
  z-index: 25;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dock-resizer-handle:hover,
.dock-resizer-handle.dragging {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.16) 0%, rgba(8, 14, 26, 0.98) 100%);
  border-top-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.resizer-bar-left {
  display: flex;
  align-items: center;
}

.resizer-grip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Vazirmatn', inherit;
  transition: color 0.15s ease;
}

.dock-resizer-handle:hover .resizer-grip,
.dock-resizer-handle.dragging .resizer-grip {
  color: #00e5ff;
}

.grip-icon {
  font-size: 13px;
  line-height: 1;
  color: var(--color-accent);
}

.resizer-center-track {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 240px;
  margin: 0 16px;
  gap: 8px;
}

.track-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.dock-resizer-handle:hover .track-line,
.dock-resizer-handle.dragging .track-line {
  background: rgba(0, 229, 255, 0.4);
}

.track-handle-dot {
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.dock-resizer-handle:hover .track-handle-dot,
.dock-resizer-handle.dragging .track-handle-dot {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.resizer-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-dock-quick {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Vazirmatn', inherit;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-dock-quick:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.4);
  color: #fff;
}

.btn-dock-quick.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* While actively dragging, disable pointer events on iframes so cursor doesn't get trapped */
body.is-dock-resizing {
  cursor: row-resize !important;
  user-select: none !important;
}

body.is-dock-resizing iframe {
  pointer-events: none !important;
}

/* Bottom Tabbed Area inside Chart Pane - Ultra High-Performance Obsidian Dock */
.bottom-dock {
  height: 240px;
  min-height: 75px;
  max-height: calc(100% - 110px);
  background: #060911;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  flex-shrink: 0;
  contain: layout style;
}

.bottom-dock.animated-resize {
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-tabs {
  display: flex;
  align-items: center;
  background: #04060c;
  border-bottom: 1px solid var(--border-color);
  padding: 0 14px;
  gap: 4px;
  flex-shrink: 0;
}

.dock-tab {
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.dock-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px 4px 0 0;
}

.dock-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(0, 210, 255, 0.08);
  border-radius: 4px 4px 0 0;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.dock-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 8px 12px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  will-change: scroll-position;
  contain: paint layout;
}

.dock-tab-panel {
  display: none;
}

.dock-tab-panel.active {
  display: block;
}

/* Tables - Ultra Fast 60FPS Hardware Accelerated */
table.dark-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  text-align: left;
  contain: layout;
}

table.dark-table th {
  position: sticky;
  top: 0;
  background: #080c14;
  color: var(--text-dim);
  font-weight: 700;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.4px;
  z-index: 10;
  white-space: nowrap;
}

table.dark-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  vertical-align: middle;
}

table.dark-table tr {
  contain: layout style;
  transition: background 0.1s ease;
}

table.dark-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Interactive Clickable Symbol Badge in Positions & History Tables */
.pos-symbol-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.2;
}

.pos-symbol-btn:hover {
  background: rgba(0, 210, 255, 0.16);
  border-color: rgba(0, 210, 255, 0.5);
  color: #00d2ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

.pos-symbol-btn:active {
  transform: translateY(0);
}

.pos-symbol-btn.active {
  background: rgba(0, 210, 255, 0.22);
  border-color: #00d2ff;
  color: #00d2ff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.pos-symbol-btn .symbol-chart-icon {
  font-size: 11px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pos-symbol-btn:hover .symbol-chart-icon {
  opacity: 1;
  transform: scale(1.15);
}

/* Sidebar Right - Pure Obsidian High Performance Container */
.sidebar-panel {
  background: #050810;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  gap: 8px;
  padding: 8px 10px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout;
}

.sidebar-panel > .card {
  flex-shrink: 0;
}

.card, .glass-card {
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover, .glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Collapsible Side Cards (کادرهای کناری جمع‌شونده) */
.card-collapsible-header {
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  transition: opacity 0.2s ease;
}

.card-collapsible-header:hover {
  opacity: 0.92;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-arrow-toggle {
  background: transparent;
  border: none;
  border-radius: 4px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  opacity: 0.65;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-arrow-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
  opacity: 1;
  transform: scale(1.15);
}

.toggle-arrow-svg {
  width: 9px;
  height: 9px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: currentColor;
}

/* When a card is collapsed */
.card.card-collapsed .toggle-arrow-svg {
  transform: rotate(-90deg);
}

.card-collapse-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin 0.3s ease,
              padding 0.3s ease;
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
}

.card.card-collapsed {
  padding-bottom: 12px;
  background: rgba(8, 11, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.card.card-collapsed .card-collapsible-header {
  margin-bottom: 0 !important;
}

.card.card-collapsed .card-collapse-body {
  max-height: 0;
  opacity: 0;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* Confluence AI Signal Card */
.signal-box {
  background: rgba(11, 15, 26, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.signal-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d2ff, #a855f7);
}

.signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.signal-type-badge.STRONG_BUY, .signal-type-badge.BUY {
  background: rgba(0, 230, 118, 0.14);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25);
}

.signal-type-badge.STRONG_SELL, .signal-type-badge.SELL {
  background: rgba(255, 23, 68, 0.14);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.4);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.25);
}

.signal-type-badge.NEUTRAL {
  background: rgba(142, 155, 181, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(142, 155, 181, 0.25);
  box-shadow: 0 0 8px rgba(142, 155, 181, 0.08);
}

/* Confluence Score Meter */
.confluence-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-track {
  height: 8px;
  background: #232b40;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  width: 50%;
  background: var(--color-accent);
  transition: all 0.4s ease;
  border-radius: 4px;
}

.meter-fill.bullish {
  background: linear-gradient(90deg, #00d2ff, #00e676);
}

.meter-fill.bearish {
  background: linear-gradient(90deg, #ff1744, #ff80ab);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Target Levels Grid */
.targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.target-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.target-item .tgt-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
}

.target-item .tgt-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.target-item.sl .tgt-val { color: var(--color-bearish); }
.target-item.tp1 .tgt-val { color: var(--color-bullish); }
.target-item.tp2 .tgt-val { color: #00d2ff; }
.target-item.tp3 .tgt-val { color: #a855f7; }

/* Reasons & Factors List */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.reason-chip {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-accent);
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.3;
}

.reason-chip.bullish { border-left-color: var(--color-bullish); }
.reason-chip.bearish { border-left-color: var(--color-bearish); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0099ff);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.4);
}

.btn-danger {
  background: var(--color-bearish);
  color: #fff;
  border: none;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* Backtest Metrics Box */
.backtest-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.bt-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
}

.bt-stat-card .label { font-size: 11px; color: var(--text-dim); }
.bt-stat-card .value { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-main); margin-top: 2px; }

/* ==========================================================================
   Trader Profile Hub & Dropdown Menu Styles
   ========================================================================== */

.user-profile-wrapper {
  position: relative;
}

.user-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  padding: 3px 12px 3px 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  outline: none;
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-pill-btn:hover,
.user-pill-btn.active {
  background: rgba(18, 28, 48, 0.95);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.32);
}

.user-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #7c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.45);
}

.user-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

.user-status-dot.online {
  background: var(--color-bullish);
  box-shadow: 0 0 6px var(--color-bullish);
}

.user-status-dot.offline {
  background: var(--text-dim);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
  justify-content: center;
}

.user-name-display {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.user-balance-snippet {
  font-size: 14px;
  font-family: var(--font-mono);
  color: #00e676;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.45);
  line-height: 1.2;
}

.chevron-icon {
  width: 10px;
  height: 10px;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}

.user-pill-btn.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Profile Wrapper Anchor */
.user-profile-wrapper {
  position: relative;
  overflow: visible !important;
  z-index: 1000002;
}

/* Dropdown Menu Container - Guaranteed Viewport-Fixed Positioning Above All Layers */
.trader-dropdown-menu,
#trader-dropdown {
  position: fixed !important;
  top: 54px !important;
  right: 14px !important;
  width: 380px !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100vh - 65px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  background: linear-gradient(170deg, #131926 0%, #0d121c 100%) !important;
  border: 1px solid rgba(0, 210, 255, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 35px rgba(0, 210, 255, 0.3) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  z-index: 2147483647 !important;
  display: none;
  flex-direction: column;
  animation: dropSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.trader-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.trader-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.trader-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.3);
  border-radius: 4px;
}

.trader-dropdown-menu.show,
#trader-dropdown.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
}

@keyframes dropSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dropdown Header */
.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #7c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-name {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-vip {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffab00, #ff6d00);
  color: #000;
  letter-spacing: 0.3px;
}

.dropdown-uid {
  font-size: 11px;
  color: var(--text-dim);
}

.mode-tag {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

.mode-tag.paper {
  color: var(--color-accent);
  background: rgba(0, 210, 255, 0.1);
}

.mode-tag.live {
  color: var(--color-bullish);
  background: rgba(0, 230, 118, 0.1);
}

.btn-icon-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-pill:hover {
  background: var(--bg-card-hover);
  color: var(--color-bearish);
  border-color: rgba(255, 23, 68, 0.4);
}

/* Dropdown Sections */
.dropdown-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wallet-badge, .perf-status-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Wallet Cards Grid */
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.wallet-stat-card {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.wallet-stat-card .w-label {
  font-size: 10px;
  color: var(--text-dim);
}

.wallet-stat-card .w-val {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1px;
}

.wallet-stat-card .w-val.highlight {
  color: var(--color-accent);
}

/* Quick Wallet Action Buttons */
.wallet-quick-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.wallet-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-btn.deposit-btn {
  background: rgba(0, 230, 118, 0.12);
  color: var(--color-bullish);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.wallet-btn.deposit-btn:hover {
  background: rgba(0, 230, 118, 0.22);
  transform: translateY(-1px);
}

.wallet-btn.reset-btn {
  background: rgba(255, 171, 0, 0.12);
  color: var(--color-warning);
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.wallet-btn.reset-btn:hover {
  background: rgba(255, 171, 0, 0.22);
  transform: translateY(-1px);
}

/* Performance Row */
.perf-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.perf-mini-box {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.perf-mini-box .perf-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-bullish);
}

.perf-mini-box .perf-sub {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* Dropdown Menu List */
.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.menu-action-item:not(.non-clickable):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.menu-action-item.non-clickable {
  cursor: default;
}

.action-icon {
  font-size: 15px;
  width: 24px;
  text-align: center;
}

.action-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.action-title {
  font-size: 12px;
  font-weight: 600;
}

.action-desc {
  font-size: 10px;
  color: var(--text-dim);
}

.action-arrow {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
}

.action-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Risk Pill Selector */
.risk-pill-selector {
  display: flex;
  gap: 3px;
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
}

.risk-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.risk-chip:hover {
  color: #fff;
}

.risk-chip.active {
  background: var(--color-accent);
  color: #000;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: .2s;
  border-radius: 18px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-bullish);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* Dropdown Footer */
.dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
}

.btn-footer-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.btn-footer-logout:hover {
  color: var(--color-bearish);
}

.app-version-tag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ==========================================================================
   Modals Styles (Login, Journal, API Keys)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.15s ease;
}

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

.modal-box {
  background: linear-gradient(165deg, #151b2b, #0e131f);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 210, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box.modal-lg {
  max-width: 960px;
}

@keyframes modalPopUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 18px;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-intro {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-input {
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.modal-input:focus {
  border-color: var(--color-accent);
}

.modal-input-small {
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
  width: 240px;
}

.modal-select {
  cursor: pointer;
}

.modal-alert-box {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.modal-alert-box.info {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--color-accent);
}

.modal-alert-box.success {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--color-bullish);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.btn-pill-small {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill-small:hover {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

/* Trade Journal Modal Components */
.journal-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
}

.j-stat {
  display: flex;
  flex-direction: column;
}

.j-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.j-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.journal-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-side-group {
  display: flex;
  gap: 4px;
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
}

.filter-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip.active {
  background: var(--bg-card-hover);
  color: var(--color-accent);
}

.journal-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* Tabs for API Keys */
.tabs-exchange-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.tab-ex {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-ex:hover {
  color: #fff;
}

.tab-ex.active {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--color-accent);
}

/* ==========================================================================
   Bilingual Support - Pure LTR Layout with Persian Typography
   ========================================================================== */

/* Persian Font Applied to Text Elements Without Changing Any Layout Direction */
body.lang-fa,
body.lang-fa button,
body.lang-fa input,
body.lang-fa select,
body.lang-fa textarea {
  font-family: 'Vazirmatn', -apple-system, 'Segoe UI', Tahoma, Roboto, sans-serif;
}

/* Maintain Standard Monospace and Tabular Numbers Across Both Languages */
body.lang-fa .stat-val,
body.lang-fa .w-val,
body.lang-fa .perf-num,
body.lang-fa .ohlc-item .val,
body.lang-fa .tgt-val,
body.lang-fa .ind-chip,
body.lang-fa .tf-btn,
body.lang-fa .badge-vip,
body.lang-fa .mode-tag,
body.lang-fa .badge-mode,
body.lang-fa .signal-type-badge,
body.lang-fa select.clean-select {
  font-family: var(--font-mono), 'Segoe UI', sans-serif !important;
}

body.lang-fa th {
  font-family: 'Vazirmatn', 'Segoe UI', sans-serif !important;
  font-weight: 600;
}

/* Ensure Layout Remains 100% Identical to English (Strictly LTR Everywhere) */
body, html,
body.lang-fa,
body.lang-fa * {
  direction: ltr !important;
}

/* Header Language Toggle Pill */
.lang-switch-wrapper {
  display: flex;
  align-items: center;
}

.lang-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  flex-shrink: 0;
}

.lang-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
  transform: translateY(-1px) scale(1.05);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

.lang-label {
  display: none !important;
}

/* Dropdown Language Selector */
.lang-pill-selector {
  display: flex;
  gap: 3px;
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  direction: ltr;
}

.lang-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-chip:hover {
  color: #fff;
}

.lang-chip.active {
  background: var(--color-accent);
  color: #000;
}

/* ==========================================================================
   AI Auto-Trading Bot Controller Hero Card & Risk Slider
   ========================================================================== */
.bot-control-card {
  border: 1px solid rgba(0, 210, 255, 0.35);
  background: linear-gradient(165deg, rgba(14, 20, 36, 0.88) 0%, rgba(6, 9, 16, 0.82) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 210, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.bot-control-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d2ff, #00e676, #a855f7);
  box-shadow: 0 0 12px #00d2ff;
}

.bot-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.bot-icon-glow {
  font-size: 18px;
  filter: drop-shadow(0 0 8px #00d2ff);
}

.bot-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}

.bot-status-badge.active {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.6);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

.bot-status-badge.paused {
  background: rgba(255, 23, 68, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 23, 68, 0.6);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.25);
}

.bot-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.bot-status-badge.active .status-dot {
  animation: hudPulse 1.4s infinite;
}

.bot-master-action {
  margin: 6px 0 10px 0;
  display: flex;
  justify-content: center;
}

/* Note: .btn-bot-toggle is styled under Bot Command Header */


/* Tactical Operations Card & Tabs */
.tactical-ops-card {
  padding: 10px 12px;
}

.tactical-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.tactical-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tactical-icon {
  font-size: 14px;
}

.tactical-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.tactical-tabs-nav {
  display: flex;
  gap: 5px;
  background: rgba(4, 6, 12, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 8px;
}

.tactical-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactical-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tactical-tab-btn.active {
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.instant-trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.instant-btn-grid {
  display: flex;
  gap: 8px;
}

.instant-btn-grid .buy-btn {
  flex: 1;
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instant-btn-grid .buy-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
  transform: translateY(-1px);
}

.instant-btn-grid .sell-btn {
  flex: 1;
  background: linear-gradient(135deg, #ff1744, #f50057);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 23, 68, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instant-btn-grid .sell-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
  transform: translateY(-1px);
}

.sub-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 6px 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bot-setting-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-setting-group .setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.bot-setting-group .setting-header label {
  color: var(--text-dim);
  font-weight: 700;
}

.wallet-avail {
  font-size: 10px;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.risk-val-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-bullish);
  font-family: var(--font-mono);
  background: rgba(0, 230, 118, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  transition: border-color 0.2s;
}

.input-with-unit:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.input-with-unit .unit-prefix {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}

.input-with-unit .unit-suffix {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

.clean-number-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  outline: none;
  width: 100%;
}

.quick-chips-row {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.chip-preset, .chip-risk {
  flex: 1;
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-preset:hover, .chip-risk:hover {
  border-color: var(--color-accent);
  color: #fff;
}

.chip-preset.active, .chip-risk.active {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #232b40;
  outline: none;
  cursor: pointer;
}

.risk-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--color-accent);
  transition: transform 0.1s;
}

.risk-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.risk-input-wrap {
  display: flex;
  align-items: center;
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 6px;
  width: 65px;
}

.risk-num-input {
  width: 36px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  outline: none;
  text-align: right;
}

.pct-sign {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 2px;
}

.bot-footer-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* =========================================================================
   Candle Countdown Bar (زیر خط قیمت و نوار بالای چارت)
   ========================================================================= */
.candle-countdown-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  animation: countdownGlow 2.5s infinite alternate;
}

@keyframes countdownGlow {
  0% { border-color: rgba(0, 210, 255, 0.25); box-shadow: 0 0 4px rgba(0, 210, 255, 0.1); }
  100% { border-color: rgba(0, 210, 255, 0.5); box-shadow: 0 0 10px rgba(0, 210, 255, 0.25); }
}

.countdown-icon {
  font-size: 12px;
}

.countdown-digits {
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

/* Floating Candle Countdown on AI Chart */
.candle-floating-tag {
  position: absolute;
  top: 14px;
  right: 68px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(13, 18, 28, 0.85);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.candle-floating-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-bullish);
  box-shadow: 0 0 6px var(--color-bullish);
}

/* =========================================================================
   AI Neural Experience & Learning Machine Card (سایدبار هوش مصنوعی)
   ========================================================================= */
.ai-learning-card {
  background: linear-gradient(145deg, #101624, #12192b);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(168, 85, 247, 0.1);
}

.ai-learning-card:hover {
  border-color: rgba(168, 85, 247, 0.55);
}

.ai-brain-icon {
  font-size: 15px;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
}

.ai-learning-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ai-learning-badge .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 6px #c084fc;
  animation: hudPulse 1.5s infinite;
}

.ai-learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.learning-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.learning-stat-box .l-label {
  font-size: 10px;
  color: var(--text-dim);
}

.learning-stat-box .l-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.learning-stat-box .l-val.green {
  color: var(--color-bullish);
}

.learning-stat-box .l-val.blue {
  color: var(--color-accent);
}

.learning-stat-box .l-val.highlight {
  color: #c084fc;
}

/* Mistake Shield Box */
.mistake-shield-box {
  margin-top: 10px;
  background: rgba(255, 23, 68, 0.06);
  border: 1px solid rgba(255, 23, 68, 0.25);
  border-radius: 6px;
  padding: 7px 10px;
}

.shield-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #ff5252;
  margin-bottom: 3px;
}

.shield-desc {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Adaptive Weights Box */
.weights-bar-box {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}

.weights-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10px;
  color: var(--text-dim);
}

.weight-chip {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--color-accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

/* ==========================================================================
   Streamlined & Minimal Compact Sidebar System (طراحی مینیمال و بهینه سایدبار)
   ========================================================================== */

/* Top Command Row in Card 1 */
.bot-cmd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-cmd-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-icon-glow {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.45));
}

.bot-title-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-title-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-main);
  white-space: nowrap;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.bot-status-pill.active {
  color: #00e676;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.28);
}

.bot-status-pill.paused {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.bot-status-pill .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Creative Cybernetic Engine Power Pill Button */
.btn-bot-toggle {
  height: 30px;
  min-width: 78px;
  width: auto;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  user-select: none;
}

/* Active running state -> Offers STOP (Crimson Glass Glow) */
.btn-bot-toggle.active {
  background: rgba(255, 23, 68, 0.14);
  border: 1px solid rgba(255, 23, 68, 0.55);
  color: #ff5252;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.25), inset 0 0 8px rgba(255, 23, 68, 0.15);
}

.btn-bot-toggle.active:hover {
  background: rgba(255, 23, 68, 0.28);
  border-color: #ff1744;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.6);
  transform: translateY(-1px);
}

/* Paused standby state -> Offers START (Emerald Glass Glow) */
.btn-bot-toggle.paused {
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.55);
  color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25), inset 0 0 8px rgba(0, 230, 118, 0.15);
}

.btn-bot-toggle.paused:hover {
  background: rgba(0, 230, 118, 0.28);
  border-color: #00e676;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.6);
  transform: translateY(-1px);
}

/* Futuristic AI Signal Radar & Confluence Meter */
.signal-radar-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.72) 0%, rgba(10, 15, 26, 0.88) 100%);
  border: 1px solid rgba(0, 210, 255, 0.16);
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.signal-radar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.5), transparent);
}

.radar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.radar-live-blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  display: inline-block;
  animation: radarBlip 2s infinite ease-in-out;
}

@keyframes radarBlip {
  0%, 100% { opacity: 0.45; transform: scale(0.9); box-shadow: 0 0 4px #00d2ff; }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 10px #00d2ff, 0 0 16px rgba(0, 210, 255, 0.4); }
}

.radar-title-text {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.radar-badge-wrap {
  display: flex;
  align-items: center;
}

/* Radar Gauge Section */
.radar-gauge-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gauge-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gauge-edge-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gauge-edge-tag.bear {
  color: #ff5252;
  opacity: 0.85;
}

.gauge-edge-tag.bull {
  color: #00e676;
  opacity: 0.85;
}

.score-compact-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 1.5px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: #00d2ff;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
}

.modern-meter {
  height: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.meter-center-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.modern-meter .meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.modern-meter .meter-fill.bullish {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.4), #00e676);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.modern-meter .meter-fill.bearish {
  background: linear-gradient(90deg, #ff1744, rgba(255, 23, 68, 0.4));
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

/* Minimal 4-Grid Target Levels */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.compact-grid .target-item {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-grid .tgt-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.compact-grid .tgt-val {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Unified Smart Money & Risk Console */
.bot-console-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(13, 17, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.console-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-icon {
  font-size: 12px;
  opacity: 0.9;
}

.console-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.console-sub-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.22);
  padding: 2px 7px;
  border-radius: 5px;
}

.console-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-input-wrap {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.console-input-wrap input {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  color: #fff;
}

.console-chips-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.console-chips-group .chip-preset {
  height: 30px;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.console-chips-group .chip-preset:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.console-chips-group .chip-preset.active {
  background: rgba(0, 210, 255, 0.16);
  color: #00d2ff;
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.console-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Modern Risk Badge */
.modern-risk-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.12);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  letter-spacing: 0.3px;
}

/* Risk Control Deck */
.risk-control-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Hero AI Risk Button */
.hero-ai-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: rgba(0, 210, 255, 0.06);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.hero-ai-chip:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.5);
  color: #fff;
}

.hero-ai-chip.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.22) 0%, rgba(3, 105, 161, 0.3) 100%);
  border-color: #00d2ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.hero-ai-chip .sparkle-icon {
  font-size: 13px;
}

/* Manual Risk Row */
.manual-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.manual-chips-subgroup {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.manual-chips-subgroup .manual-chip {
  flex: 1;
  height: 28px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manual-chips-subgroup .manual-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.manual-chips-subgroup .manual-chip.active {
  background: rgba(0, 210, 255, 0.16);
  color: #00d2ff;
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.risk-stepper-box {
  width: 52px;
  height: 28px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 0 4px;
}

.risk-stepper-box .risk-num-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.risk-stepper-box .pct-sign {
  color: #94a3b8;
  font-size: 10px;
  font-family: var(--font-mono);
}

/* Slider Track */
.risk-slider-track-wrap {
  width: 100%;
  padding: 2px 0;
}

.modern-glow-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
}

.modern-glow-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.modern-glow-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Sleek Tab Navigation */
.sleek-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(4, 9, 20, 0.65);
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.sleek-tabs .tactical-tab-btn {
  width: 100%;
  padding: 6px 3px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sleek-tabs .tactical-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.sleek-tabs .tactical-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(0, 150, 255, 0.1));
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.38);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.18);
}

/* 2x2 Balanced AI Learning Grid */
.compact-learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.compact-learning-grid .learning-stat-box {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.compact-learning-grid .learning-stat-box:hover {
  border-color: rgba(0, 210, 255, 0.3);
  background: rgba(0, 0, 0, 0.42);
}

.compact-learning-grid .l-stat-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.compact-learning-grid .l-icon {
  font-size: 11px;
  line-height: 1;
}

.compact-learning-grid .l-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-learning-grid .l-val {
  font-size: 12.5px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  text-align: right;
  direction: ltr;
  display: block;
  letter-spacing: -0.2px;
}

.compact-learning-grid .l-val.highlight {
  color: #c084fc;
}

.compact-learning-grid .l-val.green {
  color: #00e676;
}

.compact-learning-grid .l-val.blue {
  color: #38bdf8;
}

/* Compact Shield Banner */
.compact-shield-box {
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 7px;
  padding: 6px 9px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
}

.compact-shield-box .shield-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.compact-shield-box .shield-body {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}

.compact-shield-box .shield-title {
  font-size: 10px;
  font-weight: 800;
  color: #00d2ff;
  white-space: nowrap;
  flex-shrink: 0;
}

.compact-shield-box .shield-desc-inline {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

/* Compact Adaptive Weights */
.compact-weights-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 6px 9px;
  box-sizing: border-box;
}

.compact-weights-box .weights-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.compact-weights-box .weights-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.compact-weights-box .weights-chips-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.compact-weights-box .weight-chip {
  font-size: 9.5px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 210, 255, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.25);
  white-space: nowrap;
}

/* Compact News Box */
.compact-news-box {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.compact-news-box .news-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.compact-news-box .news-title-tag {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.compact-news-box .news-score-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 210, 255, 0.12);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  white-space: nowrap;
  direction: ltr;
}

.compact-news-box .news-headline-ticker {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  cursor: pointer;
  transition: color 0.2s ease;
}

.compact-news-box .news-headline-ticker:hover {
  color: #38bdf8;
}

/* ==========================================================================
   SaaS Membership & Authentication Portal Styles
   ========================================================================== */
.auth-portal-box {
  max-width: 680px;
  width: 95%;
  background: radial-gradient(circle at top right, rgba(20, 27, 45, 0.98), rgba(9, 11, 19, 0.98));
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(25px);
}

.modal-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.auth-tabs-nav {
  display: flex;
  background: rgba(10, 14, 24, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  gap: 8px;
  overflow-x: auto;
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.auth-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.auth-portal-body {
  padding: 20px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.auth-tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-out forwards;
}

.auth-tab-panel.active {
  display: flex;
}

.auth-banner-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(123, 97, 255, 0.08) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.auth-banner-info .banner-icon {
  font-size: 22px;
  line-height: 1;
}

.auth-banner-info strong {
  font-size: 13px;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.auth-banner-info p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.7;
}

body.rtl .input-with-icon .field-icon {
  left: auto;
  right: 12px;
}

.input-with-icon .modal-input {
  padding-left: 36px;
  width: 100%;
}

body.rtl .input-with-icon .modal-input {
  padding-left: 12px;
  padding-right: 36px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

body.rtl .btn-toggle-pwd {
  right: auto;
  left: 10px;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .form-row-dual {
    grid-template-columns: 1fr;
  }
}

.auth-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-link {
  color: #00d2ff;
  text-decoration: none;
  font-size: 11px;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
  transition: all 0.2s;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* Plan selector cards */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 580px) {
  .plan-cards-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: center;
}

.plan-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(20, 28, 48, 0.9);
}

.plan-card.active {
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.plan-badge-tag {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

body.rtl .plan-badge-tag {
  right: auto;
  left: 8px;
}

.plan-badge-tag.trial { background: #6c757d; color: #fff; }
.plan-badge-tag.pro { background: #00d2ff; color: #000; }
.plan-badge-tag.vip { background: #ffd700; color: #000; font-weight: 800; }

.plan-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.plan-price {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.plan-sub {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
}

.plan-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* License Tab Details */
.license-status-card {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(24, 18, 48, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.license-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.license-card-header .user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.license-card-header h4 {
  font-size: 15px;
  color: #fff;
  margin: 0 0 2px 0;
}

.license-role-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight: 700;
}

.license-time-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.license-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 12px;
}

.lic-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.lic-label {
  color: var(--text-dim);
}

.lic-val {
  color: #fff;
  font-weight: 600;
}

.lic-val.highlight-green {
  color: #00e676;
}

.license-activate-box {
  background: rgba(14, 19, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.license-activate-box h4 {
  font-size: 13px;
  color: #fff;
  margin: 0 0 4px 0;
}

.lic-subtext {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.license-input-wrap {
  display: flex;
  gap: 8px;
}

.admin-contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(123, 97, 255, 0.08);
  border: 1px solid rgba(123, 97, 255, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-header strong {
  font-size: 12px;
  color: #fff;
  display: block;
}

.contact-header p {
  font-size: 10px;
  color: var(--text-dim);
  margin: 0;
}

.crypto-pay-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.usdt-badge {
  background: #26a17b;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 9px;
}

.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  color: #e0e0e0;
}

.security-notice strong {
  color: #00e676;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

.security-notice p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.auth-portal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.footer-status-tag .dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
}

/* ==========================================================================
   Global Broadcast Announcement Banner
   ========================================================================== */
.global-announcement-bar {
  background: linear-gradient(90deg, rgba(255, 171, 0, 0.15) 0%, rgba(255, 23, 68, 0.15) 50%, rgba(0, 210, 255, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 171, 0, 0.35);
  padding: 3px 10px;
  min-height: 26px;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease-out;
  overflow: hidden;
  flex-shrink: 0;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.announcement-badge {
  background: linear-gradient(135deg, #ffab00, #ff6d00);
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.4);
  flex-shrink: 0;
}

.announcement-text {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 11px;
}

.announcement-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.announcement-close:hover {
  color: #fff;
}

/* ==========================================================================
   Quick Select Accounts & Email OTP Styles
   ========================================================================== */
.quick-accounts-section {
  background: rgba(14, 20, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.quick-acc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.quick-accounts-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.quick-accounts-scroll::-webkit-scrollbar {
  height: 4px;
}

.acc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 30, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.acc-chip:hover {
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  transform: translateY(-1px);
}

.acc-chip.active {
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.acc-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #0072ff);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-meta {
  display: flex;
  flex-direction: column;
}

.acc-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.acc-role {
  font-size: 9px;
  font-weight: 600;
}

.acc-role.admin { color: #ffd700; }
.acc-role.vip { color: #00e676; }
.acc-role.pro { color: #00d2ff; }
.acc-role.trial { color: var(--text-dim); }

.login-mode-switch {
  display: flex;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 14px;
}

.mode-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-switch-btn.active {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.otp-sent-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #00e676;
  margin-bottom: 12px;
}

.btn-link-sm {
  background: none;
  border: none;
  color: #00d2ff;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

.otp-input-center {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.otp-large-input {
  max-width: 200px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 8px;
  padding: 8px 12px;
  border-color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.otp-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.test-hint {
  font-size: 10px;
  color: #ffab00;
}

.auth-footer-options {
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   Super Admin Master Dashboard Styles
   ========================================================================== */
.admin-dashboard-box {
  max-width: 1000px;
  width: 95%;
  background: radial-gradient(circle at top right, rgba(22, 28, 48, 0.98), rgba(9, 11, 20, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 215, 0, 0.12);
  border-radius: 18px;
}

.admin-glow-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.admin-glow-btn:hover {
  background: rgba(255, 215, 0, 0.18) !important;
}

.action-badge.admin {
  background: #ffd700;
  color: #000;
  font-weight: 800;
}

.admin-modal-header {
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-crown-badge {
  font-size: 26px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-top-label {
  font-size: 9px;
  color: #ffd700;
  font-weight: 800;
  letter-spacing: 1px;
}

.admin-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 24px;
  background: rgba(10, 14, 26, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .admin-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-metric-card {
  background: rgba(16, 22, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.admin-metric-card .m-label {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
}

.admin-metric-card .m-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin: 3px 0;
}

.admin-metric-card .m-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.admin-metric-card.highlight-green .m-val { color: #00e676; }
.admin-metric-card.highlight-gold .m-val { color: #ffd700; }
.admin-metric-card.highlight-cyan .m-val { color: #00d2ff; }

.admin-tabs-nav {
  display: flex;
  padding: 8px 24px;
  background: rgba(10, 13, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn.active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
}

.admin-body {
  padding: 18px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-tab-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.admin-tab-panel.active {
  display: flex;
}

.admin-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  flex: 1;
  max-width: 400px;
}

.admin-search-field {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.btn-refresh-admin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.btn-refresh-admin:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  background: rgba(14, 18, 32, 0.9);
  padding: 10px 12px;
  text-align: right;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  white-space: nowrap;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.badge-status.active { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.badge-status.expired { background: rgba(255, 23, 68, 0.15); color: #ff1744; }
.badge-status.suspended { background: rgba(255, 171, 0, 0.15); color: #ffab00; }

.btn-action-pill {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #00d2ff;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  transition: all 0.2s;
}

.btn-action-pill:hover {
  background: #00d2ff;
  color: #000;
}

.btn-action-pill.vip {
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.btn-action-pill.vip:hover {
  background: #ffd700;
  color: #000;
}

/* Settings Tab Layout */
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card-box {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.card-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-box-header h4 {
  font-size: 13px;
  color: #fff;
  margin: 0;
}

.card-subtext {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.4;
}

.admin-textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  line-height: 1.4;
}

.settings-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-switch-row strong {
  font-size: 12px;
  color: #fff;
  display: block;
}

.settings-switch-row p {
  font-size: 10px;
  color: var(--text-dim);
  margin: 0;
}

.license-gen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .license-gen-layout {
    grid-template-columns: 1fr;
  }
}

.license-generated-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090c14;
  border: 1px dashed #ffd700;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}

.license-generated-pill .lic-code {
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
}

.btn-copy-lic {
  background: #ffd700;
  color: #000;
  border: none;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  transition: transform 0.1s;
}

.btn-copy-lic:active {
  transform: scale(0.95);
}

.license-buyer-details {
  font-size: 11px;
  color: var(--text-dim);
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-session-text {
  font-size: 11px;
  color: #ffd700;
  font-weight: 600;
}

/* ========================================================================= */
/* 20. Dedicated Customer Gateway & Pending Holding Screen Styles            */
/* ========================================================================= */
.gateway-screen-container,
.holding-screen-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background-color: #060911;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 210, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 215, 0, 0.04) 0%, transparent 45%);
  position: relative;
  box-sizing: border-box;
  direction: rtl;
}

.gateway-card {
  width: 100%;
  max-width: 580px;
  background: rgba(13, 19, 33, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 210, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d2ff, #ffd700, #00e676);
}

.gateway-hero {
  text-align: center;
  margin-bottom: 24px;
}

.gateway-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.logo-badge-lg {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), #0066ff);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.gateway-title-wrap h2 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.gateway-title-wrap h2 span {
  color: var(--color-accent);
}

.gateway-title-wrap p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 4px 0 0 0;
}

.gateway-badges-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gate-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  color: #cbd5e1;
}

.gateway-tab-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.gate-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}

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

.gate-tab-btn.active {
  background: var(--color-accent);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
}

/* Pending Approval Holding Screen */
.holding-card {
  width: 100%;
  max-width: 540px;
  background: rgba(13, 19, 33, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 145, 0, 0.3);
  border-radius: 22px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 145, 0, 0.1);
  direction: rtl;
}

.holding-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(255, 145, 0, 0.1);
  border: 2px solid rgba(255, 145, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
}

.holding-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 145, 0, 0.3);
  animation: pulseHolding 2s infinite ease-out;
}

@keyframes pulseHolding {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.holding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 145, 0, 0.14);
  color: #ff9100;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 145, 0, 0.3);
}

.holding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9100;
}

.holding-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
}

.holding-description {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.holding-info-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  text-align: right;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-lbl {
  color: var(--text-dim);
}

.info-val {
  color: #fff;
}

.highlight-amber {
  color: #ff9100 !important;
  font-weight: 700;
}

.btn-telegram-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: #29b6f6;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.btn-telegram-contact:hover {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 136, 204, 0.4);
}

/* Header Admin Portal Button (Icon Button with Pending Badge) */
.admin-top-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 140, 0, 0.16));
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
  flex-shrink: 0;
}

.admin-top-link-btn:hover {
  background: rgba(255, 215, 0, 0.28);
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
  transform: translateY(-1px) scale(1.05);
}

.admin-top-link-btn .crown-icon {
  font-size: 13px;
  line-height: 1;
}

.admin-top-link-btn .badge-pending-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff1744;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  text-align: center;
  box-shadow: 0 0 6px rgba(255, 23, 68, 0.7);
  animation: pulseAnim 1.4s infinite;
}

/* ========================================================================= */
/* Telegram Bot Header Button & Status Indicator                             */
/* ========================================================================= */
.telegram-top-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.16), rgba(41, 182, 246, 0.16));
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: #29b6f6;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 136, 204, 0.15);
  flex-shrink: 0;
}

.telegram-top-link-btn:hover {
  background: rgba(0, 136, 204, 0.28);
  border-color: #29b6f6;
  box-shadow: 0 0 16px rgba(0, 136, 204, 0.5);
  transform: translateY(-1px) scale(1.05);
}

.telegram-top-link-btn .tg-icon {
  font-size: 13px;
  line-height: 1;
}

.telegram-top-link-btn .tg-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  border: 1px solid var(--bg-primary);
  transition: all 0.3s ease;
}

.tg-status-indicator.connected {
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  animation: pulseAnim 2s infinite;
}

/* AI Quant Radar Top Navbar Button */
.ai-radar-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.18));
  border: 1px solid rgba(124, 77, 255, 0.4);
  color: #b388ff;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.15);
  flex-shrink: 0;
}

.ai-radar-top-btn:hover {
  background: rgba(124, 77, 255, 0.3);
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px) scale(1.05);
  color: #fff;
}

.ai-radar-top-btn.active {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.35), rgba(0, 229, 255, 0.25));
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  color: #00e5ff;
}

.ai-radar-top-btn .radar-top-icon {
  font-size: 15px;
  line-height: 1;
}

.ai-radar-top-btn .radar-top-pulse-ring {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  border: 1.5px solid var(--bg-primary);
  box-shadow: 0 0 6px #00e676;
  transition: all 0.3s ease;
}

.ai-radar-top-btn.radar-inactive .radar-top-pulse-ring {
  background: #64748b;
  box-shadow: none;
}

/* ========================================================================= */
/* 10x Compounding Roadmap Card ($100 -> $1,000 Journey)                     */
/* ========================================================================= */
.compounding-roadmap-card {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.85) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.compounding-roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #ff8c00, #00e676);
}

.compounding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.compounding-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.compounding-fire-icon {
  font-size: 15px;
  animation: pulseAnim 2s infinite;
  flex-shrink: 0;
}

.compounding-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.compounding-target-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.phase-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

.phase-badge.phase-1 {
  background: rgba(0, 210, 255, 0.14);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.phase-badge.phase-2 {
  background: rgba(255, 145, 0, 0.16);
  color: #ff9100;
  border: 1px solid rgba(255, 145, 0, 0.35);
}

.phase-badge.phase-3 {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.phase-badge.phase-4 {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(255, 215, 0, 0.25));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Compounding Progress Bar */
.compounding-progress-wrap {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.progress-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.cp-left-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cp-meta-lbl {
  font-size: 9.5px;
  color: var(--text-dim);
}

.progress-labels-row .p-current {
  color: #ffd700;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
}

.p-pct-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.compounding-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.compounding-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff 0%, #ffd700 70%, #00e676 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.compounding-pct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 5px;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
}

.compounding-pct-row .p-start,
.compounding-pct-row .p-target {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.compounding-pct-row .p-remain {
  color: #38bdf8;
  font-weight: 600;
}

/* Milestones 4-Tier Grid */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.milestone-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 5px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.milestone-step.active {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.milestone-step.achieved {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.4);
}

.milestone-step .ms-num {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  color: var(--text-dim);
}

.milestone-step.active .ms-num {
  background: #ffd700;
  color: #000;
}

.milestone-step.achieved .ms-num {
  background: #00e676;
  color: #000;
}

.milestone-step .ms-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.milestone-step .ms-range {
  font-size: 8.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 1px;
}

/* Safeguards Strip */
.compounding-safeguards-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.12);
  border-radius: 8px;
  padding: 5px 8px;
  gap: 4px;
}

.safeguard-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  direction: rtl;
}

.safeguard-item .sg-lbl {
  font-size: 8.5px;
  color: var(--text-dim);
  font-family: 'Vazirmatn', -apple-system, sans-serif;
  white-space: nowrap;
}

.safeguard-item .sg-val {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-top: 1px;
}

.safeguard-item .text-green {
  color: #00e676 !important;
}

/* ========================================================================= */
/* Order Flow & Derivatives Depth Live Monitor Card                         */
/* ========================================================================= */
.derivatives-radar-card {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.deriv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.deriv-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deriv-pulse-blip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
  animation: pulseAnim 1.4s infinite;
}

.deriv-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.deriv-symbol-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  color: var(--color-accent);
}

/* Imbalance Depth Meter */
.imbalance-meter-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.imbalance-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.imbalance-labels .bid-lbl {
  color: #00e676;
}

.imbalance-labels .ask-lbl {
  color: #ff5252;
}

.imbalance-ratio-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
}

.imbalance-ratio-pill .mono {
  font-family: var(--font-mono);
  direction: ltr;
}

.depth-meter-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.depth-bar-bid {
  height: 100%;
  background: linear-gradient(90deg, #00c853, #00e676);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.depth-bar-ask {
  height: 100%;
  background: linear-gradient(90deg, #ff5252, #ff1744);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

.depth-divider {
  width: 2px;
  height: 100%;
  background: #fff;
  z-index: 2;
}

/* Derivatives Stats Grid */
.deriv-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deriv-stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.deriv-stat-pill.full-width {
  grid-column: span 2;
}

.deriv-stat-pill .ds-lbl {
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.deriv-stat-pill .ds-val {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.deriv-stat-pill .ds-val.ttm {
  font-size: 10px;
  color: #c084fc;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  direction: rtl;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
}

.deriv-stat-pill .ds-tag {
  align-self: flex-start;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
}

.deriv-stat-pill .ds-tag.normal {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.deriv-stat-pill .ds-tag.bullish {
  background: rgba(0, 230, 118, 0.16);
  color: #00e676;
}

.deriv-stat-pill .ds-tag.bearish {
  background: rgba(255, 82, 82, 0.16);
  color: #ff5252;
}

.deriv-stat-pill .ds-tag.info {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
}

/* ========================================================================= */
/* Telegram Bot Modal Styles                                                 */
/* ========================================================================= */
.telegram-modal-box {
  max-width: 520px;
  width: 90%;
  direction: rtl;
}

.tg-connection-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.status-dot-lg {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.status-dot-lg.connected {
  background: #00e676;
  box-shadow: 0 0 12px #00e676;
}

.tg-connection-status-box strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.tg-connection-status-box p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.tg-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.tg-action-buttons button {
  flex: 1;
}

.tg-commands-guide {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-top: 20px;
}

.tg-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ffd700;
  margin-bottom: 10px;
}

.tg-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #cbd5e1;
}

.tg-cmd-item code {
  background: rgba(0, 136, 204, 0.2);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: #29b6f6;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  direction: ltr;
}

/* ==========================================================================
   Ourbit Curated Market Scanner & Live Coin Watchlist
   ========================================================================== */
/* ==========================================================================
   Ourbit Curated Market Scanner & Live Coin Watchlist (Ultra-Compact)
   ========================================================================== */
.ourbit-market-deck {
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 210, 255, 0.14);
  border-radius: 8px;
  margin: 3px 8px 4px 8px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.market-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 22px;
}

.deck-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.deck-cat-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.deck-cat-btn:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.3);
  color: #fff;
}

.deck-cat-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.22) 0%, rgba(0, 230, 118, 0.16) 100%);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.cat-count-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0 4px;
  border-radius: 8px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  color: var(--color-accent);
}

/* Persistent Candle Timeframe Toolbar */
.deck-timeframe-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-toolbar-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 0 3px;
  user-select: none;
}

.tv-tf-chip {
  padding: 1.5px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.tv-tf-chip:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: #fff;
}

.tv-tf-chip.active {
  background: #00d2ff;
  border-color: #00d2ff;
  color: #020617;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.45);
}

.deck-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 140px;
  transition: width 0.2s ease;
}

.deck-search-wrap:focus-within {
  width: 180px;
}

.deck-search-wrap .search-icon {
  position: absolute;
  left: 6px;
  font-size: 10px;
  color: var(--text-dim);
  pointer-events: none;
}

.deck-search-wrap input {
  width: 100%;
  height: 20px;
  padding: 1px 6px 1px 22px;
  background: rgba(4, 6, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 10px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.deck-search-wrap input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.deck-cards-scroll-track {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 1px 1px 2px 1px;
  scroll-behavior: smooth;
  height: 38px;
  align-items: center;
}

.deck-cards-scroll-track::-webkit-scrollbar {
  height: 3px;
}
.deck-cards-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.2);
  border-radius: 3px;
}

.deck-coin-card {
  min-width: 115px;
  max-width: 135px;
  height: 34px;
  background: rgba(14, 20, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 3px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.deck-coin-card:hover {
  background: rgba(22, 32, 54, 0.95);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 210, 255, 0.15);
}

.deck-coin-card.active {
  background: linear-gradient(145deg, rgba(16, 28, 50, 0.95) 0%, rgba(9, 18, 32, 0.95) 100%);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.deck-coin-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d2ff, #00e676);
}

.coin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
}

.coin-card-ident {
  display: flex;
  align-items: center;
  gap: 4px;
}

.coin-icon {
  font-size: 11px;
  line-height: 1;
}

.coin-symbol {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
}

.coin-change-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
  line-height: 1.2;
}

.coin-change-badge.positive {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-bullish);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.coin-change-badge.negative {
  background: rgba(255, 23, 68, 0.15);
  color: var(--color-bearish);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.coin-card-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
}

.coin-price {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.coin-sig-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.coin-sig-pill.BUY, .coin-sig-pill.STRONG_BUY {
  background: rgba(0, 230, 118, 0.18);
  color: var(--color-bullish);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.coin-sig-pill.SELL, .coin-sig-pill.STRONG_SELL {
  background: rgba(255, 23, 68, 0.18);
  color: var(--color-bearish);
  border: 1px solid rgba(255, 23, 68, 0.35);
}

.coin-sig-pill.NEUTRAL {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   REAL-TIME BOT ACTIVITY TICKER & ACTIVITY LOGS MODAL (PERSIAN)
   ========================================================================== */

.bot-live-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}

.bot-live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 9999px;
  padding: 4px 12px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  min-width: 220px;
  max-width: 480px;
  width: auto;
  flex: 1 1 auto;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 32px;
  box-sizing: border-box;
}

.bot-live-pill:hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.bot-live-pulse-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bot-live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
}

.bot-live-pulse-ring::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.4);
  animation: radarPulse 1.8s infinite ease-out;
}

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

.bot-live-action-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-block;
  animation: subtleBounce 2s infinite ease-in-out;
}

@keyframes subtleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.bot-live-text-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  font-family: inherit;
  min-width: 0;
  flex: 1 1 auto;
}

.bot-live-prefix {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.95;
  flex-shrink: 0;
}

.bot-live-message {
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bot-live-badge-symbol {
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Button to Open Logs */
.btn-live-logs {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.15));
  border: 1px solid rgba(124, 77, 255, 0.4);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  height: 30px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.12);
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-live-logs:hover {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.35), rgba(0, 229, 255, 0.25));
  border-color: rgba(0, 229, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.25);
}

.btn-logs-icon {
  font-size: 12px;
}

.btn-logs-text {
  font-size: 11px;
  white-space: nowrap;
}

.logs-count-badge {
  background: rgba(0, 229, 255, 0.25);
  color: var(--color-accent);
  border-radius: 9999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Modal Activity Logs Styling */
.activity-modal-box {
  width: 95%;
  max-width: 980px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.activity-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 20px;
  gap: 12px;
}

.activity-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-terminal-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Vazirmatn', var(--font-mono), monospace;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.activity-terminal-container::-webkit-scrollbar {
  width: 6px;
}
.activity-terminal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.activity-loading-placeholder, .activity-empty-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Individual Log Row */
.act-log-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  transition: all 0.15s ease;
  line-height: 1.5;
}

.act-log-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.act-log-row.level-success {
  border-left-color: #00e676;
  background: rgba(0, 230, 118, 0.04);
}

.act-log-row.level-warning {
  border-left-color: #ff9100;
  background: rgba(255, 145, 0, 0.04);
}

.act-log-row.level-accent {
  border-left-color: #00e5ff;
  background: rgba(0, 229, 255, 0.04);
}

.act-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}

.act-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.act-badge.SCAN { background: rgba(0, 229, 255, 0.15); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.3); }
.act-badge.SIGNAL { background: rgba(255, 215, 0, 0.18); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.35); }
.act-badge.TRADE { background: rgba(0, 230, 118, 0.18); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.35); }
.act-badge.CLOSE { background: rgba(186, 104, 200, 0.18); color: #ba68c8; border: 1px solid rgba(186, 104, 200, 0.35); }
.act-badge.RISK { background: rgba(255, 145, 0, 0.18); color: #ff9100; border: 1px solid rgba(255, 145, 0, 0.35); }
.act-badge.DISCOVERY { background: rgba(245, 0, 87, 0.18); color: #ff4081; border: 1px solid rgba(245, 0, 87, 0.35); }

.act-symbol {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.act-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  direction: rtl;
}

.act-msg {
  color: var(--text-main);
  font-weight: 500;
}

.act-details {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  direction: ltr;
  text-align: right;
}

.activity-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   POSITIONS LIVE CAPITAL SUMMARY BAR & WALLET MARGIN BADGE
   ========================================================================== */

.positions-capital-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #090e18;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
  contain: layout style;
}

.cap-summary-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.cap-summary-icon {
  font-size: 11.5px;
  line-height: 1;
}

.cap-summary-label {
  color: var(--text-dim);
  font-size: 10.5px;
}

.cap-summary-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.cap-summary-val.positive {
  color: #00e676;
}

.cap-summary-val.negative {
  color: #ff9100;
}

.cap-summary-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* Margin Cash Pill inside Position Table Row */
.cell-wallet-margin {
  vertical-align: middle;
}

.margin-cash-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
}

.margin-lock-icon {
  font-size: 11px;
  line-height: 1;
}

.margin-cash-val {
  color: #00e676;
}

.margin-cash-unit {
  font-size: 9.5px;
  opacity: 0.8;
  font-weight: 600;
}

.margin-cash-note {
  font-size: 9.5px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: 'Vazirmatn', inherit;
}

.lev-badge {
  background: rgba(124, 77, 255, 0.2);
  color: #b388ff;
  border: 1px solid rgba(124, 77, 255, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   RESPONSIVE LAYOUT CONSTRAINTS (ZERO HORIZONTAL OVERFLOW SYSTEM)
   ========================================================================== */

/* 1. Global Viewport Clamps */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

#main-trading-terminal {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* 2. Large Desktops & 1080p with 125% Windows Scaling (~1440px - 1600px) */
@media (max-width: 1440px) {
  .workspace-grid {
    grid-template-columns: 1fr 310px;
  }
  .btn-sidebar-drawer-toggle {
    right: 310px;
  }
  .bot-live-pill {
    max-width: 380px;
  }
  .top-nav {
    padding: 0 12px;
    gap: 8px;
  }
}

/* 3. Standard Laptops & 1080p with 150% Windows Scaling (1280px - 1366px) */
@media (max-width: 1280px) {
  .top-nav {
    height: 46px;
    padding: 0 8px;
    gap: 6px;
  }
  .brand-title {
    font-size: 13px;
  }
  .top-main-nav .nav-menu-item {
    padding: 2px 5px;
    font-size: 10px;
    gap: 3px;
  }
  .bot-live-pill {
    max-width: 280px;
  }
  .btn-live-logs .btn-logs-text {
    display: none;
  }
  .bot-timer-label {
    display: none;
  }
  .user-name-display {
    display: none;
  }
  .user-balance-snippet {
    font-size: 12px;
  }
  .workspace-grid {
    grid-template-columns: 1fr 295px;
    height: calc(100vh - 46px);
    max-height: calc(100vh - 46px);
  }
  .btn-sidebar-drawer-toggle {
    right: 295px;
  }
}

/* ==========================================================================
   LAPTOP SCREEN HEIGHT VIEWPORT CONSTRAINTS (768px, 800px, 900px Laptops)
   ========================================================================== */

/* Standard Laptop Screens (height <= 900px) */
@media (max-height: 900px) {
  .top-nav {
    height: 46px;
  }
  .workspace-grid {
    height: calc(100vh - 46px);
    max-height: calc(100vh - 46px);
  }
  .ourbit-market-deck {
    margin: 2px 6px 3px 6px;
    padding: 3px 6px;
  }
  .market-deck-header {
    height: 20px;
  }
  .dock-resizer-handle {
    height: 18px;
  }
  .bottom-dock {
    height: 215px;
    min-height: 70px;
  }
  .dock-tab {
    padding: 6px 12px;
    font-size: 11px;
  }
  .sidebar-panel {
    padding: 6px 8px;
    gap: 6px;
  }
  .card, .glass-card {
    padding: 6px 8px;
    gap: 5px;
    border-radius: 8px;
  }
  .bot-console-card {
    padding: 6px 8px;
    gap: 6px;
  }
  .central-brain-live-box {
    padding: 8px 10px;
    margin-bottom: 6px;
  }
  .brain-verdict-banner {
    padding: 5px 8px;
    font-size: 10.5px;
  }
  .brain-cot-text {
    max-height: 48px;
    overflow-y: auto;
    font-size: 10.5px;
    line-height: 1.5;
  }
}

/* Low-Profile Laptops (height <= 780px, e.g. 1366x768 or scaled Windows) */
@media (max-height: 780px) {
  .top-nav {
    height: 42px;
  }
  .workspace-grid {
    height: calc(100vh - 42px);
    max-height: calc(100vh - 42px);
  }
  .bottom-dock {
    height: 185px;
  }
  .dock-tab {
    padding: 5px 10px;
    font-size: 10.5px;
  }
  .positions-capital-summary-bar {
    padding: 3px 6px;
    margin-bottom: 4px;
    gap: 8px;
  }
  .cap-summary-item {
    font-size: 10px;
  }
  .cap-summary-val {
    font-size: 10.5px;
  }
  table.dark-table th {
    padding: 4px 6px;
    font-size: 9.5px;
  }
  table.dark-table td {
    padding: 4px 6px;
    font-size: 10.5px;
  }
  .sidebar-panel {
    padding: 4px 6px;
    gap: 4px;
  }
  .card, .glass-card {
    padding: 5px 7px;
    gap: 4px;
  }
  .bot-title-text {
    font-size: 11.5px;
  }
  .signal-radar-widget {
    padding: 4px 6px;
  }
  .brain-metrics-row {
    padding: 4px 6px;
    margin-bottom: 5px;
  }
  .learning-stat-box {
    padding: 3px 5px;
  }
  .learning-stat-box .l-val {
    font-size: 11px;
  }
}

/* 4. Medium Screens & Split Window View (1000px - 1100px) */
@media (max-width: 1100px) {
  .bot-live-pill {
    max-width: 240px;
  }
  .bot-live-prefix {
    display: none;
  }
  .user-balance-snippet {
    font-size: 12.5px;
  }
  .user-pill-btn {
    padding: 3px 8px 3px 4px;
    gap: 5px;
  }
  .user-pill-btn .chevron-icon {
    display: none;
  }
  .nav-right-section {
    gap: 4px;
  }
  .workspace-grid {
    grid-template-columns: 1fr 280px;
  }
  .btn-sidebar-drawer-toggle {
    right: 280px;
  }
}

/* Responsive scaling for Single-Line Header */
@media (max-width: 1200px) {
  .top-nav {
    padding: 0 10px;
    gap: 8px;
  }
  .top-main-nav .nav-menu-item {
    padding: 3px 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 980px) {
  .top-nav {
    padding: 0 8px;
    gap: 6px;
  }
  .workspace-grid {
    grid-template-columns: 1fr 280px;
  }
  .btn-sidebar-drawer-toggle {
    right: 280px;
  }
}

@media (max-width: 768px) {
  .top-main-nav {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .top-main-nav::-webkit-scrollbar {
    display: none;
  }
  .top-main-nav .nav-menu-item {
    padding: 3px 6px;
    font-size: 10px;
  }
  .bot-live-pill {
    max-width: 260px;
  }
  .bot-live-prefix {
    display: none;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    overflow-y: auto;
  }
  .btn-sidebar-drawer-toggle {
    display: none;
  }
}

/* 6. Mobile Dropdown & Popover Floating Bounds Safeguard (<580px) */
@media (max-width: 580px) {
  .trader-dropdown-menu {
    position: fixed !important;
    top: 54px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 65px) !important;
  }
  .timer-history-popover {
    position: fixed !important;
    top: 54px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 65px) !important;
  }
}

/* =========================================================================
   Central AI Reasoning Brain (Executive Intelligence Hub)
   ========================================================================= */
.central-brain-live-box {
  background: linear-gradient(145deg, rgba(16, 24, 40, 0.9), rgba(11, 17, 30, 0.96));
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.central-brain-live-box:hover {
  border-color: rgba(0, 210, 255, 0.45) !important;
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.15) !important;
}

.brain-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brain-pulse-ring {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.35));
}

.brain-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brain-title-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.brain-main-title {
  font-weight: 800;
  font-size: 11.5px;
  color: #f8fafc;
  white-space: nowrap;
}

.brain-provider-badge {
  font-size: 9px;
  padding: 1.5px 6px;
  background: rgba(0, 210, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.brain-latency-text {
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-brain-settings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-brain-settings:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  transform: translateY(-1px);
}

/* Executive Verdict Hero Banner */
.brain-verdict-banner-wrap {
  width: 100%;
  margin-bottom: 7px;
}

.brain-verdict-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: all 0.25s ease;
  direction: rtl;
}

.brain-verdict-banner.wait {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.brain-verdict-banner.approve {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 180, 80, 0.1));
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.18);
}

.brain-verdict-banner.veto {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.18), rgba(200, 10, 45, 0.1));
  color: #ff5252;
  border-color: rgba(255, 23, 68, 0.4);
  box-shadow: 0 2px 12px rgba(255, 23, 68, 0.18);
}

/* Brain Metrics Row (2 Micro-Metrics) */
.brain-metrics-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.brain-metrics-row .bm-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
}

.bm-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.bm-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.bm-val {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

/* Persian Chain-of-Thought Rationale Box */
.brain-cot-container {
  background: rgba(4, 9, 20, 0.55);
  border-radius: 8px;
  padding: 8px 10px;
  border-right: 3px solid #00d2ff;
  border-top: 1px solid rgba(0, 210, 255, 0.12);
  border-bottom: 1px solid rgba(0, 210, 255, 0.08);
  border-left: 1px solid rgba(0, 210, 255, 0.08);
  box-sizing: border-box;
}

.brain-cot-title {
  font-weight: 700;
  font-size: 10.5px;
  color: #38bdf8;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  direction: rtl;
}

.brain-cot-text {
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
  text-align: right;
  direction: rtl;
  word-break: break-word;
}

.brain-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.brain-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.brain-chip.catalyst {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.25);
}
.brain-chip.warning {
  background: rgba(255, 145, 0, 0.12);
  color: #ff9100;
  border: 1px solid rgba(255, 145, 0, 0.25);
}

/* AI Intel Dashboard Card */
.ai-intel-dashboard-card {
  background: rgba(10, 16, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}

.weights-chips-group {
  display: flex;
  gap: 5px;
}

.brain-modal-box {
  max-width: 680px !important;
}

.brain-security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 6px;
  margin-bottom: 8px;
  direction: rtl;
}

.brain-security-notice .sec-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.key-status-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition: all 0.2s ease;
  direction: rtl;
}

.key-status-badge.saved {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.15);
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-action .modal-input {
  width: 100%;
  padding-left: 60px !important;
  box-sizing: border-box;
}

.btn-toggle-key {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.1s ease;
}

.btn-toggle-key:hover {
  color: #00d2ff;
  transform: translateY(-50%) scale(1.1);
}

.btn-clear-key {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff5252;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-clear-key:hover {
  background: rgba(255, 23, 68, 0.3);
  color: #fff;
  border-color: #ff1744;
}



/* =========================================================================
   AI CONTINUOUS LEARNING & KNOWLEDGE HUB (دفترچه یادگیری و دانش خودکار هوش)
   ========================================================================= */

/* Top Navbar AI Learning Progress Button (Only Percentage Pill) */
.ai-learning-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 44px;
  padding: 0 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #0b0f19;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.ai-learning-top-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.65);
  transform: translateY(-1px) scale(1.05);
  color: #000;
}

.learning-progress-badge {
  font-size: 12px;
  font-weight: 900;
  color: inherit;
  line-height: 1;
}

/* Modal Customizations */
.learning-modal-box {
  max-width: 960px;
  width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 25, 0.96) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15) !important;
}

.learning-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.learning-modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* KPIs Grid */
.learning-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .learning-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .learning-kpis-grid {
    grid-template-columns: 1fr;
  }
}

.learning-kpi-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.learning-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.learning-kpi-card.highlight-glow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(17, 24, 39, 0.8));
  border-color: rgba(245, 158, 11, 0.35);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
}

.kpi-main-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-number {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent { color: #f59e0b !important; }
.text-cyan { color: #38bdf8 !important; }
.text-emerald { color: #10b981 !important; }

.learning-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2px;
}

.learning-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-caption {
  font-size: 10px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}

/* Tabs Navigation */
.learning-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.learning-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.learning-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.learning-tab-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.tab-count-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.learning-tab-btn.active .tab-count-badge {
  background: rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}

/* Tab 1: Lessons Feed */
.learning-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-title {
  font-size: 12px;
  color: var(--text-dim, #94a3b8);
  font-weight: 700;
}

.filter-chips-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.learn-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.learn-filter-chip.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.lessons-feed-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.lesson-card-item {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease;
}

.lesson-card-item:hover {
  transform: translateX(-2px);
  background: rgba(24, 33, 50, 0.8);
}

.lesson-card-item.win-border {
  border-right: 4px solid #10b981;
}

.lesson-card-item.loss-border {
  border-right: 4px solid #ef4444;
}

.lesson-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-asset-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-coin-tag {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  font-family: monospace;
}

.lesson-side-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.lesson-side-tag.long {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.lesson-side-tag.short {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.lesson-outcome-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.lesson-outcome-badge.win {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.lesson-outcome-badge.loss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.lesson-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

.lesson-badge-new {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.lesson-factor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.factor-label {
  color: var(--text-dim, #94a3b8);
  font-weight: 700;
}

.factor-value {
  color: #38bdf8;
  font-weight: 600;
}

.lesson-text-block {
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
}

.lesson-text-label {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  display: block;
  margin-bottom: 2px;
}

.lesson-text-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
}

.lesson-correction-block {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(16, 185, 129, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #10b981;
}

.correction-label {
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
}

.correction-value {
  color: #e2e8f0;
  line-height: 1.5;
}

/* Tab 2: Skills Grid */
.skills-mastery-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-card-item {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  font-size: 22px;
}

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

.skill-en-name {
  font-size: 10px;
  color: var(--text-muted, #64748b);
  font-family: monospace;
}

.skill-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-score-num {
  font-size: 18px;
  font-weight: 900;
  color: #fbbf24;
}

.skill-status-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #38bdf8, #10b981);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.skill-desc-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Tab 3: Vetoed Patterns */
.vetoes-notice-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #fca5a5;
  margin-bottom: 12px;
}

.veto-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.veto-pattern-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.veto-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.veto-pattern-name {
  color: #ff6b6b;
  font-size: 12px;
}

.veto-lock-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.veto-desc {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

.veto-metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim, #94a3b8);
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

/* Tab 4: Feature Weights */
.weights-explanation-banner {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #7dd3fc;
  margin-bottom: 12px;
}

.feature-weights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.weight-card-item {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weight-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weight-name {
  font-size: 12px;
  color: #fff;
}

.weight-val-badge {
  font-size: 11px;
  color: #fbbf24;
}

.weight-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.weight-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  border-radius: 6px;
}

/* Tab 5: Knowledge Rules */
.knowledge-rules-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-card-item {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-cat-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.rule-name-tag {
  font-size: 11px;
  color: #fff;
}

.rule-impact-tag {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
}

.rule-desc-text {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

.rule-condition-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim, #94a3b8);
}

.rule-cond-code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: monospace;
}

/* Trade Table Date Badges */
.date-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: 0.2px;
}

.date-badge.today {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.date-badge.yesterday {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.date-badge.older {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.time-part {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-dim, #94a3b8);
}

/* 24h & Daily History Filter & Performance Strip */
.history-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(18, 24, 38, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.history-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-history-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #94a3b8);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-history-filter:hover {
  background: rgba(0, 210, 255, 0.12);
  color: #fff;
  border-color: rgba(0, 210, 255, 0.4);
}

.btn-history-filter.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(59, 130, 246, 0.25));
  border-color: #00d2ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.history-metrics-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim, #94a3b8);
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  flex-wrap: wrap;
}

.hist-metric-item strong {
  color: var(--text-main, #f8fafc);
  font-weight: 700;
  margin-left: 2px;
}

.hist-metric-sep {
  color: rgba(255, 255, 255, 0.15);
}

/* ========================================================================= */
/* DUAL TRADING MODE SWITCHER (PAPER / LIVE OURBIT) */
/* ========================================================================= */
.user-tiny-mode-pill {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.user-tiny-mode-pill.paper {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.user-tiny-mode-pill.live {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.45);
  animation: live-dot-ping 1.5s infinite;
}

/* User Menu Dropdown Mode Switcher */
.trading-mode-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.mode-active-indicator {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.mode-active-indicator.paper {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mode-active-indicator.live {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.mode-switcher-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.mode-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  background: var(--bg-card, rgba(30, 41, 59, 0.5));
  color: var(--text-dim, #94a3b8);
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
  position: relative;
}

.mode-switch-btn:hover {
  background: var(--bg-card-hover, rgba(51, 65, 85, 0.6));
  border-color: rgba(255, 255, 255, 0.2);
}

.mode-switch-btn.active#btn-mode-paper {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.mode-switch-btn.active#btn-mode-live {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.mode-switch-btn .mode-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.mode-switch-btn .mode-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mode-switch-btn .mode-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.mode-switch-btn .mode-sub {
  font-size: 9px;
  color: var(--text-dim, #94a3b8);
  margin-top: 2px;
}

.mode-switch-btn .mode-radio-check {
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mode-switch-btn.active .mode-radio-check {
  opacity: 1;
  color: #10b981;
}

.mode-switch-btn.active#btn-mode-live .mode-radio-check {
  color: #f59e0b;
}

/* =========================================================================
   Paper Trading Reset Account Button & Modal Enhancements
   ========================================================================= */
.wallet-btn.reset-btn.highlight-reset-btn {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.16), rgba(255, 87, 34, 0.16)) !important;
  color: #ff7675 !important;
  border: 1px solid rgba(255, 118, 117, 0.4) !important;
  font-weight: 800 !important;
}

.wallet-btn.reset-btn.highlight-reset-btn:hover {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.28), rgba(255, 87, 34, 0.28)) !important;
  border-color: rgba(255, 118, 117, 0.7) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.3);
}

.btn-history-filter.btn-reset-paper-strip {
  margin-inline-start: auto;
  background: rgba(255, 71, 87, 0.12) !important;
  color: #ff6b81 !important;
  border: 1px solid rgba(255, 71, 87, 0.35) !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-history-filter.btn-reset-paper-strip:hover {
  background: rgba(255, 71, 87, 0.25) !important;
  border-color: rgba(255, 71, 87, 0.7) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
}

.chip-preset.reset-chip {
  background: rgba(255, 71, 87, 0.12) !important;
  color: #ff6b81 !important;
  border: 1px solid rgba(255, 71, 87, 0.35) !important;
  font-weight: 800;
  padding: 2px 7px !important;
  font-size: 10px !important;
}

.chip-preset.reset-chip:hover {
  background: rgba(255, 71, 87, 0.25) !important;
  color: #fff !important;
  border-color: rgba(255, 71, 87, 0.6) !important;
}

/* Hide test reset buttons when in Live Mode */
body.mode-live .btn-reset-paper-strip,
body.mode-live .reset-chip,
body.mode-live .highlight-reset-btn {
  display: none !important;
}
