﻿:root {
  color-scheme: dark;
  --bg: #1a2026;
  --bg-footer: #111417;
  --surface: #212932;
  --surface-row: #232b34;
  --surface-hover: #26303a;
  --surface-hover-2: #2a3540;
  --surface-2: #293440;
  --surface-2-active: #2e3b48;
  --surface-3: #2d3744;
  --surface-3-hover: #34414f;
  --surface-3-hover-2: #3a4757;
  --surface-4: #3f4e60;
  --surface-4-hover: #4d5d71;
  --menu-hover: #4f4f4f;
  --border-focus: #4a5461;
  --border-focus-2: #5a6674;
  --dim: #5d6b7a;
  --muted-3: #6f7b88;
  --muted: #8b98a5;
  --muted-2: #9ba6b2;
  --text-2: #c5ced8;
  --text-soft: #dfe5ec;
  --text-soft-2: #e6ebf1;
  --icon-strong: #e6ebf0;
  --green: #3ddc84;
  --red: #ff6b6b;
  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.07);
  --line-3: rgba(255,255,255,0.08);
  --line-4: rgba(255,255,255,0.12);
  --line-5: rgba(255,255,255,0.14);
  --line-6: rgba(255,255,255,0.22);
  --text: #ffffff;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-footer: #e8ecf1;
  --surface: #ffffff;
  --surface-row: #eef1f5;
  --surface-hover: #f7f9fb;
  --surface-hover-2: #f4f6f9;
  --surface-2: #e9edf2;
  --surface-2-active: #dde3ea;
  --surface-3: #e3e8ee;
  --surface-3-hover: #dde3ea;
  --surface-3-hover-2: #d3dae2;
  --surface-4: #d3dae2;
  --surface-4-hover: #c9d2dc;
  --menu-hover: #dfe4ea;
  --border-focus: #b8c2cd;
  --border-focus-2: #9fabb8;
  --dim: #8a97a6;
  --muted-3: #7b8794;
  --muted: #66758a;
  --muted-2: #6e7c8b;
  --text-2: #4a5a6b;
  --text-soft: #1f2b37;
  --text-soft-2: #1f2b37;
  --icon-strong: #2a3644;
  --green: #16a34a;
  --red: #e5484d;
  --line-1: rgba(15,25,35,0.08);
  --line-2: rgba(15,25,35,0.09);
  --line-3: rgba(15,25,35,0.10);
  --line-4: rgba(15,25,35,0.14);
  --line-5: rgba(15,25,35,0.16);
  --line-6: rgba(15,25,35,0.26);
  --text: #0f1923;
}
.hero-chart line[stroke-dasharray] { stroke: var(--line-3); }
.hero-chart line:not([stroke-dasharray]) { stroke: var(--line-5); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  zoom: 0.9;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  background-color: var(--bg);
  min-height: calc(100vh / 0.9);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}
nav {
  position: relative;
  z-index: 150;
  width: 100%;
  height: 62px;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: 280px;
}
.nav-logo {
  height: 42px;
  width: auto;
}
.nav-search {
  flex: 1 1 0;
  min-width: 120px;
  max-width: none;
  height: 45px;
  margin: 0 10px 0 20px;
  padding: 0 14px 0 18px;
  background-color: var(--surface-2);
  border: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
nav:has(.nav-tg.is-connected) .nav-search,
nav:has(.nav-start.is-connected) .nav-search {
  margin-right: 12px;
}
.nav-search input {
  min-width: 0;
}
.nav-search.is-active {
  background-color: var(--surface-2-active);
  cursor: text;
}
.nav-search svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--muted);
}
.nav-search input {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  cursor: inherit;
}
.nav-search input::placeholder {
  color: var(--muted);
}
.nav-search-clear {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  outline: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease;
}
.nav-search.is-active .nav-search-clear {
  opacity: 1;
  pointer-events: auto;
}
.nav-search-clear:hover {
  color: var(--text);
}
.nav-search-clear svg {
  width: 24px;
  height: 24px;
}
.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0;
}
.nav-start {
  height: 45px;
  padding: 0 28px;
  margin-right: 0;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 13px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-start:hover,
.nav-start.is-active {
  background-color: var(--surface-4);
  color: var(--text);
}
.nav-start:not(.is-connected) {
  height: 40px;
  min-width: 150px;
  gap: 9px;
  padding: 0 18px;
  background-color: #2f8cff;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
}
.nav-start:not(.is-connected):hover,
.nav-start:not(.is-connected).is-active {
  background-color: #4a9bff;
}
.nav-start .ton-icon {
  flex-shrink: 0;
}
.nav-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 260px;
}
.nav-menu {
  width: 98px;
  height: 28px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 28px;
  right: 28px;
  background-color: var(--menu-hover);
  border-radius: 11px;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 0;
}
.nav-menu:hover::before {
  opacity: 1;
}
.nav-menu.is-open::before {
  opacity: 1;
}
.nav-menu svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 17px;
  width: 265px;
  padding: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 100;
}
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-group {
  position: relative;
}
.nav-dropdown-group::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 14px;
}
.nav-dropdown-item {
  width: 100%;
  padding: 11px 14px 11px 12px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
  transition: background-color 0.15s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-group:hover .nav-dropdown-item {
  background-color: var(--surface-2);
}
.nav-dropdown-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-2);
}
.nav-dropdown-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted-2);
}
.nav-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  width: 210px;
  min-height: 150px;
  padding: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 110;
}
.nav-dropdown-group:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-submenu-item {
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
  transition: background-color 0.15s ease;
}
.nav-submenu-item + .nav-submenu-item {
  margin-top: 4px;
}
.nav-submenu-item:hover {
  background-color: var(--surface-2);
}
.nav-submenu-check {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nav-submenu-item.is-selected .nav-submenu-check {
  opacity: 1;
}

.nav-theme-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-dropdown-group[data-menu="theme"] .nav-submenu,
.nav-dropdown-group[data-menu="language"] .nav-submenu {
  min-height: 0;
}
.nav-dropdown-group.is-submenu-hidden:hover .nav-submenu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
}

.nav-flag {
  width: 24px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
}

