@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Entry Animations */
  --entry-duration-fast: 400ms;
  --entry-duration-normal: 600ms;
  --entry-delay-base: 100ms;
  --entry-delay-stagger: 50ms;
  --entry-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --entry-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-green-300-rgb: 74, 222, 128;
    --color-green-400-rgb: 34, 197, 94;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: #111015;
    --color-surface: #18161D;
    --color-text: #FFFFFF;
    --color-text-secondary: rgba(var(--color-gray-200-rgb), 0.85);
    --color-primary: #3B82F6;
    --color-primary-hover: #1CB853;
    --color-primary-active: #189845;
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: #4ADE80;
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-green-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* Dark Mode Neumorphic Shadows (Bolder, Supreme) */
    --neuro-shadow-dark: #0a090c;
    --neuro-shadow-light: #24212a;
    --neuro-shadow-raised: 8px 8px 16px var(--neuro-shadow-dark), -8px -8px 16px var(--neuro-shadow-light), inset 1px 1px 2px rgba(255, 255, 255, 0.08);
    --neuro-shadow-pressed: inset 6px 6px 12px var(--neuro-shadow-dark), inset -6px -6px 12px var(--neuro-shadow-light), 1px 1px 1px rgba(255, 255, 255, 0.05);
    --neuro-shadow-flat: 4px 4px 10px var(--neuro-shadow-dark), -4px -4px 10px var(--neuro-shadow-light), inset 1px 1px 1px rgba(255, 255, 255, 0.05);
    --neuro-shadow-subtle: 2px 2px 6px var(--neuro-shadow-dark), -2px -2px 6px var(--neuro-shadow-light);

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15);
  /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15);
  /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15);
  /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15);
  /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15);
  /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15);
  /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15);
  /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: #111015;
  --color-surface: #18161D;
  --color-text: #FFFFFF;
  --color-text-secondary: rgba(var(--color-gray-200-rgb), 0.85);
  --color-primary: #3B82F6;
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */


.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  box-shadow: 4px 4px 10px rgba(59, 130, 246, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 6px 6px 14px rgba(59, 130, 246, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--primary:active {
  background: var(--color-primary-active);
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.2), inset -4px -4px 10px rgba(255, 255, 255, 0.1);
  transform: translateY(2px);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

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

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(var(--color-success-rgb, 33, 128, 141),
      var(--status-bg-opacity));
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(var(--color-error-rgb, 192, 21, 47),
      var(--status-bg-opacity));
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(var(--color-warning-rgb, 168, 75, 47),
      var(--status-bg-opacity));
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(var(--color-info-rgb, 98, 108, 113),
      var(--status-bg-opacity));
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}

.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('./fonts/FKGroteskNeue.woff2') format('woff2');
  font-display: swap;
  /* Improves loading performance */
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Neumorphism Design System Overrides */
:root {
  /* Neumorphism Color Palette - Bolder */
  --neuro-bg: #E2E8F0;
  --neuro-surface: #EDF2F8;
  --neuro-surface-light: #F1F5F9;
  --neuro-shadow-dark: #BDCEDB;
  --neuro-shadow-light: #FFFFFF;
  --neuro-text: #0F172A;
  --neuro-text-secondary: #475569;

  /* Garden Green Theme */
  --color-primary-blue: #3B82F6;
  --color-secondary-blue: #93C5FD;
  --color-dark-blue: #1E40AF;
  --color-emerald: #2563EB;
  --color-emerald-light: #93C5FD;
  --color-emerald-dark: #1D4ED8;
  --color-sage: #93C5FD;
  --color-forest: #1E40AF;

  /* Neumorphism Shadows (Light Mode) - Bolder, Supreme */
  --neuro-shadow-raised: 8px 8px 18px var(--neuro-shadow-dark), -8px -8px 18px var(--neuro-shadow-light), inset 1px 1px 2px rgba(255, 255, 255, 0.8);
  --neuro-shadow-pressed: inset 6px 6px 12px var(--neuro-shadow-dark), inset -6px -6px 12px var(--neuro-shadow-light), 1px 1px 1px rgba(255, 255, 255, 0.7);
  --neuro-shadow-flat: 4px 4px 12px var(--neuro-shadow-dark), -4px -4px 12px var(--neuro-shadow-light), inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  --neuro-shadow-subtle: 2px 2px 8px var(--neuro-shadow-dark), -2px -2px 8px var(--neuro-shadow-light);

  /* Override semantic colors with neumorphism theme */
  --color-background: var(--neuro-bg);
  --color-surface: var(--neuro-surface);
  --color-text: var(--neuro-text);
  --color-text-secondary: var(--neuro-text-secondary);
  --color-primary: var(--color-primary-blue);
  --color-primary-hover: var(--color-emerald-dark);
  --color-primary-active: var(--color-forest);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  background: var(--color-background);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: none;
}

.app {
  min-height: 100vh;
  background: var(--color-background);
  padding-bottom: 80px;
  /* Space for footer */
}

/* Homepage state - centered like Google homepage */
.app:not(.has-results) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Results state - top aligned like Google results */
.app.has-results {
  display: block;
  padding-top: var(--space-32);
}

/* Container for homepage state */
.app:not(.has-results) .container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Container for results state */
.app.has-results .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-16) var(--space-16);
}

/* Header with Google-style minimalism */
.header {
  text-align: center;
  margin-bottom: var(--space-24);
  width: 100%;
}

/* Compact header for results state */
.app.has-results .header {
  margin-bottom: var(--space-16);
}

/* Google-style sticky header for results pages */
.google-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--neuro-shadow-flat);
  overflow: visible;
}

/* Navigation row - part of the header */
.google-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-16) var(--space-12);
  gap: var(--space-16);
  position: relative;
  overflow: visible;
}

.google-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-16);
  gap: var(--space-24);
}

.google-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all var(--duration-normal) var(--ease-standard);
}

.google-logo:hover {
  transform: translateY(-1px);
  text-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.2);
}

.google-search-container {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.google-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  box-shadow: var(--neuro-shadow-subtle);
  border: none;
  transition: all 0.2s ease;
}

.google-search-bar:focus-within {
  box-shadow: var(--neuro-shadow-pressed);
}

.google-search-input {
  flex: 1;
  padding: var(--space-12) var(--space-20);
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-family: var(--font-family-base);
  caret-color: var(--color-primary);
}

.google-search-input:placeholder-shown {
  caret-color: transparent;
}

.google-search-input::placeholder {
  color: var(--color-text-secondary);
}

.google-search-button {
  padding: var(--space-10);
  margin-right: var(--space-8);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-btn-primary-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neuro-shadow-raised);
  transition: all var(--duration-normal) var(--ease-standard);
  min-width: 36px;
  height: 36px;
}

.google-search-button:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--neuro-shadow-flat);
}

.google-search-button:active {
  box-shadow: var(--neuro-shadow-pressed);
}

.google-header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.google-control-btn {
  padding: var(--space-8) var(--space-12);
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-control-btn:hover {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

.google-control-btn:active {
  box-shadow: var(--neuro-shadow-pressed);
}

/* Add padding to body when Google header is shown */
.app.has-results {
  padding-top: 160px;
  /* Increased space for dropdown visibility */
}


.google-nav-tabs {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  align-items: center;
  overflow-y: visible;
}

.google-nav-tabs::-webkit-scrollbar {
  display: none;
}

.google-nav-tab {
  flex-shrink: 0;
  padding: var(--space-6) var(--space-12);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
  border-radius: 0;
}

.google-nav-tab:hover:not(.active) {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

.google-nav-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.google-filter-btn {
  flex-shrink: 0;
  padding: var(--space-8) var(--space-16);
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  margin-left: var(--space-8);
}

.google-filter-btn:hover:not(.active):not(.has-selection) {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

.google-filter-btn.has-selection {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--neuro-shadow-subtle);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.google-filter-btn.active:not(.has-selection) {
  background: var(--color-surface);
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.1), inset -4px -4px 10px rgba(255, 255, 255, 0.7);
  transform: translateY(2px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + var(--space-8));
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neuro-shadow-raised);
  border: 1px solid var(--color-border);
  padding: var(--space-12);
  z-index: 9999;
  /* Much higher z-index */
  animation: dropdownSlide var(--duration-fast) var(--ease-standard);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-dropdown .filter-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.filter-dropdown .filter-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Global dropdowns that render at document level */
.global-filter-dropdown {
  min-width: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neuro-shadow-raised);
  border: 1px solid var(--color-border);
  padding: var(--space-12);
  animation: dropdownSlide var(--duration-fast) var(--ease-standard);
}

.global-filter-dropdown .filter-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.global-filter-dropdown .filter-pills-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-12);
  min-width: 300px;
  max-width: 500px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8) calc(var(--space-4) + 40px) var(--space-8) var(--space-12);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.global-filter-dropdown .filter-pills-grid::-webkit-scrollbar {
  display: none;
}

