:root {
  --bg-main: #0d0d0f;
  --bg-panel: #121217;
  --bg-panel-alt: #16161d;
  --bg-sidebar: #101016;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(106, 13, 173, 0.45);
  --text-main: #e5e5e5;
  --text-soft: #aaa;
  --text-title: #c084fc;
  --text-secondary: #f59e0b;
  --text-muted: #aaa;
  --pi-purple: #a855f7;
  --accent-orange: #ff8c00;
  --purple: #a855f7;
  --orange: #ff8c00;
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.02);
  --inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 -10px 20px rgba(0, 0, 0, 0.18);
  --glow-purple: 0 0 8px rgba(106, 13, 173, 0.16);
  --glow-orange: 0 0 14px rgba(255, 140, 0, 0.22);
}

.glow-purple {
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.4),
    0 0 30px rgba(168, 85, 247, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 140, 0, 0.12), transparent 40%),
    linear-gradient(to bottom, #05060d, #0a0b14, #05060d);
  color: #fff;
  font-family: "Barlow", sans-serif;
}

body {
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* App Shell */
.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(106, 13, 173, 0.025) 0%, rgba(13, 13, 15, 0) 18%),
    var(--bg-main);
}

/* Header */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 24px;
  background: linear-gradient(to right, rgba(10, 10, 20, 0.9), rgba(20, 10, 40, 0.9));
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: visible;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #a855f7, transparent);
  opacity: 0.4;
}

.market-ticker-shell {
  padding: 8px 30px 0;
}

.market-ticker-bar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  background:
    linear-gradient(90deg, rgba(22, 14, 36, 0.82), rgba(12, 12, 24, 0.88));
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.06),
    0 0 18px rgba(255, 140, 0, 0.08);
  overflow: hidden;
}

.market-ticker-label {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 140, 0, 0.16);
  color: #ff9d2f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-ticker-row {
  position: relative;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.market-ticker-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  min-height: 44px;
  padding: 0 16px;
  will-change: transform;
}

.market-ticker-empty {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  white-space: nowrap;
}

.market-ticker-item + .market-ticker-item {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.market-ticker-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.12);
  flex: 0 0 auto;
}

.market-ticker-symbol {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-ticker-pair {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-ticker-price {
  color: #ff8c00;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.18);
}

.market-ticker-change {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.market-ticker-change.is-up {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.16);
}

.market-ticker-change.is-down {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.14);
}

.market-ticker-change.is-flat {
  color: #ff9d2f;
  text-shadow: 0 0 8px rgba(255, 157, 47, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  min-width: 0;
  flex: 0 0 auto;
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand:hover {
  opacity: 0.94;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.18));
}

.brand:focus-visible {
  outline: 1px solid rgba(255, 140, 0, 0.65);
  outline-offset: 8px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  margin-right: 20px;
  flex: 0 0 auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.4);
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.2),
    0 0 40px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(6px);
  flex: 0 1 auto;
  min-width: 0;
}

.currency-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 140, 0, 0.22);
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.52);
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.10),
    0 0 24px rgba(168, 85, 247, 0.10),
    inset 0 0 14px rgba(168, 85, 247, 0.06);
  flex: 0 1 auto;
  min-width: 0;
}

