@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


:root {
  /* Official European Union Colors */
  --eu-blue: #003399;           /* Pantone Reflex Blue */
  --eu-yellow: #FFCC00;         /* Pantone Yellow */
  
  /* EU Blue Spectrum (Tints & Shades) */
  --eu-blue-deep: #001a4d;      /* Deep midnight EU blue */
  --eu-blue-dark: #002673;      /* Dark EU blue */
  --eu-blue-vibrant: #1a5cd8;   /* Vibrant interactive blue */
  --eu-blue-bright: #3b82f6;    /* Bright accent blue */
  --eu-blue-light: #93c5fd;     /* High-contrast light blue */
  --eu-blue-glow: rgba(0, 51, 153, 0.45);
  --eu-blue-bg: rgba(0, 51, 153, 0.15);
  
  /* EU Yellow Spectrum (Tints & Shades) */
  --eu-yellow-gold: #d99b00;    /* Deep gold */
  --eu-yellow-bright: #ffe066;  /* Luminous yellow */
  --eu-yellow-glow: rgba(255, 204, 0, 0.35);
  --eu-yellow-bg: rgba(255, 204, 0, 0.12);
  
  /* Neutral Dark Theme (Black, Deep Blue-Greys, White) */
  --bg-color: #030712;
  --panel-bg: rgba(7, 16, 43, 0.75);
  --card-bg: rgba(10, 25, 66, 0.45);
  --card-hover-bg: rgba(15, 37, 95, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 204, 0, 0.3);
  
  /* Text Neutrals */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Highlights & Savings (EU Yellow) */
  --savings-color: #FFCC00;
  --savings-glow: rgba(255, 204, 0, 0.35);
  --savings-bg: rgba(255, 204, 0, 0.12);
  
  /* Provider Theme Accents */
  --mammouth-color: #38bdf8;
  --mammouth-glow: rgba(56, 189, 248, 0.25);
  --mammouth-bg: rgba(56, 189, 248, 0.08);
  
  --cortecs-color: #818cf8;
  --cortecs-glow: rgba(129, 140, 248, 0.25);
  --cortecs-bg: rgba(129, 140, 248, 0.08);
  
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --bg-color: #eef4fb;
  --panel-bg: #f8fbff;
  --card-bg: #f7faff;
  --card-hover-bg: #eaf3ff;
  --border-color: #c7d8ec;
  --border-hover: #8db5df;
  --text-main: #10203d;
  --text-muted: #334155;
  --text-dark: #475569;
  --savings-color: #0284c7;
  --savings-glow: rgba(2, 132, 199, 0.25);
  --savings-bg: rgba(2, 132, 199, 0.10);
  --eu-yellow: #0284c7;
  --eu-yellow-bright: #0ea5e9;
  --eu-yellow-gold: #075985;
  --eu-yellow-glow: rgba(2, 132, 199, 0.22);
}

:root[data-theme="light"] .brand-title,
:root[data-theme="light"] .panel-title,
:root[data-theme="light"] .workload-settings-title,
:root[data-theme="light"] .table-title,
:root[data-theme="light"] th,
:root[data-theme="light"] td,
:root[data-theme="light"] .header-filter-input,
:root[data-theme="light"] .header-filter-select,
:root[data-theme="light"] .provider-filter-toggle {
  color: var(--text-main);
}

:root[data-theme="light"] .subtitle-row p,
:root[data-theme="light"] .last-updated-text,
:root[data-theme="light"] .exchange-info,
:root[data-theme="light"] .workload-settings-help,
:root[data-theme="light"] .price-label,
:root[data-theme="light"] .modal-field .desc {
  color: var(--text-muted);
}

:root[data-theme="light"] .header-filters-row th,
:root[data-theme="light"] .models-table th {
  background: #dce8f5 !important;
}

:root[data-theme="light"] .models-table tr.clickable-row:hover td {
  background: rgba(219, 234, 254, 0.72);
}

