/* ═══════════════════════════════════════════════════════════════════
   KY LIFE OS — Premium UI System
   Google-grade visual refinements for Life Operating System
   ═══════════════════════════════════════════════════════════════════ */

/* ── a) Typography Optimization ─────────────────────────────────── */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1 { font-size: clamp(1.8rem, 4vw + 0.5rem, 3.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw + 0.4rem, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw + 0.3rem, 1.5rem); }

label, .stat-label, .label, caption, th,
[class*="label"], [class*="Label"],
.tool-category, .platform-label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Tabular numbers for all data */
.stat-value, .score, .count, .value, .number,
[class*="score"], [class*="Score"],
[class*="count"], [class*="Count"],
[class*="percent"], [class*="Percent"],
td, th, code, .mono {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}


/* ── b) Card System Overhaul ────────────────────────────────────── */
.premium-card,
.tool-card,
.platform-card,
.stat-card,
.section-card,
[class*="-card"]:not(.no-premium) {
  position: relative;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  background: var(--surface, rgba(255,255,255,0.03));
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover,
.tool-card:hover,
.platform-card:hover,
.stat-card:hover,
.section-card:hover,
[class*="-card"]:not(.no-premium):hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 10px 20px -5px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(212, 168, 83, 0.08);
}

.premium-card:active,
.tool-card:active,
.platform-card:active,
.stat-card:active,
[class*="-card"]:not(.no-premium):active {
  transform: scale(0.98);
  transition-duration: 100ms;
}