.currency-switcher-label,
.currency-switcher-rate {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.currency-switcher-rate {
  min-width: 92px;
  text-align: right;
}

.currency-switcher-track {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.currency-switcher-option {
  min-width: 46px;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.currency-switcher-option:hover,
.currency-switcher-option:focus-visible {
  color: #ffb45a;
}

.currency-switcher-option.is-active {
  background: linear-gradient(180deg, rgba(255, 166, 0, 0.20), rgba(168, 85, 247, 0.14));
  color: #ff8c00;
  box-shadow:
    0 0 14px rgba(255, 140, 0, 0.14),
    inset 0 0 10px rgba(255, 140, 0, 0.08);
  transform: translateY(-1px);
}

.logo-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.5),
    0 0 20px rgba(168, 85, 247, 0.28),
    0 0 34px rgba(255, 140, 0, 0.08);
  transform: translateY(1px);
}

.pi-logo {
  width: 52px;
  height: 52px;
  display: block;
}

.logo-glow::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: inset 0 0 16px rgba(168, 85, 247, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 360px;
}

.brand-label {
  color: var(--text-title);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pi-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #a855f7, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px rgba(168, 85, 247, 0.6),
    0 0 20px rgba(168, 85, 247, 0.4);
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pi-subtitle {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: none;
  text-shadow: none;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.app-shell.currency-switching .exchange-price,
.app-shell.currency-switching .markets-cell-value,
.app-shell.currency-switching .best-exchange-price,
.app-shell.currency-switching .best-exchange-spread-value,
.app-shell.currency-switching .arbitrage-summary-value,
.app-shell.currency-switching .arbitrage-feature-value,
.app-shell.currency-switching .change-delta,
.app-shell.currency-switching .change-feature-value,
.app-shell.currency-switching .high24-main,
.app-shell.currency-switching .high24-sub-value,
.app-shell.currency-switching .high24-feature-value,
.app-shell.currency-switching .pi-calculator-price-value,
.app-shell.currency-switching .pi-calculator-item-value,
.app-shell.currency-switching .tool-result-grid strong,
.app-shell.currency-switching .whale-alert-usd,
.app-shell.currency-switching .alerts-summary-card small,
.app-shell.currency-switching .alerts-detail-sub span:last-child,
.app-shell.currency-switching .market-ticker-price {
  animation: currencyShift 420ms ease;
}

.app-shell.currency-switching .currency-switcher-track {
  animation: currencyTrackPulse 420ms ease;
}

@keyframes currencyShift {
  0% {
    opacity: 0.45;
    transform: translateY(4px) scale(0.985);
    filter: blur(2px);
  }

  55% {
    opacity: 1;
    transform: translateY(-1px) scale(1.015);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes currencyTrackPulse {
  0% {
    box-shadow:
      0 0 0 rgba(255, 140, 0, 0),
      inset 0 0 0 rgba(168, 85, 247, 0);
  }

  50% {
    box-shadow:
      0 0 18px rgba(255, 140, 0, 0.22),
      inset 0 0 14px rgba(168, 85, 247, 0.18);
  }

  100% {
    box-shadow:
      0 0 0 rgba(255, 140, 0, 0),
      inset 0 0 0 rgba(168, 85, 247, 0);
  }
}

.nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.topnav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  background: transparent !important;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.topnav .nav-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: transparent;
  opacity: 1;
  font-style: normal;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.topnav .nav-item svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: #a855f7;
  stroke: none;
  opacity: 0.9;
  transition: fill 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.topnav .nav-item span {
  color: #bbb;
  font-size: 12px;
  letter-spacing: 1.5px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.topnav .nav-item::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: transparent;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-item.active {
  color: #ff8c00;
  position: relative;
  background: rgba(255, 140, 0, 0.08) !important;
  border-radius: 6px;
  padding: 6px 10px;
}

.nav-item.active svg {
  fill: #ff8c00;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.7));
}

.nav-item.active span {
  color: #ff8c00;
  text-shadow: none;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff8c00;
  box-shadow:
    0 0 8px rgba(255, 140, 0, 0.9),
    0 0 16px rgba(255, 140, 0, 0.6);
}

.topnav .nav-item:hover,
.topnav .nav-item:focus-visible {
  color: #ff8c00;
  background: rgba(168, 85, 247, 0.06);
  outline: none;
}

.topnav .nav-item:hover svg,
.topnav .nav-item:focus-visible svg {
  fill: rgba(255, 140, 0, 0.9);
  opacity: 1;
}

.topnav .nav-item:hover span,
.topnav .nav-item:focus-visible span {
  color: #ff8c00;
}

.topnav .nav-item:hover::after,
.topnav .nav-item:focus-visible::after {
  background: rgba(255, 140, 0, 0.75);
  box-shadow: none;
}

.header-price-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 140px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 140, 0, 0.5);
  border-radius: 6px;
  text-align: center;
  background: rgba(20, 20, 30, 0.6);
  box-shadow:
    0 0 8px rgba(255, 140, 0, 0.2);
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 30px;
}

.price-panel-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-panel-value {
  color: #ff8c00;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-panel-change {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Main Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
  padding: 20px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.sidebar-left {
  background: linear-gradient(180deg, rgba(12, 12, 24, 0.72) 0%, rgba(18, 14, 34, 0.58) 100%);
}

.sidebar-left::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -13px;
  width: 1px;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-right::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -13px;
  width: 1px;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-section {
  padding: 16px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 20px rgba(168, 85, 247, 0.05),
    0 0 25px rgba(168, 85, 247, 0.08);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h2 {
  margin: 0 0 10px;
  color: var(--accent-orange);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: rgba(255, 140, 0, 0.85);
}

.sidebar-section li {
  padding: 8px 0 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #c6c6d0;
  font-size: 0.86rem;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.sidebar-section li:hover {
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.07) 0%, rgba(255, 140, 0, 0) 100%);
  border-bottom-color: rgba(255, 140, 0, 0.18);
}

.sidebar-section li:last-child {
  border-bottom: 0;
}

.creator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section .creator-item {
  padding: 0;
  border-bottom: 0;
}

.creator-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.creator-link:hover,
.creator-link:focus-visible {
  border-color: rgba(255, 140, 0, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 140, 0, 0.08), rgba(168, 85, 247, 0.04));
  box-shadow:
    inset 0 0 14px rgba(255, 140, 0, 0.04),
    0 0 14px rgba(255, 140, 0, 0.08);
  transform: translateX(2px);
  outline: none;
}

.creator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 50%;
  color: #f4f4f8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), rgba(12, 10, 24, 0.88));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.12);
}

.creator-avatar-pi {
  color: #ffb020;
  font-size: 1rem;
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.14);
}

.creator-avatar-world {
  color: #7dd3fc;
}

.creator-avatar-dr {
  color: #c084fc;
}

.creator-avatar-dave {
  color: #facc15;
}

.creator-avatar-news {
  color: #ff8c00;
}

.creator-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.creator-name {
  color: rgba(245, 245, 250, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-meta {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  background: rgba(255, 140, 0, 0.06);
  color: #ff8c00;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.creator-youtube svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.creator-link:hover .creator-youtube,
.creator-link:focus-visible .creator-youtube {
  border-color: rgba(255, 140, 0, 0.62);
  background: rgba(255, 140, 0, 0.16);
  color: #ff9f1a;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.18);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(168, 85, 247, 0.42);
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(255, 140, 0, 0.035));
  box-shadow:
    inset 0 0 14px rgba(168, 85, 247, 0.05),
    0 0 14px rgba(168, 85, 247, 0.1);
}

.social-avatar-official {
  color: #ffb020;
  border-color: rgba(255, 140, 0, 0.44);
}

.social-avatar-news {
  color: #38bdf8;
}

.social-avatar-dr {
  color: #c084fc;
}

.social-avatar-bridge {
  color: #22c55e;
}

.social-avatar-global {
  color: #ff8c00;
}

.social-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(168, 85, 247, 0.06);
  color: #c084fc;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.social-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.social-link:hover .social-action,
.social-link:focus-visible .social-action {
  border-color: rgba(255, 140, 0, 0.48);
  background: rgba(255, 140, 0, 0.1);
  color: #ff8c00;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.16);
}

.official-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.official-posts-head h2 {
  margin-bottom: 0;
}

.official-posts-head h2::after {
  display: none;
}

.official-posts-live {
  padding: 3px 7px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
  color: #7ee787;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.08);
}

.official-posts-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.official-post-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 0 12px rgba(168, 85, 247, 0.025),
    0 0 12px rgba(0, 0, 0, 0.12);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.official-post-card:hover,
.official-post-card:focus-visible {
  border-color: rgba(255, 140, 0, 0.34);
  box-shadow:
    inset 0 0 14px rgba(255, 140, 0, 0.035),
    0 0 14px rgba(255, 140, 0, 0.08);
  transform: translateX(2px);
  outline: none;
}

.official-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.official-post-source {
  color: #ff8c00;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.official-post-time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.official-post-card strong {
  color: rgba(245, 245, 250, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.official-post-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  line-height: 1.35;
}

.official-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.official-post-status {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-post-open {
  color: #ff8c00;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.official-post-open:hover,
.official-post-open:focus-visible {
  color: #ffbd66;
  outline: none;
}

.official-post-loading {
  border-color: rgba(168, 85, 247, 0.14);
}

.official-post-x {
  border-left: 2px solid rgba(168, 85, 247, 0.58);
}

.official-post-youtube {
  border-left: 2px solid rgba(255, 140, 0, 0.68);
}

.official-post-facebook {
  border-left: 2px solid rgba(59, 130, 246, 0.62);
}

.donation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.donation-head h2 {
  margin-bottom: 0;
}

.donation-head h2::after {
  display: none;
}

.donation-badge {
  padding: 3px 8px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  background: rgba(255, 140, 0, 0.08);
  color: #ffb45a;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donation-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(168, 85, 247, 0.12);
  background:
    linear-gradient(180deg, rgba(20, 16, 34, 0.92), rgba(14, 14, 26, 0.96));
  box-shadow:
    inset 0 0 14px rgba(168, 85, 247, 0.04);
}

.donation-kicker {
  color: #ff8c00;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donation-title {
  color: rgba(245, 245, 250, 0.94);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.donation-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.45;
}

.donation-address-shell {
  padding: 10px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background: rgba(11, 11, 22, 0.76);
}

.donation-address {
  display: block;
  color: #f3ecff;
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.07em;
  word-break: break-all;
  white-space: normal;
}

.donation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.donation-copy-button {
  min-width: 118px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 140, 0, 0.32);
  background: rgba(255, 140, 0, 0.08);
  color: #ffb45a;
  font: inherit;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.donation-copy-button:hover,
.donation-copy-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 0, 0.48);
  background: rgba(255, 140, 0, 0.14);
  box-shadow: 0 0 14px rgba(255, 140, 0, 0.12);
  outline: none;
}

.donation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donation-status.is-copied {
  color: #7ee787;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.16);
}

.donation-footnote {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  line-height: 1.45;
}

.whale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.whale-header h2 {
  margin-bottom: 0;
}

.whale-header h2::after {
  display: none;
}

.whale-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whale-alert-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.whale-alert-item:last-child {
  margin-bottom: 0;
  border-bottom-color: transparent;
}

.whale-alert-enter {
  animation: whaleAlertDrop 0.5s ease-out, whaleAlertPulseBuy 1.15s ease-out;
}

.whale-alert-enter-sell {
  animation: whaleAlertDrop 0.5s ease-out, whaleAlertPulseSell 1.15s ease-out;
}

.whale-alert-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b46dff;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 72%);
}

.whale-alert-icon-buy {
  color: #a855f7;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 72%);
}

.whale-alert-icon-sell {
  color: #ef4444;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 72%);
}

.whale-alert-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 0 7px currentColor);
}

.whale-alert-icon-buy svg {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.55));
}

.whale-alert-icon-sell svg {
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.whale-alert-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.whale-alert-type {
  color: #e9e9ef;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
}

.whale-alert-amount {
  color: #22c55e;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.whale-alert-amount-buy {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.whale-alert-amount-sell {
  color: #ff7a3d;
  text-shadow: 0 0 10px rgba(255, 122, 61, 0.18);
}

.whale-alert-usd {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.05;
}

.whale-alert-exchange {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.whale-alert-time {
  color: #22c55e;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.whale-alert-time-buy {
  color: #22c55e;
}

.whale-alert-time-sell {
  color: #ff7a3d;
}

.whale-empty {
  padding: 10px 0 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-bottom: 0;
}

.best-exchange-card {
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 15, 36, 0.96) 0%, rgba(11, 10, 22, 0.98) 100%);
  box-shadow:
    inset 0 0 14px rgba(168, 85, 247, 0.05),
    0 0 16px rgba(168, 85, 247, 0.06);
}

.best-exchange-card h2 {
  margin-bottom: 12px;
}

