/* NexABuild Conta — visual da marca (claro e escuro), amigável para todas as idades */
@font-face { font-family: Outfit; src: url(../../assets/fonts/outfit.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f1f5fb; --card: #fff; --ink: #1f2328; --muted: #5b6573; --line: #dde3ea;
  --blue: #ea580c; --blue-d: #c2410c; --green: #16a34a; --red: #dc2626; --amber: #f59e0b; --heart: #ea580c;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--blue); }
h1, h2, .brand { font-family: Outfit, system-ui, sans-serif; }
h1 { font-size: 26px; margin: 4px 0 8px; line-height: 1.2; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 6px 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #0a0a0c; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; user-select: none; }
.brand svg, .brand img { flex: none; display: block; }
.brand .wm { font: 800 19px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.brand .tagline { display: block; font: 600 8.5px/1 Outfit, system-ui, sans-serif; letter-spacing: 2.6px; color: #6b7489; margin-top: 4px; }
.topnav { display: flex; align-items: center; gap: 14px; }
.topnav a.me { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.topnav .link { color: #cbd5e1; }
.wrap { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 24px 16px 40px; }
.foot { text-align: center; padding: 18px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 12px rgba(15, 23, 42, .07); margin-bottom: 18px; }
.card.narrow { max-width: 480px; margin: 10px auto 18px; }
.card.center, .center { text-align: center; }
.hero-emoji, .big-emoji { font-size: 52px; line-height: 1.1; text-align: center; }
.auth .card h1 { text-align: center; }
.auth .card > .muted { text-align: center; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 22px; }

.form { display: flex; flex-direction: column; gap: 14px; text-align: left; margin: 12px 0; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 15px; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(234, 88, 12, .15); }
.form > .btn:not(.big), .form > h3 + .btn { align-self: flex-start; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--blue); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.birth { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; cursor: pointer; padding: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border: 0; border-radius: 26px;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #9a3412; transition: transform .06s, background .12s; }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a3412; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn.sm { padding: 6px 12px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn.ghost:hover { background: #fff7ed; }
.btn.danger { background: var(--red); box-shadow: 0 3px 0 #991b1b; }
.btn.danger.ghost { background: #fff; color: var(--red); border-color: var(--red); box-shadow: none; }
.btn.heart { background: linear-gradient(135deg, #ea580c, #7c3aed); box-shadow: 0 3px 0 #4c1d95; }
.link { border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link.danger, .danger { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 16px 0 6px; }
.actions .check { flex-basis: 100%; justify-content: center; text-align: left; display: flex; gap: 10px; }
.row-links { text-align: center; margin-top: 16px; font-size: 15px; }
.inline { display: inline; }

.err { color: #b42318; background: #fff1f0; border-radius: 10px; padding: 8px 12px; margin: 0; font-size: 14px; font-weight: 600; }
.ok { color: var(--green); font-size: 13px; font-weight: 700; }
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 600; background: #e8f7ee; color: #14532d; }
.flash.err { background: #fff1f0; color: #b42318; }
.flash.warn { background: #fff7e0; color: #7a4a00; }
.note { background: #fff7ed; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.note.kid { background: #fff7e0; font-size: 16px; }
.box { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; text-align: left; }
.box summary { cursor: pointer; font-weight: 700; }
.ticks { padding-left: 0; list-style: none; margin: 8px 0 12px; }
.ticks li { padding-left: 26px; position: relative; margin: 4px 0; }
.ticks li::before { content: '✔'; position: absolute; left: 4px; color: var(--green); font-weight: 900; }

/* Avatares */
.av { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ffedd5; font-size: 26px; line-height: 1; }
.av.sm { width: 26px; height: 26px; font-size: 16px; }
.av.lg { width: 54px; height: 54px; font-size: 32px; }
.av.xl { width: 92px; height: 92px; font-size: 56px; flex: 0 0 92px; }
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.av-opt, .amount, .method { position: relative; display: block; }
.av-opt input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.av-opt .av { width: 100%; height: auto; aspect-ratio: 1; cursor: pointer; border: 3px solid transparent; transition: transform .08s; }
.av-opt .av:hover { transform: scale(1.08); }
.av-opt input:checked + .av { border-color: var(--blue); background: #ffedd5; }
.av-opt input:focus-visible + .av { box-shadow: 0 0 0 4px rgba(234, 88, 12, .3); }

/* Perfil */
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile .who { flex: 1; min-width: 200px; }
.profile h1 { margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: #eef2f7; color: #334155; }
.badge.t-adulto { background: #ffedd5; color: #9a3412; }
.badge.t-jovem { background: #dcfce7; color: #166534; }
.badge.t-crianca { background: #fef3c7; color: #92400e; }
.badge.supporter { background: linear-gradient(135deg, #ffedd5, #ede9fe); color: #4c1d95; }
.badge.off { background: #fee2e2; color: #991b1b; }

.grid { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
.side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: 0 2px 12px rgba(15, 23, 42, .07); }
.side a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.side a:hover { background: #fff7ed; }
.cols { min-width: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.ward { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ward-info { flex: 1; min-width: 180px; }
.ward-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ward-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.ward-actions details { position: relative; }
.ward-actions summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); }
.ward-actions details .form { flex-direction: row; margin: 8px 0 0; }
.danger-zone summary { color: var(--red); }

/* Doação */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.amount input, .method input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.amount span { display: block; text-align: center; padding: 14px 4px; border: 2px solid var(--line); border-radius: 14px; font-weight: 800; cursor: pointer; }
.amount input:checked + span { border-color: var(--blue); background: #fff7ed; color: var(--blue-d); }
.form label.method { display: block; margin-bottom: 8px; }
.method span { display: flex; flex-direction: column; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; }
.method small { color: var(--muted); }
.method input:checked + span { border-color: var(--blue); background: #fff7ed; }
.amount input:focus-visible + span, .method input:focus-visible + span { box-shadow: 0 0 0 4px rgba(234, 88, 12, .3); }
.qr { display: block; margin: 10px auto; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; max-width: 100%; height: auto; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 3px solid #cbd5e1; border-top-color: var(--blue); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; }
  .side a { white-space: nowrap; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .avatars { grid-template-columns: repeat(4, 1fr); }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .tbl { font-size: 14px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Assistente de builds */
.setup-steps { padding-left: 1.2em; }
.setup-steps > li { margin: 14px 0; }
.setup-done { list-style: none; padding: 0; }
.setup-test strong { word-break: break-word; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.btn-engine { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; background: #ea580c; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.btn-engine:hover { background: #c2410c; }
@media (max-width: 520px) { .top { flex-wrap: wrap; } .topnav { gap: 10px; } }

/* Honraria */
.honraria-lista { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.honraria-item { display: flex; align-items: flex-start; gap: 16px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.honraria-foto { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .15); }
.honraria-texto { min-width: 0; }
.honraria-texto h3 { margin: 2px 0 6px; font-size: 17px; }
.honraria-texto p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.honraria-autor { background: linear-gradient(135deg, #fff7ed, #ede9fe); border-color: #fed7aa; }
.honraria-agradecimento { text-align: center; font-size: 15px; color: var(--muted); margin-top: 20px; font-style: italic; }
@media (max-width: 480px) { .honraria-item { gap: 12px; padding: 12px; } .honraria-foto { width: 56px; height: 56px; } }

/* marca NexABuild */
.top { border-bottom: 1px solid #25253a; }
.brand .wm-a { background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.btn:hover { background: linear-gradient(135deg, #fbbf24, #f97316); }
.btn.ghost, .btn.ghost:hover { background: #fff; }
.btn.danger { background: var(--red); }

/* Layout Full-Width para Painel de Controle Administrativo e Moderação */
body.admin-full {
  background: #f8fafc;
}
body.admin-full .top {
  padding: 12px 28px;
}
body.admin-full .wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 28px 48px;
}
body.admin-full .card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  padding: 24px;
}
body.admin-full .admin-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  flex-wrap: wrap;
}
body.admin-full .tbl {
  width: 100%;
}
