:root {
  color-scheme: only light;
  --shell-height: 100dvh;
  --shell-width: min(100%, 460px);
  --page-gutter: 16px;
  --footer-height: 72px;
  --header-height: 72px;
  --bottom-nav-clearance: calc(var(--footer-height) + 56px + env(safe-area-inset-bottom));
  --market-grid-columns: minmax(92px, 1.5fr) minmax(58px, 0.86fr) minmax(50px, 0.76fr) minmax(62px, 0.9fr);
  --market-hero-sticky-height: 126px;
  --text-main: #1f3552;
  --text-soft: #627b98;
  --accent-strong: #2e5b88;
  --footer-bg: #f3f9ff;
  --section-bg: rgba(255, 255, 255, 0.54);
  --section-border: rgba(116, 154, 194, 0.2);
  --shadow: 0 24px 60px rgba(58, 98, 145, 0.14);
}

:root,
html,
body,
.app-shell {
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html[data-theme="light"] {
  color-scheme: only light;
  background-color: #eef7ff;
}

html,
body {
  color-scheme: only light;
  background-color: #eef7ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

footer {
    margin-bottom: 0;
    padding-bottom: 0;
}

html {
  font-size: 16.5px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.64), transparent 30%),
    radial-gradient(circle at bottom right, rgba(129, 180, 233, 0.34), transparent 30%),
    linear-gradient(180deg, #eef7ff 0%, #cfe3f6 52%, #eaf3fb 100%);
  display: flex;
  justify-content: center;
  padding: var(--page-gutter);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="light"],
  html[data-theme="light"] body {
    color-scheme: only light;
    background-color: #eef7ff;
  }

  html[data-theme="light"] body {
    color: #1f3552;
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.64), transparent 30%),
      radial-gradient(circle at bottom right, rgba(129, 180, 233, 0.34), transparent 30%),
      linear-gradient(180deg, #eef7ff 0%, #cfe3f6 52%, #eaf3fb 100%);
  }

  html[data-theme="light"] .app-shell {
    background: linear-gradient(180deg, rgba(85, 143, 201, 0.28), rgba(255, 255, 255, 0.3) 52%, rgba(187, 216, 243, 0.28) 100%);
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: var(--shadow);
  }
}

.app-shell {
  width: var(--shell-width);
  height: var(--shell-height);
  min-height: var(--shell-height);
  background: linear-gradient(180deg, rgba(85, 143, 201, 0.28), rgba(255, 255, 255, 0.3) 52%, rgba(187, 216, 243, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.5), transparent 38%),
    radial-gradient(circle at top right, rgba(111, 168, 224, 0.18), transparent 30%);
  pointer-events: none;
}

.top-bar,
.bottom-nav {
  z-index: 2;
  display: flex;
  align-items: center;
}

.top-bar {
  justify-content: space-between;
  position: relative;
  margin-bottom: 4px;
  overflow: visible;
}

.profile-button,
.action-button,
.nav-item {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.profile-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
}

.profile-button {
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 0.76rem;
}

.profile-button__label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.profile-menu-toggle {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.profile-button.is-open .profile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.profile-button.is-open .profile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.profile-button.is-open .profile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  list-style: none;
  padding: 14px 0 18px;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background:
    linear-gradient(180deg, rgba(233, 245, 255, 0.96), rgba(208, 229, 248, 0.96) 54%, rgba(232, 243, 252, 0.98) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 10px 0 30px rgba(53, 91, 132, 0.16);
  backdrop-filter: blur(14px);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  z-index: 1100;
}

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

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #31506f;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.profile-menu__item[hidden] {
  display: none;
}

.profile-menu__item + .profile-menu__item {
  border-top: 1px solid rgba(116, 154, 194, 0.16);
}

.profile-menu__item--login,
.profile-menu__item--logout {
  font-weight: 800;
  cursor: pointer;
}

.profile-menu__item--login {
  margin-top: 6px;
  color: #0e6f3d;
  background: rgba(232, 248, 240, 0.72);
}

.profile-menu__item--logout {
  color: #9f3131;
  background: rgba(255, 241, 241, 0.72);
}

.profile-menu__item--account-action {
  padding-left: 28px;
}

.profile-menu__item--account-list {
  display: block;
  padding: 8px 10px 10px 28px;
}

.profile-known-accounts {
  display: grid;
  gap: 6px;
  width: 100%;
}

.profile-known-account {
  width: 100%;
  border: 1px solid rgba(116, 154, 194, 0.18);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.88);
  color: #31506f;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
}

.profile-known-account__avatar {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7dc3ff, #2e5b88);
  color: #f8fbff;
  font-size: 0.7rem;
  font-weight: 900;
}

.profile-known-account__copy {
  min-width: 0;
}

.profile-known-account__copy strong,
.profile-known-account__copy span {
  display: block;
}

.profile-known-account__copy span {
  color: #607b98;
  font-size: 0.7rem;
  margin-top: 2px;
}

.profile-menu__item--photo {
  padding-top: 8px;
  padding-bottom: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.profile-menu__avatar {
  width: 42px;
  min-width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7dc3ff, #2e5b88);
  color: #f8fbff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  line-height: 1;
}

.profile-menu__avatar.has-image {
  border: 1px solid rgba(49, 80, 111, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-menu__profile-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-menu__profile-copy span,
.profile-menu__profile-copy small {
  overflow-wrap: anywhere;
}

.profile-menu__profile-copy small {
  color: #607b98;
  font-size: 0.68rem;
  font-weight: 600;
}

.profile-menu__details {
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px 66px;
  border-top: 1px solid rgba(116, 154, 194, 0.16);
  color: #31506f;
}

.profile-menu__details[hidden] {
  display: none;
}

.profile-menu__details div {
  display: grid;
  gap: 2px;
}

.profile-menu__details span {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 700;
}

.profile-menu__details strong {
  color: #31506f;
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-menu__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.88;
}

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

.action-button {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.action-button:hover,
.nav-item:hover,
.profile-button:hover {
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 20px 20px var(--bottom-nav-clearance);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

main::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  height: max(0px, calc(var(--shell-height) - 300px));
}

.main--combined::after {
  content: none;
}

.content-section {
  width: 100%;
}

.store-only-section {
  display: none;
}

.glrank-only-section {
  display: none;
}

.bots-only-section {
  display: none;
}

.trades-only-section {
  display: none;
}

.assets-only-section {
  display: none;
}

.invite-only-section {
  display: none;
}

.commission-only-section,
.team-only-section,
.notification-only-section,
.more-only-section,
.risk-only-section,
.leaders-only-section,
.settings-only-section,
.contact-only-section,
.about-only-section,
.faq-only-section {
  display: none;
}

.profits-only-section {
  display: none;
}

.market-only-section,
.market-only-fab {
  display: none;
}

.analysis-only-section {
  display: none;
}

body.view-store .home-only-section {
  display: none;
}

body.view-store .store-only-section {
  display: block;
}

body.view-glrank .home-only-section,
body.view-glrank .store-only-section {
  display: none;
}

body.view-glrank .glrank-only-section {
  display: block;
}

body.view-market .home-only-section,
body.view-market .store-only-section,
body.view-market .glrank-only-section,
body.view-market .invite-only-section,
body.view-market .profits-only-section,
body.view-market .trades-only-section {
  display: none;
}

body.view-market .market-only-section {
  display: block;
}

body.view-market .market-only-fab {
  display: inline-flex;
}

body.view-analysis .home-only-section,
body.view-analysis .store-only-section,
body.view-analysis .glrank-only-section,
body.view-analysis .market-only-section,
body.view-analysis .invite-only-section,
body.view-analysis .profits-only-section,
body.view-analysis .trades-only-section,
body.view-analysis .bots-only-section,
body.view-analysis .assets-only-section {
  display: none;
}

body.view-analysis .analysis-only-section {
  display: block;
}

body.view-trades .home-only-section,
body.view-trades .store-only-section,
body.view-trades .glrank-only-section,
body.view-trades .invite-only-section,
body.view-trades .profits-only-section,
body.view-trades .market-only-section {
  display: none;
}

body.view-trades .trades-only-section {
  display: block;
}

body.view-bots .home-only-section,
body.view-bots .store-only-section,
body.view-bots .glrank-only-section,
body.view-bots .invite-only-section,
body.view-bots .profits-only-section,
body.view-bots .market-only-section,
body.view-bots .trades-only-section {
  display: none;
}

body.view-bots .bots-only-section {
  display: block;
}

body.view-assets .home-only-section,
body.view-assets .store-only-section,
body.view-assets .glrank-only-section,
body.view-assets .invite-only-section,
body.view-assets .profits-only-section,
body.view-assets .market-only-section,
body.view-assets .trades-only-section,
body.view-assets .bots-only-section {
  display: none;
}

body.view-assets .assets-only-section {
  display: block;
}

body.view-profits .home-only-section,
body.view-profits .store-only-section,
body.view-profits .glrank-only-section,
body.view-profits .market-only-section,
body.view-profits .trades-only-section,
body.view-profits .bots-only-section,
body.view-profits .assets-only-section,
body.view-profits .invite-only-section {
  display: none;
}

body.view-profits .profits-only-section {
  display: block;
}

body.view-invite .home-only-section,
body.view-invite .store-only-section,
body.view-invite .glrank-only-section,
body.view-invite .market-only-section,
body.view-invite .trades-only-section,
body.view-invite .bots-only-section,
body.view-invite .assets-only-section,
body.view-invite .profits-only-section,
body.view-invite .commission-only-section,
body.view-invite .team-only-section,
body.view-invite .notification-only-section,
body.view-invite .more-only-section {
  display: none;
}

body.view-invite .invite-only-section {
  display: block;
}

body.view-commission .home-only-section,
body.view-commission .store-only-section,
body.view-commission .glrank-only-section,
body.view-commission .market-only-section,
body.view-commission .trades-only-section,
body.view-commission .bots-only-section,
body.view-commission .assets-only-section,
body.view-commission .profits-only-section,
body.view-commission .invite-only-section,
body.view-commission .team-only-section,
body.view-commission .notification-only-section,
body.view-commission .more-only-section {
  display: none;
}

body.view-commission .commission-only-section {
  display: block;
}

body.view-team .home-only-section,
body.view-team .store-only-section,
body.view-team .glrank-only-section,
body.view-team .market-only-section,
body.view-team .trades-only-section,
body.view-team .bots-only-section,
body.view-team .assets-only-section,
body.view-team .profits-only-section,
body.view-team .invite-only-section,
body.view-team .commission-only-section,
body.view-team .notification-only-section,
body.view-team .more-only-section {
  display: none;
}

body.view-team .team-only-section {
  display: block;
}

body.view-notification .home-only-section,
body.view-notification .store-only-section,
body.view-notification .glrank-only-section,
body.view-notification .market-only-section,
body.view-notification .trades-only-section,
body.view-notification .bots-only-section,
body.view-notification .assets-only-section,
body.view-notification .profits-only-section,
body.view-notification .invite-only-section,
body.view-notification .commission-only-section,
body.view-notification .team-only-section,
body.view-notification .more-only-section {
  display: none;
}

body.view-notification .notification-only-section {
  display: block;
}

body.view-more .home-only-section,
body.view-more .store-only-section,
body.view-more .glrank-only-section,
body.view-more .market-only-section,
body.view-more .trades-only-section,
body.view-more .bots-only-section,
body.view-more .assets-only-section,
body.view-more .profits-only-section,
body.view-more .invite-only-section,
body.view-more .commission-only-section,
body.view-more .team-only-section,
body.view-more .notification-only-section,
body.view-more .risk-only-section,
body.view-more .leaders-only-section,
body.view-more .settings-only-section {
  display: none;
}

body.view-more .more-only-section {
  display: block;
  order: 3;
}

body.view-more #moreSection {
  order: 1;
}

body.view-more .more-tools-cluster {
  order: 2;
}

body.view-risk .home-only-section,
body.view-risk .store-only-section,
body.view-risk .glrank-only-section,
body.view-risk .market-only-section,
body.view-risk .trades-only-section,
body.view-risk .bots-only-section,
body.view-risk .assets-only-section,
body.view-risk .profits-only-section,
body.view-risk .invite-only-section,
body.view-risk .commission-only-section,
body.view-risk .team-only-section,
body.view-risk .notification-only-section,
body.view-risk .more-only-section,
body.view-risk .leaders-only-section,
body.view-risk .settings-only-section {
  display: none;
}

body.view-risk .risk-only-section {
  display: block;
}

body.view-leaders .home-only-section,
body.view-leaders .store-only-section,
body.view-leaders .glrank-only-section,
body.view-leaders .market-only-section,
body.view-leaders .trades-only-section,
body.view-leaders .bots-only-section,
body.view-leaders .assets-only-section,
body.view-leaders .profits-only-section,
body.view-leaders .invite-only-section,
body.view-leaders .commission-only-section,
body.view-leaders .team-only-section,
body.view-leaders .notification-only-section,
body.view-leaders .more-only-section,
body.view-leaders .risk-only-section,
body.view-leaders .settings-only-section {
  display: none;
}

body.view-leaders .leaders-only-section {
  display: block;
}

body.view-settings .home-only-section,
body.view-settings .store-only-section,
body.view-settings .glrank-only-section,
body.view-settings .market-only-section,
body.view-settings .trades-only-section,
body.view-settings .bots-only-section,
body.view-settings .assets-only-section,
body.view-settings .profits-only-section,
body.view-settings .invite-only-section,
body.view-settings .commission-only-section,
body.view-settings .team-only-section,
body.view-settings .notification-only-section,
body.view-settings .more-only-section,
body.view-settings .risk-only-section,
body.view-settings .leaders-only-section {
  display: none;
}

body.view-settings .settings-only-section {
  display: block;
}

body.view-contact .home-only-section,
body.view-contact .store-only-section,
body.view-contact .glrank-only-section,
body.view-contact .market-only-section,
body.view-contact .trades-only-section,
body.view-contact .bots-only-section,
body.view-contact .assets-only-section,
body.view-contact .profits-only-section,
body.view-contact .invite-only-section,
body.view-contact .commission-only-section,
body.view-contact .team-only-section,
body.view-contact .notification-only-section,
body.view-contact .more-only-section,
body.view-contact .risk-only-section,
body.view-contact .leaders-only-section,
body.view-contact .settings-only-section,
body.view-contact .about-only-section,
body.view-contact .faq-only-section {
  display: none;
}

body.view-contact .contact-only-section {
  display: block;
}

body.view-about .home-only-section,
body.view-about .store-only-section,
body.view-about .glrank-only-section,
body.view-about .market-only-section,
body.view-about .trades-only-section,
body.view-about .bots-only-section,
body.view-about .assets-only-section,
body.view-about .profits-only-section,
body.view-about .invite-only-section,
body.view-about .commission-only-section,
body.view-about .team-only-section,
body.view-about .notification-only-section,
body.view-about .more-only-section,
body.view-about .risk-only-section,
body.view-about .leaders-only-section,
body.view-about .settings-only-section,
body.view-about .contact-only-section,
body.view-about .faq-only-section {
  display: none;
}

body.view-about .about-only-section {
  display: block;
}

body.view-faq .home-only-section,
body.view-faq .store-only-section,
body.view-faq .glrank-only-section,
body.view-faq .market-only-section,
body.view-faq .trades-only-section,
body.view-faq .bots-only-section,
body.view-faq .assets-only-section,
body.view-faq .profits-only-section,
body.view-faq .invite-only-section,
body.view-faq .commission-only-section,
body.view-faq .team-only-section,
body.view-faq .notification-only-section,
body.view-faq .more-only-section,
body.view-faq .risk-only-section,
body.view-faq .leaders-only-section,
body.view-faq .settings-only-section,
body.view-faq .contact-only-section,
body.view-faq .about-only-section {
  display: none;
}

body.view-faq .faq-only-section {
  display: block;
}

.section-box {
  width: 100%;
  min-height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.section-box--stack,
.section-box--grid,
.section-box--cluster {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-box--stack {
  flex-direction: row;
}

.inner-block {
  width: 100%;
  border-radius: 0;
  background: var(--section-bg);
  border: 1px solid var(--section-border);
}

.inner-block--bar {
  flex: 1;
  min-height: 56px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.feature-card {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  text-align: center;
  color: #f8fbff;
}

.feature-card span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.feature-icon--crown {
  width: 42px;
  height: 42px;
}

.feature-icon--trend {
  width: 44px;
  height: 44px;
}

.feature-icon--cap {
  width: 42px;
  height: 42px;
}

.section-box--stack .inner-block--bar:nth-child(1) {
  background-image: linear-gradient(135deg, rgba(203, 213, 225, 0.96), rgba(148, 163, 184, 0.92), rgba(100, 116, 139, 0.84));
  border-color: rgba(100, 116, 139, 0.34);
}

.section-box--stack .inner-block--bar:nth-child(2) {
  background-image: linear-gradient(135deg, rgba(134, 239, 172, 0.96), rgba(74, 222, 128, 0.92), rgba(22, 163, 74, 0.84));
  border-color: rgba(210, 206, 206, 0.5);
}

.section-box--stack .inner-block--bar:nth-child(3) {
  background-image: linear-gradient(135deg, rgba(186, 230, 253, 0.96), rgba(125, 211, 252, 0.92), rgba(59, 130, 246, 0.84));
  border-color: rgba(138, 183, 255, 0.833);
}

.inner-block--tile {
  min-height: 64px;
}

.inner-block--tiny-bar {
  min-height: 28px;
}

.section-box--grid .inner-block {
  background: transparent;
}

.inner-block--shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 100%;
  padding: 10px 4px;
  text-align: center;
  color: #32506f;
}

.shortcut-card--link {
  cursor: pointer;
}

.profile-menu__item[role="button"],
.profile-menu__item[role="link"],
.inner-block[role="button"],
.store-card--feature[role="link"] {
  cursor: pointer;
}

.shortcut-card span {
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.15;
}

.shortcut-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

.inner-block--shortcut-blank {
  background: transparent;
}

.mini-grid {
  display: grid;
  gap: 12px;
}

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

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

.content-section--feed {
  padding: 0;
  margin-bottom: 0;
}

.bot-strategy-section {
  padding-top: 6px;
}

.bot-strategy-shell {
  gap: 16px;
}

.bot-strategy-hero {
  min-height: 104px;
}

.bot-strategy-intro {
  width: 100%;
}

.bot-strategy-intro__title {
  max-width: 360px;
}

.bot-strategy-intro__text {
  max-width: 360px;
}

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

.bot-strategy-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bot-strategy-grid .bot-strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px rgba(54, 92, 137, 0.22);
}

.bot-strategy-grid .bot-strategy-card.is-active {
  border-color: rgba(48, 101, 153, 0.46);
  box-shadow: 0 20px 34px rgba(54, 92, 137, 0.22);
  transform: translateY(-2px);
}

.bot-strategy-grid .bot-strategy-card.is-active .bot-strategy-card__title {
  color: #163a5c;
}

.bot-strategy-grid .bot-strategy-card.is-active .bot-strategy-card__text {
  max-height: 20px;
  opacity: 0.9;
  transform: translateY(0);
}

.bot-strategy-card__inner {
  width: 100%;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 8px;
  text-align: center;
}

.bot-strategy-card__icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  opacity: 1;
}

.bot-strategy-card__title {
  display: block;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.bot-strategy-card__text {
  display: block;
  color: inherit;
  opacity: 0.8;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.bot-strategy-card:hover .bot-strategy-card__text,
.bot-strategy-card:focus-within .bot-strategy-card__text {
  max-height: 20px;
  opacity: 0.8;
  transform: translateY(0);
}

.bot-strategy-grid .bot-strategy-card:nth-child(1) {
  color: #8a6114;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(220, 244, 255, 0.98), rgba(176, 219, 245, 0.9));
  border-color: rgba(86, 149, 197, 0.28);
}

.bot-strategy-grid .bot-strategy-card:nth-child(2) {
  color: #1f7b59;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(230, 248, 240, 0.98), rgba(174, 224, 202, 0.9));
  border-color: rgba(76, 156, 123, 0.28);
}

.bot-strategy-grid .bot-strategy-card:nth-child(3) {
  color: #4360a9;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(240, 245, 255, 0.98), rgba(198, 213, 244, 0.9));
  border-color: rgba(108, 132, 196, 0.28);
}

.bot-strategy-grid .bot-strategy-card:nth-child(4) {
  color: #9a5b1d;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(145deg, rgba(255, 242, 228, 0.98), rgba(243, 205, 168, 0.92));
  border-color: rgba(203, 149, 94, 0.28);
}

.manual-strategy-section {
  padding-top: 2px;
}

.manual-strategy-shell {
  gap: 14px;
}

.manual-strategy-intro {
  min-height: 88px;
  justify-content: flex-start;
  text-align: left;
  border-radius: 0;
}

.manual-strategy-intro__copy {
  width: 100%;
}

.manual-strategy-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.1);
  color: #35608a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-strategy-intro__title {
  margin-top: 10px;
  color: #234466;
  font-size: 1.08rem;
  line-height: 1.2;
}

.manual-strategy-intro__text {
  margin-top: 8px;
  color: #627d99;
  font-size: 0.74rem;
  line-height: 1.45;
}

.manual-strategy-grid {
  display: block;
}

.manual-strategy-card {
  width: 100%;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  text-align: left;
  border-radius: 0;
}

.manual-strategy-section .store-card {
  border-radius: 0;
}

.manual-strategy-card + .manual-strategy-card {
  margin-top: 12px;
}

.manual-strategy-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.manual-strategy-card__header-icon {
  width: 22px;
  height: 22px;
  fill: #2c567f;
  flex-shrink: 0;
}

.manual-strategy-card__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 237, 249, 0.96));
  color: #284f76;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(89, 136, 184, 0.26);
  box-shadow: 0 6px 12px rgba(84, 122, 166, 0.1);
}