.best-exchange-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.best-exchange-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.best-exchange-meta-chip {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.best-exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.best-exchange-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.best-exchange-logo {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.best-exchange-logo svg {
  width: 30px;
  height: 30px;
  display: block;
}

.best-exchange-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.best-exchange-name {
  color: #e8e8ef;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.best-exchange-pricebox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.best-exchange-price-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.best-exchange-price {
  color: #ececf7;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.best-exchange-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 140, 0, 0.78);
  border-radius: 4px;
  background: linear-gradient(180deg, #d27a18 0%, #b95e06 45%, #8f4300 100%);
  color: #fff4e6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.22),
    0 0 12px rgba(255, 140, 0, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.best-exchange-action:hover,
.best-exchange-action:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.28),
    0 0 16px rgba(255, 140, 0, 0.2);
  outline: none;
}

.best-exchange-action-buy:hover,
.best-exchange-action-buy:focus-visible {
  border-color: rgba(34, 197, 94, 0.62);
  background:
    linear-gradient(180deg, #f39b28 0%, #d97110 38%, #0f7a3d 100%);
  color: #f3fff7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(34, 197, 94, 0.16),
    0 0 24px rgba(255, 140, 0, 0.18);
}

.best-exchange-action-sell:hover,
.best-exchange-action-sell:focus-visible {
  border-color: rgba(239, 68, 68, 0.66);
  background:
    linear-gradient(180deg, #ff9f43 0%, #d96a15 34%, #8f1f1f 100%);
  color: #fff3ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(239, 68, 68, 0.16),
    0 0 24px rgba(255, 140, 0, 0.14);
}

.best-exchange-summary {
  padding: 12px 14px 14px;
}

.best-exchange-spread {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.best-exchange-spread-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best-exchange-spread-value {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 700;
}

.best-exchange-ranking {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.best-exchange-ranking-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.best-exchange-ranking-title {
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best-exchange-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.best-exchange-rank-row:last-child {
  border-bottom: 0;
}

.best-exchange-rank-index {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
}

.best-exchange-rank-name {
  color: #d8d8e6;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.best-exchange-rank-price {
  color: #f0f0f8;
  font-size: 0.82rem;
  font-weight: 700;
}

.arbitrage-panel,
.execution-panel {
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 140, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 15, 36, 0.96) 0%, rgba(11, 10, 22, 0.98) 100%);
  box-shadow:
    inset 0 0 14px rgba(168, 85, 247, 0.04),
    0 0 16px rgba(168, 85, 247, 0.05);
}

.arbitrage-panel h2,
.execution-panel h2 {
  margin-bottom: 12px;
}

.arbitrage-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.arbitrage-summary-label,
.arbitrage-route-label,
.arbitrage-feature-label,
.execution-item-label {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arbitrage-summary-value {
  color: #ececf7;
  font-size: 1.05rem;
  font-weight: 700;
}

.arbitrage-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.arbitrage-route-leg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
}

.arbitrage-route-value,
.arbitrage-feature-value,
.execution-item-value {
  color: #ececf7;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.arbitrage-route-arrow {
  color: #ff9d2f;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.16);
}

.arbitrage-features,
.execution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.arbitrage-feature,
.execution-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.02),
    0 0 12px rgba(0,0,0,0.12);
}

.execution-grid {
  gap: 10px 8px;
}

@keyframes whaleAlertDrop {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }

  60% {
    opacity: 1;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whaleAlertPulseBuy {
  0%,
  100% {
    border-color: rgba(34, 197, 94, 0);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: none;
  }

  25% {
    border-color: rgba(34, 197, 94, 0.9);
    background: rgba(34, 197, 94, 0.09);
    box-shadow:
      inset 0 0 0 1px rgba(34, 197, 94, 0.25),
      0 0 14px rgba(34, 197, 94, 0.32);
  }

  55% {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.03);
    box-shadow:
      inset 0 0 0 1px rgba(34, 197, 94, 0.12),
      0 0 8px rgba(34, 197, 94, 0.12);
  }
}

@keyframes whaleAlertPulseSell {
  0%,
  100% {
    border-color: rgba(255, 122, 61, 0);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: none;
  }

  25% {
    border-color: rgba(255, 122, 61, 0.95);
    background: rgba(255, 122, 61, 0.09);
    box-shadow:
      inset 0 0 0 1px rgba(255, 122, 61, 0.22),
      0 0 14px rgba(255, 122, 61, 0.32);
  }

  55% {
    border-color: rgba(255, 122, 61, 0.35);
    background: rgba(255, 122, 61, 0.03);
    box-shadow:
      inset 0 0 0 1px rgba(255, 122, 61, 0.12),
      0 0 8px rgba(255, 122, 61, 0.12);
  }
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.center-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  width: 100%;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 20px rgba(168, 85, 247, 0.05),
    0 0 25px rgba(168, 85, 247, 0.08);
}

.center-shell,
.community-view,
.markets-view,
.alerts-view,
.portfolio-view,
.tools-view {
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    filter 320ms ease;
}

.main-content.is-transitioning .center-shell,
.main-content.is-transitioning .community-view,
.main-content.is-transitioning .markets-view,
.main-content.is-transitioning .alerts-view,
.main-content.is-transitioning .portfolio-view,
.main-content.is-transitioning .tools-view {
  opacity: 0;
  transform: translateY(12px);
  filter: saturate(0.9);
}

.main-content.is-community:not(.is-transitioning) .center-shell,
.main-content.is-markets:not(.is-transitioning) .center-shell,
.main-content.is-alerts:not(.is-transitioning) .center-shell,
.main-content.is-portfolio:not(.is-transitioning) .center-shell,
.main-content.is-tools:not(.is-transitioning) .center-shell {
  display: none;
}

.community-view,
.markets-view,
.alerts-view,
.portfolio-view,
.tools-view {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  filter: saturate(0.9);
}

.main-content.is-community:not(.is-transitioning) .community-view,
.main-content.is-markets:not(.is-transitioning) .markets-view,
.main-content.is-alerts:not(.is-transitioning) .alerts-view,
.main-content.is-portfolio:not(.is-transitioning) .portfolio-view,
.main-content.is-tools:not(.is-transitioning) .tools-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
  animation: community-view-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-content.is-home-entering .center-shell {
  animation: community-view-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.community-terminal {
  min-height: 640px;
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.13), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(255, 140, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 13, 32, 0.86), rgba(10, 9, 20, 0.96));
  box-shadow:
    inset 0 0 28px rgba(168, 85, 247, 0.055),
    0 0 26px rgba(168, 85, 247, 0.08);
}

.community-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.community-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.community-hero h1 {
  margin: 0;
  color: #f4f4fb;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.community-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.community-live-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
  color: #7ee787;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.08);
}

.community-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
}

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
  border: 1px solid rgba(255, 140, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(21, 17, 40, 0.82), rgba(11, 10, 22, 0.96));
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.045),
    0 0 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: community-card-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.community-card:nth-child(2) {
  animation-delay: 80ms;
}

.community-card:nth-child(3) {
  animation-delay: 160ms;
}

.community-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%);
  pointer-events: none;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, 0.42);
  box-shadow:
    inset 0 0 18px rgba(255, 140, 0, 0.035),
    0 0 22px rgba(255, 140, 0, 0.1);
}

.community-card-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.1);
}

.community-card-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.community-card-source {
  position: relative;
  z-index: 1;
  color: #ff8c00;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-card h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #f2f2f8;
  font-size: 1.3rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.community-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.5;
}

.community-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.community-card-meta span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-card-meta strong {
  color: #ececf7;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.community-card-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 140, 0, 0.56);
  background: linear-gradient(180deg, #d27a18 0%, #a94f04 100%);
  color: #fff4e6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.2),
    0 0 12px rgba(255, 140, 0, 0.12);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.community-card-action:hover,
.community-card-action:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.26),
    0 0 18px rgba(255, 140, 0, 0.22);
  outline: none;
}

.community-card-youtube .community-card-icon {
  color: #ff8c00;
  border-color: rgba(255, 140, 0, 0.32);
}

.community-card-facebook .community-card-icon {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.28);
}

.markets-terminal {
  min-height: 640px;
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 140, 0, 0.1), transparent 35%),
    radial-gradient(circle at 82% 0%, rgba(168, 85, 247, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(16, 13, 32, 0.88), rgba(10, 9, 20, 0.97));
  box-shadow:
    inset 0 0 28px rgba(168, 85, 247, 0.055),
    0 0 26px rgba(168, 85, 247, 0.08);
}

.markets-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.markets-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.markets-hero h1 {
  margin: 0;
  color: #f4f4fb;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.markets-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

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

.markets-summary div,
.markets-row {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.025);
}

