/* ===== Central de ajuda ===== */
.help-wrap { max-width: 1100px; margin: 0 auto; width: 100%; }
.help-search { width: 340px; max-width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-size: 14px; }
.help-sec { font-size: 16px; margin: 6px 0 -4px; color: var(--text); }

.help-check { padding: 18px 20px; }
.hc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hc-head h3 { font-size: 17px; margin: 0; }
.hc-head p { font-size: 13.5px; color: var(--text-secondary); margin-top: 3px; }
.hc-pct { font-size: 26px; font-weight: 800; color: var(--wa-green); }
.hc-bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 12px 0 8px; }
.hc-bar span { display: block; height: 100%; background: var(--wa-green); border-radius: 99px; transition: width 0.5s; }
.hc-items { display: flex; flex-direction: column; }
.hc-item { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--border); }
.hc-item:last-child { border-bottom: 0; }
.hc-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; color: #fff; }
.hc-item.done .hc-check { background: var(--wa-green); border-color: var(--wa-green); }
.hc-item.done .hc-label { color: var(--text-secondary); text-decoration: line-through; }
.hc-label { flex: 1; font-size: 14px; }
.hc-actions { display: flex; gap: 6px; }

.help-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.hg-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.15s; font: inherit; }
.hg-card:hover { border-color: var(--wa-green); transform: translateY(-1px); }
.hg-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--wa-green-soft); flex-shrink: 0; }
.hg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hg-body b { font-size: 14px; }
.hg-body small { font-size: 12px; color: var(--text-secondary); }

.help-faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); padding: 0 14px; margin-bottom: 8px; }
.help-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; }
.help-faq p { padding: 0 0 12px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* janela do tutorial */
.help-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.help-modal.open { display: flex; }
.help-modal-card { position: relative; width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; background: var(--surface, var(--card-bg)); color: var(--text); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.help-modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; color: var(--text-secondary); font-size: 26px; cursor: pointer; }
.hm-title { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.hm-title h3 { font-size: 19px; margin: 0; }
.hm-title small { color: var(--text-secondary); font-size: 12px; }
.hm-intro { margin: 14px 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.hm-media { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: #0b141a; display: block; margin-bottom: 14px; }
.hm-media.tall { width: auto; max-height: 420px; margin-left: auto; margin-right: auto; }
.hm-steps { padding-left: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.hm-steps li { counter-increment: st; position: relative; padding: 8px 10px 8px 44px; font-size: 14px; line-height: 1.55; border-radius: 10px; background: var(--row-hover); }
.hm-steps li::before { content: counter(st); position: absolute; left: 10px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--wa-green); color: var(--on-brand, #fff); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
.hm-tips { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 13.5px; }
.hm-tips ul { margin: 6px 0 0 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text-secondary); }
.hm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* boas-vindas */
.help-modal-card.welcome { max-width: 520px; text-align: center; padding: 32px 28px; }
.hw-emoji { font-size: 44px; }
.help-modal-card.welcome h2 { font-size: 22px; margin: 8px 0; }
.help-modal-card.welcome p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.hw-steps { text-align: left; margin: 14px auto; display: flex; flex-direction: column; gap: 8px; padding-left: 22px; font-size: 14.5px; max-width: 380px; }
.hw-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* dica na primeira visita */
.help-tip { position: fixed; right: 18px; bottom: 18px; z-index: 2500; display: flex; align-items: center; gap: 12px; max-width: 430px; padding: 12px 14px; border-radius: 14px; background: var(--surface, var(--card-bg)); color: var(--text); border: 1px solid var(--wa-green); box-shadow: var(--shadow-lg); transform: translateY(140%); opacity: 0; transition: transform 0.35s, opacity 0.35s; }
.help-tip.open { transform: none; opacity: 1; }
.help-tip div { display: flex; flex-direction: column; font-size: 13.5px; flex: 1; }
.help-tip small { color: var(--text-secondary); font-size: 12.5px; }
.help-tip-x { border: 0; background: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; }

@media (max-width: 760px) {
  .help-search { width: 100%; }
  .hc-item { flex-wrap: wrap; }
  .hc-actions { width: 100%; padding-left: 34px; }
  .help-modal-card { padding: 18px 16px; }
  .help-tip { left: 10px; right: 10px; bottom: 74px; max-width: none; }
}

/* ===== Plano: cadeados e quadro "Seu plano" ===== */
.rail-btn.rail-locked { position: relative; opacity: 0.75; }
.rail-btn.rail-locked::after { content: "🔒"; position: absolute; right: 2px; bottom: 2px; font-size: 10px; line-height: 1; }
.view.plan-locked > :not(.plan-lock) { display: none !important; }
.plan-lock { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.plan-lock-card { max-width: 520px; text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.plan-lock-card .pl-ic { font-size: 40px; }
.plan-lock-card h2 { font-size: 22px; margin: 8px 0 6px; }
.plan-lock-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.plan-lock-card .pl-tag { margin-top: 12px; color: var(--text); }
.pl-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.plan-card-locked input, .plan-card-locked select, .plan-card-locked .brand-imgs { opacity: 0.5; pointer-events: none; }
.plan-lock-inline { font-size: 13px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--wa-green); margin: 6px 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-box { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.pb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.pb-name { font-size: 17px; display: block; }
.pb-head small { color: var(--text-secondary); font-size: 12.5px; }
.pb-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pb-pill.ok { background: var(--wa-green-soft); color: var(--wa-green); }
.pb-pill.trial { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.pb-pill.bad { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.pb-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 4px; }
.pbar { height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--wa-green); border-radius: 99px; }
.pbar.warn span { background: #f59e0b; }
.pb-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pb-feats span { font-size: 12px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--border); }
.pb-feats span.on { color: var(--wa-green); border-color: var(--wa-green); }
.pb-feats span.off { color: var(--text-secondary); }
.pb-up { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.pb-up-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-addons { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }

/* Mensagens automáticas */
.am-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.am-days { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.am-days label { display: flex; align-items: center; gap: 4px; }
.am-preview { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13px; }
.am-preview pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0 0; color: var(--text-secondary); max-height: 220px; overflow: auto; }
@media (max-width: 700px) { .am-row { grid-template-columns: 1fr; } }
