/* מבנה: מסך מפוצל. פאנל צבעוני מלא עם פרטי האירוע, ולצדו אזור עבודה נקי.
   הצבעים לקוחים מהלוגו: ורוד עז, סגול, צהוב וכחול; פינות מעוגלות ואופי חגיגי. */
:root {
  --ink: #2a0f4a;
  --ink-soft: #6b4f86;
  --line: #efd6ea;
  --paper: #fff7fc;
  --surface: #ffffff;
  --primary: #d4127a;
  --on-primary: #ffffff;
  --accent: #ffc61a;
  --deep: #5b1fa8;
  --tint: #fde6f2;
  --danger: #c4122f;
  --field-line: #7d6295; /* גבול שדות וטקסט דוגמה – ניגודיות מספקת */
  --focus: #2a0f4a;      /* מסגרת מיקוד כהה, בולטת על רקע בהיר */
  --highlight: #ffc61a;  /* צהוב על רקע צבעוני – ניגודיות מספקת בכל הסוגים */
  --radius: 18px;
  --display: "Fredoka", "Varela Round", "Assistant", sans-serif;
  --body: "Assistant", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
body[data-theme="brit"]        { --primary:#0a76a6; --accent:#ff4fa3; --deep:#1d3f9e; --tint:#e3f4fb; --paper:#f5fbfe; }
body[data-theme="bar_mitzvah"] { --primary:#1d63d6; --accent:#ffc61a; --deep:#3a1f9e; --tint:#e6f0fd; --paper:#f6f9ff; }
body[data-theme="bat_mitzvah"] { --primary:#7b2cbf; --accent:#ff4fa3; --deep:#c0127a; --tint:#f1e6fb; --paper:#fbf7ff; }
body[data-theme="wedding"]     { --primary:#d4127a; --accent:#ffc61a; --deep:#5b1fa8; --tint:#fde6f2; --paper:#fff7fc; }

* { box-sizing: border-box; }
html { scroll-padding-bottom: 120px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.req { font-weight: 400; letter-spacing: 0; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(600px 400px at 100% 0, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    radial-gradient(500px 380px at 0 30%, color-mix(in srgb, var(--deep) 10%, transparent), transparent 70%),
    radial-gradient(520px 360px at 60% 100%, color-mix(in srgb, #2b9cf2 9%, transparent), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  font: 17px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 40px;
  transition: background-color .4s;
}
.shell { max-width: 1080px; margin: 0 auto; display: grid; gap: 28px; }
#app { display: grid; gap: 28px; min-width: 0; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft); }

/* ---------- טיפוגרפיה ---------- */
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.err { color: var(--danger); min-height: 1.4em; font-weight: 600; }

/* ---------- מסך מפוצל ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px -18px color-mix(in srgb, var(--primary) 45%, transparent); }
.panel {
  background: linear-gradient(150deg, var(--primary), var(--deep)); color: var(--on-primary); padding: clamp(28px, 5vw, 56px);
  display: grid; align-content: space-between; gap: 40px; position: relative; overflow: hidden;
}
.panel::after, .band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--accent); }
.panel .eyebrow, .band .eyebrow { color: var(--on-primary); }
.panel h1 { color: var(--on-primary); }
.panel .names { font-family: var(--display); font-size: 1.35rem; margin-top: 14px; }
.panel .msg { margin-top: 18px; max-width: 40ch; }
.work { padding: clamp(24px, 5vw, 56px); display: grid; gap: 22px; align-content: start; min-width: 0; }

/* תאריך גדול */
.date { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: end; }
.date .day { font-family: var(--display); font-size: clamp(4rem, 10vw, 6.2rem); font-weight: 700; color: var(--highlight); line-height: .8; font-variant-numeric: tabular-nums; }
.date .meta { display: grid; gap: 2px; padding-bottom: 4px; }
.date .meta b { font-size: 1.15rem; }
.venue { border-top: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent); padding-top: 16px; display: grid; gap: 12px; }
.venue .place { font-size: 1.15rem; font-weight: 700; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a {
  color: var(--on-primary); text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .04em;
  border: 1.5px solid var(--on-primary); border-radius: 999px; padding: 8px 18px; transition: background-color .2s, color .2s;
}
.nav a:hover, .nav a:focus-visible { background: var(--on-primary); color: var(--primary); }
.panel a:focus-visible { outline-color: var(--on-primary); }

/* ---------- טפסים ---------- */
form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
label, .label { font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--field-line); border-radius: 0; padding: 8px 2px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 76px; resize: vertical; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 2px 0 var(--primary); }
input::placeholder, textarea::placeholder { color: var(--field-line); opacity: 1; }
.hint { color: var(--ink-soft); font-size: .85rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

button {
  font: inherit; font-weight: 700; letter-spacing: .05em; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--deep)); color: var(--on-primary); border: 1.5px solid var(--primary);
  padding: 14px 28px; border-radius: 999px; transition: transform .15s, background-color .2s, color .2s, box-shadow .2s;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--primary) 75%, transparent); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button.ghost, button.link, .stepper button { box-shadow: none; }
button.ghost { background: transparent; color: var(--primary); }
button.ghost:hover { background: var(--primary); color: var(--on-primary); }
button.link { background: none; border: 0; padding: 6px 4px; min-height: 32px; color: var(--ink-soft); font-weight: 600; text-decoration: underline; letter-spacing: 0; }
button.link:hover { color: var(--danger); transform: none; }
button.link.warn { color: var(--danger); }
.submit { justify-self: start; min-width: 200px; }

/* בחירה מפולחת (מגיע / לא מגיע) */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--primary); border-radius: 999px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; text-align: center; padding: 14px 8px; cursor: pointer; font-size: 1rem; letter-spacing: .02em; color: var(--primary); transition: background-color .2s, color .2s; }
.seg label:last-of-type { border-inline-start: 1.5px solid var(--primary); }
.seg input:checked + label { background: var(--primary); color: var(--on-primary); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -3px; }

/* מונה אורחים */
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: stretch; border: 1.5px solid var(--field-line); border-radius: 999px; overflow: hidden; max-width: 220px; }
.stepper button { padding: 8px 0; background: var(--tint); color: var(--primary); border: 0; font-size: 1.4rem; line-height: 1; }
.stepper button:hover { transform: none; background: var(--primary); color: var(--on-primary); }
.stepper input { text-align: center; border: 0; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: none; outline: 3px solid var(--focus); outline-offset: -3px; }
.stepper button:focus-visible { outline-offset: -3px; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.names-list { display: grid; gap: 8px; }

/* ---------- בחירת סוג אירוע ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types label {
  margin: 0; cursor: pointer; padding: 18px 16px; display: grid; gap: 22px; align-content: space-between;
  color: var(--ink); letter-spacing: 0; min-height: 116px; transition: background-color .25s, color .25s;
}
.types label:not(:first-of-type) { border-inline-start: 1.5px solid var(--ink); }
.types .swatch { width: 32px; height: 8px; border-radius: 999px; background: var(--sw); }
.types .t-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.types input:checked + label { background: var(--sw); color: #fff; }
.types input:checked + label .swatch { background: #fff; }
.types input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- דף בית ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 80px); align-items: end; padding-block: clamp(12px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(90deg, var(--primary), var(--deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (forced-colors: active) { .hero h1 em { background: none; -webkit-text-fill-color: currentColor; } }
.hero .lead { margin-top: 18px; }
.hero-logo { display: block; width: min(300px, 70vw); height: auto; margin-bottom: 18px; filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--primary) 30%, transparent)); }
.code-box { display: grid; gap: 16px; background: var(--surface); border: 2px solid var(--primary); border-radius: 24px; padding: 28px; box-shadow: 0 16px 40px -20px color-mix(in srgb, var(--primary) 60%, transparent); }
.code-box input { font-size: 1.7rem; font-weight: 700; letter-spacing: .3em; direction: ltr; text-align: center; text-transform: uppercase; border-bottom-width: 2px; }
.code-box button { width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--line); }
.steps div { padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.steps div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.steps div:not(:last-child) { padding-inline-end: 18px; }
.steps b { font-family: var(--display); font-size: 1.6rem; color: var(--deep); background: var(--accent); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- ניהול ---------- */
.band { background: linear-gradient(135deg, var(--primary), var(--deep)); color: var(--on-primary); border-radius: var(--radius); overflow: hidden; padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) calc(clamp(24px, 4vw, 44px) + 10px); display: grid; gap: 10px; position: relative; }
.band h1 { color: var(--on-primary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { padding: 20px 22px; display: grid; gap: 4px; }
.stats div + div { border-inline-start: 1px solid var(--line); }
.stats b { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats div:first-child b { color: var(--primary); }
.stats span { font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head button { padding: 8px 18px; font-size: .88rem; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.copy { display: flex; border: 1.5px solid var(--field-line); border-radius: 999px; overflow: hidden; }
.copy button { border-radius: 0; box-shadow: none; }
.copy input { direction: ltr; border: 0; padding: 10px 12px; font-size: .9rem; min-width: 0; color: var(--ink-soft); }
.copy button { padding: 10px 18px; white-space: nowrap; font-size: .85rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
th { text-align: right; font-size: .85rem; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; padding: 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
td.strong { font-weight: 700; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.pill.yes { background: var(--primary); color: var(--on-primary); }
.pill.no { color: var(--ink-soft); border: 1px solid var(--field-line); }
.empty { padding: 28px 0; color: var(--ink-soft); text-align: center; }
details summary { cursor: pointer; list-style: none; }
details summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
details summary::-webkit-details-marker { display: none; }
details summary h2::after { content: "  +"; color: var(--primary); }
details[open] summary h2::after { content: "  −"; }
details form { margin-top: 20px; }

/* ---------- תודה ---------- */
.thanks { display: grid; gap: 14px; align-content: center; min-height: 300px; }
.thanks h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--primary); }

/* ---------- מנהל מערכת ---------- */
.gen { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: end; }
.mono { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; }
a { color: var(--primary); }

/* ---------- הקמת אירוע ---------- */
.create { display: grid; gap: 28px; }
.create-head { display: flex; align-items: center; gap: 18px; }
.create-head img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--primary) 30%, transparent)); }
.create-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-block: 4px 6px; }
.create-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 40px); align-items: start; }

/* טופס מודרני: קבוצות בכרטיסים, שדות ממולאים ומעוגלים */
.fancy { gap: 18px; }
.fancy .group {
  margin: 0; min-width: 0; border: 0; background: var(--surface); border-radius: 22px;
  padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px;
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -24px color-mix(in srgb, var(--deep) 55%, transparent);
}
.fancy legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.fancy legend + * { clear: both; }
.g-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: var(--tint); color: var(--primary); }
.fancy label { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.fancy input:not([type=radio]), .fancy textarea {
  background: var(--paper); border: 2px solid var(--field-line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.fancy input:not([type=radio]):hover, .fancy textarea:hover { background: var(--tint); }
.fancy input:not([type=radio]):focus, .fancy textarea:focus {
  background: var(--surface); border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.fancy input::placeholder, .fancy textarea::placeholder { color: var(--field-line); opacity: 1; }
.fancy textarea { min-height: 110px; }
.fancy .hint { font-size: .82rem; }
.fancy .submit { min-width: 220px; padding: 16px 34px; font-size: 1.08rem; }
.actions { display: grid; gap: 8px; justify-items: start; }

/* כרטיסי סוג אירוע */
.type-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-cards input { position: absolute; opacity: 0; pointer-events: none; }
.type-cards label {
  margin: 0; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 18px 8px;
  border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .15s, border-color .2s, box-shadow .2s, background-color .2s;
}
.type-cards label:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sw) 50%, transparent); }
.type-cards .t-bar { width: 36px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--sw) 35%, white); transition: background-color .2s, width .2s; }
.type-cards .t-name { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.type-cards input:checked + label { border-color: var(--sw); background: color-mix(in srgb, var(--sw) 8%, white); box-shadow: 0 10px 24px -14px var(--sw); }
.type-cards input:checked + label .t-bar { background: var(--sw); width: 52px; }
.type-cards input:checked + label .t-name { color: var(--sw); }
.type-cards input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* תצוגה מקדימה של ההזמנה */
.preview { position: sticky; top: 20px; display: grid; gap: 10px; }
.p-tag { font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
.invite {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff; text-align: center;
  padding: 36px 26px 30px; display: grid; gap: 10px; justify-items: center;
  background:
    radial-gradient(180px 120px at 15% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(200px 140px at 90% 95%, color-mix(in srgb, #2b9cf2 40%, transparent), transparent 70%),
    linear-gradient(160deg, var(--primary), var(--deep));
  box-shadow: 0 24px 50px -26px var(--deep);
  transition: background .4s;
}
.i-type { font-size: .8rem; font-weight: 700; letter-spacing: .14em; }
.invite h2 { color: #fff; font-size: 1.7rem; overflow-wrap: anywhere; }
.i-names { font-family: var(--display); font-size: 1.15rem; color: #fff; min-height: 1em; }
.i-meta { display: grid; gap: 2px; font-weight: 600; }
.i-meta p:empty, .i-names:empty { display: none; }
.i-msg { font-size: .95rem; max-width: 30ch; }
.i-btn { margin-top: 8px; background: #fff; color: var(--primary); font-weight: 700; padding: 10px 26px; border-radius: 999px; }

@media (max-width: 820px) {
  .create-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .type-cards { grid-template-columns: 1fr 1fr; }
  .split, .hero, .links { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
  .types label:nth-of-type(3) { border-inline-start: 0; }
  .types label:nth-of-type(n+3) { border-top: 1.5px solid var(--ink); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-inline-start: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .two, .steps, .gen { grid-template-columns: 1fr; }
  .steps div + div { border-inline-start: 0; padding-inline-start: 0; }
  .submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- לוח שנה לבחירת תאריך ---------- */
.flatpickr-calendar { font-family: var(--body); border-radius: 18px; border: 0; box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--deep) 60%, transparent); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-family: var(--display); font-weight: 600; color: var(--ink); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--primary); }
span.flatpickr-weekday { color: var(--ink-soft); font-weight: 700; }
.flatpickr-day { border-radius: 12px; color: var(--ink); }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--tint); border-color: var(--tint); }
.flatpickr-day.today { border-color: var(--primary); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.flatpickr-time { border-top: 1px solid var(--line) !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm { font-weight: 700; color: var(--ink); }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--tint); }
.fancy input.flatpickr-input[readonly] { cursor: pointer; }

/* ---------- גרסת הדגמה ---------- */
.demo-bar { margin: 0; justify-self: center; text-align: center; font-size: .88rem; color: var(--deep); background: color-mix(in srgb, var(--accent) 30%, white); border-radius: 999px; padding: 6px 18px; }
.demo-bar b { background: var(--deep); color: #fff; border-radius: 999px; padding: 1px 10px; margin-inline-end: 8px; font-size: .78rem; }
.ask-code { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }
.ask-code a { font-weight: 700; color: var(--primary); direction: ltr; unicode-bidi: isolate; }

/* ---------- פוטר ---------- */
.site-foot { border-top: 2px solid var(--line); padding-top: 22px; display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--primary); text-decoration: underline; }
.site-foot a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.foot-small { font-size: .8rem; opacity: .8; }

/* ---------- עמודי מסמכים ---------- */
.legal { max-width: 780px; justify-self: center; width: 100%; gap: 12px; line-height: 1.75; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.2rem; margin-top: 14px; color: var(--primary); }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.legal .eyebrow a { color: inherit; }

/* ---------- הודעת עוגיות ---------- */
.cookie-bar {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px; background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 14px 18px; box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--deep) 60%, transparent);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: .92rem; }
.cookie-bar button { padding: 10px 22px; white-space: nowrap; }

/* ---------- חלון אישור מסמכים ---------- */
.consent { border: 0; border-radius: 24px; padding: 0; width: min(480px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--deep) 70%, transparent); }
.consent::backdrop { background: color-mix(in srgb, var(--deep) 45%, transparent); backdrop-filter: blur(3px); }
.consent form { padding: 28px; gap: 14px; }
.consent h2 { font-size: 1.5rem; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--primary); }
.check a { color: var(--primary); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 520px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- פרסומת למערכת בדף האורחים ---------- */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 20px; padding: 14px 20px; transition: border-color .2s, transform .15s;
}
.promo:hover { border-color: var(--primary); transform: translateY(-1px); }
.promo img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.promo b { color: var(--primary); font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

/* דף "האירוע הסתיים" */
.ended { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(40px, 10vw, 120px); }
.ended img { width: 120px; height: 120px; object-fit: contain; }
.ended h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.ended .lead { margin-inline: auto; }
.btn { display: inline-block; text-decoration: none; background: linear-gradient(135deg, var(--primary), var(--deep)); color: var(--on-primary); border-radius: 999px; padding: 14px 32px; font-weight: 600; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }

/* הודעת מחיקת המידע בטופס הקמת האירוע */
.retention { background: var(--tint); border-inline-start: 4px solid var(--primary); border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