.markets-summary div {
  min-height: 82px;
  padding: 12px;
}

.markets-summary span,
.markets-toolbar span,
.markets-cell-label {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.markets-summary strong {
  display: block;
  margin-top: 10px;
  color: #ececf7;
  font-size: 1rem;
  line-height: 1.2;
}

.markets-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 140, 0, 0.18);
}

.markets-toolbar strong {
  color: #ff8c00;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.markets-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(86px, 0.7fr)) 96px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  animation: community-card-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.markets-row:hover {
  border-color: rgba(255, 140, 0, 0.34);
  box-shadow:
    inset 0 0 14px rgba(255, 140, 0, 0.035),
    0 0 14px rgba(255, 140, 0, 0.08);
}

.markets-row.is-best-buy {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow:
    inset 0 0 14px rgba(34, 197, 94, 0.035),
    0 0 16px rgba(34, 197, 94, 0.08);
}

.markets-row.is-best-sell {
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow:
    inset 0 0 14px rgba(239, 68, 68, 0.035),
    0 0 16px rgba(239, 68, 68, 0.08);
}

.markets-venue {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.markets-venue-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(168, 85, 247, 0.06);
}

.markets-venue-logo svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.markets-venue-name {
  display: block;
  color: #f1f1f8;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.markets-venue-pair {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.markets-cell-value {
  display: block;
  margin-top: 4px;
  color: #ececf7;
  font-size: 0.9rem;
  font-weight: 700;
}

.markets-cell-value.is-up {
  color: #7ee787;
}

.markets-cell-value.is-down {
  color: #ff8f8f;
}

.markets-badge {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  color: #ffbd66;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.markets-badge.is-buy {
  border-color: rgba(34, 197, 94, 0.45);
  color: #7ee787;
  background: rgba(34, 197, 94, 0.06);
}

.markets-badge.is-sell {
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8f8f;
  background: rgba(239, 68, 68, 0.06);
}

.markets-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alerts-terminal {
  min-height: 640px;
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 197, 94, 0.1), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(239, 68, 68, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(16, 13, 32, 0.88), rgba(10, 9, 20, 0.97));
  box-shadow:
    inset 0 0 28px rgba(168, 85, 247, 0.055),
    0 0 26px rgba(168, 85, 247, 0.08);
}

.alerts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.alerts-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.alerts-hero h1 {
  margin: 0;
  color: #f4f4fb;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.alerts-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

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

.alerts-summary-card {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.025);
}

.alerts-summary-card span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alerts-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #ececf7;
  font-size: 1.05rem;
  line-height: 1.1;
}

.alerts-summary-card small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.alerts-summary-buy strong {
  color: #7ee787;
}

.alerts-summary-sell strong {
  color: #ff8f8f;
}

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

.alerts-column {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.03);
}

.alerts-column-buy {
  border-color: rgba(34, 197, 94, 0.22);
}

.alerts-column-sell {
  border-color: rgba(239, 68, 68, 0.22);
}

.alerts-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.alerts-column-head span {
  color: #f0f0f7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alerts-column-head strong {
  color: #ff8c00;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alerts-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 140, 0, 0.45) rgba(255, 255, 255, 0.04);
}

.alerts-detail-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  animation: community-card-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.alerts-detail-item-buy {
  border-left: 2px solid rgba(34, 197, 94, 0.72);
}

.alerts-detail-item-sell {
  border-left: 2px solid rgba(239, 68, 68, 0.72);
}

.alerts-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #a855f7;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 72%);
}

.alerts-detail-item-sell .alerts-detail-icon {
  color: #ef4444;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 72%);
}

.alerts-detail-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  filter: drop-shadow(0 0 7px currentColor);
}

.alerts-detail-copy {
  min-width: 0;
}

.alerts-detail-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.alerts-detail-type {
  color: #f0f0f7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alerts-detail-amount {
  color: #7ee787;
  font-size: 0.9rem;
  font-weight: 800;
}

.alerts-detail-item-sell .alerts-detail-amount {
  color: #ff8f8f;
}

.alerts-detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alerts-detail-time {
  color: #ff8c00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.alerts-detail-empty {
  padding: 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-terminal-view {
  min-height: 640px;
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 140, 0, 0.08), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(34, 197, 94, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(16, 13, 32, 0.88), rgba(10, 9, 20, 0.97));
  box-shadow:
    inset 0 0 30px rgba(168, 85, 247, 0.06),
    0 0 26px rgba(168, 85, 247, 0.08);
  position: relative;
  overflow: hidden;
}

.portfolio-terminal-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%);
  pointer-events: none;
}

.portfolio-wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-wallet-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-wallet-hero h1 {
  margin: 0;
  color: #f4f4fb;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.portfolio-wallet-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.portfolio-wallet-live-card,
.portfolio-wallet-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.portfolio-wallet-live-card::before,
.portfolio-wallet-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.45), rgba(168, 85, 247, 0.16), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.portfolio-wallet-live-card {
  min-height: 116px;
  padding: 18px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 140, 0, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(21, 28, 36, 0.86), rgba(13, 22, 30, 0.92));
}

.portfolio-wallet-live-card span,
.portfolio-wallet-card-head span,
.portfolio-wallet-breakdown-grid span,
.portfolio-wallet-address-bar span,
.portfolio-wallet-activity-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-wallet-live-card strong {
  display: block;
  margin-top: 10px;
  color: #f8fafc;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.06);
}

.portfolio-wallet-live-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  line-height: 1.5;
}

.portfolio-wallet-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.portfolio-wallet-card {
  min-height: 150px;
  padding: 18px;
}

.portfolio-wallet-grid > .portfolio-wallet-card-wide {
  grid-column: span 12;
}

.portfolio-wallet-grid > .portfolio-wallet-card-wide:first-child {
  grid-column: span 7;
}

.portfolio-wallet-grid > .portfolio-wallet-card-total {
  grid-column: span 5;
}

.portfolio-wallet-grid > .portfolio-wallet-card-available,
.portfolio-wallet-grid > .portfolio-wallet-card-locked,
.portfolio-wallet-grid > .portfolio-wallet-card-claimable,
.portfolio-wallet-grid > .portfolio-wallet-card-unlock {
  grid-column: span 3;
}

.portfolio-wallet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-wallet-card-head strong {
  color: #ff8c00;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-wallet-card-total {
  border-color: rgba(255, 140, 0, 0.24);
  box-shadow:
    inset 0 0 18px rgba(255, 140, 0, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.14),
    0 0 16px rgba(255, 140, 0, 0.08);
}

.portfolio-wallet-card-available {
  border-color: rgba(34, 197, 94, 0.2);
}

.portfolio-wallet-card-claimable {
  border-color: rgba(168, 85, 247, 0.22);
}

.portfolio-wallet-card-locked {
  border-color: rgba(255, 140, 0, 0.2);
}

.portfolio-wallet-card-unlock {
  border-color: rgba(255, 255, 255, 0.09);
}

.portfolio-wallet-total-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.portfolio-wallet-total-chip {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-wallet-total-chip span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-wallet-total-chip strong {
  display: block;
  margin-top: 8px;
  color: #ececf7;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.portfolio-wallet-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin-top: 12px;
}

.portfolio-wallet-input {
  text-transform: uppercase;
  height: 48px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 18px rgba(255, 140, 0, 0.02);
}

.portfolio-wallet-button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.portfolio-wallet-status {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  background: rgba(168, 85, 247, 0.05);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  line-height: 1.5;
}

.portfolio-wallet-status.is-loading {
  color: #ffbd66;
  border-color: rgba(255, 140, 0, 0.24);
  background: rgba(255, 140, 0, 0.06);
}

.portfolio-wallet-status.is-success {
  color: #7ee787;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.06);
}

.portfolio-wallet-status.is-error {
  color: #ff8f8f;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
}

.portfolio-wallet-address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-wallet-address-bar strong {
  color: #ececf7;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  word-break: break-all;
  text-align: right;
}

.portfolio-wallet-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100px;
}

