: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: #997c3a;
  --blue: #267a96;
  --app-bg: #08050d;
  --app-bg-2: #100912;
  --app-card: #171017;
  --app-border: #4a3520;
  --accent: #f6c744;
  --accent-2: #e89030;
  --accent-hover: #ffe082;
  --button-text: #1a0e05;
  --text-main: #fff8e7;
  --text-secondary: #c9b9a6;
  --text-muted: #8f7e78;
  --success: #36d77a;
  --warning: #ffd166;
  --error: #ff5b4d;
  --info: #62afff;
  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: #997c3a57;
  box-shadow: 0 12px 26px #997c3a14;
}
.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: #100912fa;
  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: #f6c74424;
  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: #f3eae2;
  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: #f3eae2;
  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(153, 124, 58, 0.18);
  border-radius: 999px;
  background: #f3eae2;
  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 #997c3a1f;
  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(153, 124, 58, 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(246, 199, 68, 0.24);
  border-radius: 8px;
  background: #f6c74414;
  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: #f3eae2;
  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: #997c3a33;
  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: #f6c74442;
  border-radius: 8px;
  background: linear-gradient(180deg, #171017f5, #08050dfa);
  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: #f6c74452;
  background: #08050dc7;
  color: var(--ink);
  box-shadow: none;
}
.active-preview-card .back-button:hover {
  border-color: #ffe0829e;
  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: #f3eae2;
  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: #997c3ab8;
  background: linear-gradient(90deg, #997c3a1a, #fff 42%);
  box-shadow: 0 10px 26px #997c3a21;
}
.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: #f3eae2;
  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: #f3eae2;
  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(246, 199, 68, 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(246, 199, 68, 0.055);
  border-radius: 50%;
}
.profile-stat {
  position: relative;
  z-index: 1;
  min-height: 94px;
  border: 1px solid rgba(65, 45, 31, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, #171017f5, #100912fa);
  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: #f6c7441f;
  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(246, 199, 68, 0.28);
  border-radius: 999px;
  background: #08050dcc;
}
.education-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px #f6c74452;
}
.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(65, 45, 31, 0.95);
  border-radius: 8px;
  background: #171017b8;
  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(65, 45, 31, 0.95);
  border-radius: 8px;
  background: #08050d75;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.education-module-tab.active {
  border-color: #f6c7449e;
  box-shadow:
    inset 0 0 0 1px #f6c74429,
    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(246, 199, 68, 0.24);
  border-radius: 999px;
  background: #f6c7441a;
  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(65, 45, 31, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 94% 10%,
      rgba(246, 199, 68, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #171017f5, #100912fa);
  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: #f6c7447a;
}
.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(246, 199, 68, 0.26);
  border-radius: 8px;
  background: #f6c74414;
  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(246, 199, 68, 0.24);
  border-radius: 999px;
  background: #f6c7441a;
  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(65, 45, 31, 0.95);
  border-radius: 8px;
  background: #08050d6b;
  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(246, 199, 68, 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(246, 199, 68, 0.18);
  border-radius: 8px;
  background: #08050d85;
  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(246, 199, 68, 0.36);
  border-radius: 8px;
  background: #f6c7441f;
  color: var(--accent-hover);
  font-weight: 860;
  cursor: pointer;
}
.education-restart-button {
  width: fit-content;
  padding: 0 13px;
  background: #171017eb;
}
.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(65, 45, 31, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 0%, rgba(246, 199, 68, 0.06), transparent 30%),
    #08050d57;
  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(246, 199, 68, 0.18);
  border-radius: 8px;
  background: #f6c7440e;
  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(65, 45, 31, 0.82);
  padding-top: 14px;
}
.education-quiz-option {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(65, 45, 31, 0.86);
  border-radius: 8px;
  background: #100912a8;
  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: #f6c74412;
  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(246, 199, 68, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(246, 199, 68, 0.2), transparent 34%),
    linear-gradient(180deg, #171017fa, #08050dfa);
  color: var(--ink);
  padding: 12px;
  box-shadow:
    0 18px 44px #0000005c,
    0 0 0 1px #e890300d;
}
.education-toast.achievement {
  border-color: #ffe08294;
  box-shadow:
    0 18px 44px #0000005c,
    0 0 26px #f6c7441f;
}
.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(246, 199, 68, 0.2);
  border-radius: 8px;
  background: #08050db8;
  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(65, 45, 31, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(246, 199, 68, 0.05),
      transparent 42%
    ),
    linear-gradient(180deg, #171017bd, #08050dd1);
  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(246, 199, 68, 0.24);
  border-radius: 999px;
  background: #08050db8;
  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 #e890300a;
}
.achievement-info-button:hover {
  border-color: #ffe08294;
  background: #f6c7441f;
}
.education-achievement-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6c74433, #e8903014), #08050db8;
  border: 1px solid rgba(246, 199, 68, 0.22);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #e890300a;
}
.education-achievement-icon svg {
  width: 20px;
  height: 20px;
}
.education-achievement.unlocked {
  opacity: 1;
  border-color: #f6c74466;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(246, 199, 68, 0.14),
      transparent 46%
    ),
    linear-gradient(180deg, #2e1e24e0, #100b0df0);
  box-shadow:
    inset 0 0 0 1px #e890300d,
    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(246, 199, 68, 0.22);
  border-radius: 7px;
  background: #08050db8;
  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(246, 199, 68, 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, #997c3a, var(--green));
  color: #fff;
  box-shadow: 0 10px 24px #997c3a38;
}
.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 #997c3a1f;
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
    box-shadow: 0 0 0 7px #997c3a2e;
  }
}
: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(246, 199, 68, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 100% 8%,
      rgba(232, 144, 48, 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: #412d1fe6;
  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 {
  height: 62px;
  max-height: 62px;
  object-fit: cover;
  object-position: center 56%;
  border-radius: 6px;
  filter: drop-shadow(0 0 18px rgba(246, 199, 68, 0.22));
}
.header-language-trigger,
.profile-trader {
  background: #171017eb;
  border-color: #f6c74457;
  color: var(--ink);
  box-shadow:
    0 0 0 1px #e890300f,
    0 10px 26px #0000002e;
}
.header-language-trigger:hover,
.profile-trader:hover {
  border-color: #ffe08294;
}
.profile-trader strong {
  color: var(--accent-hover);
}
.profile-chip {
  background: #171017e0;
  border-color: #f6c74447;
  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: #412d1feb;
  background: linear-gradient(180deg, #171017f5, #100912fa), var(--app-card);
  color: var(--ink);
  box-shadow: 0 16px 42px #0000004d;
}
.back-button,
.page-button,
.action-button {
  border-color: #412d1ff2;
  background: var(--app-card);
  color: var(--ink);
}
.hero-panel {
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 199, 68, 0.1), transparent 34%),
    linear-gradient(135deg, #171017fa, #08050dfa);
}
.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: #f6c74414;
}
.eyebrow,
.details-label,
.signal-card .eyebrow,
.pair-payout,
.profile-row strong,
.history-direction {
  color: var(--accent);
}
.pair-payout {
  background: #f6c7441f;
  border: 1px solid rgba(246, 199, 68, 0.26);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #e890300a;
}
.pair-search-input {
  background: #171017f0;
  border-color: #f6c74447;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #e890300a;
}
.pair-search-input:focus {
  outline: none;
  border-color: #ffe082b3;
  box-shadow: 0 0 0 3px #f6c7441a;
}
.expiry-button {
  background: linear-gradient(180deg, #171017f5, #100912fa);
  border-color: #f6c74447;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px #e890300a,
    0 12px 26px #0000002e;
}
.expiry-button:hover {
  border-color: #ffe082a3;
  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: #f6c7441f;
  border-color: #f6c7444d;
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #e890300a;
}
.signal-loader-status:before {
  box-shadow: 0 0 0 4px #f6c74424;
}
.signal-action-button {
  background: #171017f0;
  border-color: #f6c7444d;
  color: var(--ink);
  box-shadow: 0 12px 28px #0003;
}
.signal-action-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: #f6c74480;
  color: var(--button-text);
}
.result-banner {
  border: 1px solid rgba(65, 45, 31, 0.95);
  box-shadow: inset 0 0 0 1px #e890300a;
}
.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: #c9b9a61f;
  border-color: #c9b9a63d;
  color: var(--muted);
}
.history-line {
  background: linear-gradient(180deg, #171017f5, #100912fa);
  border-color: #412d1ff2;
  box-shadow: 0 12px 28px #00000038;
}
.history-line.win {
  border-color: #00ff667a;
  background: linear-gradient(90deg, #00ff661a, #171017fa 42%), var(--app-card);
}
.history-line.loss {
  border-color: #ff3b3b8a;
  background: linear-gradient(90deg, #ff3b3b1f, #171017fa 42%), var(--app-card);
}
.history-line.draw {
  border-color: #c9b9a657;
  background: linear-gradient(90deg, #c9b9a614, #171017fa 42%), var(--app-card);
}
.history-detail h3,
.history-values strong {
  color: var(--ink);
}
.history-values {
  color: var(--muted);
}
.history-result,
.history-direction {
  background: #c9b9a61f;
  border: 1px solid rgba(201, 185, 166, 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: #ffe082c2;
  box-shadow: 0 14px 30px #f6c74429;
}
.market-badge,
.access-badge,
.status-pill,
.profile-status,
.language-current,
.summary-badge {
  background: #f6c74424;
  color: var(--accent);
}
.market-badge.closed {
  background: #ffd1661f;
  color: var(--warning);
}
.market-card.disabled {
  border-color: #8f7e7838;
  background: linear-gradient(180deg, #191517eb, #0f0c0df2), #100d0e;
  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 #f6c74440;
}
.signal-card,
.active-signal-card {
  border-color: #412d1ff2;
  background:
    radial-gradient(circle at 78% 8%, rgba(246, 199, 68, 0.12), transparent 34%),
    linear-gradient(145deg, #e890301f, #08050d00 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(246, 199, 68, 0.4);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(246, 199, 68, 0.14),
      transparent 52%
    ),
    linear-gradient(180deg, #271b1f, #100912);
}
.signal-confidence strong {
  color: var(--accent-hover);
}
.signal-confidence-track {
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(246, 199, 68, 0.25);
  border-radius: 999px;
  background: #08050d;
}
.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(246, 199, 68, 0.35);
}
.mini-confidence {
  border: 1px solid rgba(246, 199, 68, 0.3);
  border-radius: 999px;
  background: rgba(246, 199, 68, 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(255, 209, 102, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.13), transparent 38%),
    linear-gradient(180deg, #171017, #0f0b0c);
}
.balance-access-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(246, 199, 68, 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(255, 209, 102, 0.5);
  border-radius: 12px;
  background: rgba(255, 209, 102, 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(246, 199, 68, 0.2);
  border-radius: 8px;
  background: rgba(8, 5, 13, 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;
  }
}

/* Golden Gate visual refinement v2 */
:root {
  --app-bg: #080200;
  --app-bg-2: #180700;
  --app-card: #200b03;
  --app-border: #7f3c08;
  --accent: #ffd000;
  --accent-2: #ff7500;
  --accent-hover: #fff0a3;
  --button-text: #241000;
  --text-main: #fff9e8;
  --text-secondary: #edc993;
  --text-muted: #bd8b5e;
}
body,
.app-shell {
  background:
    radial-gradient(circle at 8% -8%, rgba(255, 208, 0, .28), transparent 28%),
    radial-gradient(circle at 102% 10%, rgba(255, 92, 0, .22), transparent 32%),
    radial-gradient(circle at 50% 110%, rgba(159, 48, 0, .2), transparent 38%),
    linear-gradient(180deg, #080200 0%, #130500 52%, #090200 100%);
}
body.desktop .app-shell {
  border-color: rgba(255, 151, 20, .42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .82);
}
.topbar {
  position: relative;
  min-height: 70px;
  margin-bottom: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 160, 20, .34);
  border-radius: 15px;
  padding: 6px 8px 6px 10px;
  background:
    radial-gradient(circle at 4% 50%, rgba(255, 196, 0, .17), transparent 36%),
    linear-gradient(110deg, rgba(27, 5, 0, .98), rgba(11, 2, 0, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 159, .08),
    0 12px 34px rgba(0, 0, 0, .42),
    0 0 24px rgba(255, 128, 0, .06);
}
.brand {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.brand-logo-img {
  width: min(276px, calc(100vw - 142px));
  height: 56px;
  max-height: 56px;
  border-radius: 0;
  object-fit: cover;
  object-position: center 55%;
  mix-blend-mode: screen;
  filter:
    saturate(1.34)
    contrast(1.1)
    drop-shadow(0 0 9px rgba(255, 181, 0, .28));
}
.header-language-trigger {
  min-height: 42px;
  border-color: rgba(255, 190, 35, .52);
  background: linear-gradient(180deg, rgba(67, 20, 1, .98), rgba(32, 8, 0, .98));
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 170, .12),
    0 8px 22px rgba(0, 0, 0, .4);
}
.header-language-trigger:hover {
  border-color: rgba(255, 221, 92, .86);
}
.hero-panel {
  min-height: 150px;
  border-color: rgba(255, 151, 15, .58);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 174, 0, .25), transparent 34%),
    linear-gradient(128deg, rgba(50, 12, 1, .99), rgba(18, 4, 0, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 143, .07),
    0 18px 44px rgba(0, 0, 0, .48),
    0 0 32px rgba(255, 107, 0, .06);
}
.hero-panel:before,
.signal-card:before {
  background: linear-gradient(180deg, #fff07a, #ff9d00 54%, #ff4d00);
  box-shadow: 0 0 16px rgba(255, 164, 0, .46);
}
.hero-panel:after,
.market-card:after,
.profile-hero:after {
  border-color: rgba(255, 184, 31, .1);
}
.metric-row {
  gap: 10px;
}
.metric.market-card {
  border-color: rgba(255, 139, 8, .4);
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 158, 0, .14), transparent 46%),
    linear-gradient(160deg, rgba(39, 10, 1, .98), rgba(17, 4, 0, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 141, .055),
    0 14px 32px rgba(0, 0, 0, .38);
}
.metric.market-card:hover {
  border-color: rgba(255, 211, 68, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 174, .1),
    0 15px 34px rgba(0, 0, 0, .48),
    0 0 24px rgba(255, 137, 0, .16);
}
.market-card.disabled {
  border-color: rgba(148, 81, 42, .4);
  background: linear-gradient(160deg, rgba(32, 18, 13, .96), rgba(15, 8, 5, .99));
}
.market-card strong,
h1,
h2,
h3 {
  text-shadow: 0 2px 12px rgba(255, 133, 0, .08);
}
.market-badge,
.access-badge,
.status-pill,
.profile-status,
.language-current,
.summary-badge {
  border: 1px solid rgba(255, 184, 26, .28);
  background: rgba(255, 177, 0, .16);
  color: #ffe56b;
}
.bottom-nav {
  border-color: rgba(255, 151, 20, .5);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 174, 0, .13), transparent 55%),
    linear-gradient(180deg, rgba(37, 9, 1, .96), rgba(15, 3, 0, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 150, .08),
    0 18px 44px rgba(0, 0, 0, .68);
}
.bottom-nav .nav-button {
  color: #d1ae80;
}
.bottom-nav .nav-button.active {
  background: linear-gradient(135deg, #ffe052 0%, #ffab00 55%, #ff6a00 100%);
  color: #2a1000;
  box-shadow: 0 10px 28px rgba(255, 132, 0, .42);
}
@media (max-width: 380px) {
  .topbar {
    min-height: 64px;
    padding-left: 7px;
  }
  .brand-logo-img {
    width: min(242px, calc(100vw - 132px));
    height: 51px;
    max-height: 51px;
  }
}

/* Golden Gate product UI v6: branded access loading state */
.loading-state-card {
  position: relative;
  justify-items: center;
  width: min(390px, 100%);
  overflow: hidden;
  border-color: rgba(255, 173, 28, .42);
  border-radius: 19px;
  padding: 28px 24px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 156, 0, .11), transparent 38%),
    linear-gradient(150deg, rgba(35, 8, 1, .99), rgba(11, 2, 0, .995));
  box-shadow: inset 0 1px 0 rgba(255, 232, 151, .07), 0 24px 65px rgba(0, 0, 0, .58), 0 0 44px rgba(255, 112, 0, .08);
}
.loading-state-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff8a00, #ffe25e, #ff8a00, transparent);
  box-shadow: 0 0 14px rgba(255, 155, 0, .72);
}
.loading-state-card .state-logo {
  position: relative;
  width: 100%;
  justify-content: center;
  padding-bottom: 17px;
}
.loading-state-card .state-logo::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: 3px;
  left: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 42, .46), transparent);
}
.loading-state-card .brand {
  min-height: 42px;
  padding: 0;
}
.access-loader {
  position: relative;
  display: grid;
  width: 146px;
  height: 146px;
  margin: 5px 0 1px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 177, 24, .12) 0 28%, transparent 29%),
    repeating-radial-gradient(circle, transparent 0 42px, rgba(255, 185, 39, .075) 43px 44px, transparent 45px 56px);
}
.access-loader::before,
.access-loader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.access-loader::before {
  inset: 11px;
  border: 1px solid rgba(255, 202, 68, .22);
  border-top-color: #ffe159;
  border-right-color: #ff8100;
  animation: accessLoaderSpin 2.25s linear infinite;
}
.access-loader::after {
  inset: 29px;
  border: 1px dashed rgba(255, 182, 29, .28);
  animation: accessLoaderReverse 4.6s linear infinite;
}
.access-loader-track {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 14%, #ff7a00 20%, #ffe15b 27%, transparent 34% 68%, rgba(255, 174, 24, .58) 76%, transparent 84%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  filter: drop-shadow(0 0 6px rgba(255, 141, 0, .8));
  animation: accessLoaderSpin 1.55s linear infinite;
}
.access-loader-bridge {
  position: absolute;
  z-index: 2;
  top: 43px;
  width: 92px;
  height: 43px;
  border-top: 2px solid rgba(255, 202, 56, .78);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 0 5px rgba(255, 146, 0, .54));
  animation: accessBridgeGlow 1.7s ease-in-out infinite;
}
.access-loader-bridge::before,
.access-loader-bridge::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 2px;
  height: 36px;
  background: linear-gradient(#ffe263, #ff7b00);
  box-shadow: 0 0 7px rgba(255, 145, 0, .7);
}
.access-loader-bridge::before { left: 18px; }
.access-loader-bridge::after { right: 18px; }
.access-loader-core {
  position: relative;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 207, 76, .56);
  border-radius: 15px;
  color: #ffe987;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .1em;
  background: linear-gradient(145deg, rgba(83, 23, 1, .98), rgba(23, 5, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 242, 185, .1), 0 0 24px rgba(255, 127, 0, .24);
  animation: accessCorePulse 1.6s ease-in-out infinite;
}
.access-loader-text {
  position: relative;
  margin: 2px 0 0;
  color: #f0c58c;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: .01em;
}
.access-loader-text::after {
  content: "…";
  display: inline-block;
  width: 22px;
  overflow: hidden;
  vertical-align: bottom;
  animation: accessDots 1.4s steps(4, end) infinite;
}
@keyframes accessLoaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes accessLoaderReverse {
  to { transform: rotate(-360deg); }
}
@keyframes accessCorePulse {
  0%, 100% { transform: scale(.95); filter: brightness(.88); }
  50% { transform: scale(1.04); filter: brightness(1.22); }
}
@keyframes accessBridgeGlow {
  0%, 100% { opacity: .38; }
  50% { opacity: .92; }
}
@keyframes accessDots {
  0% { width: 0; }
  100% { width: 22px; }
}

