/* -------------------------------------------------------------------------- */
/* CryptoScanLab - Ultra-Clean White Liquid Glassmorphism                      */
/* Clean white theme, unboxed percentage text, 3 Top Mover Cards, 250 Coins   */
/* -------------------------------------------------------------------------- */

:root {
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(225, 29, 72, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(244, 63, 94, 0.03) 0%, transparent 45%),
                #f8fafc;

  /* White Liquid Glass */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.95);
  --glass-border-subtle: 1px solid rgba(226, 232, 240, 0.8);
  --glass-blur: blur(30px);
  --glass-shadow: 0 16px 40px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);

  /* Crimson Accent */
  --crimson-primary: #e11d48;
  --crimson-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --crimson-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);

  --green-positive: #059669;
  --red-negative: #e11d48;
  --purple-crazy: #7c3aed;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Remove Background Bubbles Container */
.antigravity-container {
  display: none !important;
}

/* App Container */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header Bar - normal flow, logo & right scroll with page */
.site-header {
  position: relative;
  z-index: 100;
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
}

/* Left Brand Logo - scrolls with page */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  z-index: 101;
}

.brand-logo img,
.custom-logo-link img,
.custom-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

/* Floating Navigation Pill - FIXED center top */
.header-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.8);
}

/* Active Nav Link: Solid Dark Pill */
.nav-link.active {
  color: #ffffff;
  background: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.nav-link svg {
  width: 16px;
  height: 16px;
}

/* Right Status Area - scrolls with page */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 101;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow);
}

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

/* =========================================================================
   NOTIFICATION BELL BUTTON (Header Left Area)
   ========================================================================= */
.notif-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notif-bell-btn:hover {
  background: rgba(241, 245, 249, 0.95);
  transform: scale(1.05);
}

.notif-bell-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.notif-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--crimson-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.notif-bell-badge.visible {
  display: flex;
}

/* Notification bell ring animation */
@keyframes bellRing {
  0%   { transform: rotate(0); }
  10%  { transform: rotate(14deg); }
  20%  { transform: rotate(-14deg); }
  30%  { transform: rotate(10deg); }
  40%  { transform: rotate(-10deg); }
  50%  { transform: rotate(6deg); }
  60%  { transform: rotate(-6deg); }
  70%  { transform: rotate(2deg); }
  80%  { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

.notif-bell-btn.ringing svg {
  animation: bellRing 0.6s ease;
}

/* =========================================================================
   NOTIFICATION DROPDOWN PANEL
   ========================================================================= */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 460px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  display: none;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.notif-panel.open {
  display: flex;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
}

.notif-panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-clear-btn {
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.notif-clear-btn:hover {
  color: var(--crimson-primary);
  background: rgba(225, 29, 72, 0.06);
}

.notif-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.notif-panel-body::-webkit-scrollbar {
  width: 4px;
}

.notif-panel-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 2px;
}

.notif-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
}

.notif-empty svg {
  display: block;
  margin: 0 auto 0.75rem;
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  transition: background 0.15s ease;
  cursor: default;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(248, 250, 252, 0.9);
}

.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-text {
  font-size: 0.84rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.35;
}

.notif-item-text .notif-coin-name {
  font-weight: 700;
}

.notif-item-text .notif-positive {
  color: var(--green-positive);
  font-family: var(--font-mono);
  font-weight: 700;
}

.notif-item-text .notif-negative {
  color: var(--red-negative);
  font-family: var(--font-mono);
  font-weight: 700;
}

.notif-item-time {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 500;
}

/* =========================================================================
   IN-SITE TOAST NOTIFICATIONS (Top Right, Slide In)
   ========================================================================= */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: 380px;
}

.toast-notification {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast-notification.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.toast-exit {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}

.toast-subtitle {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}

.toast-close {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 2px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-main);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

.toast-pump-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--green-positive);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  animation: toastTimer 60s linear forwards;
}

.toast-dump-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--red-negative);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  animation: toastTimer 60s linear forwards;
}

@keyframes toastTimer {
  0%   { width: 100%; }
  100% { width: 0%; }
}

