:root {
  color-scheme: dark;
  --background: #07111f;
  --surface: rgba(12, 24, 40, 0.90);
  --surface-strong: rgba(16, 31, 50, 0.92);
  --surface-soft: rgba(9, 21, 35, 0.80);
  --border: rgba(170, 199, 230, 0.13);
  --border-strong: rgba(170, 199, 230, 0.22);
  --text: #f3f8fd;
  --muted: #8fa4bb;
  --accent: #2ca5e0;
  --accent-soft: rgba(44, 165, 224, 0.14);
  --good: #65d6a6;
  --warning: #f4c96b;
  --danger: #f28383;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% -10%, rgba(44, 165, 224, 0.14), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark,
.protocol-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(109, 205, 251, 0.3);
  background: linear-gradient(145deg, rgba(44, 165, 224, 0.28), rgba(44, 165, 224, 0.08));
  color: #bceaff;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 19px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.01em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }

.language-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.language-button:hover,
.language-button:focus-visible {
  border-color: rgba(44, 165, 224, 0.65);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 38px;
  min-height: 238px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(44, 165, 224, 0.11), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: -92px;
  top: -150px;
  border: 1px solid rgba(91, 191, 239, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(44, 165, 224, 0.025), 0 0 0 78px rgba(44, 165, 224, 0.017);
  pointer-events: none;
}
.hero-copy, .summary { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 8px;
  color: #6dcdfb;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 650px;
  margin-bottom: 13px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.052em;
}
.hero-text {
  max-width: 650px;
  margin-bottom: 0;
  color: #afc0d1;
  font-size: 15px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(5, 13, 24, 0.46);
  backdrop-filter: blur(10px);
}
.summary article {
  min-width: 0;
  padding: 15px 16px;
}
.summary article:nth-child(even) { border-left: 1px solid var(--border); }
.summary article:nth-child(n + 3) { border-top: 1px solid var(--border); }
.summary span, .summary small { display: block; }
.summary span {
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.data-partnership {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 14px 0 40px;
  padding: 15px 17px;
  border: 1px solid rgba(44, 165, 224, 0.2);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(44, 165, 224, 0.08), rgba(44, 165, 224, 0.025));
}
.partnership-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid rgba(109, 205, 251, 0.25);
  border-radius: 9px;
  background: rgba(44, 165, 224, 0.1);
  color: #9ddfff;
  font-size: 15px;
  font-weight: 800;
}
.partnership-copy { min-width: 0; }
.partnership-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}
.partnership-heading strong { font-size: 13px; }
.partnership-heading a {
  color: #9ddfff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.partnership-heading a:hover { text-decoration: underline; }
.partnership-copy p {
  margin: 0;
  color: #c0d1e1;
  font-size: 12px;
}
.partnership-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.freshness-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(145, 164, 184, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
}
.freshness-badge.is-fresh { border-color: rgba(91, 213, 159, 0.3); background: rgba(91, 213, 159, 0.08); color: var(--good); }
.freshness-badge.is-warning { border-color: rgba(244, 201, 107, 0.3); background: rgba(244, 201, 107, 0.08); color: var(--warning); }
.freshness-badge.is-stale { border-color: rgba(242, 131, 131, 0.3); background: rgba(242, 131, 131, 0.08); color: var(--danger); }

.market { margin-bottom: 54px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}
.result-count { margin: 0; color: var(--muted); font-size: 12px; }

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.search-field { position: relative; display: block; }
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
}
.search-field input,
.sort-field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.search-field input { padding: 0 14px 0 42px; }
.search-field input::placeholder { color: #70849a; }
.search-field input:focus,
.sort-field select:focus {
  border-color: rgba(44, 165, 224, 0.65);
  box-shadow: 0 0 0 3px rgba(44, 165, 224, 0.09);
}
.filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.filters::-webkit-scrollbar { display: none; }
.filter-button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.filter-button:hover,
.filter-button.is-active { background: var(--accent-soft); color: #9ddfff; }
.sort-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.sort-field select { min-width: 158px; padding: 0 31px 0 10px; }

.table-shell {
  overflow: auto;
  max-height: min(72vh, 760px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
table { width: 100%; min-width: 910px; border-collapse: separate; border-spacing: 0; }
th, td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
th {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #0d1a2a;
  color: #72879e;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 var(--border);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr.opportunity-row:hover { background: rgba(44, 165, 224, 0.035); }

.category-row td {
  position: sticky;
  z-index: 2;
  top: 39px;
  padding: 9px 15px;
  background: #0c2134;
  color: #9ddfff;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 var(--border);
}
.category-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  border: 1px solid rgba(109, 205, 251, 0.22);
  border-radius: 999px;
  color: #bceaff;
  font-size: 8px;
}

.product-name { font-size: 12px; }
.product-name { color: #dbe8f4; }
.asset-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c6d5e4;
  font-size: 9px;
  white-space: nowrap;
}

.yield-cell { min-width: 172px; }
.yield-primary { display: flex; align-items: baseline; gap: 6px; }
.current-value { color: var(--good); font-size: 14px; white-space: nowrap; }
.current-value.is-down { color: var(--warning); }
.metric-label { color: #7890a7; font-size: 8px; font-weight: 760; text-transform: uppercase; }
.yield-secondary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.average-value { color: #b9c9d8; font-size: 9px; white-space: nowrap; }
.ur-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(244, 201, 107, 0.22);
  border-radius: 999px;
  background: rgba(244, 201, 107, 0.06);
  color: var(--warning);
  font-size: 8px;
  font-weight: 740;
  white-space: nowrap;
}
.ur-chip.is-hot { border-color: rgba(242, 131, 131, 0.25); background: rgba(242, 131, 131, 0.07); color: var(--danger); }
.yield-note {
  display: block;
  max-width: 200px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}
.yield-note[hidden], .ur-chip[hidden] { display: none; }

.tvl-wrap { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.tvl-value { color: #c0cede; font-size: 11px; white-space: nowrap; }
.low-tvl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(242, 131, 131, 0.22);
  border-radius: 999px;
  background: rgba(242, 131, 131, 0.07);
  color: var(--danger);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.updated-value { color: var(--muted); font-size: 9px; white-space: nowrap; }
.updated-value.is-warning { color: var(--warning); }
.updated-value.is-stale { color: var(--danger); }

.action-cell { width: 46px; text-align: right; }
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #8edbff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.open-link-label { display: none; }
.open-link:hover,
.open-link:focus-visible { border-color: rgba(44, 165, 224, 0.6); background: var(--accent-soft); outline: none; }
.open-link.is-disabled { cursor: not-allowed; opacity: 0.45; pointer-events: none; }

.loading-row td { height: 150px; color: var(--muted); text-align: center; }
.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); }
.empty-state p { margin: 6px 0 0; font-size: 13px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 25px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}
footer p { margin: 0; }
footer a { color: #9ddfff; text-decoration: none; }

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

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .controls { grid-template-columns: 1fr auto; }
  .filters { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 20px, 1180px); }
  .site-header { min-height: 66px; }
  .brand small { display: none; }

  .hero {
    min-height: auto;
    gap: 20px;
    padding: 25px 18px 17px;
    border-radius: 20px;
  }
  h1 { font-size: clamp(36px, 11.5vw, 51px); }
  .hero-text { font-size: 14px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary article { padding: 12px 13px; }
  .summary span { font-size: 18px; }

  .data-partnership { margin-bottom: 31px; padding: 13px; }
  .partnership-mark { display: none; }
  .partnership-heading { gap: 6px; }
  .partnership-copy p { font-size: 11px; }

  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .controls { grid-template-columns: 1fr; }
  .filters { grid-column: auto; grid-row: auto; }
  .sort-field { justify-content: space-between; }
  .sort-field select { width: auto; flex: 1; }

  .table-shell { overflow: visible; max-height: none; border: 0; background: transparent; }
  table, thead, tbody, tr, td { display: block; width: 100%; min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 9px; }

  tbody tr.category-row {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .category-row td {
    position: static;
    display: block;
    padding: 11px 3px 1px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  tbody tr.opportunity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "protocol protocol"
      "product asset"
      "yield yield"
      "tvl action";
    gap: 11px 14px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
  }
  tbody tr.opportunity-row:hover { background: var(--surface); }
  td { min-width: 0; padding: 0; border: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #70849a;
    font-size: 8px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .opportunity-row td:nth-child(1) { grid-area: protocol; padding: 0 0 10px; border-bottom: 1px solid var(--border); }
  .opportunity-row td:nth-child(2) { grid-area: product; }
  .opportunity-row td:nth-child(3) { grid-area: asset; text-align: right; }
  .opportunity-row td:nth-child(4) { grid-area: yield; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .opportunity-row td:nth-child(5) { grid-area: tvl; align-self: center; }
  .opportunity-row td:nth-child(6) { display: none; }
  .opportunity-row td:nth-child(7) { grid-area: action; align-self: end; }
  .opportunity-row td:first-child::before,
  .action-cell::before { display: none; }

  .protocol-cell { min-width: 0; }
  .product-name { font-size: 13px; }
  .yield-primary { gap: 7px; }
  .current-value { font-size: 20px; }
  .average-value { font-size: 10px; }
  .yield-note { max-width: none; font-size: 9px; }
  .tvl-value { font-size: 13px; }
  .action-cell { width: auto; text-align: right; }
  .open-link {
    min-width: 104px;
    min-height: 39px;
    border-color: rgba(44, 165, 224, 0.3);
    background: rgba(44, 165, 224, 0.08);
  }
  .open-link-label { display: inline; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary article:nth-child(even) { border-left: 1px solid var(--border); }
  .filter-button { padding-inline: 9px; }
  .opportunity-row td:nth-child(2) { padding-right: 6px; }
}

/* v8.2 visual layer: richer palette, local brand art and direct protocol links. */
:root {
  --violet: #8f75ff;
  --mint: #49e2ba;
  --cyan: #4dc8ff;
  --rose: #f07bc3;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(77, 200, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 91% 28%, rgba(143, 117, 255, 0.14), transparent 33rem),
    radial-gradient(circle at 28% 74%, rgba(73, 226, 186, 0.10), transparent 36rem),
    linear-gradient(180deg, #061321 0%, #11152f 34%, #092b35 69%, #07111f 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.52), transparent 88%);
}

.site-header {
  min-height: 80px;
}

.brand-mark {
  overflow: hidden;
  width: 44px;
  height: 44px;
  border-color: rgba(77, 200, 255, .35);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(77, 200, 255, .19), rgba(143, 117, 255, .11));
  box-shadow: 0 10px 30px rgba(35, 145, 214, .17);
}
.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand:hover .brand-mark {
  border-color: rgba(77, 200, 255, .7);
  transform: translateY(-1px);
}
.brand-mark { transition: border-color .18s ease, transform .18s ease; }

.language-button,
.search-field input,
.sort-field select,
.filters {
  background: rgba(10, 23, 39, .78);
  backdrop-filter: blur(14px);
}

.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 30%, rgba(143, 117, 255, .17), transparent 24rem),
    linear-gradient(118deg, rgba(77, 200, 255, .14), rgba(73, 226, 186, .045) 48%, rgba(143, 117, 255, .075)),
    rgba(9, 22, 38, .84);
  border-color: rgba(157, 208, 238, .18);
}
.hero::after {
  border-color: rgba(143, 117, 255, .18);
  box-shadow: 0 0 0 36px rgba(77, 200, 255, .025), 0 0 0 78px rgba(143, 117, 255, .018);
}
.hero-brand-art {
  position: absolute;
  z-index: 0;
  right: 31%;
  bottom: -58px;
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: .055;
  filter: saturate(1.25);
  pointer-events: none;
  transform: rotate(-7deg);
}
.hero-copy,
.summary { position: relative; z-index: 1; }

h1 {
  background: linear-gradient(105deg, #ffffff 18%, #a9e7ff 55%, #c8bfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow { color: #7bd7ff; }

.summary {
  border-color: rgba(154, 204, 236, .18);
  background: rgba(5, 13, 24, .52);
}
.summary article:nth-child(1) span { color: #8be0ff; }
.summary article:nth-child(2) span { color: #c1b4ff; }
.summary article:nth-child(3) span { color: #ffd37f; }
.summary article:nth-child(4) span { color: #7ae2c0; }

.data-partnership {
  border-color: rgba(143, 117, 255, .22);
  background: linear-gradient(110deg, rgba(77, 200, 255, .075), rgba(143, 117, 255, .075), rgba(73, 226, 186, .035));
}
.partnership-mark {
  border-color: rgba(143, 117, 255, .32);
  background: rgba(143, 117, 255, .10);
  color: #c8bfff;
}
.partnership-heading a { color: #89dcff; }

.table-shell {
  border-color: rgba(166, 207, 234, .16);
  background: rgba(7, 18, 31, .75);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
table { min-width: 850px; }
th { background: rgba(12, 27, 45, .97); }
tbody tr.opportunity-row {
  --row-accent: 77, 200, 255;
}
tbody tr.opportunity-row[data-category="stablecoins"] { --row-accent: 73, 226, 186; }
tbody tr.opportunity-row[data-category="gram-usdt"] { --row-accent: 143, 117, 255; }
tbody tr.opportunity-row[data-category="btc"] { --row-accent: 244, 191, 91; }
tbody tr.opportunity-row[data-category="eth"] { --row-accent: 240, 123, 195; }
tbody tr.opportunity-row:hover { background: rgba(var(--row-accent), .055); }

.category-row td {
  background: rgba(11, 32, 51, .97);
  box-shadow: inset 3px 0 0 rgba(77, 200, 255, .72), 0 1px 0 var(--border);
}
.category-row[data-category="stablecoins"] td { color: #8cf0d0; box-shadow: inset 3px 0 0 rgba(73, 226, 186, .72), 0 1px 0 var(--border); }
.category-row[data-category="gram-usdt"] td { color: #c8bfff; box-shadow: inset 3px 0 0 rgba(143, 117, 255, .72), 0 1px 0 var(--border); }
.category-row[data-category="btc"] td { color: #ffd98e; box-shadow: inset 3px 0 0 rgba(244, 191, 91, .76), 0 1px 0 var(--border); }
.category-row[data-category="eth"] td { color: #f3a7d6; box-shadow: inset 3px 0 0 rgba(240, 123, 195, .7), 0 1px 0 var(--border); }

.protocol-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 154px;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.protocol-link:hover .protocol-name,
.protocol-link:focus-visible .protocol-name { color: #8edfff; }
.protocol-link:hover .protocol-icon,
.protocol-link:focus-visible .protocol-icon {
  border-color: rgba(var(--row-accent), .66);
  box-shadow: 0 8px 24px rgba(var(--row-accent), .17);
  transform: translateY(-1px);
}
.protocol-link:focus-visible { box-shadow: 0 0 0 3px rgba(77, 200, 255, .12); }
.protocol-link.is-disabled { pointer-events: none; opacity: .65; }
.protocol-icon {
  overflow: hidden;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-color: rgba(var(--row-accent), .28);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(var(--row-accent), .14), rgba(8, 18, 30, .62));
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.protocol-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.protocol-copy { min-width: 0; }
.protocol-name {
  display: block;
  overflow: hidden;
  color: #eef7ff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}
.protocol-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.protocol-link-arrow {
  color: rgba(var(--row-accent), .82);
  font-size: 11px;
  opacity: .68;
  transition: transform .18s ease, opacity .18s ease;
}
.protocol-link:hover .protocol-link-arrow { opacity: 1; transform: translate(1px, -1px); }

.opportunity-row[data-category="stablecoins"] .asset-pill { background: rgba(73, 226, 186, .09); color: #9aefd6; }
.opportunity-row[data-category="gram-usdt"] .asset-pill { background: rgba(143, 117, 255, .10); color: #c8bfff; }
.opportunity-row[data-category="btc"] .asset-pill { background: rgba(244, 191, 91, .10); color: #ffd98e; }
.opportunity-row[data-category="eth"] .asset-pill { background: rgba(240, 123, 195, .10); color: #f1a8d5; }

.current-value { color: #73e3bd; }
.current-value.is-down { color: #ffd078; }

/* The protocol itself is now the only project link; the redundant action column is gone. */
.action-cell,
.open-link { display: none !important; }

@media (max-width: 1020px) {
  .hero-brand-art { right: 5%; bottom: -65px; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .site-header { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-mark img { width: 35px; height: 35px; }
  .hero-brand-art { right: -44px; bottom: -50px; width: 190px; height: 190px; opacity: .045; }

  tbody tr.opportunity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "protocol protocol"
      "product asset"
      "yield yield"
      "tvl tvl";
    background: linear-gradient(145deg, rgba(var(--row-accent), .035), rgba(10, 23, 39, .9));
    box-shadow: inset 3px 0 0 rgba(var(--row-accent), .4);
  }
  .opportunity-row td:nth-child(1) { grid-area: protocol; }
  .opportunity-row td:nth-child(2) { grid-area: product; }
  .opportunity-row td:nth-child(3) { grid-area: asset; }
  .opportunity-row td:nth-child(4) { grid-area: yield; }
  .opportunity-row td:nth-child(5) { grid-area: tvl; }
  .opportunity-row td:nth-child(6) { display: none; }
  .protocol-link { grid-template-columns: 40px minmax(0,1fr) auto; min-width: 0; }
  .protocol-icon { width: 40px; height: 40px; }
  .protocol-name { font-size: 13px; }
  .protocol-link-arrow { font-size: 14px; opacity: .9; }
}
.refresh-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(143, 117, 255, .25);
  border-radius: 999px;
  background: rgba(143, 117, 255, .07);
  color: #c8bfff;
  font-size: 9px;
  font-weight: 740;
  line-height: 1.2;
}
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  table { min-width: 0; }
  .table-shell, .market, .controls, .filters { max-width: 100%; }
}

.data-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(145, 164, 184, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
}
.data-source-badge.is-online {
  border-color: rgba(91, 213, 159, 0.34);
  background: rgba(91, 213, 159, 0.09);
  color: var(--good);
}
.data-source-badge.is-local {
  border-color: rgba(244, 201, 107, 0.34);
  background: rgba(244, 201, 107, 0.09);
  color: var(--warning);
}
.data-source-badge.is-loading {
  border-color: rgba(109, 205, 251, 0.3);
  background: rgba(44, 165, 224, 0.08);
  color: #9ddfff;
}
