:root { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, Arial, sans-serif; 
}

body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--text); 
  line-height: 1.6;
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 24px 16px; 
}

/* Navigation */
.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 16px 24px; 
  background: var(--surface); 
  border-bottom: 1px solid var(--border); 
  position: sticky; 
  top: 0; 
  z-index: 100;
}

.nav .brand { 
  color: #a9d1ff; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Page Headers */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), #1976d2);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 16px 0;
  text-align: center;
}

.cta-banner p {
  margin: 0;
  color: white;
}

/* Search Form */
.search-form {
  margin-bottom: 24px;
}

.search-form .input-group {
  max-width: 500px;
}

/* Table Styles */
.table-wrap { 
  overflow: auto; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  background: var(--card);
}

table.coins { 
  width: 100%; 
  margin: 0;
}

.coins th, .coins td { 
  padding: 16px; 
  border-bottom: 1px solid var(--border); 
  text-align: left; 
  vertical-align: middle;
}

.coins th { 
  background: var(--surface); 
  position: sticky; 
  top: 0; 
  font-weight: 600;
  color: var(--text);
}

.coins tbody tr:hover {
  background: var(--surface);
}

.coin-icon { 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  margin-right: 12px;
  vertical-align: middle;
}

.coin-info {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

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

.coin-name {
  font-weight: 600;
}

.coin-symbol {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.price-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.change-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.change-badge.positive { 
  color: var(--green); 
  background: rgba(32, 212, 138, 0.1);
}

.change-badge.negative { 
  color: var(--red); 
  background: rgba(255, 107, 107, 0.1);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

/* Coin Detail Page */
.coin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.coin-actions {
  display: flex;
  gap: 12px;
}

.coin-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

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

.hero-icon { 
  width: 64px; 
  height: 64px; 
  border-radius: 50%; 
}

.coin-title h1 {
  margin: 0;
  font-size: 2.5rem;
}

.symbol {
  color: var(--text-secondary);
  font-weight: 400;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-change {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Stats Grid */
.coin-stats {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Alert Section */
.alert-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--text);
}

.alert-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text);
}

.alert-section label {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.alert-section .form-group {
  margin-bottom: 20px;
}

.alert-section input,
.alert-section select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
}

.alert-section input:focus,
.alert-section select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.25);
}

.alert-section button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.alert-section button:hover {
  background: #4ea8ff;
}