.manual-strategy-card__title {
  color: #21405f;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.manual-strategy-card__text {
  flex: 1;
  display: block;
  margin-top: 10px;
  color: #5d7895;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.manual-strategy-card__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.manual-strategy-card__button {
  min-width: 78px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(28, 88, 138, 0.16);
  border-radius: 999px;
  background: linear-gradient(145deg, #2f6da3, #1f4f7b);
  color: #f5fbff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 18px rgba(44, 89, 134, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.manual-strategy-card__button:hover {
  background: linear-gradient(145deg, #387bb7, #245f93);
  box-shadow: 0 14px 22px rgba(38, 81, 123, 0.28);
  transform: translateY(-1px);
}

.manual-strategy-card__button:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(38, 81, 123, 0.2);
}

.manual-strategy-grid .manual-strategy-card:nth-child(4n + 1) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(220, 244, 255, 0.98), rgba(176, 219, 245, 0.9));
  border-color: rgba(86, 149, 197, 0.28);
}

.manual-strategy-grid .manual-strategy-card:nth-child(4n + 2) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(230, 248, 240, 0.98), rgba(174, 224, 202, 0.9));
  border-color: rgba(76, 156, 123, 0.28);
}

.manual-strategy-grid .manual-strategy-card:nth-child(4n + 3) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(240, 245, 255, 0.98), rgba(198, 213, 244, 0.9));
  border-color: rgba(108, 132, 196, 0.28);
}

.manual-strategy-grid .manual-strategy-card:nth-child(4n) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(145deg, rgba(255, 242, 228, 0.98), rgba(243, 205, 168, 0.92));
  border-color: rgba(203, 149, 94, 0.28);
}

.signals-refresh-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(232, 248, 240, 0.98);
  border: 1px solid rgba(30, 118, 91, 0.2);
  color: #0e6f3d;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.signals-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.signals-result-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(47, 128, 237, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f3f60;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 20px rgba(28, 59, 92, 0.08);
}

.signals-result-button span {
  color: #4d6c88;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.signals-result-button strong {
  color: #0b8046;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
}

.signals-result-button--rate {
  border-color: rgba(14, 203, 129, 0.24);
  background: rgba(232, 248, 240, 0.98);
}

.signals-result-button:hover,
.signals-result-button:focus-visible,
.signals-result-button.is-active {
  border-color: rgba(14, 203, 129, 0.4);
  background: #0e8e49;
  color: #ffffff;
}

.signals-result-button:hover span,
.signals-result-button:hover strong,
.signals-result-button:focus-visible span,
.signals-result-button:focus-visible strong,
.signals-result-button.is-active span,
.signals-result-button.is-active strong {
  color: #ffffff;
}

.signals-results-panel[hidden] {
  display: none;
}

.signals-results-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(84, 123, 163, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.96)),
    linear-gradient(90deg, rgba(14, 203, 129, 0.07), rgba(47, 128, 237, 0.06));
  box-shadow: 0 14px 30px rgba(28, 59, 92, 0.08);
}

.signals-results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #244466;
}

.signals-results-panel__header span {
  font-size: 0.76rem;
  font-weight: 950;
}

.signals-results-panel__header strong {
  color: #0e6f3d;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.signals-results-list {
  display: grid;
  gap: 8px;
}

.signal-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 8px;
}

.signal-result-card__pair,
.signal-result-card__download {
  min-width: 0;
  border: 1px solid rgba(89, 136, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #102d4b;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 18px rgba(31, 67, 103, 0.06);
}

.signal-result-card__pair {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
}

.signal-result-card__pair span {
  color: #0e6f3d;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.15;
}

.signal-result-card__pair strong {
  color: #102d4b;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.signal-result-card__pair small {
  color: #5f7891;
  font-size: 0.62rem;
  font-weight: 800;
}

.signal-result-card__download {
  display: grid;
  place-items: center;
  padding: 0;
  color: #0e6f3d;
}

.signal-result-card__download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-result-card__pair:hover,
.signal-result-card__pair:focus-visible,
.signal-result-card__download:hover,
.signal-result-card__download:focus-visible {
  border-color: rgba(14, 203, 129, 0.36);
  background: rgba(232, 248, 240, 0.98);
}

.signal-results-empty {
  padding: 12px;
  border: 1px dashed rgba(89, 136, 184, 0.24);
  border-radius: 8px;
  color: #4e6a86;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.signal-result-download-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 520px;
  pointer-events: none;
}

.signal-result-download-card {
  width: 520px;
}

html[data-theme="dark"] body .signals-result-button,
html[data-theme="dark"] body .signals-results-panel,
html[data-theme="dark"] body .signal-result-card__pair,
html[data-theme="dark"] body .signal-result-card__download {
  background: rgba(255, 255, 255, 0.96);
  color: #102d4b;
}

html[data-theme="dark"] body .signals-results-panel__header,
html[data-theme="dark"] body .signal-result-card__pair strong {
  color: #102d4b;
}

html[data-theme="dark"] body .signals-result-button span,
html[data-theme="dark"] body .signal-result-card__pair small,
html[data-theme="dark"] body .signal-results-empty {
  color: #4d6c88;
}

html[data-theme="dark"] body .signals-result-button strong,
html[data-theme="dark"] body .signals-results-panel__header strong,
html[data-theme="dark"] body .signal-result-card__pair span,
html[data-theme="dark"] body .signal-result-card__download {
  color: #0b8046;
}

html[data-theme="dark"] body .signals-result-button:hover,
html[data-theme="dark"] body .signals-result-button:focus-visible,
html[data-theme="dark"] body .signals-result-button.is-active {
  background: #0e8e49;
  color: #ffffff;
}

html[data-theme="dark"] body .signals-result-button:hover span,
html[data-theme="dark"] body .signals-result-button:hover strong,
html[data-theme="dark"] body .signals-result-button:focus-visible span,
html[data-theme="dark"] body .signals-result-button:focus-visible strong,
html[data-theme="dark"] body .signals-result-button.is-active span,
html[data-theme="dark"] body .signals-result-button.is-active strong {
  color: #ffffff;
}

.signal-card__download {
  position: absolute;
  top: 14px;
  right: 62px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(101, 145, 188, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  color: #0e6f3d;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(28, 59, 92, 0.1);
}

.signal-card__download[hidden] {
  display: none;
}

.signal-card__download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-card__download:hover,
.signal-card__download:focus-visible {
  background: #0ecb81;
  border-color: #0ecb81;
  color: #ffffff;
}

.signals-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.store-card.signal-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(84, 123, 163, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    linear-gradient(90deg, rgba(14, 203, 129, 0.08), rgba(47, 128, 237, 0.06));
  box-shadow: 0 18px 38px rgba(28, 59, 92, 0.1);
  text-align: left;
}

.signal-card__gcm-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(101, 145, 188, 0.16);
  box-shadow: 0 12px 22px rgba(28, 59, 92, 0.12);
}

.signal-card__gcm-logo--fallback {
  display: inline-grid;
  place-items: center;
  color: #0e6f3d;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.store-card.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0ecb81 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 42%);
}

.signal-card > :not(.signal-card__gcm-logo):not(.signal-card__download) {
  position: relative;
  z-index: 1;
}

.signal-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  padding-right: 56px;
}

.signal-card__title-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.signal-card__analysis {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.signal-card__analysis:hover .signal-card__identity strong,
.signal-card__analysis:focus-visible .signal-card__identity strong {
  color: #0e6f3d;
}

.signal-card__analysis:focus-visible {
  outline: 3px solid rgba(14, 203, 129, 0.28);
  outline-offset: 6px;
  border-radius: 14px;
}

.signal-card__title-wrap .market-table__logo-box {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(37, 76, 116, 0.14);
}

.signal-card__identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.signal-card__eyebrow {
  display: block;
  color: #0e6f3d;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.signal-card__identity strong {
  display: block;
  color: #102d4b;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.signal-card__name {
  display: block;
  color: #698096;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.signal-card__time {
  display: block;
  color: #7a8fa3;
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.2;
}

.signal-card__badges {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.signal-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(89, 136, 184, 0.2);
  background: #ffffff;
  color: #294c70;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(35, 72, 110, 0.08);
}

.signal-card__badge.signal-card__change--positive {
  background: rgba(14, 203, 129, 0.13);
  border-color: rgba(14, 203, 129, 0.22);
  color: #0b8046;
}

.signal-card__badge.signal-card__change--negative {
  background: rgba(246, 70, 93, 0.11);
  border-color: rgba(246, 70, 93, 0.22);
  color: #c43c4d;
}

.signal-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(101, 145, 188, 0.18);
  border-radius: 10px;
  background: rgba(212, 229, 245, 0.72);
}

.signal-card__metric {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.9));
}

.signal-card__metric span {
  color: #61778d;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-transform: uppercase;
}

.signal-card__metric strong {
  max-width: 100%;
  color: #1f3f60;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.signal-card__change--positive {
  color: #0e8e49;
}

.signal-card__change--negative {
  color: #d14d57;
}

.signal-card__footer {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.signal-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.signal-card__button {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 0.66rem;
  white-space: normal;
}

.signal-card__button--robot {
  background: linear-gradient(135deg, #0ecb81, #0fa66e);
  border-color: rgba(14, 203, 129, 0.2);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(14, 203, 129, 0.18);
}

.signal-card__button--manual {
  background: #ffffff;
  border-color: rgba(91, 128, 166, 0.24);
  color: #254967;
  box-shadow: 0 10px 20px rgba(31, 67, 103, 0.08);
}

.bot-mode-panel {
  display: none;
}

.bot-mode-panel.is-active {
  display: block;
}

.strategy-modal[hidden] {
  display: none;
}

.strategy-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px calc(var(--footer-height) + 30px + env(safe-area-inset-bottom));
}

.strategy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 41, 63, 0.42);
  backdrop-filter: blur(8px);
}

.strategy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(calc(100dvh - var(--footer-height) - 54px - env(safe-area-inset-bottom)), 760px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(99, 141, 184, 0.24);
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(180deg, rgba(244, 250, 255, 0.99), rgba(220, 236, 248, 0.96));
  box-shadow: 0 30px 60px rgba(36, 69, 104, 0.24);
  overflow: hidden;
}

.strategy-modal--martingale .strategy-modal__dialog {
  width: min(100%, 760px);
}

.strategy-modal__header,
.strategy-modal__footer {
  flex-shrink: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(107, 147, 189, 0.16);
}

.strategy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.strategy-modal__heading {
  min-width: 0;
}

.strategy-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.1);
  color: #35608a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-modal__title {
  margin-top: 10px;
  color: #1f4468;
  font-size: 1.16rem;
  line-height: 1.15;
}

.strategy-modal__subtitle {
  margin-top: 8px;
  color: #637d99;
  font-size: 0.74rem;
  line-height: 1.45;
}

.strategy-modal__subtitle:empty,
.strategy-modal__summary:empty {
  display: none;
}

.strategy-modal__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(98, 140, 183, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #31506f;
  cursor: pointer;
  flex-shrink: 0;
}

.strategy-modal__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.strategy-modal__body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.strategy-modal__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-modal__summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(101, 147, 194, 0.18);
  color: #31506f;
  font-size: 0.68rem;
  font-weight: 800;
}

.strategy-modal__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.martingale-variant__button {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 247, 255, 0.9));
  color: #31506f;
  cursor: pointer;
  font: inherit;
  padding: 10px 12px;
  text-align: left;
}

.martingale-variant__button span {
  color: #234466;
  font-size: 0.82rem;
  font-weight: 900;
}

.martingale-variant__button small {
  color: #607b98;
  font-size: 0.64rem;
  font-weight: 750;
}

.martingale-variant__button.is-active {
  border-color: rgba(14, 142, 73, 0.34);
  background:
    linear-gradient(145deg, rgba(232, 248, 240, 0.96), rgba(247, 251, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(14, 142, 73, 0.1), 0 12px 22px rgba(14, 142, 73, 0.08);
}

.martingale-strategy-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(101, 147, 194, 0.2);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.78);
}

.martingale-strategy-badge strong {
  color: #234466;
  font-size: 0.82rem;
  font-weight: 950;
}

.martingale-strategy-badge span {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: right;
}

.martingale-strategy-badge.is-ai {
  background: rgba(232, 248, 240, 0.9);
  border-color: rgba(14, 142, 73, 0.22);
}

.martingale-capital-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.martingale-capital-card {
  display: grid;
  gap: 7px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(102, 145, 188, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(231, 241, 250, 0.72));
}

.martingale-capital-card--right {
  background:
    linear-gradient(145deg, rgba(232, 248, 240, 0.82), rgba(247, 251, 255, 0.92));
}

.martingale-capital-card span,
.martingale-coin-panel__header span {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.martingale-capital-card > strong {
  color: #15385c;
  font-size: 1.15rem;
  font-weight: 950;
}

.martingale-capital-card small {
  color: #607b98;
  font-size: 0.68rem;
  font-weight: 700;
}

.martingale-amount-field {
  display: grid;
  grid-template-columns: minmax(86px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.martingale-amount-field input,
.martingale-amount-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #15385c;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  padding: 0 12px;
  outline: 0;
}

.martingale-amount-field select {
  appearance: none;
  cursor: pointer;
}

.martingale-amount-field strong {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid rgba(101, 147, 194, 0.18);
  color: #0e8e49;
  font-size: 0.66rem;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.martingale-percent {
  display: grid;
  gap: 8px;
  padding: 2px 2px 4px;
}

.martingale-percent input[type="range"] {
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.martingale-percent input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--range-fill, #0e8e49), var(--range-fill, #0e8e49)) 0 / var(--value, 0%) 100% no-repeat,
    rgba(101, 147, 194, 0.18);
}

.martingale-percent input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(101, 147, 194, 0.18);
}

.martingale-percent input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--range-fill, #0e8e49);
}

.martingale-percent input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1f3552;
  box-shadow: 0 6px 14px rgba(31, 53, 82, 0.24);
}

.martingale-percent input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1f3552;
  box-shadow: 0 6px 14px rgba(31, 53, 82, 0.24);
}

.martingale-percent__ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #68839f;
  font-size: 0.62rem;
  font-weight: 800;
}

.martingale-percent__ticks span {
  text-align: center;
}

.martingale-percent__ticks span:first-child {
  text-align: left;
}

.martingale-percent__ticks span:last-child {
  text-align: right;
}

.martingale-percent--leverage {
  margin-top: 6px;
  padding-bottom: 0;
}

.martingale-leverage-block {
  padding: 12px;
  border: 1px solid rgba(102, 145, 188, 0.18);
  border-radius: 8px;
  background: #f7fbff;
}

.martingale-settings-grid {
  margin-top: 0;
}

.auth-field select,
.strategy-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.martingale-coin-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(102, 145, 188, 0.18);
  border-radius: 8px;
  background: #f7fbff;
}

.martingale-pair-panel {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: #f4f8fc;
  overflow: hidden;
}

.martingale-pair-panel[hidden] {
  display: none;
}

.martingale-pair-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0 8px;
  background: #f4f8fc;
}

.martingale-pair-toolbar > strong {
  color: #234466;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.martingale-pair-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.martingale-pair-search input {
  min-width: 0;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #15385c;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  outline: 0;
  padding: 0 10px;
}

.martingale-pair-search button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid rgba(101, 147, 194, 0.18);
  background: #0e8e49;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0 12px;
}

.martingale-auto-select {
  min-height: 38px;
  border: 1px solid #0e8e49;
  border-radius: 8px;
  background: #0e8e49;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.martingale-selected-pairs {
  flex-shrink: 0;
  display: flex;
  gap: 7px;
  min-height: 28px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.martingale-selected-pairs span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(14, 142, 73, 0.2);
  border-radius: 999px;
  background: rgba(232, 248, 240, 0.94);
  color: #0e8e49;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
}

.market-analysis-panel {
  flex-shrink: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(31, 53, 82, 0.12);
  padding: 10px;
}

.market-analysis-panel[hidden] {
  display: none;
}

body.market-analysis-expanded {
  overflow: hidden;
}

body.market-analysis-expanded .app-shell {
  overflow: visible;
  backdrop-filter: none;
}

.market-analysis-dashboard {
  display: grid;
  gap: 12px;
}

.market-analysis-dashboard.is-chart-open .market-analysis-search,
.market-analysis-dashboard.is-chart-open .market-analysis-table {
  display: none;
}

.market-analysis-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 42px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.market-analysis-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #15385c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  outline: 0;
  padding: 0 12px;
}

.market-analysis-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(101, 147, 194, 0.18);
  background: #0e8e49;
  color: #fff;
  cursor: pointer;
}

.market-analysis-search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.market-analysis-pairs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
}

.market-analysis-pairs button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0 12px;
}

.market-analysis-pairs button.is-active {
  border-color: rgba(14, 142, 73, 0.34);
  background: #0e8e49;
  color: #fff;
}

.market-analysis-table {
  margin-top: 0;
}

.market-analysis-row {
  cursor: pointer;
}

.market-analysis-row:hover {
  border-color: rgba(14, 142, 73, 0.22);
  box-shadow: inset 3px 0 0 #0e8e49;
}

.market-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-analysis-header__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.market-analysis-header__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.market-analysis-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-analysis-timeframe {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.market-analysis-timeframe select {
  width: 82px;
  height: 34px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  outline: 0;
  padding: 0 8px;
}

.market-analysis-header span {
  color: #607b98;
  font-size: 0.64rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-analysis-header strong {
  color: #15385c;
  font-size: 0.92rem;
  font-weight: 950;
}

.market-analysis-close,
.market-analysis-icon-button,
.market-analysis-tools button {
  min-height: 32px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0 10px;
}

.market-analysis-close {
  flex-shrink: 0;
}

.market-analysis-icon-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(101, 147, 194, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #31506f;
  cursor: pointer;
}

.market-analysis-back {
  color: #0e8e49;
}

.market-analysis-icon-button svg,
.market-analysis-row__toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.market-analysis-tools {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.market-analysis-tools button {
  flex: 0 0 auto;
}

.market-analysis-tools button.is-active {
  border-color: rgba(14, 142, 73, 0.36);
  background: #0e8e49;
  color: #fff;
}

.market-analysis-canvas-wrap {
  min-height: 280px;
  border: 1px solid rgba(101, 147, 194, 0.16);
  border-radius: 8px;
  background: #f7fbff;
  overflow: hidden;
}

.market-analysis-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 280px;
  cursor: grab;
  touch-action: none;
}

.market-analysis-canvas-wrap canvas:active {
  cursor: grabbing;
}

.market-analysis-panel.is-expanded .market-analysis-canvas-wrap,
.market-analysis-panel.is-expanded .market-analysis-canvas-wrap canvas {
  min-height: 0;
  height: auto;
}

.market-analysis-panel.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.99);
  box-shadow: none;
}

.market-analysis-panel.is-expanded .market-analysis-canvas-wrap {
  min-height: 0;
}

.market-analysis-panel.is-expanded .market-analysis-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.market-analysis-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.market-analysis-metrics span {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(101, 147, 194, 0.16);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.9);
  padding: 7px 8px;
}

.market-analysis-metrics small {
  color: #607b98;
  font-size: 0.58rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-analysis-metrics strong {
  min-width: 0;
  color: #15385c;
  font-size: 0.72rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-analysis-row .market-table__coin {
  grid-template-columns: 20px auto minmax(0, 1fr);
}

.market-analysis-row__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #607b98;
  cursor: pointer;
  padding: 0;
  transform: rotate(-90deg);
  transition: transform 0.18s ease, color 0.18s ease;
}

.market-analysis-row.is-active .market-analysis-row__toggle {
  color: #0e8e49;
  transform: rotate(0deg);
}

@media (max-width: 520px) {
  .market-analysis-panel {
    padding: 8px;
  }

  .market-analysis-header {
    align-items: flex-start;
  }

  .market-analysis-header__actions {
    gap: 4px;
  }

  .market-analysis-timeframe select {
    width: 72px;
    padding-left: 6px;
    padding-right: 4px;
  }

  .market-analysis-canvas-wrap,
  .market-analysis-canvas-wrap canvas {
    min-height: 240px;
    height: 240px;
  }

  .market-analysis-panel.is-expanded .market-analysis-canvas-wrap,
  .market-analysis-panel.is-expanded .market-analysis-canvas-wrap canvas {
    min-height: 0;
    height: auto;
  }

  .market-analysis-panel.is-expanded .market-analysis-canvas-wrap canvas {
    height: 100%;
  }

  .market-analysis-metrics {
    gap: 5px;
  }

  .market-analysis-metrics span {
    flex: 0 0 auto;
    min-width: 116px;
  }
}

.martingale-coin-toggle {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(101, 147, 194, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9));
  color: #31506f;
  cursor: pointer;
  font: inherit;
  padding: 9px 12px;
  text-align: left;
}

.martingale-coin-toggle span {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.martingale-coin-toggle strong {
  min-width: 0;
  color: #15385c;
  font-size: 0.9rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.martingale-coin-toggle small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.08);
  color: #35608a;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0 9px;
  white-space: nowrap;
}

.martingale-coin-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.martingale-coin-panel__header div {
  display: grid;
  gap: 3px;
}

.martingale-coin-panel__header strong {
  color: #234466;
  font-size: 0.82rem;
  font-weight: 900;
}

.martingale-coin-panel__header > span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.08);
  color: #35608a;
  padding: 0 9px;
  white-space: nowrap;
}

.martingale-coin-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: none;
  overflow-y: auto;
  padding-right: 2px;
}

.martingale-coin-grid[hidden] {
  display: none;
}

.martingale-coin {
  position: relative;
  cursor: pointer;
}

.martingale-coin.market-table__row {
  grid-template-columns: 28px var(--market-grid-columns);
  background: #fff;
}

.martingale-coin.market-table__row:hover {
  background: #f2fbf6;
}