.global-filter-dropdown .filter-chips-container {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-12);
  min-width: 200px;
  max-width: 400px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8) calc(var(--space-4) + 40px) var(--space-8) var(--space-12);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Scrollability ensured by extended right padding above */

.global-filter-dropdown .filter-chips-container::-webkit-scrollbar {
  display: none;
}

/* Enhanced pills for horizontal scrolling */
.global-filter-dropdown .filter-pill,
.global-filter-dropdown .filter-chip {
  flex-shrink: 0;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all 0.2s ease;
}

.global-filter-dropdown .filter-pill:hover:not(.active),
.global-filter-dropdown .filter-chip:hover:not(.active) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--neuro-shadow-raised);
}

/* Scroll indicators for visual feedback */
.global-filter-dropdown .filter-pills-grid::before,
.global-filter-dropdown .filter-pills-grid::after,
.global-filter-dropdown .filter-chips-container::before,
.global-filter-dropdown .filter-chips-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.global-filter-dropdown .filter-pills-grid::before,
.global-filter-dropdown .filter-chips-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
  opacity: 0;
}

.global-filter-dropdown .filter-pills-grid::after,
.global-filter-dropdown .filter-chips-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}

/* Show left fade when scrolled */
.global-filter-dropdown .filter-pills-grid.scrolled::before,
.global-filter-dropdown .filter-chips-container.scrolled::before {
  opacity: 1;
}

/* Hide right fade when scrolled to end */
.global-filter-dropdown .filter-pills-grid.scrolled-end::after,
.global-filter-dropdown .filter-chips-container.scrolled-end::after {
  opacity: 0;
}

/* Smooth scroll snap */
.global-filter-dropdown .filter-pills-grid,
.global-filter-dropdown .filter-chips-container {
  scroll-snap-type: x proximity;
}

/* Enhanced hover animations for scrollable pills */
.global-filter-dropdown .filter-pill.active,
.global-filter-dropdown .filter-chip.active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--neuro-shadow-raised);
  animation: pillPulse 0.3s ease-out;
}

/* Delightful pulse animation when selecting */
@keyframes pillPulse {
  0% {
    transform: translateY(-1px) scale(1.02);
  }

  50% {
    transform: translateY(-2px) scale(1.08);
  }

  100% {
    transform: translateY(-1px) scale(1.02);
  }
}

/* Add subtle momentum scrolling feedback */
.global-filter-dropdown .filter-pills-grid,
.global-filter-dropdown .filter-chips-container {
  scroll-padding-left: var(--space-12);
  scroll-padding-right: var(--space-12);
}

/* Enhance mobile touch scrolling */
@media (max-width: 768px) {

  .global-filter-dropdown .filter-pills-grid,
  .global-filter-dropdown .filter-chips-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-16);
  }

  .global-filter-dropdown .filter-pill,
  .global-filter-dropdown .filter-chip {
    scroll-snap-align: center;
    min-width: 80px;
    text-align: center;
  }

  /* Mobile-optimized fade indicators */
  .global-filter-dropdown .filter-pills-grid::before,
  .global-filter-dropdown .filter-pills-grid::after,
  .global-filter-dropdown .filter-chips-container::before,
  .global-filter-dropdown .filter-chips-container::after {
    width: 15px;
  }
}

/* Scroll hint animation - shows briefly when dropdown opens */
.global-filter-dropdown .filter-pills-grid,
.global-filter-dropdown .filter-chips-container {
  animation: scrollHint 2s ease-in-out 0.5s;
}

@keyframes scrollHint {

  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  15%,
  30% {
    transform: translateX(-8px);
  }

  45%,
  60% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }
}

/* Add scroll cursor hint */
.global-filter-dropdown .filter-pills-grid:not(.scrolled):not(.scrolled-end),
.global-filter-dropdown .filter-chips-container:not(.scrolled):not(.scrolled-end) {
  cursor: grab;
}

.global-filter-dropdown .filter-pills-grid:active,
.global-filter-dropdown .filter-chips-container:active {
  cursor: grabbing;
}

/* Add visual scroll affordance with subtle shadows */
.global-filter-dropdown .filter-pills-grid,
.global-filter-dropdown .filter-chips-container {
  box-shadow:
    inset 10px 0 15px -10px rgba(0, 0, 0, 0.1),
    inset -10px 0 15px -10px rgba(0, 0, 0, 0.1);
}

.global-filter-dropdown .filter-pills-grid.scrolled,
.global-filter-dropdown .filter-chips-container.scrolled {
  box-shadow:
    inset 15px 0 20px -15px rgba(0, 0, 0, 0.15),
    inset -10px 0 15px -10px rgba(0, 0, 0, 0.1);
}

.global-filter-dropdown .filter-pills-grid.scrolled-end,
.global-filter-dropdown .filter-chips-container.scrolled-end {
  box-shadow:
    inset 15px 0 20px -15px rgba(0, 0, 0, 0.15),
    inset -15px 0 20px -15px rgba(0, 0, 0, 0.15);
}

.google-tools-section {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-shrink: 0;
}

.google-tools-dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-shrink: 0;
}

.google-tools-btn {
  padding: var(--space-10) var(--space-16);
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.google-tools-btn:hover {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

.google-tools-btn:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.google-results-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.google-tools-panel {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--neuro-shadow-pressed);
  max-height: 400px;
  overflow-y: auto;
  animation: slideDown var(--duration-normal) var(--ease-standard);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 400px;
  }
}

.logo {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: var(--space-12) var(--space-16);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  max-width: 300px;
  margin: 0 auto var(--space-12);
}

.logo:hover {
  background: var(--color-background);
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

.logo:active {
  background: var(--color-background);
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.logo::before {
  content: "🌱";
  font-size: var(--font-size-3xl);
}

.subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-32);
  opacity: 0.8;
}

/* Google-style Search Section */
.search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-16);
}

/* Adjust search section for results state */
.app.has-results .search-section {
  margin-bottom: var(--space-24);
}

/* Announcement Pill - Subtle above title */
.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-12);
  background: rgba(var(--color-primary-rgb, 33, 128, 141), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb, 33, 128, 141), 0.2);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: var(--space-16);
}

.announcement-pill:hover {
  background: rgba(var(--color-primary-rgb, 33, 128, 141), 0.15);
  border-color: var(--color-primary);
}

.announcement-pill .pill-text {
  font-size: var(--font-size-sm);
}

.announcement-pill .pill-arrow {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  transition: transform 0.2s ease;
}

.announcement-pill:hover .pill-arrow {
  transform: translateX(2px);
}

/* Chains Page - Simple grid of clickable chain cards */
.chains-page {
  text-align: center;
  padding: var(--space-24) 0;
}

.chains-header {
  margin-bottom: var(--space-32);
}

.chains-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.chains-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.chains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
}

.chain-card {
  background: var(--color-background);
  border-radius: 20px;
  padding: var(--space-20);
  box-shadow: var(--neuro-shadow-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.chain-card:hover {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-2px);
}

.chain-card:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.chain-card .chain-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-12);
  display: block;
}

