*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0b0f;
  --bg-card: rgba(18, 20, 28, 0.78);
  --bg-card-hover: rgba(24, 27, 38, 0.88);
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 168, 83, 0.25);
  --text: #f0f2f8;
  --text-muted: #8b92a8;
  --gold: #d4a853;
  --gold-light: #e8c468;
  --gold-dim: #8b6914;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #a855f7;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --max-w: 420px;
  --dock-h: 64px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.5) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.55), rgba(34, 197, 94, 0.4));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(232, 196, 104, 0.75), rgba(74, 222, 128, 0.55));
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/bg-mobile.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.55;
}

@media (min-width: 768px) {
  .bg-photo {
    background-image: url("assets/bg-desktop.png");
    background-position: center center;
    opacity: 0.45;
  }
}

.bg-scroll-dark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 15, 0.15) 0%,
    rgba(10, 11, 15, 0.55) 45%,
    rgba(10, 11, 15, 0.94) 100%
  );
  opacity: 0.35;
  transition: opacity 0.12s ease-out;
}

.bg-neon {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 45% at 50% 15%, rgba(34, 197, 94, 0.14), transparent 65%),
    radial-gradient(ellipse 55% 35% at 85% 70%, rgba(34, 197, 94, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 50%, rgba(212, 168, 83, 0.06), transparent 55%);
  animation: neonPulse 7s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.glitter-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glitter {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: var(--opacity);
  background: rgba(74, 222, 128, 0.85);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
  animation: glitterFall var(--dur) var(--delay) linear infinite;
}

@keyframes glitterFall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  8% { opacity: var(--opacity); }
  92% { opacity: calc(var(--opacity) * 0.4); }
  100% { transform: translateY(105vh) translateX(12px); opacity: 0; }
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-inline: 20px;
}

.page-wrap--chat {
  max-width: var(--max-w);
  height: 100dvh;
  overflow: hidden;
}

.header,
.main,
.footer,
.subheader,
.panel {
  width: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 168, 83, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 130, 246, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(168, 85, 247, 0.05), transparent);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.brand__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(212, 168, 83, 0.3));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.user-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.user-brand__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.user-brand__text small {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.user-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 168, 83, 0.45);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-avatar:hover {
  border-color: var(--gold-light);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.25);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar__edit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 11, 15, 0.55);
  opacity: 0;
  transition: opacity 0.2s;
}

.user-avatar__edit svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

.user-avatar:hover .user-avatar__edit {
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__logout {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.header__logout:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  flex-shrink: 0;
}

.badge-live--sm {
  padding: 4px 8px;
  font-size: 0.62rem;
}

.badge-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.main {
  flex: 1;
  padding-bottom: 24px;
}

.hero {
  padding: 8px 0 28px;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36ch;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card--aulas::before { background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 60%); }
.card--tools::before { background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent 60%); }
.card--signals::before { background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent 60%); }

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  outline: none;
}

.card:hover::before,
.card:focus-visible::before { opacity: 1; }

.card:active { transform: translateY(0); }

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.card__icon svg { width: 24px; height: 24px; }

.card--aulas .card__icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.card--tools .card__icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.card--signals .card__icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.card--telegram::before { background: linear-gradient(135deg, rgba(41, 168, 222, 0.1), transparent 60%); }
.card--telegram .card__icon { background: rgba(41, 168, 222, 0.15); color: #29a8de; }

.card--youtube::before { background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent 60%); }
.card--youtube .card__icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.card--leverage::before { background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), transparent 60%); }
.card--leverage .card__icon { background: rgba(212, 168, 83, 0.18); color: var(--gold-light); }

.card--sorteios::before { background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), transparent 60%); }
.card--sorteios .card__icon { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

a.card { text-decoration: none; color: inherit; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card__body strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.card__body span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 44px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
  border-radius: 6px;
}

.card__arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.card:hover .card__arrow {
  transform: translateX(3px);
  opacity: 1;
  color: var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat { text-align: center; padding: 4px 0; }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.stat span {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer {
  padding-top: 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
}

.footer p { font-size: 0.72rem; color: var(--text-muted); }

.footer__disclaimer {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.65rem !important;
}

/* Sub-pages */
.subheader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.subheader__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  font: inherit;
  padding: 0;
}

.subheader__back:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.subheader__back svg { width: 20px; height: 20px; }

.subheader__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.subheader__title strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.subheader__title span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel {
  flex: 1;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Aulas */
.lesson-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.lesson-card:hover { border-color: var(--border-gold); }

.lesson-card--locked { opacity: 0.88; }

.lesson-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lesson-card__level {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 600;
}

.lesson-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.lesson-card__tag--pro {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-light);
}

.lesson-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.lesson-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lesson-card__btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.lesson-card__btn:hover { background: rgba(212, 168, 83, 0.16); }

/* Ferramentas */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.tool-card__icon { font-size: 1.4rem; margin-bottom: 2px; }

.tool-card strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.tool-card span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.tool-panel {
  animation: fadeSlide 0.35s ease;
}

.tool-panel[hidden] {
  display: none !important;
}

#tools-panels:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.calc-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.calc-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.calc-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.calc-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.field input:focus {
  outline: none;
  border-color: var(--border-gold);
}

.calc-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.calc-result small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.calc-result strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
}

