:root {
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
  --content-safe-top: 0px;
  --content-safe-right: 0px;
  --content-safe-bottom: 0px;
  --content-safe-left: 0px;
  --app-safe-top: 0px;
  --app-safe-bottom: 0px;
  --telegram-controls-top-gap: 0px;
  --ink: #101820;
  --muted: #66737d;
  --line: #dbe3e8;
  --panel: #ffffff;
  --soft: #eef3f5;
  --green: #2f7d32;
  --blue: #267a96;
  --app-bg: #050805;
  --app-bg-2: #0b120b;
  --app-card: #101a10;
  --app-border: #1f3a1f;
  --accent: #a6ff00;
  --accent-2: #39ff14;
  --accent-hover: #c8ff3d;
  --button-text: #071007;
  --text-main: #ffffff;
  --text-secondary: #a8b3a8;
  --text-muted: #6f7a6f;
  --success: #00ff66;
  --warning: #d6ff3f;
  --error: #ff3b3b;
  --info: #38bdf8;
  color: var(--ink);
  background: #f4f7f8;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f7f8;
  letter-spacing: 0;
}
button,
select {
  font: inherit;
}
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0 auto;
  background: #f4f7f8;
  padding: calc(12px + var(--app-safe-top) + var(--telegram-controls-top-gap))
    calc(14px + var(--safe-right) + var(--content-safe-right))
    calc(86px + var(--app-safe-bottom))
    calc(14px + var(--safe-left) + var(--content-safe-left));
}
body.mobile .app-shell {
  --telegram-controls-top-gap: 30px;
}
body.desktop .app-shell {
  max-width: 480px;
  min-height: min(760px, 100vh);
  padding: 18px 18px 104px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 24px 80px #1018201f;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand-logo-img {
  display: block;
  width: min(260px, calc(100vw - 132px));
  height: auto;
  max-height: 62px;
  object-fit: contain;
}
.brand-mark {
  position: relative;
  width: 46px;
  height: 54px;
  flex: 0 0 46px;
}
.brand-mark:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 34px;
  border-radius: 0 0 0 34px;
  background: #050607;
}
.brand-mark:after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 2px;
  width: 24px;
  height: 24px;
  background: #050607;
}
.brand-title {
  display: grid;
  gap: 0;
  min-width: 0;
}
.brand-title strong {
  display: grid;
  gap: 0;
  font-size: 29px;
  line-height: 0.82;
  font-weight: 820;
  white-space: nowrap;
}
.brand-title .brand-word {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  margin-top: 0;
  padding-left: 0;
  text-transform: none;
}
.brand-title span {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.48em;
  padding-left: 2px;
  margin-top: 4px;
}
.profile-chip {
  min-width: 0;
  max-width: 116px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: #2f3b45;
  background: #ffffffc7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.header-language-wrap {
  position: relative;
  z-index: 20;
}
.header-language {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffd1;
  color: #101820;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 10px 24px #1018200d;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.header-language:hover {
  border-color: #2f7d3257;
  box-shadow: 0 12px 26px #2f7d3214;
}
.header-language:active {
  transform: translateY(1px);
}
.header-language[disabled] {
  opacity: 0.62;
  cursor: wait;
}
.header-language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b120bfa;
  padding: 6px;
  box-shadow: 0 18px 44px #00000057;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-language-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.header-language-option.active {
  background: #a6ff0024;
  color: var(--accent-hover);
  font-weight: 820;
}
.header-language-option[disabled] {
  opacity: 0.62;
  cursor: wait;
}
[dir="rtl"] .header-language-menu {
  left: 0;
  right: auto;
}
.screen {
  display: grid;
  gap: 12px;
}
.hero-panel,
.card,
.state-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px #1018200f;
}
.hero-panel {
  padding: 16px 18px;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fff, #f8fbfc 48%, #edf5f7);
}
.hero-panel:after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(16, 24, 32, 0.06);
  border-radius: 50%;
}
.hero-panel:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
}
.hero-panel > * {
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  margin-top: 8px;
  max-width: 300px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 860;
}
h2 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 820;
}
h3 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 780;
}
p {
  color: var(--muted);
  line-height: 1.5;
}
.card {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
  min-height: 76px;
  text-align: left;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.metric strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}