/* ── c) Dashboard Grid Animations ───────────────────────────────── */
@keyframes revealCard {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.premium-card,
.tool-card,
.platform-card,
.stat-card,
.section-card,
[class*="-card"]:not(.no-premium):not(.animate-in) {
  animation: revealCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered entrance — up to 24 cards */
.tool-card:nth-child(1),  [class*="-card"]:nth-child(1)  { animation-delay: 50ms; }
.tool-card:nth-child(2),  [class*="-card"]:nth-child(2)  { animation-delay: 100ms; }
.tool-card:nth-child(3),  [class*="-card"]:nth-child(3)  { animation-delay: 150ms; }
.tool-card:nth-child(4),  [class*="-card"]:nth-child(4)  { animation-delay: 200ms; }
.tool-card:nth-child(5),  [class*="-card"]:nth-child(5)  { animation-delay: 250ms; }
.tool-card:nth-child(6),  [class*="-card"]:nth-child(6)  { animation-delay: 300ms; }
.tool-card:nth-child(7),  [class*="-card"]:nth-child(7)  { animation-delay: 350ms; }
.tool-card:nth-child(8),  [class*="-card"]:nth-child(8)  { animation-delay: 400ms; }
.tool-card:nth-child(9),  [class*="-card"]:nth-child(9)  { animation-delay: 450ms; }
.tool-card:nth-child(10), [class*="-card"]:nth-child(10) { animation-delay: 500ms; }
.tool-card:nth-child(11), [class*="-card"]:nth-child(11) { animation-delay: 550ms; }
.tool-card:nth-child(12), [class*="-card"]:nth-child(12) { animation-delay: 600ms; }
.tool-card:nth-child(13), [class*="-card"]:nth-child(13) { animation-delay: 650ms; }
.tool-card:nth-child(14), [class*="-card"]:nth-child(14) { animation-delay: 700ms; }
.tool-card:nth-child(15), [class*="-card"]:nth-child(15) { animation-delay: 750ms; }
.tool-card:nth-child(16), [class*="-card"]:nth-child(16) { animation-delay: 800ms; }
.tool-card:nth-child(n+17) { animation-delay: 850ms; }


/* ── d) Data Visualization Polish ───────────────────────────────── */

/* Score bars with gradient fills */
.score-bar, .progress-ring-bg, [class*="score-bar"], [class*="progress"] {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

/* Pulsing live indicator */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.live-dot, .live-indicator, [class*="live"] .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  animation: livePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}


/* ── e) Navigation Enhancement ──────────────────────────────────── */

/* Platform nav with smooth transitions */
nav, .nav-bar, .platform-nav {
  transition: backdrop-filter 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

nav a, .nav-link, .platform-nav a {
  position: relative;
  transition: color 200ms ease, background 200ms ease;
}

nav a::after, .nav-link::after, .platform-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold, #D4A853);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after, .nav-link:hover::after, .nav-link.active::after,
.platform-nav a:hover::after, .platform-nav a.active::after {
  transform: scaleX(1);
}

nav a:hover, .nav-link:hover, .platform-nav a:hover {
  background: rgba(212, 168, 83, 0.06);
}


/* ── f) Button System ───────────────────────────────────────────── */

/* Shared button base */
.btn, button, [type="button"], [type="submit"] {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 8px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn:active, button:active, [type="button"]:active, [type="submit"]:active {
  transform: scale(0.97);
}

.btn:focus-visible, button:focus-visible, a:focus-visible,
[type="button"]:focus-visible, [type="submit"]:focus-visible {
  outline: 2px solid var(--gold, #D4A853);
  outline-offset: 2px;
}

/* Primary — gold with glow */
.btn-primary, .btn--primary {
  background: linear-gradient(135deg, #D4A853, #C49B2C);
  color: #000;
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover, .btn--primary:hover {
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.4), 0 0 24px rgba(212, 168, 83, 0.15);
  transform: translateY(-1px);
}

/* Ripple effect */
.btn-primary::after, .btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.btn-primary:active::after, .btn--primary:active::after {
  opacity: 1;
  transition-duration: 0ms;
}

/* Secondary — glass with border */
.btn-secondary, .btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--text, #E6EDF3);
  padding: 10px 20px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover, .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Ghost — text only */
.btn-ghost, .btn--ghost {
  background: transparent;
  border: none;
  color: var(--text-muted, #8B949E);
  padding: 8px 12px;
}

.btn-ghost:hover, .btn--ghost:hover {
  color: var(--text, #E6EDF3);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Icon button — circle */
.btn-icon, .btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #8B949E);
}

.btn-icon:hover, .btn--icon:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border, rgba(255,255,255,0.08));
  color: var(--text, #E6EDF3);
}


/* ── g) Table / Data Grid ───────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 9, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted, #8B949E);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

tbody tr:hover {
  background: rgba(212, 168, 83, 0.04);
}

tbody td {
  padding: 10px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

/* Sortable column indicators */
th[data-sort]::after {
  content: '\2195';
  margin-left: 6px;
  opacity: 0.3;
  font-size: 0.7rem;
}

th[data-sort].asc::after { content: '\2191'; opacity: 0.8; }
th[data-sort].desc::after { content: '\2193'; opacity: 0.8; }

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}


/* ── h) Loading States ──────────────────────────────────────────── */

/* Skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton, .loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.07) 37%,
    rgba(255, 255, 255, 0.03) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text:last-child {
  width: 60%;
}

/* Spinner with gold accent */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner, .loading-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--gold, #D4A853);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Progress bar with animated stripe */
@keyframes progressStripe {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold, #D4A853), #E8C878);
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.1) 25%, transparent 25%,
    transparent 50%, rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.1) 75%, transparent 75%
  );
  background-size: 40px 40px;
  animation: progressStripe 1s linear infinite;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse dots */
@keyframes pulseDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.pulse-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.pulse-dots .dot, .pulse-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #D4A853);
  animation: pulseDot 1.4s infinite ease-in-out;
}

.pulse-dots .dot:nth-child(2), .pulse-dots span:nth-child(2) { animation-delay: 0.16s; }
.pulse-dots .dot:nth-child(3), .pulse-dots span:nth-child(3) { animation-delay: 0.32s; }


/* ── i) Tooltip System ──────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 9999;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(6, 9, 15, 0.9);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text, #E6EDF3);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-tooltip]::after {
  content: '';
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: rgba(6, 9, 15, 0.9);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ── j) Scroll Behavior ────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 83, 0.45);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.25) rgba(255, 255, 255, 0.02);
}


/* ── Life OS Specific: Tool Grid Cards with Category Colors ─────── */

/* Category color accents on tool cards */
.tool-card[data-category="productivity"],
.tool-card.cat-productivity {
  border-top: 3px solid #3fb950;
}

.tool-card[data-category="finance"],
.tool-card.cat-finance {
  border-top: 3px solid #D4A853;
}

.tool-card[data-category="health"],
.tool-card.cat-health {
  border-top: 3px solid #f85149;
}

.tool-card[data-category="learning"],
.tool-card.cat-learning {
  border-top: 3px solid #58a6ff;
}

.tool-card[data-category="social"],
.tool-card.cat-social {
  border-top: 3px solid #a371f7;
}

.tool-card[data-category="creativity"],
.tool-card.cat-creativity {
  border-top: 3px solid #f0883e;
}

.tool-card[data-category="career"],
.tool-card.cat-career {
  border-top: 3px solid #00d4aa;
}

.tool-card[data-category="life"],
.tool-card.cat-life {
  border-top: 3px solid #6366f1;
}


/* ── Tool iframe container with loading shimmer ─────────────────── */
.tool-iframe-container, .iframe-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, rgba(255,255,255,0.03));
}

.tool-iframe-container::before, .iframe-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.06) 37%,
    rgba(255, 255, 255, 0.02) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.tool-iframe-container.loaded::before,