.calc-result--3 {
  grid-template-columns: repeat(3, 1fr);
}

.calc-result--1 {
  grid-template-columns: 1fr;
}

.calc-fields--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.mg-table-wrap {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.mg-table th,
.mg-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mg-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mg-table tr:last-child td {
  border-bottom: none;
}

.mg-row--danger td {
  color: var(--red);
}

.btn-tool {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-tool:hover:not(:disabled) {
  border-color: var(--border-gold);
  background: rgba(212, 168, 83, 0.08);
}

.btn-tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-tool--primary {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.btn-tool--primary:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.2);
}

/* Análise I.A */
.calc-card--ai {
  border-color: rgba(34, 197, 94, 0.15);
}

.ai-upload {
  position: relative;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(212, 168, 83, 0.3);
  background: rgba(0, 0, 0, 0.2);
  min-height: 180px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ai-upload:hover {
  border-color: rgba(212, 168, 83, 0.5);
}

.ai-upload__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.82rem;
}

.ai-upload__empty svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.7;
}

.ai-upload__preview {
  position: relative;
  width: 100%;
  min-height: 180px;
}

.ai-upload__preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #0c0d12;
}

.ai-scan {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 15, 0.55);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.ai-scan[hidden] {
  display: none !important;
}

.ai-scan.ai-scan--active {
  display: flex;
}

.ai-scan__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.9), transparent);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: none;
}

.ai-scan--active .ai-scan__line {
  animation: aiScanLine 2s ease-in-out infinite;
}

@keyframes aiScanLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.ai-scan__label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: none;
}

.ai-scan--active .ai-scan__label {
  animation: aiLabelPulse 1.2s ease-in-out infinite;
}

@keyframes aiLabelPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.ai-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ai-actions .btn-tool {
  flex: 1;
}

.ai-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  animation: fadeSlide 0.5s ease;
  display: block;
}

.ai-result[hidden] {
  display: none !important;
}

.ai-result__dir {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.ai-result__dir--compra {
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: aiDirPulseGreen 2s ease-in-out infinite;
}

.ai-result__dir--venda {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: aiDirPulseRed 2s ease-in-out infinite;
}

.ai-result__dir--alta {
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: aiDirPulseGreen 2s ease-in-out infinite;
}

.ai-result__dir--baixa {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: aiDirPulseRed 2s ease-in-out infinite;
}

@keyframes aiDirPulseGreen {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.25); }
}

@keyframes aiDirPulseRed {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }
}

.ai-result__arrow {
  font-size: 1.2rem;
}

.ai-result__label {
  font-size: 1.6rem;
}

.ai-result__m1 {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 6px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--gold-light);
  vertical-align: middle;
}

.ai-result__pattern {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ai-result__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ai-result__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin-bottom: 10px;
}

.ai-result__tags li {
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--gold-light);
}

.ai-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.ai-result__disclaimer {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  opacity: 0.8;
}

/* Sinais */
.signals-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip--active,
.chip:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: rgba(212, 168, 83, 0.08);
}

.signals-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  animation: signalIn 0.35s ease;
}

@keyframes signalIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.signal--call { border-left: 3px solid var(--green); }
.signal--put { border-left: 3px solid var(--red); }

.signal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.signal__dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.signal--call .signal__dir { color: var(--green); }
.signal--put .signal__dir { color: var(--red); }

.signal__head time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.signal__asset {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.signal__meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Dock */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max-w));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  background: rgba(10, 11, 15, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
}

.dock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.dock__btn svg { width: 20px; height: 20px; }

.dock__btn--active,
.dock__btn:hover {
  color: var(--gold-light);
  background: rgba(212, 168, 83, 0.08);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--dock-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 12px 20px;
  background: rgba(18, 20, 28, 0.96);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 480px) {
  :root { --max-w: 440px; }
  .hero { padding-bottom: 32px; }
  .card { padding: 18px 20px; }
}

