:root {
  color-scheme: dark;
  --bg: #020711;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.11);
  --text: rgba(248, 251, 255, 0.96);
  --muted: rgba(220, 232, 255, 0.62);
  --dim: rgba(220, 232, 255, 0.42);
  --gold: #f8cc5e;
  --gold-2: #c9922e;
  --blue: #00aaff;
  --green: #41f39b;
  --red: #ff6f6f;
  --font-ui: "Inter", "Manrope", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", "Manrope", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0, rgba(0, 170, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(248, 204, 94, 0.12), transparent 28rem),
    linear-gradient(180deg, #020711, #050b18 54%, #020711);
  color: var(--text);
  font-family: var(--font-ui);
  font-feature-settings:
    "liga" 1,
    "kern" 1,
    "calt" 1;
  text-rendering: geometricPrecision;
}

::selection {
  background: rgba(248, 204, 94, 0.32);
  color: #fff;
}

.auth-shell,
.standalone-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.standalone-shell {
  align-content: start;
  place-items: stretch;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 28px;
}

.standalone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.auth-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0, rgba(0, 170, 255, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  padding: 28px;
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-card > .language-switcher {
  position: absolute;
  top: 28px;
  right: 28px;
}

.auth-card h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 6vw, 52px);
}

.auth-card p,
.auth-note {
  color: var(--muted);
  line-height: 1.6;
}

.auth-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.auth-note a {
  color: var(--gold);
  font-weight: 820;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.submit-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2) 48%, #ffe08a);
  color: #05070d;
  font-weight: 820;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(248, 204, 94, 0.34);
  background:
    radial-gradient(circle at 12% 0, rgba(248, 204, 94, 0.14), transparent 16rem),
    rgba(255, 255, 255, 0.055);
}

.price-card .price,
.price {
  margin: 16px 0;
  color: #fff;
  font-size: 34px;
  font-weight: 860;
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

.terminal-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(2, 7, 17, 0.82);
  padding: 24px;
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 170, 255, 0.45));
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  color: #fff;
  font-size: 18px;
  font-weight: 860;
}

.brand b {
  color: var(--gold);
}

.brand small {
  margin-top: 5px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.side-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--muted);
  font-weight: 760;
}

.side-nav a:hover,
.side-nav .active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.plan-card {
  border: 1px solid rgba(248, 204, 94, 0.2);
  border-radius: 8px;
  margin-top: auto;
  background:
    radial-gradient(circle at 20% 0, rgba(248, 204, 94, 0.16), transparent 14rem),
    rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.plan-card span,
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.plan-card p,
.event-list p,
.risk-lines p,
.status-list span,
.chart-legend,
.panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1;
}

h2 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 820;
}

h1,
h2,
h3,
.brand strong,
.price,
.metric-grid strong,
.summary-card strong,
.asset,
.risk-score {
  font-family: var(--font-display);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  position: relative;
  z-index: 5;
}

.language-toggle {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 2px;
  color: #f5e6c8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
}

.language-toggle:hover,
.language-switcher.is-open .language-toggle {
  background: transparent;
  box-shadow: none;
}

.language-toggle i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.language-switcher.is-open .language-toggle i {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 246px;
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid rgba(248, 204, 94, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0, rgba(0, 170, 255, 0.12), transparent 12rem),
    rgba(5, 10, 18, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
  backdrop-filter: blur(16px);
}

.language-switcher.is-open .language-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  display: grid;
  min-height: 40px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  color: rgba(245, 248, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  outline: 0;
  background: rgba(248, 204, 94, 0.08);
  color: #d8b45a;
}

.language-option.is-active {
  color: #d8b45a;
  font-weight: 820;
}

.language-flag {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.language-toggle b {
  display: inline-flex;
  min-width: 18px;
  align-items: center;
  justify-content: center;
}

.language-label {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-code {
  color: rgba(220, 232, 255, 0.48);
  font-size: 11px;
  font-weight: 820;
}

.flag-gb {
  background-image: url("../assets/flags/gb.svg");
}

.flag-ru {
  background-image: url("../assets/flags/ru.svg");
}

.flag-ua {
  background-image: url("../assets/flags/ua.svg");
}

.flag-cz {
  background-image: url("../assets/flags/cz.svg");
}

.flag-es {
  background-image: url("../assets/flags/es.svg");
}

.flag-it {
  background-image: url("../assets/flags/it.svg");
}

.flag-de {
  background-image: url("../assets/flags/de.svg");
}

.flag-pt {
  background-image: url("../assets/flags/pt.svg");
}

.flag-vi {
  background-image: url("../assets/flags/vi.svg");
}

.flag-fr {
  background-image: url("../assets/flags/fr.svg");
}

.live-dot,
.home-link,
.filter-row span,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.live-dot {
  gap: 8px;
  border: 1px solid rgba(65, 243, 155, 0.18);
  background: rgba(65, 243, 155, 0.08);
  padding: 10px 12px;
  color: #afffd7;
}

.live-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(65, 243, 155, 0.65);
}

.home-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 12px;
  color: #fff;
}

.metric-grid,
.grid-two,
.grid-three {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}

.metric-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.metric-grid article {
  padding: 20px;
}

.metric-grid span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 860;
  line-height: 1;
}

