/* ── help.css · מצב-הסברה (ראה help.js) ─────────────────────────────── */

/* כפתורי-הכותרת */
#help-bar{display:flex;align-items:center;gap:6px;margin-inline-end:6px}
#help-bar #btn-help.on{background:var(--purple-dim);color:#fff;border-color:transparent;box-shadow:0 0 0 2px rgba(139,92,246,.35)}
#help-bar #btn-tour,#help-bar #btn-guide{
  background:var(--panel2);border:1px solid var(--line);color:var(--dim);border-radius:7px;
  padding:4px 9px;font:inherit;font-size:12px;cursor:pointer;text-decoration:none;white-space:nowrap
}
#help-bar #btn-tour:hover,#help-bar #btn-guide:hover{border-color:var(--purple-dim);color:var(--ink)}
/*  הכותרת צפופה: «סיור» ו«מדריך» מופיעים רק כשמצב-ההסברה דלוק. ❔ לבד
    כברירת-מחדל — נמדד 17.09 שהשלושה יחד דחפו את הלוגו מחוץ למסך ב-1440.  */
body:not(.help-on) #help-bar #btn-tour,body:not(.help-on) #help-bar #btn-guide{display:none}

/* במצב-הסברה: כל פקד מקוטלג מקבל סמן-עזרה עדין; החשובים — מסגרת פועמת */
body.help-on button,body.help-on select,body.help-on input,body.help-on .chip,body.help-on .lchip{cursor:help}
body.help-on .help-important{
  position:relative;outline:2px solid rgba(240,168,72,.75);outline-offset:2px;border-radius:7px;
  animation:help-pulse 1.6s ease-in-out infinite
}
@keyframes help-pulse{0%,100%{outline-color:rgba(240,168,72,.75)}50%{outline-color:rgba(240,168,72,.15)}}

/* הטולטיפ */
#help-tip{
  position:fixed;z-index:90;display:none;width:min(340px,92vw);
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:11px 13px;box-shadow:0 14px 34px rgba(0,0,0,.6);font-size:13px;line-height:1.55;color:var(--ink)
}
#help-tip.important{border-color:rgba(240,168,72,.6)}
#help-tip .ht-title{font-size:11px;letter-spacing:.1em;color:var(--faint);text-transform:uppercase;margin-bottom:3px}
#help-tip .ht-tip{font-weight:700;font-size:14px;margin-bottom:5px}
#help-tip .ht-what{color:var(--ink);margin-bottom:6px}
#help-tip .ht-kv{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:12.5px;color:var(--dim);margin-bottom:6px}
#help-tip .ht-kv span{color:var(--faint)}
#help-tip .ht-kv b{font-weight:400;color:var(--dim)}
#help-tip .ht-caution,#help-tour .ht-caution{
  background:rgba(240,168,72,.1);border:1px solid rgba(240,168,72,.35);color:var(--amber);
  border-radius:8px;padding:5px 8px;font-size:12.5px;margin:6px 0 4px
}
#help-tip .ht-low{font-size:11px;color:var(--faint);margin-top:4px}
#help-tip .ht-more{display:inline-block;margin-top:6px;font-size:12px;color:var(--cyan);text-decoration:none}
#help-tip .ht-more:hover{text-decoration:underline}

/* הסיור */
#help-tour{position:fixed;inset:0;z-index:95;display:none}
#ht-spot{
  position:fixed;border-radius:10px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(6,5,12,.72),0 0 0 3px var(--purple),0 0 24px rgba(139,92,246,.55);
  transition:top .25s,left .25s,width .25s,height .25s
}
.help-spot-target{position:relative;z-index:96}
#ht-card{
  position:fixed;z-index:97;background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:14px 16px 12px;box-shadow:0 18px 40px rgba(0,0,0,.65);font-size:14px;line-height:1.6;color:var(--ink);
  transition:top .25s,left .25s
}
#ht-card .ht-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
#ht-card .ht-h b{font-size:16px;font-weight:750}
#ht-card .ht-h span{font-size:11.5px;color:var(--faint);font-variant-numeric:tabular-nums}
#ht-card #ht-tx b{color:var(--cyan);font-weight:600}
#ht-card .ht-acts{display:flex;align-items:center;gap:8px;margin-top:12px}
#ht-card .ht-acts button{
  background:var(--panel2);border:1px solid var(--line);color:var(--ink);border-radius:8px;
  padding:6px 12px;font:inherit;font-size:13px;cursor:pointer
}
#ht-card .ht-acts button:disabled{opacity:.35;cursor:default}
#ht-card #ht-next{background:var(--purple-dim);border-color:transparent;color:#fff;font-weight:700}
#ht-card #ht-skip{margin-inline-start:auto;color:var(--dim)}
#ht-card #ht-dots{display:flex;gap:4px}
#ht-card #ht-dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}
#ht-card #ht-dots i.on{background:var(--purple)}