@media (min-width: 768px) {
  :root { --max-w: 520px; }

  .page--home .page-wrap {
    justify-content: center;
    padding: 24px 20px;
  }

  .header { padding-top: 8px; }

  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  :root { --max-w: 560px; }
}

/* ── Partículas & animações LP ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.35);
  animation: floatUp var(--d) var(--delay) linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.brand__icon--pulse {
  animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(212, 168, 83, 0.3)); }
  50% { filter: drop-shadow(0 4px 16px rgba(212, 168, 83, 0.55)); }
}

.hero--animated .hero__eyebrow { animation: fadeSlide 0.6s ease both; }
.hero--animated .hero__title { animation: fadeSlide 0.7s 0.1s ease both; }
.hero--animated .hero__lead { animation: fadeSlide 0.7s 0.2s ease both; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card--float {
  animation: cardIn 0.55s calc(var(--i) * 0.1s + 0.15s) ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card__icon--glow {
  animation: iconGlow 2.5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 168, 83, 0); }
  50% { box-shadow: 0 0 18px rgba(212, 168, 83, 0.15); }
}

.card__badge--pulse { animation: badgePulse 2s ease-in-out infinite; }

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.stats--glow {
  animation: fadeSlide 0.8s 0.4s ease both;
  border-color: rgba(212, 168, 83, 0.12);
}

/* Social links removidos — Telegram/YouTube usam .card na home */

.footer__risk {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.04);
  text-align: left;
}

.footer__risk strong {
  display: block;
  font-size: 0.72rem;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer__risk p {
  font-size: 0.68rem !important;
  line-height: 1.5;
  opacity: 0.85;
}

/* Aulas — vídeo embed */
.lesson-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
}

.lesson-card--pending { opacity: 0.92; }

.lesson-card__tag--pending {
  background: rgba(212, 168, 83, 0.15) !important;
  color: var(--gold-light) !important;
}

.lesson-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 10px 0 0;
  border: 1px solid var(--border);
  background: #0c0d12;
}

.lesson-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer--compact {
  padding-top: 12px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.lesson-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  margin: 10px 0 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(212, 168, 83, 0.25);
  background: rgba(212, 168, 83, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.lesson-pending svg { width: 32px; height: 32px; color: var(--gold); animation: spin 4s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.lesson-card__btn { display: none; }

.tool-card__icon svg { width: 22px; height: 22px; color: var(--gold-light); }

/* ── Chat Sinais ── */
.view--chat { max-width: var(--max-w); padding-bottom: calc(var(--dock-h) + 8px); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.chat-header__ai {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
  animation: avatarPulse 2s ease-in-out infinite;
}

.chat-avatar svg { width: 22px; height: 22px; color: var(--gold-light); }

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
}

.chat-header__ai strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.chat-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--green);
}

.chat-online {
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.chat-online__count {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  transition: transform 0.3s;
}

.chat-online__count--tick { transform: scale(1.12); }

.chat-online__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.chat-feed-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  min-height: 0;
}

.chat-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(100dvh - 130px);
  scroll-behavior: smooth;
  padding-bottom: 16px;
}

.chat-msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  animation: msgIn 0.4s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.chat-msg__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-msg__text {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.chat-msg__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-msg time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.chat-msg--prepare {
  border-left: 3px solid #eab308;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.08), transparent);
}

.chat-msg--confirm {
  border-left: 3px solid var(--blue);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
}

.chat-msg--call {
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), transparent);
}

.chat-msg--call .chat-msg__text { color: #4ade80; }

.chat-msg--put {
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), transparent);
}

.chat-msg--put .chat-msg__text { color: #f87171; }

.chat-msg--system {
  border-style: dashed;
  opacity: 0.85;
  font-size: 0.82rem;
}

.chat-msg--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-msg--link:hover {
  transform: translateY(-1px);
}

.chat-msg--pulse {
  animation: msgIn 0.4s ease, msgPulse 2.2s ease-in-out infinite;
}

@keyframes msgPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    border-color: var(--border);
  }
  50% {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.35);
  }
}

.chat-msg--put.chat-msg--pulse {
  animation: msgIn 0.4s ease, msgPulsePut 2.2s ease-in-out infinite;
}

@keyframes msgPulsePut {
  0%, 100% {
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    border-color: var(--border);
  }
  50% {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.35);
  }
}