.chain-card .chain-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.chain-card .chain-stats {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.chains-loading,
.chains-error {
  text-align: center;
  padding: var(--space-32);
  color: var(--color-text-secondary);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .chains-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-12);
  }

  .chain-card {
    padding: var(--space-16);
  }

  .chain-card .chain-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-8);
  }

  /* Google navigation mobile styles */
  .google-nav-content {
    padding: var(--space-8) var(--space-12);
    gap: var(--space-8);
  }

  .google-nav-tabs {
    gap: var(--space-4);
  }

  .google-nav-tab {
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-xs);
  }

  .google-tools-btn {
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-xs);
  }

  .google-results-count {
    display: none;
    /* Hide on mobile to save space */
  }
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.search-input {
  width: 100%;
  padding: var(--space-16) var(--space-20);
  font-size: var(--font-size-lg);
  border: none;
  border-radius: 20px;
  background: var(--color-background);
  color: var(--color-text);
  caret-color: var(--color-primary);
  transition: all 0.2s ease;
  box-shadow: var(--neuro-shadow-pressed);
  outline: none;

  box-shadow: var(--neuro-shadow-pressed);
  background: var(--neuro-bg);

  background: var(--color-surface) !important;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.search-input:placeholder-shown {
  caret-color: transparent;
}

.search-input:focus {
  box-shadow: var(--neuro-shadow-pressed), 0 0 0 3px rgba(59, 130, 246, 0.2);

  box-shadow: var(--neuro-shadow-pressed);
}

.search-input::placeholder {
  color: var(--color-text-secondary);
}

/* Neumorphic Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--neuro-shadow-subtle);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: var(--space-8);
}

.autocomplete-item {
  padding: var(--space-12) var(--space-20);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  margin: var(--space-4) var(--space-8);
  background: var(--color-background);
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--color-background);
  box-shadow: var(--neuro-shadow-pressed);
  color: var(--color-primary);
  transform: scale(0.98);
}

/* Neumorphic Filters Section */
.filters-section {
  background: var(--color-background);
  border-radius: 20px;
  padding: var(--space-16);
  margin-bottom: var(--space-24);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.3s ease;
}

.filters-section:hover {
  box-shadow: var(--neuro-shadow-raised), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-20);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.filter-label {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: var(--space-6) var(--space-12);
  margin: 0;
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-inset);
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* Add subtle indicator dot for active sections */
.filter-label::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.filter-section.has-active-filter .filter-label::before {
  opacity: 1;
  box-shadow: none;
  display: inline-block;
  margin: 0;
}

.filter-select {
  padding: var(--space-12) var(--space-16);
  border: none;
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  box-shadow: var(--neuro-shadow-pressed);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  box-shadow: var(--neuro-shadow-pressed), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filter-select:hover {
  box-shadow: var(--neuro-shadow-subtle);
}

/* Results Section */
.results-section {
  margin-bottom: var(--space-32);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  padding: var(--space-16) var(--space-20);
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--neuro-shadow-flat);
}

.results-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.view-toggles {
  display: flex;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--neuro-shadow-pressed);
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 16px;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: var(--color-primary);
}

.view-toggle-btn.active {
  background: var(--color-background);
  color: var(--color-primary);
  box-shadow: var(--neuro-shadow-raised);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.sort-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.sort-toggles {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--neuro-shadow-pressed);
}

.sort-toggle-btn {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* List View Styles */
.pools-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
}

.pools-list .pool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding: var(--space-16) var(--space-24);
  min-height: auto;
  border-radius: 16px;
  flex-direction: row;
}

.pools-list .pool-header-new {
  display: contents;
}

.pools-list .pool-left-section {
  flex: 2;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pools-list .pool-apy-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.pools-list .pool-tvl-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.pools-list .pool-tvl-section .tvl-label {
  margin-bottom: var(--space-4);
  font-size: 10px;
  opacity: 0.7;
}

.pools-list .pool-tvl-section .tvl-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.pools-list .pool-details-expanded {
  display: none !important;
  /* Hide breakdown in list view */
}

.pools-list .pool-cta-section {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .pools-list .pool-card {
    flex-wrap: wrap;
  }

  .pools-list .pool-cta-section {
    flex: 100%;
    justify-content: center;
    margin-top: var(--space-16);
  }
}

@media (max-width: 768px) {
  .pools-list .pool-card {
    flex-direction: column;
    align-items: stretch;
  }

  .pools-list .pool-header-new {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: var(--space-16);
  }

  .pools-list .pool-left-section,
  .pools-list .pool-apy-section,
  .pools-list .pool-tvl-section {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: var(--space-12);
  }

  .results-controls {
    width: 100%;
    justify-content: space-between;
  }
}

.results-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.results-count {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  background: var(--color-background);
  padding: var(--space-6) var(--space-12);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-pressed);
}

/* Neumorphic Pool Cards */
.pools-grid {
  display: grid;
  gap: var(--space-20);
  grid-template-columns: 1fr;
}

/* Desktop: 3 cards per row (1024px and up) */
@media (min-width: 1024px) {
  .pools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
    max-width: 1200px;
    margin: 0 auto;
  }
}

.pool-card {
  background: var(--color-background);
  border-radius: 24px;
  padding: var(--space-24);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--neuro-shadow-flat);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

/* Compact desktop cards */
@media (min-width: 1024px) {
  .pool-card {
    padding: var(--space-16);
    border-radius: 24px;
    min-height: 200px;
    max-height: 280px;
  }
}

.pool-card.clickable {
  cursor: pointer;
}

.pool-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--neuro-shadow-raised), 0 12px 30px rgba(59, 130, 246, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Reduced hover effect for desktop compact cards */
@media (min-width: 1024px) {
  .pool-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--neuro-shadow-raised), 0 8px 20px rgba(59, 130, 246, 0.15);
  }
}

.pool-card:hover .pool-apy-hero {
  box-shadow: var(--neuro-shadow-subtle);
  transform: scale(1.02);

  box-shadow: var(--neuro-shadow-pressed) !important;
  background: var(--neuro-bg);
  border-radius: 16px;
  padding: 8px 16px;

  background: var(--color-surface) !important;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.pool-card:hover .pool-apy-preview {
  opacity: 1;
  color: var(--color-primary);
  transform: translateY(0);
}

.pool-card:hover .pool-symbol {
  color: var(--color-primary);
  transform: translateX(2px);
}

.pool-card:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--neuro-shadow-pressed);
}

.pool-card::before {
  display: none;
}

.pool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-16);
}

/* Compact header for desktop */
@media (min-width: 1024px) {
  .pool-header {
    margin-bottom: var(--space-12);
  }
}

.pool-project {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Smaller project text for desktop compact cards */
@media (min-width: 1024px) {
  .pool-project {
    font-size: var(--font-size-base);
    gap: var(--space-4);
  }
}

.external-link {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: var(--space-2) var(--space-4);
  border-radius: 6px;
  background: var(--color-background);
  box-shadow: var(--neuro-shadow-subtle);
}

.pool-card:hover .external-link {
  opacity: 1;
  box-shadow: var(--neuro-shadow-pressed);
}

.pool-apy {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: var(--color-background);
  padding: var(--space-8) var(--space-12);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-pressed);
}

.pool-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.pool-detail {
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  padding: var(--space-8);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-subtle);
}

.pool-detail-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-semibold);
}

.pool-detail-value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.pool-chain {
  display: inline-flex;
  align-items: center;
  background: var(--color-background);
  color: var(--color-primary);
  padding: var(--space-8) var(--space-16);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  text-transform: capitalize;
  max-width: fit-content;
}

/* Neumorphic Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  margin-top: var(--space-32);
}

.pagination-button {
  padding: var(--space-12) var(--space-20);
  border: none;
  background: var(--color-background);
  color: var(--color-text);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
}

.pagination-button:hover:not(:disabled) {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-1px);
}

.pagination-button:active:not(:disabled) {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.pagination-button.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--neuro-shadow-pressed);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: var(--neuro-shadow-subtle);
}

.pagination-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0 var(--space-16);
  padding: var(--space-8) var(--space-16);
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-pressed);
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: var(--space-32);
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--neuro-shadow-flat);
  margin: var(--space-24) 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-background);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-16);
  box-shadow: var(--neuro-shadow-subtle);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.empty-message {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-12);
  font-weight: var(--font-weight-medium);
}

.empty-submessage {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

/* Error State */
.error-state {
  text-align: center;
  padding: var(--space-32);
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--neuro-shadow-flat);
  margin: var(--space-24) 0;
}

