/* ==========================================================================
   HowStore Boost — identidade visual HowStore
   --------------------------------------------------------------------------
   Guia de marca HowStore aplicado ao painel: fundo quase preto (#141418),
   pelo menos ~65% da tela escura, luz roxa (#6E3FBD) e azul (#2B5FAD) tipo
   lava lamp no canto superior esquerdo com eco fraco no inferior direito.
   Tipografia Inter, títulos brancos sólidos (nunca gradiente na letra),
   gradiente sempre do roxo para o azul, verde só para status online.

   Os nomes de classe .gs-* são mantidos porque o HTML e o app.js dependem
   deles — aqui só muda a aparência, nunca o comportamento.
   ========================================================================== */

:root {
  /* Superfícies */
  --gs-bg:         #141418;
  --gs-card:       #1A1A20;
  --gs-card-2:     #202027;
  --gs-dark:       #101014;  /* campos e console */
  --gs-line:       rgba(255, 255, 255, 0.08);
  --gs-line-2:     rgba(255, 255, 255, 0.13);

  /* Marca */
  --gs-purple:     #6E3FBD;
  --gs-purple-lit: #A98BEC;  /* roxo clareado, legível sobre preto */
  --gs-blue:       #2B5FAD;
  --gs-blue-lit:   #5B93E8;
  --gs-grad:       linear-gradient(100deg, #6E3FBD 0%, #2B5FAD 100%);

  /* Status (verde/vermelho só para status, nunca decorativo) */
  --gs-green:      #34C759;
  --gs-red:        #E5352B;
  --gs-amber:      #E8A33D;

  /* Texto */
  --gs-text:       #FFFFFF;
  --gs-muted:      #A1A1AA;
  --gs-faint:      #8B8B96;

  /* Forma */
  --gs-r-sm:       10px;
  --gs-r:          12px;
  --gs-r-lg:       18px;
  --gs-r-xl:       22px;

  --gs-mono-font:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { overflow-x: hidden; }

body {
  background-color: var(--gs-bg);
  color: #ECECF1;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Títulos brancos, sólidos, com espaçamento levemente negativo.
   .font-outfit é o gancho de "display" que o HTML usa — repontado para Inter
   pesado, sem introduzir uma segunda família tipográfica na tela. */
h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--gs-text);
}

/* --------------------------------------------------------------------------
   Luz de fundo — a assinatura da marca (lava lamp roxa e azul)
   Duas manchas fixas, fora do fluxo, sem interferir em clique. O centro fica
   preto; a luz emoldura, não invade. Nunca atrás de campo de formulário.
   -------------------------------------------------------------------------- */

.hs-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hs-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}
/* Bem discreto de propósito: luz vazando no canto, não um orbe roxo gritando. */
.hs-blob--purple {
  width: 40vw; height: 40vw;
  min-width: 300px; min-height: 300px;
  top: -18vw; left: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(110, 63, 189, 0.24), rgba(110, 63, 189, 0) 70%);
  animation: hs-drift-a 44s ease-in-out infinite alternate;
}
.hs-blob--blue {
  width: 26vw; height: 26vw;
  min-width: 220px; min-height: 220px;
  bottom: -16vw; right: -12vw;
  background: radial-gradient(circle at 55% 55%, rgba(43, 95, 173, 0.14), rgba(43, 95, 173, 0) 70%);
  animation: hs-drift-b 52s ease-in-out infinite alternate;
}
@keyframes hs-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 4vw, 0) scale(1.1); }
}
@keyframes hs-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-4vw, -3vw, 0) scale(1); }
}
.hs-page { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Etiqueta em caixa alta com espaçamento aberto (legenda da marca)
   -------------------------------------------------------------------------- */

.hs-eyebrow {
  font-family: var(--gs-mono-font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-purple-lit);
}
.hs-eyebrow--muted { color: var(--gs-faint); }

/* Filete de destaque com gradiente roxo→azul */
.hs-rule {
  height: 2px;
  border-radius: 2px;
  background: var(--gs-grad);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Marca (mascote fantasma em chip claro + wordmark)
   -------------------------------------------------------------------------- */

.hs-brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.hs-brand__chip {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #000;
  flex-shrink: 0;
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hs-brand__chip img { width: 100%; height: 100%; object-fit: contain; }
.hs-brand__name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--gs-text);
}
.hs-brand__sub {
  font-family: var(--gs-mono-font);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gs-faint);
}

/* Pill de status (ENTREGA ONLINE) */
.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.08);
  color: var(--gs-green);
  white-space: nowrap;
}

.hs-login-status { display: none; }
@media (min-width: 640px) {
  .hs-login-status { display: inline-flex; }
}
.hs-panel-status { display: none; }
@media (min-width: 1024px) {
  .hs-panel-status { display: inline-flex; }
}

