/* styles.css — עיצוב RTL, מצב כהה/בהיר, רספונסיבי */

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --nav-w: 240px;
}
[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #161f33;
  --surface-2: #1e293b;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --border: #2b3650;
  --primary: #818cf8;
  --primary-soft: #1e253f;
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Segoe UI", "Rubik", "Assistant", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

#app { display: flex; min-height: 100vh; }

/* ===== סרגל צד (מחשב) ===== */
#sidebar {
  width: var(--nav-w);
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
  padding: 6px 8px 16px;
}
.brand-icon { font-size: 1.5rem; }
#nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: none; background: transparent;
  color: var(--text-soft);
  font: inherit; font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-align: start;
  transition: background .15s, color .15s;
}
.nav-item .ni-icon { font-size: 1.2rem; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }

/* ===== אזור תוכן ===== */
#main {
  flex: 1;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  height: 100vh;
}
#view { display: flex; flex-direction: column; gap: 16px; }

/* ===== כרטיסים וכותרות ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-head h2 { font-size: 1.25rem; margin: 0; }
.section-head h3 { font-size: 1.05rem; margin: 0; }
#view > .section-head { margin: 4px 0 -4px; }

.link-btn, .add-btn {
  border: none; background: transparent; color: var(--primary);
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 6px 8px; border-radius: 10px;
}
.add-btn { background: var(--primary); color: #fff; padding: 9px 16px; }
.add-btn:hover { filter: brightness(1.05); }
.link-btn:hover { background: var(--primary-soft); }

.hint { color: var(--text-soft); font-size: .88rem; margin: 4px 0 12px; line-height: 1.5; }
.empty {
  color: var(--text-soft); text-align: center;
  padding: 24px 12px; font-size: .95rem;
  background: var(--surface-2); border-radius: 12px;
}

/* ===== היום — Hero ===== */
.hero { padding: 6px 4px; }
.hero-greet { font-size: 1.6rem; font-weight: 800; }
.hero-date { color: var(--text-soft); margin-top: 4px; font-weight: 600; }
.hero-hebdate { color: var(--primary); font-size: .9rem; margin-top: 2px; font-weight: 600; }
.hero-holiday {
  display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
  font-weight: 700; font-size: .92rem;
}
.hero-upcoming { margin-top: 6px; color: #ea580c; font-weight: 600; font-size: .85rem; }
.wk-item.wk-holiday { background: #f59e0b22; color: #b45309; font-weight: 700; border-inline-start: 3px solid #f59e0b; }

.quote-card {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; border-radius: var(--radius); padding: 22px 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.quote-mark { position: absolute; inset-inline-start: 12px; top: -10px; font-size: 5rem; opacity: .25; }
.quote-text { font-size: 1.1rem; font-weight: 600; line-height: 1.6; position: relative; }

/* ===== המלצות עוזר ===== */
.sugg-list { display: flex; flex-direction: column; gap: 10px; }
.sugg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  line-height: 1.5;
}
.sugg-icon { font-size: 1.2rem; flex-shrink: 0; }
.tone-warn { border-inline-start: 4px solid #f59e0b; }
.tone-focus { border-inline-start: 4px solid var(--primary); }
.tone-streak { border-inline-start: 4px solid #f97316; }
.tone-health { border-inline-start: 4px solid #06b6d4; }
.tone-fitness { border-inline-start: 4px solid #f97316; }
.tone-win, .tone-start { border-inline-start: 4px solid #10b981; }
.tone-tip { border-inline-start: 4px solid #a855f7; }

/* ===== שורות רשימה ===== */
.list { display: flex; flex-direction: column; gap: 8px; }
.list.mini { margin-top: 10px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; word-break: break-word; }
.row-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--text-soft); font-size: .82rem; margin-top: 4px;
}
.row-meta .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip {
  font-size: .75rem; padding: 2px 8px; border-radius: 999px;
  border: 1px solid; font-weight: 600;
}
.meta-due, .meta-proj { white-space: nowrap; }
.meta-repeat { background: #a855f722; color: #7c3aed; padding: 1px 7px; border-radius: 999px; font-weight: 600; font-size: .74rem; white-space: nowrap; }

.check {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: .9rem; color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.task.done .check { background: #10b981; border-color: #10b981; }
.task.done .row-title { text-decoration: line-through; color: var(--text-soft); }

.icon-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 1.05rem; padding: 6px; border-radius: 8px;
  color: var(--text-soft); line-height: 1;
}
.icon-btn:hover { background: var(--border); }

/* ===== מסננים / pills ===== */
.filters, .template-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.pill {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font: inherit; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.pill.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill:disabled { opacity: .5; cursor: default; }

/* ===== פרויקטים / התקדמות ===== */
.progress {
  height: 8px; background: var(--border); border-radius: 999px;
  overflow: hidden; margin: 10px 0 4px;
}
.progress-bar { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.progress-label { font-size: .82rem; color: var(--text-soft); }
.proj-card h3 { font-size: 1.1rem; }

.color-row, .btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.color-dot.sel { border-color: var(--text); }

/* ===== הרגלים ===== */
.habit-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-pill {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.habit-pill.done { background: #10b98122; border-color: #10b981; color: #059669; }
.habit-pill .hp-check { color: #10b981; font-weight: 800; }
.streak-badge {
  background: #f9731622; color: #ea580c; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; font-size: .85rem;
}
.hgrid { margin: 4px 0 8px; }
.hdays, .hcells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.hdays span { font-size: .72rem; color: var(--text-soft); }
.hcell {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); cursor: pointer; font-weight: 800;
  color: #fff; font-size: .85rem;
}
.hcell.on { background: #10b981; border-color: #10b981; }
.hcell.today { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ===== שבת ===== */
.shabbat-card {
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  text-align: center; border: none;
}
.shabbat-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.shabbat-time { font-size: .95rem; opacity: .95; }
.shabbat-time b { font-size: 1.1rem; }

/* ===== תפילות ===== */
.prayers { display: flex; flex-direction: column; gap: 8px; }
.prayer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font: inherit; text-align: start; width: 100%;
}
.prayer-row .pr-check {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .85rem;
}
.prayer-row .pr-icon { font-size: 1.2rem; }
.prayer-row .pr-name { flex: 1; font-weight: 600; }
.prayer-row .pr-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.prayer-row.done { background: #14b8a622; border-color: #14b8a6; }
.prayer-row.done .pr-check { background: #14b8a6; border-color: #14b8a6; }
.prayer-row.done .pr-name { text-decoration: line-through; color: var(--text-soft); }
.prayer-row.passed { border-color: #ef4444; background: #ef444411; }
.prayer-row.passed .pr-time { color: #ef4444; }
.sunset-badge { background: #f9731622; color: #ea580c; font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: .82rem; }
.zmanim-line {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2);
  font-size: .85rem; color: var(--text-soft);
}
.zmanim-line b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ===== סדר יום ===== */
.block-time {
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 10px; flex-shrink: 0; font-size: .9rem;
}

/* ===== אירוע מיומן Google ===== */
.cal-event { border-inline-start: 4px solid #4285f4; background: #4285f411; }
.cal-event .row-meta { color: #4285f4; }

/* ===== תזונה ===== */
.cups { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cup {
  font-size: 1.6rem; background: transparent; border: none;
  cursor: pointer; padding: 2px; transition: transform .1s;
}
.cup:active { transform: scale(1.2); }
.water-count { color: var(--primary); font-weight: 700; }
.meals { display: flex; flex-direction: column; gap: 12px; }
.meal label { font-weight: 600; }

/* ===== טיפ ===== */
.tip-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--primary-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.tip-icon { font-size: 1.5rem; }
.tip-label { font-weight: 700; margin-bottom: 4px; color: var(--primary); }

/* ===== כושר ===== */
.goal-edit { display: flex; align-items: center; gap: 8px; }
.goal-num { font-weight: 800; font-size: 1.2rem; min-width: 24px; text-align: center; }
.goal-edit .icon-btn { background: var(--surface-2); border: 1px solid var(--border); width: 32px; height: 32px; font-size: 1.2rem; }

/* ===== סטטיסטיקה ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .78rem; color: var(--text-soft); margin-top: 2px; }

/* ===== עבודות (עסק) ===== */
.job-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--surface-2); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-customer { font-weight: 700; font-size: 1.05rem; }
.job-device { color: var(--text-soft); font-size: .88rem; margin-top: 2px; }
.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.job-price { font-weight: 800; }
.job-status { font-size: .78rem; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.st-waiting { background: #f59e0b22; color: #b45309; }
.st-inprogress { background: #3b82f622; color: #1d4ed8; }
.st-done { background: #10b98122; color: #059669; }
.st-delivered { background: var(--border); color: var(--text-soft); }
.paid-yes { color: #059669; font-weight: 700; }
.paid-no { color: #ef4444; font-weight: 700; }
.income-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

/* ===== שבוע ===== */
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  overflow-x: auto;
}
.wk-col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 0; min-height: 120px;
}
.wk-col.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.wk-head {
  display: flex; flex-direction: column; align-items: center;
  font-weight: 700; font-size: .82rem; padding-bottom: 6px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.wk-num { color: var(--text-soft); font-size: .72rem; font-weight: 600; }
.wk-body { display: flex; flex-direction: column; gap: 5px; }
.wk-item {
  font-size: .72rem; background: var(--surface-2);
  border-radius: 6px; padding: 5px 6px; line-height: 1.35;
  word-break: break-word;
}
.wk-item.done { text-decoration: line-through; color: var(--text-soft); }
.wk-empty { color: var(--text-soft); text-align: center; font-size: .85rem; padding: 8px; }

/* ===== עוזר / צ'אט ===== */
.ai-badge { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ai-badge.on { background: #10b98122; color: #059669; }
.ai-badge.off { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.chat {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto; padding: 8px 2px; margin-bottom: 10px;
}
.msg {
  padding: 10px 14px; border-radius: 14px; max-width: 85%;
  line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.msg.user { align-self: flex-start; background: var(--primary); color: #fff; }
.msg.assistant { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--border); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; }

/* גוף תשובת עזרה חכמה */
.smart-help-body {
  white-space: pre-wrap; line-height: 1.6; padding: 8px 2px 14px;
  max-height: 60vh; overflow-y: auto; word-break: break-word;
}

/* שורת הוספה מהירה */
.qa-row { display: flex; gap: 8px; }
.qa-row input { flex: 1; margin-top: 0; }
.qa-row .btn-primary { white-space: nowrap; }

/* ===== הגדרות ===== */
.setting-row { display: flex; align-items: center; justify-content: space-between; }
.toggle {
  width: 48px; height: 28px; border-radius: 999px; border: none;
  background: var(--border); position: relative; cursor: pointer; transition: background .2s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; inset-inline-end: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s;
}
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(20px); }
.app-footer { text-align: center; color: var(--text-soft); font-size: .82rem; padding: 12px; line-height: 1.6; }

/* ===== טפסים ===== */
label { display: block; font-weight: 600; margin-bottom: 12px; font-size: .92rem; }
input, textarea, select {
  width: 100%; margin-top: 6px;
  padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
/* מצב פוקוס לניווט במקלדת (נגישות) */
.nav-item:focus-visible, .pill:focus-visible, .icon-btn:focus-visible,
.add-btn:focus-visible, .link-btn:focus-visible, .btn-primary:focus-visible,
.btn-ghost:focus-visible, .btn-danger:focus-visible, .habit-pill:focus-visible,
.toggle:focus-visible, .more-item:focus-visible, #mic-btn:focus-visible,
.check:focus-visible, .hcell:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-primary, .btn-ghost, .btn-danger {
  border: none; font: inherit; font-weight: 700; cursor: pointer;
  padding: 11px 18px; border-radius: 12px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-primary:hover, .btn-danger:hover { filter: brightness(1.05); }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions .btn-primary { flex: 1; }

/* ===== תפריט "עוד" (מובייל) ===== */
.more-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 16px; margin-bottom: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font: inherit; font-weight: 600;
  font-size: 1.05rem; cursor: pointer; text-align: start;
}
.more-item:hover { background: var(--primary-soft); }
.more-item .mi-icon { font-size: 1.35rem; }

/* ===== כפתור הקלטה (FAB) ===== */
#mic-btn {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff;
  font-size: 1.6rem; cursor: pointer; z-index: 60;
  box-shadow: 0 6px 20px rgba(79, 70, 229, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
#mic-btn:hover { transform: scale(1.06); }
#mic-btn.listening { background: linear-gradient(135deg, #ef4444, #f97316); animation: micpulse 1.2s infinite; }
@keyframes micpulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@media (max-width: 760px) {
  #mic-btn { inset-block-end: calc(76px + env(safe-area-inset-bottom)); }
}

/* ===== הודעת אישור (toast) ===== */
#toast {
  position: fixed; inset-block-end: 96px; inset-inline: 0; margin: 0 auto;
  max-width: 320px; width: max-content;
  background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; text-align: center;
  font-weight: 600; z-index: 70; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 760px) {
  #toast { inset-block-end: calc(150px + env(safe-area-inset-bottom)); }
}

/* ===== חלון קופץ ===== */
#modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 100; backdrop-filter: blur(2px);
}
#modal-overlay.open { display: flex; }
#modal {
  background: var(--surface); width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 20px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }

/* ===== ניווט תחתון (מובייל) ===== */
#bottom-nav { display: none; }

/* ===== רספונסיבי ===== */
@media (max-width: 760px) {
  #sidebar { display: none; }
  #main { padding: 16px 16px calc(80px + env(safe-area-inset-bottom)); height: auto; }
  #app { flex-direction: column; }
  #bottom-nav {
    display: flex; position: fixed; bottom: 0; inset-inline: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 50; justify-content: space-around;
  }
  #bottom-nav .nav-item {
    flex-direction: column; gap: 3px; padding: 6px 4px;
    font-size: .68rem; flex: 1; align-items: center;
  }
  #bottom-nav .nav-item .ni-icon { font-size: 1.35rem; }
  #bottom-nav .nav-item span:not(.ni-icon) { font-weight: 600; }
  .form-row { grid-template-columns: 1fr; }
  #modal { border-radius: 20px 20px 0 0; }
  .hero-greet { font-size: 1.35rem; }
  .week-grid { grid-template-columns: repeat(7, minmax(90px, 1fr)); }
}
@media (min-width: 761px) {
  #modal-overlay { align-items: center; }
  #modal { border-radius: 20px; }
}

/* שאלת היום */
.qotd-card .qotd-q { font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.qotd-card textarea {
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  font: inherit; background: var(--surface-2); color: var(--text); resize: vertical;
}
.qotd-answer {
  background: var(--surface-2); border-radius: 12px; padding: 12px;
  line-height: 1.6; white-space: pre-wrap; margin-bottom: 8px;
}

/* מניינים */
.minyanim { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.minyan-mode { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mm-label { font-size: .85rem; color: var(--muted); }
.mode-chip {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer;
}
.mode-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.minyan-group { margin-bottom: 8px; }
.mg-title { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.minyan-opt {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px;
  background: var(--surface-2); margin-bottom: 4px; font-size: .9rem;
}
.mo-time { font-weight: 700; min-width: 48px; color: var(--accent); }
.mo-place { font-weight: 600; }
.mo-note { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }

/* תפילות — מעקב מניין */
.prayer-row2 { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.prayer-row2.done { border-inline-start: 3px solid var(--accent); }
.prayer-row2.passed .pr-name { color: #f59e0b; }
.pr2-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pr2-head .pr-name { font-weight: 700; }
.pr2-head .pr-time { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }
.pr2-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-opt {
  flex: 1; min-width: 90px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 10px; padding: 7px 6px; font: inherit; font-size: .85rem;
  cursor: pointer; transition: all .12s;
}
.pr-opt.minyan.on { background: #10b981; color: #fff; border-color: #10b981; font-weight: 700; }
.pr-opt.yachid.on { background: #6366f1; color: #fff; border-color: #6366f1; font-weight: 700; }
.pr-opt.none.on { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.pr-chizuk { margin-top: 8px; background: rgba(99,102,241,.1); border-radius: 10px; padding: 8px 10px; font-size: .88rem; line-height: 1.5; }
.pr-note {
  margin-top: 6px; width: 100%; box-sizing: border-box; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; font: inherit; background: var(--surface); color: var(--text);
}
