/* LEAD TATTOOWEEK — mobile-first. Troque as cores oficiais aqui. */
:root {
  --mast: #0a3d8f;        /* azul MAST (conferir o tom oficial) */
  --mast-dark: #072b66;
  --faviamo: #f84ea0;     /* rosa FAVIAMO, tirado do logo oficial */
  --faviamo-dark: #d42a80; /* rosa mais escuro para botões com texto branco (contraste) */
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #121826;
  --muted: #5b6475;
  --line: #d9dee8;
  --ok: #0f8a4b;
  --ok-bg: #e3f6ec;
  --warn: #9a6200;
  --warn-bg: #fff4dc;
  --bad: #c62828;
  --bad-bg: #fde7e7;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--mast); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.wide { max-width: 1100px; }

/* Topo com as marcas */
.brandbar {
  background: linear-gradient(135deg, var(--mast) 0%, var(--mast-dark) 70%, var(--faviamo) 140%);
  color: #fff;
  padding: 18px 16px 22px;
  text-align: center;
}
.brandbar .logos { display: flex; gap: 18px; justify-content: center; align-items: center; min-height: 8px; }
.brandbar .logos img { max-height: 46px; max-width: 42%; }
.brandbar .logos .x-logo { color: #fff; font-weight: 300; font-size: 1.4rem; opacity: .8; }
.brandbar h1 { margin: 10px 0 2px; font-size: 1.45rem; letter-spacing: .02em; }
.brandbar p { margin: 0; opacity: .9; font-size: .95rem; }
.x { color: var(--faviamo); font-weight: 800; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(10, 30, 70, .07);
  padding: 18px 16px;
  margin-top: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--mast-dark); }

label.field { display: block; margin: 14px 0 0; font-weight: 600; }
label.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=date], select {
  width: 100%;
  margin-top: 6px;
  font-size: 1.05rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus { outline: 3px solid rgba(10, 61, 143, .25); border-color: var(--mast); }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-38%); color: var(--muted); font-size: 1.05rem; }
.prefix input { padding-left: 32px; }
.err { color: var(--bad); font-size: .9rem; margin-top: 4px; min-height: 0; }
.invalid input, .invalid .choices { border-color: var(--bad) !important; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.choices label {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 4px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}
.choices.one-col { grid-template-columns: 1fr; }
.choices.one-col label { text-align: left; padding: 12px 14px; font-size: 1rem; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label.on { border-color: var(--mast); background: var(--mast); color: #fff; }

.ig-list { display: grid; gap: 8px; margin-top: 8px; }
.ig-btn {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  text-decoration: none; color: var(--text); font-weight: 700; background: #fff;
}
.ig-btn span:last-child { color: var(--faviamo); font-weight: 800; }
.ig-btn.visited { border-color: var(--ok); }
.ig-btn.visited span:last-child { color: var(--ok); }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: .97rem; }
.check input { width: 24px; height: 24px; flex: 0 0 24px; margin: 1px 0 0; accent-color: var(--mast); }

.btn {
  display: block; width: 100%; border: 0; border-radius: 12px;
  padding: 16px; font-size: 1.1rem; font-weight: 800; letter-spacing: .02em;
  background: var(--mast); color: #fff; cursor: pointer; margin-top: 18px; text-align: center; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.pink { background: var(--faviamo-dark); }
.btn.green { background: var(--ok); font-size: 1.25rem; padding: 20px; }
.btn.red { background: var(--bad); }
.btn.ghost { background: #fff; color: var(--mast); border: 1.5px solid var(--mast); }
.btn.small { display: inline-block; width: auto; padding: 8px 12px; font-size: .9rem; margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 140px; }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.alert { padding: 12px 14px; border-radius: 10px; margin-top: 14px; font-weight: 600; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }

/* Credencial */
.done-title { font-size: 1.6rem; font-weight: 900; color: var(--ok); text-align: center; margin: 4px 0 6px; }
.qr { width: 72%; max-width: 280px; margin: 14px auto 4px; background: #fff; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.code { font: 800 1.9rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center; color: var(--mast-dark); }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.pill.AVAILABLE { background: var(--ok-bg); color: var(--ok); }
.pill.USED { background: #e8e8ee; color: #444; }
.pill.BLOCKED, .pill.EXPIRED { background: var(--bad-bg); color: var(--bad); }
.pill.PENDING { background: var(--warn-bg); color: var(--warn); }
ol.steps { padding-left: 20px; margin: 8px 0 0; }
ol.steps li { margin: 4px 0; }

/* Painel da equipe */
.topbar { background: var(--mast-dark); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.topbar b { flex: 1; }
.topbar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 10px; font-size: .9rem; }
.tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tabs button { flex: 0 0 auto; border: 0; background: none; padding: 13px 14px; font-size: .95rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--mast); border-bottom-color: var(--mast); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 6px rgba(10,30,70,.06); }
.tile .n { font-size: 1.7rem; font-weight: 900; color: var(--mast-dark); }
.tile .l { font-size: .82rem; color: var(--muted); }
.tile.bad .n { color: var(--bad); }
.tile.ok .n { color: var(--ok); }
.list { margin-top: 12px; }
.item { background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 8px; box-shadow: 0 1px 4px rgba(10,30,70,.05); cursor: pointer; }
.item .t { font-weight: 700; }
.item .s { color: var(--muted); font-size: .88rem; margin-top: 2px; word-break: break-word; }
.big-status { font-size: 1.5rem; font-weight: 900; text-align: center; padding: 14px; border-radius: 12px; margin-bottom: 12px; }
.big-status.AVAILABLE { background: var(--ok-bg); color: var(--ok); }
.big-status.USED, .big-status.BLOCKED, .big-status.EXPIRED { background: var(--bad-bg); color: var(--bad); }
.big-status.PENDING { background: var(--warn-bg); color: var(--warn); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: .97rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
video.scan { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; margin-top: 12px; object-fit: cover; }
.flash { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; color: #fff; z-index: 50; text-align: center; padding: 20px; }
.flash { white-space: pre-line; }
.prize-box { border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.prize-box.todo { background: #eef3ff; border: 2px solid var(--mast); }
.prize-box.done { background: var(--ok-bg); }
.prize-box .t { font-weight: 800; margin-bottom: 8px; }
.prize-box .s { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.prize-btn { border: 1.5px solid var(--mast); background: #fff; color: var(--mast-dark); border-radius: 10px; padding: 12px 8px; font-weight: 700; font-size: .9rem; text-align: center; }
.prize-btn small { display: block; font-weight: 600; color: var(--warn); margin-top: 4px; }
.prize-btn.swap { border-color: var(--warn); background: var(--warn-bg); }
.prize-btn.none { grid-column: 1 / -1; border-color: var(--line); color: var(--muted); }
.used-when { font-size: 1rem; font-weight: 700; margin-top: 6px; }
.tabs.subtabs { position: static; border-radius: 12px; margin-top: 4px; }
.flash.ok { background: rgba(15,138,75,.95); }
.flash.bad { background: rgba(198,40,40,.95); }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; overflow-y: auto; padding: 16px; }
.modal-bg .card { max-width: 560px; margin: 20px auto; }
pre.meta { white-space: pre-wrap; font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