/* Atalho de pedidos, compartilhado entre entrada e painel. */
.hs-orders-link {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--gs-line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #D8D8E1;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.hs-orders-link svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.hs-orders-link:hover {
  color: #fff;
  border-color: rgba(169, 139, 236, 0.42);
  background: rgba(110, 63, 189, 0.12);
  transform: translateY(-1px);
}
.hs-orders-link:active { transform: translateY(0) scale(.98); }
.hs-orders-link:focus-visible { outline: 2px solid var(--gs-purple-lit); outline-offset: 3px; }
@media (max-width: 639px) { .hs-orders-link__text { display: none; } }
.hs-pill__dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: gs-pulse 1.8s ease-in-out infinite;
}

/* Selo neutro (SEM CADASTRO, ONLINE 24/7) */
.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gs-line-2);
  background: rgba(255, 255, 255, 0.03);
  color: #D4D4DC;
}
.hs-badge--brand { border-color: transparent; background: var(--gs-grad); color: #fff; }
.hs-badge__icon { width: 0.9rem; height: 0.9rem; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Hero da tela de login
   -------------------------------------------------------------------------- */

.hs-login-layout {
  display: grid;
  grid-template-areas:
    "access"
    "copy";
  gap: 2.75rem;
  align-items: center;
}
.hs-login-shell { max-width: 87.5rem; }
.hs-login-copy { grid-area: copy; min-width: 0; }
.hs-login-access { grid-area: access; }
.hs-hero-media-slot { display: none; grid-area: media; min-height: 1px; }
@media (min-width: 1024px) {
  .hs-login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 25rem);
    grid-template-areas: "copy access";
    gap: clamp(2.5rem, 4vw, 4rem);
  }
}
@media (min-width: 1280px) {
  .hs-login-layout {
    grid-template-columns: minmax(34rem, 1fr) clamp(6rem, 9vw, 10rem) minmax(22rem, 25rem);
    grid-template-areas: "copy media access";
    gap: clamp(1.5rem, 2.4vw, 2.5rem);
  }
  .hs-hero-media-slot { display: block; }
}

.hs-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--gs-text);
}
.hs-hero-title .hs-accent { color: var(--gs-purple-lit); }
.hs-lead {
  color: var(--gs-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 34rem;
}

/* Passos numerados do processo */
.hs-steps { display: grid; gap: 0.65rem; max-width: 37rem; }
.hs-step {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  grid-template-areas:
    "number title"
    "number description";
  column-gap: 0.85rem;
  align-items: start;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r);
  padding: 0.9rem 1rem;
  background: rgba(26, 26, 32, 0.5);
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, transform .2s ease;
}
.hs-step:hover { border-color: rgba(110, 63, 189, 0.4); transform: translateY(-2px); }
.hs-step__n {
  grid-area: number;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 139, 236, 0.22);
  border-radius: 9px;
  background: rgba(110, 63, 189, 0.1);
  font-family: var(--gs-mono-font);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gs-purple-lit);
}
.hs-step__t { grid-area: title; font-weight: 650; font-size: 0.9rem; color: var(--gs-text); }
.hs-step__d { grid-area: description; font-size: 0.78rem; line-height: 1.55; color: var(--gs-muted); margin-top: 0.12rem; text-wrap: pretty; }

.hs-trust-note {
  max-width: 37rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--gs-faint);
  font-size: 0.75rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.hs-trust-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.1rem; color: var(--gs-purple-lit); }

/* Em telas de notebook, o processo cabe inteiro na primeira dobra. Os passos
   passam a dividir uma linha e o restante da composição reduz apenas o
   espaçamento vertical, preservando o espaço central reservado para a arte. */
@media (min-width: 1024px) {
  .hs-page > header { padding-top: 0.85rem; padding-bottom: 0.65rem; }
  .hs-login-layout { padding-top: 0.75rem !important; padding-bottom: 1.25rem !important; }
  .hs-login-copy > .mb-6 { margin-bottom: 0.85rem; }
  .hs-hero-title { font-size: clamp(2.75rem, 3.8vw, 3.8rem); line-height: 0.99; text-wrap: balance; }
  .hs-lead { margin-top: 0.9rem !important; font-size: 0.95rem; line-height: 1.5; }
  .hs-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.55rem;
    max-width: none;
    margin-top: 1.1rem !important;
  }
  .hs-step {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
  }
  .hs-step__n { width: 1.8rem; height: 1.8rem; }
  .hs-step__t { font-size: 0.8rem; line-height: 1.3; }
  .hs-step__d { font-size: 0.69rem; line-height: 1.45; margin-top: 0; }
  .hs-trust-note { margin-top: 0.9rem !important; font-size: 0.7rem; line-height: 1.45; }
  .hs-card-login { padding-top: 1.35rem !important; padding-bottom: 1.35rem !important; }
}

/* --------------------------------------------------------------------------
   Alternador de idioma (PT | EN)
   -------------------------------------------------------------------------- */

