/* ========================================
   SMART MONEY STYLES
   ======================================== */

/* Flow Badge */
.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
  .zone-badge {
    font-size: 13px;
    font-weight: 500;
  }

.flow-badge .flow-icon {
  font-size: 16px;
}

.flow-inflow {
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
}

.flow-outflow {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
}

/* Price Change */
.price-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.price-change .material-symbols-rounded {
  font-size: 16px;
}

.price-change.positive {
  color: var(--positive);
}

.price-change.negative {
  color: var(--negative);
}

/* Report Button */
.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid #ffffff29;
  color: #ffffff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.report-btn:hover {
  background: #104fcc;
  color: #fff;
}

.report-btn .material-symbols-rounded {
  font-size: 18px;
}

:root[data-theme="light"] .report-btn {
    border-color: #d3d3d3;
    color: #006dda;
}

:root[data-theme="light"] .report-btn:hover {
  background: #f1f1f160;
  color: #006dda;
}

/* ========================================
   REPORT PANEL STYLES
   ======================================== */

/* Report Panel Overlay */
.report-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
}

.report-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Report Panel */
.report-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100vh;
  background: var(--panel);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-panel.active {
  transform: translateX(0);
}

:root[data-theme="dark"] .report-panel {
  background: #1a1d26;
  border-left: 1px solid #2a2e3a;
}

:root[data-theme="light"] .report-panel {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
}

/* Report Panel Header */
.report-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.report-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.report-panel-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.report-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.report-panel-close .close-icon {
  font-size: 24px;
}

/* Report Panel Body */
.report-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Dark theme scrollbar styling for report panel - all screens */
:root[data-theme="dark"] .report-panel-body::-webkit-scrollbar {
  width: 8px;
}

:root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-track {
  background: #1a1d26;
  border-radius: 4px;
}

:root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-thumb {
  background: #3a3f4b;
  border-radius: 4px;
}

:root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-thumb:hover {
  background: #4a4f5b;
}

:root[data-theme="dark"] .report-panel-body {
  scrollbar-width: thin;
  scrollbar-color: #3a3f4b #1a1d26;
}

/* Report Header */
.report-header {
  margin-bottom: 24px;
}

.report-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.report-price-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.report-change {
  font-size: 18px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.report-change.positive {
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
}

.report-change.negative {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
}

/* Report Section */
.report-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.report-section:last-child {
  border-bottom: none;
}

.report-section h3 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Report Grid */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.report-metric {
  background: var(--card);
  padding: 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:root[data-theme="dark"] .report-metric {
  background: #0f0f0f;
}

:root[data-theme="light"] .report-metric {
  background: #f9fafb;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.metric-value.positive {
  color: var(--positive);
}

.metric-value.negative {
  color: var(--negative);
}

.metric-value.highlight {
  color: #104fcc;
}

/* Flow Card */
.report-flow-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 2px solid;
}

.inflow-card {
  border-color: rgba(62, 207, 142, 0.3);
  background: rgba(62, 207, 142, 0.05);
}

.outflow-card {
  border-color: rgba(255, 95, 86, 0.3);
  background: rgba(255, 95, 86, 0.05);
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.flow-icon-large {
  font-size: 42px;
  color: var(--text);
}

.inflow-card .flow-icon-large {
  color: #3ecf8e;
}

.outflow-card .flow-icon-large {
  color: #ff5f56;
}

.flow-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.flow-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.flow-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
}

.detail-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* Analysis Card */
.analysis-card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid;
  margin-bottom: 16px;
}

.sentiment-bullish,
.sentiment-very-bullish {
  border-left-color: #3ecf8e;
  background: rgba(62, 207, 142, 0.05);
}

.sentiment-bearish,
.sentiment-very-bearish {
  border-left-color: #ff5f56;
  background: rgba(255, 95, 86, 0.05);
}

.sentiment-neutral {
  border-left-color: #9ea1ab;
  background: rgba(158, 161, 171, 0.05);
}

.analysis-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.analysis-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.sentiment-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.strength-badge {
  background: rgba(158, 161, 171, 0.15);
  color: var(--text);
}

.strength-very-strong {
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
}

.strength-strong {
  background: rgba(16, 79, 204, 0.15);
  color: #104fcc;
}

