/* ============================================================
   style.css — שפת העיצוב של אֶפִי
   ------------------------------------------------------------
   "חם-עתידני": קרמל בהיר כרקע, אספרסו לטקסט, ענבר כאור של התנור.
   אותה שפה כמו דף הנחיתה — כדי שמי שנרשם ירגיש שהוא באותו מקום.
   נבנה קודם כל לטלפון (העובדים במטבח) ומתרחב יפה למסך גדול (המנהל).
   כל הצבעים במשתנים ב-:root — החלפת גוון = שינוי הבלוק הזה בלבד.
   ============================================================ */

:root {
  /* יסודות המותג — גוון 4.1 "קרמל בהיר" (נבחר 18.9.2026 במחוון הגוונים).
     חם ובהיר: קרמל כרקע, טקסט אספרסו, ענבר עמוק כאור. index.html משתמש באותם ערכים. */
  --ground: #e8d8c3;
  --surface: #f3e9da;
  --surface-2: #faf4ea;
  --line: rgba(60, 40, 20, 0.12);
  --line-strong: rgba(60, 40, 20, 0.2);
  --ink: #2a2018;
  --ink-2: #5a4a3b;
  --muted: #8c7a68;
  --card: rgba(255, 255, 255, 0.55);        /* רקע כרטיס */
  --hover: rgba(60, 40, 20, 0.06);          /* ריחוף / שורה מודגשת */
  --input-bg: rgba(255, 255, 255, 0.75);    /* שדות קלט */
  --glass: rgba(232, 216, 195, 0.86);       /* סרגלים שקופים-מטושטשים */
  --glass-solid: rgba(232, 216, 195, 0.96); /* ניווט תחתון בנייד */
  --glow-1: rgba(240, 162, 75, 0.30);       /* זוהר הרקע */
  --glow-2: rgba(240, 162, 75, 0.14);
  --amber: #c2620f;
  --amber-deep: #a4520c;
  --glow: rgba(194, 98, 15, 0.22);
  --on-amber: #1a0f07;

  /* שמות ישנים — המסכים משתמשים בהם, לכן נשארים כאליאסים */
  --bg: var(--ground);
  --bg-grad: var(--ground);
  --brand: var(--amber);
  --brand-dark: #a4520c;
  --brand-grad: linear-gradient(135deg, #f7b45f 0%, #c2620f 100%);
  --brand-soft: rgba(240, 162, 75, 0.18);
  --ok: #1f8a44;
  --ok-soft: rgba(31, 138, 68, 0.13);
  --warn: #a96f0f;
  --warn-soft: rgba(232, 180, 88, 0.22);
  --danger: #c93a2a;
  --danger-soft: rgba(201, 58, 42, 0.12);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(42, 32, 24, 0.06), 0 8px 28px rgba(42, 32, 24, 0.08);
  --shadow-up: 0 6px 14px rgba(42, 32, 24, 0.1), 0 18px 50px rgba(42, 32, 24, 0.14);
  --serif: 'Frank Ruhl Libre', 'Heebo', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
/* זוהר של תנור בפינה — רקע קבוע שלא זז עם הגלילה */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 520px at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(520px 420px at 4% 108%, var(--glow-2), transparent 60%),
    var(--ground);
}

h1, h2, h3 { margin: 0 0 4px; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); }
p { margin: 8px 0; }
a { color: var(--amber); text-decoration: none; }

