/* Identidade 3C: preto + gradiente roxo → magenta (avatar oficial @3cgaming / 3c.gg) */
:root {
  --bg: #07050b;
  --surface: #120d1a;
  --surface-2: #1b1426;
  --line: #2c2140;
  --text: #f4f1f8;
  --muted: #a99fb8;
  --purple: #621aa2;
  --violet: #7e16a3;
  --magenta: #d2166c;
  --pink: #df1355;
  --orange: #f26839;
  --accent: #e0348a;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #621aa2 0%, #9f1ea0 45%, #df1355 100%);
  --warn: #ffb547;
  --bad: #ff5c6c;
  --good: #3ddc97;
  --info: #b18cff;
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.confirm { background: #3a3000; color: #ffe27a; border-radius: 4px; padding: 0 4px; font-size: .85em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; background: var(--accent); background-image: var(--grad); color: var(--accent-ink); font: 700 1rem var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background-image: none; background: transparent; border-color: var(--line); color: var(--text); }
.btn.sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn.danger { background-image: none; background: transparent; color: var(--bad); border-color: var(--bad); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--accent); }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

/* opções de questão */
.options { display: grid; gap: 10px; margin-top: 16px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.opt:hover { border-color: var(--muted); }
.opt.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); transition: width .3s; }
.timer { font: 600 1.1rem var(--display); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--bad); }
.noselect { user-select: none; -webkit-user-select: none; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; flex: none; }
.steps .done .dot { background: var(--good); color: #062; }
.steps .now .dot { background: var(--accent); color: var(--accent-ink); }
.steps .btn { width: auto; flex: none; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.pill.warn { background: #3a2a00; color: var(--warn); }
.pill.info { background: #0d2640; color: var(--info); }
.pill.good { background: #0b2e20; color: var(--good); }
.pill.bad { background: #3a0f15; color: var(--bad); }

@media (max-width: 640px) {
  .card { padding: 16px; }
  .btn { width: 100%; }
  .row .btn { width: auto; }
}