.martingale-coin input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.martingale-coin.is-selected {
  border-color: rgba(14, 142, 73, 0.34);
  background: #e9f8f0;
  box-shadow: inset 3px 0 0 #0e8e49;
}

.martingale-coin.market-table__row.is-selected,
.martingale-coin.market-table__row.is-selected:hover {
  background: #e9f8f0;
}

.martingale-pair-selector {
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(14, 142, 73, 0.34);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  pointer-events: none;
}

.martingale-coin.is-selected .martingale-pair-selector {
  background: #0e8e49;
}

.martingale-pair-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  background: #f4f8fc;
}

.martingale-pair-ok {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid #0e8e49;
  border-radius: 8px;
  background: #0e8e49;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0 18px;
}

.martingale-coin__symbol {
  color: #15385c;
  font-size: 0.78rem;
  font-weight: 950;
}

.martingale-coin small {
  min-width: 0;
  color: #607b98;
  font-size: 0.62rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.martingale-coin strong {
  color: #31506f;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: right;
}

.martingale-coin em {
  align-self: center;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.martingale-coin__change--up {
  color: #0e8e49;
}

.martingale-coin__change--down {
  color: #d94b4b;
}

.martingale-smart-toggle,
.martingale-rule-toggle,
.martingale-direction__button {
  min-height: 38px;
  border: 1px solid rgba(101, 147, 194, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 10px;
}

.martingale-smart-toggle.is-active,
.martingale-rule-toggle.is-active,
.martingale-direction__button.is-active {
  border-color: rgba(14, 142, 73, 0.34);
  background: #0e8e49;
  color: #fff;
}

.martingale-optional-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.martingale-optional-rule input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

.martingale-direction--automated {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.martingale-direction__button {
  min-width: 0;
  padding: 0 3px;
  font-size: 0.58rem;
  line-height: 1.05;
  white-space: normal;
}

.martingale-direction__button--long,
.martingale-direction__button--long.is-active {
  border-color: #0e8e49;
  background: #0e8e49;
  color: #fff;
}

.martingale-direction__button--short,
.martingale-direction__button--short.is-active {
  border-color: #d94b4b;
  background: #d94b4b;
  color: #fff;
}

.martingale-direction__button--all-directions,
.martingale-direction__button--all-directions.is-active,
.martingale-direction__button--auto-hedging,
.martingale-direction__button--auto-hedging.is-active {
  border-color: rgba(31, 53, 82, 0.12);
  background: linear-gradient(90deg, #0e8e49 0 42%, #607b55 50%, #d94b4b 58% 100%);
  color: #fff;
}

.martingale-direction__button--auto-direction,
.martingale-direction__button--auto-direction.is-active {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
}

.martingale-direction__button:hover,
.martingale-direction__button:focus-visible {
  border-color: #d7a928;
  background: #d7a928;
  color: #1f3552;
  outline: 0;
}

.martingale-coin-help {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
}

.exchange-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-select-shell {
  position: relative;
  display: block;
  width: 100%;
}

.exchange-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.exchange-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(86, 132, 178, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92));
  color: #244466;
  cursor: pointer;
  font: inherit;
  padding: 8px 44px 8px 14px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 18px rgba(76, 116, 168, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.exchange-select__content {
  display: grid;
  gap: 2px;
}

.exchange-select__content strong {
  color: #244466;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.exchange-select__content small {
  color: #128551;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.exchange-select:hover {
  border-color: rgba(47, 148, 108, 0.34);
}

.exchange-select:focus,
.exchange-select:focus-visible {
  border-color: rgba(47, 148, 108, 0.52);
  box-shadow: 0 0 0 3px rgba(47, 148, 108, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  outline: 0;
}

.exchange-select-shell__icon {
  position: absolute;
  top: 24px;
  right: 14px;
  width: 18px;
  height: 18px;
  fill: #2f946c;
  pointer-events: none;
  transform: translateY(-50%);
}

.exchange-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(86, 132, 178, 0.22);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.98);
  box-shadow: 0 18px 38px rgba(48, 88, 132, 0.18);
}

.exchange-menu[hidden] {
  display: none;
}

.exchange-menu__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #244466;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.exchange-menu__option:hover {
  background: rgba(232, 248, 240, 0.78);
  border-color: rgba(47, 148, 108, 0.18);
}

.exchange-menu__option:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.exchange-menu__option:disabled:hover {
  background: transparent;
  border-color: transparent;
}

.exchange-menu__option.is-active {
  background: #e8f5ef;
  border-color: rgba(47, 148, 108, 0.28);
}

.exchange-menu__option strong {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.exchange-menu__option span {
  color: #128551;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exchange-picker__hint {
  color: #607b98;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.exchange-ip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(116, 154, 194, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(232, 248, 240, 0.74), rgba(247, 251, 255, 0.92));
}

.exchange-ip-card__label {
  grid-column: 1 / -1;
  color: #31506f;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.exchange-ip-card code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #15385c;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.exchange-ip-card button {
  position: relative;
  min-height: 32px;
  border: 1px solid rgba(14, 142, 73, 0.22);
  border-radius: 8px;
  background: #0e8e49;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.exchange-ip-card button.is-copied::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 7px;
  background: #1f3552;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(31, 53, 82, 0.2);
  white-space: nowrap;
}

.exchange-ip-card button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.exchange-form-fields {
  display: grid;
  gap: 12px;
}

.exchange-form-fields[hidden] {
  display: none;
}

.exchange-connected-panel[hidden] {
  display: none;
}

.exchange-connected-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(14, 142, 73, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(14, 142, 73, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(247, 251, 255, 0.96), rgba(232, 248, 240, 0.9));
  color: #1f3552;
}

.exchange-connected-card__eyebrow {
  color: #0e8e49;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.exchange-connected-card strong {
  color: #15385c;
  font-size: 1.08rem;
  font-weight: 950;
}

.exchange-connected-card small {
  color: #607b98;
  font-size: 0.74rem;
  font-weight: 750;
}

.exchange-connected-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.exchange-connected-card__actions button {
  min-height: 36px;
  border: 1px solid rgba(116, 154, 194, 0.22);
  border-radius: 8px;
  background: #f8fbff;
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 12px;
}

.exchange-connected-card__actions button[data-exchange-modify] {
  background: #0e8e49;
  border-color: #0e8e49;
  color: #fff;
}

.exchange-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
}

.exchange-permissions {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(116, 154, 194, 0.16);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.72);
  color: #31506f;
  font-size: 0.74rem;
  font-weight: 700;
}

.exchange-permissions label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exchange-connection-list {
  display: grid;
  gap: 8px;
}

.exchange-connection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(116, 154, 194, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.exchange-connection-item strong,
.exchange-connection-item span {
  display: block;
}

.exchange-connection-item span {
  margin-top: 2px;
  color: #607b98;
  font-size: 0.68rem;
}

.exchange-connection-actions {
  display: flex;
  gap: 6px;
}

.exchange-connection-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(116, 154, 194, 0.22);
  border-radius: 8px;
  background: #f8fbff;
  color: #31506f;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.strategy-form-section {
  padding: 14px;
  border: 1px solid rgba(102, 145, 188, 0.18);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(46, 91, 136, 0.05), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(231, 241, 250, 0.72));
}

.strategy-form-section__title {
  color: #234466;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.strategy-form-section__hint {
  margin-top: 4px;
  color: #69829d;
  font-size: 0.68rem;
  line-height: 1.4;
}

.strategy-form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strategy-field--full {
  grid-column: 1 / -1;
}

.strategy-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strategy-field__label {
  color: #345674;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.strategy-field__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strategy-field__tag--locked {
  background: rgba(53, 111, 87, 0.12);
  color: #2f7b5d;
}

.strategy-field__tag--editable {
  background: rgba(46, 91, 136, 0.1);
  color: #35608a;
}

.strategy-field__control,
.strategy-field__control[readonly] {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(101, 147, 194, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #234466;
  font-size: 0.74rem;
  font-weight: 700;
}

.strategy-field__control[readonly] {
  background: linear-gradient(145deg, rgba(235, 247, 239, 0.94), rgba(221, 240, 230, 0.94));
  color: #2c6d53;
}

.strategy-field__help {
  color: #68839f;
  font-size: 0.62rem;
  line-height: 1.35;
}

.strategy-modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 0;
  border-top: 1px solid rgba(107, 147, 189, 0.16);
  background: rgba(239, 248, 244, 0.98);
  box-shadow: 0 -12px 24px rgba(36, 69, 104, 0.12);
}

.strategy-modal__secondary,
.strategy-modal__primary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.strategy-modal__secondary {
  border: 1px solid rgba(98, 140, 183, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: #32506f;
}

.strategy-modal__primary {
  border: 1px solid rgba(29, 85, 135, 0.16);
  background: linear-gradient(145deg, #2f6da3, #1f4f7b);
  color: #f6fbff;
  box-shadow: 0 10px 18px rgba(44, 89, 134, 0.18);
}

.strategy-modal__primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.payment-modal__dialog {
  width: min(100%, 460px);
}

.payment-modal__body {
  gap: 16px;
}

.commission-withdrawal-form {
  gap: 14px;
}

.asset-action-modal [hidden] {
  display: none !important;
}

.commission-withdrawal-summary {
  display: grid;
  gap: 8px;
}

.commission-withdrawal-summary div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(98, 141, 184, 0.18);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.78);
  padding: 8px 10px;
}

.commission-withdrawal-summary span {
  color: #607b98;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commission-withdrawal-summary strong {
  min-width: 0;
  color: #15385c;
  font-size: 0.78rem;
  font-weight: 950;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-package {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(68, 139, 104, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(236, 250, 243, 0.98), rgba(219, 240, 231, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.payment-package__label {
  color: #2d6d54;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-package__amount {
  color: #173f31;
  font-size: 1.52rem;
  line-height: 1.05;
}

.payment-package__price {
  color: #244f6d;
  font-size: 0.9rem;
  font-weight: 900;
}

.payment-method-panel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(98, 140, 183, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.payment-method-panel__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 109, 163, 0.1);
  color: #2f6da3;
}

.payment-method-panel__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.payment-method-panel__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-method-panel__copy strong {
  color: #24496d;
  font-size: 0.82rem;
}

.payment-method-panel__copy span {
  color: #637d99;
  font-size: 0.7rem;
  line-height: 1.42;
}

.strategy-modal-open {
  overflow: hidden;
}

.coming-soon-modal[hidden] {
  display: none;
}

.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.coming-soon-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 41, 63, 0.42);
  backdrop-filter: blur(8px);
}

.coming-soon-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  border: 1px solid rgba(99, 141, 184, 0.24);
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.56), transparent 32%),
    linear-gradient(180deg, rgba(244, 250, 255, 0.99), rgba(220, 236, 248, 0.96));
  box-shadow: 0 30px 60px rgba(36, 69, 104, 0.24);
  overflow: hidden;
}

.coming-soon-modal__header,
.coming-soon-modal__body,
.coming-soon-modal__footer {
  padding: 16px 18px;
}

.coming-soon-modal__header,
.coming-soon-modal__footer {
  border-bottom: 1px solid rgba(107, 147, 189, 0.16);
}

.coming-soon-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.coming-soon-modal__heading {
  min-width: 0;
}

.coming-soon-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.1);
  color: #35608a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-soon-modal__title {
  margin-top: 10px;
  color: #1f4468;
  font-size: 1.12rem;
  line-height: 1.15;
}

.coming-soon-modal__text,
.coming-soon-modal__note {
  margin-top: 8px;
  color: #637d99;
  font-size: 0.74rem;
  line-height: 1.5;
}

.coming-soon-modal__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(98, 140, 183, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #31506f;
  cursor: pointer;
  flex-shrink: 0;
}

.coming-soon-modal__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.coming-soon-modal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coming-soon-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coming-soon-modal__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(101, 147, 194, 0.18);
  color: #31506f;
  font-size: 0.68rem;
  font-weight: 800;
}

.coming-soon-modal__note {
  margin-top: 0;
}

.coming-soon-modal__footer {
  display: flex;
  justify-content: flex-end;
  border-bottom: 0;
  border-top: 1px solid rgba(107, 147, 189, 0.16);
}

.coming-soon-modal__button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(29, 85, 135, 0.16);
  border-radius: 999px;
  background: linear-gradient(145deg, #2f6da3, #1f4f7b);
  color: #f6fbff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(44, 89, 134, 0.18);
}

.coming-soon-modal-open {
  overflow: hidden;
}

.auth-modal[hidden],
.chat-modal[hidden],
.congratulations-modal[hidden],
.app-toast[hidden] {
  display: none;
}

.congratulations-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.congratulations-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 36, 0.68);
  backdrop-filter: blur(14px);
}

.congratulations-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 216, 117, 0.36), transparent 32%),
    linear-gradient(145deg, rgba(247, 255, 250, 0.98), rgba(231, 247, 255, 0.98));
  color: #102d4b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  padding: 28px;
  text-align: center;
}

.congratulations-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 83, 116, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #27516f;
  cursor: pointer;
}

.congratulations-modal__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.congratulations-modal__burst {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0ecb81, #2f80ed);
  box-shadow: 0 18px 34px rgba(14, 142, 73, 0.28);
}

.congratulations-modal__burst::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  clip-path: polygon(50% 3%, 61% 36%, 96% 36%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 4% 36%, 39% 36%);
}

.congratulations-modal__burst span {
  position: absolute;
  width: 8px;
  height: 26px;
  border-radius: 999px;
  background: #ffd66b;
}

.congratulations-modal__burst span:nth-child(1) { transform: translateY(-70px); }
.congratulations-modal__burst span:nth-child(2) { transform: rotate(90deg) translateY(-70px); }
.congratulations-modal__burst span:nth-child(3) { transform: rotate(45deg) translateY(-70px); }
.congratulations-modal__burst span:nth-child(4) { transform: rotate(-45deg) translateY(-70px); }

.congratulations-modal__logo {
  justify-self: center;
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(14, 142, 73, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(16, 45, 75, 0.14);
}

.congratulations-modal__eyebrow {
  color: #075f33;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.congratulations-modal__title {
  margin: 0;
  color: #061b31;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1;
}

.congratulations-modal__symbol {
  justify-self: center;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(14, 203, 129, 0.2);
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.16);
  color: #064f2d;
  font-size: 0.95rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.congratulations-modal__message {
  max-width: 36rem;
  margin: 0 auto;
  color: #17334f;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.45;
}

.congratulations-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.congratulations-modal__stats div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid rgba(45, 93, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.congratulations-modal__stats span {
  color: #33556f;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.congratulations-modal__stats strong {
  min-width: 0;
  color: #061b31;
  font-size: 0.82rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.congratulations-modal__button {
  justify-self: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0e8e49, #2f80ed);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(47, 128, 237, 0.22);
}

.congratulations-modal-open {
  overflow: hidden;
}

html[data-theme="dark"] body .congratulations-modal .congratulations-modal__dialog {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 216, 117, 0.32), transparent 32%),
    linear-gradient(145deg, rgba(244, 255, 249, 0.99), rgba(226, 244, 255, 0.99));
  color: #061b31;
}

html[data-theme="dark"] body .congratulations-modal :is(
  .congratulations-modal__title,
  .congratulations-modal__message,
  .congratulations-modal__stats strong
) {
  color: #061b31;
}

html[data-theme="dark"] body .congratulations-modal :is(
  .congratulations-modal__eyebrow,
  .congratulations-modal__symbol
) {
  color: #064f2d;
}

html[data-theme="dark"] body .congratulations-modal__stats span {
  color: #33556f;
}

html[data-theme="dark"] body .congratulations-modal__stats div,
html[data-theme="dark"] body .congratulations-modal__logo {
  background: #ffffff;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 55, 84, 0.42);
  backdrop-filter: blur(8px);
}

.chat-box {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  height: min(680px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(130, 171, 209, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(232, 243, 252, 0.98));
  box-shadow: 0 24px 60px rgba(58, 98, 145, 0.22);
}

.chat-box__header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
}

.chat-box__header span,
.chat-box__header strong {
  display: block;
}

.chat-box__header span {
  font-size: 0.64rem;
  font-weight: 800;
  opacity: 0.86;
}

.chat-box__header strong {
  margin-top: 2px;
  font-size: 0.88rem;
  font-weight: 900;
}

.chat-box__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.chat-box__messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px;
}

.chat-message {
  max-width: 82%;
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.chat-message--user {
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  background: rgba(220, 248, 198, 0.98);
  color: #234127;
}

.chat-message--admin {
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  color: #31506f;
}

.chat-message small {
  color: currentColor;
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.62;
}

.chat-empty {
  margin: auto;
  color: #607b98;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.chat-box__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(130, 171, 209, 0.18);
  background: rgba(247, 251, 255, 0.96);
}

.chat-box__composer input {
  min-height: 42px;
  border: 1px solid rgba(130, 171, 209, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #244466;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 14px;
}

.chat-box__composer button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0 14px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 48, 0.48);
  backdrop-filter: blur(10px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(98, 141, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(31, 53, 82, 0.2);
  padding: 20px;
}

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

.auth-modal__eyebrow {
  display: block;
  color: #0e8e49;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-modal__title {
  margin: 5px 0 6px;
  color: #1f3552;
  font-size: 1.35rem;
  line-height: 1.1;
}

.auth-modal__text,
.auth-modal__status {
  margin: 0;
  color: #607b98;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-modal__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(98, 141, 184, 0.24);
  border-radius: 8px;
  background: #f7fbff;
  color: #2e5b88;
  cursor: pointer;
}

.auth-modal__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.auth-modal__tab,
.auth-submit,
.auth-google {
  min-height: 44px;
  border: 1px solid rgba(98, 141, 184, 0.24);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-modal__tab {
  background: #f4f8fc;
  color: #2e5b88;
}

.auth-modal__tab.is-active,
.auth-submit {
  border-color: rgba(14, 142, 73, 0.26);
  background: #0e8e49;
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form[hidden] {
  display: none;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: #1f3552;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-field small {
  color: #607b98;
  font-size: 0.76rem;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(98, 141, 184, 0.24);
  border-radius: 8px;
  background: #f7fbff;
  color: #1f3552;
  font: inherit;
  padding: 0 12px;
}

.auth-field textarea {
  padding-top: 10px;
  line-height: 1.35;
}

.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  background: #ffffff;
  color: #1f3552;
}

.auth-google__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.auth-switch {
  margin: 0;
  color: #607b98;
  font-size: 0.9rem;
  text-align: center;
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: #0e8e49;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.auth-switch button:hover {
  text-decoration: underline;
}

.auth-modal__status {
  min-height: 20px;
  margin-top: 12px;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 74px) + 18px);
  z-index: 2147483647;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(98, 141, 184, 0.2);
  border-radius: 8px;
  background: #1f3552;
  color: #fff;
  box-shadow: 0 16px 40px rgba(31, 53, 82, 0.2);
  padding: 12px 14px;
  font-size: 0.92rem;
  text-align: center;
  pointer-events: none;
}

.auth-modal-open {
  overflow: hidden;
}

.content-section--cluster-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #eaf4fb;
}

.more-tools-cluster {
  position: static;
  background: transparent;
}

.section-box--cluster .inner-block {
  background: transparent;
  border-color: transparent;
  min-height: 54px;
  box-shadow: 0 8px 18px rgba(76, 116, 168, 0.08);
}

.inner-block--cluster-label,
.inner-block--cluster-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cluster-text {
  color: #4b6583;
  font-size: 0.68rem;
  line-height: 1.15;
}

.mini-grid--cluster-mid {
  align-items: center;
}

.inner-block--cluster-pill {
  min-height: 44px;
  border: 1px solid rgba(108, 145, 190, 0.32);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(76, 116, 168, 0.1);
}

.cluster-text--pill {
  color: #2e5b88;
  font-weight: 700;
  font-size: 0.84rem;
}

.inner-block--cluster-strong .cluster-text--strong {
  font-weight: 700;
}

.section-box--feed {
  min-height: 220px;
  padding: 0;
}

.market-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 16px;
  background: linear-gradient(150deg, #226c55 0%, #2f946c 58%, #d58a32 100%);
  border: 1px solid #75b99b;
  box-shadow: 0 18px 34px rgba(35, 108, 85, 0.22);
}

.market-feed__topline,
.market-feed__legend,
.market-row {
  display: grid;
  grid-template-columns: var(--market-grid-columns);
  gap: 10px;
  align-items: center;
}

.market-feed__topline {
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.market-feed__eyebrow {
  color: rgba(217, 239, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-feed__status {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0b45a;
  color: #214c3f;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.market-feed__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.market-feed__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.market-feed__more-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: #f8fbf8;
  color: #226c55;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(24, 83, 62, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-feed__more-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(24, 83, 62, 0.2);
}

.market-feed__title {
  color: #f5fbff;
  font-size: 1.16rem;
  line-height: 1.1;
}

.market-feed__subtitle {
  margin-top: 6px;
  color: rgba(225, 241, 255, 0.8);
  font-size: 0.76rem;
  line-height: 1.45;
}

.market-feed__pulse {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: #61f0a9;
  box-shadow: 0 0 0 0 rgba(97, 240, 169, 0.48);
  animation: marketPulse 1.8s infinite;
  flex-shrink: 0;
}

.market-feed__legend {
  color: rgba(216, 235, 249, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-feed__legend > span:not(:first-child),
.market-table__legend > span:not(:first-child),
.market-24h-button {
  justify-self: end;
  text-align: right;
}

.market-24h-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.market-24h-button__arrows {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 8px;
  flex-shrink: 0;
}

.market-24h-button__arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.55;
}

.market-24h-button__arrow--up {
  border-bottom: 5px solid currentColor;
}

.market-24h-button__arrow--down {
  border-top: 5px solid currentColor;
}

.market-24h-button[data-filter="gainers"] .market-24h-button__arrow--up,
.market-24h-button[data-filter="losers"] .market-24h-button__arrow--down,
.market-24h-button[data-filter="normal"] .market-24h-button__arrow {
  opacity: 1;
}

.market-24h-button[data-filter="gainers"] .market-24h-button__arrow--down,
.market-24h-button[data-filter="losers"] .market-24h-button__arrow--up {
  opacity: 0.2;
}

.market-feed__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: #f6fbf8;
  border: 1px solid #b8ddca;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

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

.market-row__badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: #e8f5ef;
  border: 1px solid #abd7c0;
  flex-shrink: 0;
}

.market-row__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.market-row__logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #d9efe4;
  color: #226c55;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.market-row__symbol {
  display: block;
  color: #214c3f;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
}

.market-row__name {
  display: block;
  margin-top: 3px;
  color: #5f7f73;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-row__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.market-row__stat-label {
  color: #789189;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.market-row__stat-value {
  color: #214c3f;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-row__stat-value--positive {
  color: #128551;
}

.market-row__stat-value--negative {
  color: #c55353;
}

.market-row__stat-value--muted {
  color: #577368;
}

@keyframes marketPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(97, 240, 169, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(97, 240, 169, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(97, 240, 169, 0);
  }
}

.market-screen-body {
  display: block;
  min-height: 100%;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.64), transparent 30%),
    radial-gradient(circle at bottom right, rgba(129, 180, 233, 0.28), transparent 30%),
    linear-gradient(180deg, #eef7ff 0%, #d7e9f8 52%, #edf5fb 100%);
}

.market-app-shell {
  width: 100%;
  min-height: 100dvh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(85, 143, 201, 0.2), rgba(255, 255, 255, 0.34) 52%, rgba(187, 216, 243, 0.22) 100%);
}

