/* האפליקציה לבעלי הדירות · ירושלים ניהול נכסים
   סגנון: כהה וצבעוני. רקע כחול-לילה, כרטיסים גדולים בזהב ובצבעי מצב, פס ניווט צף. */

:root {
  --bg: #0E1626;
  --surface: #172338;
  --surface-2: #203050;
  --line: #2A3A5A;
  --text: #F6F1E4;
  --muted: #A3AEC4;
  --gold: #D9B25A;
  --gold-deep: #C9A24A;
  --on-gold: #1B2433;
  --red: #E0564F;
  --teal: #2AA79A;
  --blue: #4F7FD8;
  --green: #3FB27A;
  --orange: #E58A3A;
  --gray: #6B778E;
  --radius: 18px;
  --radius-lg: 26px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.i { width: 22px; height: 22px; flex: none; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 28px; height: 28px; }

/* מסגרת */
.screen { max-width: 560px; margin: 0 auto; padding: 18px 18px calc(120px + var(--safe-b)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 18px; }
.top__brand { font-size: 14px; color: var(--muted); font-weight: 500; }
.top h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.top__btns { display: flex; gap: 8px; flex: none; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.round--ghost { background: var(--surface); color: var(--text); }

.demo-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; background: rgb(217 178 90 / .07); }
.demo-bar b { display: block; font-size: 15px; }
.demo-bar span { font-size: 14px; color: var(--muted); }

h2.sec { font-size: 20px; font-weight: 800; margin: 30px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2.sec .link { font-size: 15px; font-weight: 500; color: var(--gold); }

/* בחירת דירה */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 500; font-size: 15px; border: 1.5px solid transparent; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 700; }

/* כרטיס הדירה */
.home-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 210px; display: flex; align-items: flex-end; background: var(--surface) center/cover no-repeat; margin-bottom: 12px; }
.home-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(9 15 28 / .92) 8%, rgb(9 15 28 / .15) 70%); }
.home-card__body { position: relative; z-index: 1; padding: 18px; width: 100%; }
.home-card__name { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.home-card__meta { color: #D5DBE6; font-size: 15px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--c, var(--gray)); color: #fff; line-height: 1.4; }
.pill--soft { background: color-mix(in srgb, var(--c, var(--gray)) 22%, transparent); color: color-mix(in srgb, var(--c, var(--gray)) 70%, white); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }

/* כרטיסי פעולה צבעוניים */
.action { display: flex; gap: 14px; align-items: center; border-radius: var(--radius-lg); padding: 18px; margin-bottom: 12px; background: var(--c); color: #fff; text-align: start; width: 100%; }
.action--gold { --c: var(--gold); color: var(--on-gold); }
.action--red { --c: var(--red); }
.action--teal { --c: var(--teal); }
.action--blue { --c: var(--blue); }
.action__ic { width: 48px; height: 48px; border-radius: 16px; background: rgb(255 255 255 / .2); display: grid; place-items: center; flex: none; }
.action--gold .action__ic { background: rgb(27 36 51 / .12); }
.action__txt { flex: 1; min-width: 0; }
.action__txt b { display: block; font-size: 18px; font-weight: 800; line-height: 1.3; }
.action__txt span { font-size: 15px; opacity: .9; }
.action__go { flex: none; padding: 9px 14px; border-radius: 999px; background: rgb(255 255 255 / .22); font-weight: 700; font-size: 14px; }
.action--gold .action__go { background: var(--on-gold); color: var(--gold); }

.calm { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 12px; }
.calm b { display: block; font-size: 17px; }
.calm span { color: var(--muted); font-size: 15px; }
.calm .action__ic { background: rgb(63 178 122 / .18); color: var(--green); }

/* סיכום כסף */
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money > div { background: var(--surface); border-radius: var(--radius); padding: 14px 12px; }
.money small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.money strong { font-size: 19px; font-weight: 800; }
.plus { color: #6FD3A0; }
.minus { color: #F2908A; }

/* רשימות */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.card--gold { outline: 2px solid var(--gold); }
.row { display: flex; gap: 12px; align-items: flex-start; }
.row__ic { width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--gold); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.row__sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.row__end { text-align: end; flex: none; }
.row__amt { font-weight: 800; font-size: 17px; }
.row__thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.btns { display: flex; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 16px; background: var(--surface-2); color: var(--text); flex: 1; text-decoration: none; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--line { background: transparent; border: 1.5px solid var(--line); }
.btn:disabled { opacity: .6; }
.new-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-inline-start: 6px; vertical-align: middle; }

.seg { display: flex; background: var(--surface); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 700; color: var(--muted); font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .action__ic { margin: 0 auto 10px; background: var(--surface); color: var(--gold); }

/* פיד עדכונים */
.post { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; }
.post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post__body { padding: 16px; }
.post__title { font-weight: 800; font-size: 18px; margin: 6px 0 4px; }
.post__text { color: #D5DBE6; margin: 0; }
.post__when { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* איש קשר */
.contact { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 16px; }
.contact img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.contact b { display: block; font-size: 17px; }
.contact span { color: var(--muted); font-size: 14.5px; }
.contact { flex-wrap: wrap; }
.contact .btns { margin-top: 2px; width: 100%; }

/* פס ניווט צף */
.nav { position: fixed; inset-inline: 0; bottom: calc(14px + var(--safe-b)); z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.nav__in { pointer-events: auto; display: flex; align-items: center; gap: 2px; background: rgb(23 35 56 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.nav__a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; padding: 7px 6px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.nav__a[aria-current="page"] { background: var(--gold); color: var(--on-gold); font-weight: 800; }
.nav__plus { width: 54px; height: 54px; margin: 0 4px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; }
.badge { position: absolute; top: 2px; inset-inline-end: 10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* חלון תחתון */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgb(5 9 18 / .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); border-top: 1px solid var(--line); animation: up .24s cubic-bezier(.2,.8,.2,1); }
.sheet__grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.sheet p.lead { color: var(--muted); margin: 0 0 18px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15.5px; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; }
.input:focus { outline: none; border-color: var(--gold); }
textarea.input { min-height: 110px; resize: vertical; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { flex: 1; min-width: 92px; min-height: 64px; border-radius: 14px; background: var(--surface); border: 1.5px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 15px; padding: 8px; }
.opt[aria-pressed="true"] { border-color: var(--gold); background: rgb(217 178 90 / .12); color: var(--gold); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--red); }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }

.lang-list { display: grid; gap: 8px; }
.lang-list button { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; background: var(--surface); border-radius: 14px; font-weight: 700; font-size: 17px; }
.lang-list button[aria-pressed="true"] { outline: 2px solid var(--gold); }

.done-big { text-align: center; padding: 18px 0 6px; }
.done-big .action__ic { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 14px; background: var(--gold); color: var(--on-gold); }

/* היכרות ראשונה */
.intro { text-align: center; padding-top: 6px; }
.intro .action__ic { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 16px; background: var(--gold); color: var(--on-gold); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--line); }
.dots i.on { width: 26px; background: var(--gold); }

/* כניסה */
.login { max-width: 440px; margin: 0 auto; padding: 40px 22px; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.login__logo { width: 190px; margin-bottom: 26px; }
.login h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.login p { color: var(--muted); margin: 0 0 24px; }
.login__msg { background: rgb(224 86 79 / .14); border: 1px solid rgb(224 86 79 / .4); color: var(--text) !important; border-radius: 14px; padding: 12px 14px; }
.login .lang-mini { display: flex; gap: 6px; margin-bottom: 28px; }

#toast { position: fixed; inset-inline: 16px; bottom: calc(100px + var(--safe-b)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
#toast div { background: var(--text); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); animation: up .2s ease; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; margin: 30vh auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (min-width: 760px) { .screen { padding-top: 32px; } .top h1 { font-size: 34px; } }

/* סימון של טקסט שתורגם אוטומטית */
.tr-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.tr-note .i { width: 15px; height: 15px; }

/* כניסה עם קוד */
.code-input { font-size: 26px; letter-spacing: .35em; text-align: center; font-weight: 800; }
.login__msg--ok { background: rgb(63 178 122 / .14) !important; border-color: rgb(63 178 122 / .45) !important; }
.login .field label { display: block; font-weight: 700; margin-bottom: 6px; }

/* כרטיס הפעלת התראות */
.push-card { align-items: flex-start; border: 1.5px solid var(--gold); }
.push-card .action__ic { background: rgb(217 178 90 / .16); color: var(--gold); }
