:root {
  --bg: #e9edf3;
  --bg-2: #d7dee8;
  --paper: #f5f7fa;
  --ink: #0b1220;
  --mute: #5c6b7a;
  --line: rgba(11, 18, 32, 0.1);
  --up: #0f9f6e;
  --up-bg: rgba(15, 159, 110, 0.12);
  --down: #e04b3a;
  --down-bg: rgba(224, 75, 58, 0.12);
  --accent: #14b8a6;
  --accent-2: #0d9488;
  --amber: #f59e0b;
  --max: 1320px;
  --display: "Syne", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -5%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(700px 360px at 0% 8%, rgba(245, 158, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f7 0%, #dce4ef 100%);
  min-height: 100vh;
  line-height: 1.45;
  overflow-x: hidden;
}
body.is-splash { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; gap: 10px; text-align: center;
  background: #070d16; color: #e8eef6;
  transition: opacity .4s ease, visibility .4s ease;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-brand {
  font-size: 1.6rem; font-weight: 800; letter-spacing: .04em;
}
.splash-brand em { font-style: normal; color: var(--accent); }
.splash-tag { color: #8aa0b5; font-size: .85rem; }
.splash-bar {
  width: min(220px, 60vw); height: 3px; margin: 8px auto 0;
  border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.promo {
  text-align: center; padding: .5rem 1rem;
  background: linear-gradient(90deg, #0b1220, #123047 50%, #0b1220);
  color: #d7e6f2; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}

.top-tape {
  display: flex; gap: 1.25rem; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .55rem max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  background: #0b1220; color: #9db0c2;
  font-family: var(--mono); font-size: .72rem;
}
.top-tape::-webkit-scrollbar { display: none; }
.top-tape > span { flex: 0 0 auto; white-space: nowrap; }
.top-tape strong { color: #fff; font-weight: 600; margin: 0 .25rem; }
.top-tape em { font-style: normal; font-weight: 600; }
.top-tape em.up { color: #34d399; }
.top-tape em.down { color: #fb7185; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .75rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: .75rem 0;
  background: rgba(238, 242, 247, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.15rem; min-width: 0;
}
.brand img { border-radius: 10px; flex-shrink: 0; }
.brand-text { white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.brand small {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--mute); margin-left: .2rem;
}
.nav { display: flex; gap: 1rem; margin-left: 1rem; }
.nav a {
  font-size: .92rem; color: var(--mute); font-weight: 600;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.lang { position: relative; }
.lang-btn, .status-pill {
  font-family: var(--mono); font-size: .72rem;
  padding: .4rem .65rem; border: 1px solid var(--line);
  background: rgba(255,255,255,.75); border-radius: 10px;
  white-space: nowrap;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  cursor: pointer; color: var(--ink);
}
.lang-btn:hover { border-color: var(--accent); }
.lang-globe { flex-shrink: 0; opacity: .75; display: block; }
.lang-caret {
  width: 0; height: 0; opacity: .7; flex-shrink: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .35rem);
  z-index: 40; min-width: 11.5rem; max-height: min(70vh, 22rem);
  overflow: auto; margin: 0; padding: .35rem 0; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 18, 32, .14);
}
.lang-menu[hidden] { display: none !important; }
.lang-menu li {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; padding: .45rem .75rem; cursor: pointer;
  font-size: .82rem; color: var(--ink);
}
.lang-menu li:hover,
.lang-menu li[aria-selected="true"] { background: rgba(20,184,166,.1); }
.lang-menu li[aria-selected="true"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
body.is-rtl .lang-menu { right: auto; left: 0; }
.status-pill { color: var(--accent-2); border-color: rgba(20,184,166,.35); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.1rem; border-radius: 12px;
  font-weight: 700; border: 1px solid transparent;
}
.btn-solid {
  background: linear-gradient(120deg, #14b8a6, #0d9488);
  color: #042f2e; box-shadow: 0 10px 24px rgba(13, 148, 136, .28);
}
.btn-ghost {
  background: rgba(255,255,255,.14); color: #eef6ff;
  border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px);
}

.hero {
  position: relative; min-height: min(72vh, 560px);
  display: grid; align-items: end; overflow: hidden; color: #eef6ff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.hero-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 22, .82) 0%, rgba(7, 13, 22, .55) 48%, rgba(7, 13, 22, .35) 100%),
    linear-gradient(180deg, rgba(7, 13, 22, .25) 0%, rgba(7, 13, 22, .75) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.2rem 0 2.4rem;
  animation: riseIn .75s ease both;
}
.hero-brand {
  font-size: clamp(2.4rem, 8vw, 3.8rem); font-weight: 800;
  letter-spacing: -.03em; line-height: .95; margin-bottom: .55rem;
}
.hero-brand em { font-style: normal; color: var(--accent); }
.hero-eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #7dd3c7; margin-bottom: .55rem;
}
.hero h1 {
  font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 700;
  max-width: 16ch; line-height: 1.15; letter-spacing: -.02em;
}
.hero-lead {
  margin-top: .7rem; color: rgba(232, 240, 248, .88);
  max-width: 42ch; font-size: .98rem;
}
.hero-search {
  position: relative; display: block; margin-top: 1.2rem; max-width: 480px;
}
.hero-search-ico {
  position: absolute; left: 16px; top: 50%; width: 14px; height: 14px;
  border: 2px solid #5c6b7a; border-radius: 50%; transform: translateY(-60%);
  pointer-events: none;
}
.hero-search-ico::after {
  content: ""; position: absolute; width: 7px; height: 2px; background: #5c6b7a;
  right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px;
}
.hero-search input {
  width: 100%; min-height: 54px; border: 0; border-radius: 14px;
  padding: 0 1.1rem 0 2.7rem; font-size: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.trust {
  width: min(100% - 2rem, var(--max));
  margin: -1.1rem auto 0; position: relative; z-index: 2;
}
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem; box-shadow: 0 14px 34px rgba(11, 18, 32, .08);
  animation: riseIn .7s .1s ease both;
}
.trust-row article { text-align: center; padding: .35rem; }
.trust-n {
  font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--accent-2);
}
.trust-t { margin-top: .2rem; color: var(--mute); font-size: .72rem; }

.eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: .35rem;
}
.section-intro { margin-bottom: .35rem; }
.section-intro h2 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }

.overview {
  width: min(100% - 2rem, var(--max));
  margin: 1.4rem auto 0;
  display: grid;
  gap: .75rem;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem 1rem .75rem;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11,18,32,.08); }
.metric-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
}
.metric-k {
  font-size: .88rem; color: var(--mute); font-weight: 600;
}
.metric-chg, .metric-state {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
}
.metric-chg.up, .metric-state.up { color: var(--up); }
.metric-chg.down, .metric-state.down { color: var(--down); }
.metric-v {
  font-family: var(--mono); font-size: 1.55rem; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-top: .35rem;
}
.spark {
  width: 100%; height: 44px; margin-top: auto; display: block;
}
.gauge-bar {
  position: relative; height: 8px; margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #e04b3a 0%, #f59e0b 45%, #0f9f6e 100%);
}
.gauge-bar.alt {
  background: linear-gradient(90deg, #f59e0b 0%, #38bdf8 55%, #14b8a6 100%);
}
.gauge-bar i {
  position: absolute; top: -5px; width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--ink);
  transform: translateX(-50%);
  left: 50%;
  background: none; border-radius: 0;
}

.panel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem .9rem  .6rem;
  min-height: 280px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .55rem;
}
.panel-head h2 {
  font-size: .98rem; font-weight: 700;
}
.tf-tabs {
  display: inline-flex; gap: .15rem;
  background: rgba(11,18,32,.04);
  padding: .15rem; border-radius: 8px;
}
.tf-tabs button {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  color: var(--mute); padding: .22rem .4rem; min-width: 2rem; border-radius: 6px;
}
.tf-tabs button.is-active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(11,18,32,.08);
}

.ind-list, .ls-list, .rank-list {
  list-style: none; display: grid; gap: 0;
}
.ind-list li, .ls-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .55rem; align-items: center;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}
.ind-list li:last-child, .ls-list li:last-child,
.rank-list li:last-child { border-bottom: 0; }
.ind-name, .ls-name {
  color: var(--ink); font-weight: 600; line-height: 1.25;
}
.ind-chg, .ls-chg {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  text-align: right; min-width: 4.2rem;
}
.ind-chg.up, .ls-chg.up { color: var(--up); }
.ind-chg.down, .ls-chg.down { color: var(--down); }
.ind-val, .ls-val {
  font-family: var(--mono); font-size: .84rem; font-weight: 600;
  text-align: right; min-width: 4.5rem;
  font-variant-numeric: tabular-nums;
}
.ls-list li { grid-template-columns: 1fr auto auto; }
.ls-name { font-size: .78rem; color: var(--mute); font-weight: 500; }

.rank-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr auto;
  gap: .45rem; align-items: center;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line);
}
.rank-n {
  font-family: var(--mono); font-size: .75rem; color: var(--mute);
}
.rank-asset {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .86rem; min-width: 0;
}
.rank-meta {
  display: grid; justify-items: end; gap: .1rem;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.rank-price { font-size: .78rem; color: var(--mute); }
.rank-chg { font-size: .82rem; font-weight: 700; }
.rank-chg.up { color: var(--up); }
.rank-chg.down { color: var(--down); }

.markets-head {
  width: min(100% - 2rem, var(--max));
  margin: 1.75rem auto 0;
}
.markets-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -.02em; line-height: 1.15;
}

