/*
  Rastreon V20.2 — Hotfix Mobile CTA
  Corrige o mobile da landing para exibir Entrar + Solicitar acesso beta.
  Não altera login, cadastro, beta, área de membros, tema claro/escuro ou paleta.
*/

:root {
  --r202-bg: #000000;
  --r202-card: rgba(9, 10, 5, .86);
  --r202-line: rgba(255, 229, 0, .22);
  --r202-line-strong: rgba(255, 229, 0, .46);
  --r202-yellow: #ffe500;
  --r202-yellow-2: #fff36a;
  --r202-text: #f9f8ed;
  --r202-muted: rgba(249, 248, 237, .70);
  --r202-radius: 999px;
  --r202-safe-top: env(safe-area-inset-top, 0px);
}

/* Desktop: não interfere. */
.rastreon-v202-mobile-cta,
.rastreon-v202-hero-login {
  display: none;
}

@media (max-width: 880px) {
  html, body {
    overflow-x: hidden;
  }

  body.rastreon-v202-has-mobile-cta {
    padding-top: calc(76px + var(--r202-safe-top));
  }

  .rastreon-v202-mobile-cta {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147482500;
    display: block;
    padding: calc(9px + var(--r202-safe-top)) 12px 10px;
    background:
      radial-gradient(circle at 18% -20%, rgba(255, 229, 0, .18), transparent 36%),
      linear-gradient(180deg, rgba(0, 0, 0, .98), rgba(0, 0, 0, .86));
    border-bottom: 1px solid rgba(255, 229, 0, .11);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 14px 46px rgba(0, 0, 0, .36);
  }

  .rastreon-v202-mobile-cta-inner {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 9px;
    align-items: center;
  }

  .rastreon-v202-login,
  .rastreon-v202-beta,
  .rastreon-v202-hero-login {
    min-height: 46px;
    border-radius: var(--r202-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .rastreon-v202-login {
    color: var(--r202-text) !important;
    border: 1px solid var(--r202-line-strong);
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .045) inset;
  }

  .rastreon-v202-beta {
    color: #050500 !important;
    border: 1px solid rgba(255, 229, 0, .92);
    background: linear-gradient(135deg, var(--r202-yellow), var(--r202-yellow-2));
    box-shadow: 0 14px 34px rgba(255, 229, 0, .22), 0 0 0 1px rgba(255,255,255,.48) inset;
  }

  .rastreon-v202-login:active,
  .rastreon-v202-beta:active,
  .rastreon-v202-hero-login:active {
    transform: scale(.985);
  }

  .rastreon-v202-login::before {
    content: "↪";
    font-size: 15px;
    color: var(--r202-yellow);
  }

  .rastreon-v202-beta::after {
    content: "→";
    font-size: 16px;
  }

  .rastreon-v202-hero-login {
    display: inline-flex !important;
    color: var(--r202-text) !important;
    border: 1px solid var(--r202-line-strong);
    background: rgba(255, 255, 255, .06);
    padding: 0 18px;
    margin-right: 8px;
  }

  /* Quando o botão Entrar original existe mas foi ocultado no mobile, tenta reexibir sem quebrar o layout. */
  a[href*="login"],
  a[href*="entrar"] {
    visibility: visible;
  }
}

@media (max-width: 370px) {
  .rastreon-v202-mobile-cta-inner {
    grid-template-columns: 1fr;
  }

  body.rastreon-v202-has-mobile-cta {
    padding-top: calc(128px + var(--r202-safe-top));
  }
}
