/* ==========================================================================
   style.css — Design Elegante & Moderno (Tema Warm Beige, Charcoal & Gold/Brass)
   Mobile first, pulsanti grandi ergonomici (min 48-56px), uso a una mano.
   ========================================================================== */

/* Disattiva / nasconde badge e drawer automatici iniettati da Netlify */
div[data-netlify-drawer],
div[class*="netlify-drawer"],
#netlify-drawer,
div[class*="feedback-drawer"],
[data-testid*="netlify"],
iframe[src*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

:root {
  --primary: #cda45e;           /* Oro / Ottone dorato caldo */
  --primary-hover: #b8914b;
  --primary-glow: rgba(205, 164, 94, 0.25);
  --on-primary: #111215;        /* Testo scuro sui bottoni oro */
  
  --accent: #23272e;
  --on-accent: #ffffff;
  
  --bg: #ece8e1;                /* Sfondo caldo e morbido (warm oyster/sand) */
  --bg-subtle: #f5f2ec;
  
  --card: #181a1f;              /* Nero carbone / ardesia scuro premium */
  --card-gradient: linear-gradient(165deg, #242830 0%, #15171b 100%);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text: #1a1b1e;              /* Testo principale scuro per la pagina chiara */
  --text-inverse: #f8f9fa;      /* Testo chiaro dentro le card scure */
  --muted: #6e7075;
  --muted-light: #9ea2aa;
  
  --gold: #cda45e;
  --gold-border: rgba(205, 164, 94, 0.35);
  
  --border: #dcd8d0;
  --ok: #2ecc71;
  --danger: #e74c3c;
  --wa: #25d366;
  
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --nav-h: 70px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; color: inherit; }
h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1.05rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
[hidden] { display: none !important; }

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px);
}
.container.narrow { max-width: 480px; padding-bottom: 32px; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.danger { color: var(--danger); }
.empty { color: var(--muted); text-align: center; padding: 1.5rem 0.5rem; margin: 0; }
.warn { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; padding: .8rem 1rem; border-radius: var(--radius-sm); margin: .6rem 0; }
.error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: .4rem 0; }

/* ---------- Intestazione Header Titolare ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 232, 225, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.topbar-content {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.greeting-col {
  display: flex;
  flex-direction: column;
}
.greeting-time {
  font-size: 0.82rem;
  color: #7a7d84;
  font-weight: 500;
  text-transform: capitalize;
}
.greeting-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #141619;
  letter-spacing: -0.01em;
  margin: 0;
}
.avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: #15171b;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-pill);
}

/* ---------- Barra di Navigazione Inferiore ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #8c8f96;
  font-size: 0.73rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.bottom-nav a .nav-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
  transition: transform 0.15s ease, stroke 0.15s ease;
}
.bottom-nav a.active {
  color: #111215;
}
.bottom-nav a.active .nav-icon {
  stroke: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .owner .bottom-nav {
    top: 0;
    bottom: 0;
    right: auto;
    width: 110px;
    height: 100vh;
    grid-template-columns: 1fr;
    grid-auto-rows: 80px;
    align-content: center;
    border-top: 0;
    border-right: 1px solid var(--border);
  }
  .owner .container {
    margin-left: calc(50% - 270px + 55px);
    padding-bottom: 40px;
  }
}

/* ---------- Banner Oggi / Hero Card ---------- */
.hero-card {
  background: var(--card-gradient);
  border-radius: var(--radius);
  padding: 24px 22px;
  color: var(--text-inverse);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--card-border);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(205, 164, 94, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge-tag {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 8px;
}
.hero-card p {
  margin: 0;
  color: #adb1b8;
  font-size: 0.92rem;
}

/* ---------- Card Promemoria / Attività (Dark Slate Pill Row) ---------- */
.action-card {
  background: var(--card-gradient);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text-inverse);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.action-card:hover {
  border-color: rgba(205, 164, 94, 0.35);
}
.action-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.action-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(205, 164, 94, 0.3);
  background: rgba(205, 164, 94, 0.06);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}