.error-message {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

/* Neumorphic Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-background);
  padding: var(--space-16) var(--space-20);
  text-align: center;
  box-shadow: 0 -8px 16px var(--neuro-shadow-dark), 0 -4px 8px var(--neuro-shadow-light);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  z-index: 100;
}

.app-footer p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.app-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  padding: var(--space-2) var(--space-4);
  border-radius: 6px;
}

.app-footer a:hover {
  color: var(--color-primary-hover);
  background: rgba(59, 130, 246, 0.1);
}

/* Reset Filters Button - styled like "I'm Feeling Degen" */
.reset-filters-btn {
  margin-top: var(--space-20);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-24);
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
  color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-raised), 0 4px 15px rgba(33, 128, 141, 0.3);
  min-width: auto;
}

.reset-filters-btn:hover {
  background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-700));
  box-shadow: var(--neuro-shadow-raised), 0 8px 25px rgba(33, 128, 141, 0.4);
  transform: translateY(-3px);
}

.reset-filters-btn:active {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(0);
}

/* Responsive Design - Mobile Only (Desktop Unchanged) */
@media (max-width: 768px) {
  .app.has-results {
    padding-top: var(--space-20);
  }

  .app:not(.has-results) .container {
    padding: var(--space-16) var(--space-16);
    max-width: 100%;
  }

  .app.has-results .container {
    padding: var(--space-16) var(--space-16);
    max-width: 100%;
  }

  /* Mobile Search Container - Fix Width Overflow */
  .search-container {
    max-width: 100%;
    width: 100%;
  }

  /* Mobile Search Input - Fix Keyboard Focus Issues */
  .search-input {
    font-size: var(--font-size-base);
    padding: var(--space-12) var(--space-20);
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    /* Minimum touch target */

    box-shadow: var(--neuro-shadow-pressed);
    background: var(--neuro-bg);

    background: var(--color-surface) !important;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }

  /* Mobile Autocomplete Dropdown - Optimized Height */
  .autocomplete-dropdown {
    max-height: 30vh;
    /* Reduce height to account for mobile keyboard */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Keep normal positioning below input */
    top: calc(100% + 8px);
  }

  .autocomplete-item {
    padding: var(--space-16) var(--space-20);
    min-height: 44px;
    /* Minimum touch target */
    display: flex;
    align-items: center;
    font-size: var(--font-size-base);
  }

  /* Mobile Filters - Stack Vertically */
  .filters-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .filter-select {
    min-height: 44px;
    /* Minimum touch target */
    font-size: var(--font-size-base);
    padding: var(--space-12) var(--space-32) var(--space-12) var(--space-16);
  }

  /* Mobile Pool Cards - Better Spacing */
  .pool-details {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .pool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
  }

  .pool-card {
    padding: var(--space-20);
    min-height: auto;

    border-radius: 24px;
  }

  .pool-card.clickable {
    min-height: 44px;
    /* Minimum touch target */
  }

  /* Mobile Typography */
  .logo {
    font-size: var(--font-size-2xl);
    padding: var(--space-8) var(--space-12);
    margin-bottom: var(--space-8);
  }

  .subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-24);
    text-align: center;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
    padding: var(--space-16);
  }

  .results-title {
    font-size: var(--font-size-xl);
  }

  /* Mobile Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: center;
  }

  .pagination-button {
    min-height: 44px;
    /* Minimum touch target */
    padding: var(--space-12) var(--space-16);
  }

  /* Mobile Footer */
  .app-footer {
    padding: var(--space-12) var(--space-16);
  }

  .app-footer p {
    font-size: var(--font-size-xs);
  }
}

/* Small Mobile Devices - Additional Optimizations */
@media (max-width: 480px) {
  .pool-card {
    padding: var(--space-16);
    margin-bottom: var(--space-16);

    border-radius: 24px;
  }

  .search-container {
    max-width: 100%;
    padding: 0 var(--space-4);
  }

  .search-input {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-sm);
    border-radius: 18px;

    box-shadow: var(--neuro-shadow-pressed);
    background: var(--neuro-bg);

    background: var(--color-surface) !important;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }

  .logo {
    max-width: 100%;
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
    padding: var(--space-6) var(--space-10);
  }

  .subtitle {
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-20);
    padding: 0 var(--space-8);
  }

  .filters-section {
    padding: var(--space-16);
    margin-bottom: var(--space-20);
  }

  .filter-group {
    margin-bottom: var(--space-12);
  }

  .pool-apy {
    font-size: var(--font-size-xl);
    padding: var(--space-6) var(--space-10);
  }

  .pool-project {
    font-size: var(--font-size-base);
  }

  .results-header {
    padding: var(--space-8);
  }

  .pagination-info {
    font-size: var(--font-size-xs);
    padding: var(--space-6) var(--space-12);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Mobile Virtual Keyboard and Viewport Management */
@media (max-width: 768px) {

  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Fix iOS Safari viewport issues */
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  /* Prevent zoom on input focus (iOS Safari) */
  input[type="text"],
  select {
    font-size: 16px !important;
    transform: translateZ(0);
    /* Force hardware acceleration */
  }

  /* Handle virtual keyboard appearance */
  .search-input:focus {
    position: relative;
    z-index: 9999;

    box-shadow: var(--neuro-shadow-pressed);
  }

  /* Improve touch scrolling */
  .autocomplete-dropdown,
  .pools-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Mobile viewport adjustments for keyboard handling */
  .search-container {
    position: relative;
    z-index: 1001;
    /* Ensure search stays above other content */
  }

  /* Ensure body adjusts properly when mobile keyboard appears */
  body {
    /* Prevent zoom on input focus */
    touch-action: manipulation;
  }

  /* Prevent viewport zoom on input focus for iOS */
  .search-input {
    font-size: 16px;
    /* Prevents zoom on iOS */

    box-shadow: var(--neuro-shadow-pressed);
    background: var(--neuro-bg);

    background: var(--color-surface) !important;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }
}

/* Add slight upward shift for Google-style positioning */
.app:not(.has-results) .container {
  transform: translateY(-5vh);
}

/* Enhanced focus states for accessibility */
.search-input:focus,
.filter-select:focus,
.pagination-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* APY-based color coding for compact cards */
@media (min-width: 1024px) {

  /* High yield pools (15%+) */
  .pool-apy-hero.high-yield {
    background: var(--color-primary);
    color: white;
  }

  /* Medium yield pools (5-15%) */
  .pool-apy-hero.medium-yield {
    background: var(--color-primary);
    color: white;
  }

  /* Low yield pools (<5%) */
  .pool-apy-hero.low-yield {
    background: var(--color-background);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
  }

  /* Enhanced TVL section for compact display */
  .pool-tvl-section {
    background: var(--color-background);
    padding: var(--space-6) var(--space-8);
    border-radius: 8px;
    box-shadow: var(--neuro-shadow-subtle);
    margin-bottom: var(--space-8);
    text-align: center;

    box-shadow: var(--neuro-shadow-pressed) !important;
    background: var(--neuro-bg);
    border-radius: 12px;

    background: var(--color-surface) !important;
    border-radius: 12px;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }

  .tvl-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
  }
}

/* Custom scrollbar for autocomplete */
.autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: var(--color-background);
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--neuro-shadow-dark);
  border-radius: 4px;
  box-shadow: inset 2px 2px 4px var(--neuro-shadow-dark);
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Pool Footer for Calculate Button */
.pool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* Compact footer for desktop cards */
@media (min-width: 1024px) {
  .pool-footer {
    margin-top: var(--space-12);
    padding-top: var(--space-12);
  }
}

/* New Optimized Pool Card Layout */

/* Header Section - Symbol + Protocol + APY */
.pool-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-20);
  position: relative;
}

/* Compact new header for desktop */
@media (min-width: 1024px) {
  .pool-header-new {
    margin-bottom: var(--space-12);
  }
}

.pool-left-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pool-symbol {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  transition: all 0.2s ease;
}

/* Adjust symbol size for compact desktop cards */
@media (min-width: 1024px) {
  .pool-symbol {
    font-size: var(--font-size-lg);
  }
}

.pool-context-inline {
  font-size: 10px;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: 4px 12px;
  background: var(--color-surface);
  border-radius: 999px;
  box-shadow: var(--neuro-shadow-pressed);
  opacity: 0.9;
}