.confidence-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.analysis-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Technical Indicators */
.indicators-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.indicator-box {
  background: var(--card);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .indicator-box {
  background: #0f0f0f;
}

:root[data-theme="light"] .indicator-box {
  background: #f9fafb;
}

.indicator-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.indicator-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Support/Resistance */
.support-resistance {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sr-level {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
}

.support-level {
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.resistance-level {
  background: rgba(255, 95, 86, 0.1);
  border: 1px solid rgba(255, 95, 86, 0.3);
}

.sr-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sr-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.support-level .sr-value {
  color: #3ecf8e;
}

.resistance-level .sr-value {
  color: #ff5f56;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .report-panel {
    width: 100%;
    max-width: 100%;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .indicators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile: slightly smaller report button text */
  .report-btn {
    font-size: 12px;
  }
}

/* Medium screens - tablets and laptops */
@media (min-width: 769px) and (max-width: 1400px) {
  .report-btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 12px;
    gap: 5px;
  }

  .report-btn .material-symbols-rounded {
    font-size: 16px;
  }

  /* Report Panel compact for medium screens */
  .report-panel {
    width: 380px;
  }

  .report-panel-header {
    padding: 14px 18px;
  }

  .report-panel-header h2 {
    font-size: 14px;
  }

  .report-panel-close .close-icon {
    font-size: 20px;
  }

  .report-panel-body {
    padding: 16px;
  }

  /* All text to 13px */
  .report-header h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .report-price {
    font-size: 18px;
  }

  .report-change {
    font-size: 13px;
    padding: 3px 8px;
  }

  .report-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .report-section h3 {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .report-grid {
    gap: 10px;
  }

  .report-item label {
    font-size: 11px;
  }

  .report-item span {
    font-size: 13px;
  }

  .signal-strength-label,
  .signal-strength-value {
    font-size: 13px;
  }

  .indicator-item {
    padding: 10px;
  }

  .indicator-label {
    font-size: 11px;
  }

  .indicator-value {
    font-size: 13px;
  }

  .analysis-summary p {
    font-size: 13px;
    line-height: 1.5;
  }

  .analysis-badge {
    font-size: 11px;
  }

  .sr-label {
    font-size: 11px;
  }

  .sr-value {
    font-size: 13px;
  }

  /* Dark theme scrollbar for report panel */
  :root[data-theme="dark"] .report-panel-body::-webkit-scrollbar {
    width: 8px;
  }

  :root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-track {
    background: #1a1d26;
    border-radius: 4px;
  }

  :root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-thumb {
    background: #3a3f4b;
    border-radius: 4px;
  }

  :root[data-theme="dark"] .report-panel-body::-webkit-scrollbar-thumb:hover {
    background: #4a4f5b;
  }

  :root[data-theme="dark"] .report-panel-body {
    scrollbar-width: thin;
    scrollbar-color: #3a3f4b #1a1d26;
  }
}

/* ========================================
   COIN DETAIL PANEL STYLES
   ======================================== */

/* Coin Panel Overlay */
.coin-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
}

.coin-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Coin Panel */
.coin-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  height: 100vh;
  background: var(--panel);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.coin-panel.active {
  transform: translateX(0);
}

:root[data-theme="dark"] .coin-panel {
  background: #0d0d0f;
  border-left: 1px solid #2325288c;
}

:root[data-theme="dark"] .coin-panel::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 99, 255, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="light"] .coin-panel {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
}

/* Coin Panel Header */
.coin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.coin-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.coin-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.coin-panel-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.coin-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.coin-panel-close .close-icon {
  font-size: 24px;
}

/* Coin Panel Body */
.coin-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;

}

/* Coin Panel Loader */
.coin-panel-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
}