/* =========================================================================
   SOUND TOGGLE BUTTON
   ========================================================================= */
.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sound-toggle-btn:hover {
  background: rgba(241, 245, 249, 0.95);
  transform: scale(1.05);
}

.sound-toggle-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.sound-toggle-btn.muted svg {
  color: var(--text-dim);
}

/* White Liquid Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Top 3 Movers Cards Grid (Gainers, Losers, Crazy Volatility) */
.top-movers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .top-movers-grid {
    grid-template-columns: 1fr;
  }
}

.movers-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--glass-shadow);
}

.movers-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--glass-border-subtle);
}

.movers-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.movers-list {
  display: flex;
  flex-direction: column;
}

.mover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: background 0.15s ease;
}

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

/* Section Header Bar */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--glass-border-subtle);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-title svg {
  color: var(--crimson-primary);
}

/* Controls Bar */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
}

.search-box svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  pointer-events: none;
}

.input-glass {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-glass:focus {
  border-color: var(--crimson-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.select-glass {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-glass:focus {
  border-color: var(--crimson-primary);
}

.btn-set-alert {
  background: var(--crimson-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--crimson-shadow);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-set-alert:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* White Liquid Table Layout */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  max-height: 700px;
}

.crypto-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}

.crypto-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc;
  color: var(--text-muted);
  padding: 0.95rem 0.9rem;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  user-select: none;
  cursor: pointer;
}

.crypto-table th:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.crypto-table th .sort-icon {
  display: inline-block;
  margin-left: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--crimson-primary);
}

.crypto-table td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  vertical-align: middle;
}

.crypto-table tbody tr {
  transition: background 0.15s ease;
}

.crypto-table tbody tr:hover {
  background: #f8fafc;
}

/* Cell Formatting */
.coin-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coin-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
}

.coin-name-box {
  display: flex;
  flex-direction: column;
}

.coin-name {
  font-weight: 700;
  color: var(--text-main);
}

.coin-symbol {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.font-mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Plain Unboxed Percentage Text */
.text-change {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-block;
}

.text-positive {
  color: var(--green-positive);
}

.text-negative {
  color: var(--red-negative);
}

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

/* Shimmer Loading */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
}

.skeleton-text {
  height: 16px;
  width: 75px;
}

.skeleton-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Calculator View */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.calc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 0.75rem;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.pos-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
}

.btn-pos {
  padding: 0.6rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pos.active-long {
  background: var(--green-positive);
  color: #ffffff;
}

.btn-pos.active-short {
  background: var(--red-negative);
  color: #ffffff;
}

.leverage-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leverage-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}

.leverage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--crimson-primary);
  cursor: pointer;
}

.leverage-value-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--crimson-primary);
  min-width: 50px;
  text-align: right;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-item {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-value.val-positive {
  color: var(--green-positive);
}

.result-value.val-negative {
  color: var(--red-negative);
}

.result-value.val-warning {
  color: #d97706;
}

/* Firm Legal Disclaimer Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 0.75rem auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  font-weight: 500;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

@media (max-width: 768px) {
  .app-container {
    padding: 0 0.75rem 2rem 0.75rem;
  }

  /* Header Layout on Mobile */
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .brand-logo {
    justify-content: center;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  /* Floating Navigation Pill on Mobile - Compact single-line scrollable bar */
  .header-nav {
    position: sticky;
    top: 0.5rem;
    left: 0;
    transform: none;
    z-index: 200;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0.35rem;
    gap: 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .header-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .nav-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-link svg {
    width: 14px;
    height: 14px;
  }

  .header-right {
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .api-status {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  /* Grids & Cards on Mobile */
  .top-movers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .movers-card {
    padding: 1.15rem;
  }

  .glass-panel {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  /* Tables on Mobile */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  .crypto-table {
    min-width: 680px;
  }

  .crypto-table th, 
  .crypto-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Calculator on Mobile */
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Blog Grid on Mobile */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* Notification Toast & Dropdown Panel on Mobile */
  .notif-panel {
    position: fixed;
    top: 4.5rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: 70vh;
    z-index: 300;
  }

  .toast-container {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    z-index: 400;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.74rem;
  }
}