.market-screen-main {
  min-height: 100dvh;
  padding-bottom: calc(var(--footer-height) + 88px + env(safe-area-inset-bottom));
}

.content-section--market-page {
  padding-top: 6px;
}

.market-screen__hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  margin-bottom: 14px;
  padding: 18px 66px 16px 18px;
  border: 1px solid rgba(83, 135, 105, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(246, 251, 248, 0.98), rgba(219, 239, 229, 0.94) 52%, rgba(255, 243, 224, 0.92));
  box-shadow: 0 16px 30px rgba(35, 108, 85, 0.14);
}

.market-screen__title-block {
  max-width: 780px;
}

.market-screen__eyebrow {
  display: block;
  color: #5f7fa0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-screen__title {
  margin-top: 8px;
  color: #244466;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.market-screen__subtitle {
  margin-top: 10px;
  color: #58728f;
  font-size: 0.84rem;
  line-height: 1.55;
}

.market-screen__status-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.market-screen__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(101, 147, 194, 0.18);
}

.market-screen__logo--corner {
  position: absolute;
  top: 12px;
  right: 12px;
}

.market-screen__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116, 154, 194, 0.22);
  background: rgba(243, 249, 255, 0.9);
  color: #355775;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.market-table {
  position: relative;
  border: 1px solid rgba(83, 135, 105, 0.2);
  border-radius: 18px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(250, 253, 250, 0.98), rgba(232, 245, 238, 0.94));
  box-shadow: 0 18px 34px rgba(35, 108, 85, 0.12);
}

.market-table__legend,
.market-table__row {
  display: grid;
  grid-template-columns: var(--market-grid-columns);
  gap: 10px;
  align-items: center;
}

.market-table__legend {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(130, 171, 209, 0.18);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: rgb(238, 248, 242);
  color: #527366;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.market-table__legend::before {
  content: none;
}

.market-table__list {
  display: flex;
  flex-direction: column;
}

.market-table__row {
  min-height: 74px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(130, 171, 209, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

.market-table__row:hover {
  background: rgba(255, 255, 255, 0.72);
}

.market-table__row:last-child {
  border-bottom: 0;
}

.market-table__row--placeholder {
  grid-template-columns: 1fr;
  color: #4d6886;
  font-weight: 700;
}

.market-table__coin {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.market-table__logo-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 178, 149, 0.24);
}

.market-table__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.market-table__logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(223, 241, 232, 0.92);
  color: #226c55;
  font-size: 0.76rem;
  font-weight: 900;
}

.market-table__coin-meta {
  min-width: 0;
}

.market-table__coin-symbol {
  display: block;
  color: #244466;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.market-table__coin-name {
  display: block;
  margin-top: 4px;
  color: #5b7693;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.market-table__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.market-table__stat-label {
  color: #7290ad;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-table__stat-value {
  color: #244466;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.market-table__stat-value--positive {
  color: #128551;
}

.market-table__stat-value--negative {
  color: #c55353;
}

.market-table__stat-value--muted {
  color: #3c5f80;
}

.trade-fab {
  position: fixed;
  right: 24px;
  bottom: calc(var(--footer-height) + 20px + env(safe-area-inset-bottom));
  z-index: 5;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #38ba7f, #1f8b64);
  color: #f7fffb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(18, 96, 68, 0.34);
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(var(--page-gutter), env(safe-area-inset-bottom));
  width: var(--shell-width);
  transform: translateX(-50%);
  justify-content: space-between;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: var(--footer-bg);
  border-top: 1px solid rgba(116, 154, 194, 0.22);
  box-shadow: 0 -14px 28px rgba(37, 77, 118, 0.12);
  z-index: 900;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 2px 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item.active {
  color: var(--accent-strong);
}

.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.profile-button .icon {
  width: 25px;
  height: 25px;
}

.store-page {
  gap: 14px;
}

.store-page::after {
  content: none;
}

.lras-page::after {
  content: none;
}

.store-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}

.store-heading__eyebrow {
  color: #5f7fa0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-heading__title {
  color: #244466;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 800;
}

.store-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lras-section {
  display: flex;
  flex-direction: column;
}

.lras-section__eyebrow {
  color: #5d7794;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lras-summary-card,
.lras-levels-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(105, 146, 190, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.96), rgba(215, 230, 245, 0.9) 56%, rgba(233, 242, 251, 0.94));
  box-shadow: 0 18px 34px rgba(74, 113, 161, 0.12);
}

.lras-summary-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(145deg, rgba(34, 97, 126, 0.98), rgba(57, 142, 123, 0.92) 50%, rgba(241, 166, 76, 0.88));
  color: #f8fbff;
}

.lras-summary-card__top,
.lras-summary-stats {
  display: flex;
  gap: 12px;
}

.lras-summary-card__top {
  align-items: flex-start;
  justify-content: space-between;
}

.lras-summary-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 250px;
}

.lras-summary-card__title,
.lras-levels-card__title {
  font-size: 1.25rem;
  line-height: 1.08;
  font-weight: 800;
}

.lras-summary-card__text,
.lras-levels-card__text {
  font-size: 0.78rem;
  line-height: 1.45;
}

.lras-summary-card__text {
  color: rgba(243, 249, 255, 0.9);
}

.lras-summary-card__level-pill {
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff7e7;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lras-qualification-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lras-qualification-card__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 238, 196, 0.98), rgba(237, 182, 74, 0.92));
  color: #8d5d05;
  box-shadow: 0 12px 22px rgba(48, 32, 3, 0.18);
  flex-shrink: 0;
}

.lras-qualification-card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lras-qualification-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.lras-qualification-card__label {
  color: rgba(246, 250, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lras-qualification-card__value {
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 800;
}

.lras-qualification-card__badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff8ea;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.lras-summary-stat,
.lras-invite-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lras-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lras-summary-stat__label,
.lras-invite-card__label {
  color: rgba(242, 248, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lras-summary-stat__value {
  font-size: 1.02rem;
  font-weight: 800;
}

.lras-invite-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lras-invite-card__link {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.lras-levels-card {
  gap: 16px;
}

.lras-qualification-table-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(105, 146, 190, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.96), rgba(215, 230, 245, 0.9) 56%, rgba(233, 242, 251, 0.94));
  box-shadow: 0 18px 34px rgba(74, 113, 161, 0.12);
}

.lras-qualification-table-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lras-table-wrap {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid rgba(112, 153, 195, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.lras-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.lras-table thead th {
  padding: 12px 12px;
  background: linear-gradient(145deg, rgba(226, 239, 251, 0.98), rgba(206, 227, 245, 0.92));
  color: #54708c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.lras-table tbody td {
  padding: 13px 12px;
  color: #2c4a69;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  border-top: 1px solid rgba(120, 159, 198, 0.16);
  vertical-align: top;
  word-break: break-word;
}

.lras-table th:nth-child(1),
.lras-table td:nth-child(1) {
  width: 23%;
}

.lras-table th:nth-child(2),
.lras-table td:nth-child(2) {
  width: 41%;
}

.lras-table th:nth-child(3),
.lras-table td:nth-child(3) {
  width: 36%;
}

.lras-table tbody tr:nth-child(even) {
  background: rgba(240, 247, 255, 0.74);
}

.lras-table tbody tr:hover {
  background: rgba(230, 242, 255, 0.88);
}

.lras-table tbody td strong {
  color: #21405f;
  font-weight: 800;
}

.lras-table--matrix thead th,
.lras-table--matrix tbody td {
  padding: 9px 6px;
  text-align: center;
}

.lras-table--matrix thead th {
  font-size: 0.55rem;
  letter-spacing: 0.03em;
}

.lras-table--matrix tbody td {
  font-size: 0.66rem;
  line-height: 1.2;
}

.lras-table--matrix th:nth-child(1),
.lras-table--matrix td:nth-child(1) {
  width: 16%;
  text-align: left;
}

.lras-table--matrix th:nth-child(2),
.lras-table--matrix td:nth-child(2),
.lras-table--matrix th:nth-child(3),
.lras-table--matrix td:nth-child(3),
.lras-table--matrix th:nth-child(4),
.lras-table--matrix td:nth-child(4),
.lras-table--matrix th:nth-child(5),
.lras-table--matrix td:nth-child(5),
.lras-table--matrix th:nth-child(6),
.lras-table--matrix td:nth-child(6) {
  width: 11%;
}

.lras-table--matrix th:nth-child(7),
.lras-table--matrix td:nth-child(7) {
  width: 18%;
}

.lras-levels-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lras-levels-card__text {
  color: #67809a;
}

.lras-inline-link {
  color: #1f6fb2;
  font-weight: 800;
  text-decoration: none;
}

.lras-inline-link:hover {
  text-decoration: underline;
}

.lras-chart {
  display: block;
}

.lras-chart-panel {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 12px 10px 0;
  border-radius: 22px;
  background:
    repeating-linear-gradient(
      to top,
      rgba(118, 156, 194, 0.14) 0,
      rgba(118, 156, 194, 0.14) 1px,
      transparent 1px,
      transparent 25%
    ),
    linear-gradient(180deg, rgba(238, 246, 254, 0.94), rgba(221, 236, 249, 0.84));
  box-shadow: inset 0 0 0 1px rgba(105, 148, 191, 0.12);
}

.lras-chart-bar {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
}

.lras-chart-bar__tag {
  position: absolute;
  top: -2px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(36, 151, 99, 0.12);
  color: #1f8a5a;
  box-shadow: inset 0 0 0 1px rgba(60, 173, 118, 0.18);
}

.lras-chart-bar__tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.lras-chart-bar__value {
  color: #2d5a86;
  font-size: 0.78rem;
  font-weight: 800;
}

.lras-chart-bar__track {
  width: 100%;
  max-width: 30px;
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 3px;
  border-radius: 16px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(105, 148, 191, 0.14);
}

.lras-chart-bar__fill {
  width: 100%;
  height: max(var(--bar-height), 10px);
  border-radius: 12px 12px 6px 6px;
  background:
    linear-gradient(180deg, rgba(131, 214, 238, 0.98), rgba(48, 124, 201, 0.96) 42%, rgba(35, 92, 168, 0.98));
  box-shadow: 0 10px 18px rgba(49, 121, 197, 0.2);
}

.lras-chart-bar__fill--empty {
  height: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.lras-chart-bar--current .lras-chart-bar__track {
  background: rgba(240, 255, 247, 0.86);
  box-shadow: inset 0 0 0 1px rgba(74, 174, 120, 0.24);
}

.lras-chart-bar--current .lras-chart-bar__fill {
  background:
    linear-gradient(180deg, rgba(160, 241, 191, 0.98), rgba(53, 189, 114, 0.96) 42%, rgba(28, 134, 78, 0.98));
  box-shadow: 0 10px 18px rgba(34, 139, 92, 0.24);
}

.lras-chart-bar__label {
  color: #254466;
  font-size: 0.78rem;
  font-weight: 800;
}

.store-card-row {
  display: grid;
  gap: 12px;
}

.store-card-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-card-row--categories {
  align-items: stretch;
}

.store-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 20px;
  border: 1px solid rgba(101, 147, 194, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(145deg, rgba(232, 244, 255, 0.96), rgba(202, 224, 245, 0.84) 54%, rgba(225, 239, 250, 0.92));
  box-shadow: 0 14px 30px rgba(76, 116, 168, 0.12);
  text-align: center;
}

.store-card--category {
  width: 100%;
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-card--category:hover,
.store-card--category:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(59, 104, 160, 0.16);
}

.store-card--category:focus-visible {
  outline: 2px solid rgba(42, 114, 191, 0.28);
  outline-offset: 2px;
}

.store-card--category.is-active {
  border-color: rgba(30, 118, 91, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(30, 118, 91, 0.18),
    0 18px 34px rgba(58, 118, 92, 0.18);
}

.store-card--hero {
  min-height: 104px;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92) 44%, rgba(232, 147, 50, 0.9)),
    rgba(255, 255, 255, 0.7);
}

.store-card--hero .store-card__label {
  color: #f8fbff;
}

.store-card--strip {
  min-height: 66px;
  justify-content: stretch;
  background:
    linear-gradient(90deg, rgba(46, 91, 136, 0.08), transparent 22%),
    radial-gradient(circle at right center, rgba(123, 187, 238, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(241, 248, 255, 0.98), rgba(213, 230, 247, 0.88) 52%, rgba(229, 241, 252, 0.95));
  border-color: rgba(86, 130, 178, 0.24);
  box-shadow: 0 14px 28px rgba(73, 112, 161, 0.13);
}

.store-card__label {
  color: #31506f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-card-row .store-card:nth-child(1) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(220, 244, 255, 0.98), rgba(176, 219, 245, 0.9));
  border-color: rgba(86, 149, 197, 0.28);
}

.store-card-row .store-card:nth-child(2) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(230, 248, 240, 0.98), rgba(174, 224, 202, 0.9));
  border-color: rgba(76, 156, 123, 0.28);
}

.store-card-row .store-card:nth-child(3) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(240, 245, 255, 0.98), rgba(198, 213, 244, 0.9));
  border-color: rgba(108, 132, 196, 0.28);
}

.store-card-row--featured-home .store-card--feature {
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  color: #31506f;
}

.store-card-row--featured-home .store-card__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.store-card-feature__icon {
  width: 36px;
  height: 36px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-card-row--featured-home .store-card:nth-child(1) {
  color: #8a6114;
}

.store-card-row--featured-home .store-card:nth-child(2) {
  color: #1f7b59;
}

.store-card-row--featured-home .store-card:nth-child(3) {
  color: #4360a9;
}

.store-promo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-promo__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-promo__logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(10, 42, 31, 0.22);
}

.store-promo__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-promo__badge {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 245, 227, 0.2);
  border: 1px solid rgba(255, 240, 207, 0.32);
  color: #fff3dd;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-promo__title {
  color: #fdfefd;
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 800;
}

.store-promo__text {
  color: rgba(245, 251, 247, 0.92);
  font-size: 0.76rem;
  line-height: 1.35;
}

.store-promo__highlight {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff9ee;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.store-panel {
  width: 100%;
}

.store-panel__list {
  display: grid;
  gap: 14px;
}

.store-offer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-offer__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.store-offer__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.store-offer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-offer__brand {
  color: #1f1f1f;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.store-offer__amount {
  color: #0e8e49;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
}

.store-offer__old {
  color: #c43b3b;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
}

.store-offer__old-value {
  text-decoration: line-through;
  text-decoration-thickness: 1.4px;
}

.store-offer__bonus {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(27, 153, 84, 0.12);
  color: #13824a;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.store-offer__price {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.store-offer__price-value {
  color: #ef8d1f;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.store-offer__price-unit {
  color: #1f1f1f;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.store-card--gl-summary,
.store-card--placeholder {
  justify-content: flex-start;
  text-align: left;
}

.store-gl-summary,
.store-placeholder {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.store-gl-summary__copy,
.store-placeholder {
  min-width: 0;
}

.store-gl-summary__eyebrow,
.store-placeholder__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 133, 81, 0.1);
  color: #17764d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-gl-summary__title,
.store-placeholder__title {
  color: #224261;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.store-gl-summary__text,
.store-placeholder__text {
  margin-top: 6px;
  color: #4f6780;
  font-size: 0.76rem;
  line-height: 1.45;
}

.store-gl-summary__chip {
  flex-shrink: 0;
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 108, 85, 0.1);
  color: #1b7552;
  font-size: 0.68rem;
  font-weight: 800;
}

.store-rank-offer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.store-rank-offer__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.store-rank-offer__title {
  color: #224261;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.store-rank-offer__reward {
  color: #167d49;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.store-rank-offer__note {
  color: #5c748d;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.trades-screen {
  padding-top: 6px;
}

.trades-shell {
  gap: 16px;
}

.trades-hero-card {
  align-items: stretch;
  min-height: 126px;
  padding: 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at left bottom, rgba(129, 214, 179, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(22, 73, 118, 0.98), rgba(38, 119, 146, 0.94) 44%, rgba(64, 173, 130, 0.92));
  border-color: rgba(88, 169, 203, 0.26);
  box-shadow: 0 20px 38px rgba(28, 73, 112, 0.22);
}

.trades-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trades-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trades-hero__eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(246, 252, 255, 0.18);
  border: 1px solid rgba(246, 252, 255, 0.22);
  color: #eefaff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trades-hero__title {
  color: #fcfeff;
  font-size: 1.18rem;
  line-height: 1.14;
  font-weight: 800;
}

.trades-hero__text {
  max-width: 350px;
  color: rgba(239, 249, 255, 0.9);
  font-size: 0.76rem;
  line-height: 1.45;
}

.trades-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.trades-hero__live,
.trades-hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #f7fffb;
  font-size: 0.68rem;
  font-weight: 700;
}

.trades-hero__live {
  background: rgba(12, 47, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(197, 243, 222, 0.16);
}

.trades-hero__stamp {
  background: rgba(247, 252, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(247, 252, 255, 0.14);
}

.trades-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6cf0a6;
  box-shadow: 0 0 0 6px rgba(108, 240, 166, 0.16);
  animation: tradesPulse 1.8s ease-in-out infinite;
}

@keyframes tradesPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.72;
  }
}

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

.trades-summary-card {
  min-height: 118px;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(106, 147, 190, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(145deg, rgba(245, 250, 255, 0.98), rgba(223, 236, 248, 0.9));
  box-shadow: 0 16px 28px rgba(72, 112, 159, 0.12);
}

.trades-summary-card--highlight {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(21, 86, 108, 0.98), rgba(34, 132, 123, 0.92));
  border-color: rgba(53, 166, 150, 0.24);
}

.trades-summary-card--positive {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(234, 251, 242, 0.98), rgba(191, 234, 210, 0.92));
  border-color: rgba(78, 162, 116, 0.22);
}

.trades-summary-card--floating {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(145deg, rgba(241, 247, 255, 0.98), rgba(208, 222, 248, 0.92));
  border-color: rgba(96, 128, 194, 0.24);
}

.trades-summary-card__label {
  display: block;
  color: #56728e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trades-summary-card--highlight .trades-summary-card__label {
  color: rgba(238, 251, 255, 0.76);
}

.trades-summary-card__value {
  display: block;
  margin-top: 12px;
  color: #1f4467;
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1;
}

.trades-summary-card--highlight .trades-summary-card__value {
  color: #fcfeff;
}

.trades-summary-card__meta {
  display: block;
  margin-top: 10px;
  color: #5f7995;
  font-size: 0.7rem;
  line-height: 1.4;
}

.trades-summary-card--highlight .trades-summary-card__meta {
  color: rgba(239, 250, 255, 0.88);
}

.trades-toolbar-card {
  padding: 14px;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(46, 91, 136, 0.07), transparent 22%),
    radial-gradient(circle at right center, rgba(133, 190, 232, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(246, 251, 255, 0.98), rgba(219, 234, 248, 0.9));
}

.trades-toolbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trades-filter-row,
.trades-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trades-filter-button,
.trades-tab {
  border: 1px solid rgba(95, 136, 179, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #476682;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.trades-filter-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
}

.trades-tab {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 800;
}

.trades-filter-button:hover,
.trades-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(61, 103, 149, 0.12);
}

.trades-filter-button.is-active,
.trades-tab.is-active {
  background: linear-gradient(145deg, #2f6da3, #235884);
  color: #f6fbff;
  border-color: rgba(35, 88, 132, 0.18);
  box-shadow: 0 12px 22px rgba(45, 91, 138, 0.2);
}

.trades-tab__count {
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(67, 111, 155, 0.12);
  font-size: 0.64rem;
}

.trades-tab.is-active .trades-tab__count {
  background: rgba(255, 255, 255, 0.16);
}

.trades-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trades-status-panel {
  display: none;
  gap: 14px;
}

.trades-status-panel.is-active {
  display: flex;
  flex-direction: column;
}

.trades-panel-header {
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trades-panel-header__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 91, 136, 0.08);
  color: #35608a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trades-panel-header__title {
  color: #234466;
  font-size: 1.04rem;
  line-height: 1.2;
}