.coin-panel-loader p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* TradingView Chart */
.coin-chart-section {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.coin-chart-section iframe {
  display: block;
}

/* Coin Panel Content */
.coin-current-event {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.coin-current-event-label {
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.coin-current-event-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.coin-price-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.coin-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.coin-price-change {
  font-size: 14px;
  font-weight: 600;
}

.coin-price-change.positive {
  color: #22c55e;
}

.coin-price-change.negative {
  color: #ef4444;
}

/* Coin Stats Grid */
.coin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.coin-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.coin-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.coin-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Volatility styles */
.volatility-cell.volatility-low {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.volatility-cell.volatility-medium {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}

.volatility-cell.volatility-high {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.volatility-cell.volatility-very-high {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.volatility-cell.volatility-low .volatility-value {
  color: #22c55e;
}

.volatility-cell.volatility-medium .volatility-value {
  color: #eab308;
}

.volatility-cell.volatility-high .volatility-value,
.volatility-cell.volatility-very-high .volatility-value {
  color: #ef4444;
}

.volatility-warning {
  font-size: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Coin History Section */
.coin-history-section {
  margin-top: 24px;
}

.coin-history-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.coin-history-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-history-title .material-symbols-rounded {
  font-size: 18px;
  color: var(--text-secondary);
}

/* History Tabs */
.coin-history-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 8px;
}

.coin-history-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.coin-history-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.coin-history-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.coin-history-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.coin-history-tab .tab-dot.support {
  background: #00ffcb;
}

.coin-history-tab .tab-dot.resistance {
  background: #ff3b3b;
}

.coin-history-tab .tab-count {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* Levels Info Panel */
.coin-levels-info {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.level-nearest {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-nearest .level-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-nearest .level-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.level-nearest .level-price {
  color: var(--text);
}

#nearest-support .level-price {
  color: #22c55e;
}

#nearest-resistance .level-price {
  color: #ef4444;
}

.level-nearest .level-distance {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.coin-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coin-history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.coin-history-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.coin-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
}

/* Pulse animation for the most recent signal (first item) */
.coin-history-item:first-child .coin-history-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  transform: translate(-50%, -50%);
  animation: dotPulse 1.5s ease-out infinite;
  box-shadow: 0 0 6px currentColor;
}

.coin-history-item:first-child .coin-history-dot.support::after {
  box-shadow: 0 0 8px #00ffcb;
}

.coin-history-item:first-child .coin-history-dot.resistance::after {
  box-shadow: 0 0 8px #da3232;
}

@keyframes dotPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

.coin-history-dot.support {
  background: #00ffcb;
}

.coin-history-dot.resistance {
  background: #da3232;
}

.coin-history-content {
  flex: 1;
}

.coin-history-event {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Confirmation badge for breakouts */
.confirm-badge {
  font-size: 10px;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Nearest opposite level in history item */
.coin-history-opposite {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  display: inline-block;
}

.coin-history-time {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Breakout notification style - like mobile notification */
.coin-history-breakout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coin-history-breakout.bullish {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.coin-history-breakout.bearish {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.coin-history-breakout .breakout-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
}

.coin-history-breakout .breakout-content {
  flex: 1;
}

.coin-history-breakout .breakout-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.coin-history-breakout.bullish .breakout-text {
  color: #22c55e;
}

.coin-history-breakout.bearish .breakout-text {
  color: #ef4444;
}

.coin-history-breakout .breakout-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-history-breakout .breakout-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.coin-history-breakout .confirm-badge {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
}

.coin-history-breakout.bullish .confirm-badge.confirmed {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.coin-history-breakout.bearish .confirm-badge.confirmed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Pending (broken but not confirmed) */
.coin-history-breakout .confirm-badge.pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.coin-history-breakout.pending {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.coin-history-breakout .breakout-parent {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  opacity: 0.7;
}

/* Dynamic level badge (from Binance technical analysis) */
.dynamic-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 6px;
  background: rgba(243, 186, 47, 0.15);
  border: 1px solid rgba(243, 186, 47, 0.3);
  border-radius: 4px;
  font-size: 9px;
  color: #f3ba2f;
  font-weight: 500;
  vertical-align: middle;
}

.dynamic-level-badge .dynamic-icon {
  width: 10px;
  height: 10px;
}

.coin-history-item.dynamic-level {
  opacity: 0.9;
}

.coin-history-item.dynamic-level .coin-history-dot.support {
  background: #00ffcb;
}

.coin-history-item.dynamic-level .coin-history-dot.resistance {
  background: #ff3b3b;
}

/* Standalone breakout notification (for opposite tab) */
.coin-history-breakout.standalone {
  margin-top: 0;
  width: 100%;
  margin-left: 0;
}

/* Standalone breakout item container */
.coin-history-item.standalone-breakout {
  padding: 0;
  border-left: none;
}

.coin-history-item.standalone-breakout .coin-history-breakout {
  margin: 0;
  border-radius: 10px;
}

/* Breakout confirmed level indicator */
.level-distance.breakout-confirmed {
  color: #22c55e;
  font-weight: 600;
}

.coin-history-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Panel Actions Container */
.coin-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Notification Button */
.coin-notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coin-notify-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.coin-notify-btn .material-symbols-rounded {
  font-size: 20px;
}

/* Binance Link Button */
.coin-binance-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #1463ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.coin-binance-link .material-symbols-rounded {
  font-size: 20px;
}

.coin-binance-link:hover {
  background: #2d7aff;
}

.coin-binance-link img {
  width: 20px;
  height: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .coin-panel {
    width: 100%;
  }
  
  /* History tabs on mobile */
  .coin-history-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .coin-history-tab {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .coin-levels-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .level-nearest {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Scrollbar for coin panel */
:root[data-theme="dark"] .coin-panel-body::-webkit-scrollbar {
  width: 8px;
}

:root[data-theme="dark"] .coin-panel-body::-webkit-scrollbar-track {
  background: #0d0d0f;
  border-radius: 4px;
}

:root[data-theme="dark"] .coin-panel-body::-webkit-scrollbar-thumb {
  background: #3a3f4b;
  border-radius: 4px;
}

:root[data-theme="dark"] .coin-panel-body::-webkit-scrollbar-thumb:hover {
  background: #4a4f5b;
}

:root[data-theme="dark"] .coin-panel-body {
  scrollbar-width: thin;
  scrollbar-color: #3a3f4b #0d0d0f;
}

/* ========================================
   SMART MONEY TAB - NEW COMPONENTS
   ======================================== */

/* Watchlist column (1st) */
.smart-money-table td:nth-child(1),
.smart-money-table th:nth-child(1) {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  padding: 0 4px 0 16px !important;
}

/* Index column (2nd) */
.smart-money-table td:nth-child(2),
.smart-money-table th:nth-child(2) {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  padding-left: 34px !important;
  padding-right: 14px !important;
}

/* Asset column (3rd) */
.smart-money-table td:nth-child(3),
.smart-money-table th:nth-child(3) {
  min-width: 180px;
}

/* Strength column (4th) */
.smart-money-table td:nth-child(4),
.smart-money-table th:nth-child(4) {
  width: auto;
}

/* Direction Badge - pill style matching zone badges */
.direction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.direction-badge .material-symbols-rounded {
  font-size: 14px;
  flex-shrink: 0;
}

/* Price change next to coin name - hidden on desktop, shown on mobile */
.asset-price-change {
  display: none;
}

/* Price under direction - hidden on desktop, shown on mobile */
.direction-mobile-price {
  display: none;
}

/* Signal Strength Dots column */
.signal-strength-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.signal-cell {
  vertical-align: middle;
}

.strength-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Medium screens: reduce strength dot to 4x4 px */
@media (min-width: 769px) and (max-width: 1400px) {
  .strength-dot {
    width: 4px;
    height: 4px;
  }
}

.dot-empty {
  background: #333;
}

.dot-bullish {
  background: #3cc890;
  box-shadow: 0 0 4px rgba(60, 200, 144, 0.5);
}

.dot-bearish {
  background: #cc394e;
  box-shadow: 0 0 4px rgba(204, 57, 78, 0.5);
}

/* Bias cell - hidden completely (direction shown in asset cell now) */
.bias-cell {
  display: none !important;
}

/* Smart Money table - auto column widths */
.smart-money-table {
  table-layout: auto !important;
}

/* Mobile Zone Label under dots - hidden on desktop */
.mobile-zone-label {
  display: none;
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
}

.zone-label-premium {
  color: #cc394e;
}

.zone-label-discount {
  color: #3cc890;
}

.zone-label-neutral {
  color: #888;
}

/* Direction badge hover - dashed underline on text */
.direction-badge:hover .direction-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

/* Fallback static classes (when inline styles not used) */
/* Bullish direction - зелёный спектр (как zone-discount) */
.direction-up {
  background: #283d2a;
  color: #80c085;
  cursor: pointer;
}

/* Strong bullish - белый на зелёном (как hover) */
.direction-up-strong {
  background: #237823;
  color: #ffffff;
  cursor: pointer;
}

.direction-up:hover .direction-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #80c085;
  text-underline-offset: 3px;
}

/* Bearish direction - красный спектр (как zone-premium) */
.direction-down {
  background: #3d2828;
  color: #c08080;
  cursor: pointer;
}

/* Strong bearish - белый на красном (как hover) */
.direction-down-strong {
  background: #782323;
  color: #ffffff;
  cursor: pointer;
}

.direction-down:hover .direction-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #c08080;
  text-underline-offset: 3px;
}

/* Structure Pattern - моноширинный компактный */
.structure-pattern-cell {
  max-width: none !important;
  width: auto !important;
}

.structure-pattern {
  display: inline-block;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 11px;
  font-family: 'SF Mono', 'Consolas', monospace;
  color: #fff;
  white-space: nowrap;
}

:root[data-theme="light"] .structure-pattern {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* HTF Trend Badge - pill style with soft glow */
.htf-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.htf-trend-badge .material-symbols-rounded {
  font-size: 12px;
  flex-shrink: 0;
}

/* Medium screens: reduce HTF trend badge font size to 11px */
@media (min-width: 769px) and (max-width: 1400px) {
  .htf-trend-badge {
    font-size: 11px;
  }
  .htf-trend-badge .material-symbols-rounded {
    font-size: 10px;
  }
}

.trend-bullish {
  background: #2a312b;
  color: #858385;
  transition: all 0.15s ease;
}

/* Strong bullish - белый на зелёном (как hover) */
.trend-bullish-strong {
  background: #237823;
  color: #ffffff;
  transition: all 0.15s ease;
}

.trend-bearish {
  background: #382b2b;
  color: #a59495;
  transition: all 0.15s ease;
}

/* Strong bearish - белый на красном (как hover) */
.trend-bearish-strong {
  background: #782323;
  color: #ffffff;
  transition: all 0.15s ease;
}

.trend-transition {
  color: #8998ea;
  transition: all 0.15s ease;
}

.trend-neutral {
  color: var(--text-muted, #ffffffdc);
  transition: all 0.15s ease;
}
/* ===== ROW HOVER - все badges становятся яркими ===== */
.smart-money-table tr:hover .trend-bullish,
.smart-money-table tr:hover .trend-bullish-strong {
  background: #237823;
  color: #ffffff;
}

.smart-money-table tr:hover .trend-bearish,
.smart-money-table tr:hover .trend-bearish-strong {
  background: #782323;
  color: #ffffff;
}



/* HTF Trend badge hover - keep original colors, no change */
.smart-money-table tr:hover .htf-trend-badge[data-direction="bullish"] {
  /* Keep bullish green color */
}
.smart-money-table tr:hover .htf-trend-badge[data-direction="bearish"] {
  /* Keep bearish red color */
}
.smart-money-table tr:hover .htf-trend-badge[data-direction="neutral"] {
  /* Keep neutral color */
}

/* Direction badges hover - TEXT ONLY, same colors as Zone */
.smart-money-table tr:hover .direction-badge[data-direction="bullish"] {
  color: #02af9b !important;
}
.smart-money-table tr:hover .direction-badge[data-direction="bearish"] {
  color: #f6605f !important;
}

/* Zone badge hover - TEXT ONLY (bright colors) */
.smart-money-table tr:hover .zone-badge[data-direction="bullish"] {
  color: #02af9b !important;
}
.smart-money-table tr:hover .zone-badge[data-direction="bearish"] {
  color: #f6605f !important;
}
.smart-money-table tr:hover .zone-badge[data-direction="neutral"] {
  color: #ffffff !important;
}

/* Legacy class-based hovers */
.smart-money-table tr:hover .direction-up,
.smart-money-table tr:hover .direction-up-strong {
  background: #237823;
  color: #ffffff;
}

.smart-money-table tr:hover .direction-down,
.smart-money-table tr:hover .direction-down-strong {
  background: #782323;
  color: #ffffff;
}

.smart-money-table tr:hover .zone-premium,
.smart-money-table tr:hover .zone-premium-deep {
  background: #782323;
  color: #ffffff;
}

.smart-money-table tr:hover .zone-discount,
.smart-money-table tr:hover .zone-discount-deep {
  background: #1a5a8a;
  color: #ffffff;
}

.smart-money-table tr:hover .zone-neutral {
  color: #ffffff;
}

/* Tags hover on row */
.smart-money-table tr:hover .tag-bullish,
.smart-money-table tr:hover .tag-bos-bullish,
.smart-money-table tr:hover .tag-ob-bullish,
.smart-money-table tr:hover .tag-fvg-bullish,
.smart-money-table tr:hover .tag-htf,
.smart-money-table tr:hover .tag-bos,
.smart-money-table tr:hover .tag-ob,
.smart-money-table tr:hover .tag-fvg {
  background: #237823;
  color: #ffffff;
}

.smart-money-table tr:hover .tag-bearish,
.smart-money-table tr:hover .tag-bos-bearish,
.smart-money-table tr:hover .tag-ob-bearish,
.smart-money-table tr:hover .tag-fvg-bearish,
.smart-money-table tr:hover .tag-choch,
.smart-money-table tr:hover .tag-htf-bearish {
  background: #782323;
  color: #ffffff;
}

.smart-money-table tr:hover .tag-sweep,
.smart-money-table tr:hover .tag-default {
  background: #4a4550;
  color: #ffffff;
}

/* Tags - flat context-based colors */
.tags-cell {
  max-width: 180px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Table tags - neutral by default, colored on row hover */
.smc-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
  cursor: help;
  position: relative;
  /* Neutral style like history-tag */
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #888;
}

/* CSS tooltips disabled - using JS tooltips instead */

/* Direction and HTF badges - cursor for tooltip hint */
.direction-badge,
.htf-trend-badge {
  position: relative;
  cursor: help;
}

/* All tag types - neutral by default */
.tag-default,
.tag-bullish,
.tag-bos-bullish,
.tag-ob-bullish,
.tag-fvg-bullish,
.tag-htf,
.tag-bearish,
.tag-bos-bearish,
.tag-ob-bearish,
.tag-fvg-bearish,
.tag-choch,
.tag-htf-bearish,
.tag-sweep,
.tag-bos,
.tag-ob,
.tag-fvg {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #888;
  transition: all 0.15s ease;
}

/* ===== ROW HOVER - Tags become colored ===== */

/* Bullish tags on row hover */
.smart-money-table tr:hover .tag-bullish,
.smart-money-table tr:hover .tag-bos-bullish,
.smart-money-table tr:hover .tag-ob-bullish,
.smart-money-table tr:hover .tag-fvg-bullish,
.smart-money-table tr:hover .tag-htf,
.smart-money-table tr:hover .tag-bos,
.smart-money-table tr:hover .tag-ob,
.smart-money-table tr:hover .tag-fvg {
  background: rgba(60, 200, 144, 0.15);
  color: #3cc890;
}

/* Bearish tags on row hover */
.smart-money-table tr:hover .tag-bearish,
.smart-money-table tr:hover .tag-bos-bearish,
.smart-money-table tr:hover .tag-ob-bearish,
.smart-money-table tr:hover .tag-fvg-bearish,
.smart-money-table tr:hover .tag-choch,
.smart-money-table tr:hover .tag-htf-bearish {
  background: rgba(204, 57, 78, 0.15);
  color: #eb425b;
}

/* Neutral/Sweep tags on row hover */
.smart-money-table tr:hover .tag-sweep {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.smart-money-table tr:hover .tag-default {
  background: rgba(255, 255, 255, 0.15);
  color: #aaa;
}

/* Zone Badge - компактный */
.tag-bos,
.tag-ob,
.tag-fvg {
  background: rgba(60, 200, 144, 0.1);
  border: 1px solid rgba(60, 200, 144, 0.3);
  color: #3cc890;
  transition: all 0.15s ease;
}
.tag-bos:hover,
/* Zone Badge - компактный */
.zone-badge {
  display: inline-block;

}

/* Medium screens - reduce zone badge font size to 11px */
@media (min-width: 769px) and (max-width: 1400px) {
  .zone-badge {
    font-size: 11px;
  }
}

/* Premium zone - коралловый спектр #f6605f */
.zone-premium {
  color: #b46e6e;
  transition: all 0.15s ease;
}

/* Deep premium - яркий коралловый */
.zone-premium-deep {
  color: #f6605f;
  transition: all 0.15s ease;
}

/* Discount zone - бирюзовый спектр #02af9b */
.zone-discount {
  color: #64a09c;
  transition: all 0.15s ease;
}

/* Deep discount - яркий бирюзовый */
.zone-discount-deep {
  color: #02af9b;
  transition: all 0.15s ease;
}

.zone-neutral {
  color: #a0a0a0;
  transition: all 0.15s ease;
}

/* Sparkline column - align to right with fixed width */
th.sparkline {
  text-align: right;
  padding-right: 25px;
}

.sparkline-cell {
  text-align: right;
  padding-right: 25px;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.sparkline-cell svg {
  display: inline-block;
  vertical-align: middle;
}

/* Light theme adjustments */
:root[data-theme="light"] .tag-default {
  background: #e8e6eb;
  color: #666;
}

:root[data-theme="light"] .tag-bullish {
  background: #e8ede9;
  color: #5a5e5b;
}

:root[data-theme="light"] .tag-bearish {
  background: #ede8e8;
  color: #6a5a5b;
}

:root[data-theme="light"] .tag-bos,
:root[data-theme="light"] .tag-choch,
:root[data-theme="light"] .tag-ob,
:root[data-theme="light"] .tag-fvg,
:root[data-theme="light"] .tag-sweep {
  background: #e8ede9;
  color: #5a5e5b;
}

:root[data-theme="light"] .tag-htf {
  background: #e8ede9;
  color: #5a5e5b;
}

:root[data-theme="light"] .tag-htf-bearish {
  background: #ede8e8;
  color: #6a5a5b;
}

:root[data-theme="light"] .trend-neutral {
  background: #e8e6eb;
  color: #666;
}

:root[data-theme="light"] .trend-bullish {
  background: #e0f2e8;
  color: #1a8a50;
}

:root[data-theme="light"] .trend-bearish {
  background: #f2e0e2;
  color: #a83040;
}

:root[data-theme="light"] .zone-neutral {
  background: #e8e6eb;
  color: #5a5e5b;
}

:root[data-theme="light"] .zone-premium {
  background: #ede8e8;
  color: #6a5a5b;
}

:root[data-theme="light"] .zone-discount {
  background: #e8ede9;
  color: #5a5e5b;
}

:root[data-theme="light"] .direction-up {
  background: #e0f2e8;
  color: #1a8a50;
}

:root[data-theme="light"] .direction-down {
  background: #f2e0e2;
  color: #a83040;
}

/* Mobile responsive */
@media (max-width: 768px) {
  /* Dark background for Smart Money table header on mobile */
  :root[data-theme="dark"] .smart-money-table thead,
  :root[data-theme="dark"] .smart-money-table thead th {
    background: #0d0d0d !important;
  }
  
  /* :root[data-theme="dark"] .table-container .smart-money-table,
  :root[data-theme="dark"] .table-container .smart-money-table thead,
  :root[data-theme="dark"] .table-container .smart-money-table tbody,
  :root[data-theme="dark"] .table-container .smart-money-table tr,
  :root[data-theme="dark"] .table-container .smart-money-table td,
  :root[data-theme="dark"] .table-container .smart-money-table th {
    min-width: 15px !important;
  } */
  
  /* Direction column wider on mobile (4th column - after watchlist, index, asset) */
  :root[data-theme="dark"] .table-container .smart-money-table td:nth-child(4),
  :root[data-theme="dark"] .table-container .smart-money-table tbody td:nth-child(4) {
    min-width: 115px !important;
  }
  
  /* Override 5th column width from main table styles */
  :root[data-theme="dark"] .table-container .smart-money-table td:nth-child(5),
  :root[data-theme="dark"] .table-container .smart-money-table th:nth-child(5) {
    width: 140px !important;
    padding-left: 38px;
    padding-right: 38px;
  }
  
  :root[data-theme="dark"] .table-container .smart-money-table th
  { padding-top:17px; padding-bottom: 19px; background: #000 !important;}

  /* Row separator lines via box-shadow */
  :root[data-theme="dark"] .smart-money-table tbody tr td {
    border-bottom: 1px solid #171717 !important;
  }

  :root[data-theme="light"] .table-container .smart-money-table,
  :root[data-theme="light"] .table-container .smart-money-table thead,
  :root[data-theme="light"] .table-container .smart-money-table tbody,
  :root[data-theme="light"] .table-container .smart-money-table tr,
  :root[data-theme="light"] .table-container .smart-money-table td,
  :root[data-theme="light"] .table-container .smart-money-table th {
    min-width: 15px !important;
  }
  
  /* Override table min-width for Smart Money on mobile */
  .smart-money-table {
    min-width: 380px !important;
  }
  
  .structure-pattern-cell,
  .tags-cell {
    display: none;
  }
  @media (max-width: 768px) {
  .category-tab.active {
    background: #1f2430 !important;
    color: #ffffff !important;
    border: none !important;
  }
}
  .direction-badge {
    padding: 3px 6px 3px 5px;
    border-radius: 3px !important;
    font-size: 12.5px;
  }
  
  /* Price change next to coin name - visible on mobile */
  .asset-price-change {
    display: inline;
    font-size: 11px;
    font-weight: 600;
    margin-left: 1px;
  }
  
  .asset-price-change.positive {
    color: #00c853;
  }
  
  .asset-price-change.negative {
    color: #ff5252;
  }
  
  /* Price under direction badge - visible on mobile */
  .direction-mobile-price {
    display: block;
    margin-top: 4px;
  }
  
  .direction-price-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
  
  /* Remove background for direction badges on mobile */
  .direction-up,
  .direction-down {
    background: transparent !important;
    margin-top: 4px;
    padding-bottom: 9px !important;
  }
  
  .htf-trend-badge {
    padding: 5px 8px 5px 7px;
    border-radius: 6px !important;
    font-size: 12px;
  }
  
  .zone-badge {
    padding: 3px 6px 3px 5px;
    border-radius: 3px !important;
    font-size: 12px;
  }
  
  .smc-tag {
    padding: 1px 3px;
    font-size: 9px;
  }
  
  /* Reset column widths for Smart Money mobile */
  .smart-money-table td,
  .smart-money-table th {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }
  
  /* Hide watchlist and index on mobile */
  .smart-money-table td:nth-child(1),
  .smart-money-table th:nth-child(1),
  .smart-money-table td:nth-child(2),
  .smart-money-table th:nth-child(2) {
    display: none !important;
  }
  
  /* First visible column (Asset, 3rd) - sticky */
  .smart-money-table td:nth-child(3),
  .smart-money-table th:nth-child(3) {
    min-width: 180px !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    background: #000 !important;
  }
  
  
  /* Signal dots column - compact */
  .smart-money-table .signal-cell {
   padding-left: 60px !important;
   padding-right: 40px;
  
  }
}

/* History tags in sidebar */
.coin-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.history-tag {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #888);
}

.coin-history-dot.neutral {
  background: #888;
}

/* ========================================
   SMC ANALYSIS SECTION (Coin Panel)
   ======================================== */

.smc-analysis-section {
  margin-bottom: 24px;
}

/* Score Card */
.smc-score-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

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

.smc-score-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.smc-score-value {
  font-size: 28px;
  font-weight: 700;
}

.smc-score-value.high { color: #22c55e; }
.smc-score-value.medium { color: #eab308; }
.smc-score-value.low { color: #9ca3af; }

.smc-score-max {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.smc-score-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.smc-score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  animation: scoreBarFill 0.6s ease-out forwards;
  transform-origin: left;
}

@keyframes scoreBarFill {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.smc-score-fill.high { background: linear-gradient(90deg, #22c55e, #4ade80); }
.smc-score-fill.medium { background: linear-gradient(90deg, #eab308, #facc15); }
.smc-score-fill.low { background: linear-gradient(90deg, #6b7280, #9ca3af); }

.smc-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.score-item.active .score-check { color: #22c55e; }
.score-item.inactive .score-check { color: #6b7280; }
.score-item.inactive .score-label { color: var(--text-secondary); }

.score-label {
  flex: 1;
  color: var(--text);
}

.score-points {
  font-weight: 600;
  font-size: 12px;
  min-width: 28px;
  text-align: right;
}

.score-item.active .score-points { color: #22c55e; }
.score-item.inactive .score-points { color: #6b7280; }

/* Structure Section */
.smc-structure-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.smc-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.smc-section-title .material-symbols-rounded {
  font-size: 18px;
}

.smc-structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.smc-tf-column {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.smc-tf-header {
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.smc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}

.smc-item-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.smc-none { color: #6b7280; }
.smc-bullish { color: #22c55e; font-weight: 600; }
.smc-bearish { color: #e32020; font-weight: 600; }
.smc-neutral { color: var(--text); font-weight: 500; }

/* Tags Section */
.smc-tags-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.smc-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tags in coin panel - neon style with SMC colors */
.smc-tags-list .smc-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  cursor: help;
  /* Default blue */
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* BOS - Bullish momentum (green) */
.smc-tags-list .smc-tag.tag-bos {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* BOS - Bearish (red) */
.smc-tags-list .smc-tag.tag-bos-bearish {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* CHoCH - Reversal signal (purple) */
.smc-tags-list .smc-tag.tag-choch {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

/* OB - Order Block Bullish (green) */
.smc-tags-list .smc-tag.tag-ob-bullish {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* OB - Order Block Bearish (red) */
.smc-tags-list .smc-tag.tag-ob-bearish {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* FVG - Fair Value Gap Bullish (cyan/green) */
.smc-tags-list .smc-tag.tag-fvg-bullish {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* FVG - Fair Value Gap Bearish (red) */
.smc-tags-list .smc-tag.tag-fvg-bearish {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Sweep - Liquidity sweep (orange) */
.smc-tags-list .smc-tag.tag-sweep {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

/* HTF Alignment Bullish (gold) */
.smc-tags-list .smc-tag.tag-htf {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fbbf24;
}

/* HTF Alignment Bearish (red-gold) */
.smc-tags-list .smc-tag.tag-htf-bearish {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Zone value colors */
.zone-value.discount { color: #22c55e; }
.zone-value.premium { color: #e32020; }

/* ========================================
   KEY LEVELS SECTION (Coin Panel)
   ======================================== */

.coin-key-levels-section {
  margin-bottom: 24px;
}

.coin-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.coin-section-title .material-symbols-rounded {
  font-size: 18px;
  color: var(--text-secondary);
}

.coin-key-levels-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-level-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.key-level-item:hover {
  background: rgba(255, 255, 255, 0.05);
}


.key-level-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.key-level-item.support .key-level-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.key-level-item.resistance .key-level-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.key-level-icon .material-symbols-rounded {
  font-size: 18px;
}

.key-level-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.key-level-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.key-level-type {
  font-size: 11px;
  color: var(--text-secondary);
}

.level-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.level-status.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.level-status.broken {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* Mobile responsive for SMC Analysis */
@media (max-width: 480px) {
  .smc-score-value {
    font-size: 24px;
  }
  
  .smc-structure-grid {
    gap: 8px;
  }
  
  .smc-tf-column {
    padding: 10px;
  }
  
  .smc-item {
    font-size: 11px;
  }
  
  .key-level-item {
    padding: 10px;
  }
  
  .key-level-price {
    font-size: 13px;
  }
}

/* ========================================
   SMC CONTROLS - Hide Low-Cap Toggle
   ======================================== */

.smc-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Когда SMC активен - прижать filter-wrapper вправо */
.filter-section.smc-active .filter-wrapper {
  margin-left: auto;
}

.smc-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 15px;
  margin-bottom: 3px;
  cursor: pointer;
  user-select: none;
}

.smc-toggle-text {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* iOS-style toggle switch - КОМПАКТНЫЙ ПЕРЕКЛЮЧАТЕЛЬ */
.smc-toggle-switch {
  position: relative;
  width: 37px;
  height: 19px;
  padding-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.smc-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.smc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #363c4d;
  border: 1px solid #333952;
  border-radius: 18px;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.smc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  top: 1px;
  background-color: #ccc;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Состояние checked */
.smc-toggle-switch input:checked + .smc-toggle-slider {
  background-color: #3b82f6;
}

.smc-toggle-switch input:checked + .smc-toggle-slider:before {
  transform: translateX(14px);
  background-color: #fff;
}

/* Hover эффект */
.smc-toggle-switch:hover .smc-toggle-slider {
  background-color: rgba(255, 255, 255, 0.25);
}

.smc-toggle-switch:hover input:checked + .smc-toggle-slider {
  background-color: #2563eb;
}

/* Light theme toggle adjustments */
:root[data-theme="light"] .smc-toggle-text {
  color: #555;
}

:root[data-theme="light"] .smc-toggle-slider {
  background-color: rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"] .smc-toggle-slider:before {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .smc-toggle-switch:hover .smc-toggle-slider {
  background-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .smc-toggle-switch input:checked + .smc-toggle-slider {
  background-color: #3b82f6;
}

/* Hide on mobile - shown in filter modal instead */
@media (max-width: 768px) {
  .smc-controls-wrapper {
    display: none !important;
  }
}

/* ========================================
   SMC FILTER MODAL STYLES
   ======================================== */

.smc-filter-modal .filter-modal-body {
  padding: 16px;
}

/* Filter toggle row (for mobile Hide Low-Cap) */
.smc-filter-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.smc-filter-toggle-label {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

/* Toggle in modal - larger size for mobile */
.smc-filter-toggle-row .smc-toggle-switch {
  width: 48px;
  height: 26px;
}

.smc-filter-toggle-row .smc-toggle-slider:before {
  height: 22px;
  width: 22px;
}

.smc-filter-toggle-row .smc-toggle-switch input:checked + .smc-toggle-slider:before {
  transform: translateX(22px);
}

/* Show only on mobile */
.smc-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .smc-mobile-only {
    display: block;
  }
}

/* Filter button groups */
.smc-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smc-filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.smc-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.smc-filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Colored filter buttons */
.smc-filter-btn.bullish.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.smc-filter-btn.bearish.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.smc-filter-btn.discount.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.smc-filter-btn.premium.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

/* SMC HTF grid (multi-select) - inline row */
.smc-htf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.smc-htf-grid .filter-modal-checkbox {
  margin: 0;
}

/* SMC Markers grid - inline row */
.smc-markers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.smc-markers-grid .filter-modal-checkbox {
  margin: 0;
}

/* ========================================
   COIN NAME STYLES
   ======================================== */

/* Container for asset column */
.asset-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Main ticker symbol row */
.asset-info .asset-symbol {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.coin-fullname {
  font-size: 11px;
  padding-top: 5px;
  font-weight: 500;
  color: #828998;
  line-height: 1.2;
  display: block;
}

.coin-fullname .quote {
  font-weight: 500;
}

:root[data-theme="light"] .coin-fullname {
  color: #8a8f9d;
}

/* Asset direction badge (small badge next to ticker) */
.asset-direction-badge {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

.asset-dir-bullish {
  background: #0e211f;
  color: #0bba74;
}

.asset-dir-bearish {
  background: #27151d;
  color: #ff4761;
}

.asset-dir-neutral {
  background: #1a1d24;
  color: #828998;
}

/* Hide asset direction badge on mobile for non-SmartMoney tables */
@media (max-width: 768px) {
  .levels-table .asset-direction-badge,
  .rsi-table .asset-direction-badge,
  .volume-table .asset-direction-badge,
  .candle-table .asset-direction-badge,
  .formations-table .asset-direction-badge,
  .trends-table .asset-direction-badge {
    display: none !important;
  }
}