:root[data-theme="light"] .workload-settings-content,
:root[data-theme="light"] .provider-filter-menu,
:root[data-theme="light"] .modal-model-card {
  background: #ffffff;
  color: var(--text-main);
}

:root[data-theme="light"] .models-table {
  background: #ffffff;
}

:root[data-theme="light"] .models-table tbody tr:nth-child(even) {
  background: #f7faff;
}

:root[data-theme="light"] .models-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

:root[data-theme="light"] .models-table tbody td:first-child,
:root[data-theme="light"] .models-table tbody td:first-child span {
  color: var(--text-main) !important;
}

:root[data-theme="light"] .models-table tbody td {
  color: #243b5a;
}

:root[data-theme="light"] .badge-provider {
  color: #1769aa;
  background: #e4f1ff;
  border-color: #b6d7f5;
}

:root[data-theme="light"] .provider-filter-option:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

:root[data-theme="light"] .site-footer p {
  color: #334155 !important;
}

:root[data-theme="light"] .data-notice-card > div,
:root[data-theme="light"] .footer-link,
:root[data-theme="light"] .sponsor-link,
:root[data-theme="light"] .disclaimer-pill {
  color: #0369a1 !important;
}

:root[data-theme="light"] .last-updated-text #last-updated-display {
  color: #526b88;
}

:root[data-theme="light"] input[type="number"],
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="range"] {
  color: var(--text-main);
}

:root[data-theme="light"] .workload-field input,
:root[data-theme="light"] .header-filter-input,
:root[data-theme="light"] .header-filter-select {
  color: var(--text-main) !important;
  background: #ffffff;
}

:root[data-theme="light"] .cache-chip {
  background: #ffffff;
  color: #526b88;
}
:root[data-theme="light"] .cache-chip:hover:not(:disabled) {
  color: var(--text-main);
}
:root[data-theme="light"] .cache-reuse-field select {
  background: #ffffff;
  color: var(--text-main);
}
:root[data-theme="light"] .cache-reuse-field select option {
  background: #ffffff;
  color: var(--text-main);
}
:root[data-theme="light"] .cache-math-explainer code {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #243b5a;
}
:root[data-theme="light"] .th-cache-toggle:hover,
:root[data-theme="light"] .cache-only-option:hover {
  color: var(--text-main);
}

:root[data-theme="light"] .modal-header {
  background: #dce8f5;
  color: var(--text-main);
}

:root[data-theme="light"] .modal-header h3,
:root[data-theme="light"] .modal-header .close-btn {
  color: var(--text-main);
}

:root[data-theme="light"] .modal-content {
  background: #f8fbff;
}

:root[data-theme="light"] .modal-model-card .val,
:root[data-theme="light"] .modal-model-card .limits-value,
:root[data-theme="light"] .modal-model-card [style*="color:#fff"],
:root[data-theme="light"] .modal-model-card [style*="color: #fff"],
:root[data-theme="light"] .modal-model-card [style*="color:#ffffff"],
:root[data-theme="light"] .modal-model-card [style*="color: #ffffff"] {
  color: var(--text-main) !important;
}

:root[data-theme="light"] .modal-content .modal-model-card span[style*="color:#"] {
  text-shadow: none;
}

:root[data-theme="light"] .disclaimer-pill {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.28);
}

