/* =========================================================
   LUMA NEURAL — motor de sinais
   Tema roxo Luma Trader
   ========================================================= */

:root {
  --bg:         #07010f;
  --violet-deep: #4a0fb0;
  --violet:     #7c22ff;
  --violet-hi:  #a855ff;
  --magenta:    #e14bff;
  --lilac:      #d8b4ff;
  --muted:      rgba(216, 180, 255, .45);
  --line:       rgba(168, 85, 255, .16);
  --sunk:       rgba(0, 0, 0, .3);

  --buy:        #4ade80;
  --sell:       #f87171;

  --radius:     14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: #fff;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }
button, input, select { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(124, 34, 255, .28) 0%, transparent 62%),
    radial-gradient(70% 45% at 50% 108%, rgba(225, 75, 255, .12) 0%, transparent 60%);
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: min(36rem, 92vw);
  margin-inline: auto;
  padding: 2.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------- */

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.head__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.head__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(168, 85, 255, .28);
  background: radial-gradient(120% 120% at 30% 20%, rgba(124, 34, 255, .2), rgba(0, 0, 0, .35));
  box-shadow: inset 0 1px 0 rgba(216, 180, 255, .12);
}
.head__icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 6px rgba(20, 2, 50, .7));
}

.head__eyebrow {
  margin-bottom: .2rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-hi);
}

.head__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
}

.head__online {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, .3);
  background: rgba(74, 222, 128, .1);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--buy);
}
.head__online svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------
   Sair da conta (header)
   --------------------------------------------------------- */

.head__out {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .25);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.head__out svg { width: 14px; height: 14px; }
.head__out:hover {
  color: #fff;
  border-color: rgba(168, 85, 255, .45);
  background: rgba(124, 34, 255, .14);
}

/* ---------------------------------------------------------
   Métricas
   --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(124, 34, 255, .06);
}

.stat__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(124, 34, 255, .16);
  color: var(--violet-hi);
}
.stat__icon svg { width: 20px; height: 20px; }

.stat__label {
  margin-bottom: .15rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  color: var(--violet-hi);
}

/* ---------------------------------------------------------
   Console
   --------------------------------------------------------- */

.console {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}

.block { margin-bottom: 1.25rem; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.label {
  display: block;
  margin-bottom: .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint {
  margin-top: .5rem;
  font-size: .7rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- seletor de ativo ---------- */

.picker { position: relative; }

.picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem .95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--sunk);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.picker__trigger:hover:not(:disabled) {
  border-color: rgba(168, 85, 255, .45);
  background: rgba(124, 34, 255, .07);
}
.picker.is-open .picker__trigger,
.picker__trigger:focus-visible {
  outline: none;
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, .18);
}
.picker__trigger:disabled { opacity: .6; cursor: not-allowed; }

.picker__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }

.picker__name {
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker__meta {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.picker__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s;
}
.picker.is-open .picker__chevron { transform: rotate(180deg); }

.picker__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + .45rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .75rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 255, .28);
  background: #0c0418;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .6);
}

.picker__search { position: relative; }

.picker__search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.picker__input {
  width: 100%;
  padding: .72rem 2.2rem .72rem 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: .82rem;
}
.picker__input::placeholder { color: var(--muted); }
.picker__input::-webkit-search-cancel-button { display: none; }
.picker__input:focus {
  outline: none;
  border-color: rgba(168, 85, 255, .45);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, .12);
}

.picker__clear {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--lilac);
  cursor: pointer;
}
.picker__clear svg { width: 12px; height: 12px; }

.picker__tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.picker__tabs::-webkit-scrollbar { display: none; }

.picker__tab {
  flex-shrink: 0;
  padding: .38rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s;
}
.picker__tab:hover { color: #fff; border-color: rgba(168, 85, 255, .35); }
.picker__tab.is-active {
  color: #fff;
  border-color: rgba(168, 85, 255, .55);
  background: rgba(124, 34, 255, .2);
}

.picker__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-height: min(16rem, 42vh);
  overflow-y: auto;
  padding-right: .15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 255, .45) transparent;
}
.picker__list::-webkit-scrollbar { width: 6px; }
.picker__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(168, 85, 255, .45);
}