/* Golden Gate product UI v5: separated brand, market gateway and analysis loader */
.topbar {
  position: relative;
  display: grid;
  min-height: 68px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 5px 12px 15px;
  background: transparent;
  box-shadow: none;
}
.topbar::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 5px;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 126, 0, .55) 18%, #ffd24b 50%, rgba(255, 126, 0, .55) 82%, transparent);
  box-shadow: 0 0 8px rgba(255, 157, 0, .68), 0 0 22px rgba(255, 101, 0, .28);
}
.brand {
  min-height: 44px;
  padding: 0 18px;
}
.brand::after {
  padding: 2px 7px 5px;
  font-size: clamp(25px, 6.6vw, 31px);
  letter-spacing: .105em;
  filter: drop-shadow(0 2px 0 rgba(83, 20, 0, .76)) drop-shadow(0 0 12px rgba(255, 167, 0, .3));
}
.hero-panel {
  min-height: 154px;
  border: 0;
  border-left: 3px solid #ff9d13;
  border-radius: 3px 17px 17px 3px;
  padding: 24px 21px;
  background:
    linear-gradient(104deg, rgba(68, 17, 1, .98), rgba(25, 6, 0, .98) 63%, rgba(13, 3, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 225, 142, .05), 0 16px 34px rgba(0, 0, 0, .36), -7px 0 24px rgba(255, 112, 0, .08);
}
.hero-panel::before {
  top: auto;
  right: 20px;
  bottom: 16px;
  left: 20px;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 188, 43, .58), rgba(255, 122, 0, .12), transparent 82%);
  box-shadow: none;
}
.hero-panel::after {
  inset: 19px 15px 19px auto;
  width: 142px;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 92'%3E%3Cg fill='none' stroke='%23ffc23b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 72L27 60L49 64L75 42L96 50L126 19L154 27'/%3E%3Cpath d='M139 20h-11v11'/%3E%3C/g%3E%3Cg stroke='%23ff7b18' stroke-width='1.7'%3E%3Cpath d='M24 37v31M19 46h10v13H19zM66 28v38M61 36h10v18H61zM111 17v40M106 27h10v18h-10z' fill='%23ff9d18' fill-opacity='.22'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .42;
}
.hero-panel > div {
  position: relative;
  z-index: 2;
  max-width: 68%;
}
.hero-panel h1 {
  font-size: clamp(29px, 7.3vw, 36px);
}
.market-section-heading {
  position: relative;
  display: grid;
  gap: 5px;
  margin: 7px 0 1px;
  padding: 3px 10px 11px 15px;
}
.market-section-heading::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe05c, #ff7500);
  box-shadow: 0 0 10px rgba(255, 143, 0, .42);
}
.market-section-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 15px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 167, 28, .34), transparent 88%);
}
.market-section-kicker {
  color: #ffb523;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.market-section-heading h2 {
  margin: 0;
  color: #fff7e8;
  font-size: 22px;
  letter-spacing: -.02em;
}
.market-section-heading p {
  max-width: 360px;
  margin: 0;
  color: #bd9468;
  font-size: 12px;
  line-height: 1.45;
}
.profile-language-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, .78fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(120deg, rgba(61, 16, 1, .98), rgba(19, 4, 0, .99));
}
.profile-language-copy {
  display: grid;
  gap: 4px;
}
.profile-language-copy .eyebrow {
  color: #ffad20;
}
.profile-language-copy h2 {
  margin: 0;
  color: #fff5df;
  font-size: 19px;
}
.profile-language-card .header-language-wrap {
  position: relative;
  top: auto;
  right: auto;
  z-index: 20;
  width: 100%;
  transform: none;
}
.profile-language-card .header-language {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  border-color: rgba(255, 183, 31, .48);
  border-radius: 11px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(72, 20, 1, .98), rgba(31, 7, 0, .99));
}
.profile-language-card .header-language::after {
  content: "⌄";
  color: #ffc238;
  font-size: 18px;
}
.profile-language-card .header-language-menu {
  top: calc(100% + 7px);
  right: 0;
  left: auto;
  width: max(190px, 100%);
  border-color: rgba(255, 171, 23, .45);
  background: rgba(24, 6, 0, .99);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .7);
}
.golden-analysis-loader {
  position: relative;
  display: grid;
  width: min(190px, 58vw);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 177, 24, .15) 0 30%, transparent 31%),
    repeating-radial-gradient(circle, transparent 0 35px, rgba(255, 178, 32, .08) 36px 37px, transparent 38px 52px);
  filter: drop-shadow(0 0 25px rgba(255, 135, 0, .2));
}
.golden-analysis-loader::before,
.golden-analysis-loader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.golden-analysis-loader::before {
  inset: 11px;
  border: 1px solid rgba(255, 199, 63, .22);
  border-top-color: #ffd64b;
  border-right-color: #ff8300;
  animation: goldenLoaderSpin 2.4s linear infinite;
}
.golden-analysis-loader::after {
  inset: 33px;
  border: 1px dashed rgba(255, 180, 31, .38);
  animation: goldenLoaderSpinReverse 5s linear infinite;
}
.golden-loader-orbit {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(from 12deg, transparent 0 15%, #ffd646 22%, #ff7700 29%, transparent 36% 70%, rgba(255, 185, 40, .5) 79%, transparent 86%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: goldenLoaderSpin 1.75s linear infinite;
}
.golden-loader-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 205, 74, .6);
  border-radius: 20px;
  color: #fff1a1;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .09em;
  background: linear-gradient(145deg, rgba(86, 25, 2, .98), rgba(27, 6, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 240, 176, .12), 0 0 32px rgba(255, 132, 0, .22);
  animation: goldenCorePulse 1.6s ease-in-out infinite;
}
.golden-loader-scan {
  position: absolute;
  z-index: 1;
  width: 92%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffcb3c, transparent);
  box-shadow: 0 0 13px rgba(255, 157, 0, .8);
  animation: goldenScan 2.15s ease-in-out infinite;
}
.signal-loader-card {
  box-shadow: inset 0 1px 0 rgba(255, 233, 157, .05), 0 18px 46px rgba(0, 0, 0, .52);
}
.signal-loader-text {
  position: relative;
  width: min(360px, 100%);
  padding-top: 14px;
}
.signal-loader-text::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffc83c, transparent);
  box-shadow: 0 0 8px rgba(255, 156, 0, .54);
}
@keyframes goldenLoaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes goldenLoaderSpinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes goldenCorePulse {
  0%, 100% { transform: scale(.96); filter: brightness(.9); }
  50% { transform: scale(1.04); filter: brightness(1.18); }
}
@keyframes goldenScan {
  0%, 100% { transform: translateY(-64px); opacity: .15; }
  50% { transform: translateY(64px); opacity: .95; }
}
@media (max-width: 380px) {
  .brand {
    padding: 0 8px;
  }
  .brand::after {
    font-size: 23px;
  }
  .hero-panel > div {
    max-width: 73%;
  }
  .profile-language-card {
    grid-template-columns: 1fr;
  }
}

