/* renderer/onboarding-flow.css — "🚀 כניסות לקוח" panel (renderer/onboarding-flow.js).
   Same dark / gold look as the finance sheet + Finbot modal. Phones (≤ 640px): full screen, list → client → back. */

/* owner-only entry points (the CRM menu item + the sidebar button) */
body:not(.obf-is-owner) .obf-owner-only { display: none !important; }
body.obf-lock { overflow: hidden; }

.obf-overlay {
  --obf-gold: #d4af37;
  --obf-gold-soft: rgba(212, 175, 55, 0.14);
  --obf-text: #edf3ff;
  --obf-muted: #8fa3c2;
  --obf-line: rgba(148, 163, 184, 0.16);
  --obf-ok: #4ade80;
  --obf-bad: #f87171;
  --obf-warn: #fbbf24;
  --obf-blue: #60a5fa;
  position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(900px 600px at 50% 0%, rgba(212,175,55,0.10), rgba(2,6,23,0) 60%), rgba(2,6,23,0.74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  direction: rtl; color: var(--obf-text); font-family: inherit; animation: obf-fade .18s ease-out;
}
.obf-overlay *, .obf-overlay *::before, .obf-overlay *::after { box-sizing: border-box; }
@keyframes obf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes obf-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes obf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.45); } 50% { box-shadow: 0 0 0 6px rgba(212,175,55,0); } }
@keyframes obf-spin { to { transform: rotate(360deg); } }

.obf-modal {
  width: min(1180px, 100%); height: min(900px, calc(100vh - 32px)); height: min(900px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(8,14,28,0.98));
  border: 1px solid rgba(212,175,55,0.28); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); animation: obf-rise .22s ease-out;
}
.obf-modal.is-list { width: min(760px, 100%); }
.obf-overlay.is-busy .obf-modal { cursor: progress; }