.nav-currency-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}
.site-footer {
  margin-top: auto;
  background-color: var(--bg-footer);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sf-wrap,
.sf-bottom-inner {
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 0 auto;
}
.sf-grid {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.sf-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.sf-slogan {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.sf-socials {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.sf-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}
.sf-social:hover {
  opacity: 1;
  background-color: var(--line-3);
}
.sf-social svg {
  width: 24px;
  height: 24px;
}
.sf-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-col-title {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.sf-link {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}
a.sf-link:hover {
  color: var(--text);
}
.sf-bottom {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--line-1);
}
.sf-bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-3);
  font-size: 13px;
}
@media (max-width: 900px) {
  .sf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .sf-grid {
    grid-template-columns: 1fr;
  }
  .sf-bottom-inner {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    text-align: center;
  }
}
.markets {
  width: calc(100% - 40px);
  max-width: 1450px;
  margin: 0 auto;
  padding: 32px 0 56px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.markets-hero {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  align-items: start;
}
.hero-card,
.hero-nav {
  grid-column: 1;
}
.hero-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.side-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}
.side-title span {
  margin-left: 4px;
  color: var(--muted);
}
.side-row {
  margin: 0 -10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background-color 0.18s ease;
}
.side-row:hover {
  background-color: var(--surface-row);
}
.side-num {
  width: 10px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
}
.side-name {
  min-width: 0;
  flex: 1;
}
.side-value {
  flex-shrink: 0;
  font-size: 18px;
  text-align: right;
}
.side-change {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.side-change.is-up {
  color: var(--green);
}
.side-change.is-down {
  color: var(--red);
}
.side-vol {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.side-fire {
  width: 18px;
  flex-shrink: 0;
  font-size: 14px;
  text-align: center;
}
.side-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.side-line {
  margin: 14px 0 18px;
  border-top: 1px dashed var(--line-4);
}
.side-title {
  font-size: 22px;
}
.side-row {
  padding: 11px 10px;
  font-size: 17px;
}
.side-num {
  width: 12px;
  font-size: 15px;
}
.side-value {
  font-size: 20px;
}
.side-change {
  font-size: 14px;
}
.side-vol {
  font-size: 15px;
}
.hero-card {
  display: block;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 16px;
}
.hero-card {
  overflow: hidden;
}
.hero-top {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-question {
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
}
.hero-actions {
  align-self: flex-start;
  display: flex;
  gap: 4px;
}
.hero-action {
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.hero-action:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.hero-action svg {
  width: 20px;
  height: 20px;
}
.hero-icon-done,
.hero-action.is-copied .hero-icon-link {
  display: none;
}
.hero-action.is-copied .hero-icon-done {
  display: block;
  color: var(--green);
}
#heroFav.is-fav {
  color: var(--text);
}
#heroFav.is-fav svg {
  fill: currentColor;
}
.hero-body {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
}
.hero-outcomes {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}
.hero-outcomes .market-btns {
  width: 100%;
}
.hero-outcomes .market-btn {
  height: 52px;
  font-size: 16px;
}
.hero-outcomes .market-opt {
  min-height: 34px;
}
.hero-outcomes .market-opt-name {
  font-size: 17px;
}
.hero-outcomes .market-opt-pct {
  font-size: 22px;
}
.hero-prob {
  color: var(--text);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}
.hero-prob-label {
  margin-top: -10px;
  color: var(--muted);
  font-size: 15px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-block;
}
.hero-chart-col {
  min-width: 0;
}
.hero-legend {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 13px;
}
.hero-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-legend b {
  color: var(--text);
  font-weight: 600;
}
.hero-chart {
  position: relative;
  height: 340px;
}
.hero-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: crosshair;
  touch-action: pan-y;
}
.hero-chart text {
  fill: var(--muted);
  font-size: 12px;
}
.hero-tooltip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.hero-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-periods {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hero-period {
  height: 30px;
  padding: 0 12px;
  background: none;
  border: none;
  outline: none;
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hero-period:hover {
  color: var(--text);
}
.hero-period.is-active {
  background-color: var(--surface-4);
  color: var(--text);
}
.hero-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.hero-nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.hero-arrow {
  height: 40px;
  padding: 0 16px;
  justify-self: start;
  background-color: transparent;
  border: 1px solid transparent;
  outline: none;
  border-radius: 20px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
#heroPrev:hover svg {
  transform: translateX(-3px);
}
#heroNext:hover svg {
  transform: translateX(3px);
}
#heroNext {
  justify-self: end;
}
.hero-arrow:hover {
  background-color: var(--surface-row);
  color: var(--text);
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dot-btn {
  width: 7px;
  height: 7px;
  padding: 0;
  background-color: var(--surface-4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: width 0.2s ease;
}
.hero-dot-btn.is-active {
  width: 28px;
  background-color: var(--muted);
}
@media (max-width: 1100px) {
  .markets-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side {
    grid-column: 1;
    grid-row: auto;
    margin-top: 28px;
  }
}
@media (max-width: 700px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-question {
    font-size: 19px;
  }
  .hero-arrow span {
    display: none;
  }
}
.markets-head {
  margin-bottom: 20px;
  position: relative;
  transition: margin-bottom 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.markets-head.is-filter-open {
  margin-bottom: 92px;
}
@media (max-width: 800px) {
  .markets-head.is-filter-open {
    margin-bottom: 140px;
  }
}
@media (max-width: 600px) {
  .markets-head.is-filter-open {
    margin-bottom: 240px;
  }
}
.markets-filters {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 20;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.markets-head.is-filter-open .markets-filters {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.markets-select {
  position: relative;
}
.markets-filter {
  height: 44px;
  padding: 0 18px;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 13px;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.markets-filter:hover,
.markets-select.is-open .markets-filter {
  background-color: var(--surface-3-hover);
}
.markets-filter span {
  color: var(--text);
}
.markets-filter svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.markets-select.is-open .markets-filter svg {
  transform: rotate(180deg);
}
.markets-filter-reset {
  background-color: transparent;
}
.markets-filter-reset:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.markets-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  width: max-content;
  padding: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 30;
}
.markets-select.is-open .markets-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.markets-option {
  padding: 11px 14px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 0.15s ease;
}
.markets-option:hover {
  background-color: var(--surface-2);
}
.markets-option::after {
  content: "✓";
  opacity: 0;
}
.markets-option.is-selected::after {
  opacity: 1;
}
.markets-title {
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.markets-tools {
  display: flex;
  gap: 8px;
}
.markets-tool {
  width: 42px;
  height: 42px;
  background-color: transparent;
  border: none;
  outline: none;
  border-radius: 12px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.markets-tool:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.markets-tool.is-active {
  background-color: var(--surface-4);
  color: var(--text);
}
.filter-dot {
  fill: var(--bg);
  transition: transform 0.3s ease, fill 0.18s ease;
}
.markets-tool:hover .filter-dot {
  fill: var(--surface-2);
}
#marketsFilterBtn.is-swapped .filter-dot-top {
  transform: translateX(8px);
}
#marketsFilterBtn.is-swapped .filter-dot-bottom {
  transform: translateX(-8px);
}
.markets-tool svg {
  width: 22px;
  height: 22px;
}
#marketsFilterBtn {
  color: var(--icon-strong);
}
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}
.markets-grid > * {
  min-width: 0;
}
.market-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.18s ease;
}
.market-card:hover {
  background-color: var(--surface-hover-2);
}
.market-card.is-appearing {
  animation: market-appear 0.7s ease-in-out;
}
@keyframes market-appear {
  from {
    opacity: 0;
  }
}
.market-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.market-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.market-question {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  padding-top: 1px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-body {
  min-height: 92px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.market-prob {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.market-prob-value {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}
.market-prob-label {
  color: var(--muted);
  font-size: 13px;
}
.market-btns {
  display: flex;
  gap: 8px;
}
.market-btn {
  height: 40px;
  flex: 1;
  border: none;
  outline: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.market-btn-yes {
  background-color: rgba(61, 220, 132, 0.14);
  color: var(--green);
}
.market-btn-yes:hover {
  background-color: rgba(61, 220, 132, 0.24);
}
.market-btn-no {
  background-color: rgba(255, 90, 90, 0.14);
  color: var(--red);
}
.market-btn-no:hover {
  background-color: rgba(255, 90, 90, 0.24);
}
.market-opt {
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-opt-name {
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-opt-pct {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.market-opt-btn {
  width: 56px;
  height: 32px;
  flex-shrink: 0;
  background-color: rgba(61, 220, 132, 0.14);
  border: none;
  outline: none;
  border-radius: 9px;
  color: var(--green);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.market-opt-btn:hover {
  background-color: rgba(61, 220, 132, 0.24);
}
.market-foot {
  position: relative;
  top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.market-date {
  margin-left: auto;
}
.market-fav {
  width: 28px;
  height: 28px;
  margin-right: -6px;
  flex-shrink: 0;
  background: none;
  border: none;
  outline: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.market-fav:hover {
  background-color: var(--line-3);
  color: var(--text);
}
.market-fav.is-fav {
  color: var(--text);
}
.market-fav.is-fav svg {
  fill: currentColor;
}
.market-fav svg {
  width: 19px;
  height: 19px;
}
.markets-empty {
  grid-column: 1 / -1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}
.markets-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.markets-more-wrap.is-hidden {
  display: none;
}
.markets-more {
  height: 44px;
  padding: 0 24px;
  background: none;
  border: 1px solid var(--line-5);
  outline: none;
  border-radius: 22px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.markets-more:hover {
  background-color: var(--surface);
}
@media (max-width: 1100px) {
  .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .markets-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 520px;
  padding: 32px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background-color: var(--surface-3);
  border: none;
  outline: none;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.modal-close:hover {
  background-color: var(--surface-3-hover-2);
  color: var(--text);
}
.modal-close svg {
  width: 21px;
  height: 21px;
}
[data-tc-wallets-modal-footer],
[data-tc-modal-footer],
[data-tc-wallets-modal-info-block] {
  display: none !important;
}
#tc-widget-root {
  zoom: 1.25;
}
body.tc-disable-scroll {
  position: static !important;
  top: auto !important;
  overflow: hidden !important;
}
html:has(body.tc-disable-scroll) {
  overflow: hidden;
}

.nav-logo1-text {
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 4px;
  position: relative;
  top: 1px;
  line-height: 2.2;
}

.nav-start.is-connected {
  height: 40px;
  min-width: 150px;
  gap: 9px;
  padding: 0 18px;
  background-color: var(--surface-2);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.nav-start.is-connected .acc-arrow {
  transition: transform 0.2s ease;
}
.nav-actions {
  position: relative;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  width: 265px;
  padding: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 100;
}
.account-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-item {
  width: 100%;
  padding: 11px 14px 11px 12px;
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease;
}
.account-item svg {
  flex-shrink: 0;
  color: var(--text-2);
  width: 22px;
  height: 22px;
}
.account-item:hover {
  background-color: var(--surface-2);
}
.account-item:hover svg {
  color: var(--text);
}
.account-divider {
  margin: 4px 0;
  border-top: 1px solid var(--line-2);
}
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
}
.page-title {
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.page-empty {
  color: var(--muted);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}
[hidden] {
  display: none !important;
}
body.is-page .sf-wrap {
  display: none;
}
.profile {
  width: 100%;
  max-width: 720px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  letter-spacing: -0.015em;
}
.profile-title {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.profile-card {
  margin-bottom: 16px;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 16px;
}
.profile-row {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-row + .profile-row {
  border-top: 1px solid var(--line-1);
}
.profile-row svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-2);
}
.profile-row-btn {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.profile-row-btn:hover {
  background-color: var(--surface-2);
}
.profile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-name {
  font-size: 17px;
  font-weight: 500;
}
.profile-sub {
  color: var(--muted);
  font-size: 14px;
  word-break: break-all;
}
.profile-row-danger,
.profile-row-danger svg {
  color: var(--red);
}
.profile-info {
  justify-content: space-between;
}
.profile-info span:first-child {
  font-size: 17px;
  font-weight: 500;
}
.profile-info span:last-child {
  color: var(--muted);
  font-size: 16px;
}
.profile-text {
  flex: 1;
}
#settingsView.is-top {
  justify-content: flex-start;
  padding: 32px 20px 56px;
}
.sessions {
  width: 100%;
  max-width: 720px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  letter-spacing: -0.015em;
}
.sessions-title {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sessions-table {
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 16px;
}
.sessions-row {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 110px;
  align-items: center;
  gap: 16px;
}
.sessions-header {
  padding: 12px 20px;
  background-color: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.sessions-device {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sessions-device-name {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sessions-current {
  padding: 2px 8px;
  background-color: rgba(61, 220, 132, 0.14);
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}
.sessions-device-sub {
  color: var(--muted);
  font-size: 14px;
}
.sessions-date {
  color: var(--muted);
  font-size: 15px;
}
.sessions-logout-btn {
  height: 36px;
  padding: 0 18px;
  justify-self: start;
  background-color: #2f6bff;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.sessions-logout-btn:hover {
  background-color: #4a7fff;
}
.funds {
  width: 100%;
  max-width: 720px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  letter-spacing: -0.015em;
}
.funds-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.funds-title {
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.funds-tabs {
  margin-bottom: 20px;
  display: flex;
  gap: 22px;
}
.funds-tab {
  padding: 0 0 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.funds-tab:hover {
  color: var(--text);
}
.funds-tab.is-active {
  color: var(--text);
  border-bottom-color: #2f6bff;
}
.funds-card {
  overflow: hidden;
}
.funds-empty {
  padding: 40px 20px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}
@keyframes view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.markets,
#settingsView {
  animation: view-in 0.3s ease-out;
}
@media (max-width: 1100px) {
  .nav-brand {
    margin-left: 0;
  }
  .nav-actions {
    margin-right: 0;
  }
  .nav-menu-wrap {
    margin-right: 0;
  }
}
@media (max-width: 700px) {
  html {
    zoom: 1;
  }
  body {
    min-height: 100vh;
  }
  nav {
    padding: 0 10px;
  }
  .nav-logo {
    height: 32px;
  }
  .nav-brand .nav-logo1-text {
    display: none;
  }
  .nav-search {
    min-width: 0;
    height: 40px;
    margin: 0 8px;
    padding: 0 10px;
    gap: 8px;
  }
  .nav-search input {
    min-width: 0;
    font-size: 16px;
  }
  .nav-actions {
    flex-shrink: 0;
  }
  .nav-start {
    height: 40px;
    margin-right: 4px;
    padding: 0 14px;
    font-size: 15px;
    white-space: nowrap;
  }
  .nav-menu {
    width: 40px;
  }
  .nav-menu::before {
    left: 0;
    right: 0;
  }
  .nav-dropdown {
    right: 0;
  }
  .nav-dropdown-group::after {
    display: none;
  }
  .nav-submenu {
    top: 100%;
    left: auto;
    right: 0;
  }
  .account-dropdown {
    right: 0;
  }
  .sessions-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .hero-card {
    padding: 14px;
  }
  .hero-top {
    min-height: 52px;
    gap: 12px;
  }
  .hero-img {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .hero-question {
    font-size: 17px;
  }
  .hero-body {
    margin-top: 12px;
    gap: 12px;
  }
  .hero-outcomes {
    height: 140px;
    padding-top: 0;
    gap: 8px;
  }
  .hero-outcomes .market-opt {
    min-height: 28px;
  }
  .hero-outcomes .market-opt-name {
    font-size: 15px;
  }
  .hero-outcomes .market-opt-pct {
    font-size: 18px;
  }
  .hero-prob {
    font-size: 40px;
  }
  .hero-prob-label {
    margin-top: -4px;
    font-size: 14px;
  }
  .hero-outcomes .market-btn {
    height: 44px;
    flex-shrink: 0;
  }
  .hero-legend {
    height: 36px;
    min-height: 36px;
    overflow: hidden;
    font-size: 12px;
  }
  .hero-chart {
    height: 200px;
  }
  .hero-foot {
    margin-top: 10px;
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .hero-side {
    display: block;
  }
  .markets-hero {
    margin-bottom: 20px;
  }
}
@media (hover: none), (max-width: 700px) {
  .nav-dropdown-group:hover .nav-submenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-dropdown-group .nav-dropdown-item:hover {
    background-color: transparent;
  }
  .nav-dropdown-group.is-expanded .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-dropdown-group.is-expanded .nav-dropdown-item {
    background-color: var(--surface-2);
  }
}
@media (hover: none) {
  .nav-start,
  .nav-menu {
    -webkit-tap-highlight-color: transparent;
  }
  .nav-start:not(.is-connected):hover {
    background-color: #2f8cff;
  }
  .nav-start.is-connected:hover {
    background-color: var(--surface-2);
  }
  .nav-start:not(.is-connected).is-active {
    background-color: #4a9bff;
  }
  .nav-start.is-connected.is-active {
    background-color: var(--surface-4);
  }
  .nav-menu:hover::before {
    opacity: 0;
  }
  .nav-menu.is-open::before {
    opacity: 1;
  }
}
.nav-start:has(+ .account-dropdown.is-open) {
  background-color: var(--surface-4);
}
.nav-balance {
  display: none !important;
}
.nav-balance svg {
  flex-shrink: 0;
}
.nav-balance:hover {
  background-color: var(--surface-4);
}
.nav-actions:has(.nav-start.is-connected) ~ .nav-balance {
  display: flex;
}
.nav-tg,
.nav-actions,
.nav-balance {
  transform: translateX(18px);
}
.nav-tg:not(.is-connected) {
  transform: translateX(18px);
}
.nav-actions:has(.nav-start:not(.is-connected)) {
  transform: translateX(20px);
}
@media (max-width: 700px) {
  .nav-balance {
    height: 40px;
    margin-left: 0;
    margin-right: 4px;
    padding: 0 10px;
    gap: 6px;
    font-size: 15px;
  }
  .account-dropdown {
    left: auto;
    right: 0;
  }
}
.sessions-table {
  background: none;
  border: none;
  border-radius: 0;
}
.sessions-header {
  display: none;
}
.sessions-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.sessions-device-name {
  flex-wrap: wrap;
  gap: 4px 8px;
}
.sessions-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.sessions-date,
.sessions-logout-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-4);
  border-radius: 10px;
  display: flex;
  align-items: center;
}
.sessions-logout-btn {
  background: none;
  color: var(--text);
}
.sessions-logout-btn:hover {
  background-color: var(--surface-2);
}
@media (max-width: 700px) {
  .sf-grid {
    padding: 24px 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  .sf-brand-col {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .sf-slogan,
  .sf-col-title {
    display: none;
  }
  .sf-socials {
    margin-top: 0;
  }
  .sf-col {
    display: contents;
  }
  .sf-link {
    font-size: 14px;
  }
  .sf-bottom-inner {
    min-height: 0;
    gap: 6px;
    font-size: 12px;
  }
}
@media (min-width: 701px) {
  .sf-grid {
    padding: 24px 0 20px;
  }
  .sf-brand-col {
    margin-top: -6px;
  }
  .sf-slogan {
    margin-top: 8px;
    line-height: 1.45;
  }
  .sf-socials {
    margin-top: 10px;
  }
}
.market-link {
  width: 28px;
  height: 28px;
  margin-right: -6px;
  flex-shrink: 0;
  background: none;
  border: none;
  outline: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.market-link svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .market-link:hover {
    background-color: var(--line-3);
    color: var(--text);
  }
}
.market-link.is-copied {
  color: var(--green);
}
.market-body {
  min-height: 74px;
}
.market-card {
  gap: 12px;
}
.market-foot {
  top: 3px;
}
.market-fav,
.market-link,
.hero-action {
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.market-fav:active,
.market-link:active,
.hero-action:active {
  transform: scale(0.85);
}
.is-pop svg {
  animation: fav-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-pop.is-fav svg path {
  animation: fav-fill 0.35s ease;
}
@keyframes fav-pop {
  0% { transform: scale(1); }
  30% { transform: scale(0.7); }
  65% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes fav-fill {
  0%, 30% { fill-opacity: 0; }
  100% { fill-opacity: 1; }
}
.markets-tool {
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.markets-tool:active {
  transform: scale(0.88);
}
#marketsFavBtn.is-active svg {
  fill: currentColor;
}
#marketsFavBtn.is-pop.is-active svg path {
  animation: fav-fill 0.35s ease;
}
.market-link.is-copied svg,
.hero-action.is-copied .hero-icon-done {
  animation: fav-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.market-link.is-copied polyline,
.hero-action.is-copied .hero-icon-done polyline {
  stroke-dasharray: 24;
  animation: link-draw 0.35s ease 0.05s backwards;
}
@keyframes link-draw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
.hero-comments {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.hero-comments::-webkit-scrollbar {
  display: none;
}
.hero-comments > * {
  flex-shrink: 0;
}
.hero-comment-head {
  margin-bottom: 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-comment-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.hero-comment-time {
  color: var(--muted);
  font-size: 14px;
}
.hero-comment-text {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-tg {
  height: 40px;
  margin-left: -20px;
  margin-right: 8px;
  padding: 0 20px;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background-color 0.18s ease;
  max-width: 180px;
}
.nav-tg span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100px;
}
.nav-tg:hover {
  background-color: var(--surface-4);
}
.nav-tg svg {
  flex-shrink: 0;
}
.nav-tg {
  flex-shrink: 0;
}
.nav-tg-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-tg.is-connected:hover,
.nav-tg.is-connected.is-active {
  background-color: var(--surface-4);
}
.nav-tg-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-tg.is-active .nav-tg-arrow {
  transform: rotate(180deg);
}
.nav-tg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tg-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -5px;
  width: 220px;
  padding: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 100;
}
.tg-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 700px) {
  .nav-tg {
    display: none;
  }
  .nav-menu-wrap {
    margin-right: 0;
  }
}
.nav-tg-wrap { position: relative; }
.tg-dropdown .account-item { width: 100%; }

/* ===== Светлая тема: улучшения ===== */
html[data-theme="light"] {
  --bg: #e9eef4;
  --bg-footer: #dde4ed;
  --surface: #ffffff;
  --surface-row: #dce3ec;
  --surface-hover-2: #ffffff;
  --surface-2: #e6ecf3;
  --surface-2-active: #dbe3ed;
  --surface-3-hover: #d9e1eb;
  --surface-4: #d3dce7;
  --surface-4-hover: #c6d1de;
  --menu-hover: #e6ecf3;
  --dim: #75849a;
  --muted-3: #66758a;
  --muted: #526277;
  --text-2: #34465a;
  --green: #11813b;
  --red: #cf2f36;
  --line-1: #d3dbe6;
  --line-2: #d3dbe6;
  --line-3: #ccd5e1;
  --line-4: #bcc7d6;
  --line-5: #b3bfcf;
  --line-6: #8795a8;
}

html[data-theme="light"] nav {
  border-bottom: 1px solid var(--line-1);
  box-shadow: 0 2px 10px rgba(30, 50, 80, 0.07);
}
html[data-theme="light"] .nav-logo {
  filter: brightness(0) opacity(0.9);
}

/* Карточки */
html[data-theme="light"] .hero-card,
html[data-theme="light"] .market-card,
html[data-theme="light"] .bet-panel,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .mp-comment-box,
html[data-theme="light"] .hero-side {
  border: 1px solid var(--line-1);
  box-shadow: 0 1px 2px rgba(30, 50, 80, 0.08), 0 8px 22px rgba(30, 50, 80, 0.08);
}
html[data-theme="light"] .market-card {
  transition: box-shadow 0.18s ease;
}
html[data-theme="light"] .market-card:hover {
  box-shadow: 0 2px 4px rgba(30, 50, 80, 0.1), 0 14px 30px rgba(30, 50, 80, 0.16);
}
@media (min-width: 701px) {
  html[data-theme="light"] .hero-side {
    padding: 18px 20px;
    background-color: var(--surface);
    border-radius: 16px;
  }
}

/* Белые кнопки на сером фоне */
html[data-theme="light"] .markets-filter:not(.markets-filter-reset),
html[data-theme="light"] .markets-more {
  background-color: #ffffff;
  border: 1px solid var(--line-4);
}
html[data-theme="light"] .markets-filter:not(.markets-filter-reset):hover,
html[data-theme="light"] .markets-more:hover {
  background-color: #f4f7fa;
}
html[data-theme="light"] .hero-arrow:hover,
html[data-theme="light"] .markets-tool:hover {
  background-color: #d9e1eb;
}

/* Кнопки Да / Нет */
html[data-theme="light"] .market-btn-yes,
html[data-theme="light"] .market-opt-btn {
  background-color: #d5f2df;
  color: #0e7434;
}
html[data-theme="light"] .market-btn-yes:hover,
html[data-theme="light"] .market-opt-btn:hover {
  background-color: #bdeaCC;
}
html[data-theme="light"] .market-btn-no {
  background-color: #fddfe0;
  color: #bd252c;
}
html[data-theme="light"] .market-btn-no:hover {
  background-color: #fbcbcd;
}

/* Выпадающие окна */
html[data-theme="light"] .nav-dropdown,
html[data-theme="light"] .nav-submenu,
html[data-theme="light"] .account-dropdown,
html[data-theme="light"] .tg-dropdown,
html[data-theme="light"] .markets-options {
  box-shadow: 0 12px 32px rgba(30, 50, 80, 0.18);
}

/* Голубая линия графика на белом почти не видна */
html[data-theme="light"] .hero-chart polyline[stroke="#8fc2ff"] {
  stroke: #0891b2;
}
html[data-theme="light"] .hero-chart circle[fill="#8fc2ff"] {
  fill: #0891b2;
}
html[data-theme="light"] .hero-dot[style*="#8fc2ff"],
html[data-theme="light"] .hero-pill[style*="#8fc2ff"] {
  background: #0891b2 !important;
}
.markets-head {
  scroll-margin-top: 24px;
}
#settingsView.is-top {
  min-height: 70vh;
}
.info-text {
  width: 100%;
  max-width: 880px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.info-text h2 {
  margin: 36px 0 12px;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
}
.info-text p {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.75;
}
.info-text p + p {
  margin-top: 12px;
}
#settingsView:has(#infoText:not([hidden])) .page-title {
  width: 100%;
  max-width: 880px;
}
@media (max-width: 700px) {
  .info-text h2 {
    font-size: 20px;
  }
  .info-text p {
    font-size: 16px;
  }
}
.funds-balance {
  margin-bottom: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html[data-theme="light"] .funds-btn:not(.funds-btn-main) {
  background-color: #d9e1eb;
}
.funds-balance-label {
  color: var(--muted);
  font-size: 15px;
}
.funds-balance-value {
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.funds-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.funds-btn {
  height: 46px;
  flex: 1;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}
.funds-btn:hover {
  background-color: var(--surface-4);
}
.funds-btn-main {
  background-color: #2f6bff;
  color: #ffffff;
}
.funds-btn-main:hover {
  background-color: #4a7fff;
}
.funds-btn:active {
  transform: scale(0.97);
}
.funds-tabs {
  padding: 0 20px;
}
.funds-balance {
  margin-bottom: 4px;
}
.funds-tab {
  flex: 1;
}
.funds-tabs .funds-tab {
  font-size: 18px;
}
.modal.funds-modal {
  max-width: 520px;
  min-height: min(720px, calc(100vh / 0.9 - 40px));
  border-radius: 30px;
}
.funds-modal .modal-close {
  top: 20px;
  right: 20px;
}
@media (max-width: 700px) {
  .funds-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal.funds-modal {
    max-width: none;
    min-height: 70vh;
    border-radius: 28px 28px 0 0;
  }
}
.mybets-tabs {
  margin-bottom: 16px;
  display: flex;
  gap: 22px;
}
.mybets-tab {
  padding: 0 0 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mybets-tab:hover {
  color: var(--text);
}
.mybets-tab.is-active {
  color: var(--text);
  border-bottom-color: #2f6bff;
}
.mybets-list {
  display: flex;
  flex-direction: column;
}
.mybet-row {
  width: 100%;
  padding: 16px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-2);
  outline: none;
  color: var(--text);
  font-family: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.15s ease;
}
.mybet-row:hover {
  background-color: var(--surface-row);
}
.mybet-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mybet-q {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mybet-sub {
  color: var(--muted);
  font-size: 14px;
}
.mybet-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.mybet-amount {
  font-size: 17px;
  font-weight: 600;
}
.mybet-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.mybet-badge.is-active {
  background-color: rgba(47, 107, 255, 0.16);
  color: #4a7fff;
}
.mybet-badge.is-cancelled {
  background-color: var(--surface-2);
  color: var(--muted);
}
.mybet-badge.is-won {
  background-color: rgba(61, 220, 132, 0.14);
  color: var(--green);
}
.mybet-badge.is-lost {
  background-color: rgba(255, 90, 90, 0.14);
  color: var(--red);
}
.mybet-back {
  margin-bottom: 14px;
  padding: 6px 10px 6px 0;
  background: none;
  border: none;
  outline: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.mybet-back:hover {
  color: var(--text);
}
.mybet-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.mybet-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.mybet-actions {
  display: flex;
  gap: 10px;
}
.mybet-btn {
  height: 46px;
  flex: 1;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}
.mybet-btn:hover {
  background-color: var(--surface-4);
}
.mybet-btn-danger {
  background-color: rgba(255, 90, 90, 0.14);
  color: var(--red);
}
.mybet-btn-danger:hover {
  background-color: rgba(255, 90, 90, 0.24);
}
.mybet-btn-danger.is-confirm,
.mybet-btn-danger.is-confirm:hover {
  background-color: #e5484d;
  color: #ffffff;
}
.mybet-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.admin-tabs {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 12px;
}
.admin-tab {
  width: 100%;
  padding: 0 0 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.admin-tab:hover {
  color: var(--text);
}
.admin-tab.is-active {
  color: var(--text);
  border-bottom-color: #2f6bff;
}
.admin-users { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr 0.8fr; gap: 16px; padding: 14px 16px; border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 12px; }
.admin-cell { min-width: 0; display: grid; gap: 2px; }
.admin-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-cell span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-empty { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 720px) { .admin-row { grid-template-columns: 1fr 1fr; } }
.admin-events .admin-row { grid-template-columns: 2fr 0.9fr 1.2fr 1.2fr auto; align-items: center; }
.admin-events .admin-cell b,
.admin-events .admin-cell span { white-space: normal; }
@media (max-width: 720px) { .admin-events .admin-row { grid-template-columns: 1fr 1fr; } .admin-cell-act { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .admin-tabs { gap: 10px; }
  .admin-tab { font-size: 15px; }
}
.newev {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newev-add {
  height: 48px;
  background: none;
  border: 1px dashed var(--line-5);
  outline: none;
  border-radius: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.newev-add:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.newev-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.newev-label:first-child {
  margin-top: 0;
}
.newev-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newev-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background-color: var(--surface-2);
  border: 1px solid transparent;
  outline: none;
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.newev-input::placeholder {
  color: var(--muted);
}
.newev-input:focus {
  border-color: var(--border-focus-2);
}
.newev-title {
  height: 56px;
  font-size: 18px;
}
.newev-desc {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}
.newev-create {
  height: 52px;
  margin-top: 14px;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: default;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.newev-create:not(:disabled) {
  background-color: #2f6bff;
  color: #ffffff;
  cursor: pointer;
}
.newev-create:not(:disabled):hover {
  background-color: #4a7fff;
}
.newev-create:not(:disabled):active {
  transform: scale(0.98);
}
.newev-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.newev-photo {
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px dashed var(--line-5);
  border-radius: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.newev-photo:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.newev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newev-photo-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.newev-photo-remove:hover {
  color: var(--red);
}
.admin-row {
  transition: background-color 0.18s ease;
  cursor: default;
}
.admin-cell-act {
  display: flex;
  justify-content: flex-end;
}
.admin-close-btn {
  height: 36px;
  padding: 0 16px;
  background-color: rgba(255, 90, 90, 0.14);
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--red);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.admin-close-btn.is-open {
  opacity: 1;
}
.admin-closed {
  padding: 6px 12px;
  background-color: var(--surface-2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.market-closed {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}
.market-closed b {
  color: var(--text);
  font-size: 17px;
}
.bet-closed {
  margin-bottom: 12px;
  padding: 10px 14px;
  background-color: var(--surface-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.bet-panel.is-closed > :not(.bet-closed) {
  opacity: 0.5;
}
.admin-outcomes {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-outcomes-title {
  margin-right: 4px;
  color: var(--muted);
  font-size: 14px;
}
.admin-outcome {
  height: 40px;
  padding: 0 18px;
  background-color: var(--surface-4);
  border: 1px solid transparent;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.admin-outcome:hover {
  background-color: var(--surface-4-hover);
}
.admin-outcome.is-selected {
  background-color: rgba(47, 107, 255, 0.14);
  border-color: #2f6bff;
}
.admin-close-btn:hover {
  background-color: rgba(255, 90, 90, 0.24);
}
.admin-row:hover .admin-close-btn,
.admin-close-btn:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .admin-close-btn { opacity: 1; }
}
.admin-row:hover {
  background-color: var(--surface-2);
}
#adminRequests .admin-row {
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
  align-items: center;
}
.admin-cell-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.admin-copy-btn {
  justify-content: center;
  min-width: 122px;
}
@media (max-width: 720px) {
  #adminRequests .admin-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-cell-btns {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 18px;
  }
  .admin-tab {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
}
.hero-side.hero-promo {
  overflow: hidden;
  border-radius: 16px;
}
.hero-promo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 1101px) {
  .hero-side.hero-promo {
    position: relative;
    grid-row: 1;
    align-self: stretch;
    min-height: 300px;
  }
  .hero-promo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
html[data-theme="light"] .hero-side.hero-promo {
  padding: 0;
}
.hero-side.hero-recent {
  overflow: hidden;
}
.recent-head {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.recent-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}
.recent-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green);
  animation: recent-pulse 1.8s ease-in-out infinite;
}
@keyframes recent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.recent-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.recent-row:last-child {
  border-bottom: none;
}
.recent-row.is-new {
  animation: recent-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes recent-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.recent-ava {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: var(--surface-2);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recent-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recent-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.recent-name i {
  margin-left: 4px;
  color: var(--green);
  font-style: normal;
}
.recent-q {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.newev-photo.is-drag {
  outline: 2px dashed #2f6bff;
  outline-offset: 3px;
}
.recent-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.recent-side b {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.recent-side span {
  color: var(--muted);
  font-size: 12px;
}
.recent-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
body.is-market main.markets,
body.is-market .sf-wrap {
  display: none !important;
}
.market-card {
  cursor: pointer;
}
.market-page {
  width: calc(100% - 40px);
  max-width: 1450px;
  flex: 1;
  margin: 0 auto;
  padding: 24px 0 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  animation: view-in 0.3s ease-out;
}
.market-page .hero-question {
  overflow-wrap: anywhere;
}
.mp-fav.is-fav {
  color: var(--text);
}
.mp-fav.is-fav svg {
  fill: currentColor;
}
@media (min-width: 1101px) {
  .market-page {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 32px;
    align-content: start;
  }
  .market-page > * {
    grid-column: 1;
  }
}
@media (max-width: 700px) {
  .market-page {
    width: calc(100% - 28px);
    padding-top: 16px;
  }
}
.market-page .hero-body.mp-body-wide {
  grid-template-columns: minmax(0, 1fr);
}
.bet-panel {
  margin-top: 16px;
  align-self: start;
  background-color: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  color: var(--text);
}
.bet-panel button,
.bet-panel input {
  font-family: inherit;
  letter-spacing: inherit;
  outline: none;
}
.bet-head {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bet-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bet-info {
  min-width: 0;
}
.bet-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.bet-pick {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.bet-pick:empty {
  display: none;
}
.bet-tabs {
  padding: 0 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  gap: 16px;
}
.bet-tab {
  padding: 0 0 10px;
  margin-bottom: -1px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bet-tab.is-active {
  color: var(--text);
  border-bottom-color: #2f6bff;
}
.bet-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bet-sides {
  display: flex;
  gap: 8px;
}
.bet-side {
  height: 50px;
  flex: 1;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.bet-yes {
  background-color: rgba(61, 220, 132, 0.14);
  color: var(--green);
}
.bet-no {
  background-color: rgba(255, 90, 90, 0.14);
  color: var(--red);
}
.bet-yes.is-active {
  background-color: #1f9d5c;
  color: #ffffff;
}
.bet-no.is-active {
  background-color: #d94a4a;
  color: #ffffff;
}
.bet-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.bet-amount input {
  min-width: 0;
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
  text-align: right;
  appearance: textfield;
}
.bet-amount input::-webkit-inner-spin-button {
  appearance: none;
}
.bet-amount i {
  color: var(--muted);
  font-size: 30px;
  font-style: normal;
}
.bet-quicks {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.bet-quicks button {
  height: 32px;
  padding: 0 11px;
  background-color: var(--surface-2);
  border: none;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bet-quicks button:disabled {
  opacity: 0.45;
  cursor: default;
}
.bet-win,
.bet-note {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.bet-win:empty,
.bet-note:empty {
  display: none;
}
.bet-submit {
  height: 48px;
  background-color: #2f6bff;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.bet-submit:hover {
  background-color: #4a7fff;
}
.bet-submit.is-disabled,
.bet-submit.is-disabled:hover {
  background-color: #3a4552;
  color: #8b98a5;
  cursor: not-allowed;
}
.bet-submit.is-disabled:active {
  transform: none;
  border-bottom-width: 4px;
}
.market-page .hero-outcomes .market-opt {
  margin: 0 -10px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: default;
}
.bet-side[data-pick] {
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-page .hero-outcomes .market-opt.is-picked {
  background-color: var(--surface-2);
}
@media (min-width: 1101px) {
  .market-page > .bet-panel {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 16px;
    margin-top: 0;
  }
}
.hero-img,
.bet-img {
  overflow: hidden;
}
.hero-img img,
.bet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bet-panel {
  display: flex;
  flex-direction: column;
}
.bet-tabs {
  order: 0;
  padding: 14px 16px 0;
}
.bet-tab {
  font-size: 16px;
}
.bet-head {
  order: 1;
}
.bet-body {
  order: 2;
  padding-top: 4px;
}
.bet-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.bet-pick,
.bet-pick:empty {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
.bet-pick:empty {
  display: none;
}
.bet-side {
  height: 52px;
  border-bottom: 4px solid rgba(0, 0, 0, 0.28);
  color: var(--text-2);
  background-color: var(--surface-2);
  font-weight: 500;
}
.bet-side b {
  font-weight: 700;
}
.bet-yes.is-active {
  background-color: #1f9d5c;
  color: #ffffff;
}
.bet-no.is-active {
  background-color: #d94a4a;
  color: #ffffff;
}
.bet-yes:not(.is-active):hover,
.bet-no:not(.is-active):hover {
  background-color: var(--surface-3-hover);
}
.bet-dash {
  border-top: 1px dashed var(--line-5);
}
.bet-quicks button {
  height: 34px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--line-4);
  border-radius: 10px;
  color: var(--text);
}
.bet-quicks button:hover {
  background-color: var(--surface-2);
}
.bet-submit {
  border-bottom: 4px solid rgba(0, 0, 0, 0.28);
}
.bet-result {
  margin-top: -14px;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}
.bet-result.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.bet-result-wrap {
  min-height: 0;
  overflow: hidden;
}
.bet-result-inner {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bet-result-label b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.bet-odds {
  color: var(--muted);
  font-size: 13px;
}
.bet-result-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 34px;
  font-weight: 600;
  text-align: right;
}
.bet-amount-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.bet-field {
  min-width: 0;
  flex: 1;
  padding: 2px 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  transition: border-color 0.15s ease;
}
.bet-field:focus-within {
  border-color: var(--line-6);
}
.bet-amount input {
  flex: 1;
  text-align: right;
}
.bet-amount i {
  order: 0;
}
.bet-field {
  gap: 2px;
}
.bet-amount input,
.bet-amount i {
  font-family: 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.bet-amount input {
  flex: none;
  min-width: 1ch;
  max-width: 100%;
  padding: 0;
  text-align: left;
}
.bet-amount input::placeholder {
  color: var(--dim);
}
.bet-amount i {
  color: var(--muted);
}
.bet-field {
  width: 190px;
  flex: none;
  height: 52px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  justify-content: flex-end;
  gap: 2px;
  transition: border-color 0.15s ease;
}
.bet-field:focus-within {
  border-color: var(--border-focus);
}
.bet-amount i {
  transition: color 0.15s ease;
}
.bet-field:focus-within i,
.bet-field:has(.bet-input:not(:placeholder-shown)) i {
  color: var(--text);
}
.bet-amount input {
  caret-color: var(--text);
  color: var(--text);
}
.bet-amount {
  justify-content: space-between;
}
.bet-field {
  width: auto;
  flex: 1;
  max-width: 220px;
  margin-left: auto;
  justify-content: flex-end;
}
.bet-field {
  max-width: none;
  border-width: 3px;
}
.bet-field:focus-within {
  border-color: var(--border-focus-2);
}
.bet-field {
  border-width: 4px;
}
.bet-field:focus-within {
  border-color: var(--muted);
}
.bet-amount .bet-field:not(.has-value) i,
.bet-amount .bet-field:not(.has-value):focus-within i {
  color: var(--muted);
}
.bet-amount .bet-field.has-value i {
  color: var(--text);
}
.bet-result-label {
  flex-shrink: 0;
}
.bet-result-value {
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.bet-result-inner {
  padding-right: 18px;
}
.bet-result {
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.bet-result-label,
.bet-result-value {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bet-result.is-open .bet-result-label,
.bet-result.is-open .bet-result-value {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.bet-result.is-open .bet-result-value {
  transition-delay: 0.08s;
}
.bet-result-value.is-tick {
  animation: win-tick 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes win-tick {
  0% {
    transform: translateY(5px) scale(0.97);
    opacity: 0.55;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.bet-result {
  transition: grid-template-rows 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}
.bet-result-label,
.bet-result-value {
  opacity: 0;
  filter: none;
  transform: translateX(-24px) scale(0.92);
  transition: opacity 0.12s ease, transform 0.4s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.bet-result-value {
  transform: translateX(32px) scale(0.85);
  transform-origin: right center;
}
.bet-result.is-open .bet-result-label,
.bet-result.is-open .bet-result-value {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.bet-result.is-open .bet-result-label {
  transition-delay: 0.05s;
}
.bet-result.is-open .bet-result-value {
  transition-delay: 0.1s;
}
.bet-result-value.is-tick {
  animation: win-snap 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes win-snap {
  0% {
    transform: scale(0.88) translateY(6px);
    color: var(--text);
    text-shadow: 0 0 0 rgba(61, 220, 132, 0);
  }
  45% {
    transform: scale(1.1) translateY(-2px);
    color: #7dffb4;
    text-shadow: 0 0 18px rgba(61, 220, 132, 0.75);
  }
  100% {
    transform: scale(1) translateY(0);
    color: var(--green);
    text-shadow: 0 0 0 rgba(61, 220, 132, 0);
  }
}
.bet-result {
  transition: grid-template-rows 0.35s cubic-bezier(0.34, 1.15, 0.64, 1), opacity 0.15s ease;
}
.bet-result-label,
.bet-result-value {
  transition: opacity 0.12s ease, transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.bet-result-value.is-tick {
  animation: win-snap 0.3s cubic-bezier(0.2, 1.15, 0.4, 1);
}
@keyframes win-snap {
  0% {
    transform: scale(0.94) translateY(4px);
    color: var(--text);
  }
  50% {
    transform: scale(1.04) translateY(-1px);
    color: #7dffb4;
  }
  100% {
    transform: scale(1) translateY(0);
    color: var(--green);
  }
}
.bet-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bet-pick:empty {
  display: none;
}
.mp-info {
  margin-top: 28px;
  padding: 0 4px;
}
.mp-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}
.mp-tab {
  padding: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--dim);
  font-family: inherit;
  letter-spacing: inherit;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mp-tab:hover {
  color: var(--muted);
}
.mp-tab.is-active {
  color: var(--text);
}
.mp-pane p {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
.mp-pane p + p {
  margin-top: 12px;
}
.mp-comments {
  margin-top: 32px;
  padding: 0 4px;
}
.mp-comments-title {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}
.mp-comment-box {
  min-height: 112px;
  padding: 14px 16px 12px;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s ease;
}
.mp-comment-box:focus-within {
  border-color: var(--line-6);
}
.mp-comment-input {
  min-height: 40px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  outline: none;
}
.mp-comment-input:empty::before {
  content: attr(data-placeholder);
  color: var(--dim);
}
.mp-comment-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mp-comment-left,
.mp-comment-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mp-comment-tool {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: none;
  border: none;
  outline: none;
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mp-comment-tool:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.mp-comment-tool svg {
  width: 22px;
  height: 22px;
}
.mp-comment-blue {
  color: #2f6bff;
}
.mp-comment-blue:hover {
  color: #4a7fff;
}
.mp-comment-gif {
  font-size: 11px;
  background-color: var(--surface-4);
  color: var(--text);
  border-radius: 5px;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
}
.mp-comment-gif:hover {
  background-color: var(--surface-4-hover);
}
.mp-comment-send {
  height: 36px;
  padding: 0 18px;
  background-color: #2f6bff;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.mp-comment-send:hover {
  background-color: #4a7fff;
}
.mp-comments-empty {
  padding: 36px 0 16px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
}
.mp-comments-empty::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b98a5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-8.9 8.4 9 9 0 0 1-3.6-.8L3 21l1.9-5.1A8.4 8.4 0 0 1 3.9 11.5 8.5 8.5 0 0 1 12.4 3 8.4 8.4 0 0 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mp-comment-input {
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  caret-color: var(--text);
}
.mp-comment-bar {
  justify-content: flex-end;
}
.mp-pane p {
  font-size: 17px;
  line-height: 1.65;
}
.mp-comment-input {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.5;
}
.mp-comment-send {
  height: 44px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 17px;
}
.bet-side,
.bet-submit,
.bet-quicks button {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease, border-bottom-width 0.12s ease;
}
.bet-side:active,
.bet-submit:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.bet-quicks button:active {
  transform: scale(0.94);
}
.bet-side.is-active {
  animation: side-pick 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes side-pick {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.market-page .hero-outcomes .market-opt {
  transition: background-color 0.2s ease, transform 0.12s ease;
}
.market-page .hero-outcomes .market-opt:active {
  transform: none;
}
.bet-pick {
  animation: pick-in 0.3s ease;
}
@keyframes pick-in {
  from { opacity: 0; transform: translateY(4px); }
}
.mp-comments-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}
.mp-comment {
  padding: 18px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-1);
}
.mp-comment:last-child {
  border-bottom: 0;
}
.mp-comment-head {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mp-comment-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
.mp-comment-time {
  color: var(--muted);
  font-size: 15px;
}
.mp-comment-text {
  color: var(--text-soft-2);
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.modal.funds-modal {
  max-height: calc(100vh / 0.9 - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}
.modal.funds-modal::-webkit-scrollbar {
  display: none;
}
.fm {
  min-height: calc(min(720px, 100vh / 0.9 - 40px) - 64px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  text-align: center;
}
.fm-title {
  padding: 0 48px;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
}
.fm-sub {
  margin-top: -10px;
  color: var(--muted);
  font-size: 16px;
}
.fm-qrcard {
  position: relative;
  padding: 18px;
  background-color: #ffffff;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  line-height: 0;
}
.fm-qr-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 5px solid #ffffff;
  border-radius: 16px;
  box-sizing: content-box;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 54px;
  text-align: center;
}
.fm-qr-copy {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #6b7785;
}
.fm-qr-copy:hover {
  background-color: #eef1f5;
  color: #0f1923;
}
.fm-label-c {
  margin-top: 4px;
  color: var(--muted);
  font-size: 17px;
}
.fm-coins {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.fm-coin {
  width: 118px;
  padding: 10px 6px 8px;
  background: none;
  border: 2px solid transparent;
  outline: none;
  border-radius: 20px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.fm-coin:hover {
  background-color: var(--surface-2);
}
.fm-coin:active {
  transform: scale(0.96);
}
.fm-coin.is-active {
  border-color: var(--border-focus-2);
}
.fm-coin-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 6px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-coin b {
  font-size: 16px;
  font-weight: 600;
}
.fm-coin span:last-child {
  color: var(--muted);
  font-size: 14px;
}
.fm-card {
  padding: 18px;
  background-color: var(--surface-2);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fm-input-wrap {
  height: 58px;
  padding: 0 18px;
  background-color: var(--surface);
  border: 2px solid transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.fm-input-wrap:focus-within {
  border-color: var(--border-focus-2);
}
.fm-input {
  min-width: 0;
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
}
.fm-input-sm {
  font-size: 15px;
  font-weight: 500;
}
.fm-input::placeholder {
  color: var(--dim);
  font-weight: 500;
}
.fm-input-wrap i {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}
.fm-label,
.fm-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.fm-submit {
  height: 54px;
  background-color: #2f6bff;
  border: none;
  outline: none;
  border-radius: 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}
.fm-submit:hover {
  background-color: #4a7fff;
}
.fm-submit:active {
  transform: scale(0.98);
}
.fm-link {
  height: 40px;
  background: none;
  border: none;
  outline: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.fm-link:hover {
  color: var(--text);
}
.fm-msg {
  color: var(--muted);
  font-size: 14px;
}
.fm-msg:empty {
  display: none;
}
.fm-row {
  padding: 12px 12px 12px 18px;
  background-color: var(--surface-2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.fm-row-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fm-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}
.fm-copy {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  outline: none;
  border-radius: 12px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.fm-copy:hover {
  background-color: var(--surface-4);
  color: var(--text);
}
.fm-copy svg {
  width: 22px;
  height: 22px;
}
.fm-copy.is-copied {
  color: var(--green);
}
.fm-foot {
  margin: auto -32px -32px;
  padding: 16px 28px;
  background-color: rgba(0, 0, 0, 0.14);
  border-radius: 0 0 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fm-foot-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.fm-foot-brand img {
  height: 30px;
  width: auto;
}
.fm-foot-info {
  width: 36px;
  height: 36px;
  background-color: var(--surface-3);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 36px;
  cursor: help;
}
html[data-theme="light"] .fm-foot-brand img {
  filter: brightness(0) opacity(0.9);
}
@media (max-width: 700px) {
  .fm-foot {
    margin: auto -32px -32px;
    border-radius: 0;
  }
  .fm-coin {
    width: 104px;
  }
}
.fm {
  gap: 14px;
}
.fm-title {
  font-size: 22px;
}
.fm-sub {
  margin-top: -8px;
  font-size: 17px;
}
.fm-qrcard {
  padding: 26px 0;
  border-radius: 26px;
}
.fm-qrcard #fmQr {
  line-height: 0;
}
.fm-qr-badge {
  width: 76px;
  height: 76px;
  border: none;
  background-color: #ffffff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fm-qr-badge span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}
.fm-qr-copy {
  right: 14px;
  bottom: 12px;
  width: 36px;
  height: 36px;
}
.fm-label-c {
  margin-top: 6px;
  font-size: 18px;
}
.fm-coins {
  gap: 10px;
}
.fm-coin {
  width: 96px;
  padding: 0;
  border: none;
  border-radius: 14px;
  gap: 0;
}
.fm-coin:hover {
  background: none;
}
.fm-coin-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  border-radius: 18px;
}
.fm-coin b {
  font-size: 16px;
  line-height: 1.25;
}
.fm-coin span:last-child {
  font-size: 15px;
}
.fm-coin:not(.is-active) .fm-coin-icon {
  opacity: 0.55;
}
.fm-coin.is-active {
  border: none;
}
.fm-coin.is-active b {
  color: var(--text);
}
.fm-row {
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
}
.fm-foot {
  margin-top: auto;
  padding: 20px 28px;
  background-color: rgba(0, 0, 0, 0.2);
}
.fm-foot-brand {
  font-size: 20px;
}
.fm-qr-error {
  padding: 40px 20px;
  color: #0f1923;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.fm-foot {
  position: relative;
  margin-top: auto;
  padding: 44px 28px 20px;
  background-color: var(--surface-2);
  border-radius: 0 0 32px 32px;
}
.fm-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background-color: var(--surface);
  border-radius: 0 0 28px 28px;
}
.fm-foot-brand {
  font-size: 22px;
  font-weight: 700;
}
.fm-foot-brand img {
  height: 34px;
}
.fm-foot-info {
  width: 40px;
  height: 40px;
  background-color: var(--surface-3-hover);
  color: var(--muted);
  font-size: 20px;
  line-height: 40px;
}
.fm-foot-info:hover {
  background-color: var(--surface-4);
  color: var(--text);
}
@media (max-width: 700px) {
  .fm-foot {
    border-radius: 0;
  }
}
button.fm-foot-info {
  padding: 0;
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.fm-info-back {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--surface-3);
  border: none;
  outline: none;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.fm-info-back:hover {
  background-color: var(--surface-3-hover-2);
  color: var(--text);
}
.fm-info-back svg {
  width: 21px;
  height: 21px;
}
.fm-info {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: view-in 0.25s ease-out;
}
.fm-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fm-info-item svg {
  width: 54px;
  height: 54px;
  color: var(--muted);
}
.fm-info-item h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.fm-info-item p {
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.fm-info-ok {
  height: 44px;
  margin: 4px auto 0;
  padding: 0 28px;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 12px;
  color: #4a9bff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fm-info-ok:hover {
  background-color: var(--surface-4);
}
.fm-title-top {
  margin-top: -14px;
  font-size: 22px;
  line-height: 32px;
}
.fm-sub-top {
  margin-top: -14px;
  color: var(--muted);
  font-size: 16px;
}
.fm-info-back ~ .fm-title {
  margin-top: -9px;
  font-size: 22px;
  line-height: 32px;
}
.fm-bal {
  padding: 6px;
  background-color: var(--surface-2);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fm-bal-card {
  padding: 14px 18px 16px;
  background-color: var(--surface);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.fm-bal-label {
  color: var(--muted);
  font-size: 14px;
}
.fm-bal-value {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fm-bal-tabs {
  display: flex;
  gap: 4px;
}
.fm-bal-tab {
  height: 48px;
  flex: 1;
  background: none;
  border: none;
  outline: none;
  border-radius: 14px;
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.fm-bal-tab:hover {
  color: var(--text);
}
.fm-bal-tab.is-active {
  background-color: var(--surface);
  color: var(--text);
}
.fm-bal {
  padding: 0;
  background: none;
  border-radius: 0;
  gap: 4px;
  align-items: center;
}
.fm-bal-label {
  color: var(--muted);
  font-size: 15px;
}
.fm-bal-value {
  color: var(--text);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fm-bal-tabs {
  margin-top: 6px;
  gap: 22px;
  justify-content: center;
}
.fm-bal-tab {
  height: 32px;
  flex: none;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--dim);
  font-size: 18px;
}
.fm-bal-tab:hover {
  color: var(--muted);
}
.fm-bal-tab.is-active {
  background: none;
  color: var(--text);
}
.fm-bal-box {
  width: 100%;
  padding: 14px 18px 16px;
  border: 2px solid var(--line-5);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fm-bal {
  padding: 6px;
  background-color: var(--surface-2);
  border-radius: 22px;
  align-items: stretch;
  gap: 6px;
}
.fm-bal-box {
  width: 100%;
  padding: 14px 18px 16px;
  background-color: var(--surface);
  border: none;
  border-radius: 17px;
  align-items: flex-start;
  gap: 4px;
}
.fm-bal-label {
  font-size: 14px;
}
.fm-bal-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fm-bal-tabs {
  margin-top: 0;
  gap: 0;
  justify-content: stretch;
}
.fm-bal-tab {
  position: relative;
  height: 48px;
  flex: 1;
  border-radius: 14px;
  color: var(--muted);
  font-size: 17px;
}
.fm-bal-tab:hover {
  color: var(--text);
}
.fm-bal-tab.is-active {
  background-color: var(--surface);
  color: var(--text);
}
.fm-bal-tab:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background-color: var(--line-4);
}
.fm-bal-tab.is-active::before,
.fm-bal-tab.is-active + .fm-bal-tab::before {
  opacity: 0;
}
.fm-bal {
  margin: 0 -8px;
  padding: 7px;
}
.fm-bal-box {
  padding: 18px 20px 20px;
}
.fm-bal-tab {
  height: 54px;
}
.fm-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.fm-acc,
.fm-pay-tile {
  position: relative;
  background-color: var(--surface-2);
  border: 2px solid transparent;
  outline: none;
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.fm-acc:hover,
.fm-pay-tile:hover {
  background-color: var(--surface-3-hover);
}
.fm-acc:active,
.fm-pay-tile:active {
  transform: scale(0.98);
}
.fm-acc.is-active,
.fm-pay-tile.is-active {
  background-color: var(--surface-4);
  border-color: var(--border-focus-2);
}
.fm-acc {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fm-acc-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fm-acc-text b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
}
.fm-acc-text b svg {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}
.fm-acc-text > span {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.fm-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fm-pay-tile {
  height: 92px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.fm-pay-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-pay-card {
  width: 34px;
  height: 30px;
  border-radius: 0;
  color: var(--text);
}
.fm-pay-card svg {
  width: 34px;
  height: 30px;
}
.fm-pay-name {
  font-size: 15px;
  font-weight: 600;
}
.fm-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-5);
  border-radius: 50%;
  transition: border-color 0.15s ease;
}
.fm-acc .fm-dot {
  position: static;
  flex-shrink: 0;
}
.fm-active .fm-dot,
.is-active > .fm-dot {
  border-color: var(--text);
}
.is-active > .fm-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background-color: var(--text);
  border-radius: 50%;
}
.fm-acc .fm-dot {
  position: relative;
}
.fm-acc {
  cursor: default;
  background-color: var(--surface-2);
  border-color: transparent;
}
.fm-acc:hover,
.fm-acc:active {
  background-color: var(--surface-2);
  transform: none;
}
.fm-pay-icon:not(.fm-pay-card) {
  position: relative;
  width: 34px;
  height: 34px;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 5px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.35);
}
.fm-pay-icon:not(.fm-pay-card)::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.fm-pay-tile {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.fm-pay-tile:hover .fm-pay-icon {
  transform: translateY(-2px) rotate(-6deg);
}
.fm-pay-icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fm-acc-text > span {
  font-size: 14px;
  letter-spacing: 0;
  word-break: break-all;
  line-height: 1.35;
}
.fm-pay-tile:hover .fm-pay-icon {
  transform: none;
}
.fm-pay-icon {
  transition: none;
}
.fm-pay-tile,
.fm-pay-tile:active {
  transform: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fm-bal-tabs {
  position: relative;
}
.fm-bal-pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / 3);
  background-color: var(--surface);
  border-radius: 14px;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  z-index: 0;
}
.fm-bal-tab {
  z-index: 1;
  transition: color 0.25s ease;
}
.fm-bal-tab.is-active {
  background: none;
}
.fm-bal-value {
  font-variant-numeric: tabular-nums;
}
.fm-bal-value.is-pop {
  animation: fm-bal-pop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes fm-bal-pop {
  0% { transform: scale(0.94); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.fm-bal-tab::before,
.fm-bal-tab:not(:first-child)::before {
  display: none;
}
.fm-pay-tile.is-active {
  background-color: var(--surface-2);
  border-color: transparent;
}
.fm-pay-tile .fm-dot {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-5);
  background-color: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.fm-pay-tile.is-active > .fm-dot {
  background-color: #2f6bff;
  border-color: #2f6bff;
}
.fm-pay-tile.is-active > .fm-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 12.5 10.5 17 18 8'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.fm-pay-tile.is-active > .fm-dot::after {
  display: none;
}
.fm-pay-tile .fm-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
  transition: border-color 0.2s ease;
}
.fm-pay-tile .fm-dot::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-color: #2f6bff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fm-pay-tile.is-active > .fm-dot {
  background-color: transparent;
  border-color: #2f6bff;
  animation: fm-dot-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fm-pay-tile.is-active > .fm-dot::before {
  transform: scale(1);
}
.fm-pay-tile .fm-dot svg {
  position: relative;
  width: 15px;
  height: 15px;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.fm-pay-tile.is-active > .fm-dot svg {
  animation: fm-check-draw 0.3s ease 0.12s forwards;
}
@keyframes fm-check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes fm-dot-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.fm-dep {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fm-dep-input {
  height: 60px;
  background-color: var(--surface-2);
}
.fm-dep-input i {
  font-size: 20px;
}
.fm-dep .fm-submit {
  height: 58px;
  font-size: 18px;
}
.fm-terms {
  margin-top: 0;
  margin-bottom: -6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.fm-terms a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.fm-terms a:hover {
  color: var(--text);
}
.fm-info-back ~ .fm-title-top {
  margin-top: -9px;
}
.fm:has(.fm-dep) {
  min-height: 0;
}
.modal.funds-modal:has(.fm-dep) {
  min-height: 0;
}
.fm-dep + .fm-foot {
  margin-top: -10px;
}
.fm-submit.is-disabled,
.fm-submit.is-disabled:hover {
  background-color: var(--surface-3);
  color: var(--muted);
  cursor: default;
}
.fm-submit.is-disabled:active {
  transform: none;
}
.fm-slide-next > :not(.fm-foot),
.fm-slide-back > :not(.fm-foot) {
  animation: fm-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.fm-slide-next > :nth-child(2),
.fm-slide-back > :nth-child(2) { animation-delay: 0.06s; }
.fm-slide-next > :nth-child(3),
.fm-slide-back > :nth-child(3) { animation-delay: 0.12s; }
.fm-slide-next > :nth-child(4),
.fm-slide-back > :nth-child(4) { animation-delay: 0.18s; }
.fm-slide-next > :nth-child(5),
.fm-slide-back > :nth-child(5) { animation-delay: 0.24s; }
@keyframes fm-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}
.fm-qrcard {
  padding: 24px 0;
  border-radius: 24px;
}
.fm-qrcard {
  padding: 24px 0;
  border-radius: 22px;
}
.fm-qrcard #fmQr img,
.fm-qrcard #fmQr canvas,
.fm-qrcard #fmQr svg {
  display: block;
  width: 330px;
  height: 330px;
}
.fm-qr-badge {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}
.fm-qr-badge span {
  width: 64px;
  height: 64px;
  font-size: 30px;
  box-shadow: none;
}
.fm-qr-copy {
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  color: #6b7785;
}
.fm-qr-copy svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 700px) {
  .fm-qrcard #fmQr img,
  .fm-qrcard #fmQr canvas,
  .fm-qrcard #fmQr svg {
    width: 270px;
    height: 270px;
  }
}
.fm-wallets-title {
  margin-top: 6px;
  color: var(--muted);
  font-size: 17px;
}
.fm-wallets {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.fm-wallet {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease;
}
.fm-wallet:active {
  transform: scale(0.95);
}
.fm-wallet-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.fm-wallet:hover .fm-wallet-icon {
  transform: translateY(-2px);
}
.fm-wallet-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.fm-alt-title {
  margin-top: 6px;
  color: var(--muted);
  font-size: 17px;
}
.fm-alt {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.fm-alt-item {
  width: 84px;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease;
}
.fm-alt-item:active {
  transform: scale(0.95);
}
.fm-alt-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.fm-alt-item:hover .fm-alt-icon {
  transform: translateY(-2px);
}
.fm-alt-name {
  font-size: 15px;
  font-weight: 600;
}
.fm-alt-name {
  line-height: 1.25;
  text-align: center;
}
.fm-pay-name {
  max-width: calc(100% - 30px);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm:has(#fmQr),
.fm:has(.fm-done),
.modal.funds-modal:has(#fmQr),
.modal.funds-modal:has(.fm-done) {
  min-height: 0;
}
.fm-msg + .fm-foot,
.fm-done + .fm-foot {
  margin-top: -10px;
}
.fm-done {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fm-done .fm-submit {
  width: 100%;
  margin-top: 8px;
}
.fm-done-icon svg {
  width: 96px;
  height: 96px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fm-done-icon circle {
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: fm-draw 0.6s ease forwards;
}
.fm-done-icon polyline {
  stroke-width: 4;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: fm-draw 0.35s ease 0.5s forwards;
}
@keyframes fm-draw {
  to { stroke-dashoffset: 0; }
}
.fm-done-text {
  color: var(--muted);
  font-size: 17px;
}
.fm-done-text b {
  color: var(--text);
}
.fm:has(#fmWithdraw),
.modal.funds-modal:has(#fmWithdraw) {
  min-height: 0;
}
.fm-sub-top b {
  color: var(--text);
}
.fm-card .fm-input-wrap i {
  font-size: 22px;
}
.fm-max {
  height: 32px;
  padding: 0 12px;
  flex-shrink: 0;
  background-color: var(--surface-2);
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fm-max:hover {
  background-color: var(--surface-4);
}
.fm-wd {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fm-wd .fm-input-wrap {
  background-color: var(--surface-2);
}
.fm-wd .fm-input-wrap:focus-within {
  border-color: var(--border-focus-2);
}
.fm-wd .fm-max {
  background-color: var(--surface-4);
}
.fm-wd .fm-max:hover {
  background-color: var(--surface-4-hover);
}
.fm-wd-note {
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .nav-search {
    display: none;
  }
  nav {
    justify-content: space-between;
  }
}
@media (max-width: 1100px) {
  .market-page {
    display: flex;
    flex-direction: column;
  }
  .market-page > * {
    min-width: 0;
    width: 100%;
    align-self: stretch;
  }
  .market-page > .hero-card {
    order: 1;
  }
  .market-page > .bet-panel {
    order: 2;
  }
  .market-page > .mp-info {
    order: 3;
  }
  .market-page > .mp-comments {
    order: 4;
  }
}
@media (max-width: 700px) {
  .nav-tg {
    display: flex;
    height: 40px;
    max-width: 118px;
    margin: 0 6px 0 auto;
    padding: 0 10px;
    gap: 6px;
    font-size: 15px;
  }
  .nav-tg span,
  .nav-start span {
    min-width: 0;
    max-width: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .nav-tg .nav-tg-arrow,
  .nav-start .acc-arrow {
    display: none;
  }
  .nav-tg,
  .nav-tg:not(.is-connected),
  .nav-actions,
  .nav-actions:has(.nav-start:not(.is-connected)),
  .nav-balance {
    transform: none;
  }
  .nav-start,
  .nav-start:not(.is-connected),
  .nav-start.is-connected {
    min-width: 0;
    max-width: 118px;
    padding: 0 10px;
    gap: 6px;
    font-size: 15px;
  }
  .tg-dropdown {
    left: auto;
    right: 0;
  }
}
#heroCard {
  opacity: 0;
  transition: opacity 0.2s ease;
}
#heroCard.is-ready {
  opacity: 1;
}
.mybet-row.fund-row {
  padding: 16px 20px;
  cursor: default;
}
.mybet-row.fund-row:hover {
  background: none;
}
.fund-row .mybet-amount.is-in {
  color: var(--green);
}
.admin-cell-act {
  gap: 8px;
}
.admin-pause-btn {
  height: 36px;
  padding: 0 16px;
  background-color: rgba(255, 184, 46, 0.16);
  border: none;
  outline: none;
  border-radius: 10px;
  color: #e5a00d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.admin-pause-btn:hover {
  background-color: rgba(255, 184, 46, 0.28);
}
.admin-row:hover .admin-pause-btn,
.admin-pause-btn:focus-visible,
.admin-pause-btn.is-paused {
  opacity: 1;
}
@media (hover: none) {
  .admin-pause-btn { opacity: 1; }
}
@media (max-width: 700px) {
  .hero-side.hero-recent {
    display: none !important;
  }
}
.nav-search {
  position: relative;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 440px;
  padding: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  background-color: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: default;
  z-index: 120;
}
.search-results::-webkit-scrollbar {
  display: none;
}
.search-item {
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease;
}
.search-item:hover,
.search-item.is-active {
  background-color: var(--surface-2);
}
.search-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}
.search-letter {
  background-color: var(--surface-3);
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-q {
  min-width: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-meta {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.search-empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.ton-logo {
  width: 100%;
  height: 100%;
  display: block;
}
.fm-pay-icon:has(.ton-logo) {
  box-shadow: none;
  text-shadow: none;
}
.fm-pay-icon:has(.ton-logo)::after {
  display: none;
}
.bet-sides:has(.bet-side:nth-child(4)) {
  flex-wrap: wrap;
}
.bet-sides:has(.bet-side:nth-child(4)) .bet-side {
  flex: 1 1 calc(50% - 4px);
}
.crowd-sub {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.crowd-row {
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.crowd-row:hover {
  background-color: var(--surface-row);
}
.crowd-row .recent-name i {
  margin-left: 0;
}
.crowd-ava {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.crowd-pct {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.recent-side .crowd-odds {
  color: var(--green);
  font-size: 18px;
}