/* Smaller context text for desktop compact cards */
@media (min-width: 1024px) {
  .pool-context-inline {
    font-size: var(--font-size-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.pool-apy-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  text-align: right;
}

/* Compact APY section for desktop */
@media (min-width: 1024px) {
  .pool-apy-section {
    gap: var(--space-1);
  }
}

/* Enhanced APY hero styling with shimmer effect */
.pool-apy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
  transition: left 0.6s ease;
}

.pool-card:hover .pool-apy-hero::before {
  left: 100%;
}

/* Protocol chain badge styling */
.pool-context-inline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary-blue);
  margin-right: var(--space-2);
}

/* Enhanced trustworthiness indicators */
.pool-left-section::after {
  content: attr(data-pool-type);
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: var(--space-1) var(--space-4);
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}



/* Risk assessment visual indicators */






/* TVL confidence indicators */






/* Enhanced typography hierarchy for financial data */
.pool-apy-hero {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-feature-settings: 'tnum' 1, 'kern' 1;
  font-variant-numeric: tabular-nums;

  box-shadow: var(--neuro-shadow-pressed) !important;
  background: var(--neuro-bg);
  border-radius: 16px;
  padding: 8px 16px;

  background: var(--color-surface) !important;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.tvl-value,
.pool-apy-preview {
  font-feature-settings: 'tnum' 1, 'kern' 1;
  font-variant-numeric: tabular-nums;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  .pool-apy-hero::before,
  .calculate-yield-btn-new::before {
    display: none;
  }
}

/* Focus states for accessibility */
.pool-card:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.calculate-yield-btn-new:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Enhanced TVL section styling with horizontal layout */
.pool-tvl-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border: none;
  padding: var(--space-8) var(--space-12);
  margin: var(--space-12) 0;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.pool-tvl-section:hover {
  background: var(--color-surface);
}

.tvl-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.tvl-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* TVL tier-based border styling */






/* Daily earnings preview enhancement */
.pool-apy-preview {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: var(--space-4) var(--space-8);
  border-radius: 8px;
  opacity: 0.9;
  transition: all 0.3s ease;
  margin-top: var(--space-2);
}

.pool-card:hover .pool-apy-preview {
  background: var(--color-surface);
  opacity: 1;
  color: var(--color-primary);
}

/* Risk-based top border indicators */






/* Enhanced button styling for Calculate Yield */
.calculate-yield-btn-new {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
  color: white;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  padding: var(--space-12) var(--space-20);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--neuro-shadow-flat), inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  margin-top: var(--space-8);
}

.calculate-yield-btn-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.calculate-yield-btn-new:hover::before {
  left: 100%;
}

.calculate-yield-btn-new:hover {
  transform: translateY(-2px);
  box-shadow: var(--neuro-shadow-raised), inset 1px 1px 3px rgba(255, 255, 255, 0.4);
}

.calculate-yield-btn-new:active {
  transform: translateY(2px);
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.pool-apy-hero {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  background: var(--neuro-bg);
  padding: var(--space-16) var(--space-24);
  border-radius: 20px;
  box-shadow: var(--neuro-shadow-pressed), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  line-height: 0.9;
  position: relative;
  overflow: hidden;

  box-shadow: var(--neuro-shadow-pressed) !important;
  background: var(--neuro-bg);
  border-radius: 16px;
  padding: 8px 16px;

  background: var(--color-surface) !important;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

/* Smaller APY display for desktop compact cards */
@media (min-width: 1024px) {
  .pool-apy-hero {
    font-size: var(--font-size-xl);
    padding: var(--space-6) var(--space-12);
    border-radius: 10px;

    box-shadow: var(--neuro-shadow-pressed) !important;
    background: var(--neuro-bg);
    border-radius: 16px;
    padding: 8px 16px;

    background: var(--color-surface) !important;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }
}

.pool-apy-preview {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  opacity: 0.8;
  transition: all 0.3s ease;
  line-height: 1;
  padding: var(--space-2) var(--space-8);
  text-align: right;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-right: var(--space-8);
}

/* Adjust preview text for desktop compact cards */
@media (min-width: 1024px) {
  .pool-apy-preview {
    font-size: var(--font-size-xs);
    padding-right: var(--space-12);
  }
}

/* Context Bar - Protocol + Chain */
.pool-context {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-20);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Compact context section for desktop */
@media (min-width: 1024px) {
  .pool-context {
    margin-bottom: var(--space-12);
    gap: var(--space-6);
    font-size: var(--font-size-xs);
  }
}

.pool-protocol {
  font-weight: var(--font-weight-medium);
}

.context-separator {
  color: var(--color-text-secondary);
  opacity: 0.5;
}

.pool-chain-new {
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
}

.external-link-new {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  opacity: 0.7;
  transition: all 0.2s ease;
  margin-left: var(--space-4);
}

/* TVL Section */
.pool-tvl-section {
  background: var(--color-background);
  padding: var(--space-10) var(--space-12);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-subtle);
  margin-bottom: var(--space-16);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;

  box-shadow: var(--neuro-shadow-pressed) !important;
  background: var(--neuro-bg);
  border-radius: 12px;

  background: var(--color-surface) !important;
  border-radius: 12px;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.tvl-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.tvl-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin: 0;
  line-height: 1;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Progressive Disclosure - APY Breakdown */
.pool-details-expanded {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-bottom: var(--space-16);
  padding: 0 var(--space-16);
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-subtle);
}

.pool-card:hover .pool-details-expanded {
  opacity: 1;
  max-height: 80px;
  padding: var(--space-12) var(--space-16);
}

.apy-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  font-size: var(--font-size-xs);
}

.breakdown-label {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.breakdown-value {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  background: var(--color-background);
  padding: var(--space-2) var(--space-6);
  border-radius: 6px;
  box-shadow: var(--neuro-shadow-subtle);
}


/* Primary CTA Section */
.pool-cta-section {
  margin-top: auto;
}

.calculate-yield-btn-new {
  width: 100%;
  padding: var(--space-16) var(--space-24);
  border: none;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--neuro-shadow-subtle), 0 4px 15px rgba(59, 130, 246, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;

  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

/* Button shimmer effect */
.calculate-yield-btn-new::before {
  display: none;
}

.calculate-yield-btn-new:hover {
  background: var(--color-primary);
  box-shadow: var(--neuro-shadow-raised), 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);

  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-1px);
}

.calculate-yield-btn-new:hover::before {
  left: 100%;
}

.calculate-yield-btn-new:active {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-1px);
}

/* Legacy button styles for backwards compatibility */
.calculate-yield-btn {
  padding: var(--space-8) var(--space-16);
  border: none;
  background: var(--color-background);
  color: var(--color-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
}

.calculate-yield-btn:hover {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-1px);
  color: var(--color-forest);
}

.calculate-yield-btn:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

/* Yield Calculator Modal */
.yield-calculator-modal {
  background: var(--color-background);
  border-radius: 20px;
  padding: var(--space-32);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--neuro-shadow-raised), 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.modal-close {
  background: var(--color-background);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  box-shadow: var(--neuro-shadow-subtle);
}

.modal-close:hover {
  box-shadow: var(--neuro-shadow-flat);
  color: var(--color-red-500);
  transform: scale(1.05);
}

.modal-close:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: scale(0.95);
}

/* Modal Content */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

/* Pool Info Section */
.pool-info {
  background: var(--color-background);
  border-radius: 20px;
  padding: var(--space-20);
  box-shadow: var(--neuro-shadow-pressed);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.pool-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pool-info-item .label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.pool-info-item .value {
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.pool-info-item .value.apy {
  color: var(--color-primary);
  background: var(--color-background);
  padding: var(--space-4) var(--space-8);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-subtle);
}

.pool-info-item .value.token-pair {
  color: var(--color-text);
  background: var(--color-background);
  padding: var(--space-4) var(--space-8);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-subtle);
  font-family: monospace;
  font-weight: var(--font-weight-bold);
}

/* Investment Input */
.investment-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.input-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.amount-input {
  padding: var(--space-16);
  border: none;
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-pressed);
  outline: none;
  transition: all 0.2s ease;
}

