/*
 * fociro-auth.css
 * עברית: העיצוב של דף הכניסה, יצירת החשבון, איפוס הסיסמה ומסכי אימות המייל. עיצוב בלבד – אותם שדות, מזהים ופעולות כמו קודם.
 *   .fna  = צד הטופס (כניסה / הרשמה / איפוס) והפאנל הכחול במחשב;  .fnr = העתקים של רכיבי האפליקציה שבפאנל (גדלים ב-em, כדי שיתכווננו למסך).
 *   הכיוון (ימין-לשמאל / שמאל-לימין) נקבע לפי dir של הדף – בעזרת מאפיינים לוגיים, כך ששפה חדשה לא דורשת שינוי כאן.
 * English: the design of the sign-in page, account creation, password reset and the e-mail verification screens. Design only – the same
 *   fields, ids and actions as before.
 *   .fna  = the form side (sign in / sign up / reset) and the blue panel on a computer;  .fnr = replicas of the app's components inside the
 *   panel (sized in em so they scale with the screen).
 *   The direction (RTL / LTR) follows the page's dir – with logical properties, so a new language needs no change here.
 */

@property --fna-pct { syntax: '<number>'; initial-value: 0; inherits: false; }
@property --fna-pcti { syntax: '<integer>'; initial-value: 0; inherits: false; }