.trades-panel-header__text {
  color: #69819b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.trades-list,
.trades-running-grid {
  display: grid;
  gap: 12px;
}

.trade-order-card,
.trade-coin-card {
  padding: 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(102, 145, 188, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(145deg, rgba(242, 249, 255, 0.98), rgba(219, 234, 248, 0.9));
  box-shadow: 0 16px 28px rgba(72, 112, 159, 0.12);
}

.trade-order-card--paused {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(145deg, rgba(255, 248, 235, 0.98), rgba(244, 221, 185, 0.9));
  border-color: rgba(198, 151, 89, 0.22);
}

.trade-order-card--stopped {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(145deg, rgba(255, 241, 241, 0.98), rgba(246, 210, 210, 0.9));
  border-color: rgba(190, 115, 115, 0.22);
}

.trade-order-card--closed {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(145deg, rgba(235, 248, 242, 0.98), rgba(207, 236, 220, 0.9));
  border-color: rgba(92, 168, 123, 0.22);
}

.trade-order-card__top,
.trade-coin-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trade-order-card__title-wrap,
.trade-coin-card__title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trade-order-card__eyebrow,
.trade-coin-card__eyebrow {
  color: #6c86a1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trade-order-card__pair,
.trade-coin-card__title {
  color: #21415f;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
}

.trade-order-card__subtext,
.trade-coin-card__subtext {
  color: #67819b;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.trade-order-card__chips,
.trade-coin-card__chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trade-chip--spot {
  background: rgba(36, 126, 206, 0.1);
  color: #266aa8;
}

.trade-chip--futures {
  background: rgba(96, 75, 179, 0.1);
  color: #5b4bb0;
}

.trade-chip--active {
  background: rgba(33, 160, 99, 0.12);
  color: #158453;
}

.trade-chip--paused {
  background: rgba(220, 143, 39, 0.12);
  color: #b56a0a;
}

.trade-chip--stopped {
  background: rgba(197, 83, 83, 0.12);
  color: #b54747;
}

.trade-chip--closed {
  background: rgba(81, 138, 99, 0.14);
  color: #2b7e4a;
}

.trade-order-card__reason {
  margin-top: 12px;
  color: #516c87;
  font-size: 0.72rem;
  line-height: 1.45;
}

.trade-order-metrics,
.trade-coin-card__metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trade-metric {
  padding: 10px 10px 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(105, 148, 191, 0.1);
}

.trade-metric__label {
  display: block;
  color: #6a849f;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trade-metric__value {
  display: block;
  margin-top: 6px;
  color: #274866;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.trade-pnl--positive {
  color: #118049;
}

.trade-pnl--negative {
  color: #c24343;
}

.trade-order-card__footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-progress__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5f7a95;
  font-size: 0.66rem;
  font-weight: 700;
}

.trade-progress__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(128, 166, 202, 0.18);
  overflow: hidden;
}

.trade-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6da3, #35ba84);
}

.trade-order-card__note {
  color: #4f6984;
  font-size: 0.68rem;
  line-height: 1.45;
}

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

.trade-coin-card__footer {
  margin-top: 14px;
  color: #53708d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.trade-empty-state {
  padding: 22px 16px;
  border-radius: 24px;
  border: 1px dashed rgba(102, 145, 188, 0.26);
  background: rgba(247, 251, 255, 0.56);
  color: #607b97;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.assets-primary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 0;
}

.assets-primary-card > * {
  width: 100%;
}

.assets-secondary-card {
  border-radius: 0;
}

.assets-gas-section-card {
  border-radius: 0;
}

.assets-action-shell {
  min-height: 0;
  padding: 8px;
  border-radius: 22px;
}

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

.assets-action-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assets-action-grid--single {
  grid-template-columns: 1fr;
}

.assets-action-item {
  min-height: 36px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(130, 171, 209, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.assets-action-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(63, 104, 150, 0.18);
  border-color: rgba(77, 132, 186, 0.34);
}

.assets-action-item:nth-child(1) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(232, 248, 240, 0.98), rgba(182, 227, 202, 0.92));
}

.assets-action-item:nth-child(2) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 241, 236, 0.98), rgba(242, 205, 192, 0.92));
}

.assets-action-item:nth-child(3) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(237, 245, 255, 0.98), rgba(197, 219, 245, 0.92));
}

.assets-action-item:nth-child(4) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 246, 230, 0.98), rgba(241, 214, 173, 0.92));
}

.assets-action-item:nth-child(5) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(232, 248, 240, 0.98), rgba(239, 211, 188, 0.92));
}

.assets-action-item:nth-child(6) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(244, 241, 255, 0.98), rgba(202, 220, 246, 0.92));
}

.assets-action-grid--single .assets-action-item {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 246, 230, 0.98), rgba(241, 214, 173, 0.92));
}

.assets-action-item .shortcut-card {
  gap: 2px;
  min-height: 100%;
  border-radius: 16px;
  padding: 6px 4px;
}

.assets-action-item .shortcut-card span {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.05;
}

.assets-summary-card {
  padding: 16px 14px;
  border-radius: 0;
}

.assets-balance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.assets-balance-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 84px;
}

.profits-balance-card {
  align-items: stretch;
  justify-content: space-between;
  min-height: 168px;
  padding: 16px;
}

.profits-detail-section {
  position: relative;
  margin-top: 4px;
  padding-top: 22px;
  width: calc(100% + 40px);
  margin-right: -20px;
  margin-left: -20px;
}

.profits-detail-section::before,
.profits-detail-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.profits-detail-section::before {
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 142, 73, 0.7), transparent);
}

.profits-detail-section::after {
  top: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(14, 142, 73, 0.14), rgba(14, 142, 73, 0));
}

.profits-detail-section > .section-box {
  position: relative;
  z-index: 1;
  width: 100%;
}

.profits-detail-section .assets-summary-card {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
}

.profits-detail-section .assets-primary-card {
  width: 100%;
  padding-right: 14px;
  padding-left: 14px;
  border-right: 0;
  border-left: 0;
}

.assets-balance-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.profits-balance-copy {
  justify-content: center;
  min-width: 126px;
}

.profits-chart {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 2px;
  border-radius: 18px;
  border: 1px solid rgba(130, 171, 209, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(237, 247, 255, 0.58)),
    linear-gradient(145deg, rgba(232, 248, 240, 0.74), rgba(217, 234, 251, 0.72));
}

.profits-chart__svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  overflow: visible;
}

.profits-chart__axis {
  stroke: rgba(49, 80, 111, 0.34);
  stroke-width: 1.25;
}

.profits-chart__baseline {
  stroke: rgba(49, 80, 111, 0.72);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.profits-chart__grid {
  stroke: rgba(95, 121, 150, 0.14);
  stroke-width: 1;
}

.profits-chart__date-line {
  stroke: rgba(14, 142, 73, 0.2);
  stroke-dasharray: 3 5;
  stroke-width: 1.25;
}

.profits-chart__label {
  fill: #5f7996;
  font-size: 11px;
  font-weight: 800;
}

.profits-chart__label--x {
  font-size: 10px;
}

.profits-chart__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profits-chart__area {
  fill: rgba(14, 142, 73, 0.12);
}

.profits-chart__line {
  stroke: #0e8e49;
  stroke-width: 2.8;
}

.profits-chart__point {
  fill: #ffffff;
  stroke: #0e8e49;
  stroke-width: 2.4;
}

.profits-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(130, 171, 209, 0.22);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 251, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 18px rgba(63, 104, 150, 0.06);
}

.profits-table th,
.profits-table td {
  padding: 12px 12px;
  border-top: 1px solid rgba(130, 171, 209, 0.16);
  line-height: 1.15;
  vertical-align: middle;
}

.profits-table th:first-child,
.profits-table td:first-child {
  padding-left: 16px;
}

.profits-table th:last-child,
.profits-table td:last-child {
  padding-right: 16px;
}

.profits-table td:first-child {
  text-align: left;
}

.profits-table thead th {
  border-top: 0;
  padding: 10px 5px;
  background: transparent;
  color: #31506f;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.profits-table__heading {
  box-sizing: border-box;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px 6px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.profits-table thead th:nth-child(1) .profits-table__heading {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(232, 248, 240, 0.98), rgba(182, 227, 202, 0.92));
}

.profits-table thead th:nth-child(2) .profits-table__heading {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 241, 236, 0.98), rgba(242, 205, 192, 0.92));
}

.profits-table thead th:nth-child(3) .profits-table__heading {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(237, 245, 255, 0.98), rgba(197, 219, 245, 0.92));
}

.profits-table thead th:nth-child(4) .profits-table__heading {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 246, 230, 0.98), rgba(241, 214, 173, 0.92));
}

.profits-table tbody td {
  color: #0e8e49;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.profits-table tbody td:first-child {
  color: #31506f;
  font-weight: 700;
}

.profits-table tbody tr:nth-child(even) td {
  background: rgba(238, 247, 255, 0.42);
}

.assets-balance-card--right {
  justify-content: flex-end;
}

.assets-balance-block--right {
  align-items: flex-end;
  text-align: right;
}

.assets-balance-meta,
.assets-balance-note,
.store-offer__meta-text {
  color: #5f7996;
  font-size: 0.68rem;
  line-height: 1.45;
}

.assets-gas-card {
  border-radius: 0;
}

.assets-gas-shell {
  width: 100%;
}

.assets-gas-action-shell {
  width: 100%;
}

.assets-gas-action-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 246, 230, 0.98), rgba(241, 214, 173, 0.92));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.assets-gas-action-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(63, 104, 150, 0.18);
  border-color: rgba(77, 132, 186, 0.34);
}

.assets-gas-action-item .shortcut-card {
  min-height: 100%;
  border-radius: 16px;
  padding: 6px 4px;
}

.assets-gas-action-item .shortcut-card span {
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.05;
}

.assets-gas-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.assets-gas-item {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.98), rgba(214, 231, 247, 0.92));
  text-align: left;
}

.assets-gas-item__label {
  color: #5f7fa0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.assets-gas-item__value {
  color: #214365;
  font-size: 0.88rem;
  line-height: 1.15;
  font-weight: 800;
}

.assets-trading-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assets-trading-shell {
  width: 100%;
}

.assets-trading-card {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 18px;
  text-align: left;
}

.assets-trading-card__label {
  color: #5f7fa0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assets-trading-card__value {
  color: #214365;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
}

.assets-balance-meta {
  font-weight: 700;
}

.assets-balance-block--align-end {
  align-items: flex-end;
  text-align: right;
}

.assets-summary-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.assets-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(130, 171, 209, 0.16);
}

.assets-summary-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.assets-summary-row:last-child {
  padding-bottom: 0;
}

.assets-summary-row__amount {
  margin-left: auto;
  color: #0e8e49;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.assets-summary-row__amount--negative {
  color: #d14d57;
}

.assets-summary-row__label {
  flex: 1;
  color: #31506f;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.commission-dashboard-card {
  align-items: stretch;
  text-align: left;
}

.commission-metric-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.commission-metric-card {
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 9px 6px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(237, 245, 255, 0.98), rgba(197, 219, 245, 0.92));
  color: #31506f;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.commission-metric-card:hover,
.commission-metric-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(30, 118, 91, 0.34);
  box-shadow: 0 14px 26px rgba(30, 118, 91, 0.14);
}

.commission-metric-card.is-active {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(232, 248, 240, 0.98), rgba(182, 227, 202, 0.92));
}

.commission-metric-card span {
  width: 100%;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.commission-metric-card strong {
  color: #0e8e49;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.commission-member-panel {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  background: rgba(247, 251, 255, 0.58);
}

.commission-member-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.commission-member-panel .store-promo__badge {
  background: rgba(232, 248, 240, 0.98);
  border-color: rgba(30, 118, 91, 0.24);
  color: #0e6f3d;
}

.commission-member-panel__title {
  margin-top: 6px;
  color: #244466;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

.commission-member-panel__total {
  color: #0e8e49;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.team-member-search {
  display: block;
  margin-bottom: 12px;
}

.team-member-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(92, 137, 181, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e3d5d;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  outline: 0;
  padding: 0 12px;
}

.team-member-search input:focus {
  border-color: rgba(14, 142, 73, 0.42);
  box-shadow: 0 0 0 3px rgba(14, 142, 73, 0.1);
}

.commission-member-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.commission-member-table__head,
.commission-member-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  gap: 10px;
  align-items: center;
}

.commission-member-table__head {
  padding: 0 0 8px;
  color: #31506f;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commission-member-table__body {
  display: flex;
  flex-direction: column;
}

.commission-member-row {
  padding: 10px 0;
  border-top: 1px solid rgba(130, 171, 209, 0.16);
  color: #244466;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}

.commission-member-row strong {
  color: #0e8e49;
  font-weight: 900;
  text-align: right;
}

.commission-member-row--interactive {
  cursor: pointer;
  border-radius: 8px;
  padding-inline: 8px;
}

.commission-member-row--interactive:hover,
.commission-member-row--interactive:focus-visible {
  background: rgba(14, 142, 73, 0.08);
  outline: 2px solid rgba(14, 142, 73, 0.18);
  outline-offset: -2px;
}

.commission-claim-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(30, 118, 91, 0.18);
}

.team-member-detail-grid strong {
  overflow-wrap: anywhere;
}

.team-member-running-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-member-running-list div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.78);
}

.team-member-running-list strong {
  color: #17395a;
  font-size: 0.82rem;
}

.team-member-running-list span,
.team-member-running-list small {
  color: #5a7590;
  font-size: 0.72rem;
  font-weight: 750;
}

.team-member-contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-member-contact-row a {
  min-width: 130px;
  text-align: center;
  text-decoration: none;
}

html[data-theme="dark"] .commission-member-row--interactive:hover,
html[data-theme="dark"] .commission-member-row--interactive:focus-visible {
  background: rgba(240, 185, 11, 0.1);
  outline-color: rgba(240, 185, 11, 0.24);
}

html[data-theme="dark"] .team-member-running-list div {
  background: rgba(43, 49, 57, 0.72);
  border-color: var(--bn-line);
}

html[data-theme="dark"] .team-member-running-list strong {
  color: var(--bn-text);
}

html[data-theme="dark"] .team-member-running-list span,
html[data-theme="dark"] .team-member-running-list small {
  color: var(--bn-muted);
}

.risk-dashboard-card,
.leaders-card,
.settings-card,
.info-page-card {
  align-items: stretch;
  text-align: left;
}

.info-page-card {
  gap: 14px;
}

.info-page-card__title {
  margin: 0;
  color: #244466;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.info-page-card__text {
  margin: 0;
  color: #536f8b;
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.6;
}

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

.faq-list details {
  border: 1px solid rgba(130, 171, 209, 0.18);
  border-radius: 10px;
  background: rgba(247, 251, 255, 0.64);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  color: #244466;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
}

.faq-list p {
  margin: 10px 0 0;
  color: #536f8b;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.55;
}

.risk-control-panel,
.fear-greed-card,
.leader-profile {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(130, 171, 209, 0.18);
  background: rgba(247, 251, 255, 0.64);
}

.risk-control-panel .store-promo__badge {
  background: rgba(36, 68, 102, 0.1);
  border-color: rgba(36, 68, 102, 0.22);
  color: #244466;
}

.risk-control-panel__header,
.fear-greed-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.risk-control-panel__title {
  margin-top: 6px;
  color: #244466;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.risk-control-panel__value,
.fear-greed-card__header strong {
  color: #0e8e49;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.risk-slider {
  --risk-level: 15%;
  width: 100%;
  height: 14px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a 0%, #e0a32f 52%, #d94d4d 100%);
  outline: none;
  cursor: pointer;
}

.risk-slider::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 4px solid #f8fbff;
  border-radius: 50%;
  background: linear-gradient(145deg, #244466, #0e8e49);
  box-shadow: 0 8px 18px rgba(36, 68, 102, 0.24);
}

.risk-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid #f8fbff;
  border-radius: 50%;
  background: linear-gradient(145deg, #244466, #0e8e49);
  box-shadow: 0 8px 18px rgba(36, 68, 102, 0.24);
}

.risk-slider-scale,
.fear-greed-card__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #5f7fa0;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}

.fear-greed-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(235, 245, 252, 0.88)),
    rgba(247, 251, 255, 0.72);
}

.fear-greed-card .store-promo__badge {
  background: rgba(36, 68, 102, 0.1);
  border-color: rgba(36, 68, 102, 0.2);
  color: #244466;
}

.fear-greed-card__source {
  display: block;
  margin-top: 6px;
  color: #5f7fa0;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.2;
}

.fear-greed-card__header strong {
  min-width: 54px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(130, 171, 209, 0.18);
  color: #244466;
}

.fear-greed-card__header strong::after {
  content: "/100";
  margin-left: 2px;
  color: #6b849f;
  font-size: 0.56rem;
  font-weight: 850;
  align-self: flex-end;
  padding-bottom: 8px;
}

.fear-greed-card__header strong[data-sentiment="extreme-fear"] {
  color: #c24141;
}

.fear-greed-card__header strong[data-sentiment="fear"] {
  color: #d97706;
}

.fear-greed-card__header strong[data-sentiment="neutral"] {
  color: #607389;
}

.fear-greed-card__header strong[data-sentiment="greed"] {
  color: #0e8e49;
}

.fear-greed-card__header strong[data-sentiment="extreme-greed"] {
  color: #087c53;
}

.fear-greed-gauge {
  --fear-greed-angle: 0deg;
  --fear-greed-inverse-angle: 0deg;
  --fear-greed-position: 64%;
  position: relative;
  width: min(100%, 280px);
  height: 152px;
  margin: 14px auto 0;
  overflow: visible;
}

.fear-greed-gauge__arc {
  position: absolute;
  inset: 8px 0 0;
  border-radius: 250px 250px 0 0;
  background:
    conic-gradient(from 270deg at 50% 100%,
      #d94d4d 0deg,
      #e0a32f 64deg,
      #16a34a 128deg,
      #16a34a 180deg,
      transparent 180deg);
}

.fear-greed-gauge__arc::after {
  content: none;
}

.fear-greed-gauge__mask {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 70%;
  border-radius: 180px 180px 0 0;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(238, 247, 255, 0.98));
  box-shadow: inset 0 10px 18px rgba(63, 104, 150, 0.08);
}

.fear-greed-gauge__needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 100px;
  border-radius: 999px;
  background: #1f3552;
  transform: translateX(-50%) rotate(var(--fear-greed-angle));
  transform-origin: 50% 100%;
  box-shadow: 0 8px 16px rgba(31, 53, 82, 0.2);
}

.fear-greed-gauge__hub {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 20px;
  border: 4px solid #f8fbff;
  border-radius: 50%;
  background: #1f3552;
  transform: translate(-50%, 50%);
  box-shadow: 0 8px 16px rgba(31, 53, 82, 0.18);
}

.fear-greed-gauge__marker {
  position: absolute;
  left: 50%;
  bottom: 0;
  min-width: 34px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f8fbff;
  border-radius: 999px;
  background: #1f3552;
  color: #f8fbff;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(31, 53, 82, 0.2);
  transform:
    translateX(-50%)
    rotate(var(--fear-greed-angle))
    translateY(-104px)
    rotate(var(--fear-greed-inverse-angle));
  transform-origin: 50% 100%;
  z-index: 3;
}

.fear-greed-gauge__scale {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  z-index: 2;
}

.fear-greed-gauge__scale span {
  position: absolute;
  left: 50%;
  bottom: 0;
  min-width: 36px;
  color: #1f3e5d;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
  transform:
    translateX(-50%)
    rotate(var(--scale-angle))
    translateY(-148px)
    rotate(calc(var(--scale-angle) * -1));
  transform-origin: 50% 100%;
}

.fear-greed-gauge__ticks {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  z-index: 2;
}

.fear-greed-gauge__tick {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: rgba(31, 53, 82, 0.46);
  transform:
    translateX(-50%)
    rotate(var(--tick-angle))
    translateY(-110px);
  transform-origin: 50% 100%;
}

.fear-greed-gauge__tick--major {
  height: 16px;
}

.fear-greed-gauge__tick--minor {
  height: 8px;
  width: 1.5px;
  background: rgba(31, 53, 82, 0.3);
  transform:
    translateX(-50%)
    rotate(var(--tick-angle))
    translateY(-106px);
}

.fear-greed-card__labels {
  margin-top: 4px;
}

.leader-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.leader-profile__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #7dc3ff, #2e5b88);
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 900;
}

.leader-profile__content {
  min-width: 0;
  flex: 1;
}

.leader-profile__name {
  margin-top: 6px;
  color: #244466;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

.leader-profile__role {
  margin-top: 2px;
  color: #5f7fa0;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.leader-contact-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.leader-contact-list a,
.leader-contact-list span {
  color: #1d5a8d;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.settings-card {
  gap: 14px;
}

.settings-card--danger {
  border-color: rgba(174, 64, 64, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 247, 0.78)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(112, 48, 48, 0.1);
  margin-top: 6px;
}

.account-deletion-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
}

.account-deletion-card__icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(174, 64, 64, 0.14);
  border-radius: 14px;
  background: rgba(255, 239, 239, 0.88);
  color: #a53d3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-deletion-card__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.account-deletion-card__copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.account-deletion-card__eyebrow {
  color: #9e3d3d;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.account-deletion-card__copy h2 {
  color: #233d5a;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.account-deletion-card__copy p {
  color: #667889;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.account-deletion-card__actions {
  display: flex;
  justify-content: flex-end;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #31506f;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.settings-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(130, 171, 209, 0.22);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.8);
  color: #244466;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 12px;
}

.settings-field input[type="file"] {
  padding: 10px 12px;
}

.settings-avatar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-camera {
  display: grid;
  gap: 10px;
}

.settings-camera[hidden] {
  display: none;
}

.settings-camera video {
  width: 100%;
  max-height: 320px;
  border: 1px solid rgba(130, 171, 209, 0.22);
  border-radius: 14px;
  background: #102033;
  object-fit: cover;
}

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

.settings-button {
  min-height: 42px;
  border: 1px solid rgba(29, 85, 135, 0.16);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.82);
  color: #31506f;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.15;
  padding: 0 10px;
}