.amount-input:focus {
  box-shadow: var(--neuro-shadow-pressed), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Yield Results */
.yield-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.yield-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) var(--space-20);
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: var(--neuro-shadow-subtle);
}

.yield-period {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.yield-amount {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: var(--color-background);
  padding: var(--space-6) var(--space-12);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-pressed);
}

.yield-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: center;
  font-style: italic;
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: var(--neuro-shadow-subtle);
}

/* Start Earning Section */
.start-earning-section {
  margin-top: var(--space-8);
  text-align: center;
}

.start-earning-btn {
  padding: var(--space-16) var(--space-32);
  border: none;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.start-earning-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 8px 25px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.start-earning-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 4px 8px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.start-earning-btn::before {
  display: none;
}

.start-earning-btn:hover::before {
  left: 100%;
}

/* Mobile Responsive for Modal */
@media (max-width: 640px) {
  .yield-calculator-modal {
    margin: var(--space-16);
    padding: var(--space-24);
    max-height: calc(100vh - 32px);
  }

  .modal-header {
    margin-bottom: var(--space-20);
  }

  .modal-title {
    font-size: var(--font-size-lg);
  }

  .pool-info {
    padding: var(--space-16);
  }

  .yield-result-item {
    padding: var(--space-12) var(--space-16);
  }

  .calculate-yield-btn {
    font-size: var(--font-size-xs);
    padding: var(--space-6) var(--space-12);
  }

  .start-earning-btn {
    padding: var(--space-12) var(--space-24);
    font-size: var(--font-size-sm);
  }

  /* New Layout Mobile Styles */
  .pool-symbol {
    font-size: var(--font-size-lg);
  }

  .pool-context-inline {
    font-size: var(--font-size-xs);
  }

  .pool-apy-hero {
    font-size: var(--font-size-xl);
    padding: var(--space-6) var(--space-12);

    box-shadow: var(--neuro-shadow-pressed) !important;
    background: var(--neuro-bg);
    border-radius: 16px;
    padding: 8px 16px;

    background: var(--color-surface) !important;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }

  .pool-apy-preview {
    font-size: var(--font-size-xs);
  }

  .pool-tvl-section {
    padding: var(--space-8);
    margin-bottom: var(--space-16);

    box-shadow: var(--neuro-shadow-pressed) !important;
    background: var(--neuro-bg);
    border-radius: 12px;

    background: var(--color-surface) !important;
    border-radius: 12px;
    box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
  }

  .tvl-value {
    font-size: var(--font-size-base);
  }

  .calculate-yield-btn-new {
    padding: var(--space-12) var(--space-20);
    font-size: var(--font-size-sm);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
  }
}

/* Dark Mode Toggle Styles */
.theme-toggle {
  position: fixed;
  top: var(--space-20);
  right: var(--space-20);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--color-background);
  border-radius: var(--radius-full);
  padding: var(--space-8);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  cursor: pointer;
}

/* Desktop - Keep sticky positioning */
@media (min-width: 641px) {
  .theme-toggle {
    position: fixed;
    top: var(--space-20);
    right: var(--space-20);
    z-index: 1000;
  }
}

.theme-toggle:hover {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-1px);
}

.theme-toggle:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.theme-toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  box-shadow: var(--neuro-shadow-pressed);
  transition: all var(--duration-normal) var(--ease-standard);
}

.theme-toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--color-background);
  border-radius: 50%;
  box-shadow: var(--neuro-shadow-subtle);
  transition: all var(--duration-normal) var(--ease-standard);
}

.theme-toggle[data-theme="dark"] .theme-toggle-handle {
  left: 26px;
  background: var(--color-primary);
}

.theme-toggle[data-theme="dark"] .theme-toggle-switch {
  background: var(--color-secondary);
}

.theme-toggle-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  user-select: none;
}

/* Language Toggle Styles */
.language-toggle {
  position: fixed;
  top: var(--space-20);
  right: calc(var(--space-20) + 200px);
  /* Position next to theme toggle */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: var(--radius-full);
  box-shadow: var(--neuro-shadow-subtle);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-standard);
  user-select: none;
}

.language-toggle:hover {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-1px);
  background: var(--color-surface);
}

.language-toggle:active {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

/* Desktop - Keep fixed positioning */
@media (min-width: 641px) {
  .language-toggle {
    position: fixed;
    top: var(--space-20);
    right: calc(var(--space-20) + 200px);
  }
}

/* Mobile Responsive for Language Toggle */
@media (max-width: 640px) {
  .language-toggle {
    position: static;
    margin: var(--space-16) var(--space-16) var(--space-8) 0;
    width: 40px;
    height: 40px;
  }

  /* Fix toggle position on mobile initial homepage state only */
  .app:not(.has-results) .language-toggle {
    position: fixed;
    top: var(--space-20);
    right: calc(var(--space-20) + 140px);
    width: 40px;
    height: 40px;
    margin: 0;
  }
}

/* Extra small screens - compact mobile toggle */
@media (max-width: 480px) {
  .language-toggle {
    margin: var(--space-12) var(--space-12) var(--space-6) 0;
    width: 36px;
    height: 36px;
    font-size: var(--font-size-xs);
  }

  /* Fix toggle position on extra small mobile initial homepage state only */
  .app:not(.has-results) .language-toggle {
    position: fixed;
    top: var(--space-16);
    right: calc(var(--space-16) + 120px);
    width: 36px;
    height: 36px;
    margin: 0;
  }
}

/* Data attribute based theme switching */
[data-theme="dark"] {
  /* RGB versions for opacity control (Dark Mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-green-300-rgb: 74, 222, 128;
  --color-green-400-rgb: 34, 197, 94;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Background color tokens (Dark Mode) */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15);
  /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15);
  /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15);
  /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15);
  /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15);
  /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15);
  /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15);
  /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: #1B191E;
  --color-surface: #211F24;
  --color-text: #F3F1F4;
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: #3B82F6;
  --color-primary-hover: #1CB853;
  --color-primary-active: #189845;
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: #4ADE80;
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-green-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;

  /* Dark Mode Neumorphic Shadows */
  --neuro-shadow-dark: #141317;
  --neuro-shadow-light: #2E2B31;
  --neuro-shadow-raised: 6px 6px 14px var(--neuro-shadow-dark), -6px -6px 14px var(--neuro-shadow-light);
  --neuro-shadow-pressed: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light);
  --neuro-shadow-flat: 4px 4px 10px var(--neuro-shadow-dark), -4px -4px 10px var(--neuro-shadow-light);
  --neuro-shadow-subtle: 2px 2px 6px var(--neuro-shadow-dark), -2px -2px 6px var(--neuro-shadow-light);
}

/* Search Buttons */
.search-buttons {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-20);
  padding: var(--space-16);
  justify-content: center;
}

.search-button {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-24);
  border: none;
  background: var(--color-background);
  color: var(--color-text);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  min-width: 160px;
  justify-content: center;
  text-transform: none;
}

.search-button:hover:not(:disabled) {
  box-shadow: var(--neuro-shadow-flat);
  transform: translateY(-2px);
}

.search-button:active:not(:disabled) {
  box-shadow: var(--neuro-shadow-pressed);
  transform: translateY(0);
}

.search-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: var(--neuro-shadow-subtle);
}

.search-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: var(--neuro-shadow-subtle);
}

.search-button.feeling-degen {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
  color: white;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Extreme neumorphic button */
  box-shadow: 8px 8px 16px var(--neuro-shadow-dark), -8px -8px 16px var(--neuro-shadow-light), inset 1px 1px 3px rgba(255, 255, 255, 0.3), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-button.feeling-degen::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.search-button.feeling-degen:hover::before {
  left: 100%;
}

.search-button.feeling-degen:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px var(--neuro-shadow-dark), -12px -12px 20px var(--neuro-shadow-light), inset 1px 1px 4px rgba(255, 255, 255, 0.5), inset -1px -1px 4px rgba(0, 0, 0, 0.2);
}

.search-button.feeling-degen:active {
  transform: translateY(2px);
  box-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.3), inset -8px -8px 16px rgba(255, 255, 255, 0.15);
}

.button-icon {
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
}

.button-text {
  font-weight: var(--font-weight-semibold);
}