.hs-lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--gs-line-2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.hs-lang__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gs-muted);
  padding: 0.4rem 0.7rem;
  transition: color .18s ease, background .18s ease;
}
.hs-lang__btn:hover { color: #E5E7EB; }
.hs-lang__btn[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.10); }
.hs-lang__sep { width: 1px; background: var(--gs-line-2); }

/* --------------------------------------------------------------------------
   Cabeçalho do card de ativação + trilha de passos (1 · 2 · 3)
   -------------------------------------------------------------------------- */

.hs-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hs-cardhead__count { font-family: var(--gs-mono-font); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--gs-purple-lit); }
.hs-divider { height: 1px; background: var(--gs-line); margin: 1rem 0 1.35rem; }

.hs-track { display: flex; align-items: center; margin-bottom: 1.75rem; }
.hs-track__node { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.hs-track__bead {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
  border: 1px solid var(--gs-line-2);
  color: var(--gs-faint);
  background: var(--gs-dark);
}
.hs-track__label { font-size: 0.7rem; color: var(--gs-faint); }
.hs-track__node--active .hs-track__bead {
  background: var(--gs-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(110, 63, 189, 0.16);
}
.hs-track__node--active .hs-track__label { color: var(--gs-purple-lit); font-weight: 600; }
.hs-track__line {
  flex: 1; height: 1px;
  background: var(--gs-line-2);
  margin: 0 0.5rem;
  position: relative; top: -9px;
}

/* Label com asterisco obrigatório */
.hs-label-req {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #D4D4DC;
  margin-bottom: 0.5rem;
}
.hs-label-req .req { color: var(--gs-purple-lit); }

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */

.gs-input {
  width: 100%;
  background: var(--gs-dark);
  border: 1px solid var(--gs-line-2);
  border-radius: var(--gs-r);
  color: var(--gs-text);
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.gs-input::placeholder { color: var(--gs-faint); }
.gs-input:focus {
  outline: none;
  border-color: var(--gs-purple);
  box-shadow: 0 0 0 4px rgba(110, 63, 189, 0.16);
}
.gs-input:disabled { opacity: .55; cursor: not-allowed; }

/* Campo com ícone de prefixo (# do código) */
.hs-field { position: relative; }
.hs-field__icon {
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gs-faint);
  font-family: var(--gs-mono-font);
  pointer-events: none;
}
.hs-field .gs-input { padding-left: 2.3rem; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--gs-r);
  font-size: .9rem;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  transition: filter .18s ease, background-color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  color: var(--gs-text);
}
.gs-btn:disabled { opacity: .55; cursor: not-allowed; }
.gs-btn:not(:disabled):active { transform: translateY(1px); }

.gs-btn-primary {
  background: var(--gs-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(110, 63, 189, 0.16);
}
.gs-btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(110, 63, 189, 0.22); }

.gs-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--gs-line-2);
  color: #D4D4DC;
}
.gs-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }

