body {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: hsl(240 3.7% 22%);
  border-radius: 4px;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 3.5px;
}

.heatmap-grid-compact {
  display: grid;
  grid-template-rows: repeat(7, 8.5px);
  grid-auto-flow: column;
  grid-auto-columns: 8.5px;
  gap: 2.5px;
}

.heatmap-grid-multi {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  grid-auto-columns: 10px;
  gap: 3px;
}

/* Information & Patreon styles */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #e4e4e7;
  background-color: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.patreon-glow {
  box-shadow: 0 0 25px -5px rgba(255, 66, 77, 0.25);
}

.patreon-glow:hover {
  box-shadow: 0 0 35px -2px rgba(255, 66, 77, 0.45);
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* ==================== SMOOTH LIVE BEACON & CARD ANIMATIONS ==================== */
.live-beacon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}

.live-beacon-radar {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgba(52, 211, 153, 0.5);
  animation: live-radar 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

.live-beacon-core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: live-core-pulse 2.4s ease-in-out infinite;
}

.live-beacon.sm {
  width: 12px;
  height: 12px;
}

.live-beacon.sm .live-beacon-core {
  width: 5px;
  height: 5px;
}

@keyframes live-radar {
  0% {
    transform: scale(0.4);
    opacity: 0.85;
  }
  45% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes live-core-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.95);
  }
}

@keyframes live-card-pulse {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
  }
}

.live-card-active {
  animation: live-card-pulse 3s ease-in-out infinite;
}

@keyframes live-bar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.live-bar-pulse {
  animation: live-bar-pulse 2.4s ease-in-out infinite;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-enter {
  animation: toast-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toast-out 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

/* ==================== CREATIVE MINIMAL BUTTON DESIGN SYSTEM ==================== */

/* Core Tactile Interactive Base */
.btn-tactile,
.btn-primary,
.btn-secondary,
.btn-emerald,
.btn-destructive,
.btn-destructive-solid,
.btn-pill,
.btn-dial-play,
.btn-dial-stop,
.btn-micro-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-tactile:active,
.btn-primary:active,
.btn-secondary:active,
.btn-emerald:active,
.btn-destructive:active,
.btn-destructive-solid:active,
.btn-pill:active {
  transform: translateY(1px) scale(0.98);
}

.btn-tactile:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-emerald:focus-visible,
.btn-destructive:focus-visible,
.btn-destructive-solid:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* 1. Luminous Titanium Primary Button */
.btn-primary {
  background: #ffffff;
  color: #09090b;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.12),
    0 1px 2px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: #fafafa;
  color: #000000;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 0 22px -2px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-0.5px);
}

.btn-primary:active {
  background: #e4e4e7;
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(255, 255, 255, 0.15);
}

.btn-primary:disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

/* 2. Tactile Graphite Secondary Button */
.btn-secondary {
  background: linear-gradient(180deg, #242429 0%, #17171a 100%);
  color: #e4e4e7;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #2d2d34 0%, #1e1e23 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 0 16px -2px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.5);
  transform: translateY(-0.5px);
}

.btn-secondary:active {
  background: #141417;
  color: #a1a1aa;
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.6),
    0 1px 1px rgba(0, 0, 0, 0.2);
}

/* 3. Luminous Emerald Accent Button */
.btn-emerald {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.07) 100%);
  color: #34d399;
  font-weight: 500;
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 
    inset 0 1px 0 0 rgba(52, 211, 153, 0.22),
    0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.btn-emerald:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0.14) 100%);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 
    inset 0 1px 0 0 rgba(52, 211, 153, 0.38),
    0 0 20px -2px rgba(16, 185, 129, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-0.5px);
}

.btn-emerald:active {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* 4. Minimal Destructive Button */
.btn-destructive {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.14) 0%, rgba(225, 29, 72, 0.06) 100%);
  color: #fb7185;
  font-weight: 500;
  border: 1px solid rgba(244, 63, 94, 0.28);
  box-shadow: 
    inset 0 1px 0 0 rgba(251, 113, 133, 0.2),
    0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.btn-destructive:hover {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.26) 0%, rgba(225, 29, 72, 0.15) 100%);
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 
    inset 0 1px 0 0 rgba(251, 113, 133, 0.32),
    0 0 18px -2px rgba(244, 63, 94, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.45);
  transform: translateY(-0.5px);
}

.btn-destructive:active {
  background: rgba(244, 63, 94, 0.16);
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* 5. Solid Destructive (Modal Confirmation / High Consequence) */
.btn-destructive-solid {
  background: linear-gradient(180deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 1px 3px 0 rgba(0, 0, 0, 0.4);
}

.btn-destructive-solid:hover {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    0 0 22px -2px rgba(225, 29, 72, 0.48),
    0 2px 8px rgba(0, 0, 0, 0.45);
  transform: translateY(-0.5px);
}

.btn-destructive-solid:active {
  background: #9f1239;
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* 6. Capsule Track & Segmented Filter Pills */
.capsule-track {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  gap: 2px;
}

.btn-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: #71717a;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
}

.btn-pill.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(180deg, #2b2b34 0%, #1d1d23 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.45);
}

/* 7. Hero Dial Orb Controls */
.btn-dial-play {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.15),
    0 0 24px -2px rgba(255, 255, 255, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-dial-play:hover {
  background: #f4f4f5;
  transform: scale(1.05);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 0 34px 0 rgba(255, 255, 255, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.6);
}

.btn-dial-play:active {
  transform: scale(0.95);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-dial-play:disabled {
  opacity: 0.3;
  pointer-events: none;
  box-shadow: none;
}

.btn-dial-stop {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #222227 0%, #151518 100%);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.28);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-dial-stop:hover {
  background: linear-gradient(180deg, #2e2227 0%, #1d1418 100%);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.48);
  transform: scale(1.05);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 0 20px -2px rgba(244, 63, 94, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-dial-stop:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-dial-stop:disabled {
  opacity: 0.3;
  pointer-events: none;
  box-shadow: none;
}

/* 8. Micro Card Triggers (Quick Start & Chevron) */
.btn-micro-trigger {
  border-radius: 8px;
  background: rgba(24, 24, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-micro-trigger:hover {
  background: rgba(39, 39, 44, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-0.5px);
}

.btn-micro-trigger:active {
  transform: scale(0.92);
}

.btn-micro-emerald:hover {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-micro-sky:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important;
}



