/* ============================================================
   QUAERION — LEILÃO DE SITES
   Réplica fiel da composição Norvin (medidas extraídas do DOM)
   Dark premium · Inter Display · acento roxo Quaerion
   ============================================================ */

:root {
  --bg: #040404;
  --bg-soft: #0a0a0b;
  --white: #ffffff;
  --grey-light: #e5e5e5;
  --grey: #9b9b9f;
  --grey-dark: #4a4a4f;
  --line: rgba(255, 255, 255, 0.09);
  --purple: #6b21a8;
  --purple-bright: #a855f7;
  --font: "Inter Tight", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 30px;             /* margem de página do original */
  --radius-btn: 10px;      /* raio dos botões do original */
  --radius-card: 20px;     /* raio dos cards do original */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* o atributo hidden sempre vence display de classe */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--purple); color: #fff; }

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 8px 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.2); }

.menu-btn__icon {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: #0a0a0b;
  border-radius: 50%;
}
.menu-btn__icon i {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-btn:hover .menu-btn__icon i:nth-child(1) { transform: translateX(2px); }
.menu-btn:hover .menu-btn__icon i:nth-child(3) { transform: translateX(-2px); }

.menu-btn__label {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.header-meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
}
.header-meta__slash { color: var(--purple-bright); }

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* ============ MENU OVERLAY ============ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 140px var(--pad) 48px;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
body.menu-open { overflow: hidden; }

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-nav__link {
  font-family: var(--font);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  width: fit-content;
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.3s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.menu-open .menu-nav__link {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .menu-nav__link:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-nav__link:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-nav__link:nth-child(3) { transition-delay: 0.20s; }
body.menu-open .menu-nav__link:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .menu-nav__link:nth-child(5) { transition-delay: 0.32s; }
.menu-nav__link:hover { color: var(--purple-bright); }
.menu-nav__link sup {
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-bright);
  margin-right: 16px;
  letter-spacing: 0;
}

.menu-foot {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  color: var(--grey);
  font-size: 14px;
}
.menu-foot__mark { height: 44px; width: auto; }
.menu-foot a { color: #fff; text-decoration: none; margin-left: auto; }
.menu-foot a:hover { color: var(--purple-bright); }

/* botão do menu vira X quando aberto */
body.menu-open .menu-btn__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn__icon i:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn__icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MODAL — DATA DO LEILÃO ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__card {
  position: relative;
  width: min(560px, 100%);
  padding: 48px 44px 44px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(107, 33, 168, 0.35), transparent 65%),
    #0a0a0b;
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--grey);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.modal__close:hover { color: #fff; border-color: #fff; transform: rotate(90deg); }

.modal__mark {
  height: 56px;
  width: auto;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(107, 33, 168, 0.55));
}

.modal__kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 10px;
}

.modal__title {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.countdown i {
  font-style: normal;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  color: var(--purple-bright);
  line-height: 64px;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 76px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.countdown__unit span {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.modal__date {
  font-size: 15px;
  color: var(--grey-light);
  margin-bottom: 30px;
}
.modal__date strong { color: #fff; }

.modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.modal__later {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.3s;
}
.modal__later:hover { color: #fff; }

.modal__room {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--purple-bright);
  text-decoration: none;
}
.modal__room:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ HERO (card estilo Parley) ============ */

.hero {
  padding: 100px var(--pad) 0;
}

.hero__card {
  position: relative;
  min-height: min(84vh, 820px);
  display: flex;
  align-items: center;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
}

/* Slot da imagem de fundo — troque a URL quando enviar o background.
   Enquanto não há imagem, um gradiente pintado serve de placeholder. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Slot da imagem: para trocar, basta definir --hero-image no .hero__card
     (ex.: style="--hero-image:url('assets/hero-bg.jpg')"). Sem imagem,
     o gradiente pintado aparece como placeholder. */
  background-image:
    var(--hero-image, none),
    radial-gradient(120% 90% at 72% 12%, #c2410c 0%, #7c2d12 30%, #5b21b6 62%, #2e1065 100%);
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.03);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,4,4,0.35) 0%, rgba(4,4,4,0.42) 45%, rgba(4,4,4,0.7) 100%),
    radial-gradient(75% 60% at 50% 46%, rgba(4,4,4,0.6) 0%, transparent 72%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: heroRise 0.9s var(--ease) both;
}
.hero__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(168, 85, 247, 0); }
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  animation: heroRise 0.9s var(--ease) 0.08s both;
}
/* Desktop: garante exatamente 3 linhas (não deixa a 1ª quebrar sozinha) */
@media (min-width: 769px) {
  .hero__content { max-width: 1040px; }
  .hero__title { white-space: nowrap; }
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #fff;
}
/* Última linha em fonte pixel, verde limão neon — maior que o restante */
.hero__pixel {
  display: inline-block;
  margin-top: 10px;
  font-family: "Pixelify Sans", var(--font);
  font-weight: 700;
  font-size: 1.18em;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #b6ff2e;
  text-shadow:
    0 0 14px rgba(182, 255, 46, 0.6),
    0 0 38px rgba(182, 255, 46, 0.32);
}

.hero__tagline {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  animation: heroRise 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: heroRise 0.9s var(--ease) 0.24s both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ BOTÕES (43px alt, raio 10, chip de seta) ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 43px;
  padding: 4px 4px 4px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

/* rótulo com efeito de rolagem no hover (como o texto duplicado do original) */
.btn__label {
  position: relative;
  overflow: hidden;
  display: inline-block;
  height: 15px;
  line-height: 15px;
}
.btn__label span {
  display: block;
  transition: transform 0.4s var(--ease);
}
.btn__label span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
}
.btn:hover .btn__label span { transform: translateY(-100%); }

.btn__chip {
  display: grid;
  place-content: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  font-size: 14px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__chip { transform: rotate(-45deg); }

.btn--light { background: #fff; color: #040404; }
.btn--light .btn__chip { background: #0a0a0b; color: #fff; }
.btn--light:hover { background: var(--purple-bright); color: #fff; }

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn--outline .btn__chip { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--outline:hover { background: #fff; color: #040404; }
.btn--outline:hover .btn__chip { background: #0a0a0b; color: #fff; }

/* CTA principal da hero — pílula escura com chip laranja (estilo Parley) */
.btn--hero {
  gap: 14px;
  height: 56px;
  padding: 8px 26px 8px 8px;
  border-radius: 100px;
  background: rgba(10, 10, 11, 0.9);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.btn--hero .btn__chip--accent {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--purple-bright);
  color: #fff;
  font-size: 16px;
}
.btn--hero:hover { background: #fff; color: #040404; transform: translateY(-2px); }
.btn--hero:hover .btn__chip--accent { background: #6b21a8; }

/* CTA neubrutalista — verde limão, texto preto, borda deslocada (rotacionado) */
.btn-brutal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  font-family: var(--font);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: #040404;
  text-decoration: none;
  background: #b6ff2e;
  border: 2px solid #040404;
  transform: rotate(-2deg);
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.btn-brutal:hover { filter: brightness(0.96); }
.btn-brutal:active { filter: brightness(0.9); }
.btn-brutal__text { position: relative; z-index: 1; }
/* sombra sólida deslocada que aproxima no hover */
.btn-brutal__border {
  pointer-events: none;
  position: absolute;
  left: 6px;
  bottom: -6px;
  width: 100%;
  height: 100%;
  border: 2px solid #040404;
  background: #7cc900;
  z-index: 0;
  transition: left 0.2s ease-out, bottom 0.2s ease-out;
}
.btn-brutal:hover .btn-brutal__border { left: 3px; bottom: -3px; }

/* CTA secundário translúcido */
.btn--ghost {
  height: 56px;
  padding: 0 26px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ============ FAIXA DE CREDENCIAIS ============ */
/* Original: nome pequeno 16/800 em cima, selo grande 32px embaixo */

.awards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin: 0 calc(-1 * var(--pad));
  background: rgba(255, 255, 255, 0.015);
}

.award {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px var(--pad);
  border-right: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}
.award:last-child { border-right: none; }
.award:hover { background: rgba(107, 33, 168, 0.08); }

.award__name {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--grey);
}

.award__tag {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}

.award__desc {
  font-size: 13px;
  color: var(--grey-dark);
  line-height: 1.45;
}

/* ============ SEÇÕES GENÉRICAS ============ */

section { padding: 130px var(--pad); }

/* Eyebrow: 16px, cinza claro, sem uppercase (como o original) */
.eyebrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: var(--grey-light);
  margin-bottom: 28px;
}
.eyebrow::before { content: "["; color: var(--purple-bright); margin-right: 8px; }
.eyebrow::after  { content: "]"; color: var(--purple-bright); margin-left: 8px; }

.accent { color: var(--purple-bright); }

/* ============ SEÇÃO 2 — O LEILÃO ============ */

.about {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(107, 33, 168, 0.10), transparent 70%),
    var(--bg);
}

/* Statement: 48px / lh 56px / ls -0.02em no original */
.about__statement {
  font-family: var(--font);
  font-size: clamp(32px, 4.45vw, 48px);
  font-weight: 600;
  line-height: 1.167;
  letter-spacing: -0.02em;
  max-width: 1080px;
}

.about__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 48px;
}
.about__sub {
  max-width: 480px;
  font-size: 16px;
  color: var(--grey);
}

/* Stats: 120px / ls -0.04em como o original */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 110px;
}

.stat { padding-top: 8px; }

.stat__number {
  font-family: var(--font);
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat__number sup {
  font-size: 0.38em;
  color: var(--purple-bright);
  top: -1.2em;
}
.stat:first-child .stat__number span::after { content: "."; color: var(--purple-bright); }

.stat__divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0 16px;
}

.stat__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  max-width: 260px;
}

/* ============ SEÇÃO 3 — PROCESSO ============ */

.process {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.process .section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 72px;
}
.process .section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }

/* Título: 90px / lh 1.0 / ls -0.044em no original */
.process__title {
  font-family: var(--font);
  font-size: clamp(44px, 8.3vw, 90px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.044em;
}

.process__sub {
  font-size: 16px;
  color: var(--grey);
  max-width: 380px;
  justify-self: end;
  padding-bottom: 8px;
}

.process__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card: raio 20px, padding 32px, ~420px alt (medidas do original) */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(107, 33, 168, 0.06);
}

.card--featured {
  border-color: rgba(168, 85, 247, 0.35);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(107, 33, 168, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__index {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-dark);
}

/* Tag: 16px branca simples como "FOUNDATION" do original */
.card__tag {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}
.card--featured .card__tag { color: var(--purple-bright); }

/* Título do card: 36px / ls -0.02em */
.card__title {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: auto;
}

.card__text {
  font-size: 15px;
  color: var(--grey);
}

.card__progress {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.card__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  transition: width 1.4s var(--ease) 0.3s;
}
.card.in-view .card__bar i { width: var(--w); }

/* "30% complete": 14px branco no original */
.card__percent {
  font-size: 14px;
  color: #fff;
}

/* ============ RODAPÉ ============ */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey-dark);
}

/* ============ PÁGINAS INTERNAS ============ */

.page-hero {
  padding: 190px var(--pad) 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 60% at 80% -10%, rgba(107, 33, 168, 0.18), transparent 70%),
    var(--bg);
}
.page-hero__title {
  font-family: var(--font);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.page-hero__sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--grey);
  max-width: 520px;
}

