:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7c3aed;
  --best-rate: rgba(34, 197, 94, 0.2);
  --best-rate-border: rgba(34, 197, 94, 0.4);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  /* Fallback for older browsers */
  background: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.25), transparent 55%),
              radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.20), transparent 55%),
              var(--bg);
  /* Use viewport-relative units for better mobile support */
  background: radial-gradient(100vw 50vh at 20% 0%, rgba(124, 58, 237, 0.25), transparent 55%),
              radial-gradient(80vw 40vh at 90% 10%, rgba(59, 130, 246, 0.20), transparent 55%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 50px;
  min-height: 100vh;
  position: relative;
  width: 100%;
  display: block;
  /* Ensure container is visible */
  visibility: visible;
  opacity: 1;
}

.header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 20px 20px 16px 20px;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  /* Ensure children align at top */
  align-items: flex-start;
}

.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Height matches logo: h1 line-height + bottom margin */
  height: calc((32px * 1.25) + 8px);
  margin: 0;
  padding: 0;
}

.site-logo {
  /* Square logo matching header-text height (h1 line-height + margin) */
  width: calc((32px * 1.25) + 8px);
  height: calc((32px * 1.25) + 8px);
  min-height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Ensure perfect alignment with header-text */
  margin: 0;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtle { 
  color: var(--muted); 
  margin: 0; 
  font-size: 14px;
  line-height: 1.4;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  /* Prevent underline on any state */
  text-decoration: none !important;
}
.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}
.pill:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
}
.pill.active {
  background: rgba(124, 58, 237, 0.25);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
  text-decoration: none !important;
}
.pill.active:hover {
  background: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.pill.loading {
  position: relative;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: wait !important;
  pointer-events: none;
  opacity: 0.7;
}
.pill.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-top-color: rgba(147, 197, 253, 0.9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.pill.loading span {
  opacity: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  /* Fallback for browsers that don't support backdrop-filter */
  background: rgba(255, 255, 255, 0.06);
}
.chart-card {
  margin-bottom: 24px;
  min-width: 0; /* Allow card to shrink */
  overflow: hidden; /* Prevent chart from causing horizontal scroll */
}
.chart-card h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.chart-hint {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.table-card h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.table-hint {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Prevent chart from causing horizontal scroll */
  min-width: 0; /* Allow container to shrink below content size */
}
.chart-container canvas {
  max-width: 100% !important;
  height: auto !important;
}

.table-wrap { 
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-height: none;
  /* Ensure smooth scrolling on mobile */
  scroll-behavior: smooth;
  /* Make sure it's visible */
  display: block;
  width: 100%;
  min-width: 0; /* Allow to shrink below content size */
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  /* Ensure table is visible */
  display: table;
  visibility: visible;
  /* Prevent layout shifts */
  table-layout: auto;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  vertical-align: middle;
}
th {
  border-bottom: 2px solid var(--border);
}
td {
  border-bottom: 1px solid var(--border);
}
th { 
  color: rgba(255, 255, 255, 0.9); 
  font-weight: 600; 
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}
thead {
  position: relative;
}
thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  padding: 20px 16px;
  padding-bottom: 16px;
}
/* Rounded corners on all sides of first and last header cells to match card */
thead th:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
thead th:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Sticky header clone styles */
.sticky-header-wrapper {
  display: block;
  background: rgba(11, 16, 32, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: hidden;
}

.sticky-header-padding {
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

.sticky-header-wrapper table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.sticky-header-clone {
  background: transparent;
}

.sticky-header-clone th {
  background: rgba(11, 16, 32, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 16px;
  padding-bottom: 16px;
}
/* Rounded corners on sticky header clone - all sides */
.sticky-header-clone th:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.sticky-header-clone th:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
th.sortable {
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  padding-right: 24px;
  position: relative;
}
th.sortable:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);
}
/* Add subtle border-radius to hover state for better visual feedback */
th.sortable:hover:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
th.sortable:hover:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.sort-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  color: rgba(147, 197, 253, 0.9);
}
td.rate { 
  font-variant-numeric: tabular-nums; 
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}
td.rate.rate-best {
  background: var(--best-rate);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
}

/* Override row hover background for best rate cells */
tbody tr:hover td.rate.rate-best {
  background: var(--best-rate);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
}

td.rate.rate-best .rate-value {
  color: rgba(34, 197, 94, 1);
  font-weight: 700;
}

tbody tr:hover td.rate.rate-best .rate-value {
  color: rgba(34, 197, 94, 1);
  font-weight: 700;
}

.rate-value {
  color: rgba(255, 255, 255, 0.95);
}
.provider {
  min-width: 160px;
  padding-right: 8px !important;
}
thead th:first-child {
  padding-right: 8px !important;
}
/* Center-align rate column headers (all except provider) */
thead th:not(:first-child) {
  text-align: center;
}
.provider-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.provider-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.provider-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.provider-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background: var(--accent);
}
.provider-details {
  flex: 1;
  min-width: 0;
}
.provider-name { 
  font-weight: 650; 
  font-size: 16px;
  line-height: 1.3;
}
.provider-timestamp {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
}
.provider-link {
  margin-top: 0;
}
.provider-link a {
  font-size: 12px;
  color: rgba(147, 197, 253, 0.9);
  transition: color 0.2s;
}
.provider-link a:hover {
  color: rgba(147, 197, 253, 1);
}
.muted { color: var(--muted); }
a { 
  color: rgba(147, 197, 253, 0.95); 
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: rgba(147, 197, 253, 1);
  text-decoration: underline;
}
/* Pills should never have underline */
a.pill,
a.pill:hover,
a.pill:active,
a.pill:focus {
  text-decoration: none !important;
}
tbody tr {
  transition: background-color 0.2s;
}
tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

pre {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.footer { 
  margin-top: 40px; 
  padding: 24px 20px 0 20px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.footer-content {
  width: 100%;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.footer-disclaimer strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  body {
    /* Simpler background for mobile performance */
    background: var(--bg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(59, 130, 246, 0.10) 100%),
                var(--bg);
  }
  
  .container {
    padding: 12px 12px 30px;
    width: 100%;
    max-width: 100%;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 12px 12px 12px;
    display: flex !important;
    visibility: visible !important;
  }

  .header-left {
    width: 100%;
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
  }
  
  .header-text {
    height: calc((24px * 1.25) + 6px);
  }
  
  .site-logo {
    /* Square logo matching header-text height on mobile (h1 line-height + margin) */
    width: calc((24px * 1.25) + 6px);
    height: calc((24px * 1.25) + 6px);
    min-height: 30px;
    min-width: 30px;
    padding: 6px;
    border-radius: 10px;
    margin: 0;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    display: flex !important;
  }

  .controls {
    width: 100%;
    justify-content: stretch;
    display: flex !important;
  }

  .pill {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .subtle {
    font-size: 13px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
    display: block !important;
    visibility: visible !important;
  }
  .chart-card {
    margin-bottom: 20px;
  }
  .chart-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .table-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .table-hint {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .chart-container {
    height: 250px;
  }
  
  .table-wrap {
    display: block !important;
    visibility: visible !important;
  }
  
  tbody {
    display: table-row-group !important;
  }
  
  tr {
    display: table-row !important;
  }
  
  td, th {
    display: table-cell !important;
  }

  .footer {
    padding: 20px 12px 0 12px;
  }
  
  /* Ensure best rate highlighting works on mobile/tablet */
  td.rate.rate-best {
    background: var(--best-rate) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset !important;
  }
  
  /* Override row hover background for best rate cells */
  tbody tr:hover td.rate.rate-best {
    background: var(--best-rate) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset !important;
  }
  
  td.rate.rate-best .rate-value {
    color: rgba(34, 197, 94, 1) !important;
    font-weight: 700 !important;
  }
  
  tbody tr:hover td.rate.rate-best .rate-value {
    color: rgba(34, 197, 94, 1) !important;
    font-weight: 700 !important;
  }

  .table-wrap {
    margin: 0 -12px;
    padding: 0 12px;
  }

  table {
    min-width: 800px;
    font-size: 14px;
  }

  th, td {
    padding: 12px 8px;
  }

  th {
    font-size: 11px;
  }
  
  thead th {
    padding: 16px 12px;
    padding-bottom: 12px;
  }
  
  /* Rounded corners on mobile - all sides */
  thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
  }
  thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  .sticky-header-clone th {
    padding: 16px 12px;
    padding-bottom: 12px;
  }
  
  .sticky-header-clone th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
  }
  .sticky-header-clone th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  .sticky-header-wrapper {
    border-radius: 12px;
  }

  .provider {
    min-width: 130px;
    padding-left: 8px !important;
    padding-right: 4px !important;
  }
  thead th:first-child {
    padding-left: 12px !important;
    padding-right: 4px !important;
  }
  tbody td.provider {
    padding-left: 8px !important;
    padding-right: 4px !important;
  }

  /* Make first column sticky on horizontal scroll for mobile */
  thead th:first-child,
  tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #0b1020;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  thead th:first-child {
    z-index: 11;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  }

  tbody td:first-child {
    background: #0b1020;
  }

  /* Ensure sticky header clone also has sticky first column */
  .sticky-header-clone th:first-child {
    position: sticky;
    left: 0;
    z-index: 101;
    background: rgba(11, 16, 32, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .provider-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .provider-logo {
    width: 48px;
    height: 48px;
    padding: 6px;
    border-radius: 10px;
  }

  .provider-name {
    font-size: 15px;
  }

  .provider-timestamp {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .provider-link a {
    font-size: 11px;
  }

  td.rate {
    font-size: 14px;
  }

  .footer {
    margin-top: 30px;
    padding-top: 20px;
  }

  .footer-disclaimer {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
  
  body {
    /* Even simpler background for small mobile */
    background: var(--bg);
  }
  
  .container {
    padding: 10px 10px 24px;
    width: 100%;
    max-width: 100%;
  }

  .header {
    padding: 10px 10px 10px 10px;
  }

  .pill {
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-text {
    height: calc((20px * 1.25) + 6px);
  }
  
  .site-logo {
    /* Square logo matching header-text height on small mobile (h1 line-height + margin) */
    width: calc((20px * 1.25) + 6px);
    height: calc((20px * 1.25) + 6px);
    min-height: 25px;
    min-width: 25px;
    padding: 5px;
    border-radius: 10px;
    margin: 0;
  }
  
  h1 {
    font-size: 20px;
  }

  .card {
    padding: 10px;
    border-radius: 10px;
    display: block !important;
    visibility: visible !important;
  }
  .chart-card {
    margin-bottom: 16px;
  }
  .chart-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .table-card h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .table-hint {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .chart-container {
    height: 200px;
  }
  
  .table-wrap {
    display: block !important;
    visibility: visible !important;
  }
  
  tbody {
    display: table-row-group !important;
  }
  
  tr {
    display: table-row !important;
  }
  
  td, th {
    display: table-cell !important;
  }

  .footer {
    padding: 20px 10px 0 10px;
  }

  .table-wrap {
    margin: 0 -10px;
    padding: 0 10px;
  }

  table {
    min-width: 700px;
  }

  th, td {
    padding: 10px 6px;
  }

  th {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  
  thead th {
    padding: 14px 10px;
    padding-bottom: 10px;
  }
  
  /* Rounded corners on small mobile - all sides */
  thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .sticky-header-clone th {
    padding: 14px 10px;
    padding-bottom: 10px;
  }
  
  .sticky-header-clone th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  .sticky-header-clone th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .sticky-header-wrapper {
    border-radius: 10px;
  }

  .provider {
    min-width: 120px;
    padding-left: 6px !important;
    padding-right: 3px !important;
  }
  thead th:first-child {
    padding-left: 10px !important;
    padding-right: 3px !important;
  }
  tbody td.provider {
    padding-left: 6px !important;
    padding-right: 3px !important;
  }

  /* Make first column sticky on horizontal scroll for mobile */
  thead th:first-child,
  tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #0b1020;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  thead th:first-child {
    z-index: 11;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  }

  tbody td:first-child {
    background: #0b1020;
  }

  /* Ensure sticky header clone also has sticky first column */
  .sticky-header-clone th:first-child {
    position: sticky;
    left: 0;
    z-index: 101;
    background: rgba(11, 16, 32, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .provider-logo {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .provider-name {
    font-size: 13px;
  }

  td.rate {
    font-size: 13px;
  }
  
  /* Ensure best rate highlighting works on mobile - override any conflicting styles */
  td.rate.rate-best {
    background: var(--best-rate) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset !important;
  }
  
  /* Override row hover background for best rate cells */
  tbody tr:hover td.rate.rate-best {
    background: var(--best-rate) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset !important;
  }
  
  td.rate.rate-best .rate-value {
    color: rgba(34, 197, 94, 1) !important;
    font-weight: 700 !important;
  }
  
  tbody tr:hover td.rate.rate-best .rate-value {
    color: rgba(34, 197, 94, 1) !important;
    font-weight: 700 !important;
  }

  .sticky-header-padding {
    height: 12px;
  }
}