.iframe-wrapper.loaded::before {
  opacity: 0;
}

.tool-iframe-container iframe, .iframe-wrapper iframe {
  position: relative;
  z-index: 2;
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}


/* ── Status Indicators ──────────────────────────────────────────── */
.status-dot, .status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active, .status-indicator.active,
.status-dot.green, .status-indicator.green {
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}

.status-dot.warning, .status-indicator.warning,
.status-dot.yellow, .status-indicator.yellow {
  background: #D4A853;
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.5);
}

.status-dot.error, .status-indicator.error,
.status-dot.red, .status-indicator.red {
  background: #f85149;
  box-shadow: 0 0 6px rgba(248, 81, 73, 0.5);
}

/* Animate active status */
.status-dot.active, .status-indicator.active {
  animation: livePulse 2s ease-in-out infinite;
}


/* ── Progress Rings for Life Area Scores ────────────────────────── */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring .ring-bg {
  stroke: rgba(255, 255, 255, 0.06);
}

.progress-ring .ring-fill {
  stroke: var(--gold, #D4A853);
  filter: drop-shadow(0 0 4px rgba(212, 168, 83, 0.3));
}

.progress-ring .ring-value {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text, #E6EDF3);
}

/* Ring color variants */
.progress-ring.green .ring-fill { stroke: #3fb950; filter: drop-shadow(0 0 4px rgba(63,185,80,0.3)); }
.progress-ring.blue .ring-fill { stroke: #58a6ff; filter: drop-shadow(0 0 4px rgba(88,166,255,0.3)); }
.progress-ring.purple .ring-fill { stroke: #a371f7; filter: drop-shadow(0 0 4px rgba(163,113,247,0.3)); }
.progress-ring.red .ring-fill { stroke: #f85149; filter: drop-shadow(0 0 4px rgba(248,81,73,0.3)); }


/* ── Platform Nav with Smooth Transitions ───────────────────────── */
.platform-nav, .platform-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.platform-nav a, .platform-tabs button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted, #8B949E);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.platform-nav a:hover, .platform-tabs button:hover {
  color: var(--text, #E6EDF3);
  background: rgba(255, 255, 255, 0.05);
}

.platform-nav a.active, .platform-tabs button.active {
  color: var(--gold, #D4A853);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
}


/* ── Accessibility ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tool-card:hover, .platform-card:hover, .stat-card:hover,
  [class*="-card"]:hover {
    transform: none;
  }

  .tool-iframe-container::before, .iframe-wrapper::before {
    animation: none;
    opacity: 0;
  }
}

/* Focus-visible ring for keyboard nav */
:focus-visible {
  outline: 2px solid var(--gold, #D4A853);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Minimum touch targets on mobile */
@media (max-width: 768px) {
  a, button, [role="button"], input, select, textarea,
  .nav-link, .btn, .btn-icon, .tool-card {
    min-height: 44px;
    min-width: 44px;
  }

  td a, td button, span a, .inline-action {
    min-height: auto;
    min-width: auto;
  }
}


/* ── Print Styles ───────────────────────────────────────────────── */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body::before, body::after,
  .ambient, .nav-bar, .platform-nav,
  .tool-iframe-container::before {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .tool-card, .platform-card, .stat-card,
  [class*="-card"] {
    border: 1px solid #ddd !important;
    break-inside: avoid;
    backdrop-filter: none !important;
  }

  table { border-collapse: collapse; }
  th, td { border: 1px solid #ccc !important; padding: 6px 8px !important; }
  thead th { background: #f0f0f0 !important; color: #333 !important; }
}


/* ── Utility Classes ────────────────────────────────────────────── */

.text-gradient {
  background: linear-gradient(135deg, var(--gold, #D4A853), #E8C878);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(6, 9, 15, 0.6);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-green { color: #3fb950; }
.text-red { color: #f85149; }
.text-gold { color: #D4A853; }
.text-blue { color: #58a6ff; }
.text-purple { color: #a371f7; }
.text-muted { color: var(--text-muted, #8B949E); }

.fade-edge-right {
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.fade-edge-both {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