.markets, .heat-section, .about {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
}
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap;
}
.section-bar h2 { font-size: 1.25rem; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tab {
  padding: .45rem .75rem; font-size: .85rem; font-weight: 600;
  color: var(--mute); border: 1px solid transparent; border-radius: 999px;
}
.tab.is-active {
  color: var(--ink); background: #fff; border-color: var(--line);
}
.updated {
  font-family: var(--mono); font-size: .72rem; color: var(--mute);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
}
.book {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.book th {
  text-align: left; padding: .75rem .7rem;
  color: var(--mute); font-weight: 500; font-size: .72rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap; background: rgba(11,18,32,.03);
}
.book th.num, .book td.num { text-align: right; }
.book td {
  padding: .7rem .7rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.book tbody tr:hover { background: rgba(20, 184, 166, 0.06); }
.book .skeleton td {
  text-align: center; color: var(--mute); padding: 2rem;
}
.asset {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
}
.asset-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; object-fit: cover; flex: 0 0 auto;
}
.asset-icon.sm { width: 18px; height: 18px; }
.asset span,
.asset-fallback {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: .62rem;
  flex: 0 0 auto;
}
.asset-fallback.sm { width: 18px; height: 18px; font-size: .55rem; }
.mover-left {
  display: inline-flex; align-items: center; gap: .4rem;
}
.heat-sym {
  display: inline-flex; align-items: center; gap: .3rem;
}
.chg.up { color: var(--up); background: var(--up-bg); padding: .15rem .35rem; border-radius: 6px; }
.chg.down { color: var(--down); background: var(--down-bg); padding: .15rem .35rem; border-radius: 6px; }

.heat-section {
  margin-top: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.heat-section .section-bar { margin-bottom: .75rem; }
.heat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .45rem; min-height: 180px;
}
.heat-cell {
  min-height: 72px; padding: .55rem; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; color: #fff;
}
.heat-cell strong { font-size: .95rem; }

.about {
  padding: 1.5rem 0 2.5rem;
}
.about h2 { margin-bottom: .65rem; }
.about p, .about li { color: var(--mute); max-width: 52rem; }
.about ul { margin-top: .75rem; padding-left: 1.1rem; display: grid; gap: .35rem; }

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .85rem; justify-content: space-between;
  color: var(--mute); font-size: .85rem;
}
.site-footer .brand {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); font-weight: 700;
}
.site-footer img { border-radius: 8px; }