/* הצעה לסיור בפעם הראשונה */
#help-offer{
  position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:85;
  display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--purple-dim);
  border-radius:12px;padding:9px 14px;box-shadow:0 12px 30px rgba(0,0,0,.6);font-size:13.5px
}
#help-offer button{background:var(--purple-dim);border:0;color:#fff;border-radius:8px;padding:5px 11px;font:inherit;font-size:13px;cursor:pointer}
#help-offer #ho-x{background:none;color:var(--faint);padding:2px 4px}

/* ══ UX3 (29.09) — first-run cards: the tour invite (help.js) and the plan card (mods/plan.js) ══
   «Show, don't tell»: one question, ONE prominent action, a small skip. Colours come from the
   variables, so the cards follow the light/dark shell (light.css) without rules of their own. */
.ob-card{
  position:fixed;z-index:88;left:0;right:0;top:26%;margin-inline:auto;   /* no transform: the `pop` animation owns it */
  width:min(360px,92vw);background:var(--panel);border:1px solid var(--line);border-radius:16px;
  padding:20px 22px 14px;box-shadow:0 22px 60px rgba(0,0,0,.55);color:var(--ink);text-align:center;
  animation:pop .2s ease-out
}
.ob-q{font-size:16px;font-weight:700;line-height:1.45;margin-bottom:16px}
.ob-go{display:block;width:100%;padding:11px 14px;border-radius:10px;border:1px solid var(--purple);
  background:var(--purple);color:#fff;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.ob-go:hover{filter:brightness(1.1)}
.ob-go:disabled{opacity:.5;cursor:default;filter:none}
.ob-later{display:inline-block;margin-top:9px;background:none;border:none;color:var(--faint);
  font:inherit;font-size:12px;cursor:pointer;text-decoration:underline;padding:3px 6px}
.ob-later:hover{color:var(--dim)}
/*  «Not now» → where the guides live: ❔ glows for a few seconds, with one line under it  */
#help-bar #btn-help.ob-glow{border-color:var(--purple);color:var(--ink);
  animation:ob-glow 1.1s ease-in-out infinite}
@keyframes ob-glow{0%,100%{box-shadow:0 0 0 2px rgba(139,92,246,.25)}50%{box-shadow:0 0 0 6px rgba(139,92,246,.55)}}
.ob-hint{position:fixed;z-index:89;background:var(--panel);border:1px solid var(--purple);border-radius:10px;
  padding:8px 12px;font-size:12.5px;line-height:1.5;color:var(--ink);box-shadow:0 10px 26px rgba(0,0,0,.35)}
/*  the plan card: three fields, pre-filled  */
.ob-card.ob-plan{top:18%;text-align:start}
.ob-plan .ob-q{text-align:center;margin-bottom:4px}
.ob-plan .ob-sub{text-align:center;font-size:12px;color:var(--dim);margin-bottom:14px}
.ob-plan label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;
  font-size:13px;color:var(--dim)}
.ob-plan label b{font-weight:600;color:var(--ink)}
.ob-plan input{width:110px;flex:none;background:var(--panel2);border:1px solid var(--line);border-radius:8px;
  padding:8px 10px;font:inherit;font-size:15px;font-weight:700;text-align:center;color:var(--ink);
  direction:ltr;unicode-bidi:isolate;outline:none}
.ob-plan input:focus{border-color:var(--purple)}
.ob-plan .ob-go{margin-top:12px}
.ob-plan .ob-err{font-size:12px;color:var(--sell);text-align:center;margin-top:8px;min-height:1em}
.ob-plan .ob-foot{text-align:center}