.metric-grid em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.grid-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-bottom: 16px;
}

.grid-three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  width: fit-content;
  padding: 7px 10px;
}

.badge.good {
  border: 1px solid rgba(65, 243, 155, 0.18);
  background: rgba(65, 243, 155, 0.1);
  color: #afffd7;
}

.badge.warn {
  border: 1px solid rgba(248, 204, 94, 0.2);
  background: rgba(248, 204, 94, 0.12);
  color: #ffe08a;
}

.badge.danger {
  border: 1px solid rgba(255, 111, 111, 0.2);
  background: rgba(255, 111, 111, 0.1);
  color: #ffc2c2;
}

.convergence-chart {
  display: flex;
  height: 260px;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  margin-top: 22px;
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(65, 243, 155, 0.07) 64% 100%),
    rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.convergence-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue), rgba(248, 204, 94, 0.78));
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.2);
}

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

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-legend .net {
  background: var(--blue);
}

.chart-legend .gross {
  background: var(--gold);
}

.chart-legend .zone {
  background: var(--green);
}

.risk-score {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 204, 94, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  font-weight: 860;
}

.risk-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.risk-lines p {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  margin: 0;
  background: rgba(0, 0, 0, 0.16);
  padding: 13px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 10px;
  color: var(--muted);
}

.control-panel {
  margin-bottom: 16px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 0.8fr)) minmax(180px, 0.7fr);
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}

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

.field span,
.switch span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(0, 0, 0, 0.18);
  padding: 0 13px;
}

.field input:focus,
.field select:focus,
.reset-button:focus-visible,
.mini-link:focus-visible,
.home-link:focus-visible {
  border-color: rgba(248, 204, 94, 0.44);
  box-shadow: 0 0 0 3px rgba(248, 204, 94, 0.12);
}

.switch {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0 13px;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.reset-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 820;
}

.scanner-table {
  display: grid;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  margin-top: 18px;
}

.scanner-row {
  display: grid;
  width: 100%;
  min-width: 980px;
  grid-template-columns: 1fr 0.85fr 0.85fr 0.65fr 0.65fr 0.8fr 0.58fr 0.82fr 1.05fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding: 14px 16px;
}

.scanner-row.large {
  min-width: 1460px;
  grid-template-columns: 0.85fr 0.95fr 0.75fr 0.75fr 0.58fr 0.58fr 0.65fr 0.6fr 0.72fr 0.7fr 0.58fr 0.72fr 0.72fr 0.82fr 1fr 0.58fr;
}

.scanner-row:last-child {
  border-bottom: 0;
}

.scanner-head {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scanner-row strong {
  color: #fff;
}

.scanner-row span {
  color: var(--muted);
  font-size: 14px;
}

.scanner-row.is-hidden,
.empty-state.is-hidden {
  display: none;
}

.mini-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 204, 94, 0.2);
  border-radius: 999px;
  background: rgba(248, 204, 94, 0.12);
  color: #ffe08a;
  font-size: 12px;
  font-weight: 820;
}

.empty-state {
  display: grid;
  justify-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin-top: 18px;
  padding: 32px;
  text-align: center;
}

.empty-state strong {
  font-size: 20px;
}

.empty-state p {
  max-width: 480px;
  margin: 8px 0 0;
}

.state-preview {
  margin-top: 16px;
}

.event-filters {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr) minmax(180px, 0.7fr);
}

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

.listing-card,
.announcement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  padding: 22px;
}

.listing-card.is-hidden {
  display: none;
}

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

.asset {
  color: #fff;
  font-size: 28px;
  font-weight: 860;
}

.event-type-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-type-tag.listing {
  border-color: rgba(65, 243, 155, 0.2);
  background: rgba(65, 243, 155, 0.075);
  color: rgba(180, 255, 220, 0.92);
}

.event-type-tag.delisting {
  border-color: rgba(255, 111, 111, 0.24);
  background: rgba(255, 111, 111, 0.09);
  color: rgba(255, 194, 194, 0.94);
}

.event-type-tag.flow,
.event-type-tag.maintenance {
  border-color: rgba(248, 204, 94, 0.24);
  background: rgba(248, 204, 94, 0.09);
  color: rgba(255, 231, 167, 0.94);
}

.listing-card h2,
.announcement-card h2 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.event-link {
  color: inherit;
  text-decoration: none;
}

.event-link:hover {
  color: #fff;
}

.listing-card p,
.announcement-card p {
  margin-bottom: 0;
}

.listing-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}

.listing-card dl div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.listing-card dt {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.listing-card dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}