.gs-btn-soft { background: var(--gs-dark); border-color: var(--gs-line); color: #D4D4DC; }
.gs-btn-soft:hover:not(:disabled) { border-color: rgba(110, 63, 189, 0.45); color: #fff; }

/* --------------------------------------------------------------------------
   Cartões
   -------------------------------------------------------------------------- */

.gs-card {
  background: var(--gs-card);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.gs-card-inner {
  background: var(--gs-dark);
  border-radius: var(--gs-r);
}

/* Cartão de login com um brilho de borda a mais */
.hs-card-login {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(110, 63, 189, 0.08);
}

/* --------------------------------------------------------------------------
   Abas
   -------------------------------------------------------------------------- */

.gs-tab {
  position: relative;
  padding: .65rem .25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gs-muted);
  cursor: pointer;
  background: none;
  border: 0;
  transition: color .15s ease;
}
.gs-tab:hover { color: #E5E7EB; }
.gs-tab[aria-selected="true"] { color: var(--gs-purple-lit); }
.gs-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gs-grad);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Diversos
   -------------------------------------------------------------------------- */

.gs-mono { font-family: var(--gs-mono-font); font-size: .8125rem; }

.gs-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nota / aviso — filete de destaque à esquerda */
.hs-note {
  border: 1px solid var(--gs-line);
  border-left: 3px solid var(--gs-purple);
  border-radius: var(--gs-r-sm);
  background: rgba(110, 63, 189, 0.06);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--gs-muted);
}
.hs-note strong { color: var(--gs-text); font-weight: 600; }

/* `.hidden` do Tailwind tem especificidade baixa e perde para as classes de
   componente que declaram `display`. Resolve-se caso a caso — nunca com
   `!important` global, senão as variantes responsivas deixam de funcionar. */
.gs-btn.hidden,
.gs-chip.hidden { display: none; }

/* Console — a linha de conexão do servidor tratada como terminal de verdade */
.hs-console {
  background: var(--gs-dark);
  border: 1px solid var(--gs-line-2);
  border-radius: var(--gs-r-sm);
  font-family: var(--gs-mono-font);
  font-size: 0.8125rem;
  color: #D4D4DC;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
}
.hs-console__prompt { color: var(--gs-purple-lit); flex-shrink: 0; }

/* Scrollbar roxa */
.gs-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.gs-scroll::-webkit-scrollbar-track { background: transparent; }
.gs-scroll::-webkit-scrollbar-thumb { background: rgba(110, 63, 189, .35); border-radius: 999px; }
.gs-scroll::-webkit-scrollbar-thumb:hover { background: rgba(110, 63, 189, .6); }

:focus-visible { outline: 2px solid var(--gs-purple-lit); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Indicador de chamada em andamento
   -------------------------------------------------------------------------- */
#busy-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 800;
  background: transparent;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
#busy-bar.is-busy { opacity: 1; }
#busy-bar.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gs-purple-lit), transparent);
  animation: gs-busy 1.1s linear infinite;
}
@keyframes gs-busy {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   Envio em andamento
   -------------------------------------------------------------------------- */
.gs-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.gs-progress-fill {
  height: 100%;
  background: var(--gs-grad);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.gs-progress-fill.is-waiting {
  width: 100% !important;
  background-image: linear-gradient(
    115deg,
    rgba(110, 63, 189, .55) 25%, rgba(110, 63, 189, .16) 25%,
    rgba(110, 63, 189, .16) 50%, rgba(110, 63, 189, .55) 50%,
    rgba(110, 63, 189, .55) 75%, rgba(110, 63, 189, .16) 75%
  );
  background-color: transparent;
  background-size: 1.1rem 1.1rem;
  animation: gs-stripes .9s linear infinite;
}
@keyframes gs-stripes {
  from { background-position: 0 0; }
  to   { background-position: 1.1rem 0; }
}

.gs-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--gs-purple-lit);
  animation: gs-pulse 1.6s ease-in-out infinite;
}
@keyframes gs-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* --------------------------------------------------------------------------
   Avisos flutuantes (toasts)
   -------------------------------------------------------------------------- */
#gs-toasts {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: min(22rem, calc(100vw - 2rem));
}
.gs-toast {
  background: var(--gs-card);
  border: 1px solid var(--gs-line-2);
  border-left-width: 3px;
  border-radius: var(--gs-r-sm);
  padding: .8rem .95rem;
  font-size: .8125rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  animation: gs-toast-in .18s ease-out;
}
.gs-toast[data-kind="success"] { border-left-color: var(--gs-green); }
.gs-toast[data-kind="error"]   { border-left-color: var(--gs-red); }
.gs-toast[data-kind="info"]    { border-left-color: var(--gs-purple); }
@keyframes gs-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Alerta destacado (primeiro entre em um servidor)
   -------------------------------------------------------------------------- */
.hs-alert {
  position: relative;
  border: 1px solid rgba(110, 63, 189, 0.4);
  border-radius: var(--gs-r-lg);
  background:
    linear-gradient(180deg, rgba(110, 63, 189, 0.14), rgba(43, 95, 173, 0.06)),
    var(--gs-card);
  box-shadow: 0 0 0 1px rgba(110, 63, 189, 0.1), 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.hs-alert::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gs-grad);
}
.hs-alert__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--gs-grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(110, 63, 189, 0.35);
}

/* --------------------------------------------------------------------------
   Anúncio do grupo da Steam
   -------------------------------------------------------------------------- */
.hs-ad {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r-lg);
  background: var(--gs-card);
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hs-ad__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: #1b2838;              /* azul Steam */
  color: #66c0f4;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hs-ad__body { min-width: 0; flex: 1; }
