:root {
  --bg: #07131e;
  --bg-soft: rgba(17, 39, 57, 0.8);
  --panel: rgba(8, 22, 34, 0.76);
  --panel-border: rgba(184, 204, 214, 0.12);
  --text: #eef5f1;
  --muted: #95a9b4;
  --gold: #e0c16a;
  --gold-strong: #f1d27e;
  --teal: #49d6c2;
  --teal-soft: rgba(73, 214, 194, 0.18);
  --rose: #ff7a8d;
  --rose-soft: rgba(255, 122, 141, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .search-input,
html[dir="rtl"] .summary-subtitle,
html[dir="rtl"] .source-note,
html[dir="rtl"] .section-note,
html[dir="rtl"] .search-hint {
  text-align: right;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family:
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 193, 106, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(73, 214, 194, 0.12), transparent 24%),
    linear-gradient(160deg, #05101a 0%, #07131e 34%, #0b2231 100%);
}

body.menu-open {
  overflow: hidden;
}

body.search-mode .page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.search-mode .topbar {
  max-width: 860px;
  margin: 0 auto 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.search-mode .topbar > div:first-child {
  width: 100%;
  display: grid;
  justify-items: center;
}

body.search-mode .topbar-actions {
  justify-content: center;
}

body.search-mode .dashboard {
  min-height: 0;
  justify-items: center;
  gap: 0;
}

body.search-mode .search-panel {
  width: min(100%, 860px);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.search-mode .search-input {
  display: block;
  width: min(680px, calc(100vw - 64px));
  margin: 0 auto;
}

body.search-mode #search-button {
  min-width: 142px;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 104px 24px 48px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.75;
  pointer-events: none;
}

.ambient-a {
  width: 340px;
  height: 340px;
  top: -90px;
  left: -60px;
  background: radial-gradient(circle, rgba(224, 193, 106, 0.24), transparent 68%);
}

.ambient-b {
  width: 420px;
  height: 420px;
  top: 18%;
  right: -120px;
  background: radial-gradient(circle, rgba(73, 214, 194, 0.16), transparent 66%);
}

.ambient-c {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: 42%;
  background: radial-gradient(circle, rgba(255, 122, 141, 0.12), transparent 72%);
}

.topbar {
  position: relative;
  z-index: 200;
}

.dashboard {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.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;
}

.topbar {
  max-width: 1380px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.77rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.topbar h1,
.hero-copy h2,
.section-head h3,
.mechanic-card h4 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 4000;
}

html[dir="rtl"] .topbar-actions {
  right: auto;
  left: 24px;
}

.social-float {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(73, 214, 194, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 22, 34, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-float:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 214, 194, 0.38);
  background:
    linear-gradient(180deg, rgba(73, 214, 194, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(8, 22, 34, 0.94);
}

.social-float-logo {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.social-float-text {
  display: inline-block;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

html[dir="rtl"] .social-float {
  right: auto;
  left: 24px;
  padding: 10px 10px 10px 14px;
}

.language-picker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 196px;
  z-index: 4010;
}

.language-trigger {
  min-width: 176px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 42px 12px 14px;
  font: inherit;
  font-family:
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.language-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.76);
  border-bottom: 2px solid rgba(255, 255, 255, 0.76);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.language-picker.open .language-trigger::after {
  transform: translateY(-30%) rotate(-135deg);
}

html[dir="rtl"] .language-trigger {
  text-align: right;
  padding: 12px 14px 12px 42px;
}

html[dir="rtl"] .language-trigger::after {
  right: auto;
  left: 16px;
}

.language-trigger:focus {
  outline: none;
  border-color: rgba(73, 214, 194, 0.45);
  box-shadow: 0 0 0 4px rgba(73, 214, 194, 0.1);
}

.language-picker.open .language-trigger {
  border-color: rgba(73, 214, 194, 0.36);
  background: rgba(73, 214, 194, 0.12);
}

.language-menu {
  position: fixed;
  top: 76px;
  right: 24px;
  width: min(272px, calc(100vw - 24px));
  min-width: 0;
  max-height: min(66vh, 430px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a1621 !important;
  backdrop-filter: none !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 4px;
  z-index: 4020;
  isolation: isolate;
  pointer-events: auto;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 24px;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.language-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.language-option {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

html[dir="rtl"] .language-option {
  text-align: right;
}

.language-option:hover,
.language-option:focus {
  outline: none;
  border-color: rgba(73, 214, 194, 0.24);
  background: rgba(73, 214, 194, 0.12);
}

.language-option.active {
  border-color: rgba(73, 214, 194, 0.32);
  background: rgba(73, 214, 194, 0.18);
  color: var(--text);
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
}

.status-pill,
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  color: var(--text);
}

.status-pill::before,
.source-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 193, 106, 0.6);
}

.status-pill.muted::before,
.source-chip::before {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.status-pill.good::before,
.source-chip.active::before {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(73, 214, 194, 0.55);
}

.status-pill.warn::before {
  background: var(--gold);
}

.status-pill.bad::before {
  background: var(--rose);
  box-shadow: 0 0 10px rgba(255, 122, 141, 0.55);
}

.ghost-button,
.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 193, 106, 0.4);
  background: rgba(224, 193, 106, 0.08);
}

.dashboard {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  overflow: visible;
}

.results-shell {
  display: grid;
  gap: 18px;
  overflow: visible;
}

.panel,
.metric-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

.search-panel {
  padding: 28px;
}

body.results-mode .topbar {
  margin-bottom: 18px;
}

body.results-mode .section-stack {
  overflow: visible;
}

body.results-mode .search-panel {
  padding: 18px 22px;
  border-radius: 22px;
}

body.results-mode .search-panel .search-form {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

body.results-mode .search-panel .search-row {
  min-width: 0;
}

body.results-mode .search-panel .search-actions {
  margin: 0;
  justify-content: flex-end;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.hero-copy {
  padding-right: 12px;
}

.hero-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  max-width: 12ch;
}

.hero-text,
.source-note,
.mechanic-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.search-form {
  margin: 0;
  width: 100%;
}

.search-panel .search-form {
  width: min(100%, 680px);
  margin: 0 auto;
}

.search-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-row {
  display: block;
  width: 100%;
}

.search-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: 0.98rem;
}

.search-input::placeholder {
  color: rgba(149, 169, 180, 0.8);
}

.search-input:focus {
  outline: none;
  border-color: rgba(73, 214, 194, 0.45);
  box-shadow: 0 0 0 4px rgba(73, 214, 194, 0.1);
}

.search-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

#search-button {
  min-width: 126px;
}

.search-hint {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-hint.good {
  color: var(--teal);
}

.search-hint.bad {
  color: var(--rose);
}

.quick-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 193, 106, 0.36);
}

.address-card {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(73, 214, 194, 0.08), transparent),
    rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.address-card > div {
  min-width: 0;
  flex: 1;
}

.mini-label,
.source-name,
.metric-label,
.stat-item span,
.pool-card span,
.address-box span,
.change-pill span,
.snapshot-grid span,
.insight-kicker,
.snapshot-title {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.address-link,
.mono {
  display: block;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.link-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease;
}

.action-link:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 214, 194, 0.34);
}

.summary-bar {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(224, 193, 106, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.summary-top,
.summary-actions-group,
.summary-links,
.section-nav,
.section-banner,
.activity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.summary-top,
.section-banner,
.activity-head {
  justify-content: space-between;
}

.summary-main {
  min-width: 0;
}

.summary-main h2,
.risk-card h4 {
  margin: 0;
}

.summary-main h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.summary-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.summary-actions-group {
  justify-content: flex-end;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-stat,
.risk-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-stat {
  padding: 16px 18px;
}

.summary-stat span,
.risk-tone {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-stat strong {
  display: block;
  margin-top: 8px;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
  word-break: break-word;
}

.summary-links {
  align-items: stretch;
}

.summary-links .action-link {
  min-width: 0;
  flex: 1 1 240px;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
}

.section-nav {
  padding-top: 4px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(224, 193, 106, 0.3);
}

.section-stack {
  display: grid;
  gap: 16px;
}

.section-banner {
  padding: 0 4px;
}

.result-columns,
.chart-grid,
.risk-grid {
  display: grid;
  gap: 18px;
}

.result-columns,
.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid-market {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-panel {
  min-height: 100%;
}

.chart-canvas,
.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.chart-canvas {
  min-height: 220px;
  padding: 16px;
  display: grid;
  align-items: stretch;
}

.chart-svg {
  width: 100%;
  height: 190px;
  display: block;
}

.chart-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-pill strong {
  font-size: 0.82rem;
}

.legend-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.activity-bars {
  display: grid;
  gap: 14px;
}

.activity-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.activity-head {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-head strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.activity-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.activity-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(224, 193, 106, 0.45), rgba(73, 214, 194, 0.92));
}

.market-detail-panel {
  display: grid;
  gap: 18px;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.stat-item small,
.address-box small,
.risk-card p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-card {
  padding: 18px;
}

.risk-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.risk-card.good {
  border-color: rgba(73, 214, 194, 0.22);
  background: linear-gradient(180deg, rgba(73, 214, 194, 0.12), rgba(255, 255, 255, 0.03));
}

.risk-card.warn {
  border-color: rgba(224, 193, 106, 0.22);
  background: linear-gradient(180deg, rgba(224, 193, 106, 0.12), rgba(255, 255, 255, 0.03));
}

.risk-card.bad {
  border-color: rgba(255, 122, 141, 0.22);
  background: linear-gradient(180deg, rgba(255, 122, 141, 0.12), rgba(255, 255, 255, 0.03));
}

.hero-side {
  display: grid;
  gap: 16px;
}

.source-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.source-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.source-grid strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.source-list {
  margin: 14px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 152px;
  min-width: 0;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card.highlight {
  background:
    radial-gradient(circle at top right, rgba(224, 193, 106, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.metric-value {
  display: block;
  max-width: 100%;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-foot,
.section-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.metric-subfoot {
  display: block;
  margin-top: 6px;
  color: rgba(149, 169, 180, 0.82);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.advanced-address-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.advanced-address-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 15px;
  font: inherit;
  font-family:
    "Space Grotesk",
    "Noto Sans",
    "Noto Sans SC",
    "Noto Sans TC",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    sans-serif;
  font-size: 0.92rem;
}

.advanced-address-input::placeholder {
  color: rgba(149, 169, 180, 0.82);
}

.advanced-address-input:focus {
  outline: none;
  border-color: rgba(73, 214, 194, 0.45);
  box-shadow: 0 0 0 4px rgba(73, 214, 194, 0.1);
}

.panel-wide {
  grid-column: 1 / -1;
}

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

.section-head h3 {
  font-size: 1.4rem;
}

.stat-grid,
.activity-grid,
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-item,
.pool-card,
.address-box,
.mechanic-card,
.insight-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-item,
.pool-card {
  border-radius: 18px;
  padding: 16px;
}

.stat-item strong,
.pool-card strong,
.change-pill strong,
.snapshot-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bar-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bar-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-head strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.bar-track,
.split-bar {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  height: 14px;
}

.bar-fill,
.split-fill {
  height: 100%;
  width: 0;
  transition: width 480ms ease;
}

.bar-fill.gold {
  background: linear-gradient(90deg, rgba(224, 193, 106, 0.45), var(--gold-strong));
}

.bar-fill.teal {
  background: linear-gradient(90deg, rgba(73, 214, 194, 0.32), var(--teal));
}

.split-bar {
  display: flex;
}

.split-fill.buy {
  background: linear-gradient(90deg, rgba(73, 214, 194, 0.4), var(--teal));
}

.split-fill.sell {
  background: linear-gradient(90deg, rgba(255, 122, 141, 0.8), rgba(255, 122, 141, 0.42));
}

.address-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.address-box {
  display: block;
  border-radius: 18px;
  padding: 16px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.address-box:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 214, 194, 0.35);
}

.activity-grid {
  margin-bottom: 16px;
}

.change-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.change-pill {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.change-pill.positive {
  border-color: rgba(73, 214, 194, 0.28);
  background: var(--teal-soft);
}

.change-pill.negative {
  border-color: rgba(255, 122, 141, 0.28);
  background: var(--rose-soft);
}

.mechanic-list {
  display: grid;
  gap: 14px;
}

.mechanic-card,
.insight-card {
  border-radius: 18px;
  padding: 18px;
}

.mechanic-card h4 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.snapshot-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(224, 193, 106, 0.08), transparent),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.snapshot-title {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.positive-text {
  color: var(--teal);
}

.negative-text {
  color: var(--rose);
}

@media (max-width: 1180px) {
  .hero-panel,
  .content-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .summary-stats,
  .metric-grid-market,
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 82px 14px 28px;
  }

  body.search-mode .page-shell {
    justify-content: flex-start;
    padding-top: 82px;
  }

  body.search-mode .topbar {
    text-align: center;
    width: 100%;
  }

  body.search-mode .topbar h1 {
    max-width: 9ch;
    font-size: clamp(1.8rem, 8.6vw, 2.35rem);
    line-height: 1.08;
  }

  body.search-mode .search-panel {
    width: 100%;
  }

  body.search-mode .search-form {
    max-width: 100%;
    margin: 0 auto;
  }

  .topbar,
  .topbar-actions,
  .section-head,
  .address-card,
  .summary-top,
  .summary-actions-group,
  .section-banner,
  .activity-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.search-mode .topbar,
  body.search-mode .search-panel,
  body.search-mode .search-hint {
    text-align: center;
  }

  .language-picker {
    width: min(100%, 220px);
    min-width: min(100%, 220px);
  }

  .language-trigger {
    width: 100%;
  }

  .topbar-actions {
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 4000;
  }

  .language-menu {
    top: 64px;
    right: 10px;
    left: auto;
    width: min(240px, calc(100vw - 20px));
    max-height: min(60vh, 320px);
  }

  html[dir="rtl"] .topbar-actions {
    right: auto;
    left: 10px;
  }

  html[dir="rtl"] .language-menu {
    right: auto;
    left: 10px;
  }

  .social-float {
    right: 14px;
    bottom: 14px;
    padding: 9px 12px 9px 9px;
    gap: 8px;
  }

  .social-float-logo {
    width: 16px;
    height: 16px;
  }

  .social-float-text {
    font-size: 0.84rem;
  }

  html[dir="rtl"] .social-float {
    right: auto;
    left: 14px;
    padding: 9px 9px 9px 12px;
  }

  body.search-mode .search-row {
    width: 100%;
  }

  body.search-mode .search-actions {
    width: 100%;
  }

  body.results-mode .topbar,
  body.results-mode .search-panel,
  body.results-mode .search-hint {
    text-align: center;
  }

  body.results-mode .page-shell {
    padding: 82px 10px 22px;
  }

  body.results-mode .topbar {
    margin-bottom: 12px;
  }

  body.results-mode .topbar .eyebrow {
    margin-bottom: 5px;
    font-size: 0.63rem;
    letter-spacing: 0.16em;
  }

  body.results-mode .topbar h1 {
    font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    line-height: 1.12;
  }

  body.results-mode .dashboard,
  body.results-mode .results-shell,
  body.results-mode .section-stack {
    gap: 12px;
  }

  body.results-mode .panel {
    padding: 16px;
    border-radius: 22px;
  }

  body.results-mode .search-panel {
    padding: 12px;
  }

  body.results-mode .search-input {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  body.results-mode .search-panel .search-form {
    grid-template-columns: 1fr;
  }

  .advanced-address-form {
    grid-template-columns: 1fr;
  }

  .advanced-address-input,
  #advanced-address-button {
    width: 100%;
  }

  body.results-mode .search-panel .search-actions {
    width: 100%;
    justify-content: center;
  }

  body.results-mode .summary-bar {
    gap: 12px;
  }

  body.results-mode .summary-main h2 {
    font-size: 1.6rem;
  }

  body.results-mode .summary-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  body.results-mode .summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.results-mode .summary-stat {
    padding: 12px 13px;
  }

  body.results-mode .summary-stat strong {
    margin-top: 6px;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  body.results-mode .summary-links {
    gap: 8px;
  }

  body.results-mode .summary-links .action-link {
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.76rem;
  }

  .search-input {
    font-size: 0.86rem;
  }

  #search-button {
    width: 100%;
  }

  .address-card > div,
  .address-box,
  .stat-item,
  .pool-card {
    width: 100%;
    min-width: 0;
  }

  .status-stack {
    justify-content: flex-start;
  }

  .source-grid,
  .stat-grid,
  .activity-grid,
  .snapshot-grid,
  .address-grid,
  .pool-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .summary-links .action-link,
  .nav-pill {
    width: 100%;
  }

  body.results-mode .summary-actions-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.results-mode .summary-actions-group .ghost-button {
    width: 100%;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  body.results-mode .section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.results-mode .nav-pill {
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
  }

  body.results-mode .section-banner {
    gap: 8px;
    padding: 0;
  }

  body.results-mode .section-head {
    margin-bottom: 14px;
  }

  body.results-mode .section-head h3,
  body.results-mode .section-banner h3 {
    font-size: 1.05rem;
  }

  body.results-mode .section-note,
  body.results-mode .metric-foot,
  body.results-mode .metric-subfoot,
  body.results-mode .stat-item small,
  body.results-mode .address-box small,
  body.results-mode .risk-card p {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  body.results-mode .metric-grid-market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.results-mode #overview-grid,
  body.results-mode #pool-grid,
  body.results-mode #contract-grid,
  body.results-mode #risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.results-mode .metric-card {
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
  }

  body.results-mode .metric-label {
    font-size: 0.72rem;
  }

  body.results-mode .metric-value {
    font-size: 1.25rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  body.results-mode .metric-subfoot {
    display: none;
  }

  body.results-mode .stat-grid,
  body.results-mode .address-grid,
  body.results-mode .risk-grid,
  body.results-mode .change-strip {
    gap: 10px;
  }

  body.results-mode .change-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.results-mode .stat-item,
  body.results-mode .pool-card,
  body.results-mode .address-box,
  body.results-mode .change-pill,
  body.results-mode .risk-card,
  body.results-mode .insight-card {
    padding: 13px;
    border-radius: 16px;
  }

  body.results-mode .stat-item span,
  body.results-mode .risk-tone {
    font-size: 0.72rem;
  }

  body.results-mode .stat-item strong,
  body.results-mode .pool-card strong,
  body.results-mode .change-pill strong,
  body.results-mode .risk-card strong {
    margin-top: 6px;
    font-size: 0.98rem;
    line-height: 1.22;
  }

  body.results-mode .bar-stack {
    gap: 10px;
    margin-top: 12px;
  }

  body.results-mode .bar-block,
  body.results-mode .activity-item {
    padding: 12px;
    border-radius: 16px;
  }

  body.results-mode .bar-head,
  body.results-mode .activity-head {
    font-size: 0.78rem;
  }

  .chart-canvas {
    min-height: 200px;
    padding: 14px;
  }

  .chart-svg {
    height: 168px;
  }

  body.results-mode .chart-canvas {
    min-height: 160px;
    padding: 12px;
    border-radius: 16px;
  }

  body.results-mode .chart-svg {
    height: 140px;
  }

  body.results-mode .chart-legend {
    margin-top: 10px;
    gap: 8px;
  }

  body.results-mode .legend-pill {
    padding: 8px 10px;
    border-radius: 14px;
  }

  body.results-mode .legend-pill strong,
  body.results-mode .legend-pill span {
    font-size: 0.74rem;
  }

  body.results-mode .source-list {
    margin: 10px 0;
    gap: 8px;
  }

  body.results-mode .source-chip {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  body.results-mode .insight-list {
    gap: 10px;
  }

  body.results-mode .empty-state {
    padding: 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.55;
  }
}










