@import '/assets/css/fonts.css';

:root {
  --cream: #fdf8f2; --card: #ffffff; --navy: #1a4a6b; --navy-deep: #123048;
  --orange: #e8854a; --muted: #6e604f; /* 4/11/2026, סבב חמישי, נגישות. היה #8a7a66, ניגודיות 4.15 על לבן. עכשיו 6.09 */ --border: #eadfce; --danger: #c0392b; --green: #16a34a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Rubik', sans-serif; background: var(--cream); color: var(--navy-deep);
  min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6;
  overflow-x: hidden;
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border);
}
.top .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); }
/* כפתור החזרה, אותה גלולה נייבי בולטת כמו כפתור "חזרה" בשערי המערכת (gates.css). */
.top .back {
  display: flex; align-items: center; gap: 7px;
  min-height: 48px; padding: 10px 20px;
  background: var(--navy); border: none; border-radius: 50px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 4px 14px rgba(26,74,107,0.25);
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.top .back:hover { transform: translateY(-1px); background: #15405d; box-shadow: 0 7px 18px rgba(26,74,107,0.32); }
/* החץ פונה ימינה, חזרה ב-RTL (עומר 6/7). */
.top .back svg { width: 18px; height: 18px; }
.top .spacer { width: 64px; }

.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 26px 16px; }
.loading { color: var(--muted); padding: 40px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 22px; width: 100%; max-width: 440px; box-shadow: 0 6px 24px rgba(26, 74, 107, .06);
}
.card h1 { font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.card label { display: block; font-weight: 700; font-size: .9rem; margin: 12px 0 5px; color: var(--navy); }
.card input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: #fffdf9;
}
.card input:focus { outline: none; border-color: var(--orange); }
/* 4/11/2026, סבב חמישי, נגישות. המסגרת הכתומה על לבן מתחת ל-3. טבעת כהה יותר, ותיבות סימון עם מסגרת */
.card input:not([type=checkbox]):focus-visible { border-color: #b65a26; box-shadow: 0 0 0 3px rgba(182,90,38,.35); }
.card input[type=checkbox]:focus-visible { outline: 3px solid #b65a26; outline-offset: 2px; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f4ece0; }
.row:last-child { border-bottom: none; }
.row .k { color: var(--muted); font-size: .9rem; }
.row .v { font-weight: 700; color: var(--navy-deep); text-align: left; }

.sub-box { margin-top: 16px; padding: 16px; background: #fffaf3; border: 1px solid var(--border); border-radius: 14px; }
.sub-box.none { text-align: center; }
.sub-box .note { color: var(--muted); font-size: .95rem; margin-top: 10px; line-height: 1.5; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge.on { background: #e7f6ec; color: #166534; }   /* 4/11/2026, סבב חמישי, נגישות. var(--green) על הרקע הזה, 2.94. עכשיו 6.38 */
.badge.off { background: #fbeaea; color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; margin-top: 14px; border: none; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  background: #eee5d8; color: var(--navy-deep); transition: .15s;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid #e7c4c0; }
.btn.danger:hover { background: #fbeaea; }
.btn:disabled { opacity: .6; cursor: default; }

.alert { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fbeaea; color: var(--danger); font-size: .9rem; }
.alert.ok { background: #e8f6ee; color: #2f8f5b; }
/* "שכחתי את הסיסמה", כפתור בסגנון קישור מתחת לכניסה. */
.ac-forgot { display: block; width: 100%; margin-top: 12px; background: none; border: none; color: var(--navy); font-size: .92rem; font-weight: 600; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 8px; min-height: 44px; }
.ac-forgot:hover { color: #e8854a; }
.ac-forgot:disabled { opacity: .6; cursor: default; }
/* בחירת סיסמה מהקישור במייל, 26/9/2026. */
.card .sp-show { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 44px; }
.card .sp-show input { width: 22px; height: 22px; padding: 0; margin: 0; flex: none; accent-color: var(--navy); }
.sp-hint { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.5; }
.sp-email { direction: ltr; unicode-bidi: isolate; font-weight: 700; color: var(--navy-deep); }

.links { margin-top: 16px; text-align: center; font-size: .88rem; }
.link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--navy); text-decoration: none; }
.link.logout { color: var(--muted); }

.reassure { text-align: center; padding: 18px; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; min-height: 44px; padding: 10px 8px; }
.help-btn svg { color: #25d366; }
.help-mail svg { color: var(--navy); }

@media (max-width: 600px) {
  .card { padding: 22px 18px; }
  .card h1 { font-size: 1.25rem; word-wrap: break-word; }
}

/* תיקוני נייד צר, audit רספונסיביות 9/6/2026 */
@media (max-width: 430px) {
  .card input { padding: 14px 14px; min-height: 44px; }
  .btn { padding: 14px 16px; min-height: 44px; }
  .row .k { font-size: .95rem; }
}
/* פרטי מנוי + ביטול מאוזן, 9/6/2026 (קונצנזוס Gemini + GPT) */
.sub-title { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.pay-info { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f4ece0; display: flex; flex-direction: column; gap: 8px; }
.pay-line { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.pay-line svg { flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.manage-row { margin-top: 16px; text-align: center; }
.cancel-link { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: underline; padding: 10px 8px; min-height: 44px; }
.cancel-link:hover { color: var(--navy); }
.cancel-link.danger { color: var(--danger); }
.flow-overlay { position: fixed; inset: 0; background: rgba(26,74,107,.42); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.flow-card { background: var(--card,#fff); border-radius: 18px; padding: 24px 22px; width: 100%; max-width: 420px; box-shadow: 0 16px 48px rgba(26,74,107,.22); }
.flow-card h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.flow-card p { font-size: .96rem; line-height: 1.6; margin: 0 0 10px; }
.flow-soft { color: var(--muted); }
.flow-btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.flow-btns .btn { width: 100%; margin-top: 0; }
.flow-btns .cancel-link { margin-top: 4px; }

/* ⭐ טלפון, בר גודל הטקסט בזרימה מתחת לכותרת. 1/10/2026, אותו תיקון כמו ב-system/css/gates.css.
   הבר קבוע 60px מלמעלה, והכותרת כאן גדלה עם הטקסט, 101px בגודל ענק, ולכן הוא כיסה את "למערכת".
   /system/js/phone-flow.js מעביר אותו מתחת לכותרת. `body` בכל כלל, כי text-size-bar.css נטען אחרי הקובץ הזה */
@media (max-width: 767px) {
  /* בגודל ענק, "למערכת" 186px והלוגו 154px, ובמסך של 360px הם דחפו את הדף ב-10px לרוחב. נמדד בגלקסי S25 ו-S24, 1/10/2026.
     כשאין מקום, הלוגו יורד שורה מתחת לכפתור, ולא הדף כולו נגרר הצידה */
  .top { flex-wrap: wrap; row-gap: 8px; }
  /* הרווח שמאזן את הלוגו לאמצע. בסיס 0, כדי שלא יירד לשורה שלישית משלו, וגדל עד 64px כשיש מקום */
  .top .spacer { flex: 1 0 0; width: auto; max-width: 64px; }
  body #tsb { position: static; flex-shrink: 0; z-index: auto; }
  body #tsb.collapsed { background: #fdf8f2; border-bottom-color: #e8e0d6; box-shadow: 0 3px 12px rgba(26, 74, 107, 0.08); pointer-events: auto; }
  body #tsb.collapsed .tsb-opts { display: flex; }
  body #tsb.collapsed .tsb-lbl { background: transparent; border: none; border-radius: 0; padding: 4px 2px; box-shadow: none; }
}