.action-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.action-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-subtitle {
  font-size: 0.84rem;
  color: #9ea2aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Pulsante Oro Primario (+ Nuovo conto / Invia) ---------- */
.btn-gold {
  background: var(--gold);
  color: var(--on-primary);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(205, 164, 94, 0.28);
  white-space: nowrap;
  text-decoration: none;
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-gold:active {
  transform: scale(0.97);
}
.btn-gold-big {
  width: 100%;
  min-height: 56px;
  font-size: 1.15rem;
  border-radius: 16px;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(205, 164, 94, 0.32);
}

/* ---------- Pulsanti Generali ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.1s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--gold);
  color: var(--on-primary);
  border-color: transparent;
  font-weight: 700;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
  border-color: transparent;
  white-space: nowrap;
  font-weight: 700;
}
.btn-disabled {
  background: #eee;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: default;
}
.btn-danger-outline {
  color: var(--danger);
  border-color: #f0c4c4;
  background: #fff;
}
.btn-big { min-height: 56px; font-size: 1.08rem; }
.btn-small { min-height: 38px; padding: 0.3rem 0.8rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.icon-btn {
  border: 0;
  background: none;
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-ico { width: 1.2em; height: 1.2em; }
.stack { display: grid; gap: 10px; margin-top: 1rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.6rem 0; }
.toolbar .btn { flex: 1 1 auto; }

/* ---------- Card Bianche (pagine interne) ---------- */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  margin: 14px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}
.count {
  background: #181a1f;
  color: var(--gold);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  padding: 0.15rem 0.65rem;
  font-weight: 700;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.6rem;
  font-weight: 600;
  padding: 0.3rem 0;
  color: #141619;
}

/* ---------- Form e Input ---------- */
.form fieldset {
  border: 0;
  border-top: 1px solid var(--border);
  padding: 1.1rem 0 0;
  margin: 1.1rem 0 0;
}
.form legend {
  font-weight: 800;
  color: #181a1f;
  padding-right: 0.5rem;
  font-size: 1.05rem;
}
.field { display: grid; gap: 6px; margin: 0 0 15px; }
.field > span { font-weight: 700; font-size: 0.94rem; color: #22252a; }
input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 0.8rem 0.95rem;
  min-height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 95px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
input[type="color"] { padding: 4px; height: 50px; cursor: pointer; }
input[type="file"] { min-height: 0; padding: 0.5rem; }
.input-big { font-size: 1.4rem; min-height: 60px; font-weight: 700; }
.search { margin: 0.6rem 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.8rem 0;
  cursor: pointer;
}
.check input {
  width: 24px;
  height: 24px;
  min-height: 0;
  flex: none;
  margin: 0;
  accent-color: var(--gold);
}
.big-check {
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-prev {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.sticky-save {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
  padding-top: 12px;
  margin-top: 8px;
}
@media (min-width: 900px) { .sticky-save { bottom: 12px; } }

/* ---------- Tab Style ---------- */
.tabs {
  display: flex;
  gap: 6px;
  background: #dfdbd3;
  padding: 4px;
  border-radius: 14px;
  margin: 0.5rem 0;
}
.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 0.6rem;
  transition: all 0.15s ease;
}
.tab.active {
  background: #ffffff;
  color: #141619;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.scroll-tabs { overflow-x: auto; scrollbar-width: none; }
.scroll-tabs .tab { flex: none; }
.small-tabs .tab { min-height: 38px; font-size: 0.88rem; }

/* ---------- Liste & Righe ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.row-main strong { overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.clickable { cursor: pointer; }
.clickable:active { background: rgba(0, 0, 0, 0.03); }
.compact .row { padding: 8px 0; }
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: #3451b2;
  white-space: nowrap;
}
.badge.ok { background: #e6f4ea; color: var(--ok); }
.badge.no { background: #fdecea; color: var(--danger); }
.code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #ece8e1;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  align-self: flex-start;
}
.code.big {
  font-size: 1.8rem;
  padding: 0.4rem 0.9rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}

/* Selezione cliente per nuovo buono */
.pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pick-list button {
  width: 100%;
  text-align: left;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  font: inherit;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.pick-list li:last-child button { border-bottom: 0; }
.pick-list button:active { background: var(--bg); }
.pick-list .accent { color: var(--gold); font-weight: 800; }
.chip-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  background: #fff;
}
.preview {
  background: var(--bg-subtle);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  border: 1px solid var(--border);
}

/* ---------- Card Buono Grafico ---------- */
.voucher-card {
  background: var(--card-gradient);
  color: #ffffff;
  border-radius: 22px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--gold-border);
}
.voucher-card p { margin: 0.35rem 0; }
.voucher-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

/* ---------- Template Messaggi ---------- */
.template summary { cursor: pointer; font-weight: 700; padding: 0.6rem 0; }
.bubble {
  background: #dcf8c6;
  border-radius: 14px 14px 14px 2px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111;
}

/* ---------- Menu Altro / Impostazioni ---------- */
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 0.8rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  font: inherit;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item span { font-size: 1.02rem; font-weight: 700; display: flex; flex-direction: column; }
.menu-item small { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- Scheda Dettagli Cliente ---------- */
.info { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.2rem; margin: 0 0 1rem; }
.info dt { color: var(--muted); font-size: 0.9rem; }
.info dd { margin: 0; font-weight: 600; }

/* ---------- Modal Dialog ---------- */
.modal {
  border: 0;
  padding: 0;
  border-radius: 22px;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 36px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px 6px 20px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}
.modal-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.modal-body { padding: 10px 20px 24px; }
@media (max-width: 600px) {
  .modal {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: var(--safe-b);
  }
}

/* ---------- Toast Floating Alert ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #181a1f;
  color: #ffffff;
  border: 1px solid var(--gold-border);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-err { background: var(--danger); border-color: transparent; }

/* ---------- Lock Screen PIN ---------- */
.lock {
  text-align: center;
  max-width: 380px;
  margin: 10vh auto;
  display: grid;
  gap: 14px;
}
.lock-icon { font-size: 3rem; }
.lock input { letter-spacing: 0.5em; }

/* ---------- QR Code Poster ---------- */
.poster {
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
  background: #ffffff;
}
.poster h2 { justify-content: center; font-size: 1.6rem; }
.poster-logo { max-height: 80px; max-width: 160px; margin-bottom: 0.5rem; }
.poster-cta { font-size: 1.15rem; font-weight: 700; margin: 0.3rem 0 1rem; color: #111; }
.qr { width: 100%; max-width: 320px; height: auto; image-rendering: pixelated; display: block; margin: 0 auto; }

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; border: 0; padding-top: 2cm; }
  .print-area .qr { max-width: 12cm; }
  .bottom-nav, .topbar { display: none; }
}

/* ---------- Pagina Cliente Pubblica ---------- */
.customer {
  background: linear-gradient(180deg, #181a1f 0 220px, var(--bg) 220px);
  min-height: 100vh;
}
.customer-head {
  color: #ffffff;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) 16px 8px;
}
.customer-head img {
  max-height: 72px;
  max-width: 160px;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 0.4rem;
}
.customer-head h1 { font-size: 1.65rem; font-weight: 800; color: #ffffff; }
.gift {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.gift div { font-size: 0.95rem; }
.privacy {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-height: 160px;
  overflow-y: auto;
}
.privacy b { color: var(--text); }
.privacy p { margin: 0.3rem 0 0; }
.done .big-emoji { font-size: 3.5rem; }
.step {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.1rem;
  display: grid;
  gap: 12px;
  margin: 1rem 0;
}
.step p { margin: 0; }
#regqr { background: #ffffff; padding: 0.5rem; border-radius: 14px; }