/* ---------- אנימציית כניסה לתוכן העמוד ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.view > * { animation: fadeUp 0.3s ease both; }
.view > *:nth-child(2) { animation-delay: 0.04s; }
.view > *:nth-child(3) { animation-delay: 0.08s; }
.view > *:nth-child(4) { animation-delay: 0.12s; }
.view > *:nth-child(5) { animation-delay: 0.16s; }

/* ---------- כלליים ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.88em; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.end { justify-content: flex-end; margin-top: 12px; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.warn-text { color: var(--warn); font-weight: 600; }
.pos { color: var(--ok); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }

/* ---------- סמל אֶפי (SVG symbol #efi-mark ב-app.html) ---------- */
.efi-mark { width: 28px; height: 28px; color: var(--amber); flex: none; filter: drop-shadow(0 0 8px var(--glow)); }
.efi-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(240, 162, 75, 0.35), rgba(240, 162, 75, 0.08));
  border: 1px solid rgba(240, 162, 75, 0.45);
  box-shadow: 0 0 0 0 var(--glow);
}
.efi-avatar .efi-mark { width: 32px; height: 32px; filter: none; }
.efi-avatar.thinking { animation: think 1.1s ease-in-out infinite; }
@keyframes think { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- כפתורים ---------- */
.btn {
  border: 1px solid var(--line-strong);
  background: var(--hover);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn.primary {
  background: var(--brand-grad);
  border: none;
  color: var(--on-amber);
  box-shadow: 0 6px 22px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 10px 34px rgba(194, 98, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); background: var(--brand-grad); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: rgba(240, 112, 95, 0.5); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--hover); }
.btn.wide { width: 100%; }
.link-btn {
  background: none; border: none; color: var(--amber);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 4px;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  background: none; border: none; font-size: 16px; cursor: pointer;
  padding: 6px 8px; border-radius: 10px; color: var(--ink);
  transition: background 0.15s ease, transform 0.08s ease;
}
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn:active { transform: scale(0.92); }

/* ---------- קלטים ---------- */
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(240, 162, 75, 0.6);
  box-shadow: 0 0 0 4px rgba(240, 162, 75, 0.12);
}
input::placeholder, textarea::placeholder { color: #a08e7b; }
select option { background: var(--surface-2); color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--amber); }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
label input, label select { margin-top: 5px; }

/* ---------- מעטפת עליונה ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.brand-bakery { font-family: 'Heebo', sans-serif; font-weight: 500; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.brand-bakery::before { content: "·"; margin-inline-end: 8px; color: var(--muted); }
.branch-sel { width: auto; max-width: 42vw; padding: 5px 10px; font-size: 13.5px; font-family: 'Heebo', sans-serif; font-weight: 600; border-radius: 999px; margin-inline-start: 4px; }
@media (max-width: 720px) { .branch-sel { max-width: 40vw; font-size: 12.5px; } }
.user-chip {
  font-size: 13px; font-weight: 600; color: var(--amber);
  background: var(--brand-soft);
  border: 1px solid rgba(240, 162, 75, 0.25);
  border-radius: 999px; padding: 5px 12px;
  white-space: nowrap;
}
.bell {
  position: relative; background: none; border: none;
  font-size: 20px; cursor: pointer; padding: 6px;
  border-radius: 12px; transition: background 0.15s ease;
}
.bell:hover { background: var(--brand-soft); }
.badge {
  position: absolute; top: 0; inset-inline-start: -2px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 800;
  min-width: 17px; height: 17px; line-height: 17px;
  border-radius: 9px; text-align: center; padding: 0 3px;
  box-shadow: 0 0 0 2px var(--ground);
}

/* ---------- ניווט: לשוניות למעלה במחשב ---------- */
.navbar {
  display: flex; gap: 4px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 6px 12px;
  overflow-x: auto;
  position: sticky; top: 57px; z-index: 19;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navbar::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { color: var(--ink); background: var(--hover); }
.nav-item.active { background: var(--brand-grad); color: var(--on-amber); box-shadow: 0 4px 16px var(--glow); }
.nav-ico { font-size: 16px; }

.view { max-width: 980px; margin: 0 auto; padding: 20px 14px 70px; }

.page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.page-head h2 { font-size: 26px; font-weight: 900; }

/* ---------- כרטיס אֶפי בראש לוח הבקרה ---------- */
.efi-hero {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(240, 162, 75, 0.10), var(--card) 70%);
  border: 1px solid rgba(240, 162, 75, 0.28);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.efi-hero h2 { font-size: 24px; font-weight: 900; margin: 0 0 2px; }
.efi-hero .efi-say { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.efi-hero .efi-say b { color: var(--ink); font-weight: 600; }
.efi-hero .efi-say a { font-weight: 600; }
.efi-hero .efi-date { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }

/* ---------- כרטיסים ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.card-title {
  font-weight: 800; margin-bottom: 12px; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.stat-card:hover { transform: translateY(-3px); border-color: rgba(240, 162, 75, 0.35); }
.stat-card.alert { border-color: rgba(240, 112, 95, 0.45); background: linear-gradient(180deg, var(--card) 0%, var(--danger-soft) 100%); }
.stat-icon {
  font-size: 20px;
  background: var(--brand-soft);
  border: 1px solid rgba(240, 162, 75, 0.25);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.stat-card.alert .stat-icon { background: var(--danger-soft); border-color: rgba(240, 112, 95, 0.35); }
.stat-num { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }

.soon-card {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
  color: var(--muted); font-size: 14px; font-weight: 500;
  background: transparent; margin-bottom: 16px;
}

.empty { color: var(--muted); text-align: center; padding: 22px 8px; font-size: 14px; }

/* ---------- משימות ---------- */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--card);
  transition: background 0.3s ease, border-color 0.3s ease;
  flex-wrap: wrap;
}
.task-row:hover { border-color: var(--line-strong); }
.task-row.done {
  background: var(--ok-soft);
  border-color: rgba(109, 196, 141, 0.35);
}
.task-row.done .task-title { color: var(--ok); }
.task-check {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
  cursor: pointer; color: var(--ink); font-size: 15px;
}
.task-check input {
  width: 22px; height: 22px; accent-color: var(--ok);
  flex: none; cursor: pointer;
}
.task-title { font-weight: 600; }
.chips { display: flex; align-items: center; gap: 6px; }
.chip {
  background: var(--brand-soft); color: var(--amber);
  border: 1px solid rgba(240, 162, 75, 0.22);
  border-radius: 999px; padding: 3px 11px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(109, 196, 141, 0.3); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(232, 180, 88, 0.3); }