.hs-ad__title { font-weight: 600; font-size: 0.95rem; color: var(--gs-text); }
.hs-ad__sub { font-size: 0.8rem; color: var(--gs-muted); margin-top: 0.1rem; }
@media (max-width: 560px) {
  .hs-ad { flex-wrap: wrap; }
  .hs-ad .gs-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Gate: "Já entrou no servidor?" — libera o envio
   -------------------------------------------------------------------------- */
.hs-gate {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--gs-line-2);
  border-radius: var(--gs-r-lg);
  background: var(--gs-card);
  padding: 1.1rem 1.25rem;
}
.hs-gate__body { min-width: 0; flex: 1; }
.hs-gate__title { font-weight: 700; font-size: 1rem; color: var(--gs-text); }
.hs-gate__desc { font-size: 0.85rem; color: var(--gs-muted); margin-top: 0.1rem; }
.hs-gate__btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--gs-line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #D4D4DC;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.hs-gate__btn:hover { border-color: rgba(110, 63, 189, 0.5); color: #fff; }
.hs-gate__check {
  width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--gs-faint);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease;
}
.hs-gate__check svg { width: 12px; height: 12px; opacity: 0; transition: opacity .18s ease; }
.hs-gate.is-confirmed { border-color: rgba(52, 199, 89, 0.4); background: rgba(52, 199, 89, 0.06); }
.hs-gate.is-confirmed .hs-gate__btn { border-color: transparent; background: rgba(52, 199, 89, 0.16); color: var(--gs-green); cursor: default; }
.hs-gate.is-confirmed .hs-gate__check { background: var(--gs-green); border-color: var(--gs-green); }
.hs-gate.is-confirmed .hs-gate__check svg { opacity: 1; color: #06210f; }
@media (max-width: 560px) {
  .hs-gate { align-items: stretch; }
  .hs-gate__body { flex-basis: 100%; }
  .hs-gate__btn { width: 100%; justify-content: center; }
}

/* Envio bloqueado até confirmar "Estou no servidor".
   Destacado de propósito: o cliente precisa perceber que está travado. */
.hs-lock-note {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.9rem; font-weight: 600;
  color: #EDE9FB;
  border: 1px solid rgba(110, 63, 189, 0.5);
  background: linear-gradient(100deg, rgba(110, 63, 189, 0.22), rgba(43, 95, 173, 0.12));
  border-radius: var(--gs-r);
  padding: 0.85rem 1rem;
}
.hs-lock-note svg { width: 18px; height: 18px; color: var(--gs-purple-lit); flex-shrink: 0; }

/* Avisos abaixo do botão de envio (dois cards com ícone, lado a lado) */
.hs-tips { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .hs-tips { grid-template-columns: 1fr 1fr; } }
.hs-tip {
  display: flex; align-items: flex-start; gap: 0.7rem;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r);
  background: var(--gs-dark);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--gs-muted);
  line-height: 1.5;
}
.hs-tip__icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hs-tip__icon svg { width: 15px; height: 15px; }
.hs-tip__icon--info { background: rgba(110, 63, 189, 0.16); color: var(--gs-purple-lit); }
.hs-tip__icon--pause { background: rgba(91, 147, 232, 0.16); color: var(--gs-blue-lit); }

/* --------------------------------------------------------------------------
   Pill "Operacional" com traço de monitor cardíaco (EKG)
   -------------------------------------------------------------------------- */
