/* שמונה בערב — שפת עיצוב מאופקת: נייר חם, קווי שיער, טיפוגרפיה עיתונאית */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&family=Frank+Ruhl+Libre:wght@400;500;700&display=swap');

:root {
  --paper: #f7f2e7;
  --paper-2: #f0e8d3;
  --card: #fffdf6;
  --ink: #2f2a22;
  --muted: #837664;
  --faint: #ab9d86;
  --line: #e0d4b8;
  --line-soft: #ece2c9;
  --bronze: #93702a;
  --bronze-dark: #775a1f;
  --red-soft: #a0522d;
  --green-soft: #5f7a4d;
  --shadow: 0 1px 3px rgba(58, 46, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 46, 24, 0.16);
  --serif: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
  --sans: 'Heebo', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* גרגר נייר עדין */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(147, 112, 42, 0.25); }
#how { scroll-margin-top: 92px; }

/* ---------- כותרת עליונה ---------- */
header {
  background: rgba(247, 242, 231, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.logo-link {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; line-height: 1;
}
.logo-link img { height: 50px; width: auto; }
.logo-link span {
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--bronze-dark); margin-top: 3px; letter-spacing: 0.5px;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav.nav-start { justify-content: flex-start; }
.main-nav.nav-end { justify-content: flex-end; }
.main-nav a {
  text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink);
  padding: 6px 2px; position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--bronze-dark); }
.main-nav a.active { color: var(--bronze-dark); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; right: 0; left: 0;
  height: 2px; background: var(--bronze);
}

/* ---------- כפתורים ---------- */
.btn-gold, .btn-ghost {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  padding: 11px 28px; border-radius: 10px; border: 1px solid transparent;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.1s;
}
.btn-gold { background: var(--bronze); color: #fff; }
.btn-gold:hover { background: var(--bronze-dark); }
.btn-gold:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9b98e; font-weight: 500; }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--bronze); }
.btn-sm { font-size: 13.5px; padding: 8px 16px; border-radius: 8px; }
button.btn-gold[disabled] { opacity: 0.55; cursor: default; }
.btn-gold:focus-visible, .btn-ghost:focus-visible,
.admin-tabs button:focus-visible, .btn-small:focus-visible,
.row-actions button:focus-visible, .sched-cell:focus-visible {
  outline: 2px solid var(--bronze); outline-offset: 2px;
}

