/* Amigo Oculto de Perfumes: visual neutro (petróleo, grafite e dourado), arredondado. Tema claro/escuro automático. */

:root {
  --bg: #f4f2ee;
  --bg-glow-1: #e3eeee;
  --bg-glow-2: #f1e9da;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --text: #1e2328;
  --muted: #5d656d;
  --border: #e2ddd4;
  --primary: #0f5c63;
  --primary-strong: #0b4a50;
  --primary-text: #ffffff;
  --primary-soft: #dcebea;
  --grad: linear-gradient(135deg, #16323f 0%, #0f5c63 100%);
  --ok: #12795a;
  --ok-soft: #dcf5ea;
  --warn: #9a5700;
  --warn-soft: #fff1d6;
  --info: #5b3fc4;
  --info-soft: #eee9ff;
  --danger: #c4302b;
  --danger-soft: #fde4e2;
  --whatsapp: #1c9d50;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(20 30 40 / 6%), 0 8px 24px rgb(20 30 40 / 8%);
  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111518;
    --bg-glow-1: #122a2c;
    --bg-glow-2: #241f16;
    --surface: #1a2025;
    --surface-2: #232b31;
    --text: #eef1f3;
    --muted: #9ba5ae;
    --border: #2d363e;
    --primary: #5cc0bb;
    --primary-strong: #7fd3cf;
    --primary-text: #062322;
    --primary-soft: #17363a;
    --grad: linear-gradient(135deg, #0e2a33 0%, #135259 100%);
    --ok: #6fd9a8;
    --ok-soft: #173a2b;
    --warn: #f2bd6b;
    --warn-soft: #3b2b12;
    --info: #b7a6ff;
    --info-soft: #2b2448;
    --danger: #ff8f86;
    --danger-soft: #401e1c;
    --whatsapp: #2fbf68;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 100% -10%, var(--bg-glow-1), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, var(--bg-glow-2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, .brand, button, .button, .badge, .segmented { font-family: var(--font-round); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: .5rem 1rem; border-radius: 10px; }
:focus-visible { outline: 3px solid #c8962e; outline-offset: 2px; }
[hidden] { display: none !important; }
.center { text-align: center; }
.spaced { margin-top: 1rem; }
.pre-line { white-space: pre-line; }
.hint { color: var(--muted); font-size: .92rem; }

/* ---------- topo e abas ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem max(1rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.tabs { display: flex; gap: .25rem; margin-left: auto; }
.tabs a {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem .95rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700;
  font-family: var(--font-round);
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

main { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 3rem; outline: none; }
.loading { color: var(--muted); text-align: center; margin-top: 4rem; font-size: 1.1rem; }

/* No celular, abas embaixo, perto do polegar */
@media (max-width: 680px) {
  .brand span { display: none; }
  .tabs {
    position: fixed; bottom: 0; left: 0; right: 0; margin: 0; z-index: 6; gap: 0;
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgb(0 0 0 / 6%);
  }
  .tabs a { flex: 1; flex-direction: column; gap: 0; padding: .45rem .25rem; font-size: .78rem; border-radius: 16px; justify-content: center; }
  .tabs a span { font-size: 1.35rem; line-height: 1.2; }
  #logout { margin-left: auto; }
  body.signed-in main { padding-bottom: 6.5rem; }
  h1 { font-size: 1.5rem; }
}

/* ---------- blocos ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.section-title { margin: 1.5rem 0 .75rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin-bottom: .25rem; }
.two-cols { display: grid; gap: 0 1rem; }
@media (min-width: 720px) { .two-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.row { display: grid; gap: 0 .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }

.banner { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner a { color: inherit; font-weight: 700; }

.save-status { font-size: .88rem; color: var(--muted); min-height: 1.3em; margin: 0; font-weight: 600; }
.save-status.saved { color: var(--ok); }
.save-status.error { color: var(--danger); }

.hero {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem; margin-bottom: 1.25rem;
  border-radius: var(--radius); background: var(--grad); color: #fff; box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: .25rem; }
.hero p { margin-bottom: .75rem; opacity: .95; }
.hero-emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 15%)); }

.empty { text-align: center; padding: 1.5rem .5rem; }
.empty-emoji { font-size: 3.25rem; line-height: 1; margin-bottom: .5rem; }
.empty p { color: var(--muted); max-width: 32rem; margin-left: auto; margin-right: auto; }
.done { text-align: center; padding: 2rem 1.25rem; }

/* ---------- formulários ---------- */
label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field { margin-bottom: .95rem; min-width: 0; }
.field .hint { font-weight: 400; margin: .3rem 0 0; }
.error-text { color: var(--danger); font-size: .92rem; margin: .5rem 0 0; font-weight: 600; }
.error-text:empty { display: none; }

input, textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--surface-2);
  border: 2px solid transparent; border-radius: var(--radius-sm); padding: .7rem .9rem; min-height: 50px;
  transition: border-color .15s, background .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--border); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); background: var(--surface); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; min-height: 0; accent-color: var(--primary); flex: none; }
