/* ============================================================
   Devonew — Testemunhos
   Member mural + "Conte sua Benção" form  ·  Church panel moderation
   Reuses tokens + .btn/.card/.chip/.avatar/.st from styles.css/admin.css
   ============================================================ */

/* ---------- shared category tag ---------- */
.tcat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 600;
  color: var(--accent-strong); background: var(--accent-tint);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex: none;
}
.tcat .ico { width: 13px; height: 13px; }

/* ============================================================
   MEMBER · Mural (feed)
   ============================================================ */
.mural-feed { display: flex; flex-direction: column; gap: 16px; }

.testi-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 22px 22px 16px; position: relative; overflow: hidden;
}
.testi-card.is-pending { background: var(--bg-2); border-style: dashed; box-shadow: none; }

.testi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testi-head .avatar.anon {
  background: var(--surface-2); color: var(--accent-strong);
  font-size: 18px; border: 1px solid var(--line);
}
.testi-id { min-width: 0; flex: 1; }
.testi-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.testi-when { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 2px; }

.testi-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 8px; text-wrap: balance;
}
.testi-body {
  font-family: var(--font-scripture); font-size: 16px; line-height: 1.62;
  color: var(--ink-2); margin: 0; text-wrap: pretty;
}

.testi-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.glory-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-text); font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  transition: transform .12s var(--ease), background .16s var(--ease), color .16s, border-color .16s;
}
.glory-btn .ico { color: var(--faint); transition: color .16s var(--ease), transform .25s var(--ease); }
.glory-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.glory-btn:hover .ico { color: var(--accent-strong); }
.glory-btn:active { transform: scale(0.95); }
.glory-btn.on { background: var(--accent-tint); border-color: transparent; color: var(--accent-strong); }
.glory-btn.on .ico { color: var(--accent-strong); transform: scale(1.12) translateY(-1px); }
.glory-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); white-space: nowrap; }

.pending-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: oklch(0.55 0.11 70);
  background: oklch(0.96 0.04 78); padding: 5px 11px; border-radius: 999px;
}
[data-theme="dark"] .pending-flag { color: oklch(0.78 0.1 75); background: oklch(0.33 0.05 75); }

/* mural empty / intro strip */
.mural-intro {
  display: flex; align-items: center; gap: 14px;
  background:
    radial-gradient(120% 120% at 90% -20%, var(--accent-tint), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; margin-bottom: 18px;
}
.mural-intro .ico-wrap {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong)); color: var(--accent-ink);
}
.mural-intro .mi-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mural-intro .mi-s { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* ============================================================
   MEMBER · "Conte sua Benção" form
   ============================================================ */
.testi-form { display: flex; flex-direction: column; }
.tf-lab {
  display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 22px 0 9px;
}
.tf-lab:first-child { margin-top: 0; }
.tf-lab .req { color: var(--accent-strong); }

.tf-input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink); font-family: var(--font-text); font-size: 16px; padding: 13px 15px;
  outline: none; transition: border-color .16s var(--ease);
}
.tf-input:focus { border-color: var(--accent); }
.tf-input::placeholder { color: var(--faint); }
.tf-textarea {
  min-height: 150px; resize: vertical; line-height: 1.6;
  font-family: var(--font-scripture); font-size: 16.5px;
}
.tf-count { font-family: var(--font-mono); font-size: 11px; color: var(--faint); text-align: right; margin-top: 6px; }

.tf-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .14s var(--ease);
}
.tf-cat .ico { color: var(--faint); transition: color .14s var(--ease); }
.tf-cat:hover { border-color: var(--line-strong); }
.tf-cat.on { border-color: transparent; background: var(--accent-tint); color: var(--accent-strong); }
.tf-cat.on .ico { color: var(--accent-strong); }