.market-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}
.market-card:after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border: 15px solid rgba(38, 122, 150, 0.08);
  border-radius: 50%;
}
.market-card > * {
  position: relative;
  z-index: 1;
}
.market-card strong {
  font-size: 26px;
  letter-spacing: 0;
  min-height: 30px;
  display: flex;
  align-items: flex-end;
}
.market-card p {
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}
.market-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.market-badge {
  border-radius: 999px;
  background: #e7f3ed;
  color: var(--green);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}
.market-badge.closed {
  background: #edf1f3;
  color: #6b7780;
}
.market-card.disabled {
  border-color: #d7e0e5;
  background: linear-gradient(180deg, #f6f9faf5, #ebf0f3f5), #eef2f4;
  color: #75818a;
  cursor: not-allowed;
  box-shadow: none;
}
.market-card.disabled:after {
  border-color: #74818a1a;
}
.market-card.disabled strong,
.market-card.disabled p,
.market-card.disabled .market-kicker span {
  color: #75818a;
}
.market-card.disabled:hover,
.market-card.disabled:active {
  border-color: #d7e0e5;
  box-shadow: none;
  transform: none;
}
.market-note {
  color: #6f7b84;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
}
.market-card:hover {
  border-color: #267a96;
  box-shadow: 0 10px 26px #267a961f;
  transform: translateY(-1px);
}
.market-card:active {
  transform: translateY(0);
}
.pair-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.back-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #23313b;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 760;
}
.pair-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pair-search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.pair-search-input::placeholder {
  color: var(--muted);
}
.pair-card {
  width: 100%;
  min-height: 86px;
  display: grid;
  gap: 9px;
  align-content: space-between;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.pair-card:hover {
  border-color: #267a9673;
  box-shadow: 0 10px 22px #10182014;
  transform: translateY(-1px);
}
.pair-card:active {
  transform: translateY(0);
}
.pair-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 820;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pair-payout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 50px;
  border-radius: 999px;
  background: #e7f3ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  padding: 6px 9px;
  white-space: nowrap;
}
.expiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.expiry-button {
  min-height: 66px;
  border: 1px solid #dce7ec;
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: center;
}
.expiry-button strong {
  font-size: 21px;
  line-height: 1;
}
.analysis-card {
  border-color: #267a9638;
  background: linear-gradient(180deg, #fff, #f5fbfd);
}
.signal-loader-card {
  min-height: calc(
    100vh - 210px - var(--app-safe-top) - var(--app-safe-bottom)
  );
  min-height: calc(
    100dvh - 210px - var(--app-safe-top) - var(--app-safe-bottom)
  );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 18px;
  overflow: hidden;
  position: relative;
}
.signal-loader-card:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 24px solid rgba(16, 24, 32, 0.055);
  border-radius: 50%;
}
.signal-loader-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
}
.lottie-loader {
  width: min(230px, 72vw);
  aspect-ratio: 1;
}
.signal-loader-text {
  display: grid;
  gap: 8px;
}
.signal-loader-text h2 {
  font-size: 26px;
}
.signal-loader-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(47, 125, 50, 0.18);
  border-radius: 999px;
  background: #e7f3ed;
  color: var(--green);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 820;
}
.signal-loader-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px #2f7d321f;
  animation: signalStatusPulse 1.05s ease-in-out infinite;
}
.analysis-steps {
  display: grid;
  gap: 8px;
}
.analysis-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #42515c;
  font-size: 14px;
}
.analysis-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px #267a961f;
}
.signal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(134, 213, 232, 0.2);
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(134, 213, 232, 0.16),
      transparent 34%
    ),
    linear-gradient(145deg, #267a9638, #10182000 44%), #101820;
  color: #fff;
  box-shadow: 0 24px 58px #10182033;
}
.signal-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
}
.signal-card:after {
  content: "";
  position: absolute;
  right: -58px;
  top: -70px;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 24px solid rgba(47, 125, 50, 0.1);
}
.signal-card.sell:after {
  border-color: #b2363621;
}
.signal-card .eyebrow {
  color: #86d5e8;
}
.signal-card p {
  color: #b7c8d4;
}
.signal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.signal-top h2 {
  font-size: 24px;
  line-height: 1.02;
}
.direction-badge {
  min-width: 82px;
  min-height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 860;
  box-shadow: 0 12px 24px #0003;
}
.direction-badge.buy {
  background: linear-gradient(135deg, #3ea34a, var(--green));
}
.direction-badge.sell {
  background: linear-gradient(135deg, #d54b4b, #b23636);
}
.signal-visual {
  position: relative;
  z-index: 1;
  min-height: 170px;
  border: 1px solid rgba(134, 213, 232, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 50% 16%,
      rgba(134, 213, 232, 0.15),
      transparent 48%
    ),
    linear-gradient(180deg, #ffffff12, #ffffff06);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  box-shadow: inset 0 0 0 1px #ffffff08;
}
.signal-chart {
  width: min(190px, 78%);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.26));
}
.signal-chart path,
.signal-chart polyline {
  stroke: var(--green);
}
.signal-card.sell .signal-chart path,
.signal-card.sell .signal-chart polyline {
  stroke: #ef5350;
}
.signal-callout {
  display: grid;
  gap: 2px;
  margin-top: -10px;
}
.signal-callout span {
  color: #b7c8d4;
  font-size: 12px;
  font-weight: 760;
}
.signal-callout strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.signal-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.signal-meta.open {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.signal-meta-item {
  border: 1px solid rgba(134, 213, 232, 0.18);
  border-radius: 8px;
  padding: 11px;
  background: linear-gradient(180deg, #ffffff13, #ffffff09);
}
.signal-meta-item span {
  display: block;
  color: #9eb3c1;
  font-size: 12px;
  margin-bottom: 4px;
}
.signal-meta-item strong {
  font-size: 18px;
  color: #fff;
}
.signal-description {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  border: 1px solid rgba(166, 255, 0, 0.24);
  border-radius: 8px;
  background: #a6ff0014;
  color: var(--text-secondary);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.result-banner {
  position: relative;
  z-index: 1;
  min-height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  font-weight: 820;
}
.result-banner .back-button {
  background: #ffffffe6;
}
.result-banner.win {
  background: #e7f3ed;
  color: var(--green);
}
.result-banner.loss {
  background: #f8e9e9;
  color: #b23636;
}
.result-banner.draw {
  background: #eef3f5;
  color: #42515c;
}
.signal-action-row {
  display: grid;
  gap: 8px;
}
.signal-action-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #101820;
  font-size: 15px;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 10px 24px #1018200d;
}
.signal-action-button.primary {
  border-color: #2f7d3233;
  background: var(--green);
  color: #fff;
}
.signal-list {
  display: grid;
  gap: 10px;
}
.active-preview-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid;
  border-color: #a6ff0042;
  border-radius: 8px;
  background: linear-gradient(180deg, #101a10f5, #050805fa);
  padding: 12px;
  box-shadow: 0 14px 34px #0000003d;
}
.active-preview-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.active-preview-main h3 {
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.mini-direction {
  border-radius: 999px;
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 860;
  line-height: 1;
}
.mini-direction.buy {
  background: var(--green);
}
.mini-direction.sell {
  background: #b23636;
}
.mini-countdown {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.active-preview-card .back-button {
  border-color: #a6ff0052;
  background: #050805c7;
  color: var(--ink);
  box-shadow: none;
}
.active-preview-card .back-button:hover {
  border-color: #c8ff3d9e;
  color: var(--accent-hover);
}
.empty-signals {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0.84;
}
.empty-signals .lottie-loader {
  width: min(190px, 50vw);
}
.section-heading {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.section-heading h2 {
  font-size: 26px;
  line-height: 1.05;
}
.section-heading p {
  font-size: 14px;
}
.signal-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}
.signal-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101820;
  color: #fff;
}
.tag {
  border-radius: 999px;
  background: #e7f3ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  padding: 6px 9px;
  white-space: nowrap;
}
.history-line {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px #1018200b;
}
.history-line:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #c8d2d8;
}
.history-line.win {
  border-color: #2f7d32b8;
  background: linear-gradient(90deg, #2f7d321a, #fff 42%);
  box-shadow: 0 10px 26px #2f7d3221;
}
.history-line.win:before {
  background: var(--green);
}
.history-line.loss {
  border-color: #b23636b8;
  background: linear-gradient(90deg, #b236361a, #fff 42%);
  box-shadow: 0 10px 26px #b2363621;
}
.history-line.loss:before {
  background: #b23636;
}
.history-line.draw {
  border-color: #5d6c7699;
  background: linear-gradient(90deg, #5d6c7617, #fff 42%);
}
.history-line.draw:before {
  background: #7c8b94;
}
.history-detail {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.history-detail h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-values {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}
.history-values strong {
  color: var(--ink);
  font-weight: 820;
}
.history-result {
  width: fit-content;
  border-radius: 999px;
  background: #eef3f5;
  color: #5d6c76;
  font-size: 12px;
  font-weight: 820;
  padding: 6px 9px;
}
.history-result.win {
  background: #e7f3ed;
  color: var(--green);
}
.history-result.loss {
  background: #f8e9e9;
  color: #b23636;
}
.history-result-main {
  min-width: 82px;
  min-height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 860;
  box-shadow: 0 12px 22px #10182021;
}
.history-result-main.win {
  background: linear-gradient(135deg, #3ea34a, var(--green));
}
.history-result-main.loss {
  background: linear-gradient(135deg, #d54b4b, #b23636);
}
.history-result-main.draw {
  background: linear-gradient(135deg, #8b9aa3, #63717b);
}
.history-direction {
  width: fit-content;
  border-radius: 999px;
  background: #eef3f5;
  color: #17202a;
  font-size: 12px;
  font-weight: 820;
  padding: 5px 9px;
}
.history-direction.buy {
  background: #e7f3ed;
  color: var(--green);
}
.history-direction.sell {
  background: #f8e9e9;
  color: #b23636;
}
.profile-grid {
  display: grid;
  gap: 10px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e6edf1;
  padding-bottom: 10px;
}
.profile-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-row span {
  color: var(--muted);
}
.profile-hero {
  display: grid;
  gap: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fff, #f8fbfc 52%, #edf5f7);
}
.profile-hero:after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(16, 24, 32, 0.055);
  border-radius: 50%;
}
.profile-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid #dbe6eb;
  background: #101820;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 26px;
  font-weight: 860;
  box-shadow: 0 14px 26px #1018201f;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.profile-name h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-trader {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce7ec;
  border-radius: 999px;
  background: #ffffffb8;
  padding: 7px 10px;
  color: #40515c;
  font-size: 13px;
}
.profile-trader strong {
  color: var(--ink);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-stats-card {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(166, 255, 0, 0.1), transparent 34%),
    var(--app-card);
}
.profile-stats-card:after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(166, 255, 0, 0.055);
  border-radius: 50%;
}
.profile-stat {
  position: relative;
  z-index: 1;
  min-height: 94px;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, #101a10f5, #0b120bfa);
  padding: 12px;
  display: grid;
  align-content: space-between;
}
.profile-stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-stat-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #a6ff001f;
  color: var(--accent);
}
.profile-stat-icon svg {
  width: 17px;
  height: 17px;
}
.profile-stat span {
  color: var(--muted);
  font-size: 12px;
}
.profile-stat strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}
.education-hero {
  display: grid;
  gap: 14px;
}
.education-progress {
  display: grid;
  gap: 8px;
}
.education-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.education-progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(166, 255, 0, 0.28);
  border-radius: 999px;
  background: #050805cc;
}
.education-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px #a6ff0052;
}
.education-stats,
.profile-learning-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.education-stat {
  min-height: 72px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background: #101a10b8;
  padding: 10px;
}
.education-stat span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.education-stat strong {
  color: var(--accent-hover);
  font-size: 21px;
  line-height: 1;
}
.education-section,
.education-modules {
  display: grid;
  gap: 12px;
}
.education-module-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.education-module-tab {
  min-height: 76px;
  display: grid;
  gap: 6px;
  align-content: space-between;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background: #05080575;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.education-module-tab.active {
  border-color: #a6ff009e;
  box-shadow:
    inset 0 0 0 1px #a6ff0029,
    0 14px 28px #00000038;
}
.education-module-tab.passed {
  border-color: #00ff6670;
  background: #00ff6614;
}
.education-module-tab strong {
  font-size: 13px;
  line-height: 1.2;
}
.education-module-status {
  width: fit-content;
  border: 1px solid rgba(166, 255, 0, 0.24);
  border-radius: 999px;
  background: #a6ff001a;
  color: var(--accent-hover);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 860;
}
.education-module-status.passed {
  border-color: #00ff665c;
  background: #00ff661f;
  color: var(--success);
}
.education-module-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 94% 10%,
      rgba(166, 255, 0, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #101a10f5, #0b120bfa);
  padding: 14px;
  box-shadow: 0 16px 34px #00000038;
}
.education-module-card.done {
  border-color: #00ff666b;
}
.education-module-card.collapsed {
  padding: 0;
}
.education-module-card.expanded {
  border-color: #a6ff007a;
}
.education-module-detail {
  display: grid;
  gap: 12px;
}
.education-module-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.education-module-toggle-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.education-module-toggle-main h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.education-module-toggle-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 255, 0, 0.26);
  border-radius: 8px;
  background: #a6ff0014;
  color: var(--accent-hover);
  font-size: 18px;
  font-weight: 860;
}
.education-module-card.expanded .education-module-toggle-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text);
}
.education-module-content {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
.education-module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.education-module-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.education-module-kicker,
.education-lesson-time,
.education-quiz-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}
.education-module-progress {
  min-width: 62px;
  border: 1px solid rgba(166, 255, 0, 0.24);
  border-radius: 999px;
  background: #a6ff001a;
  color: var(--accent-hover);
  padding: 6px 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 860;
}
.education-lessons {
  display: grid;
  gap: 8px;
}
.education-lesson-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background: #0508056b;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.education-lesson-item.done {
  border-color: #00ff665c;
  background: #00ff6612;
}
.education-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 255, 0, 0.28);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 860;
}
.education-lesson-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.education-lesson-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
.education-lesson-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.education-lesson-detail {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(166, 255, 0, 0.18);
  border-radius: 8px;
  background: #05080585;
  padding: 12px;
}
.education-lesson-detail p,
.education-lesson-detail li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.education-lesson-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}
.education-complete-button,
.education-reset-button,
.education-restart-button {
  min-height: 40px;
  border: 1px solid rgba(166, 255, 0, 0.36);
  border-radius: 8px;
  background: #a6ff001f;
  color: var(--accent-hover);
  font-weight: 860;
  cursor: pointer;
}
.education-restart-button {
  width: fit-content;
  padding: 0 13px;
  background: #101a10eb;
}
.education-complete-button.done {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text);
}
.education-quiz-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(31, 58, 31, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 0%, rgba(166, 255, 0, 0.06), transparent 30%),
    #05080557;
  padding: 14px;
}
.education-quiz-card .section-heading h2 {
  font-size: 20px;
}
.education-quiz-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(166, 255, 0, 0.18);
  border-radius: 8px;
  background: #a6ff000e;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.education-quiz-summary strong {
  color: var(--accent-hover);
  font-size: 18px;
}
.education-question {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(31, 58, 31, 0.82);
  padding-top: 14px;
}
.education-quiz-option {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(31, 58, 31, 0.86);
  border-radius: 8px;
  background: #0b120ba8;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-weight: 760;
  cursor: pointer;
}
.education-quiz-option:disabled {
  cursor: default;
}
.education-quiz-option.correct {
  border-color: #00ff6675;
  background: #00ff661f;
  color: var(--success);
}
.education-quiz-option.wrong {
  border-color: #ff3b3b75;
  background: #ff3b3b1f;
  color: var(--error);
}
.education-quiz-explain {
  border-radius: 8px;
  background: #a6ff0012;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.education-quiz-actions {
  display: flex;
  justify-content: flex-end;
}
.education-course-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 74px;
}
.education-toast {
  position: sticky;
  top: calc(10px + var(--app-safe-top) + var(--telegram-controls-top-gap));
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(166, 255, 0, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(166, 255, 0, 0.2), transparent 34%),
    linear-gradient(180deg, #101a10fa, #050805fa);
  color: var(--ink);
  padding: 12px;
  box-shadow:
    0 18px 44px #0000005c,
    0 0 0 1px #39ff140d;
}
.education-toast.achievement {
  border-color: #c8ff3d94;
  box-shadow:
    0 18px 44px #0000005c,
    0 0 26px #a6ff001f;
}
.education-toast-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text);
  font-weight: 920;
}
.education-toast-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.education-toast-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}
.education-toast-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.education-toast-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 255, 0, 0.2);
  border-radius: 8px;
  background: #050805b8;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.education-achievements,