@keyframes heroDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.08) translate3d(-1%, -.5%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .panel-row { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .hero-search input, .tab, .lang-btn { font-size: 16px; }
}
@media (max-width: 960px), (hover: none) and (pointer: coarse) {
  .promo { font-size: .7rem; padding: .4rem .75rem; }
  .site-header { width: 100%; padding: .65rem 1rem; gap: .5rem; }
  .brand img { width: 28px; height: 28px; }
  .brand { font-size: 1rem; }
  .brand small { display: none; }
  .status-pill { display: none; }
  .lang-btn { padding: .45rem .55rem; }
  .nav-toggle { display: flex; width: 40px; height: 40px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; flex-direction: column; gap: 0;
    padding: .5rem 1rem 1rem;
    background: rgba(238, 242, 247, .98); border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1rem; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding: 1.6rem 0 1.8rem; }
  .hero-brand { font-size: clamp(1.85rem, 9vw, 2.4rem); margin-bottom: .35rem; }
  .hero h1 { font-size: clamp(1.2rem, 5.5vw, 1.55rem); max-width: none; }
  .hero-lead { font-size: .9rem; margin-top: .5rem; }
  .hero-search { margin-top: 1rem; max-width: none; }
  .hero-search input { min-height: 48px; border-radius: 12px; }
  .hero-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .85rem;
  }
  .hero-actions .btn { width: 100%; min-height: 44px; font-size: .9rem; }
  .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
  .trust { margin-top: .35rem; }
  .trust-row { padding: .7rem .55rem; gap: .4rem; }
}
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .metric-row, .panel-row { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