.settings-button--primary {
  border-color: rgba(30, 118, 91, 0.2);
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
}

.settings-button--danger,
.settings-card--danger .settings-button {
  border-color: rgba(174, 45, 45, 0.24);
  background: linear-gradient(135deg, rgba(158, 47, 47, 0.96), rgba(195, 73, 73, 0.92));
  color: #fff8f8;
  min-width: 168px;
  padding: 0 16px;
}

.info-card {
  align-items: stretch;
  gap: 14px;
  text-align: left;
}

.info-card__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #45627f;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.58;
}

.info-card__list {
  display: flex;
  flex-direction: column;
}

.info-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(130, 171, 209, 0.16);
  color: #31506f;
  text-decoration: none;
}

.info-card__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-card__row:last-child {
  padding-bottom: 0;
}

.info-card__row span {
  color: #5f7fa0;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.info-card__row strong {
  color: #0e6f3d;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.faq-card {
  gap: 0;
}

.faq-card details {
  padding: 13px 0;
  border-top: 1px solid rgba(130, 171, 209, 0.16);
}

.faq-card details:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-card details:last-child {
  padding-bottom: 0;
}

.faq-card summary {
  color: #244466;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.faq-card p {
  margin-top: 8px;
  color: #55728d;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.55;
}

.invite-summary-row {
  align-items: flex-start;
}

.invite-link-value {
  max-width: 62%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

.invite-commission-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(30, 118, 91, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invite-commission-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(30, 118, 91, 0.24);
}

.invite-ad-card {
  align-items: stretch;
  text-align: left;
}

.invite-ad-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #31506f;
}

.invite-ad-copy__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invite-ad-copy__title {
  color: #244466;
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.2;
}

.invite-copy-button {
  flex-shrink: 0;
  min-height: 34px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(34, 108, 85, 0.96), rgba(47, 148, 108, 0.92));
  color: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(30, 118, 91, 0.16);
}

.invite-ad-copy__message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-ad-copy__message p {
  color: #45627f;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.58;
}

.invite-ad-copy__message strong {
  color: #0e8e49;
  font-weight: 900;
}

