﻿:root {
  --bg: #02050a;
  --bg-soft: #071227;
  --panel: #0a111e;
  --panel-border: rgba(0, 64, 152, 0.46);
  --text: #f3f7ff;
  --muted: #aeb8ca;
  --accent: #004098;
  --accent-2: #2d66c2;
  --danger: #ff6f88;
  --success: #43d79b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1100px 700px at 12% 0%, rgba(0, 64, 152, 0.38), rgba(2, 5, 10, 0) 45%),
    radial-gradient(900px 600px at 88% 96%, rgba(20, 35, 70, 0.28), rgba(2, 5, 10, 0) 40%),
    var(--bg);
  color: var(--text);
  font-family: 'Tinos', 'Noto Serif JP', serif;
  overflow-x: hidden;
}

body {
  padding: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.glass-card {
  border: 1px solid var(--panel-border);
  background: linear-gradient(170deg, rgba(12, 18, 30, 0.96), rgba(7, 11, 20, 0.98));
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(1, 6, 17, 0.4);
}

.loader-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #03060b 0%, #081225 48%, #03060b 100%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  z-index: 30;
  overflow: hidden;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loader-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 64, 152, 0.26), rgba(0, 64, 152, 0));
  filter: blur(28px);
  animation: pulse 2.4s ease-in-out infinite;
}

.loader-brand-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: float-in 0.95s ease forwards;
}

.loader-x {
  font-size: clamp(14px, 2.2vw, 24px);
  color: #f5f8ff;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.abc-loader-logo {
  width: auto;
  height: clamp(42px, 7vw, 82px);
  display: block;
  transform: none;
}

.loader-caption {
  z-index: 2;
  margin: 0;
  color: #b2c4da;
  letter-spacing: 0.06em;
  font-size: clamp(12px, 1.7vw, 18px);
}

.loader-bar {
  width: min(360px, 78vw);
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 102, 194, 0.5);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  z-index: 2;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #7ea5e7);
  box-shadow: 0 0 14px rgba(0, 64, 152, 0.55);
  animation: load-progress 2.4s ease-out forwards;
}

.app-shell {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cmc-wrap {
  position: relative;
  min-height: 52px;
  display: block;
  padding: 4px 170px 4px 10px;
  overflow: hidden;
}

.ticker-marquee {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lang-switch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(69, 102, 153, 0.45);
  border-radius: 10px;
  background: rgba(3, 8, 15, 0.94);
}

.lang-switch label {
  color: #a8bed9;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#langSelect {
  border: 1px solid rgba(69, 102, 153, 0.55);
  background: rgba(7, 15, 30, 0.96);
  color: #e8f2ff;
  border-radius: 8px;
  padding: 3px 7px;
  font: inherit;
  font-size: 0.78rem;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
  will-change: transform;
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: max-content;
  padding-right: 14px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(69, 102, 153, 0.32);
  background: rgba(5, 12, 24, 0.93);
  line-height: 1;
  white-space: nowrap;
  max-width: 190px;
}

.ticker-item-link {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ticker-item-link:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 102, 194, 0.72);
  background: rgba(8, 21, 43, 0.98);
}

.ticker-item img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.ticker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #6f90cf);
  box-shadow: 0 0 8px rgba(0, 64, 152, 0.4);
}

.ticker-symbol {
  font-size: 0.73rem;
  color: #a8bed9;
}

.ticker-price {
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-change {
  font-size: 0.74rem;
  font-weight: 600;
}

.ticker-change.up {
  color: var(--success);
}

.ticker-change.down {
  color: var(--danger);
}

.dashboard-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 330px 1fr 290px;
  min-height: calc(100vh - 118px);
  min-width: 0;
}

.left-rail {
  align-self: start;
  border-width: 2px;
  border-color: rgba(0, 64, 152, 0.5);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.brand-block {
  display: grid;
  gap: 8px;
}

.abc-mark {
  width: 126px;
  min-width: 40px;
  display: block;
  transform: translateY(-4px);
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.brand-welcome {
  margin: 2px 0 2px;
  color: #d4dced;
  font-size: 0.8rem;
  line-height: 1.45;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu-item {
  border: 1px solid rgba(69, 102, 153, 0.36);
  border-radius: 12px;
  padding: 10px 14px;
  color: #dde6f5;
  font-size: 1rem;
  font-weight: 500;
  transition: all 180ms ease;
}

.menu-item.active,
.menu-item:hover {
  border-color: rgba(45, 102, 194, 0.75);
  color: #f6f9ff;
  background: rgba(0, 64, 152, 0.22);
}

.mini-chart-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-card {
  border: 1px solid rgba(69, 102, 153, 0.35);
  background: rgba(7, 13, 24, 0.96);
  border-radius: 12px;
  padding: 10px;
  min-height: 172px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.mini-card h4 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #bcc9df;
}

tv-mini-chart {
  display: block;
  width: 100%;
  height: 138px;
  color-scheme: dark;
  --cd: #02050a;
  --w: #09162b;
  --af: #f2f8ff;
  --aq: #f2f8ff;
  background: #02050a;
  border-radius: 10px;
  overflow: hidden;
}

tv-mini-chart iframe {
  width: 100% !important;
}

.center-column {
  display: block;
  min-width: 0;
}

.view-panel {
  display: none;
  min-width: 0;
}

.view-panel.active {
  display: grid;
}

.pools-view {
  gap: 14px;
  grid-template-rows: auto 1fr auto;
}

.headline-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.headline-card,
.summary-card {
  padding: 16px;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'Inter', 'Noto Serif JP', serif;
}

h2,
h3,
h4 {
  margin: 6px 0 0;
  font-weight: 600;
  font-family: 'Tinos', 'Noto Serif JP', serif;
}

h2 {
  font-size: clamp(1.4rem, 1.8vw, 2rem);
}

h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.45rem);
}

.kpi-main-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kpi-main-line h2 {
  margin: 6px 0 0;
}

.kpi-formula {
  margin-top: 8px;
  color: #8fa8c7;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68%;
}

.delta {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: #9cb0ca;
}

.delta.up {
  color: var(--success);
}

.delta.down {
  color: var(--danger);
}

.chart-card {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
}

.chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.last-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-wrap {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(104, 134, 173, 0.2);
  background: #000;
  padding: 8px;
  min-height: 250px;
}

#feeChart {
  width: 100% !important;
  height: 100% !important;
  background: #000;
  border-radius: 10px;
}

