:root {
  --primary: #7a1f3d;
  --primary-dark: #5c1530;
  --cta: #f7931e;
  --cta-dark: #e07f0c;
  --accent: #4f46e5;
  --bg: #f4f5fc;
  --card: #ffffff;
  --text: #1f2333;
  --muted: #6b7083;
  --line: #e4e6f2;
  --soft: #eef0fb;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(40, 44, 90, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* בועות רקע דקורטיביות */
.bubble { position: fixed; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #c7d7ff, #a5c8f0); opacity: .45; z-index: -1; }
.b1 { width: 140px; height: 140px; top: 150px; inset-inline-start: 62%; }
.b2 { width: 110px; height: 110px; top: 380px; inset-inline-end: 2%; }
.b3 { width: 90px; height: 90px; bottom: 80px; inset-inline-start: 1%; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--cta); color: var(--cta-text, #fff); box-shadow: 0 6px 18px rgba(247, 147, 30, .35); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--soft); }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 700; }

/* כותרת עליונה */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lang select { border: 0; background: transparent; font-weight: 600; cursor: pointer; color: var(--text); }

.banner {
  background: linear-gradient(90deg, #3730a3, #4f46e5 60%, #3730a3);
  color: #fff; text-align: center; padding: 9px 16px; font-size: .92rem; font-weight: 500;
}
.banner b { color: #5eead4; }

.page-title { text-align: center; color: var(--primary); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; margin: 28px 0 22px; }

/* פריסה דו-טורית */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.col-side { position: relative; }

.hero { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #32151b; }
.hero img { display: block; width: 100%; height: auto; object-fit: contain; }
.hero img.hero-outgoing { position: absolute; top: 0; left: 0; pointer-events: none; }
.hero-controls { position: absolute; z-index: 2; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; direction: ltr; justify-content: center; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 12px; background: rgba(36, 12, 19, .78); color: white; }
.hero-controls button { min-width: 44px; min-height: 44px; border: 1px solid #ffffff66; border-radius: 8px; background: transparent; color: white; font-size: 20px; cursor: pointer; }
.hero-controls button:focus-visible { outline: 3px solid #f6a623; outline-offset: 2px; }
.hero-counter { font-variant-numeric: tabular-nums; }
@media (hover: none), (pointer: coarse) {
  .hero-controls { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hero.controls-visible .hero-controls, .hero:focus-within .hero-controls { opacity: 1; pointer-events: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .hero-controls { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hero:hover .hero-controls, .hero:focus-within .hero-controls { opacity: 1; pointer-events: auto; }
}
.match-badge {
  position: absolute; top: 16px; inset-inline-start: 16px;
  background: var(--cta); color: #fff; font-weight: 900; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.2); font-size: 1rem;
}
.subtitle { text-align: center; font-size: 1.1rem; color: var(--muted); margin: 14px 0 18px; }

/* כרטיס התקדמות */
.stats-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 5px solid var(--primary); padding: 28px 28px 22px; text-align: center;
}
.raised { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 900; color: var(--primary); line-height: 1.1; }
.donors-pill { display: inline-block; margin: 14px 0 22px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 700; color: var(--primary); background: var(--card); cursor: pointer; min-height: 44px; }
.donors-pill:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
#tab-donors { scroll-margin-top: 88px; }
.panel:has(#tab-donors) { scroll-margin-top: 88px; }
.progress { height: 14px; background: #d9dbe4; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #b4325e); border-radius: 999px; transition: width 1.2s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; color: var(--primary); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.countdown div { background: var(--soft); border-radius: 12px; padding: 8px 4px; }
.countdown span { display: block; font-size: 1.45rem; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .78rem; }
.ends-at { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.side-title { text-align: center; font-size: 1.2rem; margin: 26px 0 14px; }
.quick-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.amount-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  min-height: 50px; padding: 12px 6px; font-weight: 800; font-size: 1.1rem; cursor: pointer; color: var(--primary); transition: .15s;
}
.amount-btn small { font-size: .75rem; color: var(--muted); margin-inline-start: 2px; }
.amount-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.amount-btn.other { background: #e8e9fb; }

.trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: var(--muted); }

/* חבילות תרומה */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.package {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow); border: 0; padding: 0; background: #333; color: #fff; text-align: center;
}
.package.featured { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.package img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.package:hover img { transform: scale(1.06); }
.package .pk-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, rgba(60, 12, 30, .25), rgba(60, 12, 30, .72)); padding: 10px;
}
.package .pk-title { font-weight: 900; font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0,0,0,.4); line-height: 1.25; }
.package.featured .pk-title { font-size: 1.5rem; }
.package .pk-amount { background: #fff; color: var(--primary); font-weight: 900; border-radius: 999px; padding: 3px 14px; }
.package.featured .pk-amount { font-size: 1.3rem; padding: 4px 22px; }
.package.package-artwork { aspect-ratio: auto; align-self: start; background: white; color: var(--primary); }
.package.package-artwork img { position: static; display: block; height: auto; object-fit: contain; transform: none; }
.package.package-artwork .pk-body { position: static; background: white; }
.package.package-artwork .pk-title { text-shadow: none; }
.package.package-artwork .pk-amount { background: #fff4e5; }
.package:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* פאנל לשוניות */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 22px 24px; margin-bottom: 40px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.active { background: #e4e5fb; color: #3730a3; }
.share-icons { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; color: #333; font-weight: 800; cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; }
.toolbar input { flex: 1; min-width: 0; }
.team-filter { background: var(--soft); padding: 8px 14px; border-radius: 10px; margin-bottom: 12px; }

/* כרטיסי תורמים */
.donors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; padding-top: 10px; }
.donor {
  position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; background: #fff;
  min-height: 92px; animation: fade .3s;
}
.donor.new { animation: pop .8s; border-color: var(--cta); }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.donor-badge {
  position: absolute; top: -14px; inset-inline-end: -10px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.18); border: 3px solid #fff;
}
.donor-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-inline-end: 22px; }
.donor-name { font-weight: 800; }
.donor-amount { font-weight: 900; color: var(--primary); white-space: nowrap; }
.donor-amount small { color: var(--muted); font-weight: 500; font-size: .75rem; display: block; text-align: end; }
.donor-ded { font-style: italic; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.donor-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .75rem; color: var(--muted); }
.tag { background: var(--soft); border-radius: 999px; padding: 1px 9px; }
.tag.keva { background: #fde9ef; color: var(--primary); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

/* מתרימים */
.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.team-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: #fff; text-align: start; }
.team-card:hover { border-color: var(--accent); }
.team-card h4 { margin: 0 0 4px; font-size: 1.1rem; }
.team-card .progress { height: 9px; margin: 10px 0 6px; }
.team-card .row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }

.about { font-size: 1.08rem; text-align: center; max-width: 680px; margin: 0 auto; }
.about p { margin: 0 0 14px; }
.video { margin-top: 20px; aspect-ratio: 16/9; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { margin: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; bottom: 0; inset-inline: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; padding: 18px 10px 8px; font-size: .85rem; }

.footer { background: #1f1a2e; color: #e8e6f0; padding: 28px 0 110px; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer .muted { color: #b5b0c8; }

/* כפתור צף */
.float-cta {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 12px; background: var(--float, #fff); padding: 9px 12px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(30, 30, 70, .2);
}
.float-cta .btn { padding: 12px 34px; font-size: 1.05rem; }
.share-round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; font-size: 1.2rem; }

.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: #1f2333; color: #fff; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow);
  animation: fade .3s; max-width: calc(100% - 32px); text-align: center;
}

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox-caption { color: #fff; margin-top: 10px; }
.lightbox-close { position: absolute; top: 14px; inset-inline-end: 18px; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* חלון תרומה */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 40, .55); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  overflow-y: auto; padding: 26px 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .3s;
}
.modal-close { position: absolute; top: 12px; inset-inline-end: 14px; background: var(--soft); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.modal h2 { margin: 6px 0 16px; font-size: 1.35rem; text-align: center; color: var(--primary); }
.modal h3 { margin: 18px 0 10px; font-size: 1rem; }

.steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--muted); display: flex;
  align-items: center; justify-content: center; font-weight: 800; position: relative; font-size: .9rem;
}
.step-dot small { position: absolute; top: 31px; font-size: .7rem; white-space: nowrap; font-weight: 500; }
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.done { background: var(--ok); color: #fff; }
.step-line { width: 46px; height: 2px; background: var(--line); }
.step { margin-top: 26px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: transparent; padding: 9px 4px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.amounts .amount-btn { font-size: 1rem; padding: 11px 4px; }
.amount-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.amount-btn.active small { color: #f3d6df; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
}
.field input:focus, .field select:focus, .toolbar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.amount-input { position: relative; }
.amount-input b { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check-46 { background: #fff8eb; border: 1px solid #fde1b0; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.receipt-fields { background: #fffcf5; border: 1px dashed #fde1b0; border-radius: 12px; padding: 12px 12px 6px; margin-bottom: 8px; }

.match-preview { background: linear-gradient(90deg, #fff4e5, #ffe9cc); border-radius: 12px; padding: 10px 14px; text-align: center; margin: 6px 0 4px; color: #8a4b00; }
.match-preview:empty { display: none; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method {
  border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: .92rem;
}
.method small { font-weight: 400; color: var(--muted); font-size: .7rem; text-align: center; }
.method.active { border-color: var(--primary); background: #fdf3f6; }
.method:disabled { opacity: .4; cursor: not-allowed; }
.m-icon { font-size: 1.3rem; height: 30px; display: flex; align-items: center; }
.m-bit { background: #1fb6c1; color: #fff; border-radius: 8px; padding: 0 8px; font-size: .95rem; font-weight: 900; }
.m-paybox { background: #00a3e0; color: #fff; border-radius: 8px; padding: 0 10px; font-weight: 900; }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0; min-height: 1em; }
.error { color: var(--err); font-weight: 600; margin: 8px 0; min-height: 1.2em; font-size: .92rem; }
.summary-pill { background: var(--soft); border-radius: 12px; padding: 8px 14px; margin-bottom: 14px; text-align: center; font-weight: 700; }
.row-btns { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.row-btns .btn-cta { flex: 1; }

.iframe-wrap { position: relative; min-height: 120px; }
#NedarimFrame { width: 100%; border: 0; height: 0; display: block; }
.iframe-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.demo-box { background: #fff7d6; border: 1px solid #f3d36b; border-radius: 12px; padding: 12px; margin: 12px 0; font-size: .9rem; }
.demo-box .btn { margin-top: 8px; }

.thanks { text-align: center; }
.thanks-icon { width: 74px; height: 74px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; animation: pop .5s; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 16px 0; }

/* מובייל */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 22px; }
  .col-side { order: -1; }
  .col-main .hero, .col-main .subtitle { display: none; }
  .hero-mobile { display: block; }
  div.hero-mobile { margin-bottom: 4px; }
  .b1 { display: none; }
}
@media (min-width: 921px) { .hero-mobile { display: none; } }
@media (max-width: 600px) {
  .donors-grid, .teams-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .panel { padding: 12px 14px 20px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .share-icons { justify-content: center; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .methods { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 94vh; padding: 22px 16px 18px; }
  .quick-amounts { gap: 8px; }
  .float-cta { width: calc(100% - 32px); justify-content: center; }
  .float-cta .btn { flex: 1; }
}
