:root {
  --color-primary: #2667ff;
  --color-primary-strong: #184fd8;
  --color-secondary: #7857ff;
  --color-accent: #18bfe3;
  --color-positive: #0b8060;
  --color-positive-soft: #e7f8f2;
  --color-negative: #c23d58;
  --color-negative-soft: #fff0f3;
  --color-background: #f4f7fc;
  --color-surface: #ffffff;
  --color-surface-raised: #fbfcff;
  --color-text: #101a35;
  --color-text-muted: #68728b;
  --color-border: #dfe5f1;
  --color-border-strong: #cbd4e5;
  --color-glow: rgba(38, 103, 255, 0.18);
  --shadow-card: 0 12px 32px rgba(19, 39, 84, 0.07), 0 2px 8px rgba(19, 39, 84, 0.04);
  --shadow-hover: 0 18px 42px rgba(19, 39, 84, 0.12), 0 4px 12px rgba(19, 39, 84, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shell: 1320px;
  --header-height: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(24, 191, 227, 0.09), transparent 25rem),
    radial-gradient(circle at 86% 4%, rgba(120, 87, 255, 0.08), transparent 24rem),
    var(--color-background);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.sr-only {
  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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-150%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(38, 103, 255, 0.38);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(205, 215, 233, 0.8);
  background: rgba(250, 252, 255, 0.88);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.header-main {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 145px;
  height: auto;
}

.desktop-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 11px;
  color: #4d5871;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text);
  background: #edf2fb;
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-link[aria-current="page"] {
  color: var(--color-primary-strong);
  background: #eaf0ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  color: #48536d;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    border-color 160ms ease,
    background-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--color-border-strong);
  background: #fff;
}

.icon-button:active {
  transform: scale(0.94);
}

.network-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: #4d5871;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.network-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-positive);
  box-shadow: 0 0 0 4px rgba(21, 154, 115, 0.12);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 170ms var(--ease),
    box-shadow 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #3358e7 58%, var(--color-secondary));
  box-shadow: 0 8px 20px rgba(38, 103, 255, 0.2);
}

.button--primary:hover {
  box-shadow: 0 11px 26px rgba(38, 103, 255, 0.28);
}

.button--secondary {
  border-color: #cbd7f3;
  color: var(--color-primary-strong);
  background: #f1f5ff;
}

.button--secondary:hover {
  border-color: #adbee8;
  background: #e9f0ff;
}

.button--quiet {
  border-color: var(--color-border);
  color: #44506a;
  background: #fff;
}

.button--light {
  color: #15244c;
  background: #fff;
  box-shadow: 0 10px 28px rgba(5, 17, 50, 0.18);
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.button--glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button--large {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 15px;
}

.button--full {
  width: 100%;
}

.header-wallet-button {
  min-width: 152px;
}

.menu-trigger {
  display: none;
}

.category-rail {
  border-top: 1px solid rgba(223, 229, 241, 0.78);
  background: rgba(255, 255, 255, 0.7);
}

.category-rail__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-rail__inner::-webkit-scrollbar {
  display: none;
}

.category-chip,
.filter-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #67728a;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms var(--ease);
}

.category-chip:hover,
.filter-button:hover {
  color: var(--color-text);
  background: #eef2f9;
}

.category-chip:active,
.filter-button:active {
  transform: scale(0.97);
}

.category-chip.is-active,
.filter-button.is-active {
  border-color: #c8d6fa;
  color: var(--color-primary-strong);
  background: #eaf0ff;
}

.search-panel {
  position: absolute;
  inset: 100% 0 auto;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(249, 251, 255, 0.97);
  box-shadow: 0 16px 36px rgba(19, 39, 84, 0.1);
}

.search-panel__inner {
  padding-block: 16px;
}

.search-field {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 39, 84, 0.06);
}

.search-field:focus-within {
  border-color: #91acf4;
  box-shadow: 0 0 0 4px rgba(38, 103, 255, 0.1);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field input::placeholder {
  color: #9099ac;
}

.search-field kbd {
  padding: 2px 7px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  color: #8a94a9;
  background: #f6f8fc;
  font-size: 11px;
  font-family: inherit;
}

.search-results {
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.search-result {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color 150ms ease;
}

.search-result:hover {
  background: #eef3fb;
}

.search-result__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--color-primary);
  background: #e8efff;
  font-size: 12px;
  font-weight: 800;
}

