/* Meu Portal · 14 — tema np (redesenho)
   Tokens --np-*, cabeçalhos, módulos, chips, botões, submenus, abas, avaliações e .np-sec.
   Sobrescreve a camada original (01–13). */

body[data-page="meubot"] {
  --np-bg: #f6f4ee;
  --np-paper: #fffdf7;
  --np-ink: #15201f;
  --np-muted: #5f6d6a;
  --np-faint: #8a9794;
  --np-brand: #0f766e;
  --np-brand-dark: #0b5f58;
  --np-brand-tint: #e7f1ee;
  --np-accent: #e08a1e;
  --np-accent-soft: #f6e7cf;
  --np-paper-warm: #fbf9f1;
  --np-danger: #9a3a2c;
  --np-danger-soft: #f6e1dc;
  --np-line: #e4e0d4;
  --np-line-soft: #efece2;
  --np-serif: "Newsreader", Georgia, serif;
  --np-sans: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --np-mono: "Space Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--np-bg);
  color: var(--np-ink);
  font-family: var(--np-sans);
}

body[data-page="meubot"] .topbar {
  background: rgba(255, 253, 247, 0.86);
  border-bottom-color: rgba(228, 224, 212, 0.92);
  backdrop-filter: blur(14px);
}

.meubot-page {
  width: min(1280px, calc(100vw - 2rem));
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 76px);
}

#stateLoading,
.state-box {
  border: 1px solid var(--np-line);
  border-radius: 22px;
  background: var(--np-paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px -42px rgba(17,34,38,.45);
  padding: 1.35rem;
  color: var(--np-muted);
}

.np-head { margin-bottom: clamp(34px, 5vw, 56px); }
.np-eyebrow {
  margin: 0 0 16px;
  color: var(--np-brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.np-h1 {
  margin: 0 0 14px;
  font-family: var(--np-serif);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
}
.np-h1 em { color: var(--np-brand-dark); font-style: italic; }
.np-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--np-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
}
.np-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--np-line);
}
.np-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--np-muted);
  font-size: .9rem;
}
.np-meta b {
  color: var(--np-ink);
  font-family: var(--np-serif);
  font-size: 1.12rem;
  font-weight: 600;
}
.np-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--np-brand);
  align-self: center;
}

.np-modules { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); }
.np-module {
  margin: 0;
  overflow: hidden;
  background: var(--np-paper);
  border: 1px solid var(--np-line);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px -38px rgba(17,34,38,.5);
}
.np-mod-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px);
  cursor: pointer;
  user-select: none;
}
.np-mod-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--np-brand), var(--np-brand-dark));
}
.np-mod-titles { min-width: 0; }
.np-mod-kicker {
  margin: 0 0 4px;
  color: var(--np-faint);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.np-mod-name {
  margin: 0;
  color: var(--np-ink);
  font-family: var(--np-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}
.np-mod-role { margin: 4px 0 0; color: var(--np-muted); font-size: .9rem; }
.np-mod-side { display: flex; align-items: center; gap: 12px; }
.np-chip,
.np-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.np-chip { padding: 7px 13px; font-size: .8rem; }
.np-tag { padding: 3px 9px; font-size: .72rem; }
.np-chip-status,
.np-tag-appt { background: var(--np-brand-tint); color: var(--np-brand-dark); }
.np-chip-paused,
.np-tag-closed { background: #eceee9; color: var(--np-muted); }
.np-chip-plan { background: linear-gradient(135deg, var(--np-accent-soft), #f3dcae); color: #875010; box-shadow: inset 0 0 0 1px rgba(135,80,16,.14); }
.np-tag-open { background: var(--np-accent-soft); color: #8a5410; }
.np-tag-cancel { background: var(--np-danger-soft); color: var(--np-danger); }
.np-chip-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--np-brand);
  animation: npPulse 2.4s infinite;
}
@keyframes npPulse {
  0% { box-shadow: 0 0 0 0 rgba(15,118,110,.4); }
  70% { box-shadow: 0 0 0 7px rgba(15,118,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,118,110,0); }
}
.np-expand {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--np-line);
  border-radius: 999px;
  background: var(--np-bg);
  color: var(--np-muted);
  font-size: .8rem;
  transition: transform .25s ease, background .2s ease;
}
.np-module:has(.section-block-body:not(.collapsed)) .np-expand {
  transform: rotate(180deg);
  background: var(--np-brand-tint);
  color: var(--np-brand-dark);
  border-color: transparent;
}
.np-mod-body {
  padding: 0 clamp(20px, 3vw, 34px) clamp(24px, 3vw, 36px);
}
.section-block-body.collapsed { display: none; }
.np-mod-divider { height: 1px; margin: 0 0 clamp(22px, 3vw, 30px); background: var(--np-line-soft); }

.np-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 3vw, 28px);
}
.np-link-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--np-line);
  border-radius: 999px;
  background: var(--np-bg);
  font-size: .86rem;
}
.np-link-pill code {
  min-width: 0;
  overflow: hidden;
  color: var(--np-brand-dark);
  font-family: var(--np-sans);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-link-pill button {
  flex-shrink: 0;
  border: 1px solid var(--np-line);
  border-radius: 999px;
  background: var(--np-paper);
  color: var(--np-muted);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  padding: 6px 12px;
}
.np-identity-business { color: var(--np-muted); font-size: .88rem; }
#btnDownloadQrCode span { font-size: 1.05em; line-height: 1; }
body[data-page="meubot"] .cta,
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--np-sans);
  font-weight: 800;
  white-space: nowrap;
}
body[data-page="meubot"] .cta-primary,
.np-btn-primary { background: linear-gradient(150deg, var(--np-brand), var(--np-brand-dark)); color: #fff; border-color: transparent; }
body[data-page="meubot"] .cta-ghost,
.np-btn-ghost { background: var(--np-paper); color: var(--np-ink); border-color: var(--np-line); }
.np-btn-sm { padding: 8px 14px; font-size: .82rem; }

.np-subnav {
  position: sticky;
  top: 66px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: clamp(20px,3vw,28px) 0 clamp(24px,3vw,32px);
  padding: 10px;
  border: 1px solid var(--np-line);
  border-radius: 16px;
  background: rgba(246, 244, 238, .86);
  backdrop-filter: blur(8px);
}
.np-subnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--np-muted);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.np-subnav a:hover,
.np-subnav a.on { background: var(--np-ink); color: var(--np-paper); }