/* Mobile responsive for search buttons */
@media (max-width: 768px) {
  .search-buttons {
    flex-direction: column;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding: var(--space-8);
  }

  .search-button {
    min-width: auto;
    width: 100%;
    padding: var(--space-16) var(--space-20);
    font-size: var(--font-size-sm);
  }

  .button-icon {
    font-size: var(--font-size-base);
  }
}

/* Mobile Responsive for Theme Toggle - Remove sticky positioning */
@media (max-width: 640px) {
  .theme-toggle {
    position: static;
    margin: var(--space-16) var(--space-16) var(--space-8) auto;
    padding: var(--space-6);
    gap: var(--space-6);
    width: fit-content;
    z-index: auto;
  }

  /* Fix toggle position on mobile initial homepage state only */
  .app:not(.has-results) .theme-toggle {
    position: fixed;
    top: var(--space-20);
    right: var(--space-20);
    z-index: 1000;
    margin: 0;
  }

  .theme-toggle-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  .theme-toggle-switch {
    width: 40px;
    height: 20px;
  }

  .theme-toggle-handle {
    width: 16px;
    height: 16px;
  }

  .theme-toggle[data-theme="dark"] .theme-toggle-handle {
    left: 22px;
  }

  .theme-toggle-text {
    font-size: var(--font-size-xs);
  }
}

/* Extra small screens - compact mobile toggle */
@media (max-width: 480px) {
  .theme-toggle {
    margin: var(--space-12) var(--space-12) var(--space-6) auto;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  /* Fix toggle position on extra small mobile initial homepage state only */
  .app:not(.has-results) .theme-toggle {
    position: fixed;
    top: var(--space-16);
    right: var(--space-16);
    z-index: 1000;
    margin: 0;
    padding: var(--space-4);
  }

  .theme-toggle-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .theme-toggle-switch {
    width: 36px;
    height: 18px;
  }

  .theme-toggle-handle {
    width: 14px;
    height: 14px;
    top: 2px;
    left: 2px;
  }

  .theme-toggle[data-theme="dark"] .theme-toggle-handle {
    left: 20px;
  }

  .theme-toggle-text {
    font-size: 10px;
  }
}

/* =========================================
   ENTRY ANIMATIONS
   ======================================== */

/* Animation timing variables - extend the existing :root */

/* Keyframe definitions */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: var(--shadow-raised);
  }

  50% {
    box-shadow: var(--shadow-raised), 0 0 20px rgba(var(--color-teal-500-rgb), 0.3);
  }
}

/* Initial hidden state for animated elements */
.animate-on-mount {
  opacity: 0;
}

/* Header animations */
.header.animate-on-mount {
  animation: fadeInDown var(--entry-duration-normal) var(--entry-easing) var(--entry-delay-base) both;
}

.logo {
  transition: transform 300ms var(--entry-easing);
}

.logo:hover {
  transform: scale(1.02);
}

/* Search section animations */
.search-section.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 2) both;
}

.search-input {
  transition: all 300ms var(--entry-easing);

  box-shadow: var(--neuro-shadow-pressed);
  background: var(--neuro-bg);

  background: var(--color-surface) !important;
  box-shadow: inset 4px 4px 10px var(--neuro-shadow-dark), inset -4px -4px 10px var(--neuro-shadow-light) !important;
}

.search-input:focus {
  animation: pulseGlow 2s var(--entry-easing) infinite;

  box-shadow: var(--neuro-shadow-pressed);
}

/* Filters section animations */
.filters-section.animate-on-mount {
  animation: slideInLeft var(--entry-duration-fast) var(--entry-easing) calc(var(--entry-delay-base) * 3) both;
}

/* Results animations */
.results-section.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 2) both;
}

/* Pool Detail animations */
.pool-detail-container.animate-on-mount {
  animation: fadeInDown var(--entry-duration-normal) var(--entry-easing) var(--entry-delay-base) both;
}

.pool-hero-card.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 2) both;
}

.quick-metrics.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 3) both;
}

.calculator-compact.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 4) both;
}

.pool-info-section.animate-on-mount {
  animation: fadeInScale var(--entry-duration-normal) var(--entry-easing) calc(var(--entry-delay-base) * 5) both;
}

/* Staggered card animations */
.pool-card.animate-on-mount {
  animation: fadeInUp var(--entry-duration-fast) var(--entry-easing) both;
}

.pool-card.animate-on-mount:nth-child(1) {
  animation-delay: calc(var(--entry-delay-base) * 4);
}

.pool-card.animate-on-mount:nth-child(2) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 1);
}

.pool-card.animate-on-mount:nth-child(3) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 2);
}

.pool-card.animate-on-mount:nth-child(4) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 3);
}

.pool-card.animate-on-mount:nth-child(5) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 4);
}

.pool-card.animate-on-mount:nth-child(6) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 5);
}

.pool-card.animate-on-mount:nth-child(7) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 6);
}

.pool-card.animate-on-mount:nth-child(8) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 7);
}

.pool-card.animate-on-mount:nth-child(9) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 8);
}

.pool-card.animate-on-mount:nth-child(10) {
  animation-delay: calc(var(--entry-delay-base) * 4 + var(--entry-delay-stagger) * 9);
}

/* Pagination animations */
.pagination.animate-on-mount {
  animation: fadeInUp var(--entry-duration-fast) var(--entry-easing) calc(var(--entry-delay-base) * 5) both;
}

/* Loading skeleton states */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-secondary) 25%,
      var(--color-secondary-hover) 50%,
      var(--color-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-lg);
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes loading-progress {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  51% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.skeleton-card {
  height: 160px;
  margin-bottom: var(--spacing-md);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text.small {
  height: 12px;
  width: 60%;
}

/* Theme toggle animations */
.theme-toggle {
  transition: all 300ms var(--entry-easing);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle-handle {
  transition: transform 300ms var(--entry-easing-bounce);
}

/* Enhanced Horizontal Scrolling Filter Styles with Improved UX */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: var(--space-8);
  background: transparent;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: transparent;
  padding: var(--space-2) 0;
  position: relative;
}

/* Enhanced section separator with subtle line */
.filter-section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(var(--color-text-rgb), 0.1) 20%,
      rgba(var(--color-text-rgb), 0.1) 80%,
      transparent);
  opacity: 0.3;
}

.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  position: relative;
}

/* Enhanced horizontal scrolling with fade edges */
.filter-row {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8);
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  scroll-behavior: smooth;
  background: transparent;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row::-webkit-scrollbar {
  height: 6px;
}

.filter-row::-webkit-scrollbar-thumb {
  background: rgba(var(--color-text-rgb), 0.2);
  border-radius: 3px;
}

.filter-row::-webkit-scrollbar-track {
  background: transparent;
}

/* Enhanced Chain Pills Container */
.filter-pills-container {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-12);
  padding: var(--space-8);
  align-items: center;
  scroll-snap-type: x proximity;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

.filter-pills-container::-webkit-scrollbar {
  display: none;
}

.filter-pills-container>* {
  scroll-snap-align: start;
}

/* Filter Pills - Clean Neumorphic Style */
.filter-pill {
  flex-shrink: 0;
  padding: var(--space-8) var(--space-16);
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover state - Subtle lift */
.filter-pill:hover:not(.active) {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

/* Focus state for accessibility */
.filter-pill:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* General filter pill active state - raised when selected */
.filter-pill.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--neuro-shadow-subtle);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.chain-pill {
  position: relative;
}

/* Chain pills use brand colors when active - raised when selected */
.chain-pill.active {
  background: var(--chain-color, var(--color-primary));
  color: white;
  box-shadow: var(--neuro-shadow-subtle);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

/* Enhanced Pool Type Buttons Container */
.filter-buttons-group {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-12);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  background: transparent;
}

.filter-buttons-group::-webkit-scrollbar {
  display: none;
}

.filter-buttons-group>* {
  scroll-snap-align: start;
}

.filter-button {
  flex-shrink: 0;
  padding: var(--space-8) var(--space-16);
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  white-space: nowrap;
  min-height: 36px;
}

/* Inactive filter buttons hover */
.filter-button:not(.active):hover {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

/* Active filter buttons - raised when selected */
.filter-button.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--neuro-shadow-subtle);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.filter-button .count {
  opacity: 0.8;
  font-size: var(--font-size-xs);
  margin-left: var(--space-4);
}

/* TVL and APY Filter Chips - Combined Row */
.value-filters-row {
  display: flex;
  gap: var(--space-12);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.value-filters-row::-webkit-scrollbar {
  display: none;
}

.value-filter-group {
  display: flex;
  gap: var(--space-8);
  flex-shrink: 0;
  align-items: center;
}

.value-filter-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: var(--space-8);
  flex-shrink: 0;
  padding: var(--space-4) var(--space-8);
  background: transparent;
  border-radius: 6px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.filter-chips-container {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-10);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8);
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

.filter-chips-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: var(--space-8) var(--space-16);
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--neuro-shadow-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* Inactive filter chips hover */
.filter-chip:hover:not(.active) {
  box-shadow: var(--neuro-shadow-subtle);
  transform: translateY(-1px);
}

/* Active filter chips - clearly pressed */
.filter-chip.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--neuro-shadow-subtle);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

