/* ═══════════════════════════════════════════════════════════
   AUTH · MARKETPLACE · CRIAR EXPERIÊNCIA · GLOBAL BG
   Marcianus Experience v3
═══════════════════════════════════════════════════════════ */

/* ── Global Background Gradient (all screens) ─────────────── */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(135deg, rgba(93, 63, 211, 0.18) 0%, rgba(10, 10, 18, 0.95) 60%),
    linear-gradient(rgba(255, 215, 0, 0.04), transparent);
  background-size: cover;
  background-position: center center;
  pointer-events: none;
}

/* Remove old scene-based bg so gradient shows */
.scene {
  z-index: -1;
}

/* ── Nav user avatar ──────────────────────────────────────── */
.nav-user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--border-accent);
  transition: border-color 0.2s;
}
.nav-user-av:hover { border-color: var(--purple-soft); }

/* Mobile menu actions */
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-1);
  margin-top: 8px;
}

/* ── AUTH SHELL ───────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 70px; /* nav height */
}

.auth-left {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 64px 48px;
  background: linear-gradient(160deg, rgba(93,63,211,0.12) 0%, transparent 60%);
  border-right: 1px solid var(--border-1);
}
@media (min-width: 900px) {
  .auth-left { display: flex; }
}

.auth-brand-big { margin-bottom: 8px; }

.auth-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

.auth-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 400px;
}

.auth-trust {
  display: flex;
  gap: 32px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
}
.auth-trust .cell { display: flex; flex-direction: column; gap: 4px; }
.auth-trust .v { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--text-1); }
.auth-trust .l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }

.auth-right {
  flex: 0 0 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
@media (max-width: 900px) {
  .auth-right { flex: 1; }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 32px;
}

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--purple); }
.form-input::placeholder { color: var(--text-3); }
.form-input.input-err { border-color: var(--danger); }
.field-err { font-size: 11px; color: var(--danger); margin-top: 2px; }

select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

.auth-show-pass {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.08em;
}

.auth-alt {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 20px 0 12px;
  position: relative;
}
.auth-alt::before,
.auth-alt::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-1);
}
.auth-alt::before { left: 0; }
.auth-alt::after { right: 0; }

.auth-sso {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-msg-ok {
  background: rgba(0,196,140,0.08);
  border: 1px solid rgba(0,196,140,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--success);
  margin-bottom: 12px;
}

.auth-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Checkbox */
.chk-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border-2);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 800;
  transition: border-color 0.2s, background 0.2s;
}
.chk-box.on {
  border-color: var(--purple);
  background: var(--purple);
}

/* ── MARKETPLACE ──────────────────────────────────────────── */
.mk-hero {
  padding-top: 140px !important;
  padding-bottom: 80px !important;
}

/* Tab switcher */
.mp-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 4px;
}
.mp-tab {
  padding: 8px 20px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.18s, color 0.18s;
}
.mp-tab.active {
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}
.mp-tab:hover:not(.active) { background: var(--surface-3); color: var(--text-1); }

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.offer-card:hover { border-color: var(--border-purple); transform: translateY(-2px); }
.offer-card.featured { border-color: rgba(255,215,0,0.35); }

.offer-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
}

.offer-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--text-1);
  margin: 12px 0;
  line-height: 1;
}
.offer-per {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 4px;
  font-family: var(--font-body);
}

.offer-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.offer-features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.offer-features li::before {
  content: '→';
  color: var(--purple-soft);
  font-size: 11px;
  flex-shrink: 0;
}

/* Cart bar */
.cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-1);
  border: 1px solid var(--border-purple);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  z-index: 200;
  max-width: 600px;
  width: calc(100% - 48px);
}
.cart-items { font-size: 13px; color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-total { font-family: var(--font-display); font-weight: 900; color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.cart-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── CRIAR EXPERIÊNCIA ────────────────────────────────────── */
.onb-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
}

.onb-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 40px;
}

/* Progress dots */
.onb-progress { display: flex; gap: 8px; margin-bottom: 24px; }
.onb-prog-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2);
  transition: background 0.2s, width 0.2s;
}
.onb-prog-dot.active { background: var(--purple); width: 24px; border-radius: 4px; }
.onb-prog-dot.done { background: var(--success); }

.onb-timer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: right;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}

/* Onboarding options */
.onb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.onb-options.onb-multi { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.onb-opt {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.onb-opt h5 { font-size: 13px; font-weight: 700; margin: 0 0 4px; color: var(--text-1); }
.onb-opt p { font-size: 11px; color: var(--text-3); margin: 0; line-height: 1.4; }
.onb-opt:hover { border-color: var(--border-2); background: var(--surface-3); }
.onb-opt.sel { border-color: var(--purple); background: rgba(123,97,255,0.08); }
.onb-opt.sel h5 { color: var(--purple-soft); }

/* CE — Criar Experiência */
.ce-progress {
  height: 3px;
  background: var(--border-1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.ce-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-soft));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ce-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
}

.ce-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.ce-opts.multi { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.ce-opt {
  background: var(--surface-2);
  border: 2px solid var(--border-1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.ce-opt:hover { border-color: var(--border-2); transform: translateY(-1px); }
.ce-opt.sel { border-color: var(--purple); background: rgba(123,97,255,0.1); }
.ce-opt h5 { font-size: 13px; font-weight: 700; margin: 0 0 4px; color: var(--text-1); }
.ce-opt p { font-size: 11px; color: var(--text-3); margin: 0; line-height: 1.4; }
.ce-opt.sel h5 { color: var(--purple-soft); }

/* Hexis panel in CE */
.ce-hexis {
  background: linear-gradient(135deg, rgba(123,97,255,0.08), rgba(93,63,211,0.04));
  border: 1px solid var(--border-purple);
  border-radius: 14px;
  padding: 20px;
}
.ce-hexis-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ce-hexis-msg {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Brief summary (after submission) */
.brief-summary {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
}
.brief-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
}
.brief-row:last-child { border-bottom: none; }
.brief-row span { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.brief-row strong { color: var(--text-1); font-weight: 700; }

/* ── PAGE HERO (shared) ───────────────────────────────────── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: auto;
}
.page-hero .lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 580px;
  margin-top: 16px;
}

/* ── PROOF SECTION PURPLE ─────────────────────────────────── */
.big.purple { color: var(--purple-soft); }

/* ── FINAL CTA ────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 80px 24px;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.final-cta p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ── PROOF / METRICS SECTION ─────────────────────────────── */
.proof { padding: 80px 0; }

.proof-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.proof-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
}
.big.success { color: var(--success); }
.big.gold    { color: var(--gold); }
.big.purple  { color: var(--purple-soft); }

.proof-cell .caption {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 220px;
}

.proof-cell .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 3px 10px;
}


/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-card { padding: 24px 20px; }
  .ce-card { padding: 24px 20px; }
  .offer-grid { grid-template-columns: 1fr; }
  .ce-opts { grid-template-columns: 1fr; }
  .onb-options { grid-template-columns: 1fr; }
  .cart-bar { flex-direction: column; text-align: center; gap: 12px; }
  .auth-sso { grid-template-columns: 1fr; }
}
