@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #0d0b0f; --bg2: #151219; --card: rgba(255,255,255,.04); --card2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --ink: #f4eef6; --muted: #a79fae; --dim: #6f6876;
  --accent: #ff3b3b; --accent-ink: #120c16; --ok: #4ade80; --warn: #fbbf24; --bad: #fb7185;
  --r: 18px; --font: "Inter", system-ui, sans-serif; --display: "Sora", "Inter", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
  radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg); background-attachment: fixed; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 600; transition: .18s; background: var(--card2); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent); }
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.ghost { background: transparent; border: 1px solid var(--line2); }
.ghost:hover { background: var(--card); }
.small { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
input, select, textarea { width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(10px); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.bad { color: var(--bad); }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px); opacity: 0; background: #1d1922; border: 1px solid var(--line2);
  padding: 12px 18px; border-radius: 14px; transition: .25s; z-index: 99; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.brand-pilar { font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.brand-pilar b { color: var(--accent); }
/* assinatura da marca Pilar: logo (/marca/pilar.svg, com a perna do p abaixo da linha) + descritor */
.pmark { font: 400 15px/1 var(--display); color: var(--muted); letter-spacing: -.02em; white-space: nowrap; }
.pmark img { height: 1.55em; width: auto; vertical-align: -.334em; }
.pmark.sm { font-size: 12px; color: var(--dim); }

/* ícones (Lucide, sprite em /icons.svg) */
.i { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.i.sm { width: 15px; height: 15px; } .i.lg { width: 22px; height: 22px; } .i.xl { width: 30px; height: 30px; }
button.btn, button.ghost, button.small, a.btn, a.small, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
a.btn, a.small { text-decoration: none; }
a.small.ghost { color: var(--ink); }
.ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.ico.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ico.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.ico.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty .i { width: 34px; height: 34px; color: var(--dim); display: block; margin: 0 auto 10px; }
/* cartão fidelidade de selos */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-width: 420px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; color: var(--dim); }
.stamp.on { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.stamp.gift { border-style: solid; border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
/* seletor em abas (segmentado) */
.seg { display: inline-flex; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { background: transparent; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 7px; align-items: center; }
.seg button.on { background: var(--card2); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.banner { display: flex; gap: 12px; align-items: center; border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--card); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.banner.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.banner.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, transparent); }
@media (max-width: 640px) { html, body { font-size: 14.5px; } .card { padding: 15px; } }