.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.feed-list {
  display: grid;
  gap: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-line span {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.related-panel {
  position: sticky;
  top: 24px;
}

.positive {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.event-list,
.status-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.related-panel .status-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.event-list p {
  margin: 0;
}

.status-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding-bottom: 10px;
}

.status-list em {
  font-style: normal;
  font-weight: 820;
}

.status-list .ok {
  color: var(--green);
}

.status-list .watch {
  color: var(--gold);
}

.status-list .danger {
  color: var(--red);
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.summary-card span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 860;
  line-height: 1;
}

.summary-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.verdict-card {
  border-color: rgba(65, 243, 155, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(65, 243, 155, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.045);
}

.detail-chart {
  height: 300px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.breakdown-grid span {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 13px;
}

.breakdown-grid b {
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
}

.breakdown-grid em {
  color: #fff;
  font-style: normal;
  font-weight: 820;
}

.order-book {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  margin-top: 18px;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding: 12px 14px;
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row.head {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-row span {
  color: var(--muted);
}

.order-row b {
  color: #fff;
}

.detail-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-left: 18px;
}

.detail-timeline::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 3px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--gold));
  content: "";
}

.detail-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.verdict-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border-color: rgba(65, 243, 155, 0.22);
}

.verdict-panel p {
  max-width: 760px;
  margin: 12px 0 0;
}

@keyframes cwFadeUp {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cwBarGrow {
  from {
    opacity: 0.35;
    transform: scaleY(0.18);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes cwLivePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(65, 243, 155, 0.5);
  }

  50% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 8px rgba(65, 243, 155, 0.035),
      0 0 24px rgba(65, 243, 155, 0.78);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-card,
  .standalone-top,
  .billing-grid .price-card,
  .sidebar > *,
  .workspace > *,
  .metric-grid article,
  .panel,
  .listing-card,
  .announcement-card,
  .summary-card {
    animation: cwFadeUp 720ms var(--ease-out) both;
  }

  .sidebar > *:nth-child(2),
  .workspace > *:nth-child(2),
  .metric-grid article:nth-child(2),
  .billing-grid .price-card:nth-child(2),
  .summary-card:nth-child(2) {
    animation-delay: 70ms;
  }

  .sidebar > *:nth-child(3),
  .workspace > *:nth-child(3),
  .metric-grid article:nth-child(3),
  .billing-grid .price-card:nth-child(3),
  .summary-card:nth-child(3) {
    animation-delay: 140ms;
  }

  .workspace > *:nth-child(4),
  .metric-grid article:nth-child(4),
  .billing-grid .price-card:nth-child(4),
  .summary-card:nth-child(4) {
    animation-delay: 210ms;
  }

  :is(
      .panel,
      .metric-grid article,
      .listing-card,
      .announcement-card,
      .summary-card,
      .price-card,
      .risk-lines p,
      .listing-card dl div,
      .breakdown-grid span
    ) {
    transition:
      transform 220ms var(--ease-out),
      border-color 220ms ease,
      background 220ms ease,
      box-shadow 220ms ease,
      filter 220ms ease;
  }

  :is(
      .panel,
      .metric-grid article,
      .listing-card,
      .announcement-card,
      .summary-card,
      .price-card,
      .risk-lines p,
      .listing-card dl div,
      .breakdown-grid span
    ):hover {
    border-color: rgba(248, 204, 94, 0.2);
    box-shadow:
      0 26px 90px rgba(0, 0, 0, 0.28),
      0 0 32px rgba(0, 170, 255, 0.075);
    transform: translateY(-2px);
  }

  .scanner-row {
    transition:
      background 180ms ease,
      border-color 180ms ease,
      transform 180ms var(--ease-out);
  }

  .scanner-row:not(.scanner-head):hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
  }

  .convergence-chart span {
    transform-origin: bottom;
    animation: cwBarGrow 900ms var(--ease-out) both;
  }

  .convergence-chart span:nth-child(2n) {
    animation-delay: 70ms;
  }

  .convergence-chart span:nth-child(3n) {
    animation-delay: 140ms;
  }

  .live-dot i {
    animation: cwLivePulse 2.8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .terminal-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan-card {
    margin-top: 22px;
  }

  .metric-grid,
  .grid-two,
  .grid-three,
  .detail-summary-grid,
  .listing-grid,
  .announcement-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .announcement-layout {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }

  .chart-panel,
  #opportunities,
  #scanner {
    overflow-x: auto;
  }

  .scanner-table {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .top-actions,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .grid-two,
  .grid-three,
  .detail-summary-grid,
  .filter-controls,
  .event-filters,
  .listing-grid,
  .announcement-layout,
  .billing-grid,
  .breakdown-grid {
    grid-template-columns: 1fr;
  }

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

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .side-nav a {
    padding: 11px 10px;
    font-size: 14px;
  }

  .plan-card {
    margin-top: 14px;
    padding: 14px;
  }

  .metric-grid strong {
    font-size: 28px;
  }

  .convergence-chart {
    height: 190px;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .scanner-row.large {
    min-width: 1380px;
  }

  .verdict-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
