:root {
  --bg:#ffffff;
  --fg:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --panel:#ffffff;
  --shadow:0 10px 25px rgba(0,0,0,.06);
  --accent:#111827;

  /* Category colors */
  --dev:#00d4ff;
  --price:#f7931a;
  --adoption:#50e3c2;
  --regulation:#ff4757;
  --culture:#a55eea;
  --exchange:#6c5ce7;
  --altcoin:#ffa502;
}

/* Shared body + nav styles */
*{box-sizing:border-box}
html,body{height:100%}
body {
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #F2F2F3 0%, #ffffff 50%, #F2F2F3 100%);
  color: #091626;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: .25rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.logo {
  font-size: 2.0rem;  /* Changed from 1.5rem */
  font-weight: 600;
  color: #091626;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;  /* NEW */
  cursor: pointer;  /* NEW */
  transition: opacity 0.3s ease;  /* NEW */
  z-index: 1001;
}

.logo:hover {  /* NEW */
  opacity: 0.8;
}

.logo-icon {
  width: 80px;  /* Changed from 42px */
  height: 80px;  /* Changed from 42px */
  background: url('Media/Monedial-Logo-6.png') center/contain no-repeat;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #464E59;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #C1A774;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #091626;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Ensure timeline clears nav */
.timeline-container {
  position:relative;
  min-height:100vh;
  height: 100vh; /* ADD THIS */
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding-top: 100px; /* offset for fixed nav */
}

/* ===================== */
/* TIMELINE STYLES */
/* ===================== */

/* Controls as cartouches */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 48px;
  max-height: 60px;
  padding: 8px 16px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* Remove ALL cartouche styling */
.control-group.cartouche {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.zoom-controls {
  display: flex;
  gap: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  height: 32px; /* Match filter button height */
}

.zoom-btn {
  appearance: none;
  border: 1px solid #d4d4d4;
  background: white;
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 0;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: none;
  height: 32px; /* Match filter button height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:first-child {
  border-radius: 3px 0 0 3px;
}

.zoom-btn:last-child {
  border-radius: 0 3px 3px 0;
  border-right: 1px solid #d4d4d4;
}

.zoom-btn:hover{
  transform:translateY(-1px);
  background: #fafafa;
  border-color: #a0a0a0;
}

.zoom-btn.active{
  background:#1a1a1a; 
  color:#fff; 
  border-color:#1a1a1a;
}

/* ========================================
   FILTER BAR (Always Visible) - COMPACT VERSION
   ======================================== */

/* Fix for controls container */


.control-group.zoom-controls {
  flex-shrink: 0;
  margin-left: auto;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 6px 0;
  background: transparent;
  border: none;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #d4d4d4;
  padding: 6px 12px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-toggle-btn:hover {
  background: #fafafa;
  border-color: #a0a0a0;
}

.filter-toggle-btn .icon {
  font-size: 14px;
}

.filter-count {
  background: #1a1a1a;
  color: white;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

.active-filters {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap !important;
  padding: 2px 0 12px 0;
  min-width: 0;
}

.active-filters::-webkit-scrollbar {
  height: 4px;
}

.active-filters::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.active-filters::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 2px;
}

.active-filters::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.filter-badge:hover {
  background: #ebebeb;
  border-color: #d4d4d4;
}

.filter-badge .remove {
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1;
}

.filter-badge .remove:hover {
  opacity: 1;
}

.clear-all-btn {
  background: transparent;
  color: #666;
  border: 1px solid #d4d4d4;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.clear-all-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* ========================================
   MEGA MENU FILTER SYSTEM - Updated styles to add to your styles.css
   Add these styles to replace your existing filter panel styles
   ======================================== */

/* Main Filter Panel - slides in from left */



/* Filter Panel Header */


.filter-panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}

.close-panel-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  font-weight: 300;
}

.close-panel-btn:hover {
  color: #1a1a1a;
}

/* Search Box */
.filter-search {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.filter-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  font-size: 13px;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-search input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.filter-search input::placeholder {
  color: #999;
}




.filter-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #1a1a1a;
  letter-spacing: 0.1px;
}

/* Count badge on section headers */
.filter-section-count {
  background: #1a1a1a;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  display: none; /* Hidden by default, shown when count > 0 */
}

.filter-section-count.active {
  display: inline-block;
}

/* Arrow indicator */
.filter-section-arrow {
  transition: transform 0.2s ease;
  font-size: 9px;
  color: #999;
}

/* For categories section (collapsible inline) */
.filter-section.inline-section.collapsed .filter-section-arrow {
  transform: rotate(-90deg);
}

/* For sections with submenus, arrow points right */
.filter-section.has-submenu .filter-section-arrow {
  transform: rotate(-90deg);
}

/* Categories Section Body (inline, collapsible) */
.filter-section-body {
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.filter-section.inline-section.collapsed .filter-section-body {
  max-height: 0;
}

/* Hide hidden options (legacy cleanup) */
.filter-option.hidden {
  display: none !important;
}

.apply-filters-btn,
.reset-filters-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.apply-filters-btn {
  background: #1a1a1a;
  color: white;
}

.apply-filters-btn:hover {
  background: #000;
}

.reset-filters-btn {
  background: transparent;
  color: #666;
  border: 1px solid #d4d4d4;
}

.reset-filters-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Active Filter Badges Bar (top of timeline) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 6px 0;
  background: transparent;
  border: none;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #d4d4d4;
  padding: 6px 12px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-toggle-btn:hover {
  background: #fafafa;
  border-color: #a0a0a0;
}

.filter-toggle-btn .icon {
  font-size: 14px;
}

.filter-count {
  background: #1a1a1a;
  color: white;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

.active-filters {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap !important;
  padding: 2px 0 12px 0;
  min-width: 0;
}

.active-filters::-webkit-scrollbar {
  height: 4px;
}

.active-filters::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.active-filters::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 2px;
}

.active-filters::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.filter-badge:hover {
  background: #ebebeb;
  border-color: #d4d4d4;
}

.filter-badge .remove {
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1;
}

.filter-badge .remove:hover {
  opacity: 1;
}

.clear-all-btn {
  background: transparent;
  color: #666;
  border: 1px solid #d4d4d4;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.clear-all-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Timeline canvas */
.timeline-canvas{
  touch-action: none; /* Prevent page zoom/scroll on touch gestures */
  position:relative;
  flex:1 1 auto;
  margin:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--panel);
  overflow:hidden;
  min-height: 500px; /* ADD THIS */
}
.timeline-line{
  position:absolute; left:0; right:0; top:50%;
  height:2px;
  background:var(--border);
  transform:translateY(-1px);
  transition:opacity .25s ease;
}

/* Time axis ticks */
.time-axis{ position:absolute; left:0; right:0; top:0; bottom:0; pointer-events:none; }
.time-tick{ position:absolute; width:1px; background:var(--border); opacity:.8; }
.time-label{
  position:absolute; top:6px;
  transform:translateX(-50%);
  font-size:12px; color:var(--muted); font-weight:600;
}

/* Context bar years */
.time-year-bar {
  position: absolute;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Events */
.event{
  position:absolute;
  border-radius:50%;
  transform:translate(-50%,-50%);
  border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.10);
  transition:transform .18s ease, box-shadow .18s ease, opacity .25s ease;
  cursor:pointer;
  opacity:0;
}
.event.visible{opacity:1}
.event.minor{ width:8px; height:8px; }
.event.major{ width:12px; height:12px; }
.event.milestone{ width:16px; height:16px; box-shadow:0 0 0 2px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.12); }

/* Category colors */
.event.development{ background:var(--dev); }
.event.price{ background:var(--price); }
.event.adoption{ background:var(--adoption); }
.event.regulation{ background:var(--regulation); }
.event.culture{ background:var(--culture); }
.event.exchange{ background:var(--exchange); }
.event.altcoin{ background:var(--altcoin); }

/* Glow on hover */
.event.development:hover{ box-shadow:0 0 0 8px rgba(0,212,255,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.price:hover{ box-shadow:0 0 0 8px rgba(247,147,26,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.adoption:hover{ box-shadow:0 0 0 8px rgba(80,227,194,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.regulation:hover{ box-shadow:0 0 0 8px rgba(255,71,87,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.culture:hover{ box-shadow:0 0 0 8px rgba(165,94,234,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.exchange:hover{ box-shadow:0 0 0 8px rgba(108,92,231,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }
.event.altcoin:hover{ box-shadow:0 0 0 8px rgba(255,165,2,.18), 0 8px 24px rgba(0,0,0,.14); transform:translate(-50%,-50%) scale(1.08); }

/* Clusters */
.cluster{
  position:absolute;
  width:28px; height:28px; line-height:28px;
  border-radius:50%;
  background:#f3f4f6;
  border:1px solid var(--border);
  color:#111827; font-weight:700; font-size:12px;
  text-align:center;
  transform:translate(-50%,-50%);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.cluster:hover{ transform:translate(-50%,-50%) scale(1.06); box-shadow:0 8px 20px rgba(0,0,0,.12); }
.cluster.exploded{ transform:translate(-50%,-50%) scale(1.12); background:#fff; }

/* Tooltip */
.tooltip{
  position:fixed;
  min-width:260px;
  max-width:340px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:12px 14px;
  pointer-events:none;
  opacity:0;
  transform:translateY(-8px);
  transition: opacity .15s ease, transform .15s ease;
  z-index:50;
}
.tooltip.visible{ opacity:1; transform:translateY(0) }
.tooltip-title{ font-weight:800; margin-bottom:4px; }
.tooltip-date{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.tooltip-description{ font-size:13px; color:#374151; }

/* Right panel */
.event-panel{
  position:fixed;
  top:175px; right:0;
  width:360px; 
  max-width:85vw; 
  height:calc(100vh - 175px);
  min-height: 200px;
  background:#fff;
  border-left:1px solid var(--border);
  border-radius: 16px 0 0 16px;
  box-shadow:-12px 0 30px rgba(0,0,0,.08);
  padding:20px;
  transform:translateX(100%);
  transition:transform .25s ease;
  z-index:60;
  /* NEW: enable scrolling */
  overflow-y: auto;
  overflow-x: hidden;
}

.event-panel.open{ transform:translateX(0) }
.panel-close{
  position:absolute; right:14px; top:10px;
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border);
  background:#fff; cursor:pointer; font-size:22px;
}
.panel-title{ margin:28px 0 6px; font-size:20px; font-weight:900; }
.panel-date{ color:var(--muted); font-size:12px; margin-bottom:10px; }
.panel-content{ color:#374151; line-height:1.55; font-size:14px; }

.panel-video, .panel-audio {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
}

.panel-video {
  max-height: 360px;
  object-fit: contain;
}

.panel-doc {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  background: #f1f1f1;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.panel-doc:hover {
  background: #e0e0e0;
}

.panel-article p {
  margin: 0.8em 0;
  text-indent: 2em;
  line-height: 1.6;
}

/* Slider */
.time-slider{
  position: relative;
  padding: 8px 16px 32px;
  margin:0 16px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow);
}
.slider-min-label,
.slider-max-label {
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}
.slider-min-label { left: 16px; }
.slider-max-label { right: 16px; }
.slider{
  position:relative; height:6px; border-radius:999px;
  background:#f3f4f6; cursor:pointer;
}
.slider-track{
  position:absolute; left:0; top:0; bottom:0;
  width:30%;
  background:#111827; border-radius:999px;
}
.slider-handle{
  position:absolute; top:50%; left:30%;
  width:18px; height:18px; border-radius:50%;
  background:#111827; border:2px solid #fff;
  transform:translate(-50%,-50%);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  cursor:grab;
}
.slider-handle:active{ cursor:grabbing }

/* Scrubbing year tooltip */
.slider-tooltip{
  position:absolute;
  bottom:72px;
  left:0;
  transform:translateX(-50%);
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  font-weight:800; font-size:12px;
  color:#111827;
  box-shadow:var(--shadow);
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease;
  z-index:55;
}

/* Empty state message */
.empty-state{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  border:1px dashed var(--border);
  border-radius:12px;
  padding:14px 16px;
  font-size:13px; color:var(--muted); font-weight:600;
}

.cluster-connector {
  position: absolute;
  height: 1px;
  background: #d1d5db;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.featured-bubble {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.featured-bubble.visible {
  opacity: 1;
  transform: scale(1);
}

.preview-bubble {
  position: absolute;
  z-index: 40;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
    /* Add these font properties to match featured bubbles */
  font-size: 12.5px;
  line-height: 1.4;
  color: #374151;
  overflow: hidden;
}

.preview-bubble .bubble-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;
  color: #111827;
}

.bubble-date {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 500;
}

.preview-bubble .bubble-description {
  font-size: 12px;
  line-height: 1.45;
  color: #4B5563;
}

.preview-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/*
.bubble-connector {
  position: absolute;
  height: 1.5px;
  background-color: rgba(60, 60, 60, 0.4);
  
  opacity: 0.6;
  pointer-events: none;
  z-index: 35;
  transform-origin: 0 0;
}
*/

.bubble-connector {
  position: absolute;
  height: 1px;
  background: #d1d5db;  
  transform-origin: left center;
  pointer-events: none;
  z-index: 30;
}

.bubble-endpoint {
  width: 4px;          /* 2px radius circle */
  height: 4px;
  border-radius: 50%;
  background-color: rgba(60, 60, 60, 0.6); /* slightly darker for clarity */
  pointer-events: none;
  z-index: 35;         /* slightly above line, below bubble */
}





/* ===================== */
/* MAINPAGE STYLES (moved from inline) */
/* ===================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.video-background.active { opacity: 1; }
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(9, 22, 38, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.video-overlay.active { opacity: 1; }
.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(193, 167, 116, 0.08) 0%, transparent 70%);
    transition: opacity 1s ease-in-out;
}
.hero-background.video-active { opacity: 0.3; }

.bitcoin-visualization {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    opacity: 0.15;
    transition: opacity 1s ease-in-out;
}
.bitcoin-visualization.video-active { opacity: 0.05; }

.network-node {
    position: absolute;
    width: 6px; height: 6px;
    background: #C1A774;
    border-radius: 50%;
    animation: pulse-node 3s infinite ease-in-out;
}
.network-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B4895B, transparent);
    animation: data-flow 2s infinite linear;
    opacity: 0.6;
}
@keyframes pulse-node {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
@keyframes data-flow {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    transition: all 0.3s ease;
}
.hero-content.video-active {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.3;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 0.2em 0;
}
.power-word {
    opacity: 0;
    transform: translateY(30px);
    animation: powerWordFadeIn 0.8s ease forwards;
}
.power-word:nth-child(1) { animation-delay: 0.2s; }
.power-word:nth-child(2) { animation-delay: 0.5s; }
.power-word:nth-child(3) { animation-delay: 0.8s; }
.power-word:nth-child(4) { animation-delay: 1.1s; }
@keyframes powerWordFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    color: #2C3E50;
}
.subtitle-word {
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
    animation: subtitleWordFadeIn 0.4s ease forwards;
}
@keyframes subtitleWordFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #C1A774, #B4895B);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 167, 116, 0.3);
}
.cta-button::after {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.cta-button:hover::after { left: 100%; }

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C1A774, #B4895B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-label { color: #464E59; font-weight: 500; }
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: #f9f9fa;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(135deg, #C1A774, #B4895B);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 64px; height: 64px;
    background: #F2F2F3;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.feature-icon img { width: 32px; height: 32px; }
.feature-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.feature-description { color: #4B5563; }

/* Timeline Preview */
.timeline-preview {
    margin-top: 6rem;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.timeline-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.timeline-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #4B5563;
}
.timeline-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
}
.timeline-node {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C1A774, #B4895B);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.timeline-node:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(193, 167, 116, 0.4);
}
.timeline-connector {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 -1px;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #091626;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}
.scroll-indicator div:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Navigation Mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 150px 2rem 2rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu a {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    width: 100%;
  }

  /* Hero Section Mobile */
  .hero-title { 
    font-size: clamp(2rem, 5vw, 3rem); 
    gap: 0.5rem 1rem; 
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero {
    padding: 0 1rem;
  }

  /* Stats Grid Mobile */
  .stats-grid { 
    gap: 2rem; 
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Features Grid Mobile */
  .features-grid { 
    gap: 1.5rem; 
    grid-template-columns: 1fr;
  }

  .feature-card { 
    padding: 2rem 1.5rem; 
  }

  .timeline-preview { 
    padding: 2.5rem 1.5rem; 
  }

  /* Container Mobile */
  .container {
    padding: 0 1rem;
  }

  /* Content Section Mobile */
  .content-section {
    padding: 3rem 1rem;
  }

  .content-section h2 {
    font-size: 1.75rem;
  }

  /* Two Column Mobile */
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Cards Grid Mobile */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  /* Timeline Container Mobile */
  .timeline-container {
    padding-top: 80px;
  }

  /* Controls Mobile */
  .controls {
    flex-wrap: wrap;
    padding: 8px 12px 12px 12px; /* Extra bottom padding to prevent overlap */
    gap: 8px;
    margin-bottom: 0; /* Spacing handled by padding */
    max-height: none; /* Allow controls to expand when wrapping */
    min-height: auto; /* Allow flexible height on mobile */
  }

  .filter-bar {
    flex-wrap: wrap;
    min-width: 100%;
    order: 2;
    margin-top: 0; /* Ensure no extra margin when wrapping */
  }

  .zoom-controls {
    order: 1;
    margin-left: 0;
  }

  /* Event Panel Mobile */
  .event-panel {
    width: 100%;
    max-width: 100vw;
    right: 0;
    border-radius: 0;
    height: calc(100vh - 80px);
    top: 80px;
    z-index: 2000; /* Ensure panel is above controls */
    padding-top: 3.5rem; /* Extra padding at top to account for close button and title */
  }

  /* Hide controls when event panel is open on mobile */
  .timeline-container.panel-open .controls {
    display: none !important;
  }

  /* Ensure panel title has proper spacing on mobile */
  .event-panel .panel-title {
    padding-top: 1rem;
    margin-top: 1rem;
  }

  /* Make close button more prominent on mobile */
  .event-panel .panel-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 2001 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  }

  /* Timeline Canvas Mobile */
  .timeline-canvas {
    margin: 8px;
    min-height: 400px;
  }

  /* Tooltip Mobile */
  .tooltip {
    min-width: 200px;
    max-width: calc(100vw - 40px);
    font-size: 12px;
  }

  /* Slider Mobile */
  .time-slider {
    margin: 0 8px 8px;
    padding: 8px 12px 28px;
  }

  /* Search Container Mobile */
  .search-container {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0; /* Margin handled by controls gap */
    order: 0; /* Ensure search is first */
    min-width: 100%; /* Full width on mobile */
  }

  /* Filter Panel Mobile */
  .filter-panel {
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
    left: -100% !important;
  }

  .filter-panel.open {
    left: 20px !important;
  }

  .filter-submenu {
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
    left: 20px !important;
  }

  /* Page Container Mobile */
  .page-container {
    padding-top: 80px;
  }

  .page-container .hero {
    height: 40vh;
    min-height: 300px;
    padding: 2rem 1rem;
  }

  .page-container .hero-title {
    font-size: 1.75rem;
  }

  .page-container .hero-subtitle {
    font-size: 0.95rem;
  }

  /* Stats Section Mobile */
  .stats-section {
    padding: 3rem 0;
  }

  /* Features Section Mobile */
  .features {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* CTA Button Mobile */
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* Bitcoin Visualization Mobile */
  .bitcoin-visualization {
    width: 400px;
    height: 400px;
  }

  /* Callout Mobile */
  .callout {
    padding: 1.5rem;
    margin: 1.5rem 1rem;
  }

  .callout h3 {
    font-size: 1.5rem;
  }

  .callout p {
    font-size: 1rem;
  }

  /* Dropdown Menu Mobile */
  .has-dropdown .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
  }

  .has-dropdown .dropdown-menu.active {
    max-height: 2000px;
  }

  .dropdown-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .dropdown-category-link {
    padding: 1rem 0;
  }

  .submenu {
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .submenu-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Price Dashboard Mobile */
  .price-dashboard {
    grid-template-columns: 1fr;
  }

  .price-card.main-price {
    padding: 1.5rem;
  }

  .price-value {
    font-size: 2.5rem;
  }

  /* Blocks and Transactions Mobile */
  .blocks-container,
  .transactions-container {
    padding: 1rem;
  }

  .blocks-header,
  .transactions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .blocks-stats,
  .tx-stats {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .block-item,
  .transaction-item {
    padding: 1rem;
  }

  .block-details,
  .tx-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Additional Stats Mobile */
  .additional-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .additional-stat-card {
    padding: 1.5rem;
  }

  /* Explorer Search Mobile */
  .explorer-search-section {
    padding: 1rem !important;
    margin-bottom: 1rem;
  }

  .search-box {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-input {
    width: 100%;
    font-size: 14px;
  }

  .search-button,
  .search-btn {
    width: 100%;
    padding: 0.75rem;
  }

  .search-examples {
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  /* Chart Container Mobile */
  .chart-container {
    padding: 1rem;
  }

  .chart-header {
    flex-direction: column;
    gap: 1rem;
  }

  .chart-controls {
    width: 100%;
    justify-content: space-between;
  }

  .chart-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  #price-chart {
    height: 250px;
  }

  /* Learn Container Mobile */
  .learn-container {
    flex-direction: column;
  }

  .learn-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: none;
  }

  .learn-content {
    width: 100%;
    padding: 1rem;
  }

  /* Contact Form Mobile */
  .contact-container {
    padding-top: 80px;
  }

  .contact-hero {
    padding: 2rem 1rem;
    min-height: 40vh;
  }

  .contact-form-container {
    padding: 2rem 1rem;
  }

  .contact-footer {
    padding: 2rem 1rem;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Text overflow handling */
  .detail-value.hash,
  .tx-hash-value {
    font-size: 0.75rem;
    word-break: break-all;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .page-container .hero {
    height: 35vh;
    min-height: 250px;
  }

  .price-value {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}
.floating-bit {
    position: absolute;
    background: rgba(193, 167, 116, 0.1);
    border-radius: 50%;
    animation: float-across linear infinite;
}
@keyframes float-across {
    from { transform: translateX(-10%) translateY(var(--start-y)); }
    to { transform: translateX(110%) translateY(var(--end-y)); }
}

/* ===================== */
/* GENERIC PAGE LAYOUT (for Learn, Visualize, About) */
/* ===================== */

.page-container {
  padding-top: 100px; /* offset for fixed nav */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero sections on subpages */
.page-container .hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F2F2F3 0%, #ffffff 50%, #F2F2F3 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-container .hero-content {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-container .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: #091626;
}

.page-container .hero-subtitle {
  font-size: 1.1rem;
  color: #464E59;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Content sections */
.content-section {
  padding: 4rem 2rem;
  background: #ffffff;
}

.content-section:nth-of-type(even) {
  background: #f9f9fa;
}

/* About page main section - positioned at top */
.about-main-section {
  padding-top: 2rem;
  margin-top: 0;
}

/* Align logo at top on about page */
.about-main-section .two-column {
  align-items: start;
}

.content-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #091626;
}

.content-section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-container .hero {
    height: 50vh;
    padding: 2rem;
  }
  .page-container .hero-title {
    font-size: 2rem;
  }
  .page-container .hero-subtitle {
    font-size: 1rem;
  }
  .content-section {
    padding: 3rem 1.5rem;
  }
}
/* ===================== */
/* REUSABLE CONTENT BLOCKS */
/* ===================== */

/* Grid of cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F2F2F3;
}

.card-icon img {
  width: 32px;
  height: 32px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #091626;
}

.card-text {
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.6;
}

/* Callout Box */
.callout {
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #C1A774, #B4895B);
  color: #fff;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.callout h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.callout p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.callout .cta-button {
  background: #fff;
  color: #091626;
  font-weight: 600;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.two-column img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Remove shadow from logo on about page */
.about-main-section .two-column img {
  box-shadow: none;
}

.two-column-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #091626;
}

.two-column-text p {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Timeline Thumbnails */

/* Generic defaults */
.tooltip-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Featured bubble text wrapping */
.featured-bubble {
  overflow: hidden; /* contain the float */
  font-size: 12.5px;      /* slightly smaller overall text */
  line-height: 1.4;       /* a bit more breathing room */
  color: #374151;         /* same muted text color as tooltips */  
}

/* Smaller auto-bubble thumbnails */
.featured-bubble .tooltip-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  float: left;
  margin: 0 10px 6px 0;
  border-radius: 8px;
  display: block;
}

.featured-bubble .bubble-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;        /* small but bold for emphasis */
  color: #111827;
}

.featured-bubble .bubble-description {
  font-size: 12px;
  line-height: 1.45;
  color: #4B5563;
}

/* Hover bubble thumbnails (a little larger, centered) */
.hover-bubble .tooltip-image {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  border-radius: 10px;
}

/* Fallback tooltip thumbnails */
.tooltip .tooltip-image {
  max-width: 100px;
  max-height: 80px;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 6px;
  display: block;
}

/* Event Panel Image */
.panel-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

/* Time Context Bar */
.time-context-bar {
  position: absolute;
  top: 0;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  background: rgba(100, 149, 237, 0.15);
  border-top: 1px solid rgba(100, 149, 237, 0.3);
  border-bottom: 1px solid rgba(100, 149, 237, 0.3);
}

.time-context-bar.alt {
  background: rgba(100, 149, 237, 0.05); /* lighter shade for alternating */
}

/* ========================================
   FINAL WORKING VERSION - Replace emergency override with this
   ======================================== */

/* Main Filter Panel - CLOSED state */
.filter-panel {
  position: fixed !important;
  left: -320px !important; /* HIDDEN off-screen to the left */
  top: 120px !important;
  width: 280px !important;
  height: auto !important;
  max-height: calc(100vh - 140px) !important;
  background: white !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 2000 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Main Filter Panel - OPEN state */
.filter-panel.open {
  left: 20px !important; /* VISIBLE with offset from edge */
}

/* Submenu positioning - REDUCED GAP */
.filter-submenu {
  position: fixed !important;
  left: 310px !important; /* Changed from 320px - 10px closer */
  top: 120px !important;
  width: 280px !important;
  height: auto !important;
  max-height: calc(100vh - 140px) !important;
  background: white !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
  z-index: 2001 !important;
  
  /* HIDDEN by default */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-20px) !important;
  pointer-events: none !important;
  
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

/* Submenu - OPEN state */
.filter-submenu.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

/* Panel Headers */
.filter-panel-header {
  background: white !important;
  color: #1a1a1a !important;
  padding: 16px 16px 12px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  flex-shrink: 0 !important;
  border-radius: 12px 12px 0 0 !important;
}

.filter-submenu-header {
  padding: 16px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  background: white !important;
  flex-shrink: 0 !important;
  border-radius: 12px 12px 0 0 !important;
}

.filter-submenu-header h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #1a1a1a !important;
}

/* Panel Content Areas */
.filter-content {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.filter-submenu-content {
  flex: 0 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 16px 16px !important;
  min-height: 0 !important;
}

/* Panel Footers */
.filter-panel-footer {
  padding: 12px 16px !important;
  background: white !important;
  border-top: 1px solid #e8e8e8 !important;
  display: flex !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  border-radius: 0 0 12px 12px !important;
}

/* Scrollbars */
.filter-content::-webkit-scrollbar,
.filter-submenu-content::-webkit-scrollbar {
  width: 6px !important;
}

.filter-content::-webkit-scrollbar-track,
.filter-submenu-content::-webkit-scrollbar-track {
  background: transparent !important;
}

.filter-content::-webkit-scrollbar-thumb,
.filter-submenu-content::-webkit-scrollbar-thumb {
  background: #d4d4d4 !important;
  border-radius: 3px !important;
}

.filter-content::-webkit-scrollbar-thumb:hover,
.filter-submenu-content::-webkit-scrollbar-thumb:hover {
  background: #b4b4b4 !important;
}

/* Filter Options */
.filter-options {
  padding: 0 !important;
}

.filter-option {
  display: flex !important;
  align-items: center !important;
  padding: 6px 0 !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
}

.filter-option:hover {
  opacity: 0.7 !important;
}

.filter-option input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin-right: 10px !important;
  cursor: pointer !important;
  accent-color: #1a1a1a !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

.filter-option label {
  cursor: pointer !important;
  font-size: 13px !important;
  color: #1a1a1a !important;
  flex: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0.1px !important;
  line-height: 1.3 !important;
}

/* Filter Sections */
.filter-section {
  border-bottom: 1px solid #f0f0f0 !important;
  position: relative !important;
}

.filter-section:last-child {
  border-bottom: none !important;
}

.filter-section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px !important;
  background: white !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background 0.2s !important;
  border-radius: 6px !important;
  margin: 2px 4px !important;
}

.filter-section-header:hover {
  background: #f8f8f8 !important;
}

.filter-section.has-submenu .filter-section-header:hover {
  background: #f5f5f5 !important;
}

/* Overlay */
.filter-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.3) !important;
  z-index: 1999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.filter-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}








/* ========================================
   SEARCH FUNCTIONALITY STYLES
   ======================================== */

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin-right: 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  padding: 0 12px;
  transition: all 0.2s ease;
  box-shadow: none;
  height: 32px;
}

.search-input-wrapper:focus-within {
  border-color: #f7931a;
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-icon {
  font-size: 18px;
  margin-right: 8px;
  opacity: 0.5;
  pointer-events: none;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 8px;
  font-size: 13px;
  background: transparent;
  height: 100%;
}

.search-input::placeholder {
  color: #9ca3af;
}

.clear-search {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.clear-search:hover {
  color: #f7931a;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results-list {
  padding: 8px;
}

.search-results-count {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: #fef3e7;
  border-color: rgba(247, 147, 26, 0.2);
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.4;
}

.search-result-title mark {
  background: #fef3e7;
  color: #f7931a;
  font-weight: 700;
  padding: 2px 0;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.search-result-date {
  color: #6b7280;
}

.search-result-separator {
  color: #d1d5db;
}

.search-result-category {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.category-development { background: #dbeafe; color: #1e40af; }
.category-price { background: #fef3c7; color: #92400e; }
.category-adoption { background: #d1fae5; color: #065f46; }
.category-regulation { background: #fee2e2; color: #991b1b; }
.category-culture { background: #ede9fe; color: #5b21b6; }
.category-exchange { background: #fce7f3; color: #9f1239; }
.category-altcoin { background: #e0e7ff; color: #3730a3; }

.search-result-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.search-view-all {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: #f7931a;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.search-view-all:hover {
  background: #fef3e7;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
}

.search-no-results-icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.search-no-results-text {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.search-no-results-hint {
  font-size: 14px;
  color: #9ca3af;
}

/* Search Modal (for "View All Results") */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px); 
  }
  to { 
    opacity: 1;
    transform: translateY(0); 
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.search-modal-close:hover {
  background: #f3f4f6;
  color: #f7931a;
}

.search-modal-results {
  overflow-y: auto;
  padding: 16px 28px 28px;
  flex: 1;
}

.search-modal-result-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-modal-result-card:hover {
  border-color: #f7931a;
  background: #fef3e7;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.1);
}

.search-modal-result-card:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .controls {
    flex-wrap: wrap;
  }

  .search-results {
    max-height: 400px;
  }

  .search-modal {
    max-width: 95%;
    max-height: 90vh;
  }

  .search-modal-header {
    padding: 20px;
  }

  .search-modal-results {
    padding: 12px 20px 20px;
  }
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar,
.search-modal-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track,
.search-modal-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb,
.search-modal-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover,
.search-modal-results::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   BITCOIN DATA PAGE STYLES
   ======================================== */

/* Section Title */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #091626;
  text-align: center;
}

/* Price Dashboard */
.price-dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.price-card.main-price {
  background: linear-gradient(135deg, #f7931a 0%, #ffa64d 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.3);
  text-align: center;
}

.price-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.price-change {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.price-change.positive {
  color: #10b981;
}

.price-change.negative {
  color: #ef4444;
}

.price-update-time {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
}

.price-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.price-stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.price-stat-card .stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #091626;
}

/* Chart Container */
.chart-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #091626;
  margin: 0;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
}

.chart-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.chart-btn.active {
  background: #f7931a;
  color: white;
  border-color: #f7931a;
}

#price-chart {
  height: 400px;
  width: 100%;
}

/* Blocks Container */
.blocks-container,
.transactions-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blocks-header,
.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.blocks-stats,
.tx-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.block-stat,
.tx-stat {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.block-stat .stat-label,
.tx-stat .stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.block-stat .stat-value,
.tx-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #091626;
}

.refresh-btn {
  padding: 0.6rem 1.5rem;
  background: #f7931a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.refresh-btn:hover {
  background: #e8840a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

/* Blocks List */
.blocks-list,
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.block-item,
.transaction-item {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.block-item:hover,
.transaction-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.block-header,
.tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.block-number,
.tx-hash {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.block-label,
.tx-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.block-height {
  font-size: 1.3rem;
  font-weight: 700;
  color: #091626;
}

.tx-hash-value {
  font-size: 1rem;
  font-weight: 600;
  color: #091626;
  font-family: 'Courier New', monospace;
}

.block-time,
.tx-time {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.block-details,
.tx-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.block-detail,
.tx-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #091626;
}

.detail-value.hash {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* Network Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-title {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #091626;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Loading and Error States */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.error-message {
  text-align: center;
  padding: 2rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  font-weight: 500;
}

/* API Instructions */
.api-instructions {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: left;
}

.api-instructions p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.api-instructions ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.api-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.api-instructions code {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .price-dashboard {
    grid-template-columns: 1fr;
  }
  
  .price-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .blocks-stats,
  .tx-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blocks-header,
  .transactions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .chart-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .chart-btn {
    flex: 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .block-details,
  .tx-details {
    grid-template-columns: 1fr;
  }
  
  #price-chart {
    height: 300px;
  }
}