.search-result span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu {
  border-top: 1px solid var(--color-border);
  background: rgba(250, 252, 255, 0.98);
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 20px;
}

.mobile-nav .nav-link {
  min-height: 46px;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #fff;
}

.mobile-menu__footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 16px;
}

.mobile-menu__footer > * {
  flex: 1;
}

.page-main {
  min-height: 62vh;
  padding: 26px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 15px;
  height: 15px;
}

.eyebrow--light {
  color: #c7e9ff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    linear-gradient(132deg, rgba(12, 32, 87, 0.98), rgba(24, 65, 163, 0.96) 52%, rgba(76, 65, 190, 0.94)),
    #10275d;
  box-shadow: 0 26px 60px rgba(19, 48, 119, 0.2);
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  content: "";
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
}

.hero-panel::before {
  width: 320px;
  height: 320px;
  right: -82px;
  top: -130px;
  background: rgba(31, 218, 235, 0.28);
}

.hero-panel::after {
  width: 260px;
  height: 260px;
  left: 34%;
  bottom: -180px;
  background: rgba(134, 90, 255, 0.34);
}

.hero-panel__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 68% 43%, rgba(25, 203, 244, 0.2), transparent 28%),
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.1) 50%, transparent 50.2%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 16px 0 18px;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 590px;
  margin-bottom: 24px;
  color: #d7e3ff;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  min-width: 0;
}

.feature-market {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 23px;
  background: rgba(4, 17, 54, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 38px rgba(4, 15, 48, 0.24);
  backdrop-filter: blur(18px);
}

.feature-market__top,
.feature-market__meta,
.market-card__meta,
.market-card__footer,
.detail-meta,
.detail-stats,
.trade-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-market__category,
.market-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feature-market__category {
  color: #c7e9ff;
}

.feature-market__badge {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #dce8ff;
  font-size: 10px;
  font-weight: 750;
}

.feature-market h2 {
  margin: 20px 0 22px;
  font-size: clamp(23px, 2.1vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.feature-market__chart {
  width: 100%;
  height: 90px;
  margin-bottom: 14px;
  overflow: visible;
}

.feature-market__chart path.line {
  fill: none;
  stroke: #63ddff;
  stroke-width: 3;
}

.feature-market__chart path.area {
  fill: url("#feature-area");
}

.feature-market__meta {
  color: #c8d7f5;
  font-size: 12px;
}

.feature-market__probability {
  color: #fff;
  font-size: 30px;
  font-weight: 820;
  letter-spacing: -0.045em;
}

.feature-market--unavailable {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-market--unavailable .feature-market__top {
  margin-bottom: auto;
}

.feature-market--unavailable .card-icon {
  margin-top: 30px;
  color: #0e387f;
  background: linear-gradient(145deg, #b7efff, #94aaff);
}

.feature-market--unavailable h2 {
  margin: 18px 0 10px;
}

.feature-market--unavailable p {
  margin: 0 0 auto;
  color: #cbd9f5;
  font-size: 12px;
  line-height: 1.65;
}

.hero-sidebar {
  display: grid;
  gap: 18px;
}

.surface-card {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.surface-card h2 {
  margin: 4px 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.surface-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--color-primary);
  background: linear-gradient(145deg, #e8efff, #edfaff);
}

.status-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.status-list > div {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf0f6;
}

.status-list dt {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.status-list dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.quick-guide ol {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.quick-guide li {
  display: flex;
  gap: 12px;
}

.quick-guide li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--color-primary-strong);
  background: #eaf0ff;
  font-size: 11px;
  font-weight: 850;
}

.quick-guide strong,
.quick-guide small {
  display: block;
}

.quick-guide strong {
  font-size: 13px;
}

.quick-guide small {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  margin-top: 46px;
}

.market-layout--wide {
  margin-top: 18px;
}

.market-content {
  min-width: 0;
}

.market-sidebar {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 3px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.section-heading--compact {
  margin-bottom: 12px;
}

.section-heading--compact h2 {
  font-size: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--color-primary-strong);
  font-size: 13px;
  font-weight: 780;
}

.text-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 160ms var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

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

.market-card {
  position: relative;
  min-width: 0;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 5px 18px rgba(20, 39, 78, 0.045);
  transition:
    transform 200ms var(--ease),
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.market-card:hover {
  border-color: #cbd7ef;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.market-card::after {
  position: absolute;
  content: "";
  width: 130px;
  height: 130px;
  top: -80px;
  right: -55px;
  border-radius: 999px;
  background: var(--market-tint, rgba(38, 103, 255, 0.12));
  filter: blur(3px);
  pointer-events: none;
}

.market-card__meta {
  position: relative;
  z-index: 1;
}

.market-category {
  color: var(--market-color, var(--color-primary-strong));
}

.category-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--market-color, var(--color-primary-strong));
  background: var(--market-soft, #eaf0ff);
  font-size: 10px;
  font-weight: 900;
}

.market-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #79839a;
  font-size: 11px;
  font-weight: 650;
}

.market-time .icon {
  width: 14px;
  height: 14px;
}

.market-card__title {
  min-height: 62px;
  margin: 16px 0 14px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.23;
  letter-spacing: -0.026em;
}

.market-card__title a::after {
  position: absolute;
  content: "";
  inset: 0;
}

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

.probability-row span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.probability-row strong {
  color: var(--market-color, var(--color-primary));
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.probability-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf5;
}

.probability-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--probability, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--market-color, var(--color-primary)), var(--color-accent));
  transition: width 520ms var(--ease);
}

.outcome-buttons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}

.outcome-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition:
    transform 150ms var(--ease),
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.outcome-button:active {
  transform: scale(0.97);
}

.outcome-button--yes {
  border-color: #b5e4d4;
  color: #087c5b;
  background: var(--color-positive-soft);
}

.outcome-button--yes:hover,
.outcome-button--yes[aria-pressed="true"] {
  color: #fff;
  background: var(--color-positive);
  box-shadow: 0 7px 16px rgba(21, 154, 115, 0.2);
}

.outcome-button--no {
  border-color: #f0c1cb;
  color: #b52f4b;
  background: var(--color-negative-soft);
}

.outcome-button--no:hover,
.outcome-button--no[aria-pressed="true"] {
  color: #fff;
  background: var(--color-negative);
  box-shadow: 0 7px 16px rgba(217, 79, 104, 0.18);
}

.outcome-mark,
.yes-mark,
.no-mark {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 9px;
  font-style: normal;
}

.market-card__footer {
  margin-top: auto;
  padding-top: 14px;
  color: #7d879d;
  font-size: 10px;
  font-weight: 650;
}

.snapshot-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snapshot-label::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: #a3abc0;
}