.picker__option {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .62rem .7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.picker__option:hover {
  background: rgba(124, 34, 255, .1);
  border-color: rgba(168, 85, 255, .2);
}
.picker__option.is-selected {
  background: rgba(124, 34, 255, .16);
  border-color: rgba(168, 85, 255, .38);
}

.picker__opt-text { display: flex; flex-direction: column; gap: .08rem; min-width: 0; flex: 1; }

.picker__opt-name {
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker__opt-meta {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.picker__check { width: 16px; height: 16px; flex-shrink: 0; color: var(--violet-hi); }

.picker__empty {
  padding: 1rem .5rem;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

/* ---------- timeframe ---------- */

.tfs { display: flex; gap: .5rem; }

.tf {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--sunk);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.tf:hover:not(:disabled) { border-color: rgba(168, 85, 255, .4); color: #fff; }
.tf.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet-hi), var(--violet));
  color: #fff;
}
.tf:disabled { opacity: .5; cursor: not-allowed; }

.engine {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 255, .3);
  background: rgba(124, 34, 255, .12);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet-hi);
}
.engine svg { width: 14px; height: 14px; }

/* ---------- sinal ---------- */

.signal-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.signal svg { width: 16px; height: 16px; }

.signal[data-state="buy"] {
  color: var(--buy);
  border-color: rgba(74, 222, 128, .35);
  background: rgba(74, 222, 128, .1);
}
.signal[data-state="sell"] {
  color: var(--sell);
  border-color: rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .1);
}

/* ---------- probabilidades ---------- */

.probs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.prob {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--sunk);
  transition: border-color .3s, background .3s;
}
.prob--buy.is-active  { border-color: rgba(74, 222, 128, .4);  background: rgba(74, 222, 128, .06); }
.prob--sell.is-active { border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .06); }

.prob__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.prob__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prob--buy  .prob__label { color: var(--buy); }
.prob--sell .prob__label { color: var(--sell); }

.prob__pct { font-size: 1.5rem; font-weight: 800; font-style: italic; }
.prob--buy  .prob__pct { color: var(--buy); }
.prob--sell .prob__pct { color: var(--sell); }

.prob__track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.prob__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.prob--buy  .prob__fill { background: linear-gradient(90deg, #22c55e, var(--buy)); }
.prob--sell .prob__fill { background: linear-gradient(90deg, #ef4444, var(--sell)); }

/* ---------- meta ---------- */

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.meta__cell {
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .2);
  text-align: center;
}

.meta__label {
  margin-bottom: .35rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__value { font-size: 1rem; font-weight: 700; }
.meta__value--ok { color: var(--violet-hi); }

/* ---------- confiança ---------- */

.conf { margin-bottom: 1.25rem; }

.conf__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.conf__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.conf__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- estratégia ---------- */

.select-wrap { position: relative; }

.select {
  width: 100%;
  appearance: none;
  padding: .85rem 2.5rem .85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--sunk);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s;
}
.select:focus {
  outline: none;
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, .18);
}
.select:disabled { opacity: .6; cursor: not-allowed; }
.select option { background: #0c0418; color: #fff; }

.select__icon {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- botão ---------- */

.run {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet-hi), var(--violet));
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(124, 34, 255, .35);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.run svg { width: 20px; height: 20px; }
.run:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 34, 255, .45);
}
.run:disabled { opacity: .65; cursor: not-allowed; }

/* ---------------------------------------------------------
   Rodapé
   --------------------------------------------------------- */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}

.foot__sign {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(216, 180, 255, .3);
}

/* ---------------------------------------------------------
   Responsivo / acessibilidade
   --------------------------------------------------------- */



:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------
   Aviso de indisponibilidade
   --------------------------------------------------------- */

.banner {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .08);
  font-size: .8rem;
  color: #ffd7d7;
}
.banner svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--sell); }

/* payout no seletor de ativo */
.picker__payout {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  color: var(--violet-hi);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   Overlay de análise
   --------------------------------------------------------- */

.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(70% 50% at 50% 42%, rgba(60, 12, 130, .5), transparent 70%),
    rgba(3, 0, 8, .95);
  animation: fade .3s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* rede neural ao fundo */
.loading__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.loading__panel {
  position: relative;
  width: 100%;
  max-width: 24rem;
  max-height: 92svh;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: none;
}
.loading__panel::-webkit-scrollbar { display: none; }

/* ---------- núcleo: cérebro + anel de progresso ---------- */

.loading__core {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto .9rem;
  display: grid;
  place-items: center;
}

.loading__gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loading__gauge-track {
  fill: none;
  stroke: rgba(168, 85, 255, .12);
  stroke-width: 4;
}

.loading__gauge-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  filter: drop-shadow(0 0 6px rgba(225, 75, 255, .8));
  transition: stroke-dashoffset .2s linear;
}

