/* ───────── Botões ───────── */
.btn {
  --bx: 0px;
  --by: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
}
.btn--sm { height: 40px; padding-inline: 18px; font-size: 0.85rem; }
.btn--solid {
  background: var(--text);
  color: var(--space-0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 14px 40px -12px rgba(122, 167, 255, 0.75);
}
.btn--solid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(122, 167, 255, 0.45) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.9s var(--ease);
}
.btn--solid:hover::after { translate: 120% 0; }
.btn--solid:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 20px 50px -10px rgba(122, 167, 255, 0.95); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(14, 24, 62, 0.6);
}
.btn--ghost:hover { border-color: rgba(159, 230, 255, 0.6); background: rgba(29, 63, 184, 0.3); }
.btn svg { flex: none; transition: translate 0.4s var(--ease); }
.btn:hover svg { translate: 0 -2px; }

/* ───────── Status ───────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--text-2);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.2s var(--ease) infinite;
}


/* ───────── Cartão de vidro com luz que segue o mouse ───────── */
.glass {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 30, 78, 0.55), rgba(6, 11, 34, 0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.4s, box-shadow 0.4s var(--ease);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(122, 167, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(159, 230, 255, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass:hover::before, .glass:hover::after { opacity: 1; }
.glass:hover { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(122, 167, 255, 0.55); }

/* ───────── Abas com glider ───────── */
.tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(6, 12, 36, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tabs__btn {
  position: relative;
  z-index: 1;
  height: 38px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--space-0); }
.tabs__glider {
  position: absolute;
  top: 0;
  left: 0;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--text);
  box-shadow: 0 6px 22px -6px rgba(122, 167, 255, 0.8);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring);
}
@media (max-width: 600px) {
  .tabs { border-radius: var(--r-md); }
  .tabs__glider { display: none; }
  .tabs__btn.is-active { background: var(--text); }
}

/* ───────── Cursor: um ponto que inverte a cor do que está embaixo ───────── */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  background: #fff;
  mix-blend-mode: difference;
  will-change: translate, scale;
  transition: scale 0.3s var(--spring), opacity 0.2s;
}
.cursor.is-hover .cursor__dot { scale: 2.4; }
.cursor.is-down .cursor__dot { scale: 0.7; }

/* ───────── Toast ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(7, 14, 40, 0.9);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  color: var(--text);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform 0.55s var(--spring), opacity 0.3s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