.existing-alerts {
  margin-bottom: 24px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.alert-info {
  flex: 1;
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.create-alert {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Login Prompt */
.login-prompt {
  position: sticky;
  top: 100px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

/* Auth Pages */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-form {
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Dashboard */
.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
}

.dashboard-stats {
  margin-bottom: 40px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

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

.section-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alerts-list {
  max-height: 400px;
  overflow-y: auto;
}

.alert-item.active {
  border-left: 3px solid var(--success-color);
}

.alert-item.triggered {
  border-left: 3px solid var(--text-secondary);
  opacity: 0.7;
}

/* Watchlist */
.watchlist-actions {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.empty-content h3, .empty-content h4 {
  margin: 0 0 12px;
  color: var(--text-primary);
}

.empty-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.empty-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Alerts Page */
.alerts-summary {
  margin-bottom: 32px;
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-alerts .summary-icon {
  background: var(--success-color);
  color: white;
}

.triggered-alerts .summary-icon {
  background: var(--text-secondary);
  color: white;
}

.summary-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.summary-content p {
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.alerts-filters {
  margin-bottom: 24px;
  text-align: center;
}

.alerts-table {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.alert-condition {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.condition-type {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.condition-price {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
.footer { 
  padding: 24px 16px; 
  text-align: center; 
  opacity: 0.7; 
  border-top: 1px solid var(--border-color); 
  margin-top: 40px; 
}

/* Alerts Container */
.alerts-container {
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }
  
  .nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .coin-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .coin-title h1 {
    font-size: 2rem;
  }
  
  .price-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .current-price {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .dashboard-stats .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .empty-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .coin-nav {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .coin-actions {
    justify-content: center;
  }
  
  .hero-icon {
    width: 48px;
    height: 48px;
  }
}

/* Dark theme Bootstrap overrides */
.table-dark {
  --bs-table-bg: var(--card-bg);
  --bs-table-border-color: var(--border-color);
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.2s;
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-color: #ffffff;
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-success {
  --bs-btn-bg: var(--success);
  --bs-btn-border-color: var(--success);
  --bs-btn-color: #ffffff;
  background: var(--success);
  border-color: var(--success);
}

.btn-danger {
  --bs-btn-bg: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.form-control {
  background-color: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

.form-control:focus {
  background-color: var(--input-bg);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.form-select {
  background-color: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.card-body {
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pager styles */
.pager { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 12px; 
  justify-content: center;
}

.pager button { 
  padding: 8px 16px; 
  background: var(--card-bg); 
  color: var(--text-primary); 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  cursor: pointer; 
  transition: all 0.2s;
}

.pager button:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.pager button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageLabel {
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

/* Language toggle styles */

/* VoltChain theme variables moved to theme.css */

/* global background + text */
body{ background:var(--bg); color:var(--text); }

/* header/nav + table headers */
.nav{ background:var(--surface); border-bottom:1px solid var(--border); }
.coins th{ background:var(--surface); }

/* tables, cards, borders */
.table-wrap{ border-color:var(--border); }
.coins th,.coins td{ border-bottom:1px solid var(--border); }
.news-card,.kv li{ background:var(--card); border:1px solid var(--border); }

/* text colors for news page */
.news-title{ color:var(--text); }
.news-meta,.news-summary,.muted{ color:var(--muted); }

/* buttons + positive/negative */
/* Removed duplicate btn definition */
.pos{ color:var(--green); font-weight:600; }
.neg{ color:var(--red);   font-weight:600; }

/* VoltChain visibility overrides using variables from theme.css */
:root{
  --row:#0f1625;
  --row-alt:#0c1322;
  --row-hover:#16233c;
  --text-weak:#b8c6dd;
  --text-strong:#ffffff;
  --green-bg: rgba(31,225,154,0.14);
  --red-bg: rgba(255,107,107,0.14);
}

/* Global text visibility fixes */
body{ background:var(--bg); color:var(--text); }

/* Targeted text visibility fixes for coin pages - preserve semantic colors */
.coin-page h1, .coin-page h2, .coin-page h3, .coin-page h4, .coin-page h5, .coin-page h6,
.coin-info h1, .coin-info h2, .coin-info h3, .coin-info h4, .coin-info h5, .coin-info h6,
.coin-name {
  color: var(--text);
  font-weight: 700;
}

/* Specific elements that need visibility fixes without breaking semantic colors */
.coin-page :where(p,span):not(.pos):not(.neg):not(.change-badge):not(.stat-label):not(.coin-symbol):not(.current-price):not(.symbol) {
  color: var(--text);
}

/* Keep accent colors for important elements */
.current-price, .price-value {
  color: var(--primary-color);
  font-weight: 700;
}

/* Preserve visual hierarchy - keep labels muted, values prominent */
.stat-value {
  color: var(--text);
  font-weight: 700;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.coin-symbol, .coin-page .symbol {
  color: var(--muted);
}

/* Coin statistics containers */
.kv li, .stat-item, .market-stat {
  color: var(--text);
}

.kv li strong {
  color: var(--text);
  font-weight: 600;
}

/* Chart and trading view containers */
.chart-container, .tradingview-widget-container {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* News section on coin pages with proper hierarchy */
.news-title, .news-item h3, .news-item h4 {
  color: var(--text);
}

.news-meta, .news-summary, .news-description {
  color: var(--text-secondary);
}

/* Ensure semantic colors are preserved on coin pages */
.coin-page .pos, .coin-page .change-positive {
  color: var(--green) !important;
}

.coin-page .neg, .coin-page .change-negative {
  color: var(--red) !important;
}

/* Muted text elements */
.text-muted, .muted, small, .small {
  color: var(--text-secondary);
}

/* Coin table text visibility */
.coins td, .coins th, .table th, .table td {
  color: var(--text);
}

/* Form placeholders */
input::placeholder, textarea::placeholder, select::placeholder {
  color: var(--input-placeholder);
  opacity: 0.8;
}

/* Targeted form fixes without breaking variants */
.form-control, .form-select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.25);
  background: var(--input-bg);
  color: var(--text);
}

/* Table contrast */
.table-wrap{ border-color:var(--border); }
.coins{ background:transparent; }
.coins th{ background:var(--surface); color:var(--text); border-bottom:1px solid var(--border); }
.coins td, .coins th{ border-bottom:1px solid var(--border); }

/* Row backgrounds + hover */
.coins tbody tr{ background:var(--row); }
.coins tbody tr:nth-child(even){ background:var(--row-alt); }
.coins tbody tr:hover{ background:var(--row-hover); }

/* Make prices pop */
.coins td[data-price], [data-price]{
  color:var(--text-strong) !important;
  font-weight:700;
  letter-spacing:.2px;
  opacity:1 !important;           /* kill any faint styles */
  filter:none !important;
}

/* 24h/7d chips with stronger contrast */
.coins td.pos, .coins td.neg{
  display:inline-block;
  padding:.28rem .48rem;
  border-radius:8px;
  font-weight:700;
  min-width:72px;
  text-align:center;
}
.coins td.pos{ color:var(--green); background:var(--green-bg); }
.coins td.neg{ color:var(--red);   background:var(--red-bg); }

/* "View" button edge/highlight */
/* Removed duplicate btn definition with inset shadow */

/* News cards readability (just in case) */
.news-card{ background:var(--row); border:1px solid var(--border); }
.news-title{ color:var(--text-strong); }
.news-meta,.news-summary{ color:var(--text-weak); }

/* === COMPREHENSIVE MOBILE RESPONSIVE DESIGN === */

/* Mobile Navigation with Hamburger Menu */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav {
    position: relative;
    padding: 12px 16px;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
  }
  
  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: block;
    text-align: center;
    font-size: 16px;
  }
  
  .nav-text {
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
  }
  
  #fiatForm {
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }
}

/* Mobile Typography */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .container {
    padding: 16px 12px;
  }
  
  .cta-banner {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
  }
  
  .cta-banner p {
    font-size: 14px;
    margin: 0 0 12px;
  }
}

/* Mobile Search and Forms */
@media (max-width: 768px) {
  .search-form .input-group {
    max-width: 100%;
  }
  
  .search-form .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px 16px;
  }
  
  .search-form .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .screener {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .screener input,
  .screener select {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
  }
  
  .screener .btn {
    grid-column: span 2;
    padding: 12px;
    font-size: 16px;
    margin-top: 8px;
  }
}

/* Mobile Highlights Section */
@media (max-width: 768px) {
  .hl-tiles {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hl-tile {
    padding: 20px;
    text-align: center;
  }
  
  .hl-num {
    font-size: 1.5rem;
  }
  
  .hl-card {
    padding: 16px;
  }
  
  .hl-card h4 {
    font-size: 1.1rem;
  }
}

/* Mobile News Heat */
@media (max-width: 768px) {
  .nh-head {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .nh-tabs button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .nh-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nh-title {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Mobile Movers Section */
@media (max-width: 768px) {
  .mv__bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .mv__controls {
    flex-direction: column;
    gap: 12px;
  }
  
  .mv__tabs button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .mv__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .mv__card {
    padding: 16px;
  }
}

/* Mobile Table Layout */
@media (max-width: 768px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  
  .coins {
    min-width: 600px;
  }
  
  .coins th, .coins td {
    padding: 12px 8px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .coin-icon {
    width: 20px;
    height: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }
  
  .action-buttons .btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Mobile Card Layout for Small Screens */
.mobile-coins {
  display: none;
}

.mobile-coin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-coin-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-coin-header .coin-icon {
  width: 32px;
  height: 32px;
}

.mobile-coin-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.mobile-coin-info small {
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-coin-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.mobile-coin-changes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mobile-change-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.mobile-change-badge.positive {
  color: var(--green);
  background: var(--green-bg);
}

.mobile-change-badge.negative {
  color: var(--red);
  background: var(--red-bg);
}

.mobile-coin-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.mobile-coin-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .table-wrap {
    display: none;
  }
  
  .mobile-coins {
    display: block;
  }
  
  /* Hide 7d change column on mobile tables */
  .coins th:nth-child(5), .coins td:nth-child(5) {
    display: none;
  }
}

/* Very Small Screens (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 12px 8px;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .cta-banner {
    padding: 12px;
    margin: 16px 0;
  }
  
  .screener {
    grid-template-columns: 1fr;
  }
  
  .screener .btn {
    grid-column: span 1;
  }
  
  .mobile-coin-card {
    padding: 12px;
  }
  
  .mobile-coin-header .coin-icon {
    width: 28px;
    height: 28px;
  }
  
  .mobile-coin-price {
    font-size: 1.2rem;
  }
  
  .mobile-coin-actions {
    flex-direction: column;
  }
  
  .mobile-coin-actions .btn {
    font-size: 16px;
    padding: 12px;
  }
}

/* Touch-Friendly Buttons */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .pager button {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0 4px;
  }
}

/* Auth Pages Mobile */
@media (max-width: 768px) {
  .auth-container {
    padding: 20px 0;
    min-height: 50vh;
  }
  
  .auth-card {
    padding: 32px 20px;
    margin: 0 16px;
    border-radius: 12px;
  }
  
  .auth-header h2 {
    font-size: 1.5rem;
  }
}

/* Dashboard Mobile */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .dashboard-section {
    padding: 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
  
  .mobile-coin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .mobile-coin-header .coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
  
  .mobile-coin-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
  }
  
  .mobile-coin-info small {
    color: var(--muted);
    font-size: 12px;
  }
  
  .mobile-coin-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
  }
  
  .mobile-coin-changes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .mobile-change-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
  }
  
  .mobile-change-badge.positive {
    color: var(--green);
    background: var(--green-bg);
  }
  
  .mobile-change-badge.negative {
    color: var(--red);
    background: var(--red-bg);
  }
  
  .mobile-coin-actions {
    display: flex;
    gap: 8px;
  }
  
  .mobile-coin-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Show table by default, hide mobile cards */
.mobile-coins {
  display: none !important;
}

/* Force mobile cards to show on small screens */
@media (max-width: 480px) {
  .mobile-coins {
    display: block !important;
  }
}

/* Mobile Search Form */
@media (max-width: 768px) {
  .search-form .input-group {
    max-width: 100%;
  }
  
  .search-form .btn {
    padding: 8px 16px;
  }
}

/* Mobile News Grid */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .news-card {
    padding: 12px;
  }
  
  .news-title {
    font-size: 15px;
  }
}

/* Mobile Pagination */
@media (max-width: 768px) {
  .pager {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  
  .pager button {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  #pageLabel {
    min-width: 60px;
    font-size: 13px;
  }
}

/* Mobile Container */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
  .btn {
    min-height: 44px; /* Apple recommended touch target */
    padding: 10px 16px;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 6px 12px;
  }
}

/* Screener Form Styling */
.screener{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 12px;
}

.screener input,.screener select{
  padding:8px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size: 14px;
}

.screener input:focus,.screener select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(78, 168, 255, 0.2);
}

.screener .btn{
  padding:8px 10px;
  font-size: 14px;
}

/* Mobile responsive screener */
@media (max-width: 768px) {
  .screener {
    gap: 6px;
  }
  
  .screener input, .screener select {
    padding: 6px;
    font-size: 13px;
    min-width: 120px;
  }
  
  .screener .btn {
    padding: 6px 8px;
    font-size: 13px;
  }
}

/* Currency selector styling */
.nav select{ 
  background:var(--surface); 
  color:var(--text); 
  border:1px solid var(--border); 
  border-radius:8px; 
  padding:6px 8px; 
  font-size: 14px;
}

.nav select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(78, 168, 255, 0.2);
}

.sortable{ cursor:pointer; }
.sortable::after{ content:" ⇅"; opacity:.6; font-size:.9em; }

.skeleton .shimmer{
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

/* === VoltChain table compact mode & alignment === */
.coins th, .coins td{ padding:10px 12px; line-height:1.2; }
.coins tbody tr{ height:56px; }

/* force coin icons to a sane size everywhere */
.coins td img,
.icon{
  width:24px !important;
  height:24px !important;
  border-radius:50%;
  object-fit:contain;
  vertical-align:middle;
  margin-right:8px;
}

/* right-align numeric columns for readability */
.coins td:nth-child(3),
.coins td:nth-child(4),
.coins td:nth-child(5){ text-align:right; white-space:nowrap; }

/* actions column */
.coins td:last-child{ text-align:right; }
.coins .btn{ padding:6px 10px; }

/* Security enhancements for registration forms */
.flex{ display:flex; gap:8px; align-items:center; }
.btn.ghost{ background:transparent; border:1px solid var(--border-color); color:var(--text-primary); padding:8px 10px; cursor:pointer; border-radius:4px; }
.btn.ghost:hover{ background:var(--card-bg); }
.pw-meter{ height:8px; background:#243245; border-radius:8px; margin:8px 0 6px; position:relative; overflow:hidden; }
.pw-meter .bar{ position:absolute; left:0; top:0; bottom:0; width:0%; transition:width .25s ease; }
.terms{ margin:10px 0; display:block; font-size:.95rem; }
.terms input[type="checkbox"]{ margin-right:8px; }
.terms a{ color:var(--primary-color); text-decoration:none; }
.terms a:hover{ text-decoration:underline; }

/* Dashboard onboarding + verify styles */
.onboard{
  background: #0f1625;
  border: 1px solid var(--border-color, #22314a);
  border-radius: 12px; padding: 14px; margin: 10px 0;
}
.onboard h3{ margin: 0 0 6px; color: #eaf2ff; }
.onboard ol{ margin: 6px 0 10px 18px; color: #c9d5ea; }
.onboard .actions{ display:flex; gap:8px; flex-wrap:wrap; }
.onboard .actions .btn{ padding:8px 12px; }

/* Verify banner polish */
.verify-banner{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 12px; margin:10px 0;
  background:#0f1a28;           /* a bit brighter */
  border:1px solid #1e2f4b;
  border-radius:10px;
}
.verify-banner .btn{
  padding:8px 12px;
  pointer-events:auto;          /* ensure it's clickable */
  opacity:1;                    /* full brightness */
}
.verify-banner .btn:hover{ filter:brightness(1.1); }

.quick-actions{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); margin:12px 0; }
.qa-card{ background:var(--row,#0f1625); border:1px solid var(--border,#22314a); border-radius:12px; padding:12px; }
.qa-card h3{ margin:0 0 8px; }
.qa-row{ display:flex; gap:8px; flex-wrap:wrap; }
.qa-input{ flex:1; min-width:140px; padding:8px; border-radius:8px; border:1px solid var(--border); background:#0f141b; color:#e8f1ff; }
.qa-results{ margin-top:6px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.qa-results div{ padding:8px; cursor:pointer; }
.qa-results div:hover{ background:#12213a; }
.qa-msg{ margin-top:6px; font-size:.95rem; }
.qa-hint{ margin-top:6px; opacity:.75; font-size:.9rem; }

/* === Brighten the Add-to-Watchlist panel === */
:root{
  --panel:#111a2b;            /* slightly lighter than page bg */
  --panel-elev:#14253f;       /* elevated card */
  --text-strong:#eaf2ff;
  --text-normal:#c9d5ea;
  --border-strong:#263955;
}

.quick-actions .qa-card{
  background: var(--panel-elev) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px;
  color: var(--text-normal);
  opacity: 1 !important;                 /* prevent accidental dimming */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.quick-actions .qa-card h3{
  color: var(--text-strong);
  margin: 0 0 8px;
}

.quick-actions .qa-input{
  background: var(--panel) !important;
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 10px;
}

.quick-actions .qa-input::placeholder{
  color: #9eb0cc;
  opacity: 1;
}

.quick-actions .qa-input:focus{
  outline: 0;
  border-color: #3a7bff;
  box-shadow: 0 0 0 2px rgba(58,123,255,.25);
}

/* search dropdown list */
.quick-actions .qa-results{
  background: var(--panel) !important;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  max-height: 240px;
  overflow: auto;
  margin-top: 6px;
}

.quick-actions .qa-results div{
  color: var(--text-strong);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}

.quick-actions .qa-results div:hover{
  background: #1a2c49;
}

/* ensure the Add button is visible */
.quick-actions .qa-card .btn{
  padding: 9px 14px;
  filter: none;
  opacity: 1 !important;
}

/* Top movers widget */
.movers{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); margin:10px 0 14px; }
.mover-col{ background:var(--row,#0f1625); border:1px solid var(--border,#22314a); border-radius:12px; padding:10px; }
.mover-col h3{ margin:4px 2px 8px; }
.mover-list{ display:flex; flex-direction:column; gap:6px; }
.mover{ display:flex; align-items:center; gap:10px; padding:8px; border:1px solid var(--border,#22314a); border-radius:10px; text-decoration:none; color:inherit; }
.mover:hover{ background:#12213a; }
.mover .icon{ width:24px; height:24px; border-radius:50%; object-fit:contain; }
.mover .meta{ flex:1; }
.mover .name{ font-weight:600; }
.mover .sym{ opacity:.7; font-weight:500; margin-left:6px; }
.mover .price{ opacity:.9; }
.mover .chip{ min-width:72px; text-align:center; padding:.28rem .5rem; border-radius:8px; font-weight:700; }
.mover .chip.pos{ color:var(--green,#1fe19a); background:rgba(31,225,154,.14); }
.mover .chip.neg{ color:var(--red,#ff6b6b);  background:rgba(255,107,107,.14); }
.empty{ opacity:.7; padding:8px; }

/* === Movers Pro === */
.mv{ margin: 10px 0 16px; }
.mv__bar{ display:flex; align-items:center; justify-content:space-between; margin: 2px 0 8px; }
.mv__title{ margin:0; }
.mv__controls{ display:flex; gap:10px; align-items:center; }

.mv__tabs{ display:flex; gap:6px; }
.mv__tabs button{
  background:#0f1625; color:#cfe0ff; border:1px solid var(--border,#22314a);
  padding:6px 10px; border-radius:999px; cursor:pointer
}
.mv__tabs button.active{ background:#1e3a8a; border-color:#3b82f6; color:#eaf2ff; }

.mv__toggle{ display:flex; gap:6px; align-items:center; opacity:.9; font-size:.95rem; }

.mv__grid{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.mv__card{
  background:var(--row,#0f1625); border:1px solid var(--border,#22314a);
  border-radius:12px; padding:10px;
}
.mv__cardHead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.mv__view{ font-size:.92rem; opacity:.9; }

.mv__list{ display:flex; flex-direction:column; gap:6px; }
.mv__item{
  display:grid; grid-template-columns:24px 1fr auto 90px; gap:10px; align-items:center;
  padding:8px; border:1px solid var(--border,#22314a); border-radius:10px; text-decoration:none; color:inherit;
}
.mv__item:hover{ background:#12213a; }
.mv__icon{ width:24px; height:24px; border-radius:50%; object-fit:contain; }
.mv__name{ font-weight:600; display:flex; gap:6px; align-items:baseline; }
.mv__sym{ opacity:.75; font-weight:500; }
.mv__price{ opacity:.9; text-align:right; }
.mv__spark{ height:24px; width:90px; opacity:.9 }
.mv__chip{
  justify-self:end; min-width:72px; text-align:center; padding:.28rem .5rem; border-radius:8px; font-weight:700;
}
.mv__chip.pos{ color:var(--green,#1fe19a); background:rgba(31,225,154,.14); }
.mv__chip.neg{ color:var(--red,#ff6b6b);  background:rgba(255,107,107,.14); }

/* skeletons */
.mv__skel{ height:40px; border-radius:10px; background:linear-gradient(90deg,#0f1828 25%,#1a2740 50%,#0f1828 75%); background-size:200% 100%; animation:mvShimmer 1.2s infinite; }
@keyframes mvShimmer{ 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* compact on mobile */
@media (max-width: 540px){
  .mv__item{ grid-template-columns:24px 1fr auto; }
  .mv__spark{ display:none; }
}

/* --- Layout container --- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* --- Highlights: 2-column like CoinGecko --- */
.hl-wrap{ max-width:1200px; margin:14px auto 12px; padding:0 16px; }
.hl-bar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; position: relative; }
.hl-bar h2{ margin:0; color:#dbe8ff; text-shadow:0 2px 6px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.85); z-index:1; position: relative; }
.hl-bar label{ color:#c9d5ea; font-size:.95rem; }
.hl-tiles.hl--areas{
  display:grid; gap:12px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "cap trending"
    "vol gainers";
}
#hlCap{ grid-area: cap; }
#hlVol{ grid-area: vol; }
.hl-card:nth-of-type(1){ grid-area: trending; } /* first card inside hl-tiles = Trending */
.hl-card:nth-of-type(2){ grid-area: gainers; }  /* second card inside hl-tiles = Gainers */

#hlContent.hidden{ display:none; }

.hl-tile, .hl-card{
  background:#101a2b; border:1px solid #273a58; border-radius:12px;
  padding:12px; box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.hl-num{ font-size:1.6rem; font-weight:800; color:#eaf2ff; line-height:1.1; }
.hl-label{ margin-top:2px; color:#c9d5ea; }
.chg.pos{ color:#1fe19a; } .chg.neg{ color:#ff6b6b; }
.hl-spark{ margin-top:8px; height:42px; }
.hl-spark svg { width:100%; height:42px; }

.hl-card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.hl-card-head h4{ margin:0; color:#eaf2ff; font-size:.95rem; font-weight:600; }
.hl-card-head a{ color:#c9d5ea; font-size:.85rem; opacity:.8; text-decoration:none; }
.hl-card-head a:hover{ opacity:1; }
.hl-list{ display:flex; flex-direction:column; gap:8px; }
.hl-row{ display:grid; grid-template-columns:26px 1fr auto; align-items:center; gap:10px; }
.hl-row img{ width:26px; height:26px; border-radius:50%; object-fit:contain; }
.hl-row .name{ font-weight:600; color:#eaf2ff; }
.hl-row .sym{ margin-left:6px; opacity:.75; font-weight:500; }
.hl-row .price{ color:#c9d5ea; }
.hl-chip{ min-width:74px; text-align:right; font-weight:700; }
.hl-chip.pos{ color:#1fe19a; } .hl-chip.neg{ color:#ff6b6b; }

/* Skeletons */
.hl-skel{ height:32px; border-radius:8px; background:linear-gradient(90deg,#101a2b 25%,#1a2740 50%,#101a2b 75%); background-size:200% 100%; animation:hlShimmer 1.2s infinite; }
.hl-tileSkel{ height:80px; border-radius:12px; background:linear-gradient(90deg,#101a2b 25%,#1a2740 50%,#101a2b 75%); background-size:200% 100%; animation:hlShimmer 1.2s infinite; }
@keyframes hlShimmer{ 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* --- Movers width + sticky controls --- */
.mv{ max-width:1200px; margin:14px auto 18px; padding:0 16px; }
.mv__bar{ position:sticky; top:56px; z-index:2; background:rgba(16,26,43,.85);
  backdrop-filter: blur(6px); border-bottom:1px solid #273a58; padding:6px 16px; margin:0 -16px 10px; }
.mv__grid{ grid-template-columns: 1fr 1fr; gap:14px; }
.mv__card{ background:#101a2b; border:1px solid #273a58; box-shadow:0 8px 18px rgba(0,0,0,.25); }
.mv__item{ min-height:54px; }
.mv__chip{ min-width:72px; }

/* --- Hide the empty watchlist block on the homepage only --- */
body.home .watchlist-empty-card{ display:none !important; }

/* --- Responsive --- */
@media (max-width: 860px){
  .hl-tiles.hl--areas{ grid-template-columns: 1fr; grid-template-areas:
      "cap" "vol" "trending" "gainers"; }
  .mv__grid{ grid-template-columns: 1fr; }
}

:root{
  --bg:#0b1220; --surface:#0f1629; --surface-2:#111a2e; --border:#22314a; --shadow:0 10px 24px rgba(0,0,0,.35);
  --text-1:#eaf2ff; --text-2:#c9d5ea; --text-3:#9fb3c8;
  --primary:#3b82f6; --green:#22c55e; --red:#ef4444; --green-bg:rgba(34,197,94,.14); --red-bg:rgba(239,68,68,.14);
  --chip-radius:10px;
}
body{background:var(--bg);-webkit-font-smoothing:antialiased}
.hl-tile,.hl-card,.mv__card{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
.hl-num,.mv__title,.mv__card h4,.mover-title{color:var(--text-1)}
.hl-label,.mv__price,.mv__view,.mv__period,.hl-card-title,.hl-more{color:var(--text-2)}
.hl-num{font-size:1.7rem;font-weight:800;line-height:1.1;text-shadow:0 1px 0 rgba(0,0,0,.25)}
.hl-label{margin-top:2px;color:var(--text-3)}
.chg.pos,.mv__chip.pos,.hl-chip.pos{color:var(--green);background:var(--green-bg);border:1px solid rgba(34,197,94,.35);border-radius:var(--chip-radius);padding:.22rem .5rem}
.chg.neg,.mv__chip.neg,.hl-chip.neg{color:var(--red);background:var(--red-bg);border:1px solid rgba(239,68,68,.35);border-radius:var(--chip-radius);padding:.22rem .5rem}
.mv{max-width:1200px;margin:14px auto 18px;padding:0 16px}
.mv__bar{background:rgba(15,22,41,.86);border-bottom:1px solid var(--border)}
.mv__item{min-height:56px;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));border:1px solid var(--border);border-radius:12px}
.mv__item:hover{background:var(--surface-2)}
.mv__name{color:var(--text-1)} .mv__sym{color:var(--text-3)} .mv__price{color:var(--text-2)}
.mv__chip{min-width:72px}
.mv__spark path,.hl-spark path{stroke:#8ab5ff}
.mv__item.pos .mv__spark path{stroke:var(--green)} .mv__item.neg .mv__spark path{stroke:var(--red)}
.mv__icon{filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
table thead th{color:var(--text-1);background:var(--surface-2);border-bottom:1px solid var(--border)}
a,button{outline-color:var(--primary)}

/* === NEWS HEAT SECTION === */
.newsheat{max-width:1200px;margin:14px auto;padding:0 16px}
.nh-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.nh-head h3{color:var(--text-1);margin:0;font-size:1.4rem;font-weight:700}
.nh-tabs{display:flex;gap:6px}
.nh-tabs button{padding:6px 12px;border:1px solid var(--border);background:var(--surface);color:var(--text-2);border-radius:8px;cursor:pointer;transition:all 0.2s ease;font-size:0.9rem;font-weight:500}
.nh-tabs button:hover{background:var(--surface-2);border-color:var(--primary)}
.nh-tabs button.on{background:var(--primary);color:white;border-color:var(--primary);box-shadow:0 2px 6px rgba(59,130,246,0.3)}
.nh-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}
.nh-col{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;box-shadow:var(--shadow)}
.nh-title{color:var(--text-1);font-weight:700;margin-bottom:12px;font-size:1.1rem;display:flex;align-items:center;gap:6px}
.nh-list{display:flex;flex-direction:column;gap:10px;min-height:120px}
.nh-row{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));text-decoration:none;color:inherit;transition:all 0.2s ease}
.nh-row:hover{background:var(--surface-2);border-color:var(--primary);transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,0.1)}
.nh-row img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.nh-info .name{color:var(--text-1);font-weight:600;font-size:0.95rem;margin-bottom:2px}
.nh-info .meta{color:var(--text-3);font-size:0.85rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-actions{display:flex;align-items:center;gap:8px}
.nh-chip{min-width:48px;text-align:center;font-weight:700;font-size:0.85rem;padding:4px 8px;border-radius:6px;white-space:nowrap}
.nh-chip.up{color:var(--green);background:var(--green-bg);border:1px solid rgba(34,197,94,0.3)}
.nh-chip.down{color:var(--red);background:var(--red-bg);border:1px solid rgba(239,68,68,0.3)}
.nh-open{color:var(--text-3);text-decoration:none;font-size:1.1rem;opacity:0.7;transition:all 0.2s ease;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.nh-open:hover{opacity:1;color:var(--primary);transform:scale(1.1)}
.mv-card .skel{min-height:160px}
.newsheat .nh-list:empty::after{content:"No signals yet";color:var(--text-3)}
.nh-note{color:var(--text-3);font-size:0.82rem;text-align:center;opacity:0.8;font-style:italic;padding:8px;background:rgba(255,255,255,0.02);border-radius:6px}
@media(max-width:860px){.nh-grid{grid-template-columns:1fr}}

/* --- Fix low-contrast News Heat heading --- */
#news-heat .section-title,
.news-heat .section-title,
.newsheat .section-title,
#news-heat .title,
.news-heat .title,
.newsheat .title,
.newsheat h3 {
  color: #EAF1FF !important;                     /* brighter, cooler white */
  text-shadow:
    0 1px 0 rgba(0,0,0,.60),
    0 2px 8px rgba(0,0,0,.35);                   /* soft dark halo to pop on light bg */
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  position: relative;
  z-index: 2;                                    /* sit above any gradient fade */
}

/* Optional: a very subtle top fade behind the text for extra contrast */
#news-heat .section-title::before,
.news-heat .section-title::before,
.newsheat .section-title::before,
#news-heat .title::before,
.news-heat .title::before,
.newsheat .title::before,
.newsheat h3::before {
  content: "";
  position: absolute;
  left: -10px; right: -10px;
  top: -6px; height: 34px;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,0));
  border-radius: 12px;
  z-index: -1;
}

