/* Loop — nuevo diseño de tarjeta, selector de negocio y paletas.
   Colors come from CSS variables set by loop-theme.js (applyTheme). */

:root {
  --loop-font: "Geist", "DM Sans", system-ui, -apple-system, sans-serif;
  --loop-radius: 22px;
}

/* ---------- Customer card ---------- */
.loop-client {
  --loop-page: #f6f7fb;
  --loop-ink: #1a2340;
  --loop-muted: #55607a;
  --loop-line: #e4e7ef;
  --loop-surface: #ffffff;
  --loop-card: #3a2a21;
  --loop-card-ink: #ffffff;
  --loop-card-muted: rgba(255, 255, 255, .74);
  --loop-card-empty: rgba(255, 255, 255, .38);
  --loop-stamp: #e39a5e;
  --loop-stamp-ink: #1a2340;
  --loop-accent: #3a2a21;
  --loop-accent-ink: #ffffff;
  --loop-accent-soft: #eef0f5;
  --loop-shadow: 0 14px 34px rgba(58, 42, 33, .2);
  background: var(--loop-page);
  color: var(--loop-ink);
  font-family: var(--loop-font);
  padding: 20px 16px 56px;
}

.loop-client-shell {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.loop-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--loop-muted);
  font: 500 14px/1 var(--loop-font);
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
}
.loop-back[hidden] { display: none; }

.loop-client-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loop-biz-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: var(--loop-surface);
  border: 1px solid var(--loop-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.loop-biz-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.loop-biz-logo img[hidden], .loop-biz-initials[hidden] { display: none; }
.loop-biz-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--loop-card);
  color: var(--loop-card-ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .02em;
}

.loop-biz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loop-biz-text strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loop-biz-text small { font-size: 13px; color: var(--loop-muted); }

.loop-hello h1 {
  margin: 6px 0 6px;
  font: 600 32px/1.1 var(--loop-font);
  letter-spacing: -.03em;
  color: var(--loop-ink);
}
.loop-hello p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--loop-muted); }

.loop-pass {
  background: var(--loop-card);
  color: var(--loop-card-ink);
  border-radius: var(--loop-radius);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--loop-shadow);
}

.loop-pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.loop-pass-head > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.loop-pass-head small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--loop-card-muted);
}
.loop-pass-head strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }

.loop-pass-count {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.loop-pass-count small { font-size: 17px; color: var(--loop-card-muted); letter-spacing: 0; }

.loop-stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.loop-stamps span {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--loop-card-empty);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--loop-card-muted);
  box-sizing: border-box;
}
.loop-stamps span.filled {
  border: 0;
  background: var(--loop-stamp);
  color: var(--loop-stamp-ink);
}
.loop-stamps span.filled svg { width: 52%; height: 52%; }