/* dois satélites girando em sentidos opostos */
.loading__orbit {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(168, 85, 255, .55);
  animation: spin 2.6s linear infinite;
}
.loading__orbit--rev {
  inset: 24px;
  border-top-color: transparent;
  border-bottom-color: rgba(225, 75, 255, .45);
  animation: spin 1.9s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading__icon {
  position: relative;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(168, 85, 255, .75)) drop-shadow(0 3px 6px rgba(20, 2, 50, .8));
  animation: brain-pulse 2s ease-in-out infinite;
}

@keyframes brain-pulse {
  0%, 100% { transform: scale(1);    opacity: .88; }
  50%      { transform: scale(1.09); opacity: 1; }
}

.loading__pct {
  font-size: 2.1rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(168, 85, 255, .7);
}
.loading__pct small { font-size: .45em; opacity: .55; margin-left: .05em; }

.loading__title {
  margin-top: .3rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--violet-hi), var(--magenta), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loading__sub {
  margin: .35rem 0 1.15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- etapas ---------- */

.loading__steps {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: left;
}

.loading__step {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .02);
  opacity: .45;
  transition: opacity .3s, border-color .3s, background .3s;
}
.loading__step.is-active {
  opacity: 1;
  border-color: rgba(168, 85, 255, .35);
  background: rgba(124, 34, 255, .09);
}
.loading__step.is-done { opacity: .85; }

/* marcador: vazio -> pulsando -> check */
.loading__step-dot {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(216, 180, 255, .25);
  transition: all .3s;
}
.loading__step.is-active .loading__step-dot {
  border-color: var(--magenta);
  animation: dot-pulse 1.2s ease-out infinite;
}
.loading__step.is-done .loading__step-dot {
  border-color: var(--buy);
  background: rgba(74, 222, 128, .15);
  animation: none;
  box-shadow: none;
}
.loading__step.is-done .loading__step-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--buy);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225, 75, 255, .45); }
  100% { box-shadow: 0 0 0 7px rgba(225, 75, 255, 0); }
}

.loading__step-body { flex: 1; min-width: 0; }

.loading__step-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.loading__step-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.loading__step-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  box-shadow: 0 0 8px rgba(225, 75, 255, .7);
}

/* ---------- matriz de volatilidade ---------- */

.loading__market {
  margin-top: .6rem;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 255, .18);
  background: rgba(124, 34, 255, .06);
  animation: fade .4s ease;
}

.loading__market-title {
  margin-bottom: .5rem;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.loading__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .4);
}

.loading__bar {
  flex: 1;
  border-radius: 3px;
  transform-origin: bottom;
  animation: grow .45s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* ---------------------------------------------------------
   Responsivo
   --------------------------------------------------------- */




/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 620px) {
  .page {
    padding: 1.6rem 0 2.5rem;
    gap: 1.4rem;
  }

  /* --- cabeçalho: marca em cima, carteira na linha inteira --- */

  /* sem a carteira, marca e "sair" cabem na mesma linha */
  .head { align-items: center; gap: .75rem; }
  .head__out { padding: .5rem; }
  .head__out span { display: none; }

  .head__brand { gap: .8rem; }

  .head__icon { width: 46px; height: 46px; border-radius: 12px; }
  .head__icon svg { width: 25px; height: 25px; }

  .head__eyebrow { font-size: .58rem; letter-spacing: .1em; }
  .head__title { font-size: 1.65rem; }

  /* --- métricas --- */

  .stats { grid-template-columns: 1fr; gap: .6rem; }
  .stat { padding: .8rem .9rem; gap: .65rem; }
  .stat__icon { width: 34px; height: 34px; border-radius: 9px; }
  .stat__icon svg { width: 17px; height: 17px; }
  .stat__value { font-size: 1.2rem; }

  /* --- console --- */

  .console { padding: 1.15rem; }
  .block { margin-bottom: 1.1rem; }

  /*
   * Os timeframes vêm da corretora e a quantidade varia por ativo, então a
   * linha não pode depender de um número fixo: o grid divide o espaço e
   * quebra sozinho quando não couber.
   */
  .row {
    flex-direction: column;
    /* o `wrap` do desktop, virado em coluna, empilha os itens em colunas e
       estica cada um na altura — aqui a linha é sempre única */
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .6rem;
    margin-bottom: 1.1rem;
  }

  .tfs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.2rem, 1fr));
    gap: .4rem;
  }
  .tf { padding: .55rem .25rem; font-size: .78rem; }

  .engine { align-self: flex-start; }

  /* --- leitura --- */

  .signal-wrap { margin-bottom: 1.1rem; }

  .probs { gap: .5rem; margin-bottom: 1.1rem; }
  .prob { padding: .8rem .85rem; }
  .prob__pct { font-size: 1.3rem; }

  /* label e valor lado a lado: em duas colunas "Horário de entrada" quebrava */
  .meta {
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-bottom: 1.1rem;
  }
  .meta__cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .9rem;
    text-align: left;
  }
  .meta__label { margin-bottom: 0; }

  .conf { margin-bottom: 1.1rem; }

  .picker__list { max-height: 46vh; }

  /* --- overlay --- */

  .loading__core { width: 112px; height: 112px; }
  .loading__icon { width: 44px; height: 44px; }
  .loading__pct { font-size: 1.8rem; }
  .loading__sub { margin-bottom: 1rem; }
  .loading__step { padding: .5rem .6rem; }
  .loading__step-label { font-size: .65rem; }
}