/* Golden Gate layout refinement v3: crisp wordmark, geometric dashboard */
.topbar {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 66px;
  overflow: visible;
  border-color: rgba(255, 174, 22, .5);
  padding: 7px 72px;
  background:
    linear-gradient(105deg, rgba(48, 13, 0, .98), rgba(18, 4, 0, .99) 58%, rgba(30, 7, 0, .99));
}
.brand {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  overflow: visible;
}
.brand-logo-img {
  position: absolute;
  width: 1px;
  height: 1px;
  max-height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.brand::after {
  content: "GOLDEN GATE";
  display: block;
  color: #ffd442;
  font-family: Impact, "Arial Black", Inter, sans-serif;
  font-size: clamp(24px, 6.3vw, 31px);
  font-style: italic;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .055em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff4a4 0%, #ffd226 42%, #ff9300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(91, 24, 0, .8)) drop-shadow(0 0 9px rgba(255, 160, 0, .22));
}
.header-language-wrap {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 4;
  transform: translateY(-50%);
}
.header-language {
  min-width: 62px;
  min-height: 40px;
  border-color: rgba(255, 183, 31, .52);
  background: linear-gradient(180deg, rgba(59, 17, 1, .98), rgba(28, 7, 0, .99));
  color: #fff4dc;
  box-shadow: inset 0 1px 0 rgba(255, 234, 159, .1), 0 8px 22px rgba(0, 0, 0, .38);
}
.header-language:hover {
  border-color: rgba(255, 222, 99, .88);
}
.screen {
  gap: 13px;
}
.hero-panel {
  min-height: 134px;
  align-content: center;
  border-radius: 14px;
  padding: 21px 20px;
  background:
    linear-gradient(100deg, rgba(61, 16, 1, .99), rgba(22, 5, 0, .99) 68%),
    #210700;
}
.hero-panel:before {
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ffd431 48%, transparent 92%);
  box-shadow: 0 0 18px rgba(255, 156, 0, .3);
}
.hero-panel:after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(118deg, transparent 0 66%, rgba(255, 194, 54, .09) 66% 67%, transparent 67% 100%),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(255, 183, 35, .035) 43px 44px);
  opacity: .72;
}
.hero-panel h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(27px, 7vw, 34px);
  letter-spacing: -.025em;
}
.hero-panel p {
  max-width: 350px;
  margin-top: 11px;
  color: #e9bd82;
  font-size: 14px;
}
.metric-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric.market-card {
  min-height: 132px;
  overflow: hidden;
  border-radius: 13px;
  padding: 14px;
  background:
    linear-gradient(150deg, rgba(42, 12, 2, .99), rgba(17, 4, 0, .99));
}
.metric.market-card:nth-child(2) {
  order: -1;
  grid-column: 1 / -1;
  min-height: 112px;
  border-color: rgba(255, 195, 39, .68);
  padding: 16px 18px;
  background:
    linear-gradient(110deg, rgba(81, 25, 1, .98), rgba(34, 8, 0, .99) 64%, rgba(24, 5, 0, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 166, .08),
    0 16px 38px rgba(0, 0, 0, .46),
    0 0 28px rgba(255, 124, 0, .09);
}
.metric.market-card:nth-child(2) > div:last-child {
  max-width: 78%;
}
.market-card:after {
  right: -24px;
  bottom: -18px;
  width: 105px;
  height: 82px;
  border: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(132deg, transparent 0 10px, rgba(255, 188, 30, .09) 10px 12px);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .82;
}
.market-card strong {
  font-size: clamp(22px, 5.8vw, 27px);
  letter-spacing: -.02em;
}
.market-card p {
  margin-top: 7px;
  color: #d9ad79;
  font-size: 12px;
  line-height: 1.42;
}
.market-kicker {
  margin-bottom: 12px;
}
.market-kicker > span {
  color: #c9965f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.market-badge {
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: .01em;
}
.bottom-nav {
  gap: 5px;
  border-radius: 15px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(39, 10, 1, .97), rgba(16, 4, 0, .99));
}
.bottom-nav .nav-button {
  min-height: 55px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #c69c69;
}
.bottom-nav .nav-button.active {
  border-color: rgba(255, 230, 127, .5);
  background: linear-gradient(135deg, #ffe36b 0%, #ffbd16 50%, #ff7900 100%);
  color: #2a1000;
  box-shadow: 0 9px 24px rgba(255, 121, 0, .36);
}
.profile-hero,
.profile-stats-card,
.profile-learning-card {
  overflow: hidden;
  border-radius: 14px;
  border-color: rgba(255, 153, 15, .44);
  background:
    linear-gradient(145deg, rgba(48, 13, 2, .98), rgba(18, 4, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 232, 154, .055), 0 16px 38px rgba(0, 0, 0, .42);
}
.profile-hero {
  padding: 18px;
}
.profile-hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff7100, #ffd43c, transparent 92%);
}
.profile-hero:after,
.profile-stats-card:after,
.profile-learning-card:after {
  display: none;
}
.profile-main {
  gap: 14px;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 190, 42, .55);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffb000, #7c2600);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 22px rgba(255, 145, 0, .12);
}
.profile-name h2 {
  font-size: 24px;
}
.profile-trader {
  border-color: rgba(255, 179, 29, .36);
  border-radius: 8px;
  background: rgba(255, 169, 0, .09);
}
.profile-stats-card > h2,
.profile-learning-card .section-heading h2 {
  font-size: 19px;
}
.profile-stat {
  min-height: 100px;
  border-color: rgba(255, 145, 12, .3);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(50, 14, 2, .88), rgba(18, 5, 0, .96));
}
.profile-stat-icon {
  border: 1px solid rgba(255, 190, 42, .28);
  border-radius: 8px;
  background: rgba(255, 174, 0, .13);
  color: #ffd84b;
}
.profile-stat strong {
  color: #ffe979;
  font-size: 27px;
}
.profile-learning-metrics .education-stat {
  border-color: rgba(255, 145, 12, .28);
  border-radius: 11px;
  background: rgba(39, 10, 1, .78);
}
.profile-learning-achievements .education-achievement {
  border-color: rgba(255, 143, 10, .27);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(42, 11, 1, .9), rgba(17, 4, 0, .97));
}
@media (max-width: 380px) {
  .topbar {
    min-height: 62px;
    padding: 6px 64px;
  }
  .brand {
    min-height: 46px;
  }
  .brand::after {
    font-size: 22px;
    letter-spacing: .045em;
  }
  .header-language-wrap {
    right: 7px;
  }
  .header-language {
    min-width: 56px;
    min-height: 38px;
    padding: 6px 8px;
  }
  .hero-panel {
    min-height: 126px;
    padding: 18px 16px;
  }
  .metric.market-card {
    min-height: 126px;
    padding: 12px;
  }
  .metric.market-card:nth-child(2) {
    min-height: 106px;
    padding: 14px;
  }
}