/* ---------- הירו ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  background: url('/img/hero-couple-dark.jpg') center 30% / cover no-repeat;
  opacity: 0.28;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(247, 242, 231, 0.55); }
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: 76px 22px 64px; text-align: center;
}
.hero-kicker {
  font-size: 13px; letter-spacing: 3px; color: var(--bronze-dark);
  font-weight: 600; margin-bottom: 14px;
}
.hero-inner h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.25; }
.hero-inner .subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--muted); margin-top: 12px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- טיימר ---------- */
.timer-wrap { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; margin-left: auto; margin-right: auto; }
.timer-label { font-size: 13px; letter-spacing: 2.5px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.timer { display: flex; gap: 6px; justify-content: center; direction: ltr; }
.timer-box { min-width: 92px; padding: 6px 8px; }
.timer-num {
  font-family: var(--serif); font-size: 46px; font-weight: 500; color: var(--ink);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.timer-unit { font-size: 11px; letter-spacing: 2px; color: var(--faint); margin-top: 6px; }
.timer-caption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- סקשנים ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 60px 22px 16px; }
.section-title { text-align: center; font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; }
.gold-divider { width: 54px; height: 2px; margin: 14px auto; background: var(--bronze); }
.section-sub { text-align: center; color: var(--muted); font-size: 16.5px; margin-bottom: 32px; }
.about-text {
  max-width: 700px; margin: 6px auto 0; padding: 6px 8px;
  font-size: 1.06rem; line-height: 2; color: var(--ink); text-align: center;
}

/* ---------- כרטיסי מועמדים ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.candidate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: cardIn 0.45s ease both;
  display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card-photo { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--paper-2); }
.card-photo .photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: var(--faint); background: var(--paper-2);
}
.card-body { padding: 14px 6px 8px; text-align: center; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body h3 { font-size: 20px; font-weight: 500; }
.card-meta { color: var(--muted); font-size: 14.5px; }
.card-bio { font-size: 13.5px; color: var(--muted); margin: 6px 0; line-height: 1.65; }
.card-body .btn-gold, .card-body .btn-ghost { margin-top: auto; width: 100%; font-size: 14.5px; padding: 10px; }
.photo-hint { font-size: 12.5px; color: var(--red-soft); margin-top: 6px; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state .big { font-size: 40px; margin-bottom: 12px; opacity: 0.7; }

/* ---------- איך זה עובד ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 6px; }
.step { padding: 6px 4px; border-top: 2px solid var(--line); padding-top: 20px; }
.step .num {
  font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--bronze);
  line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; font-weight: 500; }
.step p { color: var(--muted); line-height: 1.75; font-size: 14.5px; }

/* ---------- טפסים ---------- */
.form-wrap {
  max-width: 560px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 32px; box-shadow: var(--shadow);
}
.form-wrap h2 { text-align: center; font-size: 27px; margin-bottom: 6px; font-weight: 500; }
.form-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 15.5px; font-family: var(--sans);
  border: 1px solid #d6c8a4; border-radius: 8px; background: #fffef9; color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(147, 112, 42, 0.14);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--red-soft); }
.field .field-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-wrap .btn-gold { width: 100%; margin-top: 8px; }
.form-error {
  display: none; background: #f9ece4; color: var(--red-soft);
  border: 1px solid #e3c2ac; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px;
}
.form-error.show { display: block; }
.form-link { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.form-link a { color: var(--bronze-dark); font-weight: 600; }
.form-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 14.5px; margin: 14px 0; cursor: pointer; color: var(--ink); }
.check-row input { width: 18px; height: 18px; accent-color: var(--bronze-dark); flex: none; }
.photo-warning {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-top: 12px; font-size: 13.5px; color: var(--ink); line-height: 1.65;
}

/* ---------- אזור אישי ---------- */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card .card-photo { max-width: 340px; margin: 0 auto; }
.details-list { display: flex; flex-direction: column; }
.details-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.details-row:last-child { border-bottom: none; }
.details-row span { color: var(--muted); }
.details-row b { color: var(--ink); font-weight: 600; text-align: left; max-width: 60%; overflow-wrap: anywhere; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-del {
  position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(40, 32, 20, 0.6); color: #fff; font-size: 13px; cursor: pointer; line-height: 1;
}
.gallery-del:hover { background: #8f3a24; }
.gallery-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gallery-hint { font-size: 12.5px; color: var(--muted); }
.push-status { font-size: 14px; margin-top: 10px; line-height: 1.7; color: var(--ink); }
.push-status.ok { color: var(--green-soft); font-weight: 600; }
.push-status.err { color: var(--red-soft); }
.sub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--card); text-align: center; }
.plan-card.current { border-color: var(--bronze); }
.plan-name { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.plan-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.plan-current { font-size: 14px; font-weight: 600; color: var(--bronze-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 6px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.contact-reveal { margin-top: 8px; font-size: 14px; background: var(--paper-2); border-radius: 8px; padding: 8px 10px; }
.proposal-actions { display: flex; gap: 8px; flex: none; }
.proposal-photo img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; display: block; border: 1px solid var(--line); }
.no-photo.sm { width: 52px; height: 52px; font-size: 22px; border-radius: 50%; }
.profile-card, .panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.panel h3, .profile-card h3 { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); font-weight: 500; font-size: 20px; }
.proposal-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); }
.proposal-row:last-child { border-bottom: none; }
.proposal-row .who { font-weight: 600; font-size: 16.5px; }
.proposal-row .meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.status-pill { font-size: 12.5px; font-weight: 600; padding: 4px 13px; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #f3e9cf; color: #7d6222; }
.status-approved { background: #e4ecdc; color: var(--green-soft); }
.status-rejected { background: #f3e0d8; color: var(--red-soft); }
.status-active { background: #e4ecdc; color: var(--green-soft); }
.status-inactive { background: #e9e2d0; color: var(--muted); }
.panel-note { font-size: 13.5px; color: var(--muted); background: var(--paper-2); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.proposal-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--bronze);
  border-radius: 12px; padding: 15px 20px; margin-bottom: 22px;
  font-size: 16.5px; font-weight: 600; text-align: center;
}

/* ---------- אדמין ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tabs button {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  padding: 9px 20px; border-radius: 8px; cursor: pointer;
}
.admin-tabs button.active, .admin-tabs button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.toolbar input[type="search"], .toolbar select {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  padding: 10px 14px; border: 1px solid #d6c8a4; border-radius: 8px; background: #fffef9;
}
.toolbar input[type="search"] { flex: 1 1 200px; min-width: 0; }
.toolbar input[type="search"]:focus, .toolbar select:focus { outline: none; border-color: var(--bronze); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.stat-box .n { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.stat-box .l { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.admin-table th { background: var(--paper-2); padding: 11px 10px; font-weight: 600; white-space: nowrap; font-size: 13px; color: var(--muted); }
.admin-table td { padding: 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table .thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.admin-table tbody tr:nth-child(even) { background: rgba(240, 232, 211, 0.4); }
.admin-table tbody tr:hover { background: rgba(147, 112, 42, 0.07); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button {
  border: 1px solid var(--line); background: #fffef9; border-radius: 7px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: var(--sans);
}
.row-actions button:hover { border-color: var(--bronze); }
.row-actions button.danger { color: var(--red-soft); border-color: #dfbfa9; }
.btn-small {
  border: 1px solid var(--line); background: #fffef9; border-radius: 7px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: var(--sans); color: var(--ink);
}
.btn-small:hover { border-color: var(--bronze); }
.btn-small.btn-ok { color: var(--green-soft); border-color: #bccfae; }
.btn-small.btn-ok:hover { background: #eef3e6; }
.btn-small.btn-del { color: var(--red-soft); border-color: #dfbfa9; }
.btn-small.btn-del:hover { background: #f8ece4; }
.btn-small.btn-edit { color: var(--bronze-dark); }
.btn-small.btn-edit:hover { background: var(--paper-2); }

/* ---------- מודאל ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46, 38, 24, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease; backdrop-filter: blur(3px);
}
.modal {
  background: var(--card); border-radius: 16px; padding: 28px 26px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: modalIn 0.28s var(--ease);
}
.modal h3 { margin-bottom: 14px; font-weight: 500; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- כרטיס פרופיל (נפתח בלחיצה) ---------- */
.card-clickable { cursor: pointer; }
.candidate-card.card-clickable:hover { border-color: #c3a75f; }
.card-photo.card-clickable:hover { filter: brightness(1.03); }
.card-modal { position: relative; text-align: center; }
.card-modal-close {
  position: absolute; top: -4px; left: -4px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--muted); font-size: 15px; cursor: pointer;
}
.card-modal-close:hover { border-color: var(--bronze); color: var(--ink); }
.card-modal-photo { margin-bottom: 14px; }
.card-modal-photo img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card-modal-photo .no-photo {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 56px; color: var(--faint);
}
.card-modal h3 { margin-bottom: 4px; font-size: 24px; }
.card-modal .card-meta { margin-bottom: 4px; }
.card-modal-bio { font-size: 15px; color: var(--muted); margin: 12px 0; line-height: 1.75; }
.card-modal-gallery { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 4px; }
.card-modal-gallery img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.card-modal .form-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.proposed-mark {
  display: inline-block; padding: 10px 22px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--bronze-dark); font-weight: 600; font-size: 14.5px;
}
.propose-modal { text-align: center; }
.propose-modal textarea {
  width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px 14px;
  border: 1px solid #d6c8a4; border-radius: 8px; font-size: 15px;
  font-family: inherit; resize: vertical; background: #fffef9; color: var(--ink);
}
.propose-modal textarea:focus { outline: none; border-color: var(--bronze); }
.propose-modal .form-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* ---------- התכתבויות ---------- */
.conv-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
  cursor: pointer; background: var(--card);
}
.conv-row:hover { border-color: #c3a75f; }
.conv-unread { border-color: var(--bronze); background: #fbf4df; }
.conv-photo img, .conv-photo .no-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-soft); }
.conv-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--muted); font-size: 14px; }
.conv-arrow { color: var(--faint); font-size: 20px; }
.unread-badge, .nav-badge {
  display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: var(--red-soft); color: #fff; border-radius: 10px; font-size: 12px; font-weight: 700; padding: 0 6px;
}
.chat-modal { display: flex; flex-direction: column; max-height: 75vh; }
.chat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chat-phone { font-size: 14px; color: var(--bronze-dark); font-weight: 600; margin-top: 4px; }
.chat-messages {
  flex: 1; overflow-y: auto; min-height: 220px; max-height: 46vh;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg { max-width: 80%; display: flex; flex-direction: column; }
.msg-mine { align-self: flex-start; }
.msg-theirs { align-self: flex-end; }
.msg-body { padding: 9px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; word-break: break-word; }
.msg-mine .msg-body { background: var(--bronze); color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs .msg-body { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; color: var(--faint); margin-top: 3px; }
.msg-system {
  align-self: center; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; font-size: 13.5px; color: var(--muted);
  text-align: center; max-width: 92%;
}
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid #d6c8a4; border-radius: 8px; font-size: 15px;
  font-family: var(--sans); background: #fffef9; color: var(--ink);
}
.chat-input-row input:focus { outline: none; border-color: var(--bronze); }
.chat-revealed-note { font-size: 13px; color: var(--bronze-dark); margin-top: 8px; text-align: center; }
.approve-modal { text-align: center; }
.approve-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.approve-options .btn-gold { padding: 12px 18px; line-height: 1.6; }
.approve-options .btn-gold small { display: block; font-weight: 400; font-size: 12.5px; opacity: 0.85; }

/* ---------- שלדי טעינה ---------- */
.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: var(--paper-2); animation: skPulse 1.4s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.skeleton-card { pointer-events: none; }
.skeleton-card .card-photo { border-radius: 9px; }
.sk-line { height: 14px; margin: 9px auto; }
.sk-line.tall { height: 20px; }

/* ---------- כפתורי פעולה קטנים ---------- */
/* (מוגדר למעלה ליד האדמין) */

/* ---------- פוטר ---------- */
footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 28px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-inner img { height: 42px; opacity: 0.9; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.footer-links a:hover { color: var(--bronze-dark); }
.copy { color: var(--faint); font-size: 13.5px; }

/* ---------- באנר מועמדות עצמית ---------- */
.cta-banner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
  text-align: center; box-shadow: var(--shadow);
  max-width: 700px; margin: 26px auto;
}
.cta-banner .cta-text { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 14px; }

/* ---------- באנר התראות push ---------- */
.push-banner {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: var(--ink); color: #f3ecda;
  padding: 10px 18px; font-size: 14.5px;
}
.push-actions { display: flex; gap: 8px; }
.push-banner .btn-ghost { color: #f3ecda; border-color: rgba(243, 236, 218, 0.5); padding: 7px 18px; font-size: 13.5px; }
.push-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- התחברות חברתית ---------- */
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--faint); font-size: 13.5px; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.btn-oauth:hover { border-color: var(--bronze); }
.oauth-ic { width: 20px; height: 20px; border-radius: 50%; display: inline-block; flex: none; }
.oauth-ic-google { background: conic-gradient(from 45deg, #4285f4, #ea4335, #fbbc05, #34a853, #4285f4); }
.oauth-ic-facebook { background: #1877f2; }
.oauth-ic-apple { background: #1c1a17; }

/* ---------- לוח שנה — שיבוץ יומי ---------- */
.sched-cal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sched-cal-title { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 6px; min-width: 150px; text-align: center; }
.sched-cal-head, .sched-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; direction: rtl; }
.sched-cal-head span { text-align: center; font-weight: 600; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.sched-cell {
  position: relative; min-height: 84px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-family: inherit; padding: 6px 2px; background: var(--card);
  transition: border-color 0.15s;
}
.sched-cell:hover { border-color: var(--bronze); }
.sched-daynum { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1; }
.sched-tag { font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.sched-cell.st-empty { background: #f7e8e2; border-color: #d8a08a; }
.sched-cell.st-empty .sched-daynum { color: #96401f; }
.sched-cell.st-missing { background: #f6ecd4; border-color: #d3b578; }
.sched-cell.st-missing .sched-daynum { color: #8a5f16; }
.sched-cell.st-full { background: #e9efe1; border-color: #b3c4a3; }
.sched-cell.st-full .sched-daynum { color: #4c6b3d; }
.sched-cell.out { opacity: 0.38; }
.sched-cell.today { outline: 2px solid var(--bronze); outline-offset: 1px; }
.sched-cell.dim-full { opacity: 0.3; }
.sched-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.sched-filter input { width: 18px; height: 18px; accent-color: var(--bronze-dark); }
.schedule-names { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 8px;
  font-size: 14px; font-weight: 500;
}
.chip-x {
  width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(160, 82, 45, 0.12); color: var(--red-soft);
  font-size: 12px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.chip-x:hover { background: var(--red-soft); color: #fff; }
.picker-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.picker-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.picker-row .thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.picker-info { flex: 1; display: flex; flex-direction: column; }
.picker-info span { font-size: 13px; color: var(--muted); }

/* ---------- רספונסיבי ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .profile-layout { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav.nav-start {
    display: flex; grid-column: 1 / -1; order: 3;
    justify-content: flex-start; gap: 20px;
    overflow-x: auto; white-space: nowrap;
    padding: 6px 2px 10px; margin-top: 2px;
    border-top: 1px solid var(--line-soft);
    scrollbar-width: none;
  }
  .main-nav.nav-start::-webkit-scrollbar { display: none; }
  .hero-bg { opacity: 0.18; }
  .hero-cta .btn-gold, .hero-cta .btn-ghost { padding: 12px 26px; font-size: 16px; }
}
@media (max-width: 640px) {
  .sched-cal-head, .sched-cal-grid { gap: 4px; }
  .sched-cell { min-height: 60px; gap: 2px; border-radius: 8px; }
  .sched-daynum { font-size: 16px; }
  .sched-tag { font-size: 10px; padding: 0 7px; }
  .sched-cal-head span { font-size: 11px; padding: 4px 0; }
  .sched-cal-title { font-size: 18px; min-width: 110px; }
  .sched-cal-toolbar { gap: 6px; }
}
@media (max-width: 560px) {
  .plan-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proposal-actions { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .timer-box { min-width: 72px; }
  .timer-num { font-size: 36px; }
  .section { padding: 44px 16px 14px; }
  .hero-inner { padding: 54px 16px 46px; }
  .form-wrap { padding: 28px 20px; }
  .panel, .profile-card { padding: 20px 16px; border-radius: 12px; }
  .header-inner { padding: 8px 14px; gap: 8px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14.5px; }
  .timer { gap: 4px; }
  .modal { padding: 24px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}

/* ---------- העדפת תנועה מופחתת ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