.code-input { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }

fieldset.choice { border: 0; padding: 0; margin: 0 0 .95rem; }
fieldset.choice legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.choice-row {
  display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer;
  padding: .75rem .9rem; border: 2px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .5rem;
}
.choice-row:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice-row span { display: flex; flex-direction: column; }
.choice-row input { margin-top: .15rem; }

button, .button {
  font-size: 1rem; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px;
  padding: .7rem 1.25rem; min-height: 48px; background: var(--primary); color: var(--primary-text);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none;
  transition: transform .08s ease, filter .15s, background .15s;
}
button:hover, .button:hover { filter: brightness(1.05); }
button:active, .button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.secondary, .button.secondary { background: var(--primary-soft); color: var(--primary); }
button.ghost, .button.ghost { background: transparent; color: var(--primary); border: 2px solid var(--border); }
button.danger { background: var(--danger); color: #fff; }
.danger-text { color: var(--danger) !important; }
.button.light { background: #c8962e; color: #1b1406; }
button.big, .button.big { min-height: 56px; font-size: 1.08rem; padding: .85rem 1.6rem; }
button.small, .button.small { min-height: 38px; padding: .35rem .85rem; font-size: .9rem; }
button.block, .button.block { width: 100%; }
.button.whatsapp { background: var(--whatsapp); color: #fff; }
.link-button { background: none; color: var(--muted); padding: .5rem; min-height: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icon-button {
  background: transparent; color: var(--muted); min-height: 40px; min-width: 40px; padding: 0; font-size: 1.3rem; border-radius: 999px;
}
.icon-button:hover { background: var(--surface-2); color: var(--danger); }

.inline-form { display: flex; gap: .5rem; }
.inline-form input, .inline-form select { flex: 1; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .75rem; }
.actions.start { justify-content: flex-start; }
.actions.center { justify-content: center; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.5rem; }
.password-wrap button { position: absolute; right: .3rem; top: .3rem; min-height: 40px; width: 44px; padding: 0; border: 0; font-size: 1.1rem; }

.segmented { display: flex; background: var(--surface-2); border-radius: 999px; padding: 5px; margin-bottom: 1.1rem; gap: 4px; }
.segmented button { flex: 1; background: none; color: var(--muted); min-height: 44px; padding: .4rem .6rem; }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }

details > summary { cursor: pointer; list-style: none; padding: .35rem 0; font-weight: 700; color: var(--primary); font-family: var(--font-round); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; display: inline-block; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }

/* ---------- chips e sugestões ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0; }
.chips:empty::before { content: attr(data-empty); color: var(--muted); font-size: .92rem; }
.chip {
  display: inline-flex; align-items: center; gap: .15rem; border-radius: 999px;
  padding: .25rem .3rem .25rem .85rem; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .95rem;
}
.chip.plain { padding-right: .85rem; }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip button { min-height: 32px; min-width: 32px; padding: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 1.15rem; }
.chip button:hover { background: rgb(0 0 0 / 8%); }

.suggestions { margin: .5rem 0 .75rem; }
.family { margin: .5rem 0; }
.family h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.suggestion {
  min-height: 40px; padding: .3rem .85rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
  background: var(--surface); color: var(--text); border: 2px solid var(--border);
}
.suggestion[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.suggestion.bad[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.suggestion.other { opacity: .4; }

/* ---------- listas de perfumes ---------- */
.perfume-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.perfume-list:empty::before { content: attr(data-empty); color: var(--muted); font-size: .92rem; }
.perfume-list li {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; justify-content: space-between;
  padding: .5rem .15rem; border-bottom: 1px dashed var(--border);
}
.perfume-list li:last-child { border-bottom: 0; }
.perfume-name { font-weight: 600; }
.counter { font-size: .8rem; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.research { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.tiny-link {
  font-size: .82rem; font-weight: 700; text-decoration: none; padding: .25rem .6rem; border-radius: 999px;
  background: var(--info-soft); color: var(--info); white-space: nowrap;
}
.tiny-link:hover { filter: brightness(.97); }

.profile-view .view-section { margin-bottom: 1rem; }
.profile-view h3 { font-size: .95rem; margin-bottom: .3rem; }
.quote { background: var(--surface-2); border-radius: var(--radius-sm); padding: .75rem 1rem; }

.checker { border-top: 2px dashed var(--border); padding-top: 1rem; margin-top: .5rem; }
.check-result { margin-top: .75rem; border-radius: var(--radius-sm); padding: .8rem 1rem; font-weight: 700; }
.check-result:empty { display: none; }
.check-result.ok { background: var(--ok-soft); color: var(--ok); }
.check-result.warn { background: var(--danger-soft); color: var(--danger); }
.check-result.info { background: var(--info-soft); color: var(--info); }

/* ---------- avatares ---------- */
.avatar {
  flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font: 800 .95rem/1 var(--font-round); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar.c0 { background: linear-gradient(135deg, #0f5c63, #2a8b8f); }
.avatar.c1 { background: linear-gradient(135deg, #3f51b5, #5c6bc0); }
.avatar.c2 { background: linear-gradient(135deg, #2bb3a3, #6bd4a8); }
.avatar.c3 { background: linear-gradient(135deg, #ffb347, #ff7f50); }
.avatar.c4 { background: linear-gradient(135deg, #4aa3ff, #7aa2ff); }
.avatar.c5 { background: linear-gradient(135deg, #4b5563, #6b7280); }
.avatar.c6 { background: linear-gradient(135deg, #8bc34a, #3fa066); }
.avatar.c7 { background: linear-gradient(135deg, #c07a4a, #e0a060); }

/* ---------- grupos ---------- */
.group-list, .member-list, .friend-list, .check-list, .preview-list { list-style: none; padding: 0; margin: 0; }
.group-card, .friend-card {
  display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .65rem; box-shadow: var(--shadow);
  transition: transform .1s, border-color .15s;
}
.group-card:hover, .friend-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.group-emoji { font-size: 1.8rem; }
.group-info, .friend-info, .member-info, .preview-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.meta { color: var(--muted); font-size: .88rem; }

.badge { display: inline-block; white-space: nowrap; font-size: .78rem; font-weight: 800; padding: .2rem .65rem; border-radius: 999px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }

.group-hero { margin-bottom: 1rem; }
.back { text-decoration: none; font-weight: 700; font-family: var(--font-round); }
.meta-pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .25rem 0 .75rem; }
.meta-pills li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .25rem .75rem; font-size: .9rem; font-weight: 600; }
.rules { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.readiness .hint { margin: .35rem 0 0; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .3s ease; }

.member { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.member:last-child { border-bottom: 0; }
.member-main { display: flex; align-items: center; gap: .4rem; }
.member-link { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; text-decoration: none; color: inherit; padding: .2rem; border-radius: var(--radius-sm); }
.member-link:hover { background: var(--surface-2); }
.member .meta { display: block; margin-top: .1rem; }
.member .meta .badge { font-size: .72rem; padding: .1rem .5rem; }
.round-button {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  text-decoration: none; font-size: 1.1rem;
}
.round-button.whatsapp { background: var(--whatsapp); }
.member-favorites { list-style: none; margin: .35rem 0 0 3.2rem; padding: 0; }
.member-favorites li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .2rem 0; font-weight: 600; font-size: .95rem; }
.member-notes { margin: .3rem 0 0 3.2rem; font-size: .92rem; }

.code-line { margin-top: .75rem; }
.invite-code { font: 800 1.2rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .18em; color: var(--primary); }
.reminder { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); }
.reminder p { margin-bottom: .5rem; font-weight: 700; }
.import-cta { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; }
.check-row { display: flex; align-items: center; gap: .65rem; font-weight: 600; padding: .45rem .25rem; cursor: pointer; border-radius: 10px; }
.check-row:hover { background: var(--surface-2); }
.friend-picker { padding: .5rem 0; }

/* Revelação */
.reveal-card { border: 2px solid var(--primary-soft); }
.reveal { text-align: center; padding: 1.25rem .5rem; }
.gift-box { font-size: 4rem; line-height: 1; margin-bottom: .5rem; animation: wiggle 2.4s ease-in-out infinite; display: inline-block; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% {  } }
.receiver-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.receiver-head .hint { margin: 0; }
.receiver-name { font-size: 1.8rem; color: var(--primary); margin: 0; }
.pill-line { background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.tip { font-size: .95rem; }

/* ---------- amigos ---------- */
.friend-preview {
  font-size: .9rem; font-weight: 600; color: var(--primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search { margin-bottom: .75rem; }
.person-hero, .claim-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.person-hero h1 { margin-bottom: .3rem; }
.claim-hero { flex-direction: column; text-align: center; margin-top: 1rem; }
.claim-box { background: var(--info-soft); border-color: transparent; }
.claim-box p { color: var(--info); font-weight: 600; }

/* ---------- carga inicial ---------- */
.paste-box { min-height: 200px; font-size: .95rem; }
.panel { margin-bottom: 1rem; }
.preview { margin: 1rem 0; }
.preview-row { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .4rem; background: var(--surface); }
.preview-row.has-warning { border-color: var(--warn); }
.preview-row .check-row { align-items: flex-start; padding: .65rem .75rem; }
.preview-row .hint { font-weight: 400; font-size: .88rem; }
.warning { color: var(--warn); font-size: .85rem; font-weight: 700; }
.formats ul { padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }
.formats li { margin-bottom: .35rem; }
.results { border: 2px solid var(--ok-soft); }

/* ---------- lista do WhatsApp (link do grupo) ---------- */
.preview-row.is-idle { background: var(--surface-2); }
.sync-target { display: flex; align-items: center; gap: .5rem; padding: 0 .75rem .65rem calc(.75rem + 1.3rem + .65rem); }
.sync-target label { margin: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.sync-target select { min-height: 40px; padding: .35rem .7rem; font-size: .92rem; }
@media (max-width: 420px) { .sync-target { padding-left: .75rem; } }
.result-list { padding-left: 0; list-style: none; margin: 0 0 .75rem; }
.result-list li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.result-list li:last-child { border-bottom: 0; }

/* ---------- entrada ---------- */
.auth { max-width: 460px; margin: .5rem auto; }
.landing { text-align: center; margin: 1rem 0 1.25rem; }
.landing-logo {
  display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 32px; background: var(--grad);
  box-shadow: 0 10px 30px rgb(15 92 99 / 30%); margin-bottom: 1rem; 
}
.landing-logo img { filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%)); }
.lead { font-size: 1.08rem; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 1rem auto 0; display: grid; gap: .4rem; text-align: left; max-width: 340px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; }
.auth-card h2 { margin-bottom: 1rem; }

/* ---------- passo a passo ---------- */
.wizard-head { margin-bottom: 1rem; }
.wizard-head .progress { margin: 1rem 0 .4rem; }
.wizard-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.wizard-nav {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: .75rem;
  padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%);
}
.wizard-nav button:last-child { margin-left: auto; flex: 1; max-width: 320px; }
@media (max-width: 680px) { .wizard-nav { bottom: 4.6rem; } }

.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .5rem; }

/* ---------- avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 20; max-width: calc(100% - 2rem);
  transform: translate(-50%, 1rem); opacity: 0; visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
  background: var(--text); color: var(--bg); padding: .8rem 1.2rem; border-radius: 16px; font-weight: 600;
  box-shadow: 0 8px 30px rgb(0 0 0 / 25%);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (max-width: 680px) { .toast { bottom: 5.5rem; } }

dialog {
  border: 0; border-radius: var(--radius); padding: 1.4rem; max-width: min(420px, calc(100% - 2rem));
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
dialog p { font-size: 1.05rem; font-weight: 600; }
dialog::backdrop { background: rgb(10 15 20 / 50%); backdrop-filter: blur(2px); }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
