/* ==========================================================================
   StarTON TON Ecosystem - Scope-Isolated Stylesheet (.ton-eco-*)
   Theme: Modern Web3 Light Theme with Electric Blue & Cosmic Accents
   ========================================================================== */

.ton-eco-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Workspace Header & Ticker Bar */
.ton-eco-workspace-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}

.ton-eco-ticker-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  padding: 10px 22px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.ton-eco-ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ton-eco-ticker-label {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.ton-eco-ticker-val {
  color: #0f172a;
  font-weight: 800;
}

.ton-eco-ticker-badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}
.ton-eco-ticker-badge.positive {
  background: #ecfdf5;
  color: #059669;
}
.ton-eco-ticker-badge.negative {
  background: #fef2f2;
  color: #dc2626;
}

.ton-eco-ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-weight: 800;
}

.ton-eco-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: tonPulse 1.8s infinite;
}

@keyframes tonPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ton-eco-ticker-sep {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

/* Global Workspace Action Bar */
.ton-eco-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
}

.ton-eco-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ton-eco-global-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 580px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
  transition: all 0.2s ease;
}
.ton-eco-global-search:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.ton-eco-global-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: #0f172a;
}
.ton-eco-btn-search {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.ton-eco-btn-search:hover {
  background: #0369a1;
}

.ton-eco-sidebar-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* Main Workspace Layout (Sidebar + Content Pane) */
.ton-eco-workspace-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar Styles */
.ton-eco-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 20px;
}

.ton-eco-sidebar-head {
  padding: 4px 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.ton-eco-sidebar-filter input {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  outline: none;
  margin-bottom: 12px;
}
.ton-eco-sidebar-filter input:focus {
  border-color: #0284c7;
  background: #ffffff;
}

.ton-eco-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.ton-eco-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ton-eco-nav-btn:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.ton-eco-nav-btn.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
}

.ton-eco-nav-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
}
.ton-eco-nav-btn.active .ton-eco-nav-letter {
  background: #0284c7;
  color: #ffffff;
}

.ton-eco-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ton-eco-nav-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.ton-eco-nav-btn.active .ton-eco-nav-badge {
  background: #ffffff;
  color: #0284c7;
  border-color: #bae6fd;
}

.ton-eco-sidebar-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

/* Content Pane & Dynamic Pages */
.ton-eco-content-pane {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  min-height: 800px;
}

.ton-eco-page {
  display: none;
}
.ton-eco-page.active {
  display: block;
  animation: tonFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tonFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ton-eco-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.ton-eco-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ton-eco-page-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.ton-eco-page-header p {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}

/* Metric Cards Grid */
.ton-eco-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ton-eco-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  transition: all 0.2s ease;
}
.ton-eco-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.ton-eco-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ton-eco-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ton-eco-card-icon {
  font-size: 1.2rem;
}
.ton-eco-card-main-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ton-eco-card-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Panels */
.ton-eco-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ton-eco-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Chips & Badges */
.ton-eco-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}
.ton-eco-chip.blue { background: #e0f2fe; color: #0284c7; }
.ton-eco-chip.green { background: #ecfdf5; color: #059669; }
.ton-eco-chip.purple { background: #f5f3ff; color: #7c3aed; }

/* Buttons */
.ton-eco-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: all 0.2s ease;
}
.ton-eco-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
}

.ton-eco-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #334155 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.ton-eco-btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ton-eco-btn-sm:hover {
  background: #f1f5f9;
}

.ton-eco-btn-link {
  display: inline-flex;
  align-items: center;
  color: #0284c7;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}
.ton-eco-btn-link:hover {
  text-decoration: underline;
}

/* Architecture Multi-Chain Boxes */
.ton-eco-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ton-eco-arch-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  border-top: 4px solid #0284c7;
}
.ton-eco-arch-box.workchains { border-top-color: #2563eb; }
.ton-eco-arch-box.shardchains { border-top-color: #8b5cf6; }

.ton-eco-arch-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.ton-eco-arch-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #475569;
}

/* Code Blocks */
.ton-eco-code-block {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 14px;
}
.ton-eco-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 700;
}
.ton-eco-btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
}
.ton-eco-code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

/* Terminal Multi-Pane Layout */
.ton-eco-terminal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.ton-eco-terminal-main {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.ton-eco-terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 12px 18px;
  border-bottom: 1px solid #334155;
}
.ton-eco-terminal-head span {
  color: #f8fafc !important;
}

.ton-eco-terminal-feed-table {
  max-height: 520px;
  overflow-y: auto;
}

