/* AVRO Market Radar — isolated ice-glass Web3 component. */
.avro-radar {
  --avro-blue: #176cff;
  --avro-cyan: #4ecbff;
  --avro-violet: #745cff;
  --avro-ink: #15315b;
  --avro-muted: #7185a7;
  --avro-green: #12a875;
  --avro-red: #ef5470;
  --avro-line: rgba(46, 111, 215, 0.16);
  position: relative;
  isolation: isolate;
  width: min(100%, 1480px);
  margin: 38px auto;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  color: var(--avro-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 4% 4%, rgba(74, 201, 255, 0.28), transparent 27%),
    radial-gradient(circle at 96% 0%, rgba(123, 91, 255, 0.20), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(236, 247, 255, 0.68));
  box-shadow:
    0 28px 85px rgba(36, 89, 174, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(67, 145, 255, 0.09),
    0 0 0 1px rgba(62, 139, 255, 0.08);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  overflow: hidden;
}

.avro-radar::before,
.avro-radar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.avro-radar::before {
  inset: 0;
  z-index: -2;
  opacity: 0.62;
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.85) 48%, transparent 53%) 0 0 / 210% 100%,
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(77,158,255,.04) 119px 120px);
  animation: avroRadarShimmer 9s ease-in-out infinite;
}

.avro-radar::after {
  z-index: 4;
  left: 3%;
  right: 3%;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #52d7ff 18%, #fff 47%, #5578ff 75%, transparent);
  box-shadow: 0 0 14px #58cfff, 0 0 34px rgba(61, 126, 255, .88);
  animation: avroRadarVoltage 2.8s ease-in-out infinite;
}

@keyframes avroRadarShimmer {
  0%, 100% { background-position: 120% 0, 0 0; }
  50% { background-position: -20% 0, 0 0; }
}

@keyframes avroRadarVoltage {
  0%, 100% { opacity: .55; transform: scaleX(.82); }
  48% { opacity: 1; transform: scaleX(1); }
  52% { opacity: .35; transform: scaleX(.96); }
  57% { opacity: 1; transform: scaleX(1); }
}

@keyframes avroRadarPulse {
  0%, 100% { opacity: .45; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes avroRowSpark {
  0% { transform: translateX(-140%); opacity: 0; }
  35% { opacity: .85; }
  100% { transform: translateX(340%); opacity: 0; }
}

.avro-radar__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.avro-radar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--avro-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.avro-radar__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fcfff;
  box-shadow: 0 0 0 5px rgba(79,207,255,.12), 0 0 20px rgba(46,167,255,.88);
  animation: avroRadarPulse 1.7s ease-in-out infinite;
}

.avro-radar__title {
  margin: 0;
  color: #15315b;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -.048em;
  font-weight: 950;
}

.avro-radar__subtitle {
  margin: 9px 0 0;
  color: var(--avro-muted);
  font-size: .9rem;
  font-weight: 650;
}

.avro-radar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(31,164,112,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--avro-green);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(33, 115, 91, .08);
}

.avro-radar__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--avro-green);
  box-shadow: 0 0 12px rgba(19,165,111,.78);
}

.avro-radar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.avro-radar__panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(60, 130, 232, .18);
  border-radius: 25px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(77,205,255,.19), transparent 32%),
    linear-gradient(155deg, rgba(255,255,255,.82), rgba(235,245,255,.60));
  box-shadow:
    0 17px 42px rgba(48,91,157,.12),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 32px rgba(72, 163, 255, .05);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.avro-radar__panel:nth-child(2) {
  background:
    radial-gradient(circle at 18% 0%, rgba(117,91,255,.16), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,.84), rgba(241,239,255,.60));
}

.avro-radar__panel:nth-child(3) {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,103,139,.12), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,.84), rgba(255,241,246,.58));
}

.avro-radar__panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 12%;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #65d8ff, #fff, transparent);
  box-shadow: 0 0 16px #4bbfff;
  animation: avroRowSpark 4.6s ease-in-out infinite;
  pointer-events: none;
}

.avro-radar__panel:nth-child(2)::before { animation-delay: 1.2s; }
.avro-radar__panel:nth-child(3)::before { animation-delay: 2.3s; }

.avro-radar__panel-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--avro-line);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.18));
}

.avro-radar__panel-title {
  margin: 0;
  color: var(--avro-ink);
  font-size: 1.03rem;
  font-weight: 920;
  line-height: 1.15;
}

.avro-radar__panel-note {
  margin: 5px 0 0;
  color: var(--avro-muted);
  font-size: .68rem;
  font-weight: 680;
  line-height: 1.25;
}

.avro-radar__metric {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(44,111,220,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--avro-blue);
  font-size: .64rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 #fff;
}

.avro-radar__list {
  display: grid;
  grid-template-columns: 1fr;
}

.avro-radar__row {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px 32px minmax(54px, 1fr) minmax(74px, auto) minmax(62px, auto);
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(71,116,185,.10);
  background: rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

.avro-radar__row::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.avro-radar__row:hover {
  z-index: 2;
  transform: translateX(3px) scale(1.008);
  background: rgba(255,255,255,.70);
  box-shadow: inset 3px 0 0 rgba(49,131,255,.46), 0 7px 20px rgba(48,91,157,.09);
}

.avro-radar__row:hover::after {
  opacity: 1;
  animation: avroRowSpark .9s ease-out 1;
}

.avro-radar__row:last-child { border-bottom: 0; }

.avro-radar__rank {
  color: #9aacbf;
  font-size: .66rem;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.avro-radar__logo {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(58,113,200,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(49,92,159,.10), 0 0 14px rgba(71,163,255,.08);
}

.avro-radar__logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.avro-radar__fallback {
  display: none;
  color: var(--avro-blue);
  font-size: .55rem;
  font-weight: 950;
}

.avro-radar__logo.is-fallback img { display: none; }
.avro-radar__logo.is-fallback .avro-radar__fallback { display: block; }

.avro-radar__symbol {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #18365f;
  font-size: .80rem;
  font-weight: 950;
}

.avro-radar__price,
.avro-radar__change {
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.avro-radar__price {
  color: #536b91;
  font-size: .70rem;
  font-weight: 850;
}

.avro-radar__change {
  font-size: .74rem;
  font-weight: 950;
}

.avro-radar__change.is-up { color: var(--avro-green); text-shadow: 0 0 12px rgba(18,168,117,.10); }
.avro-radar__change.is-down { color: var(--avro-red); text-shadow: 0 0 12px rgba(239,84,112,.10); }

.avro-radar__empty {
  padding: 30px 16px;
  color: var(--avro-muted);
  text-align: center;
  font-size: .8rem;
  font-weight: 750;
}

.avro-radar__error { color: var(--avro-red); }

@media (max-width: 1180px) {
  .avro-radar__row {
    grid-template-columns: 20px 30px minmax(48px, 1fr) minmax(68px, auto) minmax(58px, auto);
    gap: 6px;
    padding-inline: 9px;
  }
  .avro-radar__price { font-size: .66rem; }
  .avro-radar__change { font-size: .70rem; }
}

@media (max-width: 980px) {
  .avro-radar {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .avro-radar__head { min-width: 940px; }
  .avro-radar__grid {
    min-width: 940px;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
  }
}

@media (max-width: 640px) {
  .avro-radar { border-radius: 24px; margin: 22px auto; }
  .avro-radar__head { align-items: flex-start; }
  .avro-radar__title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .avro-radar::before,
  .avro-radar::after,
  .avro-radar__eyebrow::before,
  .avro-radar__panel::before { animation: none; }
}