.portfolio-wallet-metric strong {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.portfolio-wallet-metric span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.portfolio-wallet-card-total .portfolio-wallet-metric strong {
  font-size: 1.9rem;
}

.portfolio-wallet-card-available .portfolio-wallet-metric strong {
  color: #7ee787;
  font-size: 1.6rem;
}

.portfolio-wallet-card-claimable .portfolio-wallet-metric strong {
  color: #c084fc;
  font-size: 1.55rem;
}

.portfolio-wallet-card-locked .portfolio-wallet-metric strong {
  color: #ffbd66;
  font-size: 1.6rem;
}

.portfolio-wallet-card-unlock .portfolio-wallet-metric strong {
  font-size: 1.45rem;
}

.portfolio-wallet-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  padding-top: 16px;
  align-items: start;
}

.portfolio-wallet-bottom-grid > .portfolio-wallet-card-wide {
  grid-column: auto;
}

.portfolio-wallet-progress-shell {
  padding-top: 18px;
}

.portfolio-wallet-progress-bar {
  display: flex;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.26),
    0 0 16px rgba(255, 140, 0, 0.06);
}

.portfolio-wallet-progress-fill {
  height: 100%;
  transition: width 320ms ease;
}

.portfolio-wallet-progress-fill-available {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.portfolio-wallet-progress-fill-claimable {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}

.portfolio-wallet-progress-fill-locked {
  background: linear-gradient(90deg, #ff8c00, #ffb020);
}

.portfolio-wallet-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portfolio-wallet-breakdown-card {
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.015);
}

.portfolio-wallet-breakdown-card-available {
  border-color: rgba(34, 197, 94, 0.16);
}

.portfolio-wallet-breakdown-card-claimable {
  border-color: rgba(168, 85, 247, 0.18);
}

.portfolio-wallet-breakdown-card-locked {
  border-color: rgba(255, 140, 0, 0.18);
}

.portfolio-wallet-breakdown-grid strong {
  display: block;
  margin-top: 8px;
  color: #ececf7;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.portfolio-wallet-breakdown-grid small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portfolio-wallet-activity-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  max-height: 610px;
  overflow-y: auto;
  padding-right: 6px;
}

.portfolio-wallet-activity-list::-webkit-scrollbar {
  width: 8px;
}

.portfolio-wallet-activity-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.28);
}

.portfolio-wallet-activity-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-wallet-activity,
.portfolio-wallet-empty {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-wallet-activity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 14px 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.portfolio-wallet-activity:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.22);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.08);
}

.portfolio-wallet-activity.is-in {
  border-left: 2px solid rgba(34, 197, 94, 0.8);
  box-shadow: inset 2px 0 0 rgba(34, 197, 94, 0.18);
}

.portfolio-wallet-activity.is-out {
  border-left: 2px solid rgba(239, 68, 68, 0.8);
  box-shadow: inset 2px 0 0 rgba(239, 68, 68, 0.18);
}

.portfolio-wallet-activity.is-neutral {
  border-left: 2px solid rgba(168, 85, 247, 0.7);
  box-shadow: inset 2px 0 0 rgba(168, 85, 247, 0.16);
}

.portfolio-wallet-activity-copy strong {
  display: block;
  color: #f1f1f8;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.portfolio-wallet-activity-copy span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portfolio-wallet-empty {
  padding: 20px 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-terminal {
  min-height: 640px;
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 140, 0, 0.1), transparent 35%),
    radial-gradient(circle at 82% 0%, rgba(168, 85, 247, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(16, 13, 32, 0.88), rgba(10, 9, 20, 0.97));
  box-shadow:
    inset 0 0 28px rgba(168, 85, 247, 0.055),
    0 0 26px rgba(168, 85, 247, 0.08);
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tools-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tools-hero h1 {
  margin: 0;
  color: #f4f4fb;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.tools-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.tools-live-card,
.tool-card,
.tool-route div,
.tool-result-grid div {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.025);
}

.tools-live-card {
  padding: 14px;
}

.tools-live-card span,
.tools-live-card small,
.tool-label,
.tool-result-grid span,
.tool-route span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tools-live-card strong {
  display: block;
  margin: 10px 0 5px;
  color: #ff8c00;
  font-size: 1.35rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
}

.tools-advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 18px;
  padding-top: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
  padding: 18px;
  animation: community-card-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tool-card:nth-child(2) {
  animation-delay: 80ms;
}

.tool-card:nth-child(3) {
  animation-delay: 160ms;
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.18);
}

.tool-card-head span {
  color: #f0f0f7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-card-head strong {
  color: #ff8c00;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  background: rgba(9, 9, 18, 0.88);
  color: #f0f0f8;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.04);
}

.tool-input:focus {
  border-color: rgba(255, 140, 0, 0.48);
  box-shadow:
    inset 0 0 12px rgba(255, 140, 0, 0.06),
    0 0 14px rgba(255, 140, 0, 0.08);
}

.tool-two-inputs,
.portfolio-entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.portfolio-entry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 120px;
}

.tool-action {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 140, 0, 0.58);
  background: linear-gradient(180deg, #d27a18 0%, #a94f04 100%);
  color: #fff4e6;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.2),
    0 0 12px rgba(255, 140, 0, 0.12);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.tool-action:hover,
.tool-action:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.26),
    0 0 18px rgba(255, 140, 0, 0.22);
  outline: none;
}

.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.tool-result-grid-compact {
  margin-top: 0;
}

.tool-result-grid div,
.tool-route div {
  padding: 10px;
}

.tool-result-grid strong,
.tool-route strong {
  display: block;
  margin-top: 5px;
  color: #ececf7;
  font-size: 0.95rem;
  line-height: 1.15;
}

.tool-alert-status {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(255, 140, 0, 0.055);
  color: #ffbd66;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.tool-alert-status.is-triggered {
  border-color: rgba(34, 197, 94, 0.46);
  background: rgba(34, 197, 94, 0.08);
  color: #7ee787;
  animation: tool-alert-pulse 1s ease-in-out infinite alternate;
}

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

.tool-saved-list,
.portfolio-table,
.risk-factors {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-saved-alert,
.portfolio-row,
.risk-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.014);
}

.tool-saved-empty,
.portfolio-empty {
  padding: 10px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-saved-alert span,
.portfolio-row span,
.risk-factor span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-saved-alert strong,
.portfolio-row strong,
.risk-factor strong {
  color: #ececf7;
  font-size: 0.78rem;
}

.tool-remove {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #ff8f8f;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.risk-meter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-score {
  color: #ececf7;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.risk-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.risk-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #ff8c00, #ef4444);
  transition: width 360ms ease;
}

.risk-label {
  color: #ff8c00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-positive {
  color: #7ee787 !important;
}

.is-negative {
  color: #ff8f8f !important;
}

@keyframes tool-alert-pulse {
  from {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.06);
  }

  to {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.2);
  }
}

@keyframes community-view-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes community-card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.content-grid {
  display: grid;
  gap: 16px;
}

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

.insights-section {
  width: 100%;
}

.grid-insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Panel Blocks */
.panel {
  min-height: 142px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 20px rgba(168, 85, 247, 0.05),
    0 0 25px rgba(168, 85, 247, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel:hover {
  border-color: rgba(255, 140, 0, 0.55);
  box-shadow: var(--shadow-soft), var(--inner-shadow), var(--glow-orange);
  transform: translateY(-1px);
}

.panel-large {
  min-height: 270px;
}

.panel-wide {
  min-height: 164px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ececf2;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.panel-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 22px;
  height: 1px;
  background: rgba(255, 140, 0, 0.8);
}

.panel-tag {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.panel-primary {
  border-color: rgba(106, 13, 173, 0.24);
  box-shadow: var(--shadow-soft), var(--inner-shadow);
}

.panel-primary .panel-header {
  font-size: 0.96rem;
}

.sentiment-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}

.sentiment-gauge {
  width: 100%;
  max-width: 220px;
}

.sentiment-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sentiment-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 12;
  stroke-linecap: round;
}

.sentiment-gauge-fill {
  fill: none;
  stroke: url(#sentiment-gradient);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.24));
}

.sentiment-gauge-needle {
  stroke: #ff9d2f;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 157, 47, 0.32));
  transform-origin: 110px 112px;
  transition: transform 220ms ease;
}

.sentiment-gauge-core {
  fill: #ff8c00;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.4));
}

.sentiment-gauge-mid,
.sentiment-gauge-min,
.sentiment-gauge-max {
  fill: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
}

.sentiment-gauge-mid {
  text-anchor: middle;
}

.sentiment-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: -2px;
}

.sentiment-label {
  color: #22c55e;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.sentiment-score {
  color: #66f18b;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.14);
}

.sentiment-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  text-align: center;
  line-height: 1.35;
  max-width: 240px;
}