.ton-eco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}
.ton-eco-table th {
  background: #1e293b;
  color: #94a3b8;
  padding: 10px 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.ton-eco-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
}
.ton-eco-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Graph Canvas Container */
.ton-eco-graph-wrapper {
  position: relative;
  background: #0b1120;
  border-radius: 16px;
  overflow: hidden;
  height: 560px;
}
.ton-eco-graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.ton-eco-graph-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.ton-eco-graph-sidebar {
  position: absolute;
  top: 14px;
  right: -320px;
  width: 280px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 10;
}
.ton-eco-graph-sidebar.open {
  right: 14px;
}
.ton-eco-btn-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Chart Canvas Container */
.ton-eco-chart-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.ton-eco-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.ton-eco-btn-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
}
.ton-eco-btn-tframe {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
}
.ton-eco-btn-tframe.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ton-eco-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.ton-eco-chart-legend strong {
  color: #0f172a;
}

/* Hub Cards & Projects */
.ton-eco-hub-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.ton-eco-hub-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12);
}
.ton-eco-hub-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.ton-eco-hub-card h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.ton-eco-hub-card p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}
.ton-eco-hub-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284c7;
}

.ton-eco-project-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ton-eco-wallet-item,
.ton-eco-defi-card,
.ton-eco-nft-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* API Console */
.ton-eco-api-console-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}
.ton-eco-select, .ton-eco-select-sm, .ton-eco-input-sm, .ton-eco-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.ton-eco-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}
.ton-eco-api-response-box {
  background: #0f172a;
  color: #38bdf8;
  border-radius: 12px;
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

/* Glossary */
.ton-eco-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.ton-eco-glossary-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.ton-eco-glossary-item strong {
  color: #0284c7;
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.ton-eco-glossary-item p {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .ton-eco-workspace-body {
    grid-template-columns: 1fr;
  }
  .ton-eco-sidebar-toggle {
    display: block;
  }
  .ton-eco-sidebar {
    display: none;
    position: static;
  }
  .ton-eco-sidebar.mobile-open {
    display: block;
    animation: tonFadeIn 0.2s ease;
  }
  .ton-eco-terminal-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TON Chart & Cryptocurrency Market Analytics Styles
   ========================================================================== */

.stm-chart-asset-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stm-asset-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.stm-asset-tab:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.12);
}

.stm-asset-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.stm-asset-tab .icon {
  font-size: 1.35rem;
}

.stm-asset-tab .name {
  font-size: 1rem;
  font-weight: 800;
}

.stm-asset-tab .label {
  font-size: 0.76rem;
  opacity: 0.85;
}

.stm-asset-tab.active .label {
  color: #e0f2fe;
}

/* Summary Card */
.stm-chart-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.stm-summary-asset-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.stm-asset-symbol {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.stm-asset-fullname {
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
}

.stm-asset-type-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.stm-verified-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.stm-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.stm-main-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.stm-price-change-pill {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
}

.stm-price-change-pill.pos {
  background: #ecfdf5;
  color: #059669;
}

.stm-price-change-pill.neg {
  background: #fef2f2;
  color: #dc2626;
}

.stm-live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: stmPulse 1.8s infinite;
}

@keyframes stmPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stm-range-bar-box {
  max-width: 440px;
}

.stm-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 6px;
}

.stm-range-track-bg {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.stm-range-track-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.stm-summary-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 18px;
}

.stm-quick-stat-item {
  display: flex;
  flex-direction: column;
}

.stm-quick-stat-item .lbl {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stm-quick-stat-item .val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.stm-quick-stat-item .sub {
  font-size: 0.74rem;
  color: #0284c7;
  font-weight: 700;
}

/* Toolbar & Controls */
.stm-chart-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.stm-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stm-tool-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.stm-btn-segmented {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.stm-btn-segmented button {
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stm-btn-segmented button:hover {
  color: #0f172a;
}

.stm-btn-segmented button.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.stm-indicators-bar {
  display: flex;
  gap: 12px;
}

.stm-chk-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.stm-icon-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stm-icon-btn:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

/* Legend Bar */
.stm-chart-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #334155;
  flex-wrap: wrap;
}

.stm-chart-legend-bar strong {
  color: #0f172a;
}

/* Detailed 10-Statistics Grid */
.stm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stm-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.stm-stat-box .label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stm-stat-box .val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.stm-stat-box .desc {
  font-size: 0.76rem;
  color: #0284c7;
  font-weight: 600;
}

/* Converter Card */
.stm-converter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.stm-converter-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.stm-converter-result-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.stm-converter-result-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0284c7;
  margin-top: 4px;
}

/* News Grid */
.stm-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.stm-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.stm-news-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
}

.stm-news-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 8px;
}

.stm-news-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 8px;
}

.stm-news-card p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px;
  flex-grow: 1;
}

.stm-news-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.stm-news-link:hover {
  text-decoration: underline;
}

.stm-badge-mini {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

.stm-badge-mini.dex {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.stm-badge-mini.cex {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.stm-btn-link-sm {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.stm-btn-link-sm:hover {
  background: #0284c7;
  color: #ffffff;
}

.stm-text-pos {
  color: #16a34a;
  font-weight: 700;
}

.stm-text-neg {
  color: #dc2626;
  font-weight: 700;
}

.stm-table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