/* Mobile responsive for horizontal scrolling filters */
@media (max-width: 768px) {
  .filters-container {
    gap: var(--space-20);
    padding: var(--space-12) 0;
  }

  .filter-section {
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }

  .filter-section-header {
    margin-bottom: var(--space-2);
  }

  .filter-label {
    font-size: var(--font-size-xs);
    padding: 0;
    margin: 0;
  }

  .filter-row {
    padding: var(--space-4) 0;
  }

  .filter-pill,
  .filter-button {
    padding: var(--space-4) var(--space-10);
    min-height: 36px;
    /* Touch target size */
    font-size: 11px;
  }

  .filter-chip {
    padding: var(--space-3) var(--space-8);
    min-height: 32px;
    font-size: 10px;
  }

  .filter-pills-container {
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
  }

  .filter-buttons-group {
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
  }

  .filter-chips-container {
    gap: var(--space-12);
    padding: var(--space-8) var(--space-12);
  }

  .filter-chip {
    padding: var(--space-12) var(--space-16);
    font-size: var(--font-size-sm);
    min-height: 44px;
    border-radius: 12px;
  }

  .filter-pill {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-sm);
    min-height: 44px;
    border-radius: 12px;
  }

  .filter-button {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-sm);
    min-height: 44px;
    border-radius: 12px;
  }

  .value-filters-row {
    gap: var(--space-12);
  }

  .filters-section {
    padding: var(--space-8);
    margin-bottom: var(--space-16);
    border-radius: 12px;
  }

  .value-filters-row {
    gap: var(--space-12);
  }

  .value-filter-label {
    font-size: 10px;
    padding: var(--space-3) var(--space-6);
    margin-right: var(--space-6);
    min-height: 36px;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .animate-on-mount,
  .pool-card.animate-on-mount,
  .logo,
  .search-input,
  .theme-toggle,
  .theme-toggle-handle,
  .language-toggle {
    animation: none !important;
    transition: none !important;
  }

  .animate-on-mount {
    opacity: 1 !important;
    transform: none !important;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: 999px;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: var(--neuro-shadow-flat);
}

.btn:hover:not(:disabled) {
  box-shadow: var(--neuro-shadow-raised);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.1), inset -4px -4px 10px rgba(255, 255, 255, 0.7);
  transform: translateY(2px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 4px 4px 10px rgba(59, 130, 246, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.5) !important;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-hover) !important;
  box-shadow: 6px 6px 14px rgba(59, 130, 246, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
}

.btn--primary:active:not(:disabled) {
  background: var(--color-primary-active) !important;
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.2), inset -4px -4px 10px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(2px);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- P0: UX Animation & Delight Additions --- */

/* 1. Neumorphic "Physical" Button Press */
.calculate-yield-btn-new:active,
.search-button:active,
.google-nav-tab:active,
.google-filter-btn:active,
.view-toggle-btn:active,
.theme-toggle:active,
.language-toggle:active,
.filter-pill:active,
.filter-chip:active {
  transform: translateY(2px) scale(0.97) !important;
  box-shadow: var(--shadow-inset, inset 4px 4px 10px rgba(0, 0, 0, 0.1), inset -4px -4px 10px rgba(255, 255, 255, 0.5)) !important;
  transition: transform 100ms ease, box-shadow 100ms ease !important;
}

[data-theme="dark"] .calculate-yield-btn-new:active,
[data-theme="dark"] .search-button:active,
[data-theme="dark"] .google-nav-tab:active,
[data-theme="dark"] .google-filter-btn:active,
[data-theme="dark"] .view-toggle-btn:active,
[data-theme="dark"] .theme-toggle:active,
[data-theme="dark"] .language-toggle:active,
[data-theme="dark"] .filter-pill:active,
[data-theme="dark"] .filter-chip:active {
  box-shadow: var(--neuro-shadow-pressed, inset 4px 4px 10px #141317, inset -4px -4px 10px #2E2B31) !important;
}

/* 2. Smooth Hover Elevation */
.pool-card:hover,
.pool-row:hover,
.calculate-yield-btn-new:hover,
.search-button:hover:not(:disabled),
.google-nav-tab:hover:not(.active),
.google-filter-btn:hover:not(.active),
.theme-toggle:hover {
  transform: translateY(-2px);
  transition: transform 200ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 200ms cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 3. Staggered Entrance Choreography */
@keyframes smoothFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pool-card.animate-on-mount,
.pool-card {
  animation: smoothFadeInUp 400ms cubic-bezier(0.25, 1, 0.5, 1) both !important;
}

.pool-card:nth-child(1) {
  animation-delay: 50ms !important;
}

.pool-card:nth-child(2) {
  animation-delay: 100ms !important;
}

.pool-card:nth-child(3) {
  animation-delay: 150ms !important;
}

.pool-card:nth-child(4) {
  animation-delay: 200ms !important;
}

.pool-card:nth-child(5) {
  animation-delay: 250ms !important;
}

.pool-card:nth-child(6) {
  animation-delay: 300ms !important;
}

.pool-card:nth-child(7) {
  animation-delay: 350ms !important;
}

.pool-card:nth-child(8) {
  animation-delay: 400ms !important;
}

.pool-card:nth-child(9) {
  animation-delay: 450ms !important;
}

.pool-card:nth-child(10) {
  animation-delay: 500ms !important;
}

.pool-card:nth-child(n+11) {
  animation-delay: 550ms !important;
}

/* 4. Global State Transitions */
body,
.app {
  transition: background-color 300ms ease, color 300ms ease;
}

.pool-card,
.google-search-container,
.google-header-sticky,
.filter-pills-container,
.modal-content {
  transition: transform 200ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 200ms cubic-bezier(0.25, 1, 0.5, 1), background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

/* --- P1: UI Polish Additions --- */

/* 5. Engaging Loading States & Skeletons */
.loading-skeleton-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.pulse-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-secondary);
  animation: pulse-op 1.5s infinite alternate;
  margin-bottom: 30px;
}

@keyframes pulse-op {
  0% {
    opacity: 0.5;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.skeleton-card {
  pointer-events: none;
  background: var(--color-background);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .skeleton-card {
  border-color: rgba(255, 255, 255, 0.02);
}

.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-background) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 2s infinite linear;
  border-radius: 4px;
}

.skeleton-text {
  height: 24px;
  margin-bottom: 12px;
}

.skeleton-text.small {
  height: 16px;
}

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

  100% {
    background-position: -200% 0;
  }
}

/* 6. Interactive Yield Calculator Glow */
.amount-input {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.amount-input:focus {
  box-shadow: var(--shadow-inset, inset 4px 4px 10px rgba(0, 0, 0, 0.1), inset -4px -4px 10px rgba(255, 255, 255, 0.3)), 0 0 14px rgba(74, 222, 128, 0.3) !important;
}

[data-theme="dark"] .amount-input:focus {
  box-shadow: var(--neuro-shadow-pressed, inset 4px 4px 10px #141317, inset -4px -4px 10px #2E2B31), 0 0 14px rgba(74, 222, 128, 0.15) !important;
}

@keyframes yieldBounce {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  40% {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.yield-pulse-active {
  animation: yieldBounce 300ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}