.hs-ekg { display: inline-block; width: 30px; height: 14px; line-height: 0; }
.hs-ekg svg { width: 100%; height: 100%; overflow: visible; }
.hs-ekg polyline { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-ekg__base { stroke: currentColor; opacity: 0.28; }
.hs-ekg__pulse {
  stroke: currentColor;
  stroke-dasharray: 14 80;
  stroke-dashoffset: 94;
  animation: hs-ekg 1.5s linear infinite;
}
@keyframes hs-ekg { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Prévia do perfil Steam
   -------------------------------------------------------------------------- */
#profile-preview.hidden { display: none; }
.hs-profile-alert,
.hs-field-alert,
.hs-profile-reset-note {
  margin-top: 0.65rem;
  border: 1px solid var(--gs-line-2);
  border-radius: var(--gs-r-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}
.hs-profile-alert--loading { color: var(--gs-muted); background: rgba(255, 255, 255, 0.025); }
.hs-profile-alert--warning,
.hs-profile-reset-note { color: #f5c469; border-color: rgba(245, 196, 105, 0.28); background: rgba(245, 196, 105, 0.07); }
.hs-profile-alert--error,
.hs-field-alert--error { color: #ff8d86; border-color: rgba(229, 53, 43, 0.38); background: rgba(229, 53, 43, 0.1); }
.gs-input[aria-invalid="true"] { border-color: rgba(229, 53, 43, 0.7); box-shadow: 0 0 0 3px rgba(229, 53, 43, 0.1); }
.hs-profile-card {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 0.6rem;
  border: 1px solid var(--gs-line-2);
  border-radius: var(--gs-r);
  background: var(--gs-dark);
  padding: 0.6rem 0.8rem;
  animation: gs-toast-in .18s ease-out;
}
.hs-profile-card__av { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--gs-card-2); }
.hs-profile-card__name { font-weight: 600; font-size: 0.9rem; color: var(--gs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-profile-card__sub { font-size: 0.7rem; color: var(--gs-faint); }
.hs-profile-card__check { width: 18px; height: 18px; color: var(--gs-green); margin-left: auto; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Card de progresso ao vivo (anel + pacote)
   -------------------------------------------------------------------------- */
.hs-prog { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .hs-prog { grid-template-columns: 1fr; } }
.hs-prog__side { border-left: 1px solid var(--gs-line); padding-left: 1.25rem; }
@media (max-width: 720px) { .hs-prog__side { border-left: 0; border-top: 1px solid var(--gs-line); padding-left: 0; padding-top: 1rem; } }

.hs-ring-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hs-ring { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.hs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hs-ring__track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.hs-ring__fill { fill: none; stroke: url(#hsRingGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1); }
.hs-ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hs-ring__pct { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1; color: var(--gs-text); }
.hs-ring__cap { font-family: var(--gs-mono-font); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gs-faint); margin-top: 0.3rem; }

.hs-count { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.3rem; }
.hs-count__sent { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1; color: var(--gs-purple-lit); }
.hs-count__total { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--gs-faint); letter-spacing: -0.03em; }

.hs-status { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--gs-mono-font); }
.hs-status--running { background: rgba(110, 63, 189, 0.16); color: var(--gs-purple-lit); }

.hs-pkg-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--gs-line); }
.hs-pkg-row:last-of-type { border-bottom: 0; }
.hs-pkg-row__name { font-size: 0.85rem; color: var(--gs-muted); }
.hs-pkg-row__n { margin-left: auto; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.15rem; }
.hs-pkg-total {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--gs-line); border-radius: var(--gs-r-sm);
  background: rgba(255, 255, 255, 0.025); padding: 0.8rem;
}
.hs-pkg-total__label { font-size: 0.82rem; color: var(--gs-muted); }
.hs-pkg-total__value { font-family: 'Inter', sans-serif; font-size: 1.35rem; color: var(--gs-text); }
.hs-pkg-total + .hs-pkg-total { margin-top: 0.55rem; }
.hs-prog__profile { margin-top: 0.7rem; border: 1px solid var(--gs-line); border-radius: var(--gs-r-sm); background: rgba(255, 255, 255, 0.02); padding: 0.7rem 0.8rem; }

.hs-pending { background: linear-gradient(145deg, rgba(110, 63, 189, 0.08), rgba(255, 255, 255, 0.015)); }
.hs-pending__copy { flex: 1 1 15rem; }
.hs-pending__spinner {
  width: 30px; height: 30px; display: block;
  border: 2px solid rgba(139, 93, 214, 0.25); border-top-color: var(--gs-purple-lit);
  border-radius: 999px; animation: hs-spin .8s linear infinite;
}
.hs-pending__spinner--warning { border-color: rgba(245, 196, 105, 0.22); border-top-color: #f5c469; }
.hs-ring--pending svg { animation: hs-spin 1.55s linear infinite; }
.hs-ring--pending .hs-ring__fill {
  stroke-dasharray: 104 327;
  stroke-dashoffset: 0;
  transition: none;
}
.hs-ring--warning .hs-ring__fill { stroke: #f5c469; }
.hs-ring--pending .hs-ring__center { transform: rotate(0); }
.hs-pending__title { margin-top: 0.35rem; font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 750; color: var(--gs-text); }
.hs-pending__detail { margin-top: 0.35rem; max-width: 44rem; color: var(--gs-muted); font-size: 0.86rem; line-height: 1.6; text-wrap: pretty; }
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* Cores dos ícones das categorias no pacote */
.hs-cat__icon.hs-cat--friendly { background: rgba(52, 199, 89, 0.14); color: var(--gs-green); }
.hs-cat__icon.hs-cat--teacher { background: rgba(91, 147, 232, 0.16); color: var(--gs-blue-lit); }
.hs-cat__icon.hs-cat--leader { background: rgba(110, 63, 189, 0.2); color: var(--gs-purple-lit); }

/* --------------------------------------------------------------------------
   Card de conclusão (entrega concluída) — comemorativo, verde
   -------------------------------------------------------------------------- */
.hs-done {
  border: 1px solid rgba(52, 199, 89, 0.3) !important;
  background: linear-gradient(160deg, rgba(52, 199, 89, 0.08), rgba(52, 199, 89, 0.02)), var(--gs-dark);
  animation: hs-rise .45s cubic-bezier(.22, .61, .36, 1) both;
}
.hs-ring--done .hs-ring__fill { stroke: var(--gs-green); }
.hs-ring__check { width: 46px; height: 46px; color: var(--gs-green); animation: hs-pop .4s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes hs-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.hs-status--concluido { background: rgba(52, 199, 89, 0.14); color: var(--gs-green); }
.hs-done__title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--gs-green); }
.hs-count__sent--done { color: var(--gs-green); -webkit-text-fill-color: var(--gs-green); }

/* Card de fim sóbrio (parado / falha) */
.hs-end { animation: hs-rise .4s cubic-bezier(.22, .61, .36, 1) both; }
.hs-end__icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.hs-end--failed { border-color: rgba(229, 53, 43, 0.28) !important; }
.hs-end--failed .hs-end__icon { color: var(--gs-red); }
.hs-end--stopped .hs-end__icon { color: var(--gs-muted); }

/* --------------------------------------------------------------------------
   Barra de ocupação dos servidores (deixa claro qual está menos cheio)
   -------------------------------------------------------------------------- */
.hs-fill { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.hs-fill__bar { height: 100%; border-radius: 999px; transition: width .4s ease; }

/* --------------------------------------------------------------------------
   Tabela de histórico (mesmas colunas do dash do fornecedor)
   -------------------------------------------------------------------------- */
.hs-data-notice {
  margin-bottom: 0.85rem;
  border: 1px solid rgba(245, 196, 105, 0.28);
  border-radius: var(--gs-r-sm);
  background: rgba(245, 196, 105, 0.07);
  color: #f5c469;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.hs-htable-wrap { overflow-x: auto; margin-top: 0.25rem; }
.hs-htable { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 560px; }
.hs-htable thead th {
  text-align: left;
  font-family: var(--gs-mono-font);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gs-faint); font-weight: 500;
  padding: 0 0.85rem 0.7rem; white-space: nowrap;
  border-bottom: 1px solid var(--gs-line);
}
.hs-htable tbody td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--gs-line);
  vertical-align: middle;
  color: var(--gs-muted);
  white-space: nowrap;
}
.hs-htable tbody tr:last-child td { border-bottom: 0; }
.hs-htable thead th:first-child, .hs-htable tbody td:first-child { padding-left: 0.15rem; }
.hs-htable__date { color: var(--gs-faint); font-family: var(--gs-mono-font); font-size: 0.78rem; }
.hs-htable__id a { color: #D4D4DC; }
.hs-htable__num { color: var(--gs-text); font-weight: 700; }
.hs-steam-cell { display: flex; flex-direction: column; gap: 0.16rem; align-items: flex-start; }
.hs-steam-id { color: #D4D4DC; }
.hs-steam-name { color: var(--gs-faint); font-family: 'Inter', sans-serif; font-size: 0.72rem; }

/* --------------------------------------------------------------------------
   Animações — entrada suave, estilo Apple. Fade curto com subida de poucos
   pixels, escalonado, easing suave. Nada de bounce/rotação/piscar.
   -------------------------------------------------------------------------- */
@keyframes hs-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hs-fade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

/* Cada bloco direto do <main> entra em sequência ao carregar a página. */
.hs-enter > * { animation: hs-rise .6s cubic-bezier(.22, .61, .36, 1) both; }
.hs-enter > *:nth-child(1) { animation-delay: 0.04s; }
.hs-enter > *:nth-child(2) { animation-delay: 0.10s; }
.hs-enter > *:nth-child(3) { animation-delay: 0.16s; }
.hs-enter > *:nth-child(4) { animation-delay: 0.22s; }
.hs-enter > *:nth-child(5) { animation-delay: 0.28s; }
.hs-enter > *:nth-child(6) { animation-delay: 0.34s; }
.hs-enter > *:nth-child(7) { animation-delay: 0.40s; }

/* Cabeçalho e marca aparecem com um fade sutil. */
.hs-page > header { animation: hs-fade .7s ease both; }

/* Hover discreto nos cartões de servidor (elevação mínima). */
#servers .gs-card-inner { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
#servers .gs-card-inner:hover { border-color: rgba(110, 63, 189, 0.35); transform: translateY(-1px); }

/* Elevação mínima nos botões primários ao passar o mouse. */
.gs-btn-primary:not(:disabled):hover { transform: translateY(-1px); }

/* Resposta do FAQ surge suave ao abrir. */
.hs-faq__item[open] .hs-faq__a { animation: hs-fade .28s ease; }

/* Confirmações de entrega entram com um fade leve (aparecem uma vez só). */
.hs-lock-body { transition: opacity .2s ease, filter .2s ease; }
.hs-locked .hs-lock-body { opacity: 0.4; pointer-events: none; filter: saturate(0.7); }
.hs-locked.is-unlocked .hs-lock-body { opacity: 1; pointer-events: auto; filter: none; }
.hs-locked.is-unlocked .hs-lock-note { display: none; }

/* --------------------------------------------------------------------------
   Categorias personalizadas (ícone + valor + slider)
   -------------------------------------------------------------------------- */
.hs-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 560px) { .hs-cats { grid-template-columns: 1fr; } }

.hs-cat {
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r);
  background: var(--gs-dark);
  padding: 0.95rem;
}
.hs-cat__top { display: flex; align-items: center; gap: 0.5rem; }
.hs-cat__icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.hs-cat__icon svg { width: 14px; height: 14px; }
.hs-cat__name { font-size: 0.8rem; color: var(--gs-muted); font-weight: 500; }
.hs-cat__value {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.55rem 0 0.15rem;
}
.hs-amount-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.hs-amount-input-wrap { margin-top: 0.55rem; }
.hs-amount-input {
  width: 6rem; border: 1px solid var(--gs-line-2); border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); color: var(--gs-text);
  font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700;
  padding: 0.48rem 0.65rem; text-align: center; outline: none;
}
.hs-amount-input:focus { border-color: var(--gs-purple); box-shadow: 0 0 0 3px rgba(110, 63, 189, 0.14); }
.hs-cat__max { font-size: 0.7rem; color: var(--gs-faint); font-family: var(--gs-mono-font); }

.hs-cat--friendly .hs-cat__icon { background: rgba(52, 199, 89, 0.14); color: var(--gs-green); }
.hs-cat--teacher  .hs-cat__icon { background: rgba(91, 147, 232, 0.16); color: var(--gs-blue-lit); }
.hs-cat--leader   .hs-cat__icon { background: rgba(110, 63, 189, 0.2); color: var(--gs-purple-lit); }
.hs-cat__icon--all { background: rgba(110, 63, 189, 0.16); color: var(--gs-purple-lit); }
.hs-cat__maxnum { color: var(--gs-muted); }

.hs-custom-total {
  margin-top: 0.8rem;
  color: var(--gs-muted);
  font-size: 0.8rem;
}
.hs-custom-total strong { color: var(--gs-text); font-family: 'Inter', sans-serif; font-size: 0.9rem; }

/* Botão "Máx" da aba Quantidade igual */
.hs-maxbtn {
  margin-left: auto;
  border: 1px solid var(--gs-line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gs-purple-lit);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.hs-maxbtn:hover { border-color: var(--gs-purple); color: #fff; background: rgba(110, 63, 189, 0.12); }

/* Slider (no lugar da setinha do input number) */
.hs-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}
.hs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--gs-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.hs-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--gs-purple);
  cursor: pointer;
}
.hs-range::-moz-range-progress { background: var(--gs-grad); height: 6px; border-radius: 999px; }
.hs-range:focus-visible {
  outline: 2px solid var(--gs-purple-lit);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   FAQ (acordeão)
   -------------------------------------------------------------------------- */
.hs-faq__item {
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-r);
  background: var(--gs-dark);
  margin-top: 0.6rem;
  overflow: hidden;
}
.hs-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gs-text);
}
.hs-faq__item summary::-webkit-details-marker { display: none; }
.hs-faq__item summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--gs-faint);
  border-bottom: 2px solid var(--gs-faint);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.hs-faq__item[open] summary::after { transform: rotate(-135deg); }