:root[data-theme="light"] .disclaimer-pill:hover {
  color: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

:root[data-theme="light"] .table-wrapper,
:root[data-theme="light"] .workload-panel {
  box-shadow: 0 8px 24px rgba(30, 78, 121, 0.08);
}

:root[data-theme="light"] .workload-panel {
  background: rgba(248, 251, 255, 0.82);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 51, 153, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 51, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.035) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background-image: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.14) 0%, transparent 45%), radial-gradient(circle at 85% 85%, rgba(0, 51, 153, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.08) 0%, transparent 55%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 7, 10, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* Legal notice and privacy page */
.policy-container {
  max-width: 1040px;
}

.policy-header {
  margin-bottom: 1.5rem;
}

.policy-header .brand-logo-link {
  width: fit-content;
}

.policy-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-title h1 {
  font-family: var(--font-title);
  color: var(--text-main);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.policy-kicker {
  color: var(--eu-yellow-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-date {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 0.45rem;
}

.policy-page {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.policy-page h2 {
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin: 2.2rem 0 1rem;
  padding-top: 1.5rem;
}

.policy-page h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.policy-page h3 {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1rem;
  margin: 1.35rem 0 0.45rem;
}

.policy-page p,
.policy-page li {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.policy-page p {
  margin: 0 0 1rem;
}

.policy-page ul {
  margin: 0 0 1.15rem 1.25rem;
}

.policy-page li {
  padding-left: 0.25rem;
}

.policy-page a,
.policy-footer a {
  color: var(--eu-yellow-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.policy-page a:hover,
.policy-footer a:hover {
  color: var(--text-main);
}

.policy-address {
  border-left: 3px solid var(--eu-yellow);
  color: var(--text-main);
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  padding-left: 1rem;
}

.policy-intro,
.policy-note {
  background: var(--eu-blue-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.policy-intro {
  color: var(--text-main) !important;
}

.policy-note {
  margin-top: 1.8rem !important;
}

.policy-footer {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
}

@media (max-width: 640px) {
  .policy-container {
    padding: 1rem;
  }

  .policy-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .policy-page p,
  .policy-page li {
    font-size: 0.9rem;
  }
}

/* Header Section */
header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-logo-link:hover {
  transform: translateY(-1px) scale(1.01);
}

.brand-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 51, 153, 0.4), 0 0 12px rgba(0, 240, 255, 0.2);
  transition: box-shadow var(--transition-fast);
  flex-shrink: 0;
  display: block;
}

.brand-logo-link:hover .brand-logo-img {
  box-shadow: 0 4px 20px rgba(0, 51, 153, 0.6), 0 0 18px rgba(0, 240, 255, 0.4);
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 0;
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(90deg, #1a5cd8 0%, #38bdf8 30%, #FFCC00 80%, #ffd633 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 51, 153, 0.45));
}

.brand-euro {
  font-weight: 700;
}

.brand-inference {
  font-weight: 400;
  opacity: 0.95;
}

/* Light theme: the dark-theme gradient's yellow tail (#FFCC00/#ffd633) and the dark
   drop-shadow wash out on bright backgrounds. Light mode stays in the blue family
   (no browned-out golds) with darker, readable stops. The image itself is unchanged. */
:root[data-theme="light"] .brand-title {
  background: linear-gradient(90deg, #1a5cd8 0%, #1d4ed8 40%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.12));
}

:root[data-theme="light"] .brand-logo-img {
  box-shadow: 0 2px 10px rgba(16, 32, 61, 0.18);
}

:root[data-theme="light"] .brand-logo-link:hover .brand-logo-img {
  box-shadow: 0 3px 14px rgba(16, 32, 61, 0.28);
}

/* --- Theme switch animation ----------------------------------------------
   Chromium/Safari: circular wipe expanding from the theme-toggle button via the
   View Transitions API (driven from app.js). Firefox: staggered fade-out of the
   marked page sections, theme swap, staggered fade-in. Reduced motion: instant. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

[data-theme-step] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.theme-fading-out [data-theme-step] {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition-delay: calc(var(--theme-step, 0) * 45ms);
}
body.theme-fading-in [data-theme-step] {
  transition-delay: calc(var(--theme-step, 0) * 45ms + 60ms);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
  [data-theme-step] {
    transition: none !important;
  }
}

.subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.subtitle-row p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
}

#model-count-display {
  color: var(--eu-blue-bright);
  font-weight: 700;
}

.update-warning {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 180, 0, 0.55);
  border-radius: 8px;
  background: rgba(255, 180, 0, 0.12);
  color: #ffd166;
  font-size: 0.9rem;
}

.models-table th #model-count-display {
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

:root[data-theme="light"] .models-table th #model-count-display {
  color: #526b88;
}

.last-updated-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

.last-updated-text #last-updated-display {
  color: #cbd5e1;
  font-weight: 600;
  font-family: var(--font-mono);
}

.disclaimer-pill {
  color: var(--eu-yellow);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.disclaimer-pill:hover {
  background: var(--eu-yellow);
  color: #030712;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Currency & Exchange Widget */
.config-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.currency-switcher {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 30px;
  display: flex;
  cursor: pointer;
  user-select: none;
}

.currency-option {
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, #003399 0%, #1a5cd8 100%);
  box-shadow: 0 0 12px rgba(0, 51, 153, 0.5);
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.exchange-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

.exchange-info span {
  color: var(--savings-color);
  font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sidebar Controls */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.panel-section {
  padding: 1.5rem;
}

.calculator-group {
  margin-bottom: 1.25rem;
}

.calculator-group:last-child {
  margin-bottom: 0;
}

.calculator-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.calculator-group label span.value-display {
  color: var(--mammouth-color);
  font-family: var(--font-mono);
  font-weight: 600;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-container input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mammouth-color);
  box-shadow: 0 0 10px var(--mammouth-glow);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.input-num-wrapper {
  position: relative;
  width: 100%;
}

.input-num-wrapper input[type="number"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-num-wrapper input[type="number"]:focus {
  border-color: var(--mammouth-color);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

/* Custom Compare Box */
.custom-compare-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 10px 32px 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-wrapper select:focus {
  border-color: var(--cortecs-color);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Compare Button */
.compare-btn {
  background: linear-gradient(135deg, #003399 0%, #1a5cd8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 204, 0, 0.35);
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 51, 153, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.compare-btn:hover {
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(0, 51, 153, 0.6), 0 0 12px rgba(255, 204, 0, 0.3);
  transform: translateY(-1px);
}

/* Filter Controls */
.filter-search {
  position: relative;
  margin-bottom: 1.25rem;
}

.filter-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 12px 12px 12px 38px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.filter-search input:focus {
  border-color: #1a5cd8;
  box-shadow: 0 0 10px rgba(0, 51, 153, 0.35);
}

.filter-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.2);
}

.filter-checkbox input:checked + .checkbox-custom {
  background: #003399;
  border-color: #FFCC00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.35);
}

.filter-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  font-size: 10px;
  color: #FFCC00;
  font-weight: bold;
}

/* Main Panel Area */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Highlights Box */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 svg {
  width: 22px;
  height: 22px;
}

/* Matched Comparison Carousel/Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.compare-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--savings-color);
}

.compare-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-title h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-title span.owner {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pricing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 1rem;
}

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

.price-col.cheaper {
  position: relative;
}

.price-col.cheaper::before {
  content: '★ Cheaper';
  position: absolute;
  top: -16px;
  right: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--savings-color);
  text-transform: uppercase;
}

.col-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.col-header span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.col-header.mammouth span.dot { background-color: var(--mammouth-color); }
.col-header.cortecs span.dot { background-color: var(--cortecs-color); }

.price-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item span.lbl {
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-item span.val {
  font-family: var(--font-mono);
  color: #ffffff;
}

/* Compare Detail Modals / Split Screen Dynamic Overlay */
.overlay-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.overlay-panel.active {
  display: flex;
  opacity: 1;
}

.compare-modal {
  width: 100%;
  max-width: 1060px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Modal choreography: backdrop fade, panel pop, then overview + provider cards
   cascading in (per-card stagger via --card-i), quick drop on close. Wrapped in
   no-preference so reduced-motion users keep the instant swap. */
@media (prefers-reduced-motion: no-preference) {
  .overlay-panel.active {
    animation: overlay-in var(--transition-normal) both;
  }
  .overlay-panel.closing {
    animation: overlay-out 0.18s ease both;
  }
  .overlay-panel.active .compare-modal {
    animation: modal-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .overlay-panel.closing .compare-modal {
    animation: modal-drop 0.18s ease both;
  }
  .overlay-panel.active .modal-overview-section {
    animation: modal-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.08s;
  }
  .overlay-panel.active .modal-model-card {
    animation: modal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.16s + var(--card-i, 0) * 70ms);
  }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes overlay-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes modal-pop {
  from { transform: translateY(26px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes modal-drop {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(16px) scale(0.97); opacity: 0; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: rgba(10, 14, 23, 0.7);
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.modal-content {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-overview-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
}

.modal-model-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-consensus-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.consensus-metric-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.consensus-metric {
  display: flex;
  flex-direction: column;
}

.consensus-metric .metric-lbl {
  font-size: 0.68rem;
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.consensus-metric .metric-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.consensus-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.cap-badge-universal {
  background: rgba(255, 204, 0, 0.12);
  color: #FFCC00;
  border: 1px solid rgba(255, 204, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

:root[data-theme="light"] .cap-badge-universal {
  color: #075985;
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.cap-badge-partial {
  background: rgba(0, 51, 153, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(0, 51, 153, 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.modal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--eu-blue);
  border-color: var(--eu-blue-bright);
  box-shadow: 0 0 12px var(--eu-blue-glow);
  outline: none;
}

.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

:root[data-theme="light"] .exchange-info,
:root[data-theme="light"] .currency-switcher,
:root[data-theme="light"] .header-filter-input,
:root[data-theme="light"] .header-filter-select,
:root[data-theme="light"] .provider-filter-toggle {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .header-filter-input,
:root[data-theme="light"] .header-filter-select,
:root[data-theme="light"] .provider-filter-toggle {
  color: var(--text-main);
}

:root[data-theme="light"] .header-filter-select option {
  background-color: #fff;
  color: var(--text-main);
}

.comparison-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.comparison-note strong {
  color: var(--eu-yellow);
}

.modal-model-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Row-aligned shared blocks: every card reserves the same height for slug, cache
   and limits sections so Input/Output, cache rates, limits and features line up
   across provider cards for side-by-side comparison. Variable extras (aliases,
   alt IDs, infra notes) are rendered below the shared blocks. */
.modal-card-slug {
  min-height: 50px;
}
.modal-card-cache {
  min-height: 56px;
}
.modal-card-limits {
  min-height: 32px;
}

.modal-model-card.mammouth {
  background: rgba(0, 51, 153, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.modal-model-card.cortecs {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(129, 140, 248, 0.25);
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vs-badge {
  background: linear-gradient(135deg, #003399 0%, #1a5cd8 50%, #FFCC00 100%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 51, 153, 0.5);
}

.vs-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
  z-index: -1;
}

.modal-field {
  display: flex;
  flex-direction: column;
}

.modal-field span.lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 700;
}

.modal-field span.val {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.modal-field span.desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* Models Table / Explorer Area */
.explorer-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.explorer-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.explorer-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.explorer-tab.active {
  color: var(--mammouth-color);
}

.explorer-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mammouth-color) 0%, var(--cortecs-color) 100%);
  border-radius: 2px;
}

/* Table Card Wrapper */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(0,0,0,0.1);
}

table.models-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

table.models-table th, 
table.models-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

table.models-table th {
  font-family: var(--font-title);
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  cursor: pointer;
}

table.models-table th:hover {
  background: rgba(255, 255, 255, 0.05);
}

table.models-table th.sortable span.sort-indicator {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--text-dark);
}

table.models-table th.active-sort {
  color: var(--mammouth-color);
}

table.models-table th.active-sort span.sort-indicator {
  color: var(--mammouth-color) !important;
}

table.models-table tr:last-child td {
  border-bottom: none;
}

table.models-table tr {
  transition: background-color var(--transition-fast);
}

table.models-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

table.models-table tr.clickable-row {
  cursor: pointer;
}

table.models-table tr.clickable-row:hover td {
  background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-title);
}

.badge-mammouth {
  background: var(--mammouth-bg);
  color: var(--mammouth-color);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-cortecs {
  background: var(--cortecs-bg);
  color: var(--cortecs-color);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-both {
  background: var(--savings-bg);
  color: var(--savings-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-provider {
  background: rgba(147, 197, 253, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
}

/* Action Button in Table */
.action-link {
  color: var(--mammouth-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.action-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--mammouth-glow);
}

/* Empty State */
.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-dark);
}

/* Workload estimator panel above the table. */
.workload-panel {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.workload-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.workload-settings-summary::-webkit-details-marker {
  display: none;
}
.workload-settings-summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--eu-yellow);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
}
.workload-settings[open] .workload-settings-summary::after {
  content: '-';
}
.workload-settings-title {
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
}
.workload-settings-help {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.workload-settings-summary:focus-visible {
  outline: 1px solid var(--eu-yellow);
  outline-offset: 4px;
  border-radius: 4px;
}

:root[data-theme="light"] .cap-badge-partial {
  color: #1769aa;
  background: #e4f1ff;
  border-color: #8db5df;
}
.workload-settings-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  z-index: 20;
  padding: 0.9rem 1.1rem;
  background: #07102b;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
.workload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, max-content)) 1fr;
  gap: 0.85rem 1.5rem;
  align-items: center;
}
.workload-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.workload-label {
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.workload-field input {
  width: 110px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 5px;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.workload-field input::-webkit-outer-spin-button,
.workload-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.workload-field input:focus {
  border-color: var(--savings-color, #10b981);
}
.workload-suffix {
  color: var(--text-dark);
  font-size: 0.72rem;
}
.workload-hint {
  font-size: 0.72rem;
  color: var(--text-dark);
  line-height: 1.4;
  text-align: right;
}
.workload-hint code {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.7rem;
}
.cost-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
}

/* Prompt-caching assumptions inside the workload panel */
.cache-settings {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  min-width: 0;
}
.cache-settings legend {
  padding: 0;
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cache-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
}
.cache-share-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cache-label {
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-right: 0.25rem;
}
.cache-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cache-chip:hover:not(:disabled) {
  border-color: var(--savings-color, #ffcc00);
  color: #fff;
}
.cache-chip.active {
  border-color: var(--savings-color, #ffcc00);
  color: var(--savings-color, #ffcc00);
  background: var(--savings-bg, rgba(255, 204, 0, 0.08));
  font-weight: 700;
}
.cache-chip:disabled {
  opacity: 0.45;
  cursor: default;
}
.cache-chip:focus-visible {
  outline: 1px solid var(--eu-yellow);
  outline-offset: 2px;
}
.cache-reuse-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cache-reuse-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}
.cache-reuse-field select:focus {
  border-color: var(--savings-color, #10b981);
}
.cache-reuse-field select:disabled {
  opacity: 0.45;
  cursor: default;
}
.cache-reuse-field select option {
  background: #07102b;
  color: #e2e8f0;
}
.cache-only-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.cache-only-option input {
  accent-color: var(--eu-yellow);
  cursor: pointer;
}
.cache-only-option:hover {
  color: #fff;
}
.cache-math-help {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.cache-math-help summary {
  cursor: pointer;
  color: var(--eu-yellow);
  font-size: 0.7rem;
  width: fit-content;
}
.cache-math-help summary:focus-visible {
  outline: 1px solid var(--eu-yellow);
  outline-offset: 2px;
  border-radius: 3px;
}
.cache-math-explainer {
  margin-top: 0.5rem;
  line-height: 1.55;
}
.cache-math-explainer p {
  margin: 0.35rem 0;
}
.cache-math-explainer ul {
  margin: 0.3rem 0 0.3rem 1.1rem;
  padding: 0;
}
.cache-math-explainer code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e2e8f0;
}
.cache-math-explainer a {
  color: var(--eu-yellow);
}
.cache-adjusted-suffix {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--savings-color, #ffcc00);
  white-space: nowrap;
}
.cache-adjusted-suffix[hidden] {
  display: none;
}
.th-cache-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.th-cache-toggle input {
  accent-color: var(--eu-yellow);
  cursor: pointer;
  margin: 0;
}
.th-cache-toggle:hover {
  color: #fff;
}
.workload-active-hint {
  margin-left: 8px;
  color: var(--savings-color, #ffcc00);
  font-weight: 700;
  white-space: nowrap;
}
.cost-filter {
  min-width: 0;
  border: 0;
  padding: 0;
}
.cost-filter legend {
  padding: 0;
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cost-filter-values {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.cost-range-slider {
  position: relative;
  height: 24px;
  margin: 0 6px;
}
.cost-range-slider::before,
.cost-range-fill {
  position: absolute;
  top: 10px;
  height: 4px;
  border-radius: 4px;
  pointer-events: none;
}
.cost-range-slider::before {
  content: '';
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.12);
}
.cost-range-fill {
  left: 0;
  right: 0;
  background: var(--eu-yellow);
}
.cost-range-slider input[type='range'] {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -6px;
  width: calc(100% + 12px);
  height: 24px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
}
.cost-range-slider input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.cost-range-slider input[type='range']::-moz-range-track {
  height: 4px;
  background: transparent;
}
.cost-range-slider input[type='range']::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid var(--eu-yellow);
  border-radius: 50%;
  background: var(--bg-color);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}
.cost-range-slider input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid var(--eu-yellow);
  border-radius: 50%;
  background: var(--bg-color);
  cursor: pointer;
  pointer-events: auto;
}
.cost-range-slider input[type='range']:focus-visible {
  outline: 1px solid var(--eu-yellow);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .workload-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workload-hint {
    grid-column: 1 / -1;
    text-align: left;
  }
  .cost-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Initial loading state shown in the table body before data.js has populated it. */
.loading-state {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--savings-color, #10b981);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loading-text {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cost Bar Visualization inside Table */
.cost-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 180px;
}

.cost-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.cost-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.cost-bar-fill.mammouth { background: var(--mammouth-color); }
.cost-bar-fill.cortecs { background: var(--cortecs-color); }
.cost-bar-fill.both { background: linear-gradient(90deg, var(--mammouth-color) 0%, var(--cortecs-color) 100%); }

.cost-bar-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  width: 50px;
  text-align: right;
}

/* Sticky Cost Comparison Floating Banner */
.cost-banner {
  margin-top: 2rem;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-text h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
}

.banner-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.banner-action {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--savings-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .brand-logo-link {
    gap: 0.55rem;
  }
  .brand-logo-img {
    width: 32px;
    height: 32px;
  }
  .brand-title {
    font-size: 1.7rem;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .config-controls {
    width: 100%;
    justify-content: space-between;
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .vs-divider {
    height: 40px;
  }
  .vs-divider::before {
    width: 100%;
    height: 1px;
  }
}

/* Table Header Inline Filters Styling */
.header-filters-row th {
  background: rgba(255, 255, 255, 0.01) !important;
  padding: 8px 10px !important;
  border-bottom: 2px solid var(--border-color) !important;
  cursor: default !important;
}

.header-filters-row th:hover {
  background: rgba(255, 255, 255, 0.01) !important;
}

.header-filter-input {
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.header-filter-input:focus {
  border-color: var(--mammouth-color);
  box-shadow: 0 0 6px var(--mammouth-glow);
  background: rgba(255, 255, 255, 0.06);
}

.header-filter-select {
  width: 100%;
  padding: 6px 20px 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--transition-fast);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2.5' 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 8px center;
  background-size: 12px;
}

.header-filter-select:focus {
  border-color: var(--mammouth-color);
  box-shadow: 0 0 6px var(--mammouth-glow);
  background-color: rgba(255, 255, 255, 0.06);
}

.header-filter-select option {
  background-color: #0d0f17;
  color: #fff;
}

/* Provider multi-select dropdown */
.provider-filter-dropdown {
  position: relative;
  width: 100%;
}

.provider-filter-toggle {
  width: 100%;
  min-height: 32px;
  padding: 6px 28px 6px 10px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.provider-filter-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.provider-filter-toggle:hover,
.provider-filter-toggle:focus-visible {
  border-color: var(--mammouth-color);
  box-shadow: 0 0 6px var(--mammouth-glow);
  background: rgba(255, 255, 255, 0.06);
}

.provider-filter-menu {
  position: fixed;
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  background: #0d0f17;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.provider-filter-menu[hidden] {
  display: none;
}

.provider-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.provider-filter-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.provider-filter-option input {
  accent-color: var(--eu-yellow);
  cursor: pointer;
}

/* Site Footer & Data Notice */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--border-color);
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.data-notice-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(0, 51, 153, 0.22) !important;
  border: 1px solid rgba(0, 51, 153, 0.5) !important;
  border-left: 5px solid #FFCC00 !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

:root[data-theme="light"] .data-notice-card {
  background: #e7f1fc !important;
  border-color: #b4cfea !important;
  border-left-color: var(--eu-yellow) !important;
  box-shadow: 0 4px 20px rgba(30, 78, 121, 0.1) !important;
}

.data-notice-card p {
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: #f1f5f9 !important;
  margin: 0 !important;
}

:root[data-theme="light"] .data-notice-card p {
  color: #29415f !important;
}

.model-name {
  color: var(--text-main);
  font-weight: 600;
}

.footer-bottom-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
  width: 100%;
}

:root[data-theme="light"] .footer-bottom-line {
  color: #334155;
}

.footer-left-col {
  justify-self: start;
}

.footer-center-col {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.footer-right-col {
  justify-self: end;
  display: block;
  min-width: max-content;
}

.footer-link {
  color: #FFCC00;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

/* "Hosted in the EU" sponsor badge — dark chip in dark theme, quiet card in light */
.deploybase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.deploybase-badge:hover {
  border-color: rgba(148, 163, 184, 0.45);
}

:root[data-theme="light"] .deploybase-badge {
  background: #ffffff;
  color: #334155;
  border-color: var(--border-color);
  box-shadow: 0 1px 4px rgba(30, 78, 121, 0.08);
}
:root[data-theme="light"] .deploybase-badge:hover {
  border-color: #8db5df;
  box-shadow: 0 2px 8px rgba(30, 78, 121, 0.14);
}

.footer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.6);
  text-decoration: underline;
}

.footer-sponsor-inline {
  color: #94a3b8;
  display: inline-block;
  white-space: nowrap;
}

.sponsor-link {
  color: #FFCC00;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all var(--transition-fast);
}

.sponsor-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
  text-decoration: underline;
}

/* Lower Screen Breakpoint: Group Copyright and Project Home onto the same line */
@media (max-width: 980px) {
  .footer-bottom-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.85rem;
    text-align: center;
  }

  .footer-left-col {
    display: inline-flex;
    align-items: center;
  }

  .footer-center-col {
    display: inline-flex;
    align-items: center;
  }

  .footer-center-col::before {
    content: '•';
    margin-right: 0.85rem;
    color: var(--text-muted);
  }

  .footer-right-col {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
    min-width: 0;
  }

  .footer-sponsor-inline {
    white-space: normal;
  }
}