/* header */
.obf-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px 12px; border-bottom: 1px solid var(--obf-line); min-width: 0; flex: none; }
.obf-head-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(212,175,55,0.28), rgba(212,175,55,0.06)); border: 1px solid rgba(212,175,55,0.4); }
.obf-head-txt { min-width: 0; flex: 1; }
.obf-title { font-size: 18px; font-weight: 800; color: #f8e7a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obf-sub { font-size: 13px; color: var(--obf-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obf-head-acts { display: flex; gap: 8px; flex: none; }
.obf-icon-btn { width: 40px; height: 40px; border-radius: 11px; cursor: pointer; font-size: 16px; flex: none; color: #cbd5e1;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(148,163,184,0.22); -webkit-tap-highlight-color: transparent; }
.obf-icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.obf-back { font-size: 20px; color: #f8e7a6; }

/* body: list (side) + main */
.obf-body { flex: 1; min-height: 0; display: flex; }
.obf-list { width: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.obf-list.is-side { width: 320px; flex: none; border-inline-start: 1px solid var(--obf-line); order: 0; }
.obf-main { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 22px 28px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch;
  background: radial-gradient(700px 380px at 50% 0%, rgba(212,175,55,0.06), rgba(2,6,23,0) 70%); }

/* list cards */
.obf-card { display: grid; gap: 6px; width: 100%; text-align: right; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit;
  background: rgba(255,255,255,0.03); border: 1px solid var(--obf-line); transition: border-color .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.obf-card:hover { border-color: rgba(212,175,55,0.45); }
.obf-card.is-on { border-color: var(--obf-gold); background: var(--obf-gold-soft); }
.obf-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.obf-card-name { font-weight: 800; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obf-card-sub { font-size: 12.5px; color: var(--obf-muted); }
.obf-card-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.obf-badge { margin-inline-start: auto; flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #111; background: var(--obf-gold); }
h3 .obf-badge { margin-inline-start: 6px; vertical-align: 2px; }

/* chips */
.obf-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; line-height: 1.4; max-width: 100%; }
.obf-chip.is-ok { color: #bbf7d0; border-color: rgba(74,222,128,0.4); background: rgba(34,197,94,0.12); }
.obf-chip.is-bad { color: #fecaca; border-color: rgba(248,113,113,0.45); background: rgba(127,29,29,0.32); }
.obf-chip.is-warn { color: #fde68a; border-color: rgba(251,191,36,0.4); background: rgba(234,179,8,0.10); }
.obf-chip.is-muted { color: #94a3b8; border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.08); }
.obf-chip.is-stage { color: #f8e7a6; border-color: rgba(212,175,55,0.45); background: var(--obf-gold-soft); }

/* stage progress 1 → 8 */
.obf-progress { display: grid; gap: 8px; }
.obf-progress-track { height: 4px; border-radius: 4px; background: rgba(148,163,184,0.16); overflow: hidden; }
.obf-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, #b8902a, #e6c454); border-radius: 4px; transition: width .3s ease; }
.obf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.obf-step { display: grid; justify-items: center; gap: 3px; text-align: center; min-width: 0; }
.obf-step-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  color: #94a3b8; background: rgba(148,163,184,0.10); border: 1.5px solid rgba(148,163,184,0.28); }
.obf-step-lbl { font-size: 11.5px; font-weight: 700; color: #cbd5e1; line-height: 1.25; overflow-wrap: anywhere; }
.obf-step-st { font-size: 10.5px; color: var(--obf-muted); line-height: 1.2; }
.obf-step.is-done .obf-step-dot { color: #111; background: var(--obf-gold); border-color: var(--obf-gold); }
.obf-step.is-active .obf-step-dot { color: #f8e7a6; border-color: var(--obf-gold); background: var(--obf-gold-soft); animation: obf-pulse 1.8s ease-in-out infinite; }
.obf-step.is-active .obf-step-st { color: #f8e7a6; }
.obf-step.is-waiting .obf-step-dot, .obf-step.is-scheduled .obf-step-dot { color: #bfdbfe; border-color: rgba(96,165,250,0.6); background: rgba(59,130,246,0.14); }
.obf-step.is-waiting .obf-step-st, .obf-step.is-scheduled .obf-step-st { color: #bfdbfe; }
.obf-step.is-blocked .obf-step-dot { color: #fecaca; border-color: rgba(248,113,113,0.6); background: rgba(127,29,29,0.3); }
.obf-progress.is-compact .obf-steps { gap: 4px; }
.obf-progress.is-compact .obf-step-dot { width: 100%; height: 8px; border-radius: 4px; font-size: 0; border-width: 0; background: rgba(148,163,184,0.18); animation: none; box-shadow: none; }
.obf-progress.is-compact .obf-step.is-done .obf-step-dot { background: var(--obf-gold); }
.obf-progress.is-compact .obf-step.is-active .obf-step-dot { background: repeating-linear-gradient(-45deg, rgba(212,175,55,0.85) 0 5px, rgba(212,175,55,0.35) 5px 10px); }
.obf-progress.is-compact .obf-step.is-waiting .obf-step-dot, .obf-progress.is-compact .obf-step.is-scheduled .obf-step-dot { background: rgba(96,165,250,0.75); }
.obf-progress.is-compact .obf-progress-track { display: none; }

/* who / payment */
.obf-who { display: grid; gap: 6px; }
.obf-who-name { font-size: 20px; font-weight: 800; }
.obf-who-name span { color: var(--obf-muted); font-weight: 600; font-size: 16px; }
.obf-who-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: #cbd5e1; }
.obf-who-lines bdi { unicode-bidi: isolate; }
.obf-kv { display: flex; gap: 8px; font-size: 13px; color: var(--obf-muted); }
.obf-kv b { color: #e2e8f0; font-weight: 600; }
.obf-pay { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid; }
.obf-pay b { font-size: 15.5px; }
.obf-pay span { font-size: 12.5px; opacity: .85; }
.obf-pay.is-ok { color: #bbf7d0; border-color: rgba(74,222,128,0.4); background: rgba(34,197,94,0.10); }
.obf-pay.is-bad { color: #fecaca; border-color: rgba(248,113,113,0.45); background: rgba(127,29,29,0.28); }
.obf-pay.is-warn { color: #fde68a; border-color: rgba(251,191,36,0.4); background: rgba(234,179,8,0.10); }

/* sections */
.obf-sec { display: grid; gap: 10px; }
.obf-sec h3 { margin: 4px 0 0; font-size: 13px; color: var(--obf-gold); font-weight: 800; letter-spacing: .3px; }
.obf-hint { font-size: 12px; color: var(--obf-muted); line-height: 1.5; }
.obf-empty { padding: 26px 12px; text-align: center; color: var(--obf-muted); font-size: 14px; line-height: 1.7; }
.obf-empty.is-small { padding: 12px; font-size: 13px; border: 1px dashed var(--obf-line); border-radius: 12px; }
.obf-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(212,175,55,0.3); border-top-color: var(--obf-gold); border-radius: 50%; animation: obf-spin .8s linear infinite; vertical-align: -2px; }

/* messages */
.obf-msg { font-size: 13px; border-radius: 11px; padding: 9px 12px; line-height: 1.5; overflow-wrap: anywhere; }
.obf-msg.err { background: rgba(127,29,29,0.34); border: 1px solid rgba(248,113,113,0.4); color: #fecaca; }
.obf-msg.warn { background: rgba(234,179,8,0.10); border: 1px solid rgba(234,179,8,0.32); color: #fde68a; }
.obf-msg.ok { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.32); color: #bbf7d0; }
.obf-inline { font: inherit; font-size: 12.5px; font-weight: 700; color: #f8e7a6; background: none; border: none; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* drafts */
.obf-draft { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.025); border: 1px solid var(--obf-line); }
.obf-draft.is-pending { border-color: rgba(212,175,55,0.35); box-shadow: inset 3px 0 0 var(--obf-gold); }
.obf-draft.is-sent, .obf-draft.is-rejected, .obf-draft.is-replaced { opacity: .78; }
.obf-draft-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obf-when { margin-inline-start: auto; font-size: 11.5px; color: var(--obf-muted); }
.obf-mail { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(2,6,23,0.5); border: 1px solid rgba(148,163,184,0.12); }
.obf-mail-meta { font-size: 12px; color: var(--obf-muted); }
.obf-mail-meta bdi { unicode-bidi: isolate; color: #cbd5e1; }
.obf-mail-subj { font-size: 15px; font-weight: 800; color: #f1f5f9; }
.obf-mail-text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: #e2e8f0; overflow-wrap: anywhere; }
.obf-mail-text b { color: #fff; }
.obf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.obf-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; color: #111; background: var(--obf-gold); }
.obf-link.is-missing { color: #fecaca; background: rgba(127,29,29,0.35); border: 1px dashed rgba(248,113,113,0.6); font-weight: 700; }

/* buttons */
.obf-row { display: flex; gap: 8px; align-items: center; }
.obf-row.is-wrap { flex-wrap: wrap; }
.obf-acts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.obf-btn { min-height: 44px; padding: 9px 14px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; color: #e2e8f0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(148,163,184,0.25); -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background .15s ease; }
.obf-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #fff; }
.obf-btn:active:not(:disabled) { transform: scale(.98); }
.obf-btn:disabled { opacity: .42; cursor: not-allowed; }
.obf-btn.is-gold { color: #111; background: linear-gradient(135deg, #e6c454, #b8902a); border-color: #d4af37; box-shadow: 0 6px 18px rgba(212,175,55,0.22); }
.obf-btn.is-big { min-height: 52px; font-size: 16px; padding: 12px 22px; }
.obf-btn.is-approve { color: #052e16; background: linear-gradient(135deg, #4ade80, #16a34a); border-color: #22c55e; }
.obf-btn.is-approve.is-confirm { animation: obf-pulse 1.1s ease-in-out infinite; background: linear-gradient(135deg, #e6c454, #b8902a); border-color: #d4af37; color: #111; }
.obf-btn.is-ghost-bad { color: #fecaca; border-color: rgba(248,113,113,0.35); }
.obf-btn.is-bad { color: #fff; background: #b91c1c; border-color: #ef4444; }
.obf-btn.is-warn { color: #111; background: #fbbf24; border-color: #f59e0b; }
.obf-reject { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.obf-collapse { font: inherit; font-size: 13px; font-weight: 800; color: var(--obf-muted); background: none; border: none; text-align: right; padding: 6px 0; cursor: pointer; }
.obf-manual summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--obf-muted); padding: 6px 0; }
.obf-manual[open] summary { color: #f8e7a6; margin-bottom: 8px; }
.obf-manual .obf-btn { font-size: 13px; min-height: 40px; }
.obf-shoot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
/* stage 7 "הבא": the next step after the strategy call (opens the shoot-day form pre-filled) */
.obf-next { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--obf-line); background: rgba(255,255,255,0.025); }
.obf-next.is-cta { border-color: rgba(212,175,55,0.55); background: linear-gradient(135deg, rgba(212,175,55,0.14), rgba(212,175,55,0.04)); box-shadow: inset 3px 0 0 var(--obf-gold); }
.obf-next.is-booked { border-color: rgba(96,165,250,0.45); background: rgba(59,130,246,0.08); }
.obf-next-t { font-size: 16px; font-weight: 800; color: #f8e7a6; }
.obf-next.is-booked .obf-next-t { color: #bfdbfe; }
.obf-next-d { font-size: 14px; color: #e2e8f0; overflow-wrap: anywhere; }
.obf-warn-txt { color: #fde68a; }
.obf-chip.is-sched { color: #bfdbfe; border-color: rgba(96,165,250,0.45); background: rgba(59,130,246,0.12); }
.obf-badge.is-sched { color: #0b1220; background: #93c5fd; }
.obf-draft.is-scheduled { border-color: rgba(96,165,250,0.4); box-shadow: inset 3px 0 0 rgba(96,165,250,0.8); }
.obf-start-row { display: flex; justify-content: flex-start; }

/* 🧪 "נסה כלקוח": the owner's own test client (start box + "מצב הבדיקה") */
.obf-chip.is-test { color: #e9d5ff; border-color: rgba(192,132,252,0.5); background: rgba(147,51,234,0.16); }
.obf-pay.is-test { color: #e9d5ff; border-color: rgba(192,132,252,0.45); background: rgba(147,51,234,0.12); }
.obf-test { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(192,132,252,0.55);
  background: linear-gradient(135deg, rgba(147,51,234,0.14), rgba(147,51,234,0.03)); box-shadow: inset 3px 0 0 rgba(192,132,252,0.8); }
.obf-test-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.obf-test-head b { font-size: 16px; color: #f3e8ff; }
.obf-test-hint { font-size: 13.5px; color: #e2e8f0; line-height: 1.6; }
.obf-test-who { font-size: 13px; color: #cbd5e1; }
.obf-test-who bdi { unicode-bidi: isolate; }
.obf-test-sub { font-size: 12.5px; font-weight: 800; color: #d8b4fe; margin-top: 2px; }
.obf-test-pages { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.obf-test-pages a { color: #d8b4fe; font-weight: 700; text-underline-offset: 3px; }
.obf-test-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.obf-test-msgs li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(148,163,184,0.08); }
.obf-test-msgs time { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 92px; }
.obf-test-subj { color: #e2e8f0; overflow-wrap: anywhere; }
.obf-test-msgs small { color: var(--obf-muted); }
.obf-test-confirm { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(248,113,113,0.45); background: rgba(127,29,29,0.25); color: #fecaca; font-size: 13px; line-height: 1.55; }
.obf-test-confirm b { font-size: 14.5px; color: #fff; }

/* fields */
.obf-edit { display: grid; gap: 10px; }
.obf-edit.is-contact { padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--obf-line); }
.obf-field { display: grid; gap: 4px; min-width: 0; }
.obf-field > span { font-size: 12px; color: var(--obf-muted); }
.obf-field small { color: #64748b; }
.obf-overlay input[type="text"], .obf-overlay input[type="email"], .obf-overlay input[type="url"], .obf-overlay input[type="tel"], .obf-overlay textarea {
  width: 100%; min-width: 0; background: rgba(2,6,23,0.6); color: #f1f5f9; border: 1px solid rgba(148,163,184,0.25); border-radius: 11px;
  padding: 10px 12px; font: inherit; font-size: 16px; outline: none; }
.obf-overlay input:focus, .obf-overlay textarea:focus { border-color: rgba(212,175,55,0.65); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.obf-overlay input[dir="ltr"] { text-align: right; }
.obf-overlay textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
.obf-override { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(251,191,36,0.45); background: rgba(234,179,8,0.06); }
.obf-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fde68a; cursor: pointer; min-height: 40px; }
.obf-check input { width: 20px; height: 20px; accent-color: #d4af37; flex: none; }

/* payment rows table */
.obf-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--obf-line); }
.obf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.obf-table th { text-align: right; color: var(--obf-muted); font-weight: 700; padding: 7px 10px; background: rgba(255,255,255,0.03); white-space: nowrap; }
.obf-table td { padding: 7px 10px; border-top: 1px solid var(--obf-line); }
.obf-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.obf-table td.n { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* timeline */
.obf-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.obf-tl { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(148,163,184,0.08); }
.obf-tl time { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.obf-tl span { color: #cbd5e1; overflow-wrap: anywhere; white-space: pre-wrap; }
.obf-tl.is-warn span { color: #fde68a; }
.obf-tl.is-sent span { color: #bbf7d0; }
.obf-tl.is-client span { color: #bfdbfe; }
.obf-tl.is-payment span { color: #f8e7a6; }
.obf-tl.is-next span { color: #f8e7a6; font-weight: 700; }

/* ---------- phones: full screen, one column ---------- */
@media (max-width: 640px) {
  .obf-overlay { padding: 0; align-items: stretch; }
  .obf-modal, .obf-modal.is-list { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: none; }
  .obf-head { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .obf-title { font-size: 16.5px; }
  .obf-list.is-side { display: none; }
  .obf-list { padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); }
  .obf-main { padding: 12px 12px calc(28px + env(safe-area-inset-bottom)); }
  .obf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .obf-progress.is-compact .obf-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .obf-acts { grid-template-columns: 1fr 1fr; }
  .obf-acts .obf-btn.is-approve { grid-column: 1 / -1; min-height: 50px; font-size: 15.5px; }
  .obf-reject { grid-template-columns: 1fr 1fr; }
  .obf-reject input { grid-column: 1 / -1; }
  .obf-tl { grid-template-columns: 1fr; gap: 2px; }
  .obf-start-row .obf-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .obf-overlay, .obf-modal, .obf-step.is-active .obf-step-dot, .obf-btn.is-approve.is-confirm { animation: none; }
}

/* "🔗 קישורים ציבוריים" (list view): public booking pages, e.g. ניתוח עמוד חינם, with a copy button */
.obf-publinks { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(212,175,55,0.35); background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(212,175,55,0.02)); }
.obf-publinks-t { font-size: 13px; font-weight: 800; color: var(--obf-gold); }
.obf-publink { display: flex; align-items: center; gap: 10px; }
.obf-publink-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.obf-publink-txt b { font-size: 14.5px; color: #f8e7a6; }
.obf-publink-txt bdi { unicode-bidi: isolate; font-size: 12.5px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obf-publink .obf-btn { flex: none; min-height: 40px; font-size: 13px; }

/* 🔔 תזכורות לוסי לפגישות (renderer/meeting-reminders.js) — same panel look, stacked above "כניסות לקוח" */
.lmr-entry { width: 100%; }
.lmr-modal .obf-main { gap: 12px; }
.lmr-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lmr-mode.is-on { color: #111; background: linear-gradient(135deg, #e6c454, #b8902a); border-color: #d4af37; }
.lmr-mode.is-confirm { border-color: var(--obf-warn); color: var(--obf-warn); }
.lmr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lmr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--obf-line); background: rgba(255,255,255,0.03); font-size: 14px; }
.lmr-row.is-skip { opacity: .65; }
.lmr-row.is-bad { border-color: rgba(248,113,113,0.45); }
.lmr-when { color: var(--obf-gold); font-weight: 800; white-space: nowrap; }
.lmr-name { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.lmr-meta { color: var(--obf-muted); font-size: 13px; }
.lmr-preview { display: grid; gap: 4px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--obf-line); background: rgba(255,255,255,0.03); }
.lmr-preview-t { font-size: 12.5px; font-weight: 800; color: var(--obf-muted); }

/* 💳 תשלום לפני פגישה (renderer/pay-before-meeting.js): opened from the iPhone push → big ✅ / ✏️ / ✖, wa.me below */
.pbm-draft { display: grid; gap: 6px; }
.pbm-head { line-height: 1.5; }
.pbm-when { color: var(--obf-gold); font-weight: 800; }
.pbm-acts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.pbm-acts .obf-btn { min-height: 48px; font-size: 15px; }
.pbm-manual { display: flex; flex-wrap: wrap; gap: 8px; }
.pbm-manual .obf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; font-size: 13.5px; text-decoration: none; }
.obf-overlay textarea.pbm-edit { width: 100%; min-height: 150px; font-size: 16px; } /* 16px: iOS doesn't zoom in */
.pbm-older { margin-top: 6px; }
.pbm-older .lmr-list { margin-top: 8px; }
@media (max-width: 640px) {
  .pbm-acts { grid-template-columns: 1fr 1fr; }
  .pbm-acts .obf-btn { min-height: 54px; font-size: 16px; }
  .pbm-acts .obf-btn.is-approve { grid-column: 1 / -1; min-height: 60px; font-size: 18px; }
  .pbm-manual .obf-btn { flex: 1 1 45%; min-height: 48px; }
}