.category-list {
  display: grid;
  gap: 2px;
}

.category-list button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-radius: 11px;
  color: #56617a;
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.category-list button:hover,
.category-list button.is-active {
  color: var(--color-primary-strong);
  background: #edf2ff;
}

.category-list small {
  min-width: 26px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6f7a91;
  background: #eef1f7;
  font-size: 10px;
}

.trust-card .text-link {
  margin-top: 2px;
}

.feature-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 16px 0 20px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5d6880;
  font-size: 12px;
  line-height: 1.5;
}

.feature-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--color-positive);
}

.live-unavailable,
.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 40px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.live-unavailable h2,
.empty-state h2 {
  margin: 6px 0 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.live-unavailable p,
.empty-state p {
  max-width: 470px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.empty-state__icon {
  width: 42px;
  height: 42px;
  color: var(--color-primary);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0 24px;
}

.page-heading > div {
  max-width: 800px;
}

.page-heading h1 {
  margin: 7px 0 9px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.page-heading p {
  max-width: 730px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.page-heading--with-search .search-field {
  width: min(100%, 360px);
  flex: 0 0 360px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-toolbar__group {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-toolbar__group::-webkit-scrollbar {
  display: none;
}

.filter-button {
  min-height: 36px;
  border-radius: 10px;
}

.results-count {
  flex: 0 0 auto;
  padding-right: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 680;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.breadcrumb-row a {
  color: var(--color-primary-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: start;
}

.detail-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.detail-card,
.trade-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.detail-card {
  padding: 26px;
}

.detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.detail-category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--market-color, var(--color-primary));
  background: var(--market-soft, #eaf0ff);
  font-size: 17px;
  font-weight: 900;
}

.detail-meta {
  justify-content: flex-start;
  color: var(--color-text-muted);
  font-size: 12px;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #087c5b;
  background: var(--color-positive-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-title {
  margin: 10px 0 0;
  font-size: clamp(29px, 3.2vw, 44px);
  line-height: 1.07;
  letter-spacing: -0.05em;
}

.detail-probability {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.detail-probability span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-probability strong {
  color: var(--market-color, var(--color-primary));
  font-size: clamp(46px, 7vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.detail-chart {
  height: 250px;
  margin-top: 22px;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background:
    linear-gradient(#eef2f8 1px, transparent 1px),
    linear-gradient(90deg, #eef2f8 1px, transparent 1px),
    #fbfcff;
  background-size: 100% 25%, 16.66% 100%;
}

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

.detail-chart .area {
  fill: url("#detail-area");
}

.detail-chart .line {
  fill: none;
  stroke: var(--market-color, var(--color-primary));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #8a94a8;
  font-size: 10px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--color-border);
}

.detail-stats div {
  padding: 18px 12px 0;
  border-left: 1px solid var(--color-border);
}

.detail-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.detail-stats dt {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-stats dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.detail-copy h2 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.detail-copy p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.resolution-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.resolution-box > div {
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-raised);
}

.resolution-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resolution-box strong,
.resolution-box a {
  font-size: 13px;
}

.resolution-box a {
  color: var(--color-primary-strong);
  font-weight: 730;
  overflow-wrap: anywhere;
}

.trade-card {
  position: sticky;
  top: 136px;
  padding: 22px;
}

.trade-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.trade-card__head h2 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.trade-card__head .icon-button {
  min-width: 40px;
  min-height: 40px;
}

.trade-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.trade-outcomes .outcome-button {
  min-height: 52px;
}

.trade-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.trade-field > span {
  color: #505c74;
  font-size: 12px;
  font-weight: 720;
}

.trade-input {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 13px;
  background: #fff;
}

.trade-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 730;
}

.trade-input span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 750;
}

.trade-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 13px;
  background: #f5f7fb;
}

.trade-summary__row {
  color: var(--color-text-muted);
  font-size: 11px;
}

.trade-summary__row strong {
  color: var(--color-text);
  font-weight: 730;
}

.trade-notice {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.trade-notice .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.related-section {
  margin-top: 42px;
}

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

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.create-form {
  display: grid;
  gap: 30px;
  padding: 28px;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section__heading {
  grid-column: 1 / -1;
  display: flex;
  gap: 13px;
  margin-bottom: 4px;
}

.form-section__heading > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--color-primary-strong);
  background: #eaf0ff;
  font-size: 10px;
  font-weight: 850;
}

.form-section__heading h2 {
  margin: 0 0 2px;
  font-size: 19px;
}

.form-section__heading p {
  margin: 0;
  font-size: 12px;
}

.field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
}

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

.field > span {
  color: #4e5a72;
  font-size: 12px;
  font-weight: 720;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  padding: 12px 13px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #91acf4;
  box-shadow: 0 0 0 4px rgba(38, 103, 255, 0.1);
}

.field [aria-invalid="true"] {
  border-color: var(--color-negative);
  box-shadow: 0 0 0 3px rgba(217, 79, 104, 0.1);
}

.field small {
  color: #8b94a7;
  font-size: 10px;
}

.field > small:last-child {
  justify-self: end;
}

.form-errors {
  display: grid;
  gap: 4px;
  color: #b52f4b;
  font-size: 12px;
  font-weight: 650;
}

.create-sidebar {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 16px;
}

.create-preview__visual {
  height: 120px;
  display: grid;
  place-items: center;
  margin: 15px 0;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 24%, rgba(28, 214, 235, 0.5), transparent 34%),
    linear-gradient(135deg, #1749b8, #6b50dc);
}

.create-preview__visual span {
  font-size: 42px;
  font-weight: 850;
}

.create-preview h2 {
  min-height: 48px;
}

.outcome-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #087c5b;
  font-size: 11px;
  font-weight: 800;
}

.outcome-preview > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

dialog {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

dialog::backdrop {
  background: rgba(8, 16, 38, 0.55);
  backdrop-filter: blur(7px);
}

.wallet-gate {
  width: min(92vw, 510px);
  overflow: visible;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 17, 44, 0.28);
}

.wallet-gate[open],
.review-dialog[open] {
  animation: dialog-in 240ms var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.wallet-gate__visual {
  position: relative;
  height: 138px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #102c73, #275ed4 52%, #7957ef);
}

.wallet-gate__visual::before,
.wallet-gate__visual::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.wallet-gate__visual::before {
  width: 180px;
  height: 180px;
  right: -55px;
  top: -85px;
  background: rgba(45, 218, 238, 0.28);
}

.wallet-gate__visual::after {
  width: 140px;
  height: 140px;
  left: -45px;
  bottom: -80px;
  background: rgba(145, 108, 255, 0.28);
}

.wallet-gate__icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.35;
}

.wallet-gate__orb {
  position: absolute;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 18px 35px rgba(4, 15, 48, 0.18);
  transform: rotate(8deg);
}

.wallet-gate__content {
  position: relative;
  padding: 28px;
}

.wallet-gate__content h2 {
  margin: 7px 40px 8px 0;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.wallet-gate__content > p {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.wallet-gate__context {
  padding: 10px 12px;
  border-radius: 11px;
  color: #52607d !important;
  background: #f3f6fb;
  font-size: 11px !important;
}

.wallet-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.wallet-gate__close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-width: 40px;
  min-height: 40px;
}

.review-dialog {
  width: min(92vw, 680px);
  padding: 26px;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 17, 44, 0.28);
}

.review-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.review-dialog__head h2 {
  margin: 5px 0 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.review-summary {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  overflow: hidden;
}

.review-summary > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}

.review-summary > div:first-child {
  border-top: 0;
}

.review-summary dt {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.review-summary dd {
  margin: 0;
  font-size: 12px;
  font-weight: 690;
  overflow-wrap: anywhere;
}

.risk-notice {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d9e2f4;
  border-radius: 13px;
  color: #52607b;
  background: #f4f7fc;
  font-size: 11px;
  line-height: 1.55;
}

.risk-notice .icon {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
}

.review-dialog__actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.form-status {
  margin: 10px 0 0;
  color: var(--color-negative);
  font-size: 12px;
  font-weight: 650;
}

.page-heading--workspace {
  align-items: center;
}

.workspace-shell {
  position: relative;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  opacity: 0.64;
  filter: saturate(0.6);
}

.metric-card {
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin: 12px 0 7px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.locked-panel {
  width: min(90%, 560px);
  display: grid;
  justify-items: center;
  margin: 26px auto 0;
  padding: 42px;
  text-align: center;
}

.locked-panel__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 19px;
  color: var(--color-primary);
  background: linear-gradient(145deg, #e6eeff, #e8fbff);
  box-shadow: 0 12px 25px var(--color-glow);
}

.locked-panel__icon .icon {
  width: 29px;
  height: 29px;
}

.locked-panel h2 {
  font-size: 24px;
}

.locked-panel p {
  max-width: 450px;
}

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

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  width: 17px;
  height: 17px;
  transition: transform 190ms var(--ease);
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details > div {
  padding: 0 18px 18px;
}

.faq-list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-aside {
  position: sticky;
  top: 136px;
}

.legal-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.legal-index {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 5px;
}

.legal-index .eyebrow {
  margin-bottom: 10px;
}

.legal-index a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  color: #5f6a81;
  font-size: 12px;
  font-weight: 680;
}

.legal-index a:hover {
  color: var(--color-primary-strong);
  background: #edf2ff;
}

.legal-content {
  display: grid;
  gap: 0;
  padding: 30px;
}

.legal-content section {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 140px;
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-number {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.legal-content h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.legal-content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.promotion-terms-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

.promotion-terms-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid #e2e7f1;
  border-radius: 12px;
  background: #fafbfe;
}

.promotion-terms-list dt {
  color: #253251;
  font-size: 11px;
  font-weight: 800;
}

.promotion-terms-list dd {
  margin: 0;
  color: #68728b;
  font-size: 11px;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(235, 240, 249, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 1.4fr;
  gap: 60px;
  padding: 54px 0 42px;
}

.footer-brand img {
  width: 138px;
  height: auto;
}

.footer-brand p {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 13px;
  color: #3b4761;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-top: 9px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 630;
}

.footer-links a:hover {
  color: var(--color-primary-strong);
}

.footer-bottom {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  color: #7a859b;
  font-size: 11px;
  font-weight: 620;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  color: #fff;
  background: #1b2948;
  box-shadow: 0 14px 34px rgba(8, 18, 43, 0.22);
  font-size: 12px;
  line-height: 1.5;
  animation: toast-in 220ms var(--ease);
}

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

.promo-bar {
  position: relative;
  z-index: 28;
  border-bottom: 1px solid #dbe4f6;
  background:
    linear-gradient(90deg, rgba(38, 103, 255, 0.08), rgba(120, 87, 255, 0.06)),
    rgba(255, 255, 255, 0.9);
}

.promo-bar__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 8px;
}

.promo-bar__message {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #48536d;
  font-size: 12px;
}

.promo-bar__message strong {
  color: #15244c;
  font-size: 13px;
  white-space: nowrap;
}

.promo-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(38, 103, 255, 0.22);
  border-radius: 999px;
  color: #1b55cf;
  background: #edf3ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.promo-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.promo-bar__actions a,
.promo-modal__terms a,
.trade-promo-note a,
.hero-promo > a {
  color: var(--color-primary-strong);
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(38, 103, 255, 0.3);
  text-underline-offset: 3px;
}

.promo-inline-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cbd7f3;
  border-radius: 11px;
  color: var(--color-primary-strong);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.promo-progress {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  align-items: center;
  gap: 18px;
  padding: 11px 0 5px;
  border-top: 1px solid rgba(203, 215, 243, 0.8);
}

.promo-progress p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.promo-progress p strong {
  color: #19264a;
  font-size: 12px;
}

.promo-progress p span {
  color: var(--color-text-muted);
  font-size: 10px;
}

.promo-progress ol {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(108px, 1fr));
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.promo-progress li {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #dfe5f1;
  border-radius: 10px;
  color: #778197;
  background: rgba(255, 255, 255, 0.72);
}

.promo-progress li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #667189;
  background: #edf1f8;
  font-size: 10px;
  font-weight: 850;
}

.promo-progress li small {
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.promo-progress li.is-complete {
  border-color: rgba(11, 128, 96, 0.24);
  color: #176d56;
  background: #f0faf6;
}

.promo-progress li.is-complete > span {
  color: #fff;
  background: var(--color-positive);
}

.promo-progress li.is-current {
  border-color: rgba(38, 103, 255, 0.34);
  color: #1c50bd;
  background: #f2f6ff;
  box-shadow: 0 5px 16px rgba(38, 103, 255, 0.08);
}

.hero-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.promo-hero-badge {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(132, 216, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.promo-hero-badge span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #133b8e;
  background: #aeeeff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-hero-badge strong {
  font-size: 10px;
  font-weight: 750;
}

.hero-promo > a {
  color: #dce8ff;
  text-decoration-color: rgba(220, 232, 255, 0.4);
}

.promo-modal {
  width: min(850px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--color-text);
  background: #fff;
  box-shadow: 0 34px 90px rgba(7, 18, 48, 0.32);
  overflow: auto;
}

.promo-modal[open] {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  animation: promo-modal-in 260ms var(--ease);
}

.promo-modal::backdrop {
  background: rgba(8, 15, 34, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes promo-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.promo-modal__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(79, 220, 255, 0.44), transparent 32%),
    radial-gradient(circle at 73% 75%, rgba(120, 87, 255, 0.5), transparent 38%),
    linear-gradient(150deg, #0b1d49, #132b65 54%, #1d1854);
}

.promo-modal__visual::before,
.promo-modal__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.promo-modal__visual::before {
  width: 260px;
  height: 260px;
  top: -74px;
  left: -102px;
}

.promo-modal__visual::after {
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -44px;
}

.promo-modal__glow {
  position: absolute;
  inset: 34% 18%;
  border-radius: 50%;
  background: rgba(35, 201, 255, 0.34);
  filter: blur(46px);
}

.promo-modal__coin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(38, 103, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 24px 54px rgba(0, 0, 0, 0.28);
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.06em;
  backdrop-filter: blur(8px);
}

.promo-modal__coin small {
  margin-top: -17px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.promo-modal__coin--one {
  width: 142px;
  height: 142px;
  top: 22%;
  left: 29px;
  transform: rotate(-8deg);
}

.promo-modal__coin--two {
  width: 116px;
  height: 116px;
  right: 25px;
  bottom: 18%;
  color: #16285f;
  background: linear-gradient(145deg, #baf4ff, #879cff);
  font-size: 32px;
  transform: rotate(9deg);
}

.promo-modal__content {
  position: relative;
  padding: 37px 38px 30px;
}

.promo-modal__content h2 {
  margin: 15px 48px 10px 0;
  color: #12204a;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.promo-modal__content > p {
  color: #5a6680;
  font-size: 13px;
  line-height: 1.65;
}

.promo-modal__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
}

.promo-modal__highlights div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e0e6f2;
  border-radius: 14px;
  background: #f8faff;
}

.promo-modal__highlights strong {
  color: #174fcc;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.promo-modal__highlights span {
  color: #68728b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.promo-modal__rules {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  margin: 0 0 14px;
  color: #4f5a73;
  font-size: 11px;
}

.promo-modal__verification {
  padding: 10px 12px;
  border: 1px solid #dfe5f1;
  border-radius: 11px;
  background: #f8faff;
  font-size: 10px !important;
}

.promo-modal__actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.promo-modal__terms {
  margin: 13px 0 0;
  font-size: 10px !important;
}

.promo-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.trade-promo-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(38, 103, 255, 0.22);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(38, 103, 255, 0.08), rgba(120, 87, 255, 0.07)),
    #fff;
}

.trade-promo-note__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trade-promo-note strong {
  color: #15244c;
  font-size: 12px;
}

.trade-promo-note p {
  margin: 0;
  color: #68728b;
  font-size: 10px;
  line-height: 1.45;
}

.promo-estimate {
  display: grid;
  gap: 0;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: #fafbfe;
}

.promo-estimate .eyebrow {
  margin-bottom: 6px;
}

.promo-estimate > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.15fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #e7ebf3;
  color: #69738a;
  font-size: 9px;
}

.promo-estimate > div strong {
  color: #34405a;
  font-weight: 750;
  text-align: right;
}

.settlement-network {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  background: #f8faff;
}

.settlement-network__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settlement-network__status div {
  display: grid;
  gap: 1px;
}

.settlement-network__status strong {
  color: #17254a;
  font-size: 13px;
}

.settlement-network__status small,
.settlement-network p {
  color: #6b758c;
  font-size: 10px;
}

.settlement-network p {
  margin: 0;
  line-height: 1.5;
}

.network-filter-slot {
  margin-top: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav .nav-link:nth-child(2),
  .desktop-nav .nav-link:nth-child(3),
  .desktop-nav .nav-link:nth-child(4),
  .desktop-nav .nav-link:nth-child(5) {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr 320px;
    padding: 34px;
  }

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

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger {
    display: inline-grid;
  }

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

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

  .market-layout,
  .detail-layout,
  .create-layout {
    grid-template-columns: 1fr;
  }

  .market-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout > aside,
  .create-sidebar,
  .faq-aside,
  .legal-index {
    position: static;
  }

  .trade-card {
    position: static;
  }

  .create-sidebar {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .legal-index {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
  }

  .legal-index .eyebrow {
    display: none;
  }

  .legal-index a {
    flex: 0 0 auto;
  }

  .promo-progress {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .promo-progress ol {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .promo-progress li {
    min-width: 132px;
  }

  .promo-modal[open] {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .page-main {
    padding-top: 18px;
    padding-bottom: 60px;
  }

  .brand img {
    width: 116px;
  }

  .header-main {
    gap: 10px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .search-trigger,
  .header-actions .network-status {
    display: none;
  }

  .header-wallet-button {
    min-width: 0;
    min-height: 42px;
    padding-inline: 12px;
  }

  .header-wallet-button .icon {
    display: none;
  }

  .category-rail__inner {
    width: 100%;
    padding-inline: 14px;
  }

  .category-chip {
    min-height: 36px;
  }

  .promo-bar__inner {
    flex-wrap: wrap;
    gap: 7px 12px;
    padding-block: 9px;
  }

  .promo-bar__message {
    width: 100%;
    flex-wrap: wrap;
  }

  .promo-bar__actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .promo-progress {
    padding-top: 9px;
  }

  .promo-modal[open] {
    grid-template-columns: 1fr;
  }

  .promo-modal__visual {
    min-height: 132px;
  }

  .promo-modal__coin--one {
    width: 94px;
    height: 94px;
    top: 18px;
    left: 20%;
    font-size: 30px;
  }

  .promo-modal__coin--one small {
    margin-top: -12px;
    font-size: 8px;
  }

  .promo-modal__coin--two {
    width: 76px;
    height: 76px;
    right: 21%;
    bottom: 14px;
    font-size: 22px;
  }

  .promo-modal__content {
    padding: 28px 26px 24px;
  }

  .hero-promo {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px 22px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 11vw, 54px);
  }

  .hero-visual {
    width: 100%;
  }

  .feature-market {
    padding: 20px;
  }

  .hero-sidebar,
  .market-sidebar,
  .create-sidebar {
    grid-template-columns: 1fr;
  }

  .market-layout {
    margin-top: 34px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading p {
    display: none;
  }

  .market-grid,
  .market-grid--related {
    grid-template-columns: 1fr;
  }

  .market-card {
    min-height: 276px;
  }

  .page-heading,
  .page-heading--workspace {
    display: grid;
    align-items: start;
    padding-top: 10px;
  }

  .page-heading h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .page-heading--with-search .search-field {
    width: 100%;
    flex-basis: auto;
  }

  .filter-toolbar {
    display: grid;
  }

  .results-count {
    padding: 0 8px 2px;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-category-icon {
    width: 46px;
    height: 46px;
  }

  .detail-probability {
    align-items: start;
    flex-direction: column;
  }

  .detail-chart {
    height: 210px;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .detail-stats div,
  .detail-stats div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .resolution-box {
    grid-template-columns: 1fr;
  }

  .create-form {
    padding: 21px;
  }

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

  .field--wide,
  .form-section__heading {
    grid-column: auto;
  }

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

  .locked-panel {
    width: 100%;
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 0 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 20px), var(--shell));
  }

  .brand img {
    width: 101px;
  }

  .menu-trigger {
    min-width: 40px;
    min-height: 40px;
    border-radius: 11px;
  }

  .header-wallet-button {
    min-height: 40px;
    padding-inline: 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  .category-rail__inner {
    padding-inline: 10px;
  }

  .mobile-nav {
    padding-inline: 10px;
  }

  .mobile-menu__footer {
    padding-inline: 10px;
    flex-direction: column;
  }

  .promo-bar__message {
    gap: 7px;
  }

  .promo-bar__message > span:last-child {
    width: 100%;
    font-size: 10px;
  }

  .promo-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .promo-modal__visual {
    min-height: 112px;
  }

  .promo-modal__coin--one {
    top: 11px;
    left: 17%;
  }

  .promo-modal__coin--two {
    right: 18%;
    bottom: 7px;
  }

  .promo-modal__content {
    padding: 23px 18px 20px;
  }

  .promo-modal__content h2 {
    margin-top: 13px;
    font-size: 29px;
  }

  .promo-modal__highlights {
    grid-template-columns: 1fr;
  }

  .promo-modal__highlights div {
    min-height: 64px;
  }

  .promo-modal__actions {
    flex-direction: column;
  }

  .promo-modal__actions .button {
    width: 100%;
  }

  .promo-modal__close {
    top: 12px;
    right: 12px;
  }

  .promo-hero-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel {
    padding-inline: 18px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .feature-market__chart {
    height: 75px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading .text-link {
    font-size: 0;
  }

  .section-heading .text-link .icon {
    width: 21px;
    height: 21px;
  }

  .market-card {
    padding: 17px;
  }

  .wallet-gate__content {
    padding: 23px 18px 20px;
  }

  .wallet-gate__content h2 {
    font-size: 24px;
  }

  .wallet-gate__actions {
    grid-template-columns: 1fr;
  }

  .wallet-gate__visual {
    height: 116px;
  }

  .review-dialog {
    padding: 20px 16px;
  }

  .review-summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .review-dialog__actions {
    flex-direction: column;
  }

  .review-dialog__actions .button {
    width: 100%;
  }

  .legal-content {
    padding: 21px 18px;
  }

  .legal-content section {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .promotion-terms-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 350px) {
  .brand img {
    width: 92px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-wallet-button {
    padding-inline: 8px;
    font-size: 11px;
  }

  .menu-trigger {
    min-width: 38px;
  }

  .hero-panel {
    padding-inline: 15px;
  }

  .feature-market {
    padding: 16px;
  }

  .market-card__title {
    font-size: 17px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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