.chat-msg__action {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.chat-msg--put .chat-msg__action {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.chat-msg__action:hover {
  background: rgba(34, 197, 94, 0.22);
}

.pair-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pair-icon img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  position: absolute;
}

.pair-icon img:first-child { top: 0; left: 0; z-index: 2; }
.pair-icon img:last-child { bottom: 0; right: 0; z-index: 1; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  font-size: 0.78rem;
  color: var(--gold-light);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Auth — Login / Cadastro */
.page--auth .bg-neon,
.page--auth .bg-glow {
  display: none;
}

.page--auth .glitter {
  background: rgba(212, 168, 83, 0.75);
  box-shadow: 0 0 5px rgba(212, 168, 83, 0.35);
}

.page-wrap--auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.auth-card__brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-card__logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 12px;
}

.auth-card__icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.auth-card__brand h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.auth-card__brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  color: #0a0b0f;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-auth:hover {
  opacity: 0.92;
}

.auth-error {
  font-size: 0.78rem;
  color: var(--red);
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-error[hidden] {
  display: none !important;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-test-hint {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.22);
}

.auth-test-hint strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Share gate — libera cadastro após WhatsApp */
.share-gate {
  text-align: center;
  margin-bottom: 8px;
}

.share-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.share-gate__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.share-gate__lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.share-gate__lead strong {
  color: var(--gold-light);
}

.share-gate__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.share-gate__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, var(--gold-light));
  transition: width 0.35s ease;
}

.share-gate__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.share-gate__count strong {
  color: var(--gold-light);
}

.share-gate__status {
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  min-height: 1.2em;
}

.share-gate__hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 12px;
  opacity: 0.85;
}

.share-gate__unlocked {
  font-size: 0.82rem;
  color: #25d366;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 600;
}

.btn-share-wa {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2ee06a, #25d366);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: opacity 0.15s, transform 0.15s;
}

.btn-share-wa:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-card--wide {
  max-width: 420px;
}

.etapa-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.etapa-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.etapa-step--done {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
}

.etapa-step--active {
  border-color: var(--border-gold);
  background: rgba(212, 168, 83, 0.08);
}

.etapa-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.etapa-step--done .etapa-step__num {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.etapa-step--active .etapa-step__num {
  background: rgba(212, 168, 83, 0.25);
  color: var(--gold-light);
}

.etapa-step strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.etapa-step small {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.etapa-step small strong {
  display: inline;
  color: var(--gold-light);
  font-size: inherit;
}

.share-gate--etapa2 {
  margin-bottom: 0;
}

.share-gate__waiting {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 14px;
  text-align: center;
}

.share-gate__status--ok {
  color: #25d366 !important;
}

.share-preview {
  margin-bottom: 14px;
  text-align: left;
}

.share-preview__label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.share-preview__msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(240, 242, 248, 0.9);
  white-space: pre-wrap;
}

.share-gate--etapa2 .btn-auth {
  margin-top: 12px;
}

/* Alavancagem */
.lev-intro {
  padding: 4px 0 8px;
}

.lev-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lev-intro__lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.lev-intro__lead strong {
  color: var(--gold-light);
}

.lev-section {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lev-section__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.lev-section__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.lev-modality {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 10px;
}

.lev-modality:last-child {
  margin-bottom: 0;
}

.lev-modality__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lev-modality__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(212, 168, 83, 0.2);
  color: var(--gold-light);
}

.lev-modality strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.lev-modality p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lev-modality p strong {
  display: inline;
  color: rgba(240, 242, 248, 0.92);
}

.lev-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lev-plan {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.lev-plan--featured {
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.06);
}

.lev-plan__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin-bottom: 8px;
}

.lev-plan__tag--gold {
  background: rgba(212, 168, 83, 0.18);
  color: var(--gold-light);
}

.lev-plan__meta {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.lev-plan__details {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lev-plan__details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lev-plan__details li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lev-plan__details span {
  color: var(--text-muted);
}

.lev-plan__details strong {
  color: var(--gold-light);
  font-size: 0.82rem;
  text-align: right;
}

.btn-contract-wa {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2ee06a, #25d366);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-contract-wa:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lev-risk {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
}

.lev-risk strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fca5a5;
  margin-bottom: 8px;
}

.lev-risk p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.lev-risk p:last-child {
  margin-bottom: 0;
}

.lev-risk p strong {
  display: inline;
  color: rgba(252, 165, 165, 0.95);
}

/* Sorteios */
.sorteios-hero {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sorteios-hero__icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.sorteios-hero h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.sorteios-hero p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sorteios-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.sorteios-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  margin-bottom: 10px;
}

.sorteios-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.sorteios-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-sorteios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(41, 168, 222, 0.4);
  background: rgba(41, 168, 222, 0.12);
  color: #29a8de;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-sorteios:hover {
  background: rgba(41, 168, 222, 0.2);
}