.sentiment-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  margin-top: 4px;
}

.sentiment-breakdown span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014));
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.015),
    0 0 12px rgba(0, 0, 0, 0.12);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.sentiment-breakdown span strong {
  margin-left: 4px;
  font-weight: 700;
}

.sentiment-breakdown span[data-tone="positive"] {
  border-color: rgba(34, 197, 94, 0.32);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.06));
  color: #8cf3a8;
  box-shadow:
    inset 0 0 12px rgba(34, 197, 94, 0.08),
    0 0 16px rgba(34, 197, 94, 0.12);
}

.sentiment-breakdown span[data-tone="neutral"] {
  border-color: rgba(255, 140, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.14), rgba(255, 140, 0, 0.05));
  color: #ffbd66;
  box-shadow:
    inset 0 0 12px rgba(255, 140, 0, 0.08),
    0 0 16px rgba(255, 140, 0, 0.1);
}

.sentiment-breakdown span[data-tone="negative"] {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.05));
  color: #ff8f8f;
  box-shadow:
    inset 0 0 12px rgba(239, 68, 68, 0.08),
    0 0 16px rgba(239, 68, 68, 0.08);
}

.panel-secondary {
  min-height: 188px;
  border-color: rgba(255, 255, 255, 0.08);
}

.panel-secondary:hover {
  border-color: rgba(255, 140, 0, 0.68);
  box-shadow: var(--shadow-soft), var(--inner-shadow), 0 0 16px rgba(255, 140, 0, 0.26);
}

.orderflow-panel {
  overflow: hidden;
}

.orderflow-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 188px;
  padding-top: 4px;
}

.orderflow-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.orderflow-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(255, 140, 0, 0.06);
  color: #ffbd66;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 280ms ease,
    border-color 280ms ease,
    background 280ms ease,
    box-shadow 280ms ease,
    transform 280ms ease;
}

.orderflow-delta {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: color 260ms ease, text-shadow 260ms ease;
}

.orderflow-window {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.orderflow-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.orderflow-side-buy {
  border-color: rgba(34, 197, 94, 0.2);
}

.orderflow-side-sell {
  border-color: rgba(239, 68, 68, 0.18);
}

.orderflow-side-label {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orderflow-side-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.orderflow-side-buy .orderflow-side-value {
  color: #7ee787;
}

.orderflow-side-sell .orderflow-side-value {
  color: #ff8f8f;
}

.orderflow-bar {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.orderflow-bar-buy {
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.7), rgba(34, 197, 94, 0.95));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.orderflow-bar-sell {
  height: 100%;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.75), rgba(239, 68, 68, 0.95));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.orderflow-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.orderflow-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.02),
    0 0 12px rgba(0,0,0,0.14);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.orderflow-feature-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orderflow-feature-value {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
}

.orderflow-panel[data-tone="buy"] .orderflow-badge {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #8cf3a8;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.08);
}

.orderflow-panel[data-tone="sell"] .orderflow-badge {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #ff9b9b;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}

.orderflow-panel[data-tone="neutral"] .orderflow-badge {
  border-color: rgba(255, 140, 0, 0.24);
  background: rgba(255, 140, 0, 0.06);
  color: #ffbd66;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.06);
}

.change-panel {
  overflow: hidden;
}

.change-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 188px;
  padding-top: 4px;
}

.change-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 280ms ease, text-shadow 280ms ease, transform 280ms ease;
}

.change-value.change-positive {
  color: #22c55e;
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.2);
}

.change-value.change-negative {
  color: #ef4444;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.18);
}

.change-value.change-neutral {
  color: #ff9d2f;
  text-shadow: 0 0 14px rgba(255, 157, 47, 0.18);
}

.change-delta {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.06em;
}

.change-context {
  max-width: 170px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.change-chart {
  width: 100%;
  margin-top: 2px;
  padding: 2px 0 4px;
}

.change-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.change-chart-area {
  fill: url(#change24-fill-positive);
  transition: fill 320ms ease, opacity 320ms ease;
  opacity: 0.95;
}

.change-chart-line {
  fill: none;
  stroke: #8f2dff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(143, 45, 255, 0.28));
  transition: stroke 320ms ease, filter 320ms ease;
}

.change-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.change-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(0, 0, 0, 0.14);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.change-feature-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.change-feature-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.change-panel[data-tone="positive"] .change-feature {
  border-color: rgba(34, 197, 94, 0.16);
  box-shadow:
    inset 0 0 10px rgba(34, 197, 94, 0.03),
    0 0 14px rgba(34, 197, 94, 0.06);
}

.change-panel[data-tone="negative"] .change-feature {
  border-color: rgba(239, 68, 68, 0.16);
  box-shadow:
    inset 0 0 10px rgba(239, 68, 68, 0.03),
    0 0 14px rgba(239, 68, 68, 0.06);
}

.change-panel[data-tone="neutral"] .change-feature {
  border-color: rgba(255, 140, 0, 0.18);
  box-shadow:
    inset 0 0 10px rgba(255, 140, 0, 0.03),
    0 0 14px rgba(255, 140, 0, 0.06);
}

.panel-tertiary {
  min-height: 124px;
  border-color: rgba(255, 255, 255, 0.06);
}

.panel-tertiary:hover {
  box-shadow: var(--shadow-soft), var(--inner-shadow), 0 0 10px rgba(255, 140, 0, 0.14);
}

.high24-panel {
  overflow: hidden;
}

.high24-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 136px;
  padding-top: 2px;
}

.high24-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.high24-main {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.14);
  transition: color 280ms ease, text-shadow 280ms ease, transform 280ms ease;
}

.high24-subrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.high24-sub-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.high24-sub-value {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.high24-bar {
  position: relative;
  padding: 6px 0 2px;
}

.high24-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.7), rgba(255, 140, 0, 0.7), rgba(34, 197, 94, 0.78));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 12px rgba(168, 85, 247, 0.08);
}

.high24-range-position {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 12px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.9);
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.28),
    inset 0 0 8px rgba(168, 85, 247, 0.1);
  transform: translateX(-50%);
  transition: left 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease, border-color 280ms ease;
}

.high24-context {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.high24-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.high24-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(0, 0, 0, 0.14);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.high24-feature-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.high24-feature-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
}

.panel-important {
  border-color: rgba(255, 140, 0, 0.28);
}

.cross-sentiment-widget,
.market-compare-widget,
.pi-calculator-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding-top: 6px;
}

.cross-sentiment-head,
.market-compare-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cross-sentiment-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  background: rgba(255, 140, 0, 0.06);
  color: #ffbd66;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cross-sentiment-score,
.market-compare-value {
  color: #ececf7;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.cross-sentiment-copy,
.market-compare-label,
.pi-calculator-label,
.pi-calculator-price-label,
.pi-calculator-item-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.cross-sentiment-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.cross-sentiment-bar-fill {
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444 0%, #ff8c00 48%, #22c55e 100%);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cross-sentiment-grid,
.pi-calculator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cross-sentiment-item,
.pi-calculator-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.02),
    0 0 12px rgba(0,0,0,0.12);
}

.cross-sentiment-label,
.market-compare-row span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cross-sentiment-value,
.market-compare-row strong,
.pi-calculator-price-value,
.pi-calculator-item-value {
  color: #ececf7;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.market-compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.market-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.pi-calculator-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 140, 0, 0.26);
  background: rgba(9, 9, 18, 0.88);
  color: #f0f0f8;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.04);
}

.pi-calculator-input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow:
    inset 0 0 12px rgba(168, 85, 247, 0.08),
    0 0 14px rgba(168, 85, 247, 0.08);
}

.pi-calculator-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Exchanges Section */
.exchanges-section {
  padding: 12px 16px 14px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 4px;
  background: rgba(15, 15, 30, 0.45);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.04),
    0 0 18px rgba(168, 85, 247, 0.06);
}

