:root {
  /* paleta da landing (tema escuro) */
  --bg: #0d0d0d;
  --surface: #1a1a1a;      /* cards / modal */
  --surface-2: #212121;    /* inputs / aba inativa */
  --border: #292929;
  --text: hsl(35 13% 94%); /* branco-quente */
  --muted: #949494;
  --accent: hsl(38 52% 50%);   /* dourado/bronze */
  --accent-hover: #d6a64a;
  --glow: rgba(234, 124, 56, .28);
  --on-accent: #0d0d0d;
  --wa: #25d366;
  --danger: hsl(0 72% 55%);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .count { font-family: 'DM Sans', 'Inter', system-ui, sans-serif; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: linear-gradient(180deg, #121212, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 30px 0 26px;
}
.site-header h1 { margin: 0 0 6px; font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
.site-header .subtitle { margin: 0; color: var(--muted); font-size: .95rem; }
.site-header .subtitle strong { color: var(--accent); font-weight: 600; }

/* Toolbar / tabs */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 18px 0 12px;
}
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  color: var(--muted); transition: .15s;
}
.tab.is-active { background: var(--accent); color: var(--on-accent); }

.search {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; background: var(--surface); color: var(--text);
  margin-bottom: 16px;
}
.search::placeholder { color: var(--muted); }
.search:focus { outline: none; border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius); padding: 10px 16px; font-size: .92rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 18px var(--glow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }

/* List / cards */
.list { display: grid; gap: 12px; padding-bottom: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--accent); background: rgba(194,145,61,.12);
  border: 1px solid rgba(194,145,61,.3);
  border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: middle;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: .86rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text); background: var(--surface-2);
  transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.wa { background: var(--wa); border-color: var(--wa); color: #04341a; }
.chip.wa:hover { background: #1fc25c; color: #04341a; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { text-align: center; padding: 40px 16px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; z-index: 50;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  width: 100%; max-width: 460px; box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.modal h2 { margin: 0 0 4px; font-size: 1.25rem; }
.modal-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--text); }
form { display: grid; gap: 14px; margin-top: 14px; }
form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
form input[type="text"], form input[type="tel"], form input[type="email"], form input[type="password"] {
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-weight: 400; background: var(--surface-2); color: var(--text);
}
form input::placeholder { color: var(--muted); }
form input:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-weight: 400; }
.field { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 0; }
.field legend { font-size: .9rem; font-weight: 600; padding: 0 4px; color: var(--text); }
.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-right: 14px; }
.radio input { width: auto; accent-color: var(--accent); }

.form-error { color: #f3a5a0; background: rgba(220,60,50,.12); border: 1px solid rgba(220,60,50,.4); border-radius: 8px; padding: 8px 10px; margin: 0; font-size: .88rem; }
.form-ok { color: #86e3ad; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.35); border-radius: 8px; padding: 8px 10px; margin: 0; font-size: .9rem; }

/* honeypot escondido de humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 24px 0 40px; text-align: center; }

/* ---------- admin ---------- */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-who { display: flex; align-items: center; gap: 12px; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); max-width: 420px; margin: 22px auto;
}
.auth-card h2 { margin: 0 0 6px; }

.dash-section { margin: 22px 0 8px; }
.dash-section h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.count {
  font-size: .8rem; font-weight: 700; color: var(--on-accent); background: var(--accent);
  border-radius: 999px; padding: 2px 10px; min-width: 24px; text-align: center;
}
.card .meta { display: grid; gap: 4px; margin: 8px 0 12px; font-size: .9rem; color: var(--muted); }
.card .meta b { color: var(--text); font-weight: 600; }
.card .meta a { color: var(--accent); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve { background: var(--wa); color: #04341a; }
.btn-approve:hover { background: #1fc25c; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(220,60,50,.45); }
.btn-danger:hover { background: rgba(220,60,50,.12); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 9px; }

@media (max-width: 480px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .btn { width: 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
}
