:root {
  --fundo: #0b0a10; --painel: #16141f; --painel-2: #1d1a29; --linha: #2b2838; --texto: #fafafa; --texto-2: #b7b3c6;
  --ouro: #ffc83d; --ouro-tinta: #1d1400; --vermelho: #ff2d4a; --verde: #19e36b; --aviso: #ff9f1c;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 16px/1.55 Inter, system-ui, sans-serif; overflow-x: hidden;
  background-image: radial-gradient(900px 420px at 15% -120px, #ff2d4a26, transparent 70%), radial-gradient(900px 420px at 85% -120px, #19e36b22, transparent 70%);
  background-repeat: no-repeat; min-height: 100vh; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topo { max-width: 720px; margin: 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.marca { font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; white-space: nowrap; display: inline-block; line-height: 44px; }
.marca b { color: var(--ouro); }
.voltar { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linha); background: var(--painel); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.voltar:hover { border-color: #ffc83d66; }

main { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 9vw, 52px); line-height: 1; letter-spacing: -1.2px; margin: 18px 0 10px; overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--ouro); }
h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.4px; margin: 0 0 4px; line-height: 1.1; }
.sub { color: var(--texto-2); margin: 0 0 18px; }
.miuda { color: var(--texto-2); font-size: 13.5px; margin: 6px 0 0; }

.cartao { background: var(--painel); border: 1px solid var(--linha); border-radius: 20px; padding: 20px 16px; margin-top: 14px; }
.cartao > h2 + .sub { margin-bottom: 14px; }

/* abas */
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--fundo); border: 1px solid var(--linha); border-radius: 14px; margin-bottom: 18px; }
.abas button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--texto-2); font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; }
.abas button[aria-selected="true"] { background: var(--ouro); color: var(--ouro-tinta); }

/* formulários */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
label .opc { font-weight: 400; color: var(--texto-2); }
input[type=text], input[type=email], input[type=password], input[type=url] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo); color: var(--texto);
  font: 400 16px Inter, system-ui, sans-serif; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.dica { font-weight: 400; font-size: 13px; color: var(--texto-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--linha);
  background: var(--painel-2); color: var(--texto); font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #ffffff33; }
.btn.prim { background: var(--ouro); border-color: var(--ouro); color: var(--ouro-tinta); font-weight: 800; }
.btn.prim:hover { filter: brightness(1.06); }
.btn.perigo { color: #ff7a8c; border-color: #ff2d4a55; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.cheio { width: 100%; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; margin: 0; }
.msg.erro { background: #ff2d4a1f; border: 1px solid #ff2d4a66; color: #ff98a6; }
.msg.ok { background: #19e36b1a; border: 1px solid #19e36b55; color: #7cf2ab; }
.msg.aviso { background: #ff9f1c1a; border: 1px solid #ff9f1c66; color: #ffc27a; }

/* perfil */
.perfil { display: flex; gap: 16px; align-items: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #ff2d4a, #ffc83d 55%, #19e36b); font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--ouro-tinta); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perfil-txt { min-width: 0; }
.perfil-nome { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6.5vw, 32px); line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.perfil-link { display: inline-block; margin-top: 4px; color: var(--texto-2); font-size: 14.5px; overflow-wrap: anywhere; }
.perfil-email { color: var(--texto-2); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.selo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: .4px; padding: 3px 10px; border-radius: 999px; }
.selo.verif { color: var(--verde); background: #19e36b1a; border: 1px solid #19e36b55; }
.selo.adm { color: var(--ouro); background: #ffc83d1a; border: 1px solid #ffc83d55; }
.selo.oc { color: #ff98a6; background: #ff2d4a1a; border: 1px solid #ff2d4a55; }
.selo svg { width: 13px; height: 13px; }

/* foto */
.recorte-area { display: grid; gap: 14px; justify-items: center; margin-top: 4px; }
.recorte { position: relative; width: min(280px, 100%); aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; }
.recorte:active { cursor: grabbing; }
.recorte canvas { width: 100%; height: 100%; display: block; }
.recorte::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px #0b0a1099; pointer-events: none; border: 2px solid #ffffffaa; }
.zoom { display: flex; align-items: center; gap: 10px; width: min(280px, 100%); font-size: 13px; color: var(--texto-2); }
.zoom input { flex: 1; accent-color: var(--ouro); min-height: 44px; }
.preview-linha { display: flex; align-items: center; gap: 12px; color: var(--texto-2); font-size: 13px; }
.preview-linha canvas { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--linha); }
.arquivo { position: relative; }
.arquivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* números */
.temps { display: grid; gap: 10px; }
.temp { background: var(--painel-2); border: 1px solid var(--linha); border-radius: 16px; padding: 14px; }
.temp-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.temp h3 { margin: 0; font-size: 16px; }
.lado-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linha); color: var(--texto-2); }
.temp-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.temp-num div { min-width: 0; }
.temp-num dt { font-size: 12px; color: var(--texto-2); }
.temp-num dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.temp-num dd.ouro { color: var(--ouro); }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); font-size: 14.5px; }
.lista li:last-child { border-bottom: 0; }
.lista .l-esq { min-width: 0; }
.lista .l-esq b { display: block; overflow-wrap: anywhere; }
.lista .l-esq span { color: var(--texto-2); font-size: 13px; }
.lista .l-dir { text-align: right; flex: none; font-weight: 700; }
.lista .l-dir span { display: block; font-weight: 400; color: var(--texto-2); font-size: 12.5px; }
.vazio { color: var(--texto-2); font-size: 14.5px; margin: 0; }
.duas { display: grid; gap: 14px; }
h3.mini { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--texto-2); margin: 20px 0 4px; }

.adm-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: #ffc83d55; background: linear-gradient(135deg, #ffc83d14, transparent); }
.adm-cta p { margin: 0; font-weight: 600; }

.carregando { color: var(--texto-2); padding: 40px 0; text-align: center; }
footer { text-align: center; color: var(--texto-2); font-size: 13px; padding: 0 16px 36px; max-width: 720px; margin: 0 auto; }

@media (min-width: 640px) {
  .cartao { padding: 24px; }
  .avatar { width: 104px; height: 104px; font-size: 40px; }
  .duas { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 359px) { .voltar .larga { display: none; } .voltar { padding: 0 14px; } }
a.perfil-link { text-decoration: underline; text-underline-offset: 3px; color: var(--texto); display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0; }
a.perfil-link:hover { color: var(--ouro); }
.rodape-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
#rei-cancelar { display: inline-flex; align-items: center; min-height: 44px; }
