:root {
  --ink: #0a0a0a;
  --paper: #f3efe6;
  --gold: #be8b1e;
  --gold-deep: #9a7016;
  --sand: #e8dfd0;
  --line: rgba(10, 10, 10, 0.12);
  --card: #0a0a0a;
  --moss: #1f6b4a;
  --moss-bright: #2f9e6b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

.atmosphere {
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(190,139,30,.18), transparent 55%),
    linear-gradient(165deg, #f7f3ea 0%, #ebe3d4 55%, #e0d5c4 100%);
  min-height: 100vh;
}

.bio-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(243,239,230,.82), rgba(232,223,208,.92)),
    radial-gradient(circle at 50% 0%, #d9c9a8, #cbb895 40%, #b9a682 100%);
  background-attachment: fixed;
  color: #fff;
  padding: 1.25rem 0 3rem;
}

.wrap { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.wrap-sm { width: min(720px, calc(100% - 2rem)); margin-inline: auto; }
.wrap-xs { width: min(430px, calc(100% - 1.5rem)); margin-inline: auto; }

.brand {
  font-family: Syne, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero { padding: 4rem 0 3rem; }
.hero h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 1rem 0 0;
}
.hero p { max-width: 36rem; font-size: 1.15rem; line-height: 1.6; color: rgba(10,10,10,.75); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-moss { background: var(--ink); border-color: var(--ink); }

.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
}
.muted { color: rgba(10,10,10,.7); }

.steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid rgba(10,10,10,.2); padding-top: 1rem; }
.step .n { font-family: Syne, sans-serif; font-size: .8rem; letter-spacing: .2em; color: var(--gold-deep); font-weight: 700; }
.step h3 { font-family: Syne, sans-serif; margin: .6rem 0 .4rem; }

label { display: block; margin-bottom: 1rem; }
label span { display: block; font-size: .85rem; margin-bottom: .4rem; opacity: .8; font-weight: 500; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  padding: .85rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus { box-shadow: 0 0 0 2px var(--gold); }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.span-2 { grid-column: 1 / -1; }

.repeat-block {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  padding: 1rem;
  margin-bottom: .75rem;
}

.flash { padding: .9rem 1rem; margin: 1rem 0; }
.flash-ok { background: #e7f6ee; border: 1px solid #1f6b4a55; color: #145239; }
.flash-err { background: #fdeceb; border: 1px solid #b4231855; color: #8a1f16; }

.visibility-panel {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px dashed rgba(10,10,10,.2);
  background: rgba(255,255,255,.4);
}
.visibility-panel h4 {
  margin: 0 0 .75rem;
  font-family: Syne, sans-serif;
  font-size: .95rem;
}
.toggle-grid {
  display: grid;
  gap: .55rem .9rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .9rem;
  cursor: pointer;
}
.toggle input { width: auto; }
.toggle span { margin: 0; opacity: 1; }
.toggle-row {
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

/* ===== Perfil público (estilo cartão digital / QR) ===== */
.bio-stack { display: flex; flex-direction: column; gap: .85rem; }

.identity-card {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  padding: 3.2rem 1.25rem 1.25rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  margin-top: 2.4rem;
}
.identity-card .avatar {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #000;
  object-fit: cover;
  background: #333;
}
.identity-card .avatar-fallback {
  display: grid;
  place-items: center;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(145deg, #333, #111);
}
.identity-card h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}
.identity-card .role {
  margin: .45rem 0 0;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,.92);
}
.identity-card .about-short {
  margin: .7rem 0 0;
  font-style: italic;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.45;
}
.identity-card .slogan {
  margin: .65rem 0 0;
  font-weight: 700;
  font-style: italic;
}
.btn-save {
  display: block;
  margin-top: 1rem;
  width: 100%;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 14px;
  padding: .85rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}
.btn-save:hover { background: rgba(255,255,255,.08); }

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, filter .15s ease;
}
.action-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.action-gold { background: var(--gold); color: #111; }
.action-black { background: #000; color: #fff; }

.band {
  margin-top: .4rem;
  background: var(--gold);
  color: #111;
  text-align: center;
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: .85rem 1rem;
}

.content-card {
  background: #000;
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.content-card h3 {
  font-family: Syne, sans-serif;
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.content-card p {
  margin: .65rem 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  font-size: .95rem;
}
.content-card .mini-btn {
  display: block;
  margin-top: 1rem;
  text-align: center;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: .8rem 1rem;
}

.bio-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(20,20,20,.45);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: Syne, sans-serif;
}
.bio-foot a { color: inherit; }

/* Cartão QR impresso */
.sticker {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(10,10,10,.12);
}
.sticker .hdr {
  text-align: center; font-family: Syne, sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: #000;
}
.sticker .frame {
  border: 2px solid var(--ink); margin-top: .75rem; padding: 1rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: center;
}
.sticker h2 {
  font-family: Syne, sans-serif; font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800; text-transform: uppercase; line-height: 1.1; margin: 0; color: #000;
}
.sticker img { width: 100%; aspect-ratio: 1; display: block; border: 1px solid rgba(10,10,10,.08); }
.sticker .url { text-align: center; font-size: .7rem; color: rgba(10,10,10,.55); word-break: break-all; margin-top: .75rem; }

.reveal { animation: rise .7s ease-out both; }
.reveal-delay { animation: rise .85s ease-out .12s both; }
.reveal-late { animation: rise .9s ease-out .24s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .sticker { box-shadow: none !important; }
}

.topnav {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topnav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
}
.topnav-brand {
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-size: .85rem;
}
.topnav-links { display: flex; gap: .9rem; flex-wrap: wrap; }
.topnav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.topnav-links a:hover { color: var(--gold-deep); }

.auth-page { padding: 2.5rem 0 3.5rem; }
.auth-page h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 .5rem;
}
.auth-form { margin-top: 1.25rem; }
.password-field { display: block; margin-bottom: 1rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.5rem; }
.password-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: .4rem .55rem;
}
.profile-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.profile-list li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  padding: 1rem;
  margin-bottom: .75rem;
}