/* anonymity toggle */
.tf-anon {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  margin-top: 22px; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.tf-anon.on { border-color: var(--accent); background: var(--accent-tint); }
.tf-anon .tf-check {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: transparent;
  display: flex; align-items: center; justify-content: center; transition: all .16s var(--ease);
}
.tf-anon.on .tf-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tf-anon-body { flex: 1; min-width: 0; }
.tf-anon-t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tf-anon-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.tf-submit { width: 100%; justify-content: center; margin-top: 26px; }
.tf-fine {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center;
}

/* sent confirmation */
.tf-sent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 8px 8px; }
.tf-sent-ico {
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 18px;
}
.tf-sent h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.tf-sent p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 auto 22px; max-width: 34ch; }
.tf-sent .xp-note {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-tint); padding: 8px 15px; border-radius: 999px;
}

/* ============================================================
   PANEL · Central de Moderação
   ============================================================ */
.mod-list { display: flex; flex-direction: column; }
.mod-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.mod-row:last-child { border-bottom: none; }
.mod-row .avatar.anon { background: var(--bg-2); color: var(--accent-strong); font-size: 16px; }
.mod-main { flex: 1; min-width: 0; }
.mod-top { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; margin-bottom: 5px; }
.mod-author { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.mod-when { font-family: var(--font-mono); font-size: 11px; color: var(--faint); white-space: nowrap; margin-left: auto; }
.mod-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin: 2px 0 4px; }
.mod-snippet { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* published / archived rows reuse .tbl + .st pills */
.mod-pub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .mod-pub-grid { grid-template-columns: 1fr 1fr; } }
.mod-pub {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.mod-pub .pub-head { display: flex; align-items: center; gap: 10px; }
.mod-pub .pub-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.mod-pub .pub-body { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-pub .pub-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.pub-react { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); }

.btn-glory { background: var(--accent); color: var(--accent-ink); }
.btn-glory:hover { background: var(--accent-strong); }
.btn-edit { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-edit:hover { background: var(--bg-2); }
.btn-archive { background: none; color: var(--muted); }
.btn-archive:hover { background: var(--bg-2); color: oklch(0.55 0.14 35); }

/* moderation empty */
.mod-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 16px; text-align: center; color: var(--muted); }
.mod-empty .ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-strong); }
.mod-empty .et { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ---------- read / edit modal ---------- */
.tmod-overlay {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: oklch(0.2 0.01 60 / 0.5); backdrop-filter: blur(5px); padding: 20px;
  animation: supFade .22s var(--ease) both;
}
.tmod {
  width: 100%; max-width: 560px; max-height: min(88vh, 800px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: supPop .3s var(--ease) both;
}
.tmod-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.tmod-head .avatar.anon { background: var(--bg-2); color: var(--accent-strong); font-size: 16px; }
.tmod-head-id { flex: 1; min-width: 0; }
.tmod-head-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.tmod-head-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tmod-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.tmod-close:hover { background: var(--line); color: var(--ink); }

.tmod-scroll { overflow-y: auto; padding: 22px 22px 24px; }
.tmod-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 14px; text-wrap: balance; }
.tmod-body { font-family: var(--font-scripture); font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0; text-wrap: pretty; white-space: pre-wrap; }
.tmod-anon-note {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12.5px; color: var(--muted); background: var(--bg-2); border-radius: var(--r-sm); padding: 10px 13px;
}

.tmod-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.tmod-foot .spacer { flex: 1; }

/* edit mode inside modal */
.tmod-edit-lab { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.tmod-edit-lab.mt { margin-top: 16px; }
.tmod-edit-banner {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-size: 12.5px; color: var(--accent-strong); background: var(--accent-tint);
  border-radius: var(--r-sm); padding: 10px 13px; font-weight: 500;
}
.tmod .inp.t-edit-body { min-height: 180px; resize: vertical; line-height: 1.6; font-family: var(--font-scripture); font-size: 15.5px; }

/* ---------- member: tighten bottom tab bar for 7 tabs ---------- */
@media (max-width: 899px) {
  .tabbar .tab { font-size: 10px; padding: 7px 2px; gap: 3px; }
  .tabbar .tab .ico { width: 22px; height: 22px; }
}