.chart-meta {
  margin: 10px 0 0;
  color: #9eb3cd;
  font-size: 0.84rem;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.specific-view {
  gap: 12px;
  align-content: start;
}

.specific-card {
  padding: 16px;
}

.specific-equation {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #d8e9ff;
}

.specific-breakdown {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.specific-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(100, 133, 177, 0.2);
  background: rgba(9, 16, 27, 0.85);
  border-radius: 10px;
  padding: 10px;
}

.specific-breakdown .label {
  color: #a8bfd9;
}

.specific-breakdown .value {
  font-weight: 600;
}

.pool-breakdown {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pool-breakdown li {
  border: 1px solid rgba(100, 133, 177, 0.2);
  background: rgba(9, 16, 27, 0.85);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.pool-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.pool-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9bb1cd;
  font-size: 0.8rem;
}

.pool-row-range {
  color: #9bb1cd;
  font-size: 0.8rem;
}

.pool-row-fee {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pool-row-return {
  color: #9bb1cd;
  font-size: 0.8rem;
}

.pool-tag {
  color: #9bb1cd;
}

.specific-stats-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.specific-stats-grid div {
  border: 1px solid rgba(106, 140, 179, 0.22);
  border-radius: 10px;
  padding: 10px;
  background: rgba(10, 16, 27, 0.72);
}

.specific-stats-grid span {
  display: block;
  color: #9bb1cd;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.other-view {
  align-content: start;
}

.range-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.range-list li {
  border: 1px solid rgba(100, 133, 177, 0.2);
  background: rgba(9, 16, 27, 0.85);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.range-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.range-row-meta {
  color: #9bb1cd;
  font-size: 0.8rem;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.right-rail {
  padding: 16px;
  display: block;
  min-width: 0;
}

.apr-card {
  margin-bottom: 12px;
}

#estimatedAprValue {
  margin-top: 4px;
  font-size: clamp(1.28rem, 1.6vw, 1.8rem);
  color: #bfffe2;
}

.right-rail .mini-chart-grid {
  margin-top: 12px;
}

.right-rail h3 {
  margin: 0;
}

.portfolio-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.portfolio-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(100, 133, 177, 0.2);
  background: rgba(9, 16, 27, 0.85);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.collector-box {
  border-radius: 14px;
  border: 1px solid rgba(105, 146, 200, 0.26);
  background: radial-gradient(circle at 70% 0%, rgba(89, 184, 255, 0.16), transparent 45%),
    rgba(13, 23, 38, 0.9);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.address {
  margin: 0;
  font-size: 0.72rem;
  color: #bfd1e8;
  line-height: 1.6;
  word-break: break-all;
}

.collector-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.collector-stats div {
  border: 1px solid rgba(106, 140, 179, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: rgba(10, 16, 27, 0.72);
}

.collector-stats span {
  display: block;
  color: #9bb1cd;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.collector-stats strong {
  font-weight: 600;
}

.tx-feed {
  border-top: 1px solid rgba(111, 146, 191, 0.26);
  padding-top: 12px;
}

#txFeedList {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

#txFeedList li {
  border: 1px solid rgba(102, 134, 173, 0.2);
  border-radius: 10px;
  background: rgba(10, 17, 27, 0.86);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

#txFeedList .tx-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: #a8bfd9;
}

#txFeedList .tx-bottom {
  font-size: 0.8rem;
  color: #e5f3ff;
}

@media (max-width: 1200px) {
  .dashboard-layout {
    grid-template-columns: 290px 1fr;
  }

  .right-rail {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .tx-feed {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  body {
    padding: 10px;
  }

  .cmc-wrap {
    padding-right: 118px;
  }

  .lang-switch label {
    display: none;
  }

  .dashboard-layout {
    display: block;
    min-height: auto;
  }

  .left-rail,
  .center-column,
  .right-rail {
    width: 100%;
    margin-bottom: 12px;
  }

  .left-rail,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .headline-row,
  .summary-row,
  .specific-stats-grid {
    grid-template-columns: 1fr;
  }

  .mini-chart-grid {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-rows: auto;
  }

  .loader-brand-row {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .loader-x {
    transform: none;
  }

  .abc-loader-logo {
    height: auto;
    width: min(58vw, 220px);
  }

}

@keyframes float-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@keyframes load-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(1);
  }

  50% {
    opacity: 0.62;
    transform: scale(1.08);
  }
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