/* Golden Gate product UI v4: market console and complete inner flow */
.topbar {
  min-height: 64px;
  padding: 7px;
}
.brand {
  padding: 0 64px;
}
.brand::after {
  overflow: visible;
  padding: 3px 8px 5px;
  color: #ffd84a;
  font-family: Inter, "Arial Black", Arial, sans-serif;
  font-size: clamp(23px, 6vw, 29px);
  font-style: normal;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .085em;
  background: linear-gradient(180deg, #fff8c3 0%, #ffe05a 38%, #ffae16 72%, #ff7900 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(83, 20, 0, .72)) drop-shadow(0 0 8px rgba(255, 167, 0, .2));
}
.hero-panel {
  min-height: 148px;
  padding: 22px 20px;
  background:
    linear-gradient(105deg, rgba(56, 14, 1, .99), rgba(23, 5, 0, .99) 62%, rgba(12, 3, 0, .99));
}
.hero-panel > div {
  max-width: 66%;
}
.hero-panel:after {
  inset: 24px 17px 22px auto;
  width: 138px;
  height: 82px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cg fill='none' stroke='%23ffc83d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 70L32 58L52 64L78 38L99 47L129 17L154 24'/%3E%3Cpath d='M139 17h-10v10'/%3E%3C/g%3E%3Cg stroke='%23ff8b1a' stroke-width='2'%3E%3Cpath d='M24 37v30M19 45h10v14H19zM65 27v39M60 35h10v19H60zM111 18v39M106 27h10v18h-10z' fill='%23ff9d18' fill-opacity='.28'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .34;
}
.hero-panel h1 {
  font-size: clamp(28px, 7.2vw, 35px);
}
.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.metric.market-card,
.metric.market-card:nth-child(2) {
  --market-accent: #ffc83d;
  --market-border: rgba(255, 200, 61, .55);
  --market-glow: rgba(255, 168, 0, .13);
  grid-column: 1;
  min-height: 104px;
  display: grid;
  gap: 4px;
  overflow: hidden;
  border-color: var(--market-border);
  border-radius: 15px;
  padding: 14px 48px 14px 72px;
  background:
    linear-gradient(112deg, var(--market-glow), transparent 46%),
    linear-gradient(145deg, rgba(42, 11, 1, .99), rgba(17, 4, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 235, 165, .045), 0 12px 30px rgba(0, 0, 0, .36);
}
.metric.market-card:nth-child(2) { order: -5; --market-accent: #ffd34d; --market-border: rgba(255, 202, 55, .72); --market-glow: rgba(255, 153, 0, .22); }
.metric.market-card:nth-child(3) { order: -4; --market-accent: #ff995c; --market-border: rgba(255, 125, 49, .48); --market-glow: rgba(255, 85, 19, .14); }
.metric.market-card:nth-child(4) { order: -3; --market-accent: #62e4a0; --market-border: rgba(62, 203, 137, .43); --market-glow: rgba(24, 184, 114, .12); }
.metric.market-card:nth-child(5) { order: -2; --market-accent: #bea2ff; --market-border: rgba(159, 122, 255, .46); --market-glow: rgba(126, 83, 255, .13); }
.metric.market-card:nth-child(1) { order: -1; --market-accent: #96abc0; --market-border: rgba(117, 143, 165, .38); --market-glow: rgba(83, 116, 143, .1); }
.market-card:before {
  content: "•";
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--market-border);
  border-radius: 12px;
  color: var(--market-accent);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.04em;
  background: var(--market-glow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(-50%);
}
.market-card:nth-child(1):before { content: "FX"; font-size: 13px; }
.market-card:nth-child(2):before { content: "24"; }
.market-card:nth-child(3):before { content: "◆"; }
.market-card:nth-child(4):before { content: "↗"; font-size: 22px; }
.market-card:nth-child(5):before { content: "₿"; font-size: 22px; }
.market-card:after {
  content: "›";
  top: 50%;
  right: 17px;
  bottom: auto;
  z-index: 2;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--market-accent);
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  background: none;
  clip-path: none;
  opacity: .82;
  transform: translateY(-52%);
}
.market-kicker {
  margin: 0 0 3px;
}
.market-kicker > span {
  color: var(--market-accent);
  opacity: .72;
}
.market-card .market-badge {
  border-color: var(--market-border);
  border-radius: 7px;
  background: var(--market-glow);
  color: var(--market-accent);
}
.market-card strong {
  min-height: 0;
  align-items: center;
  color: #fff8e9;
  font-size: 24px;
}
.market-card p {
  max-width: 310px;
  margin-top: 4px;
  color: #d5ae7f;
  font-size: 12px;
}
.metric.market-card:hover {
  border-color: var(--market-accent);
  box-shadow: 0 15px 34px rgba(0, 0, 0, .48), 0 0 24px var(--market-glow);
  transform: translateY(-1px);
}
.metric.market-card.disabled {
  border-color: rgba(113, 133, 150, .3);
  background: linear-gradient(145deg, rgba(27, 21, 18, .96), rgba(14, 9, 7, .99));
  box-shadow: none;
}
.market-card.disabled:after {
  content: "—";
  color: #71808c;
}
.card {
  border-radius: 16px;
  border-color: rgba(255, 150, 18, .38);
  background:
    linear-gradient(145deg, rgba(40, 11, 2, .98), rgba(16, 4, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 232, 154, .04), 0 16px 38px rgba(0, 0, 0, .4);
}
.pair-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 163, 24, .2);
}
.back-button {
  border-color: rgba(255, 170, 29, .34);
  border-radius: 10px;
  background: rgba(255, 167, 0, .075);
  color: #ffe28b;
}
.pair-search-input {
  min-height: 48px;
  border-color: rgba(255, 163, 24, .34);
  border-radius: 11px;
  background: rgba(13, 3, 0, .82);
}
.pair-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.pair-card {
  position: relative;
  min-height: 94px;
  overflow: hidden;
  border-color: rgba(255, 146, 16, .28);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(150deg, rgba(49, 13, 2, .92), rgba(16, 4, 0, .98));
}
.pair-card:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7300, #ffd049, transparent 86%);
}
.pair-name {
  color: #fff8e9;
  font-size: 14px;
}
.pair-payout {
  border-color: rgba(255, 199, 57, .32);
  border-radius: 7px;
  background: rgba(255, 179, 0, .12);
  color: #ffe16f;
}
.expiry-grid {
  gap: 11px;
}
.expiry-button {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-color: rgba(255, 151, 18, .36);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(55, 15, 2, .98), rgba(17, 4, 0, .99));
  box-shadow: inset 0 1px 0 rgba(255, 235, 160, .04), 0 12px 28px rgba(0, 0, 0, .32);
}
.expiry-button:after {
  content: "→";
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 196, 51, .4);
  font-size: 18px;
}
.expiry-button strong {
  color: #ffe26e;
  font-size: 31px;
}
.expiry-button span {
  color: #c89965;
}
.signal-loader-card:after {
  display: none;
}
.signal-loader-card {
  border-color: rgba(255, 177, 31, .48);
  background:
    linear-gradient(rgba(255, 178, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 178, 18, .035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(45, 12, 1, .99), rgba(10, 2, 0, .99));
  background-size: 26px 26px, 26px 26px, auto;
}
.signal-loader-status {
  border-radius: 9px;
  background: rgba(255, 178, 0, .11);
}
.signal-card {
  border-color: rgba(255, 176, 30, .48);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(49, 13, 2, .99), rgba(12, 3, 0, .99));
}
.signal-card:after {
  display: none;
}
.signal-card:before {
  width: 4px;
  background: linear-gradient(180deg, #ffe259, #ff7b00);
}
.signal-visual {
  border-color: rgba(255, 170, 25, .25);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 185, 33, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 185, 33, .045) 1px, transparent 1px),
    rgba(17, 4, 0, .62);
  background-size: 24px 24px;
}
.signal-meta-item {
  border-color: rgba(255, 159, 20, .25);
  border-radius: 11px;
  background: rgba(255, 171, 0, .065);
}
.active-preview-card {
  border-color: rgba(255, 170, 25, .4);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(47, 13, 2, .96), rgba(14, 3, 0, .99));
}
.profile-hero {
  padding: 22px 18px;
  background:
    linear-gradient(135deg, rgba(66, 18, 1, .98), rgba(23, 5, 0, .99) 68%);
}
.profile-main {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  padding: 6px 0;
  text-align: center;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  font-size: 32px;
}
.profile-name {
  justify-items: center;
}
.profile-name h2 {
  max-width: 100%;
  font-size: 27px;
}
.profile-trader {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 12px;
}
.profile-stats-card,
.profile-learning-card {
  padding: 18px;
}
.profile-stats-card > h2,
.profile-learning-card .section-heading h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 161, 22, .2);
}
.profile-stat {
  --profile-accent: #ffd34f;
  min-height: 108px;
  border-color: rgba(255, 157, 18, .28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(46, 12, 2, .94), rgba(16, 4, 0, .99));
}
.profile-stat:nth-child(2) { --profile-accent: #83c7ff; border-color: rgba(77, 158, 220, .28); }
.profile-stat:nth-child(3) { --profile-accent: #66e49f; border-color: rgba(50, 198, 126, .28); }
.profile-stat:nth-child(4) { --profile-accent: #c5a5ff; border-color: rgba(151, 111, 230, .3); }
.profile-stat-icon {
  color: var(--profile-accent);
}
.profile-stat strong {
  color: var(--profile-accent);
}
.education-stat,
.profile-learning-achievements .education-achievement {
  border-radius: 13px;
}
.bottom-nav {
  border-color: rgba(255, 164, 23, .46);
  background: rgba(20, 5, 0, .96);
  box-shadow: inset 0 1px 0 rgba(255, 229, 151, .055), 0 18px 48px rgba(0, 0, 0, .72);
}
@media (max-width: 380px) {
  .brand {
    padding: 0 58px;
  }
  .brand::after {
    padding-inline: 4px;
    font-size: 20px;
    letter-spacing: .065em;
  }
  .hero-panel > div {
    max-width: 72%;
  }
  .hero-panel:after {
    right: 10px;
    width: 112px;
    opacity: .24;
  }
  .metric.market-card,
  .metric.market-card:nth-child(2) {
    min-height: 100px;
    padding: 12px 43px 12px 65px;
  }
  .market-card:before {
    left: 12px;
    width: 38px;
    height: 38px;
  }
  .market-card:after {
    right: 13px;
  }
}