/* ---------- תיבת מלל חופשי ---------- */
.stockbox input { font-size: 15px; }
.sb-preview {
  margin-top: 14px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
  animation: fadeUp 0.25s ease both;
}
.sb-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.sb-grid .span2 { grid-column: 1 / -1; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- טבלאות ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-s); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: right; color: var(--muted); font-weight: 700; font-size: 12.5px;
  padding: 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: var(--hover); }
.low-row, .table tbody tr.low-row:hover { background: var(--danger-soft); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.green { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.red { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.move-row, .notif-row, .emp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; flex-wrap: wrap;
}
.move-row:last-child, .notif-row:last-child, .emp-row:last-child { border-bottom: none; }

/* ---------- ספקים ורווחיות ---------- */
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.day-chip input { display: none; }
.day-chip span {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.day-chip span:hover { border-color: var(--amber); }
.day-chip input:checked + span {
  background: var(--brand-grad);
  border-color: transparent;
  color: var(--on-amber);
  box-shadow: 0 2px 10px var(--glow);
}

/* ---------- סידור משמרות ---------- */
.week-pills { display: flex; gap: 6px; }
.wk-pill.active-pill {
  background: var(--brand-grad); color: var(--on-amber); border: none;
  box-shadow: 0 3px 12px var(--glow);
}
.shift-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 980px) { .shift-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shift-grid { grid-template-columns: 1fr; } }
.shift-day {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; background: var(--card);
  display: flex; flex-direction: column;
}
.shift-day.today { border-color: rgba(240, 162, 75, 0.6); box-shadow: 0 0 0 3px rgba(240, 162, 75, 0.12); }
.shift-day h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; }
.shift-entry {
  display: flex; align-items: center; gap: 6px;
  background: var(--brand-soft); border-radius: 10px;
  padding: 6px 9px; margin-bottom: 6px;
  font-size: 13px; font-weight: 600;
  flex-wrap: wrap;
}
.shift-entry.me { background: var(--ok-soft); color: var(--ok); }
.shift-entry .x {
  margin-inline-start: auto; cursor: pointer;
  border: none; background: none; color: var(--muted);
  font-size: 12px; padding: 2px 4px;
}
.shift-add { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
.shift-add select, .shift-add input { padding: 7px 9px; font-size: 13px; }
.shift-add .btn { padding: 7px 10px; font-size: 13px; }

/* ---------- הזמנות חכמות ---------- */
.ord-group { border-top: 1px dashed var(--line-strong); padding-top: 10px; margin-top: 10px; }
.ord-group:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.pl-day { width: 100%; min-width: 52px; padding: 7px 4px; text-align: center; font-size: 13px; }

/* ---------- חשבוניות ---------- */
.inv-line {
  display: grid; grid-template-columns: 2fr 86px 120px 36px;
  gap: 8px; margin-bottom: 8px; align-items: center;
}
.inv-line.inv-head { margin-bottom: 4px; font-size: 12.5px; }
@media (max-width: 560px) { .inv-line { grid-template-columns: 1.6fr 64px 90px 30px; } }

/* ---------- עדכון מלאי רב-מוצרי ---------- */
.stockbox textarea {
  resize: vertical; min-height: 64px; font: inherit; font-size: 16px;
  padding: 12px 14px; border-radius: 16px;
  line-height: 1.5;
}
.sb-row {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin-bottom: 10px; background: var(--card);
  animation: fadeUp 0.25s ease both;
}
.sb-row.needs-teach {
  border-color: rgba(232, 180, 88, 0.45); background: var(--warn-soft);
}
.sb-row-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.sb-row-raw {
  flex: 1; font-size: 13px; color: var(--muted); font-style: italic;
}
.sb-waste {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 14px; cursor: pointer;
}
.sb-waste input { width: auto; margin: 0; }
.sb-line {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px;
}
.btn.small { padding: 5px 12px; font-size: 13px; }

/* ---------- שכר ונוכחות ---------- */
.punch-status {
  text-align: center; font-size: 15px;
  padding: 10px; border-radius: 12px;
  background: var(--hover); margin-bottom: 10px;
}
.punch-status.in { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.punch-btn { font-size: 17px; padding: 14px; }
.budget-bar {
  height: 10px; border-radius: 999px;
  background: var(--input-bg); border: 1px solid var(--line);
  overflow: hidden; margin: 4px 0 10px;
}
.budget-fill {
  height: 100%; border-radius: 999px;
  background: var(--brand-grad);
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.4s ease;
}
.budget-fill.over { background: linear-gradient(135deg, #f0705f, #b52a1a); box-shadow: none; }

/* ---------- עובדים ---------- */
.invite-card { border-color: rgba(240, 162, 75, 0.35); background: linear-gradient(180deg, var(--card) 0%, var(--brand-soft) 130%); }
.invite-code {
  font-size: 30px; font-weight: 900; letter-spacing: 7px;
  background: var(--input-bg); color: var(--amber);
  border: 2px dashed rgba(240, 162, 75, 0.6);
  padding: 10px 22px; border-radius: 14px;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

/* ---------- התחברות ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(42, 32, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px 26px;
  width: 100%; max-width: 430px;
  text-align: center;
  animation: fadeUp 0.4s ease both;
  position: relative;
}
/* מסגרת ענבר דקה שמתפוגגת — אותו אפקט כמו ההדגמה בנחיתה */
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 27px; padding: 1px;
  background: linear-gradient(135deg, rgba(240, 162, 75, 0.5), transparent 40%, transparent 60%, rgba(240, 162, 75, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.auth-logo {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: radial-gradient(circle at 30% 30%, rgba(240, 162, 75, 0.35), rgba(240, 162, 75, 0.08));
  border: 1px solid rgba(240, 162, 75, 0.45);
  box-shadow: 0 0 40px var(--glow);
  font-size: 34px;
}
.auth-logo .efi-mark { width: 54px; height: 54px; filter: none; }
.auth-title { font-size: 30px; font-weight: 900; }
.auth-sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 6px; }
.auth-say { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.auth-form { text-align: right; display: flex; flex-direction: column; gap: 13px; }
.auth-note { color: var(--danger); font-size: 14px; font-weight: 500; min-height: 20px; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab {
  flex: 1; border: none; background: transparent;
  padding: 9px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; color: var(--ink-2);
  transition: all 0.15s ease;
}
.tab.active { background: var(--brand-soft); color: var(--amber); font-weight: 800; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-opt {
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 12px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start;
  transition: all 0.15s ease;
}
.role-opt:hover { border-color: rgba(240, 162, 75, 0.5); }
.role-opt:has(input:checked) {
  border-color: rgba(240, 162, 75, 0.6);
  background: var(--brand-soft);
  box-shadow: 0 2px 14px rgba(240, 162, 75, 0.15);
}
.role-opt input { width: auto; margin-top: 3px; accent-color: var(--amber); }
.role-opt span { display: flex; flex-direction: column; }
.role-opt small { color: var(--muted); font-size: 12px; }

/* ---------- חלונות ---------- */
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(42, 32, 24, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: overlayIn 0.2s ease both;
}
.modal {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  width: 100%; max-width: 490px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(42, 32, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: modalIn 0.25s ease both;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface-2); z-index: 1;
}
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-x {
  background: var(--hover); border: none; font-size: 14px;
  cursor: pointer; color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 10px;
}
.modal-x:hover { background: var(--line-strong); color: var(--ink); }
.modal-body { padding: 18px 20px; }
.confirm-text { font-size: 15px; }

/* ---------- הודעות קופצות ---------- */
#toast-root {
  position: fixed; bottom: 20px; right: 50%; transform: translateX(50%);
  z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--surface-2);
  border: 1px solid rgba(240, 162, 75, 0.45);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90vw; text-align: center;
  box-shadow: 0 10px 34px rgba(42, 32, 24, 0.22), 0 0 24px var(--glow);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-error { border-color: var(--danger); box-shadow: 0 10px 34px rgba(42, 32, 24, 0.22), 0 0 24px rgba(201, 58, 42, 0.25); }
.toast-warn { border-color: var(--warn); box-shadow: 0 10px 34px rgba(42, 32, 24, 0.22), 0 0 24px rgba(232, 180, 88, 0.3); }

/* ---------- הדרכה ומתכונים ---------- */
.tr-steps { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 14px; }
.tr-step-text { font-size: 15.5px; line-height: 1.6; }
.tr-img img { width: 100%; border-radius: 14px; margin-top: 8px; border: 1px solid var(--line); }
.tr-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-cat { cursor: pointer; font-family: inherit; }

/* ---------- ביצועי עובדים ---------- */
.pf-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-row:last-child { border-bottom: none; }
.pf-rank { width: 26px; text-align: center; color: var(--muted); font-weight: 700; }
.pf-score { font-family: var(--serif); font-size: 30px; font-weight: 900; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.pf-bars { display: grid; gap: 4px; margin-top: 6px; }
.pf-bar { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 160px) 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pf-bar-track { height: 7px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--line); overflow: hidden; }
.pf-bar-fill { display: block; height: 100%; background: var(--brand-grad); border-radius: 999px; }
.pf-bar-val { text-align: left; font-variant-numeric: tabular-nums; font-weight: 700; }
.pf-stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0 14px; direction: ltr; }
.pf-star { font-size: 34px; background: none; border: none; cursor: pointer; color: var(--line-strong); padding: 0 2px; transition: transform 0.1s ease, color 0.15s ease; }
.pf-star.on { color: var(--amber); }
.pf-star:hover { transform: scale(1.15); }
@media (max-width: 720px) { .pf-row { gap: 8px; } .pf-score { font-size: 24px; min-width: 42px; } }

/* ---------- פס "יש גרסה חדשה" ---------- */
.update-bar {
  position: fixed; top: 10px; right: 50%; transform: translateX(50%);
  z-index: 70; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid rgba(240, 162, 75, 0.5);
  box-shadow: var(--shadow-up), 0 0 24px var(--glow);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: fadeUp 0.35s ease both;
}
@media (max-width: 720px) { .update-bar { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- מסכי מצב ---------- */
.center-screen {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 20px;
}
.center-screen h2 { font-size: 26px; }
.big-icon { font-size: 52px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px var(--glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- עמוד "בקרוב" ---------- */
.soon-page { text-align: center; padding: 60px 20px; }
.soon-icon { font-size: 56px; margin-bottom: 10px; }
.soon-page p { max-width: 440px; margin: 10px auto; }
.soon-badge {
  display: inline-block;
  background: var(--brand-soft); color: var(--amber);
  border-radius: 999px; padding: 7px 18px;
  font-size: 13px; font-weight: 800;
}

/* ============================================================
   נייד: הניווט הופך לסרגל תחתון בסגנון אפליקציה —
   אגודל אחד, בלי חיפושים. זה המסך של העובדים במטבח.
   ============================================================ */
@media (max-width: 720px) {
  .user-chip { display: none; }
  .brand-bakery { display: none; }
  .stat-num { font-size: 22px; }
  .view { padding: 16px 10px 96px; }
  .page-head h2 { font-size: 22px; }
  .efi-hero { padding: 14px; gap: 12px; }
  .efi-hero h2 { font-size: 20px; }
  .efi-hero .efi-say { font-size: 14.5px; }

  .navbar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: none;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass-solid);
    box-shadow: 0 -10px 30px rgba(42, 32, 24, 0.12);
    justify-content: flex-start;
  }
  .nav-item {
    flex-direction: column; gap: 2px;
    padding: 6px 10px;
    font-size: 11px; font-weight: 700;
    border-radius: 12px;
    min-width: 58px;
    align-items: center;
    flex: 1 0 auto;
  }
  .nav-item.active { background: var(--brand-soft); color: var(--amber); box-shadow: none; }
  .nav-ico { font-size: 21px; }
}

/* ---------- סריקת חשבוניות ---------- */
.scan-box {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 14px;
  border: 1.5px dashed rgba(240, 162, 75, 0.55); border-radius: 14px; background: var(--brand-soft);
}
.scan-box .btn.grow { flex: 1; }
.inv-line.unmatched { background: var(--warn-soft); border-radius: 10px; }
.iv-desc { grid-column: 1 / -1; font-size: 12.5px; padding: 0 4px 6px; }
.iv-pack { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 0 4px 6px; }
.iv-pack select, .iv-pack input { padding: 5px 8px; font-size: 13px; margin: 0; }
.iv-unit-cost { color: var(--amber); }
.iv-sum { grid-column: 1 / -1; font-size: 13px; padding: 0 4px 6px; }
.iv-sum b { font-size: 14px; }
.iv-desc .link-btn { font-size: 12.5px; }
.iv-mode { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 0 4px 8px; }
.iv-mode .chip { cursor: pointer; font-family: inherit; opacity: 0.6; }
.iv-mode .chip.ok { opacity: 1; }
.iv-mode .chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- מסלולים ומנוי ---------- */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; align-items: stretch;
}
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px 16px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card.highlight { border-color: rgba(240, 162, 75, 0.55); box-shadow: 0 20px 60px rgba(240, 162, 75, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(240, 162, 75, 0.07), var(--surface) 40%); }
.plan-card.current { border-color: rgba(109, 196, 141, 0.5); background: linear-gradient(180deg, var(--ok-soft), var(--surface) 50%); }
.plan-card.addon { background: var(--hover); }
.plan-tag {
  position: absolute; top: -12px; inset-inline-start: 14px;
  background: var(--brand-grad); color: var(--on-amber); font-size: 11.5px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 18px var(--glow);
}
.plan-name { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.plan-price { font-size: 30px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-feats { list-style: none; padding: 0; margin: 6px 0 10px; font-size: 13.5px; display: grid; gap: 5px; flex: 1; color: var(--ink-2); }
.plan-card .btn { margin-top: auto; text-align: center; display: block; }

/* ---------- טבלת פאנל-על ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }

/* ---------- צעדים ראשונים ---------- */
.ob-steps { display: grid; gap: 8px; }
.ob-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  color: inherit; background: var(--card); transition: background 0.15s ease, border-color 0.15s ease;
}
.ob-step:hover { background: var(--brand-soft); border-color: rgba(240, 162, 75, 0.35); }
.ob-step.done { opacity: 0.55; }
.ob-ico { font-size: 22px; width: 30px; text-align: center; }

/* ---------- תיבת מלל: שורות קומפקטיות ---------- */
.sb-row.compact { padding: 10px 12px; }
.sb-row.compact.new { border-color: rgba(109, 196, 141, 0.4); background: var(--ok-soft); }
.sb-row.compact.attention { border-color: rgba(232, 180, 88, 0.45); background: var(--warn-soft); }
.sb-line-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.sb-line-main .chip { margin-inline-start: 4px; }
.sb-after { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.sb-after b { color: var(--ok); }
.sb-after.neg b { color: var(--danger); }
.sb-line-fix {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 14px;
}
.sb-line-fix input, .sb-line-fix select { width: auto; padding: 6px 10px; font-size: 14px; margin: 0; }
.sb-line-edit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.sb-done {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 12px; background: var(--hover);
  border: 1px solid var(--line);
  margin-bottom: 6px; font-size: 14.5px;
  animation: fadeUp 0.35s ease both;
}

/* ---------- שורת התשובה של אֶפי בתיבה ---------- */
.efi-reply {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid rgba(240, 162, 75, 0.28);
  font-size: 15px; line-height: 1.5;
}
.efi-reply .efi-avatar { width: 34px; height: 34px; }
.efi-reply .efi-avatar .efi-mark { width: 22px; height: 22px; }

/* ---------- דיבור ---------- */
.sb-mic { font-size: 20px; padding: 8px 14px; line-height: 1; border-radius: 16px; background: var(--brand-soft); border-color: rgba(240, 162, 75, 0.45); }
.sb-mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 112, 95, 0.45); } 50% { box-shadow: 0 0 0 10px rgba(240, 112, 95, 0); } }
.sb-voice { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sb-voice .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: micPulse 1.2s ease-in-out infinite; flex: none; }
.stockbox .btn.primary { border-radius: 16px; }
@media (max-width: 640px) { .sb-mic { font-size: 24px; padding: 10px 18px; } }
@media (prefers-reduced-motion: reduce) {
  .sb-mic.listening, .sb-voice .pulse, .efi-avatar.thinking { animation: none; }
  .view > *, .sb-row, .sb-done, .auth-card { animation: none; }
}
