/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Variáveis (LESS.IO brand kit) ===== */
:root {
  --bg: #0A0A0A;
  --neon: #39FF14;
  --royal: #1A3A8F;
  --cyan: #00BCD4;
  --text: #FFFFFF;
  --text-secondary: #B0B0B0;

  --surface: #121212;
  --surface-2: #181818;
  --border: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(57, 255, 20, 0.5);

  --font: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 12px;
  --maxw: 720px;
}

/* ===== Base ===== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand__check {
  color: var(--neon);
  margin-right: 4px;
}

.brand__name {
  color: var(--text);
}

.brand__io {
  color: var(--neon);
}

.brand__sub {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== Main ===== */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 24px 0 40px;
}

.hero__title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--cta {
  background: var(--neon);
  color: #000000;
  animation: neonPulse 2.4s ease-in-out infinite;
}

.btn--cta:hover {
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-neon);
}

.btn--ghost:hover {
  background: rgba(57, 255, 20, 0.08);
}

.btn--loading {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45);
  }
  50% {
    box-shadow: 0 0 22px 4px rgba(57, 255, 20, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--cta {
    animation: none;
  }
}

/* ===== Lista de produtos ===== */
.products {
  margin-top: 16px;
}

.products__heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.products__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
}

.product__info {
  min-width: 0;
}

.product__topo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.product__title {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}

/* ===== Badge de status ===== */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--ativo {
  color: #0A0A0A;
  background: var(--neon);
}

.badge--alerta {
  color: #0A0A0A;
  background: #FFD600;
}

.product__url {
  display: block;
  color: var(--cyan);
  font-size: 0.82rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.product__meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 6px;
}

.product__target {
  color: var(--neon);
  font-weight: 600;
}

.product__atual {
  color: var(--text);
  font-size: 0.85rem;
  margin-top: 4px;
}

.product__atual--pendente {
  color: var(--text-secondary);
  font-style: italic;
}

.product__remove {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.product__remove:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

/* ===== Estado vazio ===== */
.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.empty__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.empty.is-hidden {
  display: none;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 20px;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.modal__card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.12);
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 24px;
}

.modal__link {
  color: var(--cyan);
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal__close:hover {
  color: var(--text);
}

/* ===== Form ===== */
.field {
  display: block;
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field__input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field__input:focus {
  border-color: var(--neon);
}

.field__input[type='email'] {
  text-transform: none;
}

/* ===== Mensagem de erro inline ===== */
.form__error {
  color: #FF4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.form__error[hidden] {
  display: none;
}

/* ===== Onboarding ===== */
.onboarding {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.97);
}

.onboarding.is-open {
  display: flex;
}

.onboarding__card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  padding: 44px 28px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.12);
}

.onboarding__skip {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
}

.onboarding__skip:hover {
  color: var(--text);
}

.onboarding__slides {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding__slide {
  display: none;
  width: 100%;
}

.onboarding__slide.is-active {
  display: block;
  animation: onboardingFade 0.35s ease;
}

@keyframes onboardingFade {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.onboarding__icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

.onboarding__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.onboarding__text {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

.onboarding__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 20px;
}

.onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333333;
  transition: background 0.2s ease;
}

.onboarding__dot.is-active {
  background: var(--neon);
}

.onboarding__next {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .onboarding__slide.is-active {
    animation: none;
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #39FF14;
  color: #0A0A0A;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  white-space: nowrap;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsivo ===== */
@media (min-width: 560px) {
  .modal__actions {
    flex-direction: row;
  }

  .modal__actions .btn {
    flex: 1;
  }
}