.exchanges-center-section,
.chart-terminal,
.stats-section {
  width: 100%;
  margin: 0;
}

.exchanges-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.exchanges-header h2 {
  margin: 0;
  color: #f0f0f3;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  color: #ff8c00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.55));
}

.pi-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.exchanges-link {
  color: #b8b8c4;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.exchanges-link:hover,
.exchanges-link:focus-visible {
  color: var(--accent-orange);
  outline: none;
}

.exchange-row {
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-top: 6px;
  padding-bottom: 10px;
  margin-top: -6px;
  scrollbar-width: none;
  width: 100%;
  position: relative;
}

.exchange-row::-webkit-scrollbar {
  display: none;
}

.exchange-track {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

/* Exchange Card */
.exchange-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
  min-height: 220px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(18, 14, 36, 0.92) 0%, rgba(15, 12, 30, 0.94) 100%);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.05),
    0 0 18px rgba(168, 85, 247, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.exchange-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.exchange-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.4),
    inset 0 0 18px rgba(168, 85, 247, 0.06);
}

.exchange-card.is-best-buy {
  border: 1px solid rgba(34, 197, 94, 0.75);
  box-shadow:
    0 0 10px rgba(34, 197, 94, 0.5),
    0 0 30px rgba(34, 197, 94, 0.22);
}

.exchange-card.is-best-sell {
  border: 1px solid rgba(239, 68, 68, 0.75);
  box-shadow:
    0 0 10px rgba(239, 68, 68, 0.45),
    0 0 28px rgba(239, 68, 68, 0.2);
}

.exchange-card.is-best-buy.is-best-sell {
  box-shadow:
    0 0 10px rgba(34, 197, 94, 0.4),
    0 0 20px rgba(239, 68, 68, 0.22);
}

.exchange-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.exchange-badge {
  padding: 3px 7px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.exchange-badge-buy {
  border: 1px solid rgba(34, 197, 94, 0.7);
  background: linear-gradient(180deg, rgba(21, 94, 55, 0.96) 0%, rgba(20, 83, 45, 0.92) 100%);
  color: #dcfce7;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.22);
}

.exchange-badge-sell {
  border: 1px solid rgba(239, 68, 68, 0.72);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.96) 0%, rgba(153, 27, 27, 0.92) 100%);
  color: #fee2e2;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.22);
}

/* Exchange Card Top Row */
.exchange-top {
  margin-bottom: 12px;
  width: 100%;
}

.exchange-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.exchange-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exchange-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.exchange-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}

.exchange-logo svg .logo-cutout {
  fill: #11121d;
  stroke: none;
}

.exchange-logo svg .logo-accent {
  fill: #22c55e;
  stroke: none;
}

.exchange-logo-okx svg {
  fill: #f4f4f8;
}

.exchange-logo-bitget svg {
  fill: #25a7ff;
}

.exchange-logo-gate svg {
  fill: #4c7cff;
}

.exchange-logo-gate svg .logo-accent {
  fill: #22c55e;
}

.exchange-logo-mexc svg {
  fill: #25d6c6;
}

.exchange-logo-kraken svg {
  fill: #a855f7;
}

.exchange-logo-bitmart svg {
  fill: #22c55e;
}

.exchange-logo-lbank svg {
  fill: #22c55e;
}

.exchange-logo-lbank svg .logo-accent {
  fill: #7ee787;
}

.exchange-logo-xt svg {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exchange-logo-coinw svg {
  fill: #3b82f6;
}

.exchange-logo-pionex svg {
  fill: #f4c542;
}

.exchange-meta {
  min-width: 0;
}

.exchange-meta h3 {
  margin: 0 0 2px;
  color: #ededf4;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.exchange-meta span {
  color: var(--text-muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Exchange Card Middle */
.exchange-middle {
  margin-bottom: 10px;
  text-align: center;
}

.exchange-price-block {
  text-align: center;
  width: 100%;
}

.exchange-price {
  color: #f2f2f7;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.04);
  transition: color 260ms ease, text-shadow 260ms ease;
}

.exchange-price.price-up {
  color: #d8ffe8;
  text-shadow:
    0 0 10px rgba(34, 197, 94, 0.16),
    0 0 16px rgba(168, 85, 247, 0.08);
}

.exchange-price.price-down {
  color: #ffe3f5;
  text-shadow:
    0 0 10px rgba(244, 114, 182, 0.14),
    0 0 16px rgba(168, 85, 247, 0.08);
}

.exchange-price.price-flat {
  color: #f2f2f7;
}

.exchange-micro-change {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 260ms ease, text-shadow 260ms ease;
}

.exchange-micro-change.micro-up {
  color: #7ee787;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.16);
}

.exchange-micro-change.micro-down {
  color: #ff98c4;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.14);
}

.exchange-micro-change.micro-flat {
  color: rgba(255, 255, 255, 0.54);
}

.exchange-volume {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 14px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.exchange-volume-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exchange-volume-value {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

.exchange-volume-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: 2px;
}

.exchange-volume-bars span {
  width: 3px;
  height: calc(10px * var(--bar-scale, 0.5));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.95), rgba(168, 85, 247, 0.88));
  opacity: 0.9;
}

/* Exchange Chart */
.exchange-chart {
  width: 100%;
  margin-top: auto;
  margin-bottom: 8px;
  height: 38px;
  padding: 2px 2px 0;
  position: relative;
}

.exchange-chart::before {
  content: "";
  position: absolute;
  inset: 2px 2px 2px 2px;
  background:
    linear-gradient(to bottom, transparent 32%, rgba(255, 255, 255, 0.05) 33%, transparent 34%),
    linear-gradient(to bottom, transparent 66%, rgba(255, 255, 255, 0.04) 67%, transparent 68%);
  pointer-events: none;
  opacity: 0.7;
}

.exchange-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.exchange-chart path.chart-area {
  stroke: none;
  opacity: 0.92;
  transition: d 420ms ease, opacity 320ms ease, fill 320ms ease, filter 320ms ease;
  filter: drop-shadow(0 8px 14px rgba(138, 24, 255, 0.08));
}

.exchange-chart path {
  fill: none;
  stroke: var(--exchange-chart-line, #9d2fff);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 5px var(--exchange-chart-glow, rgba(168, 85, 247, 0.55)))
    drop-shadow(0 0 10px rgba(138, 24, 255, 0.16));
  transition: d 420ms ease, stroke 320ms ease, filter 320ms ease, opacity 320ms ease;
}

.exchange-chart .chart-end-glow {
  fill: var(--exchange-chart-area, rgba(157, 47, 255, 0.22));
  filter: drop-shadow(0 0 8px var(--exchange-chart-glow, rgba(157, 47, 255, 0.38)));
  transition: cx 420ms ease, cy 420ms ease, r 320ms ease, opacity 320ms ease;
}

.exchange-chart .chart-end-dot {
  fill: var(--exchange-chart-dot, #e7d4ff);
  stroke: var(--exchange-chart-line, #9d2fff);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px var(--exchange-chart-glow, rgba(157, 47, 255, 0.48)));
  transform-origin: center;
  transition: cx 420ms ease, cy 420ms ease, opacity 320ms ease, transform 220ms ease;
}

.exchange-card:hover .exchange-chart path:not(.chart-area) {
  stroke-width: 2.45;
  filter:
    drop-shadow(0 0 7px var(--exchange-chart-glow, rgba(168, 85, 247, 0.65)))
    drop-shadow(0 0 14px rgba(138, 24, 255, 0.18));
}

.exchange-card:hover .exchange-chart .chart-end-dot {
  transform: scale(1.12);
}

.exchange-card:hover .exchange-chart .chart-end-glow {
  opacity: 1;
}

.exchange-card.is-best-buy .exchange-chart path:not(.chart-area),
.exchange-card.is-best-sell .exchange-chart path:not(.chart-area) {
  stroke-width: 2.5;
}

.exchange-card.is-best-buy .exchange-chart .chart-end-dot,
.exchange-card.is-best-sell .exchange-chart .chart-end-dot {
  transform: scale(1.16);
}

.exchange-card.is-best-buy .exchange-chart path.chart-area {
  opacity: 1;
  filter: drop-shadow(0 10px 18px rgba(34, 197, 94, 0.08));
}

.exchange-card.is-best-sell .exchange-chart path.chart-area {
  opacity: 1;
  filter: drop-shadow(0 10px 18px rgba(239, 68, 68, 0.08));
}

.exchange-chart svg.chart-live path:not(.chart-area) {
  animation: exchange-chart-pulse 640ms ease;
}

.exchange-chart svg.chart-live path.chart-area {
  animation: exchange-chart-area-pulse 640ms ease;
}

.exchange-chart svg.chart-live .chart-end-glow,
.exchange-chart svg.chart-live .chart-end-dot {
  animation: exchange-chart-marker-pulse 640ms ease;
}

@keyframes exchange-chart-pulse {
  0% {
    opacity: 0.48;
    stroke-width: 1.6;
  }

  55% {
    opacity: 1;
    stroke-width: 2.8;
  }

  100% {
    opacity: 1;
    stroke-width: 2.2;
  }
}

@keyframes exchange-chart-area-pulse {
  0% {
    opacity: 0.34;
    transform: translateY(1px);
  }

  55% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0.92;
    transform: translateY(0);
  }
}

@keyframes exchange-chart-marker-pulse {
  0% {
    opacity: 0.35;
    transform: scale(0.88);
  }

  55% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Exchange Card Button */
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 140, 0, 0.78);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffbb59 0%, #ff9622 32%, #ff7f00 58%, #c85c00 100%);
  color: #120d07;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.28),
    0 0 8px rgba(255, 140, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(102, 43, 0, 0.35);
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  filter: brightness(1.1);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(255, 140, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(102, 43, 0, 0.38);
  transform: scale(1.015);
  outline: none;
}

.exchange-card button {
  width: 100%;
  background: linear-gradient(to bottom, #bc6506, #8f4300);
  color: #fff0d8;
  font-weight: 600;
  border: 1px solid rgba(255, 140, 0, 0.55);
  border-radius: 4px;
  padding: 9px 0;
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.22),
    inset 0 1px 0 rgba(255, 196, 122, 0.25);
  margin-top: 10px;
  transition: all 0.2s ease;
}

.exchange-card button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(255, 140, 0, 0.55),
    0 0 32px rgba(255, 140, 0, 0.22);
}

/* Center Chart Terminal */
.chart-terminal {
  padding-bottom: 12px;
}

.chart-terminal-body {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  min-height: 210px;
  padding: 10px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background:
    linear-gradient(180deg, rgba(18, 14, 35, 0.96) 0%, rgba(12, 10, 24, 0.99) 100%);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 24px rgba(168, 85, 247, 0.05),
    inset 0 -30px 50px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(168, 85, 247, 0.08);
}

.tradingview-shell {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 10, 24, 0.98) 0%, rgba(9, 8, 18, 1) 100%);
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.04),
    0 0 18px rgba(168, 85, 247, 0.06);
}

.chart-tv-container {
  position: relative;
  width: 100%;
  min-height: 560px;
}

.tradingview-chart-host {
  width: 100%;
  height: 560px;
}

.tradingview-widget-copyright {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.tradingview-widget-copyright a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
}

.tradingview-widget-copyright a:hover {
  color: rgba(255, 140, 0, 0.8);
}

/* Footer Disclaimer */
.site-disclaimer {
  padding: 8px 20px 26px;
}

.site-disclaimer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 140, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 13, 30, 0.82), rgba(9, 9, 18, 0.92));
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.04),
    0 0 18px rgba(168, 85, 247, 0.06);
  text-align: center;
}