.loop-pass-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--loop-card-muted);
}
.loop-pass-code { font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.loop-reward {
  background: var(--loop-surface);
  border: 1px solid var(--loop-line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.loop-reward.ready { border-color: var(--loop-accent); box-shadow: 0 0 0 3px var(--loop-accent-soft); }
.loop-reward-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--loop-accent-soft);
  color: var(--loop-accent);
  display: grid;
  place-items: center;
}
.loop-reward-icon svg { width: 22px; height: 22px; }
.loop-reward-text { display: flex; flex-direction: column; gap: 2px; }
.loop-reward-text small { font-size: 13px; color: var(--loop-muted); }
.loop-reward-text strong { font-size: 16px; font-weight: 600; }

.loop-actions { display: flex; flex-direction: column; gap: 8px; }
.loop-btn {
  min-height: 52px;
  border-radius: 16px;
  border: 0;
  font: 600 16px/1 var(--loop-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.loop-btn:active { transform: scale(.98); }
.loop-btn[hidden] { display: none; }
.loop-btn-primary { background: var(--loop-accent); color: var(--loop-accent-ink); }
.loop-btn-ghost { background: transparent; color: var(--loop-accent); min-height: 44px; font-weight: 500; }
.loop-btn-icon { display: inline-grid; width: 18px; height: 18px; }
.loop-btn-icon svg { width: 18px; height: 18px; }
.loop-btn:focus-visible, .loop-back:focus-visible { outline: 3px solid var(--loop-accent); outline-offset: 2px; }

.loop-client .card-app-note { font-family: var(--loop-font); color: var(--loop-muted); text-align: center; }

/* ---------- Sign-up / branding: type picker ---------- */
.loop-fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.loop-fieldset legend { font-weight: 700; margin-bottom: 10px; padding: 0; }

.loop-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loop-type-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 14px;
  border: 1.5px solid var(--line, #e4e7ef);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.loop-type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.loop-type-option:has(input:checked) { border-color: var(--ink, #1a2340); box-shadow: 0 0 0 3px rgba(26, 24, 22, .08); }
.loop-type-option:has(input:focus-visible) { outline: 3px solid var(--ink, #1a2340); outline-offset: 2px; }
.loop-type-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #eef0f5;
  display: grid;
  place-items: center;
  color: var(--ink, #1a2340);
}
.loop-type-icon svg { width: 22px; height: 22px; }
.loop-type-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loop-type-text strong { font-size: 15px; }
.loop-type-text small { font-size: 12px; color: var(--muted, #55607a); line-height: 1.3; }
.loop-type-grid.compact .loop-type-option { padding: 10px 12px; }
.loop-type-grid.compact .loop-type-text small { display: none; }

/* ---------- Palettes ---------- */
.loop-color-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.loop-color-controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.loop-swatch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.loop-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 8px 10px;
  min-height: 44px;
  border: 1.5px solid var(--line, #e4e7ef);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
}
.loop-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.loop-swatch:has(input:checked) { border-color: var(--ink, #1a2340); box-shadow: 0 0 0 3px rgba(26, 24, 22, .08); }
.loop-swatch:has(input:focus-visible) { outline: 3px solid var(--ink, #1a2340); outline-offset: 2px; }
.loop-swatch-chip {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.loop-swatch-chip i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.loop-custom-colors summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  min-height: 24px;
}
.loop-color-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loop-color-inputs label { margin: 0 !important; font-size: 13px; font-weight: 600; }
.loop-color-inputs input[type="color"] { height: 44px; padding: 4px; margin-top: 6px; cursor: pointer; }
.loop-help { display: block; margin-top: 8px; font-size: 12px; color: var(--muted, #55607a); line-height: 1.4; }
.loop-help[hidden] { display: none; }

/* ---------- Mini pass (live preview) ---------- */
.loop-mini-pass {
  background: var(--loop-card, #3a2a21);
  color: var(--loop-card-ink, #fff);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--loop-font);
  box-shadow: var(--loop-shadow);
  min-width: 0;
}
.loop-mini-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.loop-mini-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loop-mini-head small { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--loop-card-muted); }
.loop-mini-head strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loop-mini-count { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.loop-mini-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.loop-mini-stamps span {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--loop-card-empty);
  box-sizing: border-box;
  display: grid;
  place-items: center;
}
.loop-mini-stamps span.filled { border: 0; background: var(--loop-stamp); color: var(--loop-stamp-ink); }
.loop-mini-stamps svg { width: 56%; height: 56%; }
.loop-mini-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--loop-card-muted);
  min-width: 0;
}
.loop-mini-reward svg { width: 14px; height: 14px; flex: 0 0 14px; }
.loop-mini-reward span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Branding panel preview */
.loop-preview-logo {
  height: 64px;
  border: 1px solid var(--line, #e4e7ef);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
  overflow: hidden;
}
.loop-preview-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.loop-preview-logo img[hidden], .loop-preview-logo strong[hidden] { display: none; }
.loop-preview-logo strong { font-size: 15px; }

@media (max-width: 560px) {
  .loop-type-grid { grid-template-columns: 1fr; }
  .loop-type-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-color-row { grid-template-columns: 1fr; }
  .loop-color-row .loop-mini-pass { max-width: 260px; }
  .loop-hello h1 { font-size: 28px; }
}

/* Branding panel tweaks */
#branding-mini-pass { max-width: 320px; }
.loop-preview-logo { max-width: 320px; }
#cafe-branding-panel .branding-colors { margin-top: 14px; align-items: end; }
#cafe-branding-panel .branding-colors label { margin: 0 !important; }

/* =====================================================================
   Global system — applies the new look to every screen
   ===================================================================== */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600 !important; letter-spacing: -.025em; }
.hero h1, .app-shell > h1, .admin-head h1 { letter-spacing: -.035em; line-height: 1.04; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); max-width: 12ch; }
.hero-copy > p { font-size: 18px; line-height: 1.6; }
.brand { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.nav-link { font-weight: 500; border-radius: 12px; }
.nav-primary { border-radius: 12px; }
.topbar { height: 64px; }
label { font-weight: 600; font-size: 14px; }
input, textarea, select { border-radius: 12px; }
.panel, .pricing-card, .auth-card, .metrics article, .steps article { box-shadow: var(--shadow); border-radius: 20px; }
.auth-card { border-radius: 24px; background: var(--paper); }
.auth-card h1 { font: 600 clamp(32px, 4.4vw, 44px)/1.08 "Geist", system-ui, sans-serif; letter-spacing: -.03em; }
.status, .level { font-weight: 600; letter-spacing: 0; }
.card-heading small, .reward small, .metrics small { letter-spacing: .04em; font-weight: 600; }
.metrics strong { font-weight: 600; letter-spacing: -.03em; }
.metrics span { color: var(--muted); }
.form-message { font-weight: 500; }
.back { font-weight: 500; color: var(--muted); }
.auth-trial-note { background: var(--soft); }

/* Trust row without emoji checks */
.trust-row { list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 500; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* Hero demo: one live pass + type switcher */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loop-mini-pass.large {
  width: min(100%, 400px);
  padding: 26px 24px 22px;
  gap: 22px;
  border-radius: 26px;
  transition: background .3s ease;
}
.loop-mini-pass.large .loop-mini-head small { font-size: 11px; }
.loop-mini-pass.large .loop-mini-head strong { font-size: 21px; }
.loop-mini-pass.large .loop-mini-count { font-size: 34px; letter-spacing: -.03em; }
.loop-mini-pass.large .loop-mini-stamps { gap: 12px; }
.loop-mini-pass.large .loop-mini-reward { font-size: 14px; gap: 8px; }
.loop-mini-pass.large .loop-mini-reward svg { width: 18px; height: 18px; flex-basis: 18px; }
.hero-type-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.hero-type-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 14px/1 "Geist", system-ui, sans-serif;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.hero-type-switch button svg { width: 16px; height: 16px; }
.hero-type-switch button[aria-checked="true"] { background: var(--ink); color: #fff; }
.hero-type-switch button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hero-demo-note { margin: 0; font-size: 13px; color: var(--muted); }

/* How it works icons */
.how { background: var(--paper); }
.how-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink) !important;
  display: grid !important;
  place-items: center;
}
.how-icon svg { width: 22px; height: 22px; }
.steps b { color: var(--muted); font-weight: 500; font-size: 13px; }

/* Inline icons that replace emoji */
.ui-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; vertical-align: -4px; }
.ui-icon svg { width: 100%; height: 100%; }

@media (max-width: 850px) {
  .hero h1 { font-size: 46px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
  .hero-type-switch button { padding: 0 10px; font-size: 13px; }
  .trust-row { flex-direction: row !important; flex-wrap: wrap; gap: 8px 16px !important; }
}
.activity li > span.ui-icon, .program > span.ui-icon { width: 42px; height: 42px; color: var(--ink); }
.activity li > span.ui-icon svg, .program > span.ui-icon svg { width: 20px; height: 20px; }
.staff-lock.ui-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); padding: 12px; box-sizing: border-box; }
.legal-links a { border-radius: 12px; font-weight: 500; }

/* =====================================================================
   Sellito features: join page, poster, staff extras, admin panels
   ===================================================================== */
select, textarea {
  width: 100%;
  border: 1px solid var(--line, #e4e7ef);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  font: inherit;
  color: var(--ink, #1a2340);
  box-sizing: border-box;
}
textarea { resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217,83,43,.15); }
.optional { font-weight: 400; color: var(--muted, #55607a); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--orange); font: 600 14px/1.3 inherit; font-family: inherit; padding: 10px 0; cursor: pointer; text-align: left; }
.text-button[hidden] { display: none; }

.birthday-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.birthday-row label { margin: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.birthday-row input { padding: 14px; }

/* Customer card extras */
.loop-earned { display: flex; flex-direction: column; gap: 10px; }
.loop-earned[hidden], .loop-tiers-note[hidden], .loop-referral[hidden] { display: none; }
.loop-tiers-note { margin: -4px 2px 0; font-size: 13px; line-height: 1.5; color: var(--loop-muted); }
.loop-stamps span.tier:not(.filled) { border-style: solid; border-color: var(--loop-stamp); color: var(--loop-card-ink); font-weight: 700; }
.loop-referral {
  display: flex; align-items: center; gap: 14px;
  background: var(--loop-surface); border: 1px solid var(--loop-line); border-radius: 18px; padding: 14px 16px;
}
.loop-referral .loop-reward-icon svg { width: 22px; height: 22px; }
.loop-referral .loop-reward-text { flex: 1; min-width: 0; }
.loop-btn-small {
  min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px;
  background: var(--loop-accent); color: var(--loop-accent-ink); text-decoration: none;
}

/* Join page */
.loop-form { display: flex; flex-direction: column; gap: 6px; }
.loop-form label { margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--loop-ink); }
.loop-form input, .loop-form select { background: #fff; border: 1px solid var(--loop-line); }
.loop-form .loop-btn { margin-top: 18px; }
.loop-form[hidden] { display: none; }
#join-pass { align-self: center; }

/* Staff portal */
.staff-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.staff-badge { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: #fbe7df; color: #8a2f1c; }
.staff-card-rewards { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.staff-card-rewards[hidden] { display: none; }
.staff-card-rewards .button { margin-top: 6px; }

/* Admin panels */
.loop-admin-panel { grid-column: 1 / -1; }
.loop-admin-panel[hidden] { display: none; }
.join-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.join-qr { width: 180px; height: 180px; padding: 10px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: grid; place-items: center; }
.join-qr img, .join-qr canvas { max-width: 100%; height: auto; }
.join-actions { display: flex; flex-direction: column; gap: 4px; }
.join-actions .full-button { margin-top: 8px; }
.tier-list { display: flex; flex-direction: column; gap: 10px; }
.tier-row { display: grid; grid-template-columns: 76px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tier-row input { padding: 12px; }
.tier-row span { font-size: 14px; color: var(--muted); }
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 6px; }
.extras-grid label { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.inline-select { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin: 0; color: var(--muted); }
.inline-select select { width: auto; padding: 8px 10px; }
#inactive-panel > label { margin-top: 18px; }
.inactive-list { list-style: none; padding: 0; margin: 16px 0 0; max-height: 420px; overflow-y: auto; }
.inactive-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.inactive-list li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inactive-list small { color: var(--muted); }
.inactive-list .button { padding: 10px 14px; flex: none; text-decoration: none; }
.inactive-empty { color: var(--muted); }

/* Printable poster */
.poster-view { background: var(--cream); padding: 24px 16px 60px; }
.poster-toolbar { max-width: 640px; margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 12px; }
.poster-sheet {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  padding: 48px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px;
  color: #1a2340; font-family: "Geist", system-ui, sans-serif;
}
.poster-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.poster-brand img { max-height: 90px; max-width: 260px; object-fit: contain; }
.poster-brand img[hidden] { display: none; }
.poster-brand strong { font-size: 22px; font-weight: 600; }
.poster-title { font: 600 40px/1.08 "Geist", system-ui, sans-serif; letter-spacing: -.03em; margin: 0; }
.poster-qr { padding: 18px; border-radius: 22px; background: #fff; border: 6px solid var(--loop-card, #1a2340); }
.poster-qr img, .poster-qr canvas { display: block; width: 320px; height: 320px; }
.poster-reward { margin: 0; font-size: 20px; font-weight: 600; background: var(--loop-card, #1a2340); color: var(--loop-card-ink, #fff); padding: 10px 18px; border-radius: 12px; }
.poster-steps { text-align: left; margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; }
.poster-foot { margin: 0; font-size: 14px; color: #55607a; }

@media print {
  @page { size: letter; margin: 12mm; }
  body * { visibility: hidden !important; }
  #letrero, #letrero .poster-sheet, #letrero .poster-sheet * { visibility: visible !important; }
  #letrero { display: block !important; position: absolute; inset: 0; background: #fff; padding: 0; }
  .poster-toolbar { display: none !important; }
  .poster-sheet { box-shadow: none; max-width: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .site-footer { display: none !important; }
}

@media (max-width: 700px) {
  .join-grid { grid-template-columns: 1fr; justify-items: center; }
  .join-actions { width: 100%; }
  .extras-grid { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 64px auto minmax(0, 1fr); }
  .tier-row .text-button { grid-column: 1 / -1; padding: 0; }
  .poster-title { font-size: 32px; }
  .poster-qr img, .poster-qr canvas { width: 240px; height: 240px; }
}

/* Sellito wordmark (logo B2): the i-dot is a full stamp, the o is the stamp still to come */
.sellito-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-family: "Fredoka", "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--ink, #1a2340);
}
.sellito-wordmark .sw-i { position: relative; display: inline-block; }
.sellito-wordmark .sw-dot {
  position: absolute; left: 50%; top: 0.11em;
  width: 0.21em; height: 0.21em; margin-left: -0.105em;
  border-radius: 50%; background: #ff5b3a;
}
.sellito-wordmark .sw-o { width: 0.56em; height: 0.56em; margin-left: 0.025em; flex: none; overflow: visible; }
.brand { text-decoration: none; }
.birthday-row { align-items: end; }

/* ---------- Consent, recovery, employees, reports ---------- */
.loop-check { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 16px !important; font-weight: 500 !important; font-size: 14px; line-height: 1.45; cursor: pointer; }
.loop-check[hidden] { display: none !important; }
.loop-check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; padding: 0; accent-color: var(--loop-accent, #1a2340); }
.loop-link { align-self: center; border: 0; background: transparent; color: var(--loop-accent, #1a2340); font: 600 15px/1.3 var(--loop-font); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; min-height: 44px; cursor: pointer; margin-top: 6px; }
.loop-form-title { margin: 0; font: 600 22px/1.2 var(--loop-font); letter-spacing: -.02em; }
.loop-btn-ghost[href] { text-decoration: none; }

.staff-consent { margin: 14px 0 0 !important; }

.staff-members { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.staff-members[hidden] { display: none; }
.staff-members h3 { margin: 0 0 6px; font-size: 17px; }
.staff-member-list { list-style: none; padding: 0; margin: 12px 0; }
.staff-member-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.staff-member-list li > div { display: flex; flex-direction: column; gap: 2px; }
.staff-member-list small { color: var(--muted); }
.staff-member-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.staff-member-form label { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.staff-member-form input { padding: 12px; }

.cooldown-label { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.cooldown-label[hidden] { display: none; }
.inactive-no-consent { font-size: 12px; color: var(--muted); background: var(--soft); padding: 6px 10px; border-radius: 8px; flex: none; }

.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.report-kpi { background: var(--cream); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.report-kpi small { font-size: 12px; font-weight: 600; color: var(--muted); }
.report-kpi strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.report-kpi span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.report-grid h3 { margin: 0 0 10px; font-size: 16px; }
.report-grid h3 + .report-legend { margin-top: -4px; }
.report-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.report-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar-stamps { background: #ff5b3a; }
.bar-new { background: #1a2340; }
.report-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; height: 190px; align-items: end; }
.report-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.report-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.report-pair span { position: relative; width: 42%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.report-pair em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--muted); }
.report-col small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.report-list { list-style: none; padding: 0; margin: 0 0 22px; }
.report-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
#report-panel .panel-title .button { padding: 10px 14px; font-size: 14px; }

@media (max-width: 760px) {
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
  .staff-member-form { grid-template-columns: 1fr; }
  #report-panel .panel-title { flex-wrap: wrap; }
  .report-col small { font-size: 9px; }
}