/* 375px (iPhone padrão) ainda comporta Compra e Venda lado a lado, e é assim
   que eles devem ser lidos — um contra o outro. Só abaixo disso empilha. */
@media (max-width: 359px) {
  .head__title { font-size: 1.45rem; }
  .head__eyebrow { font-size: .54rem; }

  .probs { grid-template-columns: 1fr; }

  .console { padding: 1rem; }
  .signal { font-size: .72rem; padding: .6rem .9rem; }
}

/* ---------------------------------------------------------
   Tela de login
   --------------------------------------------------------- */

.gate {
  position: relative;
  z-index: 1;
  width: min(25rem, 92vw);
  margin-inline: auto;
  padding: clamp(2.5rem, 9vh, 5rem) 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gate__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}
.gate__head .head__icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  margin-bottom: .8rem;
}
.gate__head .head__icon svg { width: 52px; height: 52px; }

.gate__sub {
  margin-top: .5rem;
  max-width: 30ch;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}

.gate__card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}
.gate__card .label { margin-bottom: 0; }

.gate__input {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--sunk);
  color: #fff;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.gate__input::placeholder { color: var(--muted); }
.gate__input:focus {
  outline: none;
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, .18);
}
.gate__input:disabled { opacity: .6; }

.gate__error {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .7rem .85rem;
  border-radius: 9px;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .08);
  font-size: .78rem;
  line-height: 1.45;
  color: #ffd7d7;
}
.gate__error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; color: var(--sell); }

.gate__card .run { margin-top: .25rem; }

/* ---------- bloco de cadastro ---------- */

.gate__signup {
  padding: 1.15rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px dashed rgba(168, 85, 255, .3);
  background: rgba(124, 34, 255, .05);
  text-align: center;
  transition: border-color .3s, background .3s;
}
.gate__signup.is-strong {
  border-style: solid;
  border-color: rgba(168, 85, 255, .55);
  background: rgba(124, 34, 255, .12);
}

.gate__signup-title {
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
}

.gate__signup-text {
  margin: .35rem 0 .9rem;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
}

.gate__signup-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 255, .45);
  background: rgba(124, 34, 255, .16);
  color: var(--lilac);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.gate__signup-btn svg { width: 14px; height: 14px; }
.gate__signup-btn:hover { color: #fff; background: rgba(124, 34, 255, .3); }

.gate__signup.is-strong .gate__signup-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet-hi), var(--violet));
}

.gate__note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .7rem;
  line-height: 1.5;
  color: var(--muted);
}
.gate__note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .15rem; color: var(--violet-hi); }

.gate .foot { margin-top: .5rem; }

@media (max-width: 620px) {
  .gate { padding: 2rem 0 2.5rem; gap: 1.25rem; }
  .gate__card { padding: 1.25rem; }
  .gate__signup { padding: 1rem; }
  .gate__head .head__icon { width: 68px; height: 68px; border-radius: 20px; }
  .gate__head .head__icon svg { width: 46px; height: 46px; }
}