.site-disclaimer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(229, 229, 229, 0.46);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.site-disclaimer-meta-inline strong {
  color: #f4f1ff;
  font-weight: 700;
}

.site-disclaimer-meta-separator {
  color: rgba(255, 140, 0, 0.4);
}

.site-disclaimer-meta-link {
  color: rgba(255, 180, 90, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-disclaimer-meta-link:hover,
.site-disclaimer-meta-link:focus-visible {
  color: #ffd08a;
  outline: none;
}

.site-disclaimer-title {
  margin-top: 0;
  color: #ff8c00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-disclaimer p {
  max-width: 1280px;
  margin: 0 auto 6px;
  color: rgba(229, 229, 229, 0.62);
  font-size: 0.72rem;
  line-height: 1.42;
  letter-spacing: 0.03em;
}

.site-disclaimer p:last-child {
  margin-bottom: 0;
}

/* Responsive Layout */
@media (max-width: 0px) {
  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
  }

  .sidebar-left::after,
  .sidebar-right::before {
    display: none;
  }

  .center-shell {
    padding: 20px;
  }

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

  .community-card-grid {
    grid-template-columns: 1fr;
  }

  .markets-hero {
    grid-template-columns: 1fr;
  }

  .alerts-hero {
    grid-template-columns: 1fr;
  }

  .alerts-summary-grid,
  .alerts-columns,
  .tools-hero,
  .tools-grid,
  .tools-advanced-grid {
    grid-template-columns: 1fr;
  }

  .markets-grid {
    grid-template-columns: 1fr;
  }

  .markets-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(86px, 0.5fr));
  }

  .markets-badge {
    justify-self: start;
  }

  .tradingview-shell,
  .chart-tv-container,
  .tradingview-chart-host {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 0px) {
  html,
  body {
    min-width: 1440px;
    overflow-x: auto;
  }

  .app-shell {
    min-width: 1440px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 78px;
    padding: 14px 30px;
    margin: 0;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
    gap: 16px;
    margin-left: 20px;
    margin-right: 60px;
  }

  .logo-glow {
    width: 68px;
    height: 68px;
  }

  .logo-glow::after {
    width: 68px;
    height: 68px;
  }

  .pi-logo {
    width: 52px;
    height: 52px;
  }

  .pi-title {
    font-size: 22px;
  }

  .pi-subtitle {
    max-width: 100%;
    font-size: 10px;
  }

  .nav-wrapper {
    width: auto;
    margin-top: 4px;
    margin-left: 180px;
    margin-right: auto;
    overflow: visible;
  }

  .nav-container {
    min-width: auto;
    padding: 10px 20px;
    border-radius: 12px;
  }

  .topnav {
    width: auto;
    gap: 36px;
  }

  .topnav .nav-item {
    padding: 8px 14px;
  }

  .topnav .nav-item span {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .market-ticker-shell {
    padding: 8px 30px 0;
  }

  .market-ticker-bar {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 46px;
  }

  .market-ticker-label {
    display: flex;
  }

  .dashboard-layout {
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 20px;
    padding: 20px;
  }

  .main-content,
  .sidebar-left,
  .sidebar-right {
    order: initial;
    display: flex;
  }

  .sidebar-right {
    grid-column: auto;
  }

  .center-shell {
    padding: 24px;
    gap: 24px;
  }

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

  .grid-insights,
  .community-card-grid,
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .markets-hero,
  .alerts-hero {
    grid-template-columns: minmax(0, 1fr) 520px;
  }

  .tools-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .tools-advanced-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  }

  .exchange-card {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    min-height: 220px;
  }

  .tradingview-shell,
  .chart-tv-container,
  .tradingview-chart-host {
    min-height: 560px;
    height: 560px;
  }
}

@media (max-width: 719px) {
  /* Mobile devices intentionally use the full desktop terminal layout via the fixed viewport. */
}

@media (max-width: 0px) {
  .dashboard-layout {
    padding: 8px;
  }

  .market-ticker-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .center-shell {
    padding: 10px;
  }

  .panel {
    min-height: auto;
    padding: 10px;
  }

  .exchange-card {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
  }

  .tool-result-grid,
  .cross-sentiment-grid,
  .pi-calculator-results {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-content: flex-start;
  }

  .pi-subtitle {
    max-width: 220px;
  }

  .market-ticker-symbol,
  .market-ticker-price,
  .market-ticker-change {
    font-size: 0.64rem;
  }

  .community-hero h1,
  .markets-hero h1,
  .alerts-hero h1,
  .tools-hero h1 {
    font-size: 1.34rem;
  }

  .markets-summary div,
  .alerts-summary-card,
  .tools-live-card {
    min-height: auto;
  }

  .tool-input {
    height: 38px;
  }

  .tradingview-shell,
  .chart-tv-container,
  .tradingview-chart-host,
  .chart-terminal-body {
    min-height: 320px;
    height: 320px;
  }
}
