:root {
  --bg: #070b16;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --fg: #eef2ff;
  --muted: #9aa4c0;
  --primary: #e11d48;
  --primary-2: #2563eb;
  --success: #22c55e;
  --danger: #f87171;
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, rgba(225, 29, 72, 0.28), transparent 70%),
    radial-gradient(40rem 24rem at 110% 100%, rgba(37, 99, 235, 0.28), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}

.center { text-align: center; }

.logo-box {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.logo-box img { display: block; height: 78px; width: auto; }

.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.16);
  color: #ff8fa8;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

h1 { margin: 12px 0 0; font-size: 28px; text-transform: uppercase; letter-spacing: 0.04em; }
h2 { margin: 0 0 14px; font-size: 20px; }
p.sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.buttons { margin-top: 26px; display: grid; gap: 12px; }

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-facebook { background: #1877f2; }
.btn-instagram { background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); }
.btn-whatsapp { background: #25d366; color: #04310f; }
.btn-primary { background: var(--primary); justify-content: center; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  justify-content: center;
}

.note {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.alert {
  margin-top: 20px;
  padding: 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}
.alert strong { display: block; margin-bottom: 4px; color: #fecaca; }
.alert-ok {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}
.alert-ok strong { color: #bbf7d0; }

label { display: block; margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--fg);
  font-size: 15px;
}
input:focus, select:focus { outline: 2px solid rgba(225, 29, 72, 0.5); outline-offset: 1px; }

.timer {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}
.timer span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.timer strong { display: block; margin-top: 6px; font-size: 44px; color: #ff8fa8; font-variant-numeric: tabular-nums; }

.link { color: var(--muted); font-size: 12px; text-decoration: underline; }
.link:hover { color: #ff8fa8; }

/* ---------- painel admin ---------- */
.admin-wrap { max-width: 1140px; margin: 0 auto; padding: 28px 18px 60px; }
.admin-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.admin-head img { height: 46px; background: rgba(255,255,255,0.75); padding: 6px 12px; border-radius: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.tab.active { background: var(--primary); border-color: transparent; color: #fff; font-weight: 600; }
.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; border-radius: 18px; background: rgba(0,0,0,0.28); border: 1px solid var(--border); }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.stat strong { display: block; margin-top: 6px; font-size: 30px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
td.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; word-break: break-all; }
.table-scroll { overflow-x: auto; }

.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.1); }
.pill-ok { background: rgba(34,197,94,0.18); color: #86efac; }
.pill-no { background: rgba(248,113,113,0.18); color: #fca5a5; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.toolbar > div { flex: 1 1 180px; }
.toolbar label { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { width: auto; }
.small { font-size: 12px; color: var(--muted); line-height: 1.6; }