.page-body {
  padding: 70px var(--pad) 120px;
  display: grid;
  grid-template-columns: minmax(0, 640px);
}

/* Formulário */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.form input,
.form select,
.form textarea {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
  background: rgba(107, 33, 168, 0.07);
}
.form select { appearance: none; cursor: pointer; }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { border: none; cursor: pointer; align-self: flex-start; margin-top: 8px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form__hint { font-size: 13px; color: var(--grey-dark); }

/* Regulamento */
.rules {
  display: flex;
  flex-direction: column;
  gap: 36px;
  counter-reset: rule;
}
.rule {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.rule::before {
  counter-increment: rule;
  content: "0" counter(rule);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  color: var(--purple-bright);
}
.rule h3 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.rule p, .rule li { font-size: 15px; color: var(--grey); }
.rule ul { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 6px; }

/* ============ SALA DO LEILÃO ============ */

.page-hero--live {
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* Site em disputa rodando ao fundo do hero, escurecido */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg iframe {
  width: 143%;
  height: 143%;
  border: 0;
  transform: scale(0.7);
  transform-origin: top left;
  filter: saturate(0.85);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.94) 0%, rgba(4, 4, 4, 0.8) 35%, rgba(4, 4, 4, 0.88) 70%, var(--bg) 100%),
    radial-gradient(ellipse 60% 60% at 80% -10%, rgba(107, 33, 168, 0.25), transparent 70%);
}
.page-hero--live .live-head {
  position: relative;
  z-index: 1;
}

.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.live-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 8px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-light);
  background: rgba(255, 255, 255, 0.03);
}
.live-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grey);
}
.live-chip--wait .dot { background: #eab308; }
.live-chip--live { border-color: rgba(168, 85, 247, 0.5); color: #fff; }
.live-chip--live .dot {
  background: var(--purple-bright);
  animation: pulse 1.2s ease-in-out infinite;
}
.live-chip--ended .dot { background: #ef4444; }

.live-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.live-timer span {
  font-family: var(--font);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live-timer span.is-urgent { color: var(--purple-bright); animation: urgentBlink 1s step-end infinite; }
@keyframes urgentBlink { 50% { opacity: 0.55; } }
.live-timer label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

.live-arena { padding: 60px var(--pad) 140px; }

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.live-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bid-panel {
  padding: 36px 32px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(107, 33, 168, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.bid-panel__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.bid-panel__value {
  font-family: var(--font);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.bid-panel__leader {
  margin-top: 8px;
  font-size: 15px;
  color: var(--grey-light);
}
.bid-panel__divider { height: 1px; background: var(--line); margin: 24px 0 16px; }
.bid-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--grey);
}
.bid-panel__meta strong { color: #fff; font-weight: 600; }

.bid-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
}

/* Card do vencedor */
.winner-card {
  padding: 36px 32px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse 110% 80% at 50% -10%, rgba(107, 33, 168, 0.3), transparent 70%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 60px rgba(107, 33, 168, 0.25);
}
.winner-card__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.winner-card__name {
  font-family: var(--font);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
.winner-card__value { font-size: 16px; color: var(--grey-light); }
.winner-card__value strong { color: #fff; font-family: var(--font); }
.winner-card__note {
  font-size: 14px;
  color: var(--grey);
  margin: 16px 0 24px;
}
.bid-form .btn[disabled] { opacity: 0.4; pointer-events: none; }

.quick-bids { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-bids button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--grey-light);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.quick-bids button:hover {
  border-color: var(--purple-bright);
  color: #fff;
  background: rgba(107, 33, 168, 0.12);
}

.bid-msg {
  font-size: 14px;
  color: #f87171;
}
.bid-msg.is-ok { color: var(--purple-bright); }

.live-right {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  overflow: hidden;
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.feed-head h2 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feed-count { font-size: 13px; color: var(--grey); }

.feed {
  list-style: none;
  max-height: 560px;
  overflow-y: auto;
}
.feed__empty {
  padding: 40px 26px;
  font-size: 14px;
  color: var(--grey-dark);
}
.feed__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: feedIn 0.5s var(--ease);
}
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feed__item.is-top {
  background: rgba(107, 33, 168, 0.12);
  border-left: 3px solid var(--purple-bright);
}
.feed__who { display: flex; flex-direction: column; min-width: 0; }
.feed__who strong { font-size: 15px; font-weight: 600; }
.feed__who span { font-size: 12px; color: var(--grey); }
.feed__val {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.feed__item.is-top .feed__val { color: var(--purple-bright); }
.feed__item time { font-size: 12px; color: var(--grey-dark); }

.footer-link { color: var(--grey-dark); }
.footer-link:hover { color: #fff; }

/* ============ POP-UP DE NOVO LANCE ============ */
.bidpop {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.bidpop.is-show {
  visibility: visible;
  animation: bidpopIn 0.35s var(--ease) forwards;
}
.bidpop.is-hide { animation: bidpopOut 0.4s var(--ease) forwards; }
@keyframes bidpopIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.9); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes bidpopOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
}
.bidpop__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 34px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(107, 33, 168, 0.5), transparent 70%),
    rgba(10, 10, 11, 0.95);
  box-shadow: 0 20px 60px rgba(107, 33, 168, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.bidpop__hammer { font-size: 30px; animation: hammerHit 0.5s var(--ease); }
@keyframes hammerHit {
  0% { transform: rotate(-35deg) translateY(-6px); }
  50% { transform: rotate(8deg) translateY(2px); }
  100% { transform: rotate(0deg); }
}
.bidpop__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.bidpop__value {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bidpop__name { font-size: 13px; color: var(--grey-light); }

/* botão de som — acima do chat, menor */
.sound-toggle {
  position: fixed;
  right: 20px;
  bottom: 74px;
  z-index: 57;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.9);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.sound-toggle:hover { border-color: var(--purple-bright); transform: scale(1.06); }
.sound-toggle.is-muted { opacity: 0.55; }
/* some quando o chat está aberto (para não sobrepor o painel) */
body.chat-open .sound-toggle { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ PORTÃO DE IDENTIFICAÇÃO ============ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 4, 4, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.gate.is-open { opacity: 1; visibility: visible; }

.gate__card--wide { width: min(560px, 100%) !important; max-height: 92vh; overflow-y: auto; }

.gate__card {
  position: relative;
  width: min(460px, 100%);
  padding: 44px 40px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(107, 33, 168, 0.3), transparent 65%),
    #0a0a0b;
  text-align: center;
}
.gate__mark {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(107, 33, 168, 0.55));
}
.gate__title {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.gate__sub {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 26px;
}
.gate .form { text-align: left; }
.gate .form .btn { align-self: stretch; justify-content: space-between; }

/* ============ IDENTIDADE NO FORM ============ */

.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  font-size: 14px;
  color: var(--grey-light);
}
.identity strong { color: #fff; }
.identity button {
  background: none;
  border: none;
  color: var(--purple-bright);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ PREVIEW DO LOTE (URL OCULTA) ============ */

.preview {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  background: #040404;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.preview.is-open { opacity: 1; visibility: visible; }

.preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: #0a0a0b;
}
.preview__info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.preview__info img { height: 34px; width: auto; }
.preview__info div { display: flex; flex-direction: column; min-width: 0; }
.preview__info strong {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
}
.preview__info span {
  font-size: 12px;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview__close { position: static; flex-shrink: 0; }

.preview__frame { flex: 1; background: #fff; }
.preview__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.lot-btn {
  margin-top: 26px;
  background: rgba(4, 4, 4, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.lot-btn .btn__chip { background: var(--purple-bright); color: #fff; }
.lot-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #040404;
}
.lot-btn:hover .btn__chip { background: #0a0a0b; }

/* ============ TICKER DE INFORMATIVOS ============ */

.ticker {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(107, 33, 168, 0.06);
  overflow: hidden;
}
.ticker__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.ticker__feed {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker__feed::-webkit-scrollbar { display: none; }
.ticker__item {
  font-size: 13px;
  color: var(--grey-light);
  flex-shrink: 0;
}
.ticker__item.is-new {
  color: #fff;
  font-weight: 500;
  animation: feedIn 0.5s var(--ease);
}

/* ============ PAINEL ADMIN ============ */

.admin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 60px var(--pad) 100px;
}

.admin-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
}
.admin-card h2 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.admin-card--wide { grid-column: 1 / -1; }

.admin-feed-head {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.admin-feed-head h2 { margin-bottom: 0; }
.admin-actions { display: flex; align-items: center; gap: 16px; }

.danger-btn {
  padding: 9px 16px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 100px;
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.danger-btn:hover { background: #ef4444; color: #fff; }
.danger-btn--sm { padding: 6px 12px; font-size: 12px; }

.admin-logout { height: 43px; }

.admin-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-color: rgba(168, 85, 247, 0.35);
  background:
    radial-gradient(ellipse 100% 120% at 50% -20%, rgba(107, 33, 168, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.admin-live__status {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.admin-live__clock {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.admin-live__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.go-live-btn {
  padding: 14px 26px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 28px rgba(107, 33, 168, 0.45);
}
.go-live-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(168, 85, 247, 0.55); }

.winner-list { display: flex; flex-direction: column; gap: 14px; }
.winner-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  background: rgba(107, 33, 168, 0.07);
}
.winner-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.winner-row__info strong { font-family: var(--font); font-size: 16px; }
.winner-row__info span { font-size: 13px; color: var(--grey); }
.winner-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.winner-row__right strong { font-family: var(--font); font-size: 20px; }
.winner-row__right span { font-size: 12px; color: var(--grey); }
.winner-row__right a { font-size: 12px; color: var(--purple-bright); }

/* Inscrições no admin */
.insc-list { display: flex; flex-direction: column; gap: 12px; }
.insc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.insc-row--pendente { border-color: rgba(234, 179, 8, 0.35); background: rgba(234, 179, 8, 0.05); }
.insc-row--aprovada { border-color: rgba(107, 33, 168, 0.35); background: rgba(107, 33, 168, 0.06); }
.insc-row--recusada { opacity: 0.55; }
.insc-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.insc-row__info strong { font-family: var(--font); font-size: 15px; }
.insc-row__info span { font-size: 13px; color: var(--grey); }
.insc-row__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insc-badge { font-size: 12px; color: var(--grey); }
.insc-badge--pendente { color: #eab308; }
.insc-badge--aprovada { color: var(--purple-bright); }
.insc-badge--recusada { color: #f87171; }
.insc-wa { font-size: 12px; color: var(--purple-bright); text-decoration: none; }
.insc-wa:hover { text-decoration: underline; }
.insc-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--grey-light);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.insc-btn:hover { border-color: #f87171; color: #f87171; }
.insc-btn--ok { border-color: rgba(168, 85, 247, 0.5); color: var(--purple-bright); }
.insc-btn--ok:hover { background: var(--purple-bright); color: #fff; border-color: var(--purple-bright); }
.admin-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 14px 22px;
  border-radius: 100px;
  background: #0a0a0b;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .admin__grid { grid-template-columns: 1fr; padding: 40px 20px 80px; }
}

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVO ============ */

@media (max-width: 1024px) {
  .stats { grid-template-columns: 1fr; gap: 48px; }
  .process__cards { grid-template-columns: 1fr; }
  .process .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
  }
  .process__sub { justify-self: start; padding-bottom: 0; }
  .card { min-height: auto; }
  .card__title { margin-top: 8px; }
  .awards { grid-template-columns: 1fr 1fr; }
  .award:nth-child(2n) { border-right: none; }
  .award:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .hero__card { min-height: min(80vh, 680px); border-radius: 28px; }
  .about__row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .site-header { padding: 18px 20px; }
  .header-meta { display: none; }
  .logo img { height: 24px; }
  .menu-overlay { padding: 120px 20px 32px; }
  .menu-foot { flex-wrap: wrap; gap: 16px; }
  .menu-foot a { margin-left: 0; width: 100%; }
  .modal__card { padding: 40px 22px 34px; }
  .modal__title { font-size: 24px; }
  .countdown { gap: 6px; }
  .countdown i { display: none; }
  .countdown__unit { min-width: 0; flex: 1; }
  .countdown__unit span { font-size: 30px; }
  .page-hero { padding: 124px 20px 40px; }
  .page-hero__sub { margin-top: 14px; }
  .live-status { align-items: flex-start; margin-top: 8px; }
  .live-timer { align-items: flex-start; }
  .live-grid { grid-template-columns: 1fr; gap: 16px; }
  .live-arena { padding: 36px 20px 80px; }
  .bid-panel, .bid-form { padding: 26px 20px; }
  .feed { max-height: 420px; }
  .ticker { padding: 12px 20px; gap: 12px; }
  .lot-btn { margin-top: 20px; }
  .winner-card { padding: 28px 20px; }
  .gate__card { padding: 36px 22px; }
  .site-footer { gap: 8px; padding: 24px 20px; }
  section { padding: 80px 20px; }
  .page-body { padding: 50px 20px 90px; }
  .form__row { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 88px 12px 0; }
  .hero__card { min-height: min(88vh, 720px); border-radius: 24px; }
  .hero__bg { background-image: var(--hero-image-mobile, var(--hero-image, none)),
    radial-gradient(120% 90% at 72% 12%, #c2410c 0%, #7c2d12 30%, #5b21b6 62%, #2e1065 100%); }
  .hero__content { padding: 44px 22px; }
  .hero__badge { margin-bottom: 22px; }
  .hero__actions { flex-direction: column; align-self: stretch; gap: 22px; }
  .hero__actions .btn,
  .hero__actions .btn-brutal { justify-content: center; width: 100%; }
  .hero__pixel { font-size: 1.05em; white-space: normal; }
  .awards { margin: 0 -20px; }
  .award { padding: 24px 20px; }
  .about__row { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; }
}

/* ============ CONFETE / EMOTES / CELEBRAÇÃO / CHAT ============ */

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.emotes-layer {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  overflow: hidden;
}
.emote-float {
  position: absolute;
  font-size: 34px;
  will-change: transform, opacity;
  animation: emoteUp 2.6s ease-out forwards;
}
@keyframes emoteUp {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  15%  { opacity: 1; transform: translateY(-30px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-320px) scale(1); }
}

/* barra de reações */
.react-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.react-bar button {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.react-bar button:hover { background: rgba(107, 33, 168, 0.2); transform: translateY(-2px) scale(1.1); }
.react-bar button:active { transform: scale(0.9); }
.react-bar--big { border: none; background: none; padding: 0; margin-top: 18px; gap: 10px; }
.react-bar--big button {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 26px;
}

/* celebração do vencedor */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.celebrate.is-open { opacity: 1; visibility: visible; }
.celebrate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.celebrate__card {
  position: relative;
  width: min(520px, 100%);
  padding: 48px 40px 40px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(107, 33, 168, 0.5), transparent 70%),
    #0a0a0b;
  box-shadow: 0 30px 90px rgba(107, 33, 168, 0.5);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.5s var(--ease);
}
.celebrate.is-open .celebrate__card { transform: scale(1); }
.celebrate__crown {
  display: inline-block;
  font-size: 64px;
  animation: crownPop 0.7s var(--ease);
}
@keyframes crownPop {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.25) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}
.celebrate__kicker {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.celebrate__name {
  font-family: var(--font);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.celebrate__value { font-size: 16px; color: var(--grey-light); }
.celebrate__value strong { color: #fff; font-family: var(--font); font-size: 20px; }
.celebrate__winner {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.celebrate__winner p { font-size: 15px; color: var(--grey-light); margin-bottom: 18px; }
.celebrate__crowd { margin-top: 24px; }
.celebrate__crowd p { font-size: 14px; color: var(--grey); }

/* chat flutuante */
.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 56;
  width: min(340px, calc(100vw - 40px));
}
.chat__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 100px;
  background: rgba(10, 10, 11, 0.95);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s var(--ease);
}
.chat__toggle:hover { border-color: var(--purple-bright); }
.chat__badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--purple-bright);
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.chat__panel {
  display: flex;
  flex-direction: column;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: chatIn 0.3s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.chat__close {
  background: none; border: none; color: var(--grey);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.chat__close:hover { color: #fff; }
.chat__messages {
  flex: 1;
  list-style: none;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat__msg { font-size: 14px; line-height: 1.4; animation: feedIn 0.3s var(--ease); }
.chat__msg strong { color: var(--purple-bright); font-weight: 600; margin-right: 6px; }
.chat__msg span { color: var(--grey-light); word-break: break-word; }
.chat__msg--me strong { color: #fff; }
.chat__empty { font-size: 13px; color: var(--grey-dark); text-align: center; margin: auto 0; }
.chat__form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.chat__form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
}
.chat__form input:focus { outline: none; border-color: var(--purple-bright); }
.chat__form button {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--purple-bright);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat__form button:hover { background: #6b21a8; }

@media (max-width: 768px) {
  .chat { right: 12px; left: 12px; bottom: 16px; width: auto; }
  .chat__panel { height: 60vh; }
  .sound-toggle { bottom: 70px; right: 12px; }
}

/* ============ CONVITE / PRESENÇA / BOAS-VINDAS ============ */

.invite-btn { margin-top: 12px; }

/* contador de presença ao vivo */
.presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(182, 255, 46, 0.35);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #d9ffb0;
  background: rgba(124, 201, 0, 0.08);
}
.presence-chip strong { color: #b6ff2e; font-family: var(--font); }
.presence-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b6ff2e;
  box-shadow: 0 0 0 0 rgba(182, 255, 46, 0.6);
  animation: presencePulse 1.8s ease-in-out infinite;
}
@keyframes presencePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 255, 46, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(182, 255, 46, 0); }
}

/* banner de boas-vindas por convite */
.invite-welcome {
  margin: 0 var(--pad);
  padding: 14px 20px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(107,33,168,0.25), transparent 70%), rgba(255,255,255,0.02);
  font-size: 15px;
  color: var(--grey-light);
  animation: feedIn 0.5s var(--ease);
}
.invite-welcome strong { color: #fff; }

/* modal de convite */
.invite-link {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.invite-link input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 13px;
}
.invite-link input:focus { outline: none; border-color: var(--purple-bright); }
.invite-link button {
  flex-shrink: 0;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: var(--purple-bright);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.invite-link button:hover { background: #6b21a8; }
.invite-link button.copied { background: #7cc900; }
.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.invite-actions .btn-brutal { width: 100%; }

/* ============ MODAL EXPLORAR O SITE (auto-abre) ============ */
.explore {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.explore.is-open { opacity: 1; visibility: visible; }
.explore__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: #0a0a0b;
}
.explore__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.explore__info img { height: 32px; width: auto; }
.explore__info div { display: flex; flex-direction: column; min-width: 0; }
.explore__info strong { font-family: var(--font); font-size: 15px; }
.explore__info span { font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore__cta {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.explore__enter {
  padding: 11px 22px;
  border: none;
  border-radius: 100px;
  background: var(--purple-bright);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.explore__enter:hover { background: #6b21a8; transform: translateY(-1px); }
.explore__frame { flex: 1; background: #fff; }
.explore__frame iframe { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 768px) {
  .invite-welcome { margin: 0 20px; }
  .explore__info span { display: none; }
  .explore__enter { padding: 10px 16px; font-size: 13px; }
}

/* ranking de convites no admin */
.conv-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.conv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.conv-pos { width: 32px; font-family: var(--font); font-weight: 600; color: var(--grey); }
.conv-row strong { flex: 1; font-size: 15px; }
.conv-val { font-size: 13px; color: var(--purple-bright); }

/* flash do cronômetro na prorrogação anti-sniping */
.live-timer span.is-extended {
  color: #b6ff2e;
  animation: extendFlash 0.5s ease-in-out 3;
}
@keyframes extendFlash {
  0%, 100% { transform: scale(1); text-shadow: none; }
  50% { transform: scale(1.12); text-shadow: 0 0 20px rgba(182,255,46,0.7); }
}

/* ============ DASHBOARD ADMIN — MÉTRICAS + COMPARTILHAR ============ */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.metric--online { border-color: rgba(168, 85, 247, 0.4); background: rgba(107, 33, 168, 0.08); }
.metric__value {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
.metric__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  animation: pulse 1.5s ease-in-out infinite;
}

.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.share-main { flex: 1; min-width: 260px; }
.share-sub { font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.share-linkrow { display: flex; gap: 10px; flex-wrap: wrap; }
.share-linkrow input {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
}
.share-copy { flex-shrink: 0; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.share-btn {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.share-btn:hover { border-color: var(--purple-bright); background: rgba(107, 33, 168, 0.15); }
.share-btn--wa { border-color: rgba(37, 211, 102, 0.5); }
.share-btn--wa:hover { background: rgba(37, 211, 102, 0.15); border-color: #25d366; }
.share-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.share-qr img {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: block;
}
.share-qr span { font-size: 12px; color: var(--grey-dark); }

/* CTA de rodapé "Ir para a Sala do Leilão" */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(107, 33, 168, 0.14), transparent 70%);
}
.footer-cta__text {
  font-family: var(--font);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .share-card { flex-direction: column; align-items: stretch; }
  .share-qr { order: -1; }
  .footer-cta { flex-direction: column; text-align: center; gap: 16px; }
}