.hs-faq__item[open] summary { color: var(--gs-purple-lit); }
.hs-faq__a { padding: 0 1.1rem 1.1rem; font-size: 0.88rem; color: var(--gs-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Guia de Trust Factor
   -------------------------------------------------------------------------- */
.hs-trust-guide { overflow: hidden; }
.hs-trust-guide__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease;
}
.hs-trust-guide__summary::-webkit-details-marker { display: none; }
.hs-trust-guide__summary:hover { background: rgba(255, 255, 255, 0.025); }
.hs-trust-guide__summary:focus-visible { outline: 2px solid var(--gs-purple-lit); outline-offset: -3px; }
.hs-trust-guide__summary-copy { display: block; min-width: 0; }
.hs-trust-guide__head { display: flex; align-items: center; justify-content: flex-start; gap: 0.65rem; }
.hs-trust-guide__title { display: block; margin-top: 0.65rem; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.hs-trust-guide__chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid var(--gs-faint);
  border-bottom: 2px solid var(--gs-faint);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
}
.hs-trust-guide[open] .hs-trust-guide__chevron { transform: rotate(-135deg); border-color: var(--gs-purple-lit); }
.hs-trust-guide[open] .hs-trust-guide__summary { color: var(--gs-purple-lit); }
.hs-trust-guide__content { border-top: 1px solid var(--gs-line); }
.hs-trust-guide__tag {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(169, 139, 236, 0.2);
  border-radius: 8px;
  background: rgba(110, 63, 189, 0.08);
  color: var(--gs-purple-lit);
  font-family: var(--gs-mono-font);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hs-trust-guide__intro { margin-top: 1rem; color: var(--gs-muted); font-size: 0.83rem; line-height: 1.6; text-wrap: pretty; }
.hs-trust-list { margin-top: 1rem; border-top: 1px solid var(--gs-line); }
.hs-trust-item {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gs-line);
}
.hs-trust-item__n {
  padding-top: 0.12rem;
  color: var(--gs-purple-lit);
  font-family: var(--gs-mono-font);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}
.hs-trust-item h3 { font-size: 0.84rem; font-weight: 650; line-height: 1.35; }
.hs-trust-item p { margin-top: 0.22rem; color: var(--gs-muted); font-size: 0.75rem; line-height: 1.55; text-wrap: pretty; }
.hs-trust-cta {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(169, 139, 236, 0.18);
  border-radius: var(--gs-r);
  background: linear-gradient(135deg, rgba(110, 63, 189, 0.11), rgba(43, 95, 173, 0.05));
}
.hs-trust-cta h3 { font-size: 0.88rem; font-weight: 650; }
.hs-trust-cta p { margin-top: 0.25rem; color: var(--gs-muted); font-size: 0.75rem; line-height: 1.5; }
.hs-trust-cta .gs-btn { width: 100%; }

/* --------------------------------------------------------------------------
   Movimento reduzido — interface parada, sem perder informação
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hs-blob { animation: none; }
  .gs-progress-fill.is-waiting { background-image: none; background-color: rgba(110, 63, 189, .45); }
}