/* ---------- the page around the form / הדף שמסביב לטופס ---------- */
body:has(.fna) { background: #f1f2f4; }
body:has(.fna) > .container-fluid { padding: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* the layout's language bar is hidden here: the same language links sit in the form's footer (its script still handles them)
   שורת השפה של התבנית מוסתרת כאן: אותם קישורי שפה נמצאים בתחתית הטופס (הסקריפט שלה ממשיך לטפל בהם) */
body:has(.fna) > .container-fluid > .fixed-bottom { display: none; }
body:has(.fna) .modal-backdrop { display: none; }

.fna, .fna-modal, .fna-status, .fna-page {
    --fna-p: var(--ins-secondary, #1a73e8);
    --fna-prgb: var(--ins-secondary-rgb, 26, 115, 232);
    --fna-ease: cubic-bezier(.16, 1, .3, 1);
    color: #14181f;
}
.fna *, .fna-modal *, .fna-status *, .fna-page * { box-sizing: border-box; }
.fna { flex: 1; position: relative; display: block; }
.fna-brand { display: none; }
.fna-side { position: relative; display: flex; min-height: calc(100vh - var(--fna-top, 0px)); min-height: calc(100dvh - var(--fna-top, 0px)); overflow: hidden; }

/* soft color blobs behind the form on a phone / כתמי צבע רכים מאחורי הטופס בטלפון */
.fna-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.fna-b1 { width: 320px; height: 320px; background: rgba(var(--fna-prgb), .18); filter: blur(80px); top: -140px; right: -110px; }
.fna-b2 { width: 260px; height: 260px; background: rgba(91, 200, 255, .14); filter: blur(90px); top: -90px; left: -110px; }
.fna-b3 { width: 200px; height: 200px; background: rgba(var(--fna-prgb), .08); filter: blur(80px); bottom: -60px; left: -60px; }

/* ---------- the form / הטופס ---------- */
/* top-anchored: the logo and the title sit at the same height on every form (sign in, both sign-up steps, reset); a shorter form just ends higher */
.fna-form { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: clamp(16px, 7vh, 96px) 20px 24px; display: flex; flex-direction: column; justify-content: flex-start; }
.fna-hero { text-align: center; margin-bottom: 18px; }
.fna-hero h1 { font-size: 23px; font-weight: 700; margin: 16px 0 4px; color: #14181f; }
.fna-hero p { color: #5f6368; font-size: 14.5px; margin: 0; }
.fna-word { height: 46px; width: auto; display: block; margin: 0 auto; }

.fna-card { background: #fff; border-radius: 22px; padding: 2px 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fna-card + .fna-card { margin-top: 10px; }
/* שדה שהדפדפן מילא לבד מקבל את צבע הכרטיס (BS5customAdditions.css: --fn-autofill-bg) / an autofilled field takes the card color */
.fna-card { --fn-autofill-bg: #fff; }
.fna-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 0; margin: 0; }
.fna-row + .fna-row::before { content: ""; position: absolute; top: 0; inset-inline: 48px 0; height: 1px; background: #ececef; }
.fna-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: transparent; color: #5b616b; /* the icon alone, no box behind it (Sahar) / האייקון לבד, בלי ריבוע מאחוריו */ display: grid; place-items: center; font-size: 18px; }
.fna-field { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fna-field > label { font-size: 12px; font-weight: 600; color: #5f6368; margin: 0 0 1px; }
.fna-field .form-control, .fna-field .form-select {
    border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; min-height: 0; height: auto;
    font-size: 16px; line-height: 1.4; color: #14181f; width: 100%; text-align: start;
}
.fna-field .form-control::placeholder { color: #9aa0a6; opacity: 1; }
.fna-field .form-control:focus, .fna-field .form-select:focus { box-shadow: none; outline: 0; background: transparent; }
.fna-field .form-control.is-invalid, .fna-field .form-select.is-invalid { background-image: none; padding: 0; }
.fna-row .fna-field .form-select { appearance: none; -webkit-appearance: none; background-image: none !important; cursor: pointer; padding: 0 !important; padding-inline-end: 28px !important; direction: inherit; text-align: start; }
/* an address typed left-to-right still lines up with the other fields / כתובת שמוקלדת משמאל לימין עדיין מיושרת עם שאר השדות */
html[dir="rtl"] .fna-field .form-control[dir="ltr"] { text-align: right; }
.fna-field textarea.form-control { resize: none; min-height: 44px; }
.fna-field .invalid-feedback { font-size: 12.5px; margin-top: 2px; }
.fna-row:focus-within .fna-ico { color: var(--fna-p); }
.fna-chevron { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 16px; pointer-events: none; }

/* the show / hide password eye: the layout places it with !important, so the same weight is used here
   העין של הצגת הסיסמה: התבנית ממקמת אותה עם !important, ולכן כאן באותו משקל */
.fna-row.pass-wrap .fna-field { padding-inline-end: 38px; }
html[dir="rtl"] .fna-row.pass-wrap .show-pass.eye { left: 0 !important; right: auto !important; }
html[dir="ltr"] .fna-row.pass-wrap .show-pass.eye { right: 0 !important; left: auto !important; }
.fna-row.pass-wrap .show-pass.eye { width: 36px; height: 36px; justify-content: center; color: #6b7280; font-size: 17px; border-radius: 50%; }

.fna-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; font-size: 14px; margin-top: 16px; }
.fna-remember { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; margin: 0; color: #14181f; cursor: pointer; }
.fna-remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fna-switch { width: 40px; height: 24px; border-radius: 999px; background: #d5d8dd; position: relative; display: inline-block; flex: 0 0 40px; transition: background .2s; }
.fna-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s; }
.fna-remember input:checked + .fna-switch { background: var(--fna-p); }
.fna-remember input:checked + .fna-switch::after { inset-inline-start: 19px; }
.fna-remember input:focus-visible + .fna-switch { outline: 2px solid var(--fna-p); outline-offset: 2px; }
.fna-link, .fna-link:hover { color: var(--fna-p); font-weight: 600; text-decoration: none; }

.fna-primary, a.fna-primary {
    height: 52px; border: 0; border-radius: 999px; background: var(--fna-p); color: #fff; font-size: 16px; font-weight: 600; width: 100%; margin-top: 20px;
    box-shadow: 0 6px 16px rgba(var(--fna-prgb), .25); display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.fna-primary:hover, a.fna-primary:hover { color: #fff; filter: brightness(.96); }
.fna-primary:disabled { opacity: .7; cursor: default; }
.fna-secondary, a.fna-secondary {
    height: 52px; border: 1.5px solid #e2e5ea; border-radius: 999px; background: #fff; color: #14181f; font-size: 16px; font-weight: 600; width: 100%; margin-top: 12px;
    display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.fna-error { text-align: center; font-size: 14px; }

.fna-or { display: flex; align-items: center; gap: 12px; color: #5f6368; font-size: 13px; margin: 24px 4px 16px; }
.fna-or::before, .fna-or::after { content: ""; flex: 1; height: 1px; background: #dfe2e6; }
.fna-social-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.fna-social-row.n2 { grid-template-columns: 1fr 1fr; }
.fna-social { height: 52px; border: 1.5px solid #e2e5ea; border-radius: 999px; background: #fff; color: #14181f; font-size: 15.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.fna-social[hidden] { display: none; }
.fna-social .bi-apple { font-size: 19px; margin-top: -2px; }
.fna-social.fna-apple { background: #0b0b0c; border-color: #0b0b0c; color: #fff; }
.fna-social.fna-samsung { background: #1428a0; border-color: #1428a0; color: #fff; }
.fna-sam { font-size: 13px; letter-spacing: .2em; font-weight: 800; }

.fna-foot { text-align: center; color: #5f6368; font-size: 14.5px; margin-top: 24px; }
.fna-legal { text-align: center; color: #6b7280; font-size: 12.5px; margin-top: 28px; }
.fna-legal a, .fna-lang a { color: inherit; text-decoration: none; }
.fna-lang { text-align: center; color: #6b7280; font-size: 12.5px; margin-top: 8px; }
.fna-lang a.is-current { color: #14181f; font-weight: 700; }

/* the "coming soon" note / הודעת "בקרוב" */
.fna-toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; background: #14181f; color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); white-space: nowrap; display: flex; align-items: center; gap: 8px; z-index: 2000; transition: opacity .25s, transform .25s; }
.fna-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sign up / reset, in the existing full-screen windows / הרשמה ואיפוס, בחלונות המסך המלא הקיימים ---------- */
/* the windows open under the development database bar (its height is measured into --fna-top): that bar is never covered */
body:has(.fna) .fna-modal { top: var(--fna-top, 0px); height: calc(100% - var(--fna-top, 0px)); }
.fna-modal .modal-content { background: #f1f2f4; border: 0; border-radius: 0; }
.fna-modal .modal-dialog { width: 100%; max-width: none; margin: 0; }
.fna-modal .modal-body { position: relative; padding: 0; display: flex; overflow-x: hidden; }
/* opens like the next page: a solid page slides in from the side (from the left in Hebrew, from the right in English) and slides back
   out on "back" – instead of Bootstrap's fade from the top, which showed the page behind it (Sahar)
   נפתח כמו הדף הבא: דף מלא נכנס מהצד (משמאל בעברית, מימין באנגלית) ויוצא חזרה ב"חזרה" – במקום הדהייה של Bootstrap מלמעלה, שהראתה את הדף שמאחור */
/* the window stays opaque; its (invisible) .42s transition only tells Bootstrap to wait for the slide before hiding it
   החלון נשאר אטום; המעבר (הבלתי נראה) של .42s רק אומר ל-Bootstrap לחכות להחלקה לפני שהוא מוסתר */
.modal.fade.fna-modal { opacity: 1; transition: opacity .42s linear; }
/* the theme's zoom-in animation on every window (app.css) would override the slide / אנימציית ההגדלה של התבנית על כל חלון הייתה גוברת על ההחלקה */
.fna-modal .modal-dialog { animation: none !important; opacity: 1 !important; } /* the theme starts the dialog at opacity 0 and relied on that animation to show it / התבנית מתחילה את החלון בשקיפות 0 וסמכה על האנימציה */
.fna-modal.fade .modal-dialog { transform: translateX(100%); transition: transform .42s cubic-bezier(.22, .8, .24, 1); }
[dir="rtl"] .fna-modal.fade .modal-dialog { transform: translateX(-100%); }
.fna-modal.show .modal-dialog, [dir="rtl"] .fna-modal.show .modal-dialog { transform: none; }
.fna-modal .modal-content { box-shadow: 0 0 40px rgba(0, 0, 0, .12); }
/* the page behind does not go dark – the new page covers it / הדף שמאחור לא מוחשך – הדף החדש מכסה אותו */
body:has(.fna) .modal-backdrop { --bs-backdrop-opacity: 0; }
/* …and with no fade of its own, so the page starts sliding at once / …ובלי דהייה משלה, כך שהדף מתחיל לזוז מיד */
body:has(.fna) .modal-backdrop.fade { transition: none; }
/* …and the sign-in form fades out with only a small step away (the motion the eye follows is the new page coming in from the screen's
   edge – not anything moving from the middle), so the two pages are never seen on top of each other; on a computer only the form's column moves – the blue panel stays (fociro-auth.js sets .is-pushed)
   …וטופס הכניסה יוצא לצד השני באותו זמן (מעבר "דחיפה", כמו בין דפים באפליקציה), כך ששני הדפים לא נראים זה על זה; במחשב זז רק טור הטופס */
.fna-side .fna-form { transition: transform .42s cubic-bezier(.22, .8, .24, 1), opacity .25s ease; }
.fna.is-pushed .fna-side .fna-form { transform: translateX(-10%); opacity: 0; }
[dir="rtl"] .fna.is-pushed .fna-side .fna-form { transform: translateX(10%); }
@media (prefers-reduced-motion: reduce) { .fna-modal.fade .modal-dialog, .fna-side .fna-form { transition: none; } }
.fna-back { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #14181f; display: grid; place-items: center; font-size: 19px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); cursor: pointer; }
/* compact: the create-account button shows without scrolling / צפוף: כפתור יצירת החשבון נראה בלי גלילה */
.fna-compact .fna-card { border-radius: 18px; }
.fna-compact .fna-card + .fna-card { margin-top: 8px; }
.fna-compact .fna-row { min-height: 50px; padding: 6px 0; }
.fna-compact .fna-ico { flex-basis: 34px; width: 34px; height: 34px; font-size: 17px; }
.fna-compact .fna-field .form-control, .fna-compact .fna-field .form-select { font-size: 15px; }
.fna-compact .fna-primary { height: 48px; margin-top: 12px; }
.fna-compact .fna-or { margin: 14px 4px 12px; }
.fna-compact .fna-social { height: 46px; }
.fna-compact .fna-foot { margin-top: 14px; }
.fna-hint { color: #5f6368; font-size: 12px; margin: 6px 8px 0; }
/* the two sign-up steps: bars like the stage bars of a staged task, filled as the steps advance
   שני שלבי ההרשמה: פסים כמו פסי השלבים של משימה בשלבים, שמתמלאים עם ההתקדמות */
.fna-steps { display: flex; justify-content: center; gap: 6px; margin: 0 0 4px; }
.fna-steps span { width: 36px; height: 5px; border-radius: 999px; background: #dcdfe4; transition: background .25s; }
.fna-steps span.is-on { background: var(--fna-p); }
.fna-step-caption { text-align: center; font-size: 12px; color: #6b7280; margin: 0 0 2px; }
.fna-step[hidden] { display: none; }
.fna-group { margin: 12px 8px 5px; font-size: 13px; font-weight: 700; color: #5f6368; }
.fna-terms { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; font-size: 13.5px; color: #3c4043; padding: 0 4px; margin: 10px 0 0; line-height: 1.45; }
.fna-terms .form-check-input { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; margin: 0; float: none; border: 1.5px solid #c4c7cc; cursor: pointer; }
.fna-terms .form-check-input:checked { background-color: var(--fna-p); border-color: var(--fna-p); }
.fna-terms label { flex: 1; margin: 0; cursor: pointer; }
.fna-terms .invalid-feedback { flex-basis: 100%; font-size: 12.5px; margin: 0; }
.fna-status-note { text-align: center; font-size: 14px; margin-top: 10px; }

/* ---------- the e-mail verification screens (inside the app's frame) / מסכי אימות המייל (בתוך מסגרת האפליקציה) ---------- */
/* a page of its own: covers the app's frame (side bar, bottom bar); below the app's windows, so the business profile window opens above it
   דף בפני עצמו: מכסה את מסגרת האפליקציה (סרגל הצד, הסרגל התחתון); מתחת לחלונות האפליקציה, כך שחלון פרופיל העסק נפתח מעליו */
.fna-page { position: fixed; inset: var(--fna-top, 0px) 0 0 0; z-index: 1049; overflow-x: hidden; overflow-y: auto; background: #f1f2f4; display: flex; }
body:has(.fna-page) { overflow: hidden; }
.fna-page .fna-status { position: relative; margin: auto; padding: 28px 20px; width: 100%; }
.fna-page .fna-word { height: 40px; margin-bottom: 32px; }
.fna-status { max-width: 420px; margin: 0 auto; padding: clamp(28px, 9vh, 96px) 20px 28px; text-align: center; }
.fna-illu { width: 96px; height: 96px; border-radius: 30px; background: #fff; color: var(--fna-p); display: grid; place-items: center; font-size: 42px; margin: 0 auto; box-shadow: 0 8px 24px rgba(var(--fna-prgb), .18); }
.fna-illu.is-ok { background: var(--fna-p); color: #fff; }
.fna-status h1 { font-size: 24px; font-weight: 700; margin: 24px 0 8px; color: inherit; }
.fna-status p { color: #5f6368; font-size: 15px; margin: 0 0 4px; line-height: 1.6; }
.fna-status p b { color: #14181f; }
.fna-status .fna-primary { margin-top: 24px; }
.fna-status-sent { margin-top: 20px; background: rgba(var(--fna-prgb), .1); color: var(--fna-p); border-radius: 16px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; }
.fna-status-foot { margin-top: 22px; font-size: 14.5px; }

/* ---------- a low screen: tighter spacing / מסך נמוך: רווחים קטנים יותר ---------- */
@media (max-height: 720px) {
    .fna-or { margin: 16px 4px 12px; }
    .fna-foot { margin-top: 16px; }
    .fna-legal { margin-top: 16px; }
}

/* ---------- computer: the blue panel beside the form (62 / 38) / מחשב: הפאנל הכחול ליד הטופס ---------- */
@media (min-width: 992px) {
    /* the blue panel a little larger, the form side a little narrower (Sahar) / הפאנל הכחול קצת יותר גדול, צד הטופס קצת יותר צר */
    .fna { display: grid; grid-template-columns: 62fr 38fr; }
    .fna-blob { display: none; }
    /* clipped sideways only: the sign-in form sliding out (the "push") must not pass over the blue panel / חתוך רק לרוחב: הטופס שיוצא לא עובר מעל הפאנל הכחול */
    .fna-side { overflow: visible; overflow-x: clip; }
    .fna-form { max-width: min(540px, 86%); padding-inline: 0; }
    .fna-word { height: 40px; }
    .fna-page .fna-status { max-width: 460px; }
    /* sign up / reset open over the form's column only, so the panel stays in view / ההרשמה והאיפוס נפתחים מעל טור הטופס בלבד, והפאנל נשאר */
    body:has(.fna) .fna-modal { left: auto; right: auto; inset-inline-end: 0; width: 38%; }

    .fna-brand { display: block; position: sticky; top: 0; align-self: start; padding: 0; height: calc(100vh - var(--fna-top, 0px)); height: calc(100dvh - var(--fna-top, 0px)); }
    .fna-brand-in {
        /* a straight edge between the blue panel and the form, not a rounded one (Sahar) / קו ישר בין הכחול לטופס, לא מעוגל */
        position: relative; height: 100%; border-radius: 0; overflow: hidden; padding: clamp(28px, 5vh, 52px) clamp(28px, 3.4vw, 56px); color: #fff; display: flex; flex-direction: column;
        background: radial-gradient(900px 520px at 100% 0%, rgba(255, 255, 255, .24) 0%, transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(0, 0, 0, .22) 0%, transparent 60%), var(--fna-p);
    }
    .fna-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 90px solid rgba(255, 255, 255, .05); bottom: -260px; left: -200px; pointer-events: none; }

    /* entrance: the text drops from above, the cards rise one after another; afterwards nothing moves except the small planned motions
       כניסה: הטקסט יורד מלמעלה, הכרטיסיות עולות אחת אחרי השנייה; אחר כך שום דבר לא זז חוץ מהתנועות הקטנות שתוכננו */
    .fna-drop { animation: fnaDrop .7s var(--fna-ease) both; animation-delay: var(--d, 0ms); }
    .fna-pop { animation: fnaPop .7s var(--fna-ease) both; animation-delay: var(--d, 0ms); }

    /* the stage: replicas of the app's components / הבמה: העתקים של רכיבי האפליקציה */
    /* only the cards, scattered over the whole blue panel, each at its own angle – no headline (Sahar). Every card is placed by its centre
       (--x, --y in % of the panel, set on the card in Index.cshtml); "translate" is separate from the "transform" the entrance animation uses.
       רק הכרטיסיות, מפוזרות על כל הפאנל הכחול, כל אחת בזווית משלה – בלי כותרת (סהר). כל כרטיסייה ממוקמת לפי המרכז שלה
       (--x, --y באחוזים מהפאנל, על הכרטיסייה ב-Index.cshtml); "translate" נפרד מה-"transform" שאנימציית הכניסה משתמשת בו. */
    .fna-stage { position: absolute; inset: 0; font-size: min(clamp(13.5px, 2.25vh, 21px), 1.12vw); }
    .fnr-col { display: contents; }
    .fna-stage .fnr { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
    /* 2% smaller than the original size (Sahar) / קטנות ב-2% מהגודל המקורי (סהר) */
    .fna-stage .fnr-in { font-size: .98em; }
    .fnr { transform: rotate(var(--r, 0deg)); }
    .fnr-in { background: #fff; color: #333b4d; border-radius: 1.45em; box-shadow: 0 1.5em 3em -.75em rgba(8, 40, 110, .35); position: relative; }
    .fnr-in b { color: #333b4d; }

    .fnr-summary { width: 26em; height: 10em; border: .1em solid var(--fna-p); padding: 1.1em 1.4em; display: flex; align-items: center; justify-content: space-between; gap: 1em; }
    .fnr-sum-text { display: flex; flex-direction: column; text-align: start; }
    .fnr-sum-text b { font-size: 1.4em; font-weight: 800; margin-bottom: .25em; }
    .fnr-sum-text span { font-size: .95em; }
    .fnr-sum-text u { color: var(--fna-p); font-weight: 700; font-size: .85em; margin-top: 1em; text-decoration: none; }
    /* every card fills as it lands (its pop delay + 450ms), in one continuous cascade – the dates card and the task check no longer wait
       a second or more after the others (Sahar) / כל כרטיס מתמלא ברגע שהוא נוחת (זמן ההופעה שלו + 450ms), ברצף אחד – כרטיס התאריכים וה-V כבר לא מחכים */
    .fnr-ring { flex: 0 0 6.2em; width: 6.2em; height: 6.2em; border-radius: 50%; background: conic-gradient(var(--fna-p) calc(var(--fna-pct) * 1%), #e5e7eb 0); display: grid; place-items: center; animation: fnaRing 1.1s ease-out both; animation-delay: 1100ms; }
    .fnr-ring b { width: 5.1em; height: 5.1em; border-radius: 50%; background: #fff; display: grid; place-items: center; counter-reset: fnan var(--fna-pcti); animation: fnaRingN 1.1s ease-out both; animation-delay: 1100ms; }
    .fnr-ring b::after { content: counter(fnan) "%"; font-size: 1.5em; font-weight: 800; }

    .fnr-dates { width: 26em; border: .1em solid var(--fna-p); padding: .9em 1em .8em; }
    .fnr-dates-top { display: flex; align-items: center; justify-content: space-between; gap: .4em; }
    .fnr-arrow { width: 2em; height: 2em; border-radius: .6em; background: #fff; box-shadow: 0 .06em .2em rgba(16, 24, 40, .16); display: grid; place-items: center; color: #8a8f98; font-size: .85em; }
    .fnr-select { display: inline-flex; align-items: center; gap: .9em; border: .08em solid #e2e5ea; border-radius: 99em; padding: .42em .95em; font-size: .86em; color: #333b4d; background: #fff; box-shadow: 0 .06em .15em rgba(16, 24, 40, .06); }
    .fnr-select i { font-size: .8em; }
    .fnr-select.is-bold { font-weight: 700; }
    .fnr-months { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: .9em; text-align: center; }
    .fnr-months span { display: flex; flex-direction: column; gap: .15em; padding: .3em 0; border-radius: .9em; }
    .fnr-months small { font-size: .74em; color: #8a8f98; }
    .fnr-months b { font-size: 1.12em; font-weight: 700; color: #333b4d; }
    .fnr-months .sel { animation: fnaSel .45s var(--fna-ease) both; animation-delay: 1380ms; }
    .fnr-months .sel b { animation: fnaSelTxt .3s both; animation-delay: 1380ms; }

    .fnr-task { width: 26em; height: 4.9em; border: .06em solid #eceef1; padding: 0 1em; display: flex; align-items: center; gap: .8em; }
    .fnr-task > b { flex: 1; font-size: 1.08em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
    .fnr-type { flex: 0 0 2.9em; width: 2.9em; height: 2.9em; border-radius: 50%; border: .1em solid #e2e5ea; display: grid; place-items: center; color: #14181f; }
    .fnr-type i { font-size: 1.15em; }
    .fnr-xbtn { flex: 0 0 2.6em; width: 2.6em; height: 2.6em; border-radius: 50%; border: .13em solid #d5d8dd; display: grid; place-items: center; color: #9aa0a6; }
    .fnr-xbtn i { font-size: .85em; }
    .fnr-check { flex: 0 0 2.6em; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; border: .13em solid #d5d8dd; background: #fff; animation: fnaCheck .55s ease-out both; animation-delay: 1660ms; }
    .fnr-check svg { width: 1.25em; height: 1.25em; fill: none; stroke: #9aa0a6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: fnaTick .3s ease-out both; animation-delay: 1900ms; }
    .fnr-acts { display: flex; flex-direction: column; gap: .35em; color: #6b7280; font-size: 1.05em; }

    .fnr-card { width: 13em; height: 10em; border: .06em solid #eceef1; padding: 2.05em .85em .8em; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15em; }
    .fnr-card.is-tall { height: 11.5em; }
    .fnr-card > b { font-size: 1.08em; font-weight: 800; margin-top: .25em; }
    .fnr-card > span { font-size: .86em; }
    .fnr-card > .fnr-sub { color: #6b7280; }
    .fnr-ico { width: 2.3em; height: 2.3em; border-radius: 50%; border: .19em solid #e9ebee; display: grid; place-items: center; color: #14181f; }
    .fnr-ico i { font-size: 1.05em; }
    .fnr-badge { position: absolute; top: .55em; inset-inline-start: .55em; background: #dcdde1; color: #14181f; border-radius: 99em; font-size: .72em; font-weight: 700; padding: .25em .8em; max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fnr-menu { position: absolute; top: .55em; inset-inline-end: .55em; width: 1.55em; height: 1.55em; border-radius: 50%; background: #ebecef; display: grid; place-items: center; color: #14181f; }
    .fnr-menu i { font-size: .8em; }
    .fnr-prog { display: flex; align-items: center; gap: .5em; width: 100%; margin-top: auto; }
    .fnr-prog em { font-style: normal; font-weight: 800; color: var(--fna-p); font-size: .9em; }
    .fnr-prog i { flex: 1; height: .45em; border-radius: 1em; background: #e5e7eb; overflow: hidden; display: block; }
    .fnr-prog u { display: block; height: 100%; width: var(--w, 19%); background: var(--fna-p); border-radius: 1em; animation: fnaBar .9s ease-out both; animation-delay: 1240ms; }
    .fnr-stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: auto; }
    .fnr-stages::before { content: ""; position: absolute; top: .52em; inset-inline-start: 12.5%; width: 75%; height: .2em; background: #e5e7eb; border-radius: 1em; }
    .fnr-stages::after { content: ""; position: absolute; top: .52em; inset-inline-start: 12.5%; width: 50%; height: .2em; background: var(--fna-p); border-radius: 1em; animation: fnaConn .4s ease-out both; animation-delay: 1520ms; }
    .fnr-stages i { position: relative; z-index: 1; font-style: normal; font-size: .72em; color: #6b7280; display: flex; flex-direction: column; align-items: center; gap: .35em; }
    .fnr-stages u { width: 1.75em; height: 1.75em; border-radius: 50%; background: #e1e3e7; border: .25em solid #fff; box-shadow: 0 0 0 .08em #e1e3e7; }
    .fnr-stages .on u { background: var(--fna-p); box-shadow: 0 0 0 .08em var(--fna-p); }
    .fnr-stages .s3 { animation: fnaStageTxt .2s both; animation-delay: 1700ms; }
    .fnr-stages .s3 u { animation: fnaStage .6s ease-out both; animation-delay: 1700ms; }

    /* a larger form on a tall screen: about half way between the base size and the whole column
       טופס גדול יותר במסך גבוה: בערך באמצע בין הגודל הבסיסי לבין כל רוחב הטור */
    @media (min-height: 800px) { .fna-form { zoom: 1.12; } }
    @media (min-width: 1500px) and (min-height: 860px) { .fna-form { zoom: 1.28; } }
    @media (min-width: 1800px) and (min-height: 1000px) { .fna-form { zoom: 1.42; } }
}

@keyframes fnaLine { from { background-size: 0% 4px; } to { background-size: 100% 4px; } }
@keyframes fnaDrop { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes fnaPop { from { opacity: 0; transform: translateY(40px) scale(.96) rotate(calc(var(--r, 0deg) + 2deg)); } to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); } }
@keyframes fnaRing { from { --fna-pct: 0; } to { --fna-pct: 23; } }
@keyframes fnaRingN { from { --fna-pcti: 0; } to { --fna-pcti: 23; } }
@keyframes fnaSel { from { background: transparent; transform: scale(.9); } to { background: var(--fnr-sel, #e4e4e6); transform: scale(1); } }
@keyframes fnaSelTxt { to { color: var(--fna-p); } }
@keyframes fnaBar { from { width: 0; } to { width: var(--w, 19%); } }
@keyframes fnaConn { from { width: 25%; } to { width: 50%; } }
@keyframes fnaStageTxt { to { color: var(--fna-p); font-weight: 700; } }
@keyframes fnaStage { 0% { background: var(--fnr-dot, #e1e3e7); box-shadow: 0 0 0 .08em var(--fnr-dot, #e1e3e7); } 40% { background: var(--fna-p); box-shadow: 0 0 0 .7em rgba(var(--fna-prgb), .22); } 100% { background: var(--fna-p); box-shadow: 0 0 0 .3em rgba(var(--fna-prgb), .26); } }
@keyframes fnaCheck { 0% { background: var(--fnr-surface, #fff); border-color: var(--fnr-line, #d5d8dd); transform: scale(1); } 45% { background: var(--fna-p); border-color: var(--fna-p); transform: scale(1.12); } 100% { background: var(--fna-p); border-color: var(--fna-p); transform: scale(1); box-shadow: 0 .3em .8em rgba(var(--fna-prgb), .3); } }
@keyframes fnaTick { from { stroke: #fff; stroke-dashoffset: 24; } to { stroke: #fff; stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .fna *, .fna *::before, .fna *::after { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- dark mode / מצב כהה ----------
   עברית: אותם דפים במצב הכהה של האפליקציה (html[data-bs-theme="dark"], נקבע ב-fociro-dark.js). הצבעים – משתני --fn-dk-* מ-fociro-dark.css
     (נטען ב-_Layout וב-_BizLayout3): הדף שחור, הכרטיסים, השדות והכפתורים המשניים אפורים, הטקסט בהיר. זוהר רק בצבע הראשי (הכפתור הראשי
     והכרטיס של השדה שבפוקוס). הפאנל הכחול במחשב נשאר בצבע המותג, מעט עמוק יותר, והכרטיסיות שעליו אפורות כהות.
   English: the same pages in the app's dark mode (html[data-bs-theme="dark"], set by fociro-dark.js). The colors – the --fn-dk-* variables
     from fociro-dark.css (loaded in _Layout and _BizLayout3): the page black, the cards, fields and secondary buttons gray, the text light.
     A glow only in the primary (the primary button and the card of the focused field). The blue panel on a computer keeps the brand color,
     a little deeper, and the cards on it are dark gray. */
html[data-bs-theme="dark"] :is(.fna, .fna-modal, .fna-status, .fna-page) {
    /* הצבע הראשי כטקסט (קישורים) – גוון בהיר שלו, שנקרא על השחור והאפור / the primary as text (links) – a light tone of it, readable on the black and the gray */
    --fna-ink: color-mix(in srgb, var(--fna-p) 58%, #ffffff);
    color: var(--fn-dk-text);
}
html[data-bs-theme="dark"] body:has(.fna),
html[data-bs-theme="dark"] .fna-modal .modal-content,
html[data-bs-theme="dark"] .fna-page { background: var(--fn-dk-page); }
html[data-bs-theme="dark"] .fna-modal .modal-content { box-shadow: none; }

/* הכותרת והלוגו (אותיות לבנות אחרי ה-F, כמו בסרגל הצד) / the title and the logo (white letters after the F, as in the side bar) */
/* הלוגו: שתי תמונות (בהירה וכהה) ו-CSS מציג אחת לפי המצב – לא content:url, שבספארי בטלפון מצייר מלבן שחור עד שהמסך מתרענן (בקשת סהר)
   The logo: two images (light and dark) and CSS shows one by the mode – not content:url, which Safari on a phone paints as a black box until the
   screen repaints (Sahar's request) */
.fna-word-dark { display: none; }
html[data-bs-theme="dark"] .fna-word-light { display: none; }
html[data-bs-theme="dark"] .fna-word-dark { display: block; }
html[data-bs-theme="dark"] .fna-hero h1 { color: var(--fn-dk-strong); }
html[data-bs-theme="dark"] :is(.fna-hero p, .fna-step-caption, .fna-group, .fna-hint, .fna-foot, .fna-legal, .fna-lang, .fna-or) { color: var(--fn-dk-muted); }
html[data-bs-theme="dark"] .fna-lang a.is-current { color: var(--fn-dk-strong); }
html[data-bs-theme="dark"] :is(.fna-link, .fna-link:hover) { color: var(--fna-ink); }

/* הכרטיסים והשדות; שדה שהדפדפן מילא לבד נשאר בצבע הכרטיס / the cards and the fields; an autofilled field stays in the card color */
html[data-bs-theme="dark"] .fna-card { background: var(--fn-dk-surface); box-shadow: none; --fn-autofill-bg: var(--fn-dk-surface); }
html[data-bs-theme="dark"] .fna-card:focus-within { box-shadow: var(--fn-glow-focus); }
html[data-bs-theme="dark"] .fna-row + .fna-row::before,
html[data-bs-theme="dark"] .fna-or::before,
html[data-bs-theme="dark"] .fna-or::after { background: var(--fn-dk-border); }
html[data-bs-theme="dark"] :is(.fna-ico, .fna-chevron, .fna-row.pass-wrap .show-pass.eye, .fna-field > label) { color: var(--fn-dk-muted); }
html[data-bs-theme="dark"] .fna-row:focus-within .fna-ico { color: var(--fna-ink); }
html[data-bs-theme="dark"] :is(.fna-field .form-control, .fna-field .form-select) { color: var(--fn-dk-strong); }
html[data-bs-theme="dark"] .fna-field .form-control::placeholder { color: #8e8e93; }
html[data-bs-theme="dark"] .fna-field .form-select option { background: var(--fn-dk-surface); color: var(--fn-dk-strong); }

/* "השאר אותי מחובר", תנאי השימוש ושלבי ההרשמה / "keep me signed in", the terms and the sign-up steps */
html[data-bs-theme="dark"] .fna-remember { color: var(--fn-dk-text); }
html[data-bs-theme="dark"] .fna-switch { background: var(--fn-dk-bubble); }
html[data-bs-theme="dark"] .fna-terms { color: var(--fn-dk-text); }
html[data-bs-theme="dark"] .fna-terms .form-check-input:not(:checked) { background-color: var(--fn-dk-surface); border-color: #545458; }
html[data-bs-theme="dark"] .fna-steps span:not(.is-on) { background: var(--fn-dk-bubble); }

/* הכפתורים: הראשי עם הילה בצבע הראשי; המשניים, "המשך עם" ו"חזרה" – משטח אפור. Apple – לבן עם אותיות שחורות, כמקובל על רקע כהה
   The buttons: the primary with a halo in the primary color; the secondary ones, "continue with" and "back" – a gray surface. Apple – white
   with black letters, as usual on a dark background */
html[data-bs-theme="dark"] :is(.fna-primary, a.fna-primary) { box-shadow: var(--fn-glow-fill); }
html[data-bs-theme="dark"] :is(.fna-secondary, a.fna-secondary, .fna-social, .fna-back) { background: var(--fn-dk-surface); border-color: var(--fn-dk-bubble); color: var(--fn-dk-strong); }
html[data-bs-theme="dark"] .fna-back { box-shadow: none; }
html[data-bs-theme="dark"] .fna-social.fna-apple { background: #ffffff; border-color: #ffffff; color: #0b0b0c; }
html[data-bs-theme="dark"] .fna-social.fna-samsung { background: #1428a0; border-color: #1428a0; color: #ffffff; }
html[data-bs-theme="dark"] .fna-toast { background: var(--fn-dk-raised); color: var(--fn-dk-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }

/* מסכי אימות המייל / the e-mail verification screens */
html[data-bs-theme="dark"] .fna-illu:not(.is-ok) { background: var(--fn-dk-surface); color: var(--fna-ink); }
html[data-bs-theme="dark"] .fna-status p { color: var(--fn-dk-muted); }
html[data-bs-theme="dark"] .fna-status p b { color: var(--fn-dk-strong); }
html[data-bs-theme="dark"] .fna-status-sent { background: color-mix(in srgb, var(--fna-p) 20%, var(--fn-dk-surface)); color: var(--fna-ink); }

/* הפאנל הכחול במחשב: צבע המותג מעט עמוק יותר, והכרטיסיות שעליו אפורות כהות (המשתנים --fnr-* משמשים גם את האנימציות)
   The blue panel on a computer: the brand color a little deeper, and the cards on it dark gray (the --fnr-* variables also feed the animations) */
@media (min-width: 992px) {
    html[data-bs-theme="dark"] .fna-brand-in {
        background: radial-gradient(900px 520px at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(0, 0, 0, .3) 0%, transparent 60%), color-mix(in srgb, var(--fna-p) 80%, #000000);
        --fnr-surface: var(--fn-dk-surface);
        --fnr-line: var(--fn-dk-bubble);
        --fnr-sel: var(--fn-dk-bubble);
        --fnr-dot: var(--fn-dk-bubble);
    }
    html[data-bs-theme="dark"] .fnr-in { background: var(--fn-dk-surface); color: var(--fn-dk-text); box-shadow: 0 1.5em 3em -.75em rgba(0, 0, 0, .6); }
    html[data-bs-theme="dark"] :is(.fnr-in b, .fnr-months b) { color: var(--fn-dk-strong); }
    html[data-bs-theme="dark"] :is(.fnr-task, .fnr-card) { border-color: var(--fn-dk-border); }
    html[data-bs-theme="dark"] .fnr-sum-text u { color: var(--fna-ink); }
    html[data-bs-theme="dark"] .fnr-ring { background: conic-gradient(var(--fna-p) calc(var(--fna-pct) * 1%), var(--fn-dk-bubble) 0); }
    html[data-bs-theme="dark"] .fnr-ring b { background: var(--fn-dk-surface); }
    html[data-bs-theme="dark"] .fnr-arrow { background: var(--fn-dk-raised); box-shadow: none; color: var(--fn-dk-muted); }
    html[data-bs-theme="dark"] .fnr-select { background: var(--fn-dk-raised); border-color: var(--fn-dk-bubble); color: var(--fn-dk-text); box-shadow: none; }
    html[data-bs-theme="dark"] :is(.fnr-months small, .fnr-acts, .fnr-card > .fnr-sub, .fnr-stages i) { color: var(--fn-dk-muted); }
    html[data-bs-theme="dark"] :is(.fnr-type, .fnr-ico) { border-color: var(--fn-dk-bubble); color: var(--fn-dk-strong); }
    html[data-bs-theme="dark"] .fnr-xbtn { border-color: var(--fn-dk-bubble); color: var(--fn-dk-muted); }
    html[data-bs-theme="dark"] .fnr-check { background: var(--fn-dk-surface); border-color: var(--fn-dk-bubble); }
    html[data-bs-theme="dark"] .fnr-badge { background: var(--fn-dk-bubble); color: var(--fn-dk-strong); }
    html[data-bs-theme="dark"] .fnr-menu { background: var(--fn-dk-raised); color: var(--fn-dk-strong); }
    html[data-bs-theme="dark"] .fnr-prog i,
    html[data-bs-theme="dark"] .fnr-stages::before { background: var(--fn-dk-bubble); }
    html[data-bs-theme="dark"] .fnr-prog em { color: var(--fna-ink); }
    html[data-bs-theme="dark"] .fnr-stages u { background: var(--fn-dk-bubble); border-color: var(--fn-dk-surface); box-shadow: 0 0 0 .08em var(--fn-dk-bubble); }
    html[data-bs-theme="dark"] .fnr-stages .on u { background: var(--fna-p); box-shadow: 0 0 0 .08em var(--fna-p); }
}