.profile-learning-achievements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.education-achievement {
  position: relative;
  min-height: 124px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon status" "icon title" "body body" "hint hint";
  column-gap: 10px;
  row-gap: 5px;
  align-content: start;
  border: 1px solid rgba(31, 58, 31, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(166, 255, 0, 0.05),
      transparent 42%
    ),
    linear-gradient(180deg, #101a10bd, #050805d1);
  padding: 12px 38px 12px 12px;
  opacity: 0.74;
  overflow: hidden;
}
.achievement-info-button {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 255, 0, 0.24);
  border-radius: 999px;
  background: #050805b8;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.achievement-info-button:hover {
  border-color: #c8ff3d94;
  background: #a6ff001f;
}
.education-achievement-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #a6ff0033, #39ff1414), #050805b8;
  border: 1px solid rgba(166, 255, 0, 0.22);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.education-achievement-icon svg {
  width: 20px;
  height: 20px;
}
.education-achievement.unlocked {
  opacity: 1;
  border-color: #a6ff0066;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(166, 255, 0, 0.14),
      transparent 46%
    ),
    linear-gradient(180deg, #192b0ce0, #080f07f0);
  box-shadow:
    inset 0 0 0 1px #39ff140d,
    0 12px 26px #0000002e;
}
.education-achievement-status {
  grid-area: status;
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.education-achievement-title {
  grid-area: title;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.05;
}
.education-achievement-lead {
  grid-area: body;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}
.achievement-hint {
  grid-area: hint;
  margin-top: 4px;
  border: 1px solid rgba(166, 255, 0, 0.22);
  border-radius: 7px;
  background: #050805b8;
  color: var(--accent-hover);
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.profile-learning-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  position: relative;
}
.profile-learning-card:after {
  content: "";
  position: absolute;
  right: -56px;
  top: -60px;
  width: 146px;
  height: 146px;
  border: 20px solid rgba(166, 255, 0, 0.055);
  border-radius: 50%;
}
.profile-learning-card > * {
  position: relative;
  z-index: 1;
}
.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.language-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  cursor: pointer;
}
.language-button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 760;
}
.flag-icon {
  width: 23px !important;
  height: 17px !important;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #1018201f;
  object-fit: cover;
  flex: 0 0 auto;
}
.bottom-nav {
  position: fixed;
  left: calc(var(--safe-left) + 12px);
  right: calc(var(--safe-right) + 12px);
  bottom: calc(var(--app-safe-bottom) + 10px);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 452px;
  margin: 0 auto;
  border: 1px solid rgba(211, 223, 229, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffffff5, #f5fafcf0), #f8fbfc;
  padding: 8px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px #1018201f;
}
body.desktop .bottom-nav {
  left: 50%;
  right: auto;
  width: min(452px, calc(100vw - 28px));
  transform: translate(-50%);
}
body.desktop .pair-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nav-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5d6c76;
  display: grid;
  place-items: center;
  gap: 3px;
  cursor: pointer;
  font-size: 12px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.nav-button svg {
  width: 21px;
  height: 21px;
}
.nav-button.active {
  background: linear-gradient(135deg, #358f3b, var(--green));
  color: #fff;
  box-shadow: 0 10px 24px #2f7d3238;
}
.nav-button:active {
  transform: translateY(1px);
}
.state-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom)) calc(18px + var(--safe-left));
}
.state-card {
  width: min(430px, 100%);
  padding: 24px;
  display: grid;
  gap: 16px;
  text-align: left;
}
.state-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}
.loader {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #d6e1e7;
  border-top-color: #101820;
  animation: spin 0.85s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes signalStatusPulse {
  0%,
  to {
    opacity: 0.55;
    transform: scale(0.86);
    box-shadow: 0 0 0 3px #2f7d321f;
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
    box-shadow: 0 0 0 7px #2f7d322e;
  }
}
:root {
  --ink: var(--text-main);
  --muted: var(--text-secondary);
  --line: var(--app-border);
  --panel: var(--app-card);
  --soft: var(--app-bg-2);
  --green: var(--accent);
  --blue: var(--info);
  color: var(--ink);
  background: var(--app-bg);
}
body,
.app-shell {
  background:
    radial-gradient(
      circle at 10% -10%,
      rgba(166, 255, 0, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 100% 8%,
      rgba(57, 255, 20, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, var(--app-bg) 0%, var(--app-bg-2) 100%);
  color: var(--ink);
}
body.desktop .app-shell {
  border-color: #1f3a1fe6;
  box-shadow: 0 24px 80px #00000094;
}
p,
.metric span,
.profile-chip,
.market-card p,
.pair-lead,
.profile-row span,
.history-detail,
.nav-button,
.market-note {
  color: var(--muted);
}
.brand-logo-img {
  filter: drop-shadow(0 0 18px rgba(166, 255, 0, 0.16));
}
.header-language-trigger,
.profile-trader {
  background: #101a10eb;
  border-color: #a6ff0057;
  color: var(--ink);
  box-shadow:
    0 0 0 1px #39ff140f,
    0 10px 26px #0000002e;
}
.header-language-trigger:hover,
.profile-trader:hover {
  border-color: #c8ff3d94;
}
.profile-trader strong {
  color: var(--accent-hover);
}
.profile-chip {
  background: #101a10e0;
  border-color: #a6ff0047;
  color: var(--muted);
}
.header-language-trigger,
.profile-chip,
.header-language-menu,
.header-language-option,
.language-card,
.card,
.metric,
.hero-panel,
.pair-card,
.expiry-card,
.profile-card,
.profile-row,
.history-line,
.bottom-nav,
.state-card,
.signal-list,
.detail-card {
  border-color: #1f3a1feb;
  background: linear-gradient(180deg, #101a10f5, #0b120bfa), var(--app-card);
  color: var(--ink);
  box-shadow: 0 16px 42px #0000004d;
}
.back-button,
.page-button,
.action-button {
  border-color: #1f3a1ff2;
  background: var(--app-card);
  color: var(--ink);
}
.hero-panel {
  background:
    radial-gradient(circle at 86% 18%, rgba(166, 255, 0, 0.1), transparent 34%),
    linear-gradient(135deg, #101a10fa, #050805fa);
}
.hero-panel:before,
.signal-card:before {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-2));
}
.hero-panel:after,
.market-card:after,
.profile-hero:after {
  border-color: #a6ff0014;
}
.eyebrow,
.details-label,
.signal-card .eyebrow,
.pair-payout,
.profile-row strong,
.history-direction {
  color: var(--accent);
}
.pair-payout {
  background: #a6ff001f;
  border: 1px solid rgba(166, 255, 0, 0.26);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.pair-search-input {
  background: #101a10f0;
  border-color: #a6ff0047;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.pair-search-input:focus {
  outline: none;
  border-color: #c8ff3db3;
  box-shadow: 0 0 0 3px #a6ff001a;
}
.expiry-button {
  background: linear-gradient(180deg, #101a10f5, #0b120bfa);
  border-color: #a6ff0047;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px #39ff140a,
    0 12px 26px #0000002e;
}
.expiry-button:hover {
  border-color: #c8ff3da3;
  transform: translateY(-1px);
}
.expiry-button strong {
  color: var(--accent-hover);
}
.expiry-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}
.signal-loader-status {
  background: #a6ff001f;
  border-color: #a6ff004d;
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.signal-loader-status:before {
  box-shadow: 0 0 0 4px #a6ff0024;
}
.signal-action-button {
  background: #101a10f0;
  border-color: #a6ff004d;
  color: var(--ink);
  box-shadow: 0 12px 28px #0003;
}
.signal-action-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: #a6ff0080;
  color: var(--button-text);
}
.result-banner {
  border: 1px solid rgba(31, 58, 31, 0.95);
  box-shadow: inset 0 0 0 1px #39ff140a;
}
.result-banner.win {
  background: #00ff661f;
  border-color: #00ff6657;
  color: var(--success);
}
.result-banner.loss {
  background: #ff3b3b24;
  border-color: #ff3b3b57;
  color: var(--error);
}
.result-banner.draw {
  background: #a8b3a81f;
  border-color: #a8b3a83d;
  color: var(--muted);
}
.history-line {
  background: linear-gradient(180deg, #101a10f5, #0b120bfa);
  border-color: #1f3a1ff2;
  box-shadow: 0 12px 28px #00000038;
}
.history-line.win {
  border-color: #00ff667a;
  background: linear-gradient(90deg, #00ff661a, #101a10fa 42%), var(--app-card);
}
.history-line.loss {
  border-color: #ff3b3b8a;
  background: linear-gradient(90deg, #ff3b3b1f, #101a10fa 42%), var(--app-card);
}
.history-line.draw {
  border-color: #a8b3a857;
  background: linear-gradient(90deg, #a8b3a814, #101a10fa 42%), var(--app-card);
}
.history-detail h3,
.history-values strong {
  color: var(--ink);
}
.history-values {
  color: var(--muted);
}
.history-result,
.history-direction {
  background: #a8b3a81f;
  border: 1px solid rgba(168, 179, 168, 0.22);
  color: var(--muted);
}
.history-result.win,
.history-direction.buy {
  background: #00ff661f;
  border-color: #00ff6647;
  color: var(--success);
}
.history-result.loss,
.history-direction.sell {
  background: #ff3b3b24;
  border-color: #ff3b3b4d;
  color: var(--error);
}
.market-card:hover,
.pair-card:hover,
.expiry-card:hover {
  border-color: #c8ff3dc2;
  box-shadow: 0 14px 30px #a6ff0029;
}
.market-badge,
.access-badge,
.status-pill,
.profile-status,
.language-current,
.summary-badge {
  background: #a6ff0024;
  color: var(--accent);
}
.market-badge.closed {
  background: #d6ff3f1f;
  color: var(--warning);
}
.market-card.disabled {
  border-color: #6f7a6f38;
  background: linear-gradient(180deg, #141814eb, #0b0e0bf2), #0b0f0b;
  color: var(--text-muted);
}
.market-card.disabled strong,
.market-card.disabled p,
.market-card.disabled .market-kicker span {
  color: var(--text-muted);
}
.nav-button.active,
.primary-link,
.action-button.primary,
.save-button,
.language-option.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text);
  box-shadow: 0 12px 28px #a6ff0040;
}
.signal-card,
.active-signal-card {
  border-color: #1f3a1ff2;
  background:
    radial-gradient(circle at 78% 8%, rgba(166, 255, 0, 0.12), transparent 34%),
    linear-gradient(145deg, #39ff141f, #05080500 44%), var(--app-bg);
}
.loader {
  border-top-color: var(--accent);
}
.brand-mark:before,
.brand-mark:after {
  background: var(--accent);
}
[dir="rtl"] .profile-row {
  direction: rtl;
}
@media (max-width: 360px) {
  .brand-title strong {
    font-size: 25px;
  }
  .brand-mark {
    width: 42px;
    height: 50px;
    flex-basis: 42px;
  }
  .brand-mark:before {
    width: 35px;
    height: 31px;
  }
  .brand-mark:after {
    left: 18px;
    width: 22px;
    height: 22px;
  }
  .metric-row,
  .language-grid {
    grid-template-columns: 1fr;
  }
  .pair-list,
  .signal-meta.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 {
    font-size: 24px;
  }
}

/* Signal probability */
.signal-meta.open {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.signal-meta-item.signal-confidence {
  border-color: rgba(166, 255, 0, 0.4);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(166, 255, 0, 0.14),
      transparent 52%
    ),
    linear-gradient(180deg, #162512, #0b120b);
}
.signal-confidence strong {
  color: var(--accent-hover);
}
.signal-confidence-track {
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(166, 255, 0, 0.25);
  border-radius: 999px;
  background: #050805;
}
.signal-confidence-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(166, 255, 0, 0.35);
}
.mini-confidence {
  border: 1px solid rgba(166, 255, 0, 0.3);
  border-radius: 999px;
  background: rgba(166, 255, 0, 0.1);
  color: var(--accent-hover);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 820;
}
.active-preview-meta .mini-confidence {
  white-space: nowrap;
}
@media (max-width: 360px) {
  .signal-meta.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Balance-based AI access */
.balance-access-card {
  position: relative;
  overflow: hidden;
  gap: 14px;
  border-color: rgba(214, 255, 63, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 255, 63, 0.13), transparent 38%),
    linear-gradient(180deg, #101a10, #080e08);
}
.balance-access-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(166, 255, 0, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.balance-access-card > * {
  position: relative;
  z-index: 1;
}
.balance-access-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 255, 63, 0.5);
  border-radius: 12px;
  background: rgba(214, 255, 63, 0.12);
  color: var(--warning);
  font-size: 25px;
  font-weight: 900;
}
.balance-access-card h2 {
  color: var(--text-main);
}
.balance-access-card > p {
  color: var(--text-secondary);
  font-size: 14px;
}
.balance-access-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.balance-access-metrics > div {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  border: 1px solid rgba(166, 255, 0, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 5, 0.7);
  padding: 10px;
}
.balance-access-metrics span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
}
.balance-access-metrics strong {
  color: var(--accent-hover);
  font-size: 18px;
}
.balance-check-button {
  width: 100%;
  min-height: 50px;
}
.balance-check-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
@media (max-width: 360px) {
  .balance-access-metrics {
    grid-template-columns: 1fr;
  }
  .balance-access-metrics > div {
    min-height: 58px;
  }
}