.bpt-tabs {
  display: flex;
  gap: 0;
  padding: 0 4px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--np-line);
  position: sticky;
  top: 66px;
  z-index: 5;
  background: color-mix(in oklab, var(--np-paper) 92%, transparent);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}
.bpt-tabs::-webkit-scrollbar { display: none; }
.bpt-tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--np-muted);
  padding: 15px 2px;
  margin-right: 26px;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bpt-tab:last-child { margin-right: 0; }
.bpt-tab .tc {
  font-size: .68rem;
  font-weight: 800;
  background: var(--np-bg);
  color: var(--np-muted);
  border-radius: 999px;
  padding: 1px 7px;
}
.bpt-tab:hover { color: var(--np-ink); }
.bpt-tab.on { color: var(--np-brand-dark); border-color: var(--np-brand); }
.bpt-tab.on .tc { background: var(--np-brand-tint); color: var(--np-brand-dark); }
.bpt-pane { display: none; }
.bpt-pane.on { display: block; animation: bptFade .22s ease; }

/* ---- Avaliações ---- */
.rev-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.rev-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.rev-switch-track {
  width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1;
  position: relative; transition: background .18s ease; flex-shrink: 0;
}
.rev-switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s ease;
}
.rev-switch input:checked + .rev-switch-track { background: var(--np-brand, #4f46e5); }
.rev-switch input:checked + .rev-switch-track .rev-switch-thumb { transform: translateX(18px); }
.rev-switch-text { font-size: .82rem; font-weight: 700; color: var(--np-ink, #111827); }

.rev-summary { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 16px 0 8px; }
.rev-summary-avg { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.rev-avg-num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--np-ink, #111827); }
.rev-avg-stars { color: #f5b301; font-size: 1.1rem; letter-spacing: 1px; margin-top: 4px; }
.rev-avg-count { font-size: .78rem; color: #6b7280; margin-top: 4px; }
.rev-dist { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.rev-dist-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #6b7280; }
.rev-dist-star { width: 26px; color: #b45309; font-weight: 700; }
.rev-dist-bar { flex: 1; height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.rev-dist-bar > span { display: block; height: 100%; background: #f5b301; }
.rev-dist-count { width: 22px; text-align: right; }

.rev-empty { padding: 16px 0; color: #6b7280; font-size: .88rem; }
.rev-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rev-item {
  border: 1px solid var(--np-line, #e5e7eb); border-radius: 12px; padding: 12px 14px;
  background: var(--np-paper, #fff);
}
.rev-item-hidden { opacity: .6; }
.rev-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rev-item-stars { color: #f5b301; font-size: .98rem; letter-spacing: 1px; }
.rev-item-name { font-weight: 700; color: var(--np-ink, #111827); font-size: .88rem; }
.rev-wpp { font-size: .8rem; color: var(--np-brand, #4f46e5); text-decoration: none; }
.rev-wpp:hover { text-decoration: underline; }
.rev-item-date { margin-left: auto; font-size: .76rem; color: #9ca3af; }
.rev-item-comment { margin: 8px 0 0; font-size: .88rem; color: #374151; white-space: pre-wrap; }
.rev-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rev-item-tag { font-size: .72rem; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 999px; margin-right: auto; }
.rev-act {
  appearance: none; border: 1px solid var(--np-line, #d1d5db); background: transparent;
  border-radius: 8px; padding: 5px 12px; font-size: .78rem; font-weight: 600; cursor: pointer;
  color: var(--np-ink, #374151);
}
.rev-act:hover { background: #f3f4f6; }
.rev-act-danger { color: #dc2626; border-color: #fecaca; }
.rev-act-danger:hover { background: #fef2f2; }
@keyframes bptFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.bpt-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.bpt-subnav::-webkit-scrollbar { display: none; }
.bpt-subpill {
  border: 1px solid var(--np-line);
  background: var(--np-paper);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: .84rem;
  color: var(--np-muted);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bpt-subpill .si { font-size: .95rem; }
.bpt-subpill:hover { border-color: var(--np-brand); }
.bpt-subpill.on { background: var(--np-ink); color: var(--np-paper); border-color: var(--np-ink); }
.bpt-subpill.hidden { display: none; }
.bpt-subpill.locked { opacity: .72; }
.bpt-subpane { display: none; }
.bpt-subpane.on { display: block; }

.np-sec { margin-bottom: clamp(30px, 4vw, 46px); scroll-margin-top: 130px; }
.np-sec:last-child { margin-bottom: 0; }
.np-sec-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.np-sec-label,
.analytics-panel-title,
.np-card-title {
  color: var(--np-ink);
  font-family: var(--np-serif);
  font-weight: 600;
  margin: 0;
}
.np-sec-label { font-size: 1.45rem; }
.np-sec-hint,
.section-hint { margin: 5px 0 0; color: var(--np-faint); font-size: .84rem; line-height: 1.55; }