@media (max-width: 520px) {
  :root {
    --shell-height: 100dvh;
    --page-gutter: 0px;
    --bottom-nav-clearance: calc(var(--footer-height) + 24px + env(safe-area-inset-bottom));
  }

  body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
    border-radius: 0;
    border: 0;
  }

  .bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .top-bar {
    position: relative;
    width: auto;
    min-height: var(--header-height);
    margin: 0 0 4px;
    padding: 0 16px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    z-index: 2;
  }

  main {
    padding-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: var(--bottom-nav-clearance);
  }

  .profile-menu {
    top: 0;
    bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
    background: var(--footer-bg);
    border-right: 1px solid rgba(116, 154, 194, 0.22);
    box-shadow: 14px 0 28px rgba(37, 77, 118, 0.12);
  }

  .top-actions {
    gap: 8px;
  }

  .store-card {
    min-height: 68px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .store-card--hero {
    min-height: 96px;
  }

  .store-card__label {
    font-size: 0.72rem;
  }

  .store-gl-summary,
  .store-placeholder,
  .store-rank-offer {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-gl-summary__chip {
    align-self: flex-start;
  }

  .store-card-row--featured-home .store-card--feature {
    min-height: 82px;
    gap: 6px;
    padding: 9px 7px;
  }

  .store-card-row--featured-home .store-card__label {
    font-size: 0.72rem;
  }

  .store-card-feature__icon {
    width: 30px;
    height: 30px;
  }

  .market-feed {
    padding: 16px 14px 14px;
  }

  .exchange-connection-item {
    grid-template-columns: 1fr;
  }

  .market-app-shell {
    width: 100%;
    border-radius: 0;
  }

  :root {
    --market-hero-sticky-height: 146px;
    --market-grid-columns: minmax(88px, 1.42fr) minmax(54px, 0.82fr) minmax(48px, 0.72fr) minmax(58px, 0.86fr);
  }

  .market-screen-main {
    padding-bottom: calc(var(--bottom-nav-clearance) + 30px);
  }

  .market-screen__hero {
    flex-direction: column;
    gap: 12px;
    padding: 16px 58px 14px 14px;
  }

  .market-screen__status-wrap {
    padding-top: 0;
  }

  .market-screen__subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .market-table {
    border-radius: 14px;
  }

  .market-table__legend {
    grid-template-columns: var(--market-grid-columns);
    gap: 8px;
    padding: 12px 14px;
    font-size: 0.7rem;
  }

  .market-table__row {
    grid-template-columns: var(--market-grid-columns);
    gap: 8px;
    min-height: 68px;
    padding: 12px 14px;
  }

  .market-table__logo-box {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .market-table__logo {
    width: 28px;
    height: 28px;
  }

  .market-table__coin-symbol,
  .market-table__stat-value {
    font-size: 0.76rem;
  }

  .market-table__coin-name,
  .market-table__stat-label {
    font-size: 0.62rem;
  }

  .trade-fab {
    right: 16px;
    bottom: calc(var(--footer-height) + 14px + env(safe-area-inset-bottom));
    min-width: 124px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.72rem;
  }

  .market-feed__legend {
    display: none;
  }

  .market-feed__headline {
    gap: 10px;
  }

  .market-feed__actions {
    gap: 6px;
  }

  .market-feed__more-button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .market-row {
    grid-template-columns: var(--market-grid-columns);
    gap: 8px;
    padding: 10px 12px;
  }

  .market-row__badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .market-row__logo {
    width: 28px;
    height: 28px;
  }

  .market-row__logo-fallback {
    border-radius: 9px;
  }

  .market-row__symbol {
    font-size: 0.8rem;
  }

  .market-row__name,
  .market-row__stat-label {
    font-size: 0.64rem;
  }

  .market-row__stat-value {
    font-size: 0.72rem;
  }

  .bot-strategy-intro__title {
    max-width: none;
  }

  .bot-strategy-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .bot-strategy-card__inner {
    min-height: 48px;
    padding: 3px 4px;
  }

  .bot-strategy-card__title {
    font-size: 0.64rem;
  }

  .bot-strategy-card__text {
    font-size: 0.48rem;
  }

  .bot-strategy-card__icon {
    width: 22px;
    height: 22px;
  }

  .manual-strategy-intro {
    min-height: 82px;
    padding: 14px 12px;
  }

  .manual-strategy-intro__title {
    font-size: 0.96rem;
  }

  .manual-strategy-intro__text {
    font-size: 0.68rem;
  }

  .manual-strategy-grid {
    display: block;
  }

  .manual-strategy-card {
    min-height: 136px;
    padding: 14px 12px;
  }

  .manual-strategy-card + .manual-strategy-card {
    margin-top: 10px;
  }

  .manual-strategy-card__header {
    gap: 8px;
    width: 100%;
  }

  .manual-strategy-card__header-icon {
    width: 20px;
    height: 20px;
  }

  .manual-strategy-card__title {
    font-size: 0.84rem;
  }

  .manual-strategy-card__text {
    margin-top: 8px;
    font-size: 0.68rem;
    text-align: left;
  }

  .manual-strategy-card__footer {
    margin-top: 10px;
  }

  .manual-strategy-card__button {
    min-width: 72px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .signals-refresh-pill {
    margin-top: 8px;
    font-size: 0.58rem;
  }

  .store-card.signal-card {
    gap: 12px;
    padding: 14px;
  }

  .signal-card__gcm-logo {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .signal-card__download {
    top: 12px;
    right: 54px;
    width: 32px;
    height: 32px;
  }

  .signal-card__title-wrap .market-table__logo-box {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .signal-card__identity strong {
    font-size: 0.92rem;
  }

  .signal-card__time {
    font-size: 0.56rem;
  }

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

  .signal-card__metric {
    min-height: 64px;
    gap: 6px;
    padding: 10px 6px;
  }

  .signal-card__metric strong {
    font-size: 0.66rem;
  }

  .signal-card__footer {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .signal-card__badge {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.56rem;
  }

  .signal-card__button {
    min-height: 34px;
    padding: 0 7px;
    font-size: 0.54rem;
  }

  .strategy-modal {
    padding: 10px 10px calc(var(--footer-height) + 18px + env(safe-area-inset-bottom));
    align-items: flex-start;
  }

  .strategy-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - var(--footer-height) - 28px - env(safe-area-inset-bottom));
  }

  .strategy-modal__header,
  .strategy-modal__footer {
    padding: 14px 14px;
  }

  .strategy-modal__body {
    padding: 14px;
  }

  .strategy-modal__title {
    font-size: 1rem;
  }

  .strategy-modal__subtitle {
    font-size: 0.68rem;
  }

  .strategy-form-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .martingale-capital-grid {
    grid-template-columns: 1fr;
  }

  .martingale-variant__button {
    min-height: 50px;
  }

  .martingale-coin-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .martingale-pair-toolbar {
    grid-template-columns: 1fr;
  }

  .martingale-direction {
    gap: 5px;
  }

  .martingale-direction__button {
    min-height: 34px;
    font-size: 0.58rem;
  }

  .strategy-field__control,
  .strategy-field__control[readonly] {
    min-height: 36px;
    font-size: 0.72rem;
  }

  .strategy-modal__secondary,
  .strategy-modal__primary {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .lras-summary-card,
  .lras-levels-card,
  .lras-qualification-table-card {
    padding: 16px;
    border-radius: 24px;
  }

  .lras-summary-card__top,
  .lras-qualification-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .lras-summary-card__level-pill,
  .lras-qualification-card__badge {
    align-self: flex-start;
  }

  .lras-summary-card__title,
  .lras-levels-card__title {
    font-size: 1.08rem;
  }

  .lras-summary-card__text,
  .lras-levels-card__text,
  .lras-invite-card__link {
    font-size: 0.74rem;
  }

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

  .lras-chart {
    display: block;
  }

  .lras-chart-panel {
    min-height: 220px;
    gap: 6px;
    padding: 8px 6px 0;
  }

  .lras-chart-bar {
    gap: 6px;
  }

  .lras-chart-bar__tag {
    width: 26px;
    height: 26px;
  }

  .lras-chart-bar__tag svg {
    width: 14px;
    height: 14px;
  }

  .lras-chart-bar__value {
    font-size: 0.68rem;
  }

  .lras-chart-bar__track {
    max-width: 24px;
    height: 142px;
    padding: 3px;
  }

  .lras-chart-bar__label {
    font-size: 0.64rem;
  }

  .lras-table thead th,
  .lras-table tbody td {
    padding: 11px 10px;
  }

  .lras-table thead th {
    font-size: 0.58rem;
  }

  .lras-table tbody td {
    font-size: 0.7rem;
  }

  .lras-table--matrix thead th,
  .lras-table--matrix tbody td {
    padding: 8px 5px;
  }

  .lras-table--matrix thead th {
    font-size: 0.48rem;
  }

  .lras-table--matrix tbody td {
    font-size: 0.6rem;
  }

  .store-promo__brand {
    align-items: flex-start;
  }

  .store-promo__logo {
    width: 60px;
    height: 60px;
    padding: 6px;
  }

  .store-promo__title {
    font-size: 1.02rem;
  }

  .store-promo__text {
    font-size: 0.7rem;
  }

  .store-offer__details {
    gap: 4px;
  }

  .store-offer__main {
    gap: 6px;
  }

  .store-offer__brand {
    font-size: 0.66rem;
  }

  .store-offer__amount {
    font-size: 1rem;
  }

  .store-offer__old,
  .store-offer__bonus {
    font-size: 0.56rem;
  }

  .store-offer__price-value {
    font-size: 0.95rem;
  }

  .store-offer__price-unit {
    font-size: 0.62rem;
  }

  .trades-hero-card {
    min-height: 118px;
    padding: 16px 14px;
  }

  .trades-hero__title {
    font-size: 1.02rem;
  }

  .trades-hero__text {
    font-size: 0.7rem;
  }

  .trades-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .trades-summary-grid,
  .trades-running-grid {
    grid-template-columns: 1fr;
  }

  .trades-summary-card {
    min-height: 104px;
    padding: 14px 12px;
  }

  .trades-summary-card__value {
    font-size: 1.16rem;
  }

  .trades-toolbar-card {
    padding: 12px;
  }

  .trades-filter-row,
  .trades-tabs {
    gap: 6px;
  }

  .trades-filter-button,
  .trades-tab {
    min-height: 32px;
    font-size: 0.62rem;
  }

  .trade-order-card,
  .trade-coin-card {
    padding: 14px 12px;
    border-radius: 22px;
  }

  .trade-order-card__top,
  .trade-coin-card__top {
    flex-direction: column;
  }

  .trade-order-card__chips,
  .trade-coin-card__chips {
    justify-content: flex-start;
  }

  .trade-order-card__pair,
  .trade-coin-card__title {
    font-size: 0.9rem;
  }

  .trade-order-metrics,
  .trade-coin-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trade-metric {
    padding: 9px;
    border-radius: 16px;
  }

  .trade-metric__value {
    font-size: 0.72rem;
  }

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

  .assets-action-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .commission-metric-card {
    min-height: 34px;
    padding: 7px 3px;
  }

  .commission-metric-card span {
    font-size: 0.5rem;
  }

  .commission-member-panel {
    padding: 12px 10px;
  }

  .commission-member-table__head,
  .commission-member-row {
    grid-template-columns: 1fr 0.72fr 0.78fr;
    gap: 7px;
  }

  .commission-member-row {
    font-size: 0.66rem;
  }

  .assets-action-item {
    min-height: 34px;
    border-radius: 14px;
  }

  .assets-action-item .shortcut-card {
    border-radius: 14px;
    padding: 5px 2px;
  }

  .assets-action-item .shortcut-card span {
    font-size: 0.52rem;
  }

  .assets-summary-row {
    gap: 10px;
  }

  .assets-balance-grid {
    grid-template-columns: 1fr;
  }

  .assets-balance-card,
  .assets-balance-card--right {
    justify-content: flex-start;
  }

  .profits-balance-card {
    flex-direction: column;
    min-height: 0;
  }

  .profits-chart {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .profits-detail-section {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
  }

  .profits-detail-section .assets-summary-card {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .profits-detail-section .assets-primary-card {
    padding-right: 10px;
    padding-left: 10px;
  }

  .profits-table th,
  .profits-table td {
    padding: 10px 7px;
    font-size: 0.56rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .profits-table th:first-child,
  .profits-table td:first-child {
    padding-left: 10px;
  }

  .profits-table th:last-child,
  .profits-table td:last-child {
    padding-right: 10px;
  }

  .assets-balance-block--right {
    align-items: flex-start;
    text-align: left;
  }

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

  .assets-gas-item {
    min-height: 66px;
    padding: 10px 8px;
  }

  .assets-gas-item__label {
    font-size: 0.58rem;
  }

  .assets-gas-item__value {
    font-size: 0.78rem;
  }

  .assets-gas-action-item {
    min-height: 36px;
    border-radius: 14px;
  }

  .assets-gas-action-item .shortcut-card {
    border-radius: 14px;
    padding: 5px 2px;
  }

  .assets-trading-grid {
    grid-template-columns: 1fr;
  }

  .assets-summary-row__amount {
    font-size: 0.82rem;
  }

  .assets-summary-row__label {
    font-size: 0.72rem;
  }
}

@media (min-width: 900px) {
  :root {
    --shell-width: calc(100vw - 48px);
    --shell-height: calc(100dvh - 48px);
    --page-gutter: 24px;
    --bottom-nav-clearance: calc(var(--footer-height) + 34px + env(safe-area-inset-bottom));
    --market-grid-columns: minmax(220px, 1.8fr) minmax(120px, 0.9fr) minmax(100px, 0.8fr) minmax(140px, 1fr);
  }

  html {
    font-size: 17.5px;
  }

  body {
    padding: var(--page-gutter);
  }

  .app-shell {
    width: var(--shell-width);
    max-width: none;
    border-radius: 0;
  }

  main {
    padding: 26px 32px var(--bottom-nav-clearance);
    gap: 22px;
  }

  .top-bar {
    margin-bottom: 0;
  }

  .bottom-nav {
    width: var(--shell-width);
    bottom: var(--page-gutter);
    border-radius: 0;
  }

  .nav-item {
    min-height: 72px;
    flex-direction: row;
    gap: 9px;
    font-size: 0.78rem;
  }

  .content-section,
  .section-box,
  .store-panel,
  .store-panel__list {
    width: 100%;
  }

  .store-card--hero,
  .assets-primary-card,
  .commission-dashboard-card,
  .risk-dashboard-card,
  .leaders-card,
  .settings-card {
    padding: 20px;
  }

  .store-promo {
    min-height: 132px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .store-promo__title {
    font-size: 1.55rem;
  }

  .store-promo__text {
    max-width: 720px;
    font-size: 0.84rem;
  }

  .store-card-row--featured-home .store-card--feature,
  .store-card-row--categories .store-card {
    min-height: 118px;
  }

  .mini-grid {
    gap: 14px;
  }

  .shortcut-card {
    min-height: 86px;
  }

  .shortcut-card span {
    font-size: 0.76rem;
  }

  .store-panel__list {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    align-items: stretch;
  }

  .store-panel__list > .section-box {
    height: 100%;
  }

  .store-panel__list .store-card--strip {
    height: 100%;
    min-height: 92px;
  }

  .store-offer {
    gap: 18px;
  }

  .store-offer__amount {
    font-size: 1.36rem;
  }

  .market-feed {
    padding: 22px;
  }

  .market-feed__list,
  .market-table__list {
    display: grid;
    gap: 10px;
  }

  .market-row,
  .market-table__row {
    min-height: 72px;
  }

  .market-screen__hero {
    align-items: center;
  }

  .bot-strategy-grid--four,
  .manual-strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .manual-strategy-card + .manual-strategy-card {
    margin-top: 0;
  }

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

  .trades-running-grid,
  .trades-list {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }

  .trades-toolbar {
    align-items: center;
  }

  .assets-balance-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .assets-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .assets-action-grid--single {
    grid-template-columns: minmax(180px, 320px);
  }

  .assets-action-item {
    min-height: 64px;
  }

  .assets-action-item .shortcut-card span {
    font-size: 0.72rem;
  }

  .assets-trading-grid,
  .assets-gas-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .commission-metric-grid {
    gap: 12px;
  }

  .commission-metric-card {
    min-height: 78px;
    padding: 14px;
  }

  .commission-metric-card span {
    text-align: left;
    font-size: 0.7rem;
  }

  .commission-metric-card strong {
    font-size: 1rem;
  }

  .profits-detail-section {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .profits-balance-card {
    min-height: 220px;
  }
}

@media (min-width: 1200px) {
  :root {
    --shell-width: calc(100vw - 64px);
    --shell-height: calc(100dvh - 64px);
    --page-gutter: 32px;
    --market-grid-columns: minmax(320px, 2fr) minmax(150px, 0.95fr) minmax(120px, 0.75fr) minmax(170px, 1fr);
  }

  html {
    font-size: 18px;
  }

  main {
    padding-right: 40px;
    padding-left: 40px;
  }

  .store-panel__list {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  .manual-strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  }

  .trades-running-grid,
  .trades-list {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }

  .assets-primary-card {
    gap: 18px;
  }

  .store-promo__title {
    font-size: 1.72rem;
  }
}

.theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --text-main: #eaecef;
  --text-soft: #848e9c;
  --accent-strong: #fcd535;
  --footer-bg: #181a20;
  --section-bg: #181a20;
  --section-border: #2b3139;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  --bn-bg: #0b0e11;
  --bn-surface: #181a20;
  --bn-surface-2: #1e2329;
  --bn-surface-3: #2b3139;
  --bn-line: #2b3139;
  --bn-border: rgba(132, 142, 156, 0.14);
  --bn-line-soft: rgba(132, 142, 156, 0.22);
  --bn-text: #eaecef;
  --bn-muted: #848e9c;
  --bn-yellow: #fcd535;
  --bn-yellow-soft: rgba(252, 213, 53, 0.16);
  --bn-green: #0ecb81;
  --bn-green-soft: rgba(14, 203, 129, 0.14);
  --bn-red: #f6465d;
  --bn-red-soft: rgba(246, 70, 93, 0.14);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% -8%, rgba(252, 213, 53, 0.12), transparent 26%),
    radial-gradient(circle at 100% 12%, rgba(14, 203, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0e11 0%, #11151c 54%, #0b0e11 100%);
  color: var(--bn-text);
}

html[data-theme="dark"] .app-shell {
  background:
    radial-gradient(circle at 18% 0%, rgba(252, 213, 53, 0.08), transparent 28%),
    linear-gradient(180deg, #11151c 0%, #0b0e11 44%, #0b0e11 100%);
  border-color: rgba(252, 213, 53, 0.12);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .app-shell::before {
  background:
    linear-gradient(140deg, rgba(252, 213, 53, 0.07), transparent 36%),
    radial-gradient(circle at top right, rgba(14, 203, 129, 0.08), transparent 28%);
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] :is(.profile-button, .action-button) {
  color: var(--bn-yellow);
}

html[data-theme="dark"] .theme-toggle {
  color: var(--bn-yellow);
}

html[data-theme="dark"] .profile-menu {
  background: #181a20;
  border-right: 1px solid var(--bn-line);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] :is(.profile-menu__item, .profile-known-account) {
  color: var(--bn-text);
}

html[data-theme="dark"] :is(.profile-menu__item + .profile-menu__item, .profile-known-account) {
  border-color: var(--bn-line);
}

html[data-theme="dark"] :is(.profile-known-account, .profile-menu__item--account-list) {
  background: var(--bn-surface-2);
}

html[data-theme="dark"] :is(.profile-known-account span, .profile-menu__item span) {
  color: inherit;
}

html[data-theme="dark"] .profile-menu__profile-copy small,
html[data-theme="dark"] .profile-menu__details span {
  color: var(--bn-muted);
}

html[data-theme="dark"] .profile-menu__details {
  border-color: var(--bn-line);
}

html[data-theme="dark"] .profile-menu__details strong {
  color: var(--bn-text);
}

html[data-theme="dark"] .profile-menu__item--login {
  background: var(--bn-green-soft);
  color: var(--bn-green);
}

html[data-theme="dark"] .profile-menu__item--logout {
  background: var(--bn-red-soft);
  color: var(--bn-red);
}

html[data-theme="dark"] .profile-menu__avatar.has-image {
  border-color: rgba(252, 213, 53, 0.2);
  box-shadow: inset 0 0 0 1px rgba(11, 14, 17, 0.26);
}

html[data-theme="dark"] :is(.info-page-card__title, .faq-list summary) {
  color: var(--bn-text);
}

html[data-theme="dark"] :is(.info-page-card__text, .faq-list p) {
  color: var(--bn-muted);
}

html[data-theme="dark"] :is(
  .section-box,
  .store-panel,
  .store-card,
  .inner-block,
  .market-feed,
  .market-table,
  .market-table__row,
  .market-row,
  .bot-strategy-card,
  .manual-strategy-card,
  .bot-mode-panel,
  .trades-status-panel,
  .trades-summary-card,
  .assets-primary-card,
  .assets-secondary-card,
  .assets-gas-section-card,
  .assets-summary-card,
  .assets-balance-card,
  .assets-gas-card,
  .assets-gas-item,
  .assets-trading-card,
  .assets-action-shell,
  .assets-action-item,
  .assets-gas-action-shell,
  .assets-gas-action-item,
  .commission-member-panel,
  .commission-metric-card,
  .risk-control-panel,
  .fear-greed-card,
  .leader-profile,
  .leaders-card,
  .settings-card,
  .info-page-card,
  .faq-list details,
  .lras-qualification-table-card,
  .lras-chart-panel,
  .strategy-modal__dialog,
  .auth-modal__dialog,
  .coming-soon-modal__dialog,
  .payment-modal__dialog,
  .payment-method-panel
) {
  background: var(--bn-surface);
  border-color: var(--bn-line);
  color: var(--bn-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] :is(
  .store-card--strip,
  .store-card--feature,
  .market-table__legend,
  .market-feed__legend,
  .manual-strategy-card__header,
  .trades-panel-header,
  .assets-balance-block,
  .commission-member-table__head,
  .lras-table thead th,
  .profits-table thead th,
  .strategy-form-section,
  .exchange-connection-item,
  .exchange-permissions,
  .payment-package
) {
  background: var(--bn-surface-2);
  border-color: var(--bn-line);
}

html[data-theme="dark"] :is(
  .store-card:hover,
  .bot-strategy-card:hover,
  .manual-strategy-card:hover,
  .market-table__row:hover,
  .assets-action-item:hover,
  .assets-gas-action-item:hover
) {
  border-color: rgba(252, 213, 53, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] :is(
  .store-promo,
  .store-card--hero,
  .market-screen__hero,
  .profits-balance-card,
  .trades-summary-card--highlight
) {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.2), transparent 36%),
    linear-gradient(145deg, #1e2329, #11151c);
  border-color: rgba(252, 213, 53, 0.26);
}

html[data-theme="dark"] .market-screen__status {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-yellow);
}

html[data-theme="dark"] .market-analysis-panel {
  background: rgba(24, 26, 32, 0.82);
  border-color: rgba(132, 142, 156, 0.18);
}

html[data-theme="dark"] .market-analysis-panel.is-expanded {
  background: #0b0e11;
}

html[data-theme="dark"] .market-analysis-metrics span {
  background: rgba(31, 35, 44, 0.42);
  border-color: rgba(132, 142, 156, 0.12);
}

html[data-theme="dark"] .market-analysis-search {
  background: #181a20;
  border-color: var(--bn-border);
}

html[data-theme="dark"] .market-analysis-search input {
  color: var(--bn-text);
}

html[data-theme="dark"] .market-analysis-search button {
  background: var(--bn-yellow);
  border-color: var(--bn-border);
  color: #181a20;
}

html[data-theme="dark"] .market-analysis-pairs button {
  background: #1f232c;
  border-color: var(--bn-border);
  color: var(--bn-text);
}

html[data-theme="dark"] .market-analysis-pairs button.is-active {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] .market-analysis-canvas-wrap {
  background: #111318;
  border-color: var(--bn-border);
}

html[data-theme="dark"] :is(.market-analysis-close, .market-analysis-icon-button, .market-analysis-timeframe select, .market-analysis-tools button) {
  background: rgba(31, 35, 44, 0.58);
  border-color: rgba(132, 142, 156, 0.16);
  color: var(--bn-text);
}

html[data-theme="dark"] .market-analysis-tools button.is-active {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] .market-analysis-header :is(strong),
html[data-theme="dark"] .market-analysis-metrics strong {
  color: var(--bn-text);
}

html[data-theme="dark"] .market-analysis-header span,
html[data-theme="dark"] .market-analysis-metrics small {
  color: var(--bn-muted);
}

html[data-theme="dark"] .store-card-row--featured-home .store-card:nth-child(1),
html[data-theme="dark"] .store-card-row--categories .store-card:nth-child(1),
html[data-theme="dark"] .bot-strategy-grid .bot-strategy-card:nth-child(1),
html[data-theme="dark"] .manual-strategy-grid .manual-strategy-card:nth-child(4n + 1) {
  background:
    radial-gradient(circle at top left, rgba(252, 213, 53, 0.16), transparent 34%),
    linear-gradient(145deg, #25210f, #181a20);
  border-color: rgba(252, 213, 53, 0.22);
  color: #ffe782;
}

html[data-theme="dark"] .store-card-row--featured-home .store-card:nth-child(2),
html[data-theme="dark"] .store-card-row--categories .store-card:nth-child(2),
html[data-theme="dark"] .bot-strategy-grid .bot-strategy-card:nth-child(2),
html[data-theme="dark"] .manual-strategy-grid .manual-strategy-card:nth-child(4n + 2) {
  background:
    radial-gradient(circle at top left, rgba(14, 203, 129, 0.15), transparent 34%),
    linear-gradient(145deg, #10251f, #181a20);
  border-color: rgba(14, 203, 129, 0.22);
  color: #7df2bd;
}

html[data-theme="dark"] .store-card-row--featured-home .store-card:nth-child(3),
html[data-theme="dark"] .store-card-row--categories .store-card:nth-child(3),
html[data-theme="dark"] .bot-strategy-grid .bot-strategy-card:nth-child(3),
html[data-theme="dark"] .manual-strategy-grid .manual-strategy-card:nth-child(4n + 3) {
  background:
    radial-gradient(circle at top left, rgba(85, 130, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #172038, #181a20);
  border-color: rgba(85, 130, 255, 0.22);
  color: #b9c8ff;
}

html[data-theme="dark"] .bot-strategy-grid .bot-strategy-card:nth-child(4),
html[data-theme="dark"] .manual-strategy-grid .manual-strategy-card:nth-child(4n) {
  background:
    radial-gradient(circle at top left, rgba(246, 70, 93, 0.14), transparent 34%),
    linear-gradient(145deg, #30171d, #181a20);
  border-color: rgba(246, 70, 93, 0.22);
  color: #ffb3bd;
}

html[data-theme="dark"] :is(
  .store-card--category.is-active,
  .bot-strategy-card.is-active,
  .trades-filter-button.is-active,
  .auth-modal__tab.is-active,
  .market-24h-button
) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
  box-shadow: 0 12px 28px rgba(252, 213, 53, 0.16);
}

html[data-theme="dark"] .bot-strategy-grid .bot-strategy-card.is-active .bot-strategy-card__title,
html[data-theme="dark"] :is(.store-card--category.is-active, .bot-strategy-card.is-active, .auth-modal__tab.is-active, .market-24h-button) :is(span, strong, small, svg) {
  color: #181a20;
}

html[data-theme="dark"] :is(
  h1,
  h2,
  h3,
  h4,
  strong,
  th,
  label,
  .store-offer__brand,
  .store-offer__amount,
  .market-row__symbol,
  .market-table__coin-symbol,
  .manual-strategy-card__title,
  .trades-panel-header__title,
  .assets-trading-card__value,
  .assets-gas-item__value,
  .settings-field label,
  .auth-modal__title,
  .strategy-modal__title,
  .coming-soon-modal__title
) {
  color: var(--bn-text);
}

html[data-theme="dark"] :is(
  p,
  small,
  .store-promo__text,
  .manual-strategy-card__text,
  .signal-card__name,
  .market-row__name,
  .market-row__stat-label,
  .market-table__coin-name,
  .market-table__stat-label,
  .assets-balance-meta,
  .assets-balance-note,
  .assets-summary-row__label,
  .assets-gas-item__label,
  .assets-trading-card__label,
  .trades-panel-header__text,
  .strategy-modal__subtitle,
  .auth-modal__text,
  .coming-soon-modal__text,
  .settings-card p,
  .leader-profile__role,
  .commission-member-row span
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] :is(
  .market-row__stat-value--positive,
  .market-table__stat-value--positive,
  .signal-card__change--positive,
  .assets-summary-row__amount--positive,
  .asset-trend--positive,
  .profit-positive,
  .commission-member-panel__total,
  .commission-member-table__amount,
  .fear-greed-card__header strong[data-sentiment="greed"],
  .fear-greed-card__header strong[data-sentiment="extreme-greed"]
) {
  color: var(--bn-green);
}

html[data-theme="dark"] :is(
  .market-row__stat-value--negative,
  .market-table__stat-value--negative,
  .signal-card__change--negative,
  .assets-summary-row__amount--negative,
  .asset-trend--negative,
  .profit-negative,
  .fear-greed-card__header strong[data-sentiment="fear"],
  .fear-greed-card__header strong[data-sentiment="extreme-fear"]
) {
  color: var(--bn-red);
}

html[data-theme="dark"] :is(.market-row__stat-value--muted, .market-table__stat-value--muted) {
  color: var(--bn-muted);
}

html[data-theme="dark"] :is(
  .store-promo__badge,
  .store-promo__highlight,
  .manual-strategy-intro__eyebrow,
  .strategy-modal__eyebrow,
  .coming-soon-modal__eyebrow,
  .signals-refresh-pill,
  .market-feed__pulse,
  .market-row__badge,
  .market-table__logo-box,
  .market-table__logo-fallback,
  .profile-menu__avatar,
  .payment-method-panel__icon,
  .store-card-feature__icon
) {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.22);
  color: var(--bn-yellow);
}

html[data-theme="dark"] :is(
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .settings-field input,
  .strategy-field__control,
  .strategy-field input,
  .strategy-field select,
  .strategy-field textarea
) {
  background: #0b0e11;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] :is(
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .settings-field input,
  .strategy-field__control
)::placeholder {
  color: #5d6673;
}

html[data-theme="dark"] :is(
  .martingale-variant__button,
  .martingale-strategy-badge,
  .martingale-leverage-block,
  .martingale-capital-card,
  .martingale-amount-field,
  .martingale-coin-toggle,
  .martingale-pair-panel,
  .martingale-coin-panel,
  .martingale-pair-search,
  .martingale-auto-select,
  .martingale-coin,
  .martingale-smart-toggle,
  .martingale-rule-toggle,
  .martingale-direction__button
) {
  background: #1e2329;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] :is(
  .martingale-variant__button span,
  .martingale-strategy-badge strong,
  .martingale-coin-toggle strong,
  .martingale-pair-toolbar > strong,
  .martingale-pair-search input,
  .martingale-coin__symbol,
  .martingale-coin strong,
  .martingale-capital-card > strong,
  .martingale-amount-field input,
  .martingale-coin-panel__header strong
) {
  color: var(--bn-text);
}

html[data-theme="dark"] :is(
  .martingale-variant__button small,
  .martingale-strategy-badge span,
  .martingale-coin-toggle span,
  .martingale-coin-toggle small,
  .martingale-coin small,
  .martingale-coin-help,
  .martingale-capital-card span,
  .martingale-capital-card small,
  .martingale-coin-panel__header span,
  .martingale-percent__ticks
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] .martingale-selected-pairs span {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.22);
  color: var(--bn-yellow);
}

html[data-theme="dark"] .martingale-pair-selector {
  background: #0b0e11;
  border-color: rgba(252, 213, 53, 0.22);
  box-shadow: inset 0 0 0 4px #0b0e11;
}

html[data-theme="dark"] :is(.martingale-pair-ok, .martingale-auto-select, .martingale-coin.is-selected .martingale-pair-selector) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] :is(.martingale-variant__button.is-active, .martingale-coin.is-selected, .martingale-smart-toggle.is-active, .martingale-rule-toggle.is-active) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] .martingale-direction__button--long,
html[data-theme="dark"] .martingale-direction__button--long.is-active {
  background: #0ecb81;
  border-color: #0ecb81;
  color: #181a20;
}

html[data-theme="dark"] .martingale-direction__button--short,
html[data-theme="dark"] .martingale-direction__button--short.is-active {
  background: #f6465d;
  border-color: #f6465d;
  color: #fff;
}

html[data-theme="dark"] .martingale-direction__button--all-directions,
html[data-theme="dark"] .martingale-direction__button--all-directions.is-active,
html[data-theme="dark"] .martingale-direction__button--auto-hedging,
html[data-theme="dark"] .martingale-direction__button--auto-hedging.is-active {
  background: linear-gradient(90deg, #0ecb81 0 42%, #766f4f 50%, #f6465d 58% 100%);
  border-color: rgba(252, 213, 53, 0.22);
  color: #fff;
}

html[data-theme="dark"] .martingale-direction__button--auto-direction,
html[data-theme="dark"] .martingale-direction__button--auto-direction.is-active {
  background: #2f80ed;
  border-color: #2f80ed;
  color: #fff;
}

html[data-theme="dark"] .martingale-direction__button:hover,
html[data-theme="dark"] .martingale-direction__button:focus-visible {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] .martingale-variant__button.is-active :is(span, small),
html[data-theme="dark"] .martingale-coin.is-selected :is(span, small, strong, em) {
  color: #181a20;
}

html[data-theme="dark"] .martingale-percent input[type="range"]::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, var(--range-fill, #0ecb81), var(--range-fill, #0ecb81)) 0 / var(--value, 0%) 100% no-repeat,
    #2b3139;
}

html[data-theme="dark"] .martingale-percent input[type="range"]::-moz-range-track {
  background: #2b3139;
}

html[data-theme="dark"] :is(
  .manual-strategy-card__button,
  .strategy-modal__primary,
  .settings-button--primary,
  .commission-claim-button,
  .invite-commission-button,
  .invite-copy-button,
  .auth-submit,
  .payment-checkout-button
) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
  box-shadow: 0 16px 30px rgba(252, 213, 53, 0.16);
}

html[data-theme="dark"] :is(
  .strategy-modal__secondary,
  .auth-modal__close,
  .strategy-modal__close,
  .coming-soon-modal__close,
  .market-feed__more-button,
  .trades-filter-button,
  .exchange-connection-actions button,
  .auth-modal__tab
) {
  background: var(--bn-surface-2);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] :is(.auth-modal__backdrop, .strategy-modal__backdrop, .coming-soon-modal__backdrop) {
  background: rgba(0, 0, 0, 0.74);
}

html[data-theme="dark"] :is(
  .lras-table th,
  .lras-table td,
  .profits-table th,
  .profits-table td,
  .commission-member-row,
  .market-table__row,
  .market-row,
  .assets-summary-row
) {
  border-color: var(--bn-line);
}

html[data-theme="dark"] :is(.lras-table tbody tr:nth-child(even), .profits-table tbody tr:nth-child(even) td) {
  background: rgba(43, 49, 57, 0.5);
}

html[data-theme="dark"] .bottom-nav {
  background: #181a20;
  border-top-color: var(--bn-line);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .nav-item {
  color: var(--bn-muted);
}

html[data-theme="dark"] .nav-item.active {
  color: var(--bn-yellow);
}

html[data-theme="dark"] .nav-item.active span {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .manual-strategy-intro__title,
  .manual-strategy-card__title,
  .signal-card__metric strong,
  .strategy-form-section__title,
  .strategy-field__label,
  .payment-package__amount,
  .payment-package__price,
  .payment-method-panel__copy strong,
  .market-feed__headline,
  .market-feed__title,
  .market-screen__title,
  .market-row__symbol,
  .market-row__stat-value,
  .market-table__coin-symbol,
  .market-table__stat-value,
  .trades-summary-card__value,
  .trades-panel-header__title,
  .assets-balance-block strong,
  .assets-gas-item__value,
  .assets-trading-card__value,
  .assets-summary-row__amount,
  .commission-metric-card strong,
  .commission-member-panel__title,
  .commission-member-row,
  .commission-member-row strong,
  .risk-control-panel__title,
  .risk-control-panel__value,
  .fear-greed-card__header strong,
  .leader-profile__name,
  .settings-field label,
  .lras-table tbody td strong,
  .profits-table tbody td
) {
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .manual-strategy-intro__text,
  .manual-strategy-card__text,
  .signal-card__name,
  .signal-card__metric span,
  .strategy-form-section__hint,
  .strategy-field__help,
  .payment-package__label,
  .payment-method-panel__copy span,
  .market-feed__eyebrow,
  .market-feed__subtitle,
  .market-feed__legend,
  .market-row__name,
  .market-row__stat-label,
  .market-table__legend,
  .market-table__coin-name,
  .market-table__stat-label,
  .market-screen__eyebrow,
  .market-screen__subtitle,
  .trades-summary-card__label,
  .trades-summary-card__meta,
  .trades-panel-header__eyebrow,
  .trades-panel-header__text,
  .assets-balance-meta,
  .assets-balance-note,
  .assets-gas-item__label,
  .assets-trading-card__label,
  .assets-summary-row__label,
  .commission-metric-card span,
  .commission-member-table__head,
  .commission-member-row span,
  .fear-greed-card__label,
  .leader-profile__role,
  .settings-card p,
  .settings-field small,
  .lras-table thead th,
  .profits-table th
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .manual-strategy-card__type,
  .signal-card__badge,
  .strategy-modal__summary-chip,
  .strategy-field__tag,
  .exchange-select,
  .trades-tab,
  .trades-filter-button,
  .auth-modal__tab,
  .market-feed__more-button,
  .exchange-connection-actions button
) {
  background: var(--bn-surface-3);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .market-feed__status,
  .market-screen__status,
  .store-promo__badge,
  .store-promo__highlight,
  .manual-strategy-intro__eyebrow,
  .strategy-modal__eyebrow,
  .coming-soon-modal__eyebrow,
  .signals-refresh-pill
) {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .trades-tab.is-active,
  .trades-filter-button.is-active,
  .store-card--category.is-active,
  .bot-strategy-card.is-active,
  .auth-modal__tab.is-active,
  .market-24h-button
) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .trades-tab.is-active,
  .trades-filter-button.is-active,
  .store-card--category.is-active,
  .bot-strategy-card.is-active,
  .auth-modal__tab.is-active,
  .market-24h-button
) :is(span, strong, small, svg) {
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .section-box,
  .store-panel,
  .store-card,
  .inner-block,
  .market-feed,
  .market-table,
  .market-table__row,
  .market-row,
  .market-analysis-panel,
  .market-analysis-search,
  .market-analysis-canvas-wrap,
  .bot-mode-panel,
  .bot-strategy-card,
  .manual-strategy-card,
  .strategy-form-section,
  .strategy-field,
  .shortcut-card,
  .trade-empty-state,
  .trades-toolbar-card,
  .trades-hero-card,
  .invite-ad-card,
  .invite-ad-copy,
  .invite-summary-row,
  .lras-summary-card,
  .lras-qualification-card,
  .lras-invite-card,
  .lras-levels-card,
  .lras-level-card,
  .lras-qualification-table-card,
  .lras-chart-panel,
  .exchange-select,
  .strategy-modal__summary-chip,
  .coming-soon-modal__chip,
  .payment-package,
  .payment-method-panel,
  .fear-greed-card__labels,
  .leader-profile,
  .leaders-card,
  .settings-card,
  .store-offer,
  .store-offer__price,
  .market-row--placeholder,
  .market-table__row--placeholder
):not(.is-active) {
  background-color: rgba(24, 26, 32, 0.52);
  border-color: rgba(132, 142, 156, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .market-analysis-metrics span,
  .market-analysis-close,
  .market-analysis-icon-button,
  .market-analysis-timeframe select,
  .market-analysis-tools button,
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .settings-field input,
  .strategy-field__control,
  .strategy-field input,
  .strategy-field select,
  .strategy-field textarea,
  .martingale-variant__button,
  .martingale-strategy-badge,
  .martingale-leverage-block,
  .martingale-capital-card,
  .martingale-amount-field,
  .martingale-coin-toggle,
  .martingale-pair-panel,
  .martingale-coin-panel,
  .martingale-pair-search,
  .martingale-coin,
  .martingale-smart-toggle,
  .martingale-rule-toggle
):not(.is-active):not(.is-selected) {
  background-color: rgba(31, 35, 44, 0.36);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] .commission-withdrawal-summary div {
  background: rgba(31, 35, 44, 0.36);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] .commission-withdrawal-summary span {
  color: #b8c1cd;
}

html[data-theme="dark"] .commission-withdrawal-summary strong {
  color: #f2f4f7;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .strategy-modal__dialog,
  .strategy-modal__body,
  .exchange-select,
  .exchange-ip-card,
  .exchange-connected-card,
  .exchange-permissions,
  .exchange-connection-item,
  .auth-field input,
  .auth-field textarea,
  .exchange-connection-actions button,
  .strategy-modal__secondary,
  .strategy-modal__close
) {
  background-color: rgba(24, 26, 32, 0.54);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connection-actions button[data-exchange-modify] {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .bot-strategy-card__text,
  .manual-strategy-card__text,
  .manual-strategy-intro__text,
  .martingale-variant__button small,
  .martingale-strategy-badge span,
  .martingale-coin-toggle span,
  .martingale-coin-toggle small,
  .martingale-coin small,
  .martingale-coin-help,
  .martingale-capital-card span,
  .martingale-capital-card small,
  .martingale-coin-panel__header span,
  .martingale-percent__ticks,
  .strategy-form-section__hint,
  .strategy-field small
) {
  color: #b8c1cd;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .section-box,
  .store-panel,
  .store-card,
  .inner-block,
  .market-feed,
  .market-table,
  .market-table__row,
  .market-row,
  .bot-mode-panel,
  .bot-strategy-card,
  .manual-strategy-card,
  .strategy-form-section,
  .strategy-field,
  .strategy-modal__dialog,
  .auth-modal__dialog,
  .coming-soon-modal__dialog,
  .payment-modal__dialog,
  .payment-method-panel,
  .trades-status-panel,
  .trades-summary-card,
  .assets-primary-card,
  .assets-secondary-card,
  .assets-summary-card,
  .assets-balance-card,
  .assets-gas-card,
  .commission-member-panel,
  .commission-metric-card,
  .risk-control-panel,
  .fear-greed-card,
  .leader-profile,
  .leaders-card,
  .settings-card,
  .lras-chart-panel,
  .lras-qualification-table-card
) {
  background-color: rgba(24, 26, 32, 0.58);
  border-color: rgba(132, 142, 156, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .store-card--strip,
  .store-card--feature,
  .market-table__legend,
  .market-feed__legend,
  .manual-strategy-card__header,
  .trades-panel-header,
  .assets-balance-block,
  .exchange-connection-item,
  .exchange-permissions,
  .payment-package,
  .shortcut-card,
  .trade-empty-state,
  .trades-toolbar-card,
  .invite-summary-row,
  .lras-summary-card,
  .lras-level-card,
  .market-row--placeholder,
  .market-table__row--placeholder
) {
  background-color: rgba(31, 35, 44, 0.42);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] .market-analysis-panel {
  background: rgba(24, 26, 32, 0.54);
  border-color: rgba(132, 142, 156, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .market-analysis-search,
html[data-theme="dark"] .market-analysis-canvas-wrap {
  background: rgba(17, 19, 24, 0.54);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] .market-analysis-metrics span,
html[data-theme="dark"] :is(.market-analysis-close, .market-analysis-icon-button, .market-analysis-timeframe select, .market-analysis-tools button) {
  background: rgba(31, 35, 44, 0.34);
  border-color: rgba(132, 142, 156, 0.1);
}

html[data-theme="dark"] :is(
  .martingale-variant__button,
  .martingale-strategy-badge,
  .martingale-leverage-block,
  .martingale-capital-card,
  .martingale-amount-field,
  .martingale-coin-toggle,
  .martingale-pair-panel,
  .martingale-coin-panel,
  .martingale-pair-search,
  .martingale-auto-select,
  .martingale-coin,
  .martingale-smart-toggle,
  .martingale-rule-toggle,
  .martingale-direction__button,
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .settings-field input,
  .strategy-field__control,
  .strategy-field input,
  .strategy-field select,
  .strategy-field textarea
) {
  background: rgba(31, 35, 44, 0.42);
  border-color: rgba(132, 142, 156, 0.12);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .bot-strategy-card__title,
  .manual-strategy-card__title,
  .manual-strategy-intro__title,
  .strategy-form-section__title,
  .martingale-strategy-badge strong,
  .martingale-coin-toggle strong,
  .martingale-coin__symbol,
  .martingale-coin strong,
  .martingale-capital-card > strong,
  .martingale-coin-panel__header strong
) {
  color: #f2f4f7;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .bot-strategy-card__text,
  .manual-strategy-card__text,
  .manual-strategy-intro__text,
  .martingale-variant__button small,
  .martingale-strategy-badge span,
  .martingale-coin-toggle span,
  .martingale-coin-toggle small,
  .martingale-coin small,
  .martingale-coin-help,
  .martingale-capital-card span,
  .martingale-capital-card small,
  .martingale-coin-panel__header span,
  .martingale-percent__ticks,
  .strategy-form-section__hint,
  .strategy-field small
) {
  color: #aeb8c5;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .store-card:hover,
  .bot-strategy-card:hover,
  .manual-strategy-card:hover,
  .market-table__row:hover,
  .market-row:hover
) {
  border-color: rgba(252, 213, 53, 0.26);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .market-row__stat-value--positive,
  .market-table__stat-value--positive,
  .signal-card__change--positive,
  .assets-summary-row__amount--positive,
  .asset-trend--positive,
  .profit-positive,
  .commission-member-panel__total,
  .commission-member-table__amount,
  .commission-member-row strong,
  .fear-greed-card__header strong[data-sentiment="greed"],
  .fear-greed-card__header strong[data-sentiment="extreme-greed"]
) {
  color: var(--bn-green);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .market-row__stat-value--negative,
  .market-table__stat-value--negative,
  .signal-card__change--negative,
  .assets-summary-row__amount--negative,
  .asset-trend--negative,
  .profit-negative,
  .fear-greed-card__header strong[data-sentiment="fear"],
  .fear-greed-card__header strong[data-sentiment="extreme-fear"]
) {
  color: var(--bn-red);
}

@media (min-width: 900px) {
  html {
    font-size: 18.5px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 20px;
  }
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .profits-only-section .assets-primary-card,
  .profits-only-section .assets-summary-card,
  .profits-only-section .assets-balance-card,
  .profits-detail-section .assets-primary-card,
  .profits-detail-section .assets-summary-card,
  .profits-detail-section .profits-balance-card
) {
  background:
    radial-gradient(circle at top right, rgba(14, 203, 129, 0.1), transparent 34%),
    linear-gradient(145deg, #181a20, #11151c);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-chart {
  background:
    linear-gradient(180deg, rgba(43, 49, 57, 0.76), rgba(24, 26, 32, 0.92)),
    #181a20;
  border-color: rgba(14, 203, 129, 0.2);
}

html[data-theme="dark"] body .app-shell.app-shell :is(.profits-chart__axis, .profits-chart__baseline) {
  stroke: rgba(234, 236, 239, 0.38);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-chart__grid {
  stroke: rgba(132, 142, 156, 0.22);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-chart__label {
  fill: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-chart__line {
  stroke: var(--bn-green);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-chart__point {
  fill: #181a20;
  stroke: var(--bn-green);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-table {
  background: #181a20;
  border-color: var(--bn-line);
  box-shadow: none;
}

html[data-theme="dark"] body .app-shell.app-shell .profits-table__heading {
  background: var(--bn-surface-3);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-table tbody td {
  background: transparent;
  color: var(--bn-green);
}

html[data-theme="dark"] body .app-shell.app-shell .profits-table tbody td:first-child,
html[data-theme="dark"] body .app-shell.app-shell .profits-table tbody td[colspan] {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .section-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-summary-card {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(14, 203, 129, 0.12), transparent 32%),
    linear-gradient(145deg, #1e2329, #11151c);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section :is(
  .lras-levels-card,
  .lras-qualification-table-card
) {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.08), transparent 34%),
    linear-gradient(145deg, #181a20, #11151c);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section :is(
  .lras-summary-card__title,
  .lras-levels-card__title,
  .lras-qualification-card__value,
  .lras-chart-bar__label,
  .lras-chart-bar__value,
  .lras-table tbody td,
  .lras-table tbody td strong
) {
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section :is(
  .lras-section__eyebrow,
  .lras-levels-card__text,
  .lras-qualification-card__label,
  .lras-invite-card__label,
  .lras-table thead th
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section :is(
  .lras-summary-card__level-pill,
  .lras-qualification-card__badge,
  .lras-qualification-card__icon
) {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-invite-card,
html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-qualification-card,
html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-table-wrap {
  background: var(--bn-surface-2);
  border-color: var(--bn-line);
  box-shadow: none;
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-invite-card__link,
html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-inline-link {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-chart-panel {
  background:
    repeating-linear-gradient(
      to top,
      rgba(132, 142, 156, 0.16) 0,
      rgba(132, 142, 156, 0.16) 1px,
      transparent 1px,
      transparent 25%
    ),
    #181a20;
  box-shadow: inset 0 0 0 1px var(--bn-line);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-chart-bar__track {
  background: #0b0e11;
  box-shadow: inset 0 0 0 1px var(--bn-line);
}

html[data-theme="dark"] body .app-shell.app-shell .glrank-only-section .lras-chart-bar__fill {
  background: linear-gradient(180deg, #fcd535, #c99400);
  box-shadow: 0 10px 18px rgba(252, 213, 53, 0.14);
}

html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section .section-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section .leaders-card,
html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section .leader-profile,
html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section .assets-summary-row {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.1), transparent 34%),
    linear-gradient(145deg, #181a20, #11151c);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section .leader-profile__avatar {
  background: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section :is(
  .leader-profile__name,
  .leader-contact-list a,
  .leader-contact-list span,
  .assets-summary-row__amount
) {
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell .leaders-only-section :is(
  .leader-profile__role,
  .assets-summary-row__label
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__dialog {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.12), transparent 34%),
    linear-gradient(180deg, #181a20, #11151c);
  border-color: var(--bn-line);
  color: var(--bn-text);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .strategy-modal__header,
  .strategy-modal__footer
) {
  background: #181a20;
  border-color: var(--bn-line);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__body {
  background: #11151c;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .strategy-modal__title,
  .auth-field span,
  .exchange-permissions label,
  .exchange-connection-item strong
) {
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .strategy-modal__subtitle,
  .auth-modal__status,
  .exchange-connection-item span
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__eyebrow {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-picker {
  background: transparent;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select {
  background:
    linear-gradient(180deg, #1e2329, #181a20);
  border-color: var(--bn-line);
  color: var(--bn-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select__content strong {
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select__content small {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select:hover {
  border-color: rgba(252, 213, 53, 0.42);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select:focus,
html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select:focus-visible {
  border-color: rgba(252, 213, 53, 0.72);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select option {
  background: #181a20;
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu {
  background: #181a20;
  border-color: var(--bn-line);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option {
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option:hover {
  background: rgba(252, 213, 53, 0.1);
  border-color: rgba(252, 213, 53, 0.2);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option:disabled:hover {
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option.is-active {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option span {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option.is-active span,
html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-menu__option.is-active strong {
  color: #181a20;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-select-shell__icon {
  fill: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-picker__hint {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-ip-card {
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.1), rgba(30, 35, 41, 0.96));
  border-color: rgba(252, 213, 53, 0.2);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-ip-card__label {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-ip-card code {
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-ip-card button {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-ip-card button.is-copied::after {
  background: #2b3139;
  color: var(--bn-yellow);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card {
  background:
    radial-gradient(circle at top right, rgba(252, 213, 53, 0.14), transparent 34%),
    linear-gradient(145deg, #1e2329, #11151c);
  border-color: rgba(252, 213, 53, 0.22);
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card__eyebrow {
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card strong {
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card small {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card__actions button {
  background: #2b3139;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connected-card__actions button[data-exchange-modify] {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .auth-field input,
  .auth-field textarea
) {
  background: #0b0e11;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal :is(
  .auth-field input,
  .auth-field textarea
)::placeholder {
  color: #5d6673;
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-permissions,
html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connection-item {
  background: #1e2329;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-permissions input {
  accent-color: var(--bn-yellow);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .exchange-connection-actions button,
html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__secondary,
html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__close {
  background: #2b3139;
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .exchange-modal.exchange-modal .strategy-modal__primary {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .shortcut-card,
  .trade-empty-state,
  .trades-toolbar-card,
  .trades-hero-card,
  .invite-ad-card,
  .invite-ad-copy,
  .invite-summary-row,
  .lras-summary-card,
  .lras-qualification-card,
  .lras-invite-card,
  .lras-levels-card,
  .lras-level-card,
  .lras-qualification-table-card,
  .lras-chart-panel,
  .exchange-select,
  .strategy-field,
  .strategy-modal__summary-chip,
  .coming-soon-modal__chip,
  .payment-package,
  .payment-method-panel,
  .fear-greed-card__labels,
  .leader-profile,
  .store-offer,
  .store-offer__price,
  .market-row--placeholder,
  .market-table__row--placeholder
) {
  background: var(--bn-surface-2);
  border-color: var(--bn-line);
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .shortcut-card span,
  .cluster-text,
  .store-card__label,
  .store-card--strip > strong,
  .store-card--strip .store-offer__brand,
  .store-card--strip .store-offer__amount,
  .store-offer__price-value,
  .invite-ad-copy__title,
  .lras-summary-card__title,
  .lras-summary-card__level-pill,
  .lras-qualification-card__value,
  .lras-invite-card__link,
  .lras-level-card__title,
  .lras-table tbody td,
  .lras-table tbody td strong,
  .profits-table__heading,
  .profits-table tbody td,
  .trade-empty-state,
  .exchange-connection-item strong,
  .strategy-field span,
  .auth-field span,
  .settings-field span,
  .coming-soon-modal__title,
  .coming-soon-modal__button,
  .fear-greed-card__header strong,
  .leader-profile__name
) {
  color: var(--bn-text);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .store-card--strip > span,
  .store-card--strip > small,
  .store-offer__price-unit,
  .invite-ad-copy__text,
  .invite-ad-copy__meta,
  .lras-section__eyebrow,
  .lras-qualification-card__label,
  .lras-qualification-card__badge,
  .lras-invite-card__label,
  .lras-level-card__meta,
  .lras-table thead th,
  .profits-chart__label,
  .exchange-connection-item span,
  .coming-soon-modal__text,
  .coming-soon-modal__note,
  .fear-greed-card__source,
  .fear-greed-card__labels span,
  .leader-profile__role
) {
  color: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .profits-chart__label,
  .lras-chart-panel text
) {
  fill: var(--bn-muted);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .profits-chart path,
  .profits-chart line,
  .lras-chart-panel path,
  .lras-chart-panel line
) {
  stroke: var(--bn-line);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .lras-summary-card__level-pill,
  .lras-qualification-card__icon,
  .lras-qualification-card__badge,
  .store-card-feature__icon,
  .trades-tab__count
) {
  background: var(--bn-yellow-soft);
  border-color: rgba(252, 213, 53, 0.28);
  color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .profile-menu__item--login,
  .market-row__stat-value--positive,
  .market-table__stat-value--positive,
  .signal-card__change--positive,
  .assets-summary-row__amount--positive,
  .commission-member-panel__total,
  .commission-member-row strong,
  .lras-qualification-card__value
) {
  color: var(--bn-green);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .profile-menu__item--logout,
  .market-row__stat-value--negative,
  .market-table__stat-value--negative,
  .signal-card__change--negative,
  .assets-summary-row__amount--negative
) {
  color: var(--bn-red);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .trades-tab.is-active,
  .trades-filter-button.is-active,
  .store-card--category.is-active,
  .bot-strategy-card.is-active,
  .auth-modal__tab.is-active,
  .market-24h-button,
  .manual-strategy-card__button,
  .strategy-modal__primary,
  .settings-button--primary,
  .commission-claim-button,
  .invite-commission-button,
  .invite-copy-button,
  .coming-soon-modal__button,
  .auth-submit,
  .payment-checkout-button
) {
  background: var(--bn-yellow);
  border-color: var(--bn-yellow);
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .trades-tab.is-active,
  .trades-filter-button.is-active,
  .store-card--category.is-active,
  .bot-strategy-card.is-active,
  .auth-modal__tab.is-active,
  .market-24h-button,
  .manual-strategy-card__button,
  .strategy-modal__primary,
  .settings-button--primary,
  .commission-claim-button,
  .invite-commission-button,
  .invite-copy-button,
  .coming-soon-modal__button,
  .auth-submit,
  .payment-checkout-button
) :is(span, strong, small, svg) {
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell .martingale-pair-panel {
  background: #0f141b;
  border-color: rgba(132, 142, 156, 0.18);
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .martingale-pair-toolbar,
  .martingale-pair-actions
) {
  background: #0f141b;
}

html[data-theme="dark"] body .app-shell.app-shell :is(
  .martingale-coin-panel,
  .martingale-pair-search,
  .martingale-coin.market-table__row
) {
  background: #1e2329;
  background-color: #1e2329;
  border-color: rgba(132, 142, 156, 0.18);
}

html[data-theme="dark"] body .app-shell.app-shell .martingale-coin.market-table__row:hover {
  background: #262d35;
  background-color: #262d35;
}

html[data-theme="dark"] body .app-shell.app-shell .martingale-coin.market-table__row.is-selected {
  background: var(--bn-yellow);
  background-color: var(--bn-yellow);
  border-color: var(--bn-yellow);
}

body .martingale-coin-panel {
  background: #f7fbff;
  background-color: #f7fbff;
}

body .martingale-pair-panel:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #f4f8fc;
  background-color: #f4f8fc;
  box-shadow: 0 0 0 100vmax #f4f8fc;
  opacity: 1;
  isolation: isolate;
}

body :is(
  .martingale-pair-toolbar,
  .martingale-pair-actions
) {
  background: #f4f8fc;
  background-color: #f4f8fc;
}

body :is(
  .martingale-pair-search,
  .martingale-coin.market-table__row
) {
  background: #fff;
  background-color: #fff;
}

body .martingale-selected-pairs span {
  background: #e8f8f0;
  background-color: #e8f8f0;
}

body .martingale-coin.market-table__row:hover {
  background: #f2fbf6;
  background-color: #f2fbf6;
}

body .martingale-coin.market-table__row.is-selected,
body .martingale-coin.market-table__row.is-selected:hover {
  background: #e9f8f0;
  background-color: #e9f8f0;
}

html[data-theme="dark"] body .martingale-coin-panel {
  background: #1e2329;
  background-color: #1e2329;
}

html[data-theme="dark"] body .martingale-pair-panel:not([hidden]) {
  background: #0f141b;
  background-color: #0f141b;
  box-shadow: 0 0 0 100vmax #0f141b;
}

html[data-theme="dark"] body :is(
  .martingale-pair-toolbar,
  .martingale-pair-actions
) {
  background: #0f141b;
  background-color: #0f141b;
}

html[data-theme="dark"] body :is(
  .martingale-pair-search,
  .martingale-coin.market-table__row
) {
  background: #1e2329;
  background-color: #1e2329;
}

html[data-theme="dark"] body .martingale-selected-pairs span {
  background: #332e17;
  background-color: #332e17;
}

html[data-theme="dark"] body .martingale-coin.market-table__row:hover {
  background: #262d35;
  background-color: #262d35;
}

html[data-theme="dark"] body .martingale-coin.market-table__row.is-selected,
html[data-theme="dark"] body .martingale-coin.market-table__row.is-selected:hover {
  background: var(--bn-yellow);
  background-color: var(--bn-yellow);
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card {
  background:
    linear-gradient(180deg, rgba(30, 35, 44, 0.94), rgba(17, 21, 28, 0.96)),
    linear-gradient(90deg, rgba(14, 203, 129, 0.1), rgba(47, 128, 237, 0.07));
  background-color: #181a20;
  border-color: rgba(132, 142, 156, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__metrics {
  background: rgba(56, 65, 78, 0.7);
  border-color: rgba(132, 142, 156, 0.14);
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__gcm-logo {
  background: rgba(31, 35, 44, 0.88);
  border-color: rgba(132, 142, 156, 0.18);
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__download {
  background: rgba(31, 35, 44, 0.88);
  border-color: rgba(132, 142, 156, 0.18);
  color: #0ecb81;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__download:hover,
html[data-theme="dark"] body .app-shell.app-shell .signal-card__download:focus-visible {
  background: #0ecb81;
  border-color: #0ecb81;
  color: #181a20;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__metric {
  background:
    linear-gradient(180deg, rgba(31, 35, 44, 0.96), rgba(24, 28, 36, 0.96));
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__badge.signal-card__change--positive {
  background: rgba(14, 203, 129, 0.13);
  border-color: rgba(14, 203, 129, 0.28);
  color: #0ecb81;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__badge.signal-card__change--negative {
  background: rgba(246, 70, 93, 0.13);
  border-color: rgba(246, 70, 93, 0.3);
  color: #f6465d;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__identity strong,
html[data-theme="dark"] body .app-shell.app-shell .signal-card__metric strong {
  color: #f2f4f7;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__eyebrow {
  color: #ff9800 !important;
  opacity: 1;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__time {
  color: #b8c1cd;
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__button--robot {
  background: linear-gradient(135deg, #0ecb81, #0aa66a);
  border-color: rgba(14, 203, 129, 0.36);
  color: #ffffff;
  box-shadow: 0 16px 26px rgba(14, 203, 129, 0.16);
}

html[data-theme="dark"] body .app-shell.app-shell .signal-card__button--manual {
  background: rgba(31, 35, 44, 0.86);
  border-color: rgba(132, 142, 156, 0.2);
  color: #f2f4f7;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 520px) {
  .signals-grid {
    grid-template-columns: 1fr;
  }

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

  .signal-card__button {
    min-height: 34px;
    padding: 0 7px;
    font-size: 0.54rem;
  }
}

@media (max-width: 360px) {
  .store-card.signal-card {
    padding: 12px;
  }

  .signal-card__top {
    padding-right: 40px;
  }

  .signal-card__gcm-logo {
    width: 30px;
    height: 30px;
  }

  .signal-card__download {
    right: 48px;
    width: 30px;
    height: 30px;
  }

  .signal-card__metrics {
    grid-template-columns: 1fr;
  }

  .signal-card__metric {
    min-height: 42px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 10px;
    padding: 9px 10px;
  }

  .signal-card__metric strong {
    font-size: 0.7rem;
    text-align: right;
  }

  .signal-card__footer {
    grid-template-columns: 1fr;
  }

  .signal-card__badges {
    justify-content: flex-start;
  }

  .signal-card__button {
    min-height: 36px;
    font-size: 0.56rem;
  }
}
