:root {
  --bg: #050508;
  --bg-2: #0a0b10;
  --surface: #0f1118;
  --surface-2: #151821;
  --surface-3: #1c2030;
  --fg: #f0f4f8;
  --muted: #8b95a8;
  --blue: #00d4ff;
  --blue-dim: rgba(0, 212, 255, 0.15);
  --blue-glow: rgba(0, 212, 255, 0.35);
  --red: #ff2e4d;
  --red-dim: rgba(255, 46, 77, 0.18);
  --white: #ffffff;
  --line: #1e2433;
  --line-strong: #2a3347;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 46, 77, 0.04), transparent);
}

img, video {
  max-width: 100%;
  display: block;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.topo {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topo-miolo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0;
}

.marca {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.marca .selo-topo {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marca strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.acoes {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu {
  display: flex;
  gap: 4px;
  flex: 1 0 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }

.menu a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.menu a:hover { color: var(--fg); background: var(--surface); }
.menu a[aria-current="page"] {
  color: var(--bg);
  background: var(--blue);
  font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #021018;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.secundario {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn.secundario:hover { border-color: var(--blue); color: var(--blue); }

.btn.vermelho {
  background: var(--red);
  color: #fff;
}
.btn.vermelho:hover { filter: brightness(1.1); }

.btn.bloco { width: 100%; }
.btn.miudo { min-height: 36px; font-size: 0.82rem; padding: 0 12px; }

.btn-user {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 0.82rem;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}
.btn-user:hover { border-color: var(--blue); color: var(--blue); }
.btn-user.has-user {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ========== HERO ========== */
.hero {
  padding: 40px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.selo {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
}

.chamada {
  margin-top: 14px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-botoes {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Visual cyber */
.cyber-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.cyber-ring {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--blue), transparent 40%, var(--red), transparent 70%);
  mask: radial-gradient(circle, transparent 55%, #000 56%, #000 62%, transparent 63%);
  animation: spin 18s linear infinite;
  opacity: 0.7;
}

.cyber-core {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--blue);
  text-shadow: 0 0 20px var(--blue-glow);
}

@keyframes spin { to { transform: rotate(1turn); } }

/* ========== ATALHOS / CARDS HOME ========== */
.atalhos {
  display: grid;
  gap: 14px;
  margin: 28px 0 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .atalhos { grid-template-columns: 1fr 1fr; }
}

.atalho {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.atalho::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
}

.atalho:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -12px var(--blue-glow);
}
.atalho:hover::before { opacity: 1; }

.atalho .selo { margin-bottom: 6px; }
.atalho h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
}
.atalho p { color: var(--muted); font-size: 0.92rem; position: relative; }

/* ========== SEÇÃO PRODUTOS ========== */
.secao {
  margin: 28px 0 12px;
}

.secao h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.metodo-selector {
  display: flex;
  gap: 8px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}

.btn-metodo {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s;
}
.btn-metodo.ativo,
.btn-metodo:hover {
  background: var(--blue);
  color: #021018;
  border-color: var(--blue);
}

/* ========== GRADE DE CARDS ========== */
.grade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 520px) {
  .grade { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grade { grid-template-columns: 1fr 1fr 1fr; }
}

.grade:not(:has(:nth-child(2))) {
  grid-template-columns: 1fr;
  max-width: 340px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6);
}

.card.destaque {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15);
}

.card .foto {
  position: relative;
  width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}

.card .foto img,
.card .foto video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.card .foto.vazia {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.card .corpo {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card .nome {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.card .detalhe {
  font-size: 0.8rem;
  color: var(--muted);
}

.card .preco {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--blue);
  margin-top: 4px;
}

.card .acoes-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-like:hover { border-color: var(--red); color: var(--red); }
.btn-like.liked {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}
.btn-like .num { font-variant-numeric: tabular-nums; }

.card .btn-pedir {
  flex: 1;
  min-height: 36px;
  font-size: 0.85rem;
}

/* ========== COMENTÁRIOS ========== */
.comentarios-area {
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn-ver-comentarios {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
}

.modal-comentarios {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: end center;
  padding: 0;
}

@media (min-width: 600px) {
  .modal-comentarios { place-items: center; padding: 20px; }
}

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 600px) {
  .modal-box { border-radius: var(--radius); max-height: 80vh; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.btn-fechar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.2rem;
}
.btn-fechar:hover { background: var(--surface); color: var(--fg); }

.lista-comentarios {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comentario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.comentario .autor {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.comentario .texto {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.45;
  word-break: break-word;
}

.comentario .hora {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 6px;
}

.form-comentario {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-comentario textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  resize: vertical;
  color: var(--fg);
}
.form-comentario textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ========== MODAL USERNAME ========== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-user {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
  padding: 24px;
}

.modal-user h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-user p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.modal-user input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  color: var(--fg);
}
.modal-user input:focus {
  outline: none;
  border-color: var(--blue);
}

.modal-user .erro {
  color: var(--red);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* ========== FOOTER ========== */
.rodape {
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.rodape p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.rodape a {
  color: var(--muted);
  transition: color 0.2s;
}
.rodape a:hover { color: var(--blue); }

.rodape .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 8px;
}

/* ========== UTIL ========== */
.aviso {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 400;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================================
   ZYKLON VENDAS — LAYOUT RESPONSIVO DE CONTAS
   Compatível com login, cadastro, recuperação e perfil.
   Não altera os IDs nem a lógica JavaScript existente.
   ========================================================= */
html { min-width: 320px; }
body { min-width: 320px; overflow-x: hidden; }
.wrap { width: min(1120px, calc(100% - 40px)); }
.topo-miolo { min-width: 0; }
.topo .marca { min-width: 0; }
.topo .acoes { flex-wrap: wrap; }
.topo .menu { min-width: 0; -webkit-overflow-scrolling: touch; }

body[data-account-page] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-account-page] .topo { flex: 0 0 auto; }
body[data-account-page] .conta-wrap {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 80px) 0;
}
body[data-account-page] .conta-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 460px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(21,24,33,.97), rgba(10,11,16,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.36), 0 0 55px rgba(0,212,255,.045);
}
body[data-account-page] .conta-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
body[data-account-page] .conta-card h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
body[data-account-page] .conta-card > p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 26px;
}
body[data-account-page] #account-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
body[data-account-page] #account-form label {
  display: block;
  margin: 0 0 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fg);
}
body[data-account-page] #account-form input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  margin: 0 0 19px;
  background: rgba(5,5,8,.66);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--fg);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
body[data-account-page] #account-form input::placeholder { color: var(--muted); }
body[data-account-page] #account-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
body[data-account-page] #account-form .btn[type='submit'] {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  margin-top: 4px;
  text-align: center;
}
body[data-account-page] .conta-msg {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  overflow-wrap: anywhere;
  font-size: .9rem;
}
body[data-account-page] .conta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
body[data-account-page] .conta-links a { color: var(--blue); }
body[data-account-page] .conta-links a:hover { text-decoration: underline; }
body[data-account-page] .conta-links .btn { min-height: 38px; }
body[data-account-page] #profile-email,
body[data-account-page] #profile-username {
  max-width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (min-width: 1000px) {
  .atalhos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topo .menu { justify-content: center; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 28px); }
  .topo-miolo { gap: 10px; }
  .topo .acoes { justify-content: flex-end; }
  .topo .menu { flex-wrap: nowrap; }
  body[data-account-page] .conta-wrap {
    width: calc(100% - 28px);
    padding: 24px 0 40px;
    place-items: start center;
  }
  body[data-account-page] .conta-card { padding: 24px 20px; border-radius: 16px; }
  body[data-account-page] .conta-card::before { border-radius: 16px 16px 0 0; }
  body[data-account-page] .conta-card > p { margin-bottom: 22px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  .topo .acoes { width: 100%; justify-content: flex-start; }
  body[data-account-page] .conta-card { padding: 22px 16px; }
  body[data-account-page] .conta-links { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cyber-ring { animation: none; }
}