/*!
Theme Name: oribsn
Author: Ori Ben-Simon
Author URI: oribsn.dev
Description: Omrim Toda - אומרים תודה
Version: 2.1.0
Text Domain: oribsn
*/

@font-face {
  font-family: 'simona';
  src: url('assets/fonts/SimonaPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'simona';
  src: url('assets/fonts/SimonaPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* === RESET === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { outline: none !important; box-sizing: border-box; -ms-overflow-style: none; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }


/* ==========================================================================
   הגדרות בסיס ומשתנים
   ========================================================================== */
:root {
    --c-primary: #104A67;       /* סגול כהה */
    --c-secondary: #0B6491;
    --c-bg-top: #F9F4F6;        /* צבע הרקע העליון */
    --c-bg-panel: #C2E0EE;      /* צבע רקע פאנל תחתון */
    --c-input-border: #104A6766;  /* גבול אינפוט */
    --c-placeholder: #104A67B3;   /* פלייס-הולדר */
    --font-main: 'simona', sans-serif;
    --font-heading: henri, sans-serif;

}

html, body {
    /* המאפיין הזה אומר לדפדפן (בעיקר ספארי) לא לטפל במחוות מגע כמו זום או פאנינג (החלקה לצדדים) */
    touch-action: pan-y; /* מאפשר רק גלילה למעלה ולמטה */
}

body {
    margin: 0; padding: 0;
    font-family: var(--font-main);
    direction: rtl;
    color: var(--c-primary);
}

/* ========================================= */
/* Global Lottie Container */
/* ========================================= */
.lottie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

/* הגדרת גודל ברירת מחדל ללואודרים אם לא הוגדר אחרת */
.lottie-loader {
    width: 100px;
    height: 100px;
}

/* === הסתרת אלמנטים גלובליים כברירת מחדל === */
#loading-overlay, 
#privacy-popup {
    display: none;
}

.Henri { font-family: var(--font-heading) !important; }

.app-main-container {
    width: 100%; max-width: 480px; margin: 0 auto;
    min-height: 100vh; display: flex; flex-direction: column;
}

.app-screen { display: none; flex-direction: column; width: 100%; min-height: 100vh; }
.app-screen.active { display: flex; }

/* === הדר (תפריט מימין, לוגו משמאל) === */
.app-header {
    display: flex;
    justify-content: space-between; /* מרווח ביניהם */
    align-items: center;
    padding: 12px 24px 8px;
    border-bottom: 1px solid #104A67;
}

.header-menu-btn { background: none; border: none; padding: 0; cursor: pointer; }
.header-logo img { height: 52px; width: auto; } /* לוגו הוגדל */

/* === איור וכותרות === */
.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 94px 24px 24px; }
.hero-img { height: 176px; margin-bottom: 8px; } /* פרח הוגדל */
.main-title { font-size: 40px; font-weight: 700; color: var(--c-primary); margin: 0 0 8px 0; }
.sub-title { font-size: 16px; color: var(--c-primary); margin: 0; font-weight: 400; }

/* === טאבים (עם פינות מעוקלות כלפי חוץ) === *//* === טאבים (נייד/מייל) === */
/* === טאבים (נייד/מייל) === */
.login-tabs { display: flex; justify-content: center; padding: 0 24px; margin-bottom: -1px; position: relative; z-index: 2; gap: 0; }
.login-tab-btn { background: transparent; border: none; font-family: inherit; font-size: 16px; font-weight: 400; color: var(--c-primary); height: 46px; padding: 0 36px; margin: 0 -6px; cursor: pointer; opacity: 0.6; transition: opacity 0.3s; }
.login-tab-btn.active { opacity: 1; font-weight: 700; background-color: transparent; background-image: url('assets/img/wall_blue_n.png'); background-size: 100% 100%; background-repeat: no-repeat; background-position: center bottom; }

/* === אינפוט עם אייקון ב-CSS === */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 20px; 
    border: 1px solid var(--c-input-border);
    border-radius: 20px;
    font-size: 20px;
    color: var(--c-primary);
    background-color: transparent;
    box-sizing: border-box;
    font-family: inherit;
}

/* המחלקה החדשה לאייקון הטלפון רק ב-CSS */
.input-phone-icon {
    /* טוען את קובץ ה-SVG מהתיקייה וממקם אותו מימין (16px) ובאמצע הגובה */
    background-image: url('assets/img/icon-phone.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 20px auto; /* גודל האייקון */
    
    /* דוחף את הטקסט שמאלה כדי שלא יעלה על האייקון */
    padding-left: 48px !important; 
}

.input-wrapper input::placeholder {
    color: var(--c-placeholder);
}

/* === כפתור (העתק מדויק מהפיגמה) === */
.btn-submit {
    display: flex;
    width: 100%;
    height: 60px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: 
        /* אם יש לך את תמונת ה-noise, שים את הנתיב שלה כאן במקום url('noise.png'): */
        /* url('noise.png') lightgray 0% 0% / 50px 50px repeat, */
        radial-gradient(107.08% 85.59% at 86.3% 87.5%, rgba(0, 0, 0, 0.23) 0%, rgba(0, 0, 0, 0.00) 86.18%), 
        radial-gradient(83.94% 83.94% at 26.39% 20.83%, rgba(255, 255, 255, 0.41) 0%, rgba(255, 255, 255, 0.00) 76.6%, rgba(255, 255, 255, 0.00) 100%), 
        linear-gradient(0deg, #104A67 0%, #104A67 100%), 
        #104A67;
    color: #FFFFFF;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 32px;
    font-family: inherit;
}

/* תנאי שימוש */
.terms-area { text-align: center; margin-top: 20px; padding-bottom: 0; }
.terms-text { font-size: 14px; color: var(--c-primary); margin: 0; }
.btn-link { background: none; border: none; padding: 0; color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; font-family: inherit; font-size: 14px; cursor: pointer; }

/* === הגדרות רקע דינמי ומעטפת המסכים === */
.app-main-container {
    position: relative; /* חשוב כדי שהרקע והמסכים ישבו בתוכו נכון */
}

.app-fixed-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0; /* יושב הכי מאחורה */
    pointer-events: none; /* מוודא שאי אפשר ללחוץ על הרקע בטעות */
}

.app-viewport {
    position: relative;
    z-index: 1; /* יושב מעל הרקע */
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* === פאנל תחתון (היכן שנמצאים השדות והכפתור) === */
.login-panels {
    background-color: var(--c-bg-panel);
    flex: 1; /* לוקח את כל המקום שנשאר למטה */
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    border-radius: 0; /* עיגול רק של הפינות העליונות */
    position: relative;
    z-index: 1;
}

/* מסתיר את פאנל המייל כברירת מחדל עד שה-JS יופעל */
#panel-mail {
    display: none;
}

/* === פוטר נקודות (Footer Dots) === */
.app-footer-dots {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100px; /* גובה שמתאים לפרופורציות של ה-SVG */
    background-size: 100% auto;
    background-position: bottom center;
    background-repeat: no-repeat;
    pointer-events: none; /* מונע חסימת לחיצות על אלמנטים שמתחת */
    z-index: 9; /* יושב מעל הרקע הכללי אבל מתחת לפאנלים (z-index: 10) */
}
/* אייקון המעטפה לאינפוט של המייל */
.input-mail-icon {
    background-image: url('assets/img/icon-mail.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 20px auto;
    padding-left: 48px !important; 
}



/* === מסך קוד OTP === *//* === עיצוב מסך OTP === */
.otp-panel { flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 74px; }
.otp-panel .main-title { text-align: center; padding: 0 24px; width: 100%; margin-bottom: 20px;}
.otp-subtitle { text-align: center; padding: 0 54px; margin-bottom: 30px; direction: rtl; line-height: 1.5; width: 100%; box-sizing: border-box; }
.otp-subtitle span[dir="ltr"] { font-weight: 700; display: inline-block; }
.otp-lock-icon { margin-bottom: 22px; text-align: center; width: 100%; }
.otp-lock-icon img { height: 126px; } 
.otp-wall-top { width: 100%; height: 21.5px; background-repeat: repeat-x; background-size: auto 100%; background-position: 0 bottom; margin-bottom: -1px; position: relative; z-index: 5; } 
.otp-inner-panel { background-color: var(--c-bg-panel); width: 100vw; max-width: 480px; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 38px 39px; border-radius: 0; position: relative; z-index: 10; }

/* === שדות הקוד (OTP) - תיקון פריסה ועיצוב === */
.code-input-wrapper { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: nowrap; /* מכריח אותם להישאר בשורה אחת */
    gap: 13px; 
    justify-content: center; 
    width: 100%; 
    margin-bottom: 24px; 
    direction: ltr; 
}

.otp-digit { 
    flex: 1; 
    min-width: 0; /* מונע באג שבו האינפוט דוחף את שאר השדות החוצה */
    width: 100%; 
    max-width: 60px; /* רוחב אופטימלי שלא יחרוג מהמסך */
    height: 60px; 
    border-radius: 12px; 
    border: 1px solid var(--c-input-border); 
    text-align: center; 
    font-size: 36px; 
    font-weight: 700; 
    color: var(--c-primary); 
    background-color: transparent !important; /* מכריח שקיפות */
    box-sizing: border-box; 
    padding: 0; 
    margin: 0; 
    appearance: none; /* מנקה את עיצוב ברירת המחדל של הדפדפן */
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.otp-digit::placeholder { 
    color: rgba(16, 74, 103, 0.40);
    opacity: 0.3;
}

.otp-digit:focus { 
    border-color: var(--c-primary); 
    background-color: rgba(255, 255, 255, 0.5) !important; /* חצי שקוף בהיר בפוקוס */
}

.otp-digit.filled { 
    border-color: var(--c-primary); 
    background-color: transparent !important; 
}

/* === עיצוב מצב שגיאה (אחיד) === */

/* הודעת השגיאה למטה */
.error-text { 
    color: #e91e63; /* הצבע הבהיר והמדויק */
    font-size: 13px; 
    font-weight: 400; /* משקל פונט נמוך יותר (רגיל במקום מודגש) */
    margin-top: 5px; 
    display: block; 
    height: 0; 
    transition: opacity 0.2s; 
}

/* המסגרת והטקסט המוקלד בתוך השדה */
.error-active { 
    border-color: #E74C3C !important; 
    color: #E74C3C !important; 
}
.error-active + .error-text {
   height: 16px;
}

/* הפלייס-הולדר (טקסט הרקע בשדה) */
.error-active::placeholder { 
    color: rgba(231, 76, 60, 0.8) !important; /* אותו צבע בדיוק ב-80% שקיפות */
}

/* פילטר מעודכן לאייקונים (SVG) כדי שייצרו בדיוק את הצבע #E74C3C */
.error-active.input-phone-icon, 
.error-active.input-mail-icon { 
    filter: invert(41%) sepia(54%) saturate(3506%) hue-rotate(338deg) brightness(97%) contrast(92%); 
}

/* אנימציית הרעידה (נשארת ללא שינוי) */
@keyframes errorShake { 
    0%, 100% { transform: translateX(0); } 
    20%, 60% { transform: translateX(-6px); } 
    40%, 80% { transform: translateX(6px); } 
}
.error-shake { animation: errorShake 0.4s ease-in-out; }

.timer-area {
    font-size: 18px;
    line-height: 2;
    border-radius: 10px;
    background: rgba(16, 74, 103, 0.10);
    padding: 0 13px;
}

.otp-resend-area {
    margin-top: 5px;
}

.otp-resend-area p {
    margin-top: 15px;
    white-space: nowrap;
}

/* === מסך 5: טעינה (רקע כחול כהה) === */
#screen-loading { 
    background-color: var(--c-primary); 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; 
    border-radius: 0 !important;
}
#screen-loading .loading-content {
  width: 100vw !important;
}
body.is-loading-auth .app-footer-dots { display: none !important; }

/* === מסך 6: בחירת מוסדות (כרטיסייה צפה) === */
.screen-floating-actions { 
    width: 100%; padding: 20px 24px; display: flex; justify-content: flex-end; /* X לשמאל ב-RTL */
    box-sizing: border-box; position: relative; z-index: 10;
}

.schools-white-card { 
    background-color: #FFFFFF; border-radius: 35px 35px 0 0; width: 100%; 
    padding-top: 24px; position: relative; z-index: 5; display: flex; flex-direction: column; 
    border-radius: 40px 40px 0 0;
     background: #FFF;
     box-shadow: 0 -9px 36.1px 0 rgba(141, 74, 113, 0.19);
}

.card-top-nav { width: 100%; padding: 0 32px; box-sizing: border-box; margin-bottom: 12px; }
.progress-steps { display: flex; gap: 10px; width: 100%; justify-content: center; margin-bottom: 16px; }
.step { height: 4px; flex: 1; background-color: rgba(16, 74, 103, 0.1); border-radius: 4px; }
.step.active { background-color: var(--c-primary); }

.step-info { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.step-title { font-size: 16px; font-weight: 600; }
.btn-help-icon { background: none; border: none; padding: 0; cursor: pointer; display: flex; }
.btn-help-icon img { width: 22px; height: 22px; }

.schools-top-area { text-align: center; padding: 0 24px 20px; background-color: #FFFFFF; }
.schools-hero-img { height: 163px; margin-bottom: 0; }
.schools-subtitle { font-size: 16px; line-height: 1.4; color: var(--c-primary); }

.schools-wall { background-color: #FFFFFF; margin-top: -1px; }

/* פאנל רשימה */
.schools-inner-panel { 
    background-color: var(--c-bg-panel); flex: 1; width: 100%; display: flex; 
    flex-direction: column; padding: 24px 24px 200px; z-index: 10; position: relative; overflow: hidden; 
}
/* === אפקט הילה לשדות החיפוש === */
.search-wrapper { 
    position: relative; 
    margin-bottom: 24px; 
    width: 100%; 
    z-index: 1; 
}

.search-wrapper::before { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 60px; 
    border-radius: 20px; 
    background: #FFF; 
    box-shadow: 0 0 20px 4px #FFF; /* האפקט החדש */
    z-index: -1; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-wrapper.focus::before {
    opacity: 1;
}

#school-search, #staff-search { 
    position: relative; z-index: 2; width: 100%; height: 60px; border-radius: 20px; 
    border: 1px solid rgba(16, 74, 103, 0.2); background: transparent; padding: 0 20px 0 48px; 
    font-size: 18px; font-family: inherit; color: var(--c-primary);
    background-image: url('assets/img/icon-glass.svg'); background-repeat: no-repeat; background-position: 20px center; background-size: 20px auto;
}
#school-search::placeholder, #staff-search::placeholder {
    color: var(--c-placeholder);
}

.school-item { 
    appearance: none; -webkit-appearance: none; width: 100%; background: transparent; border: none; 
    border-bottom: 1px solid var(--c-secondary); padding: 16px 0; font-family: inherit; 
    font-size: 18px; font-weight: 700; color: var(--c-primary); display: flex; 
    align-items: center; gap: 16px; 
}
.school-icon { width: 35px; height: 35px; object-fit: contain; }
.school-name { flex: 1; text-align: right; }
.school-letter {font-weight: 700;}

/* פוטר "לא מוצאים" קבוע למטה */
.schools-footer-link { text-align: center; padding-top: 16px; padding-bottom: 35px; font-size: 16px; flex-shrink: 0; margin-top: 10px; }

.btn-close-icon {
    padding: 0;
    border: none;
    -webkit-appearance: none;
    background: none;
}
.school-group {
    margin-bottom: 35px;
}
/* הסתרת הפוטר במסכים נבחרים (טעינה, מוסדות וכו') */
body.hide-footer .app-footer-dots {
    display: none !important;
}

/* === מצב לאחר בחירת מוסד לימודים (State: Selected) === */

/* משנה את הרקע של החלק העליון (מאחורי הכרטיסייה) לכחול בהיר */
#screen-institution.school-selected {
    background-color: #C3E4F4 !important;
}

/* הופך את הטקסט בתיבת החיפוש למודגש */
#screen-institution.school-selected #school-search {
    font-weight: 700;
}

/* מסתיר את רשימת בתי הספר המלאה */
#screen-institution.school-selected .schools-list-container {
    display: none;
}

#screen-institution .main-title {font-size: 35px;}

/* === מסך 7: בחירת אנשי צוות === */
/* כפתור חזרה (חץ) מבוסס תמונת רקע */
.btn-back-icon-arrow { 
    background-color: transparent;
    background-image: url('assets/img/icon-arrow.svg'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none; 
    cursor: pointer; 
    width: 24px; 
    height: 24px; 
    padding: 0; 
    display: block; 
}
.staff-tabs { width: 100%; padding: 0 10px; gap: 0; justify-content: center; margin-top: 10px; }
.staff-tab-btn { padding: 0 25px; font-size: 16px; height: 44px; white-space: nowrap; }
.staff-inner-panel { padding-top: 30px; }
.staff-list-container { flex: 1; overflow-y: auto; overflow-x: hidden; width: 100%; padding-right: 5px; }
.staff-group { margin-bottom: 30px; width: 100%; }
.staff-group-letter { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.staff-group-letter .letter { font-weight: 700; font-size: 16px; }
.staff-group-letter .dashed-line { flex: 1; height: 1px; border-bottom: 1px dashed var(--c-primary); opacity: 0.5; }
.staff-item { appearance: none; -webkit-appearance: none; width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--c-secondary); padding: 16px 20px; font-family: inherit; color: inherit; display: flex; align-items: center; gap: 16px; cursor: pointer; text-align: right; }
.staff-item:last-child { border-bottom: none; }
.staff-icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.staff-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.staff-name { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.staff-role { font-size: 16px; font-weight: 400; opacity: 0.8; }

#screen-staff .main-title {font-size: 35px;}
#screen-staff .schools-hero-img { height: 110px; width: 184px; object-fit: cover; }

/* === מצב "נבחר" (Selected) מתוקן לאיש צוות === */

/* מוודאים שהפריט יכול להחזיק שכבת רקע פנימית */
.staff-item {
    position: relative;
    z-index: 1;
}

/* ה"גלולה" הכחולה וה-V נוצרים כשכבה נפרדת מאחורי התוכן */
.staff-item.selected::before {
    content: '';
    position: absolute;
    top: 6px;      /* יוצר את המרווח מהקו המפריד העליון */
    bottom: 6px;   /* יוצר את המרווח מהקו המפריד התחתון */
    left: 0;
    right: 0;
    background-color: var(--c-primary);
    border-radius: 20px;
    
    /* תמונת ה-V ממוקמת על הרקע הזה */
    background-image: url('assets/img/check_light_blue.svg');
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 16px auto;
    
    z-index: -1; /* שומר את הרקע מאחורי הטקסט ותמונת הפרופיל */
}

/* דוחפים את הטקסט שמאלה כדי שלא יעלה על ה-V - הקווים (border) נשארים טבעיים! */
.staff-item.selected {
    padding-left: 50px;
}

/* שינוי צבעי הטקסט בפריט הנבחר */
.staff-item.selected .staff-name, 
.staff-item.selected .staff-role {
    color: var(--c-bg-panel);
}

/* === פאנל דביק (Sticky Bottom) למסך בחירת צוות === */

.staff-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* שינוי 1: דוחף את הפאנל למטה מחוץ למסך כברירת מחדל */
    transform: translate(-50%, 100%); 
    width: 100%;
    max-width: 480px;
    height: 190px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    /* שינוי 2: מוסיף את אנימציית ההחלקה */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* המחלקה שמופעלת מה-JS ומקפיצה את הפאנל למקומו */
.staff-sticky-bottom.visible {
    transform: translate(-50%, 0);
}

/* שכבת הרקע עם הבלור (נשאר ללא שינוי!) */
.staff-sticky-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.59);
    filter: blur(12.2px);
    backdrop-filter: blur(6.25px);
    z-index: -1; 
}

/* התוכן של הפאנל הצף (נשאר ללא שינוי!) */
.staff-sticky-content {
    padding: 0 24px 35px 24px; 
    position: relative;
    z-index: 2;
    text-align: center;
}

/* עיצוב הפוטר המשוכפל בתוך הפאנל הצף (נשאר ללא שינוי!) */
.sticky-not-found {
    margin-top: 20px;
    font-size: 14px;
    color: var(--c-primary);
}

/* עיצוב המספר שמרחף ליד הטקסט בכפתור (נשאר ללא שינוי!) */
.staff-selected-count {
    font-size: 14px;
    position: relative;
    top: -6px; 
}

/* --- החוקים החדשים למניעת הקפיצה (העלמה חזותית בלבד) --- */

#staff-regular-footer {
    transition: opacity 0.3s ease;
    opacity: 1; /* מצב רגיל - גלוי */
}


/* כשבוחרים איש צוות, הפוטר הרגיל נעלם ויזואלית אבל נשאר לתפוס גובה */
/*
#screen-staff.has-selection #staff-regular-footer {
    opacity: 0;
    pointer-events: none;
}


#screen-staff .schools-top-area {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#screen-staff.has-selection .schools-top-area {
    opacity: 0;
    pointer-events: none;
}
*/


/* === מסך 8: כתיבת ברכות === */
.write-inner-panel { background-color: #ffffff; padding-top: 20px; }
.write-cards-container { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-bottom: 50px; }

/* כרטיסיית איש צוות במצב סגור (ממתין) */
.write-card { 
    background-color: var(--c-bg-panel); border-radius: 30px; padding: 16px 20px; 
    display: flex; flex-direction: column; transition: all 0.4s ease; overflow: hidden;
}
.write-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.write-card-info { flex: 1; text-align: right; }
.write-card .staff-name { color: var(--c-primary); }
.write-card .staff-role { color: var(--c-primary); opacity: 0.8; }

/* כרטיסייה פתוחה (אקטיבית) */
.write-card.active { 
   /* הוספת טקסטורת הנקודות */
    background-image: url('assets/img/stickers-2.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto; /* מוודא שהטקסטורה תופסת את כל רוחב הכרטיס למטה */
    border: 1px solid rgba(255,255,255,0.3); padding-bottom: 50px; }
.write-card-body { display: none; margin-top: 20px; flex-direction: column; animation: fadeIn 0.4s ease; }
.write-card.active .write-card-body { display: flex; }


/* === התנהגות FAQ ואנימציות למסך הברכות === */

/* הפיכת אזור הכותרת ללחיץ (כמו כפתור) */
.write-card-header {
    cursor: pointer;
    user-select: none; /* מונע בחירת טקסט בטעות בלחיצה כפולה */
}

/* הגדרת גובה מקסימלי התחלתי לאנימציה חלקה */
.write-card {
    max-height: 1500px; 
}

/* המחלקה שמוסיפים כשהכרטיס נשלח - מעלימה ומכווצת אותו באלגנטיות */
.write-card.removing {
    opacity: 0 !important;
    transform: scale(0.9);
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    overflow: hidden;
    pointer-events: none;
}

/* ========================================================
   אנימציות מסך הברכות - מגירה (Drawer), החלקה ומצבי שליחה
   ======================================================== */

/* כרטיסיית איש הצוות (אפקט סגירה חלק והחלקה) */
.write-card {
    transition: max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease, opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* אפקט המגירה הנפתחת (Drawer) על התוכן */
.write-card-body { 
    display: flex; 
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.4s ease-in-out;
}

.write-card.active .write-card-body { 
    max-height: 800px; /* מספיק גדול כדי להכיל את התוכן */
    opacity: 1;
    margin-top: 20px;
}

/* --- מצבי שליחה והצלחה --- */

/* המעטפת של כפתור השליחה והטקסט תחתיו */
.send-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* מיישר את הכפתור שמאלה במצב רגיל (סוף ה-RTL) */
    transition: all 0.4s ease;
}

/* כשהכרטיס במצב שליחה או הצלחה, המעטפת תופסת את כל הרוחב וממרכזת את התוכן */
.write-card.is-sending .send-action-wrapper,
.write-card.is-success .send-action-wrapper {
    align-items: center;
    width: 100%;
}

.send-status-text {
    display: none;
    margin-top: 15px;
    font-size: 22px;
    color: var(--c-primary);
    text-align: center;
    font-weight: 700;
    animation: fadeIn 0.4s ease;
}

/* כשלוחצים שליחה - מעלימים את השדות וכפתור ההסרה */
.write-card.is-sending .message-fieldset,
.write-card.is-success .message-fieldset,
.write-card.is-sending .btn-remove-staff,
.write-card.is-success .btn-remove-staff,
.write-card.is-sending .action-icons,
.write-card.is-success .action-icons {
    display: none !important;
}

/* ממרכזים את כפתור השליחה לאמצע הכרטיסייה */
.write-card.is-sending .card-footer,
.write-card.is-success .card-footer {
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.write-card.is-sending .btn-send-single,
.write-card.is-success .btn-send-single {
    width: 150px;
    transition: width 0.3s ease;
    cursor: default;
}

/* האייקון הקטן בתוך הכפתור (ספינר מסתובב) */
.btn-spinner svg {
    transform-origin: center;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* החלקה שמאלה כשהסתיים */
.write-card.slide-out-left {
    transform: translateX(-120%);
    opacity: 0;
}

/* --- עדכון הטוסט העליון (Full Width + Dark Green) --- */

.write-inner-panel {
    padding-top: 0 !important; /* מבטל את הפדינג כדי שהטוסט ישב דבוק למעלה */
}

.write-toast {
    position: relative; 
    z-index: 10;
    background-color: #556455; /* ירוק זית כהה לפי העיצוב */
    border-radius: 0 !important; 
    padding: 15px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: white; 
    margin: 0 -24px 24px -24px; /* מותח אותו לכל רוחב המסך ומבטל פדינג צדדי של האב */
    width: calc(100% + 48px);
}

.write-toast::before {
    display: none; /* מסיר את ההילה שהייתה */
}

.toast-text { font-size: 16px; line-height: 1.3; font-weight: 400; text-align: right; }
.toast-numbers { direction: ltr; display: flex; align-items: baseline; color: #A4CFA4; }
.toast-current { font-size: 45px; font-weight: 700; font-family: var(--font-heading); }
.toast-total { font-size: 22px; font-weight: 400; opacity: 0.8; margin-left: 2px; }




/* עיצוב שדות קלט (Fieldset) *//* === עיצוב שדות קלט (Fieldset) === */
.message-fieldset { 
    border: 1px solid var(--c-primary); 
    border-radius: 15px; 
    padding: 10px 20px; 
    margin: 0 0 20px 0; 
    position: relative; 
    z-index: 1; 
    background: transparent; /* ללא רקע אטום בברירת מחדל */
    text-align: center; /* עוזר למרכז את ה-Legend בחלק מהדפדפנים */
}

/* אפקט הרקע הלבן המטושטש (Blur) ספציפית לתיבה העליונה */
.message-fieldset.msg-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 15px;
    background: #FFF;
    filter: blur(10.5px);
    z-index: -1; /* יושב מאחורי המסגרת והטקסט */
}

/* הלג'נד (הכותרת שעל המסגרת) */
.message-fieldset legend { 
   position: relative;
   z-index: 2;
    padding: 0 10px; 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--c-primary); 
    background: transparent; /* ללא רקע כחול - הבורדר יישבר סביבו טבעית */
    margin: 0 auto; /* ממורכז לאמצע */
}

/* אזור הטקסט */
.textarea-wrap { position: relative; width: 100%; text-align: right; padding-bottom: 40px; }
.message-textarea { 
    width: 100%; 
    height: 120px; /* גובה התחלתי קטן ואלגנטי יותר */
    min-height: 120px; /* מונע מהתיבה לקטון מעבר לזה בטעות */
    background: transparent; border: none; resize: none; 
    font-size: 20px; color: var(--c-primary); line-height: 1.4; padding-bottom: 20px;
    font-family: var(--font-heading), sans-serif; /* פונט Henri */
    overflow: hidden; /* קריטי כדי למנוע סקרולבר בזמן שהתיבה משנה גודל */
    /* --- הפתרון לבאג קפיצת הסמן באייפון --- */
     direction: rtl !important;
     text-align: right !important;
     -webkit-rtl-ordering: logical !important;
}
.message-textarea::placeholder { color: rgba(16, 74, 103, 0.5); }
.textarea-fade { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 40px; 
    background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF); 
    pointer-events: none; border-radius: 0 0 16px 16px; z-index: 2;
    opacity: 0;
}
.message-fieldset.focus .textarea-fade {
    opacity: 1;
}

/* אינפוט שולח קצר */
.sender-box { text-align: right; } /* מחזיר את הטקסט לימין אחרי הירכתי הלג'נד */
.sender-input { 
    width: 100%; background: transparent; border: none; font-size: 20px; color: inherit; 
    font-family: var(--font-heading), sans-serif; /* פונט Henri */
    /* שתי השורות האלו חובה: */
     direction: rtl;
     text-align: right;
}
.sender-input::placeholder {color: var(--c-placeholder);}
/* כפתורי פעולות (מיקרופון משמאל, AI מימין) */
.action-icons { 
    position: absolute; bottom: 12px; left: 12px; right: 12px; /* נמתח מקצה לקצה */
    display: flex; justify-content: space-between; /* דוחף אחד לימין ואחד לשמאל */
    z-index: 5; pointer-events: none; /* מאפשר לחיצה על הטקסט שבאמצע */
}
.btn-action-icon { 
    pointer-events: auto; /* מחזיר את יכולת הלחיצה לאייקונים עצמם */
    background: none; border: none; cursor: pointer; padding: 0; transition: transform 0.2s; 
}
.btn-action-icon:hover { transform: scale(1.1); }
.btn-action-icon img { width: 24px; height: 24px; }

/* תחתית הכרטיס (שליחה והסרה) */
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.btn-remove-staff { font-size: 14px;
    color: var(--c-primary);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    font-family: inherit;
    text-align: right; }
.btn-send-single { width: 191px; height: 50px; margin: 0; font-size: 18px; } /* משתמש בסטייל כפתור ראשי אך מוקטן */

/* === טוסט ההצלחה (כולל אפקט ההילה/Glow) === */

.toast-text { font-size: 16px; line-height: 1.3; font-weight: 400; text-align: right; }
.toast-numbers { direction: ltr; display: flex; align-items: baseline; color: #B1DFB1;}
.toast-current { font-size: 48px; font-weight: 700; font-family: var(--font-heading); }
.toast-total { font-size: 20px; font-weight: 400; opacity: 0.8; }

/* === אנימציית Skeleton ל-AI === */
.skeleton-box { 
    display: none; 
    flex-direction: column; 
    gap: 12px; 
    width: 100%; 
    height: 120px; 
    padding-top: 5px; 
}

.skeleton-line { 
    height: 20px; 
    position: relative; 
    overflow: hidden; 
    
    /* העיצוב הצבעוני והחדש מפיגמה */
    border-radius: 10px;
    opacity: 0.3;
    background: linear-gradient(90deg, #FFA7D0 31.9%, #A6CFF0 97.59%), #D9D9D9;
}

/* אורכים שונים לפסים כדי לדמות טקסט */
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 60%; }

/* אפקט הברק שרץ על הפסים */
.skeleton-line::after {
    content: ""; 
    position: absolute; 
    top: 0; left: -100%; width: 50%; height: 100%;
    /* חיזקתי פה את הלבן ל-0.8 כדי שיבלוט מתחת ל-opacity של 0.3 */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer { 
    100% { left: 200%; } 
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

#screen-write .main-title {font-size: 35px;}
#screen-write .schools-subtitle {padding: 0 10px;}
.message-textarea::placeholder { color: rgba(16, 74, 103, 0.5); }

/* === אפקט הילה לשדות ההתחברות (מסך 1) === *//* === אפקט הילה לשדות ההתחברות (מסך 1) === */
.input-wrapper {
    position: relative;
    z-index: 1;
}

/* ההילה (שונתה ל-box-shadow כדי לעקוף את הבאג של האייפון) */
.input-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 60px;
    border-radius: 20px; /* תוקן ל-20 כדי להתאים בדיוק לתיבה */
    background: #FFF;
    box-shadow: 0 0 20px 4px #FFF; /* האפקט החדש והרך */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper.focus::before {
    opacity: 1;
}

/* רקע לבן מטושטש *קבוע* לתיבת ההודעה הגדולה *//* רקע לבן מטושטש *קבוע* לתיבת ההודעה הגדולה */
.message-fieldset.msg-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 15px;
    background: #FFF;
    box-shadow: 0 0 20px 4px #FFF;
    z-index: -1;
    opacity: 0; /* תמיד פועל */
}

/* רקע לבן מטושטש שמופיע *רק בפוקוס* לתיבת מי השולח */
.message-fieldset.sender-box::before {
    content: "";
     position: absolute;
     top: -5px;
     left: 0;
     width: 100%;
     height: calc(100% + 5px);
     border-radius: 15px;
     background: #FFF;
     box-shadow: 0 0 20px 4px #FFF;
     z-index: -1;
     opacity: 0;
     transition: opacity 0.3s ease;
}

/* הפעלת ההילה לתיבת מי השולח כשנכנסים אליה */
.message-fieldset.msg-box.focus::before,
.message-fieldset.sender-box.focus::before {
    opacity: 1; 
}


/* === פופאפ התנתקות וכללי === */
.popup-wrap {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999; display: flex; align-items: center; justify-content: center;
}

.popup-backdrop-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(16, 74, 103, 0.85); /* הכחול הכהה של האתר עם שקיפות */
}

.styled-popup {
    position: relative; z-index: 2;
    background: #FFFFFF;
    border-radius: 30px; /* פינות מעוגלות */
    width: 90%; max-width: 360px;
    padding: 50px 24px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* עיצוב כפתור ה-X דרך CSS */
.btn-popup-close {
    position: absolute;
    top: 15px; 
    right: 15px; /* ממוקם בצד ימין כמו בדוגמה */
    width: 40px; 
    height: 40px;
    padding: 0;
    background-color: transparent;
    background-image: url('assets/img/icon-close.svg'); /* טעינת ה-SVG */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px; /* גודל ה-X בתוך העיגול */
    border: none;
    border-radius: 50%; /* עיגול מושלם */
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.btn-popup-close:active {
    transform: scale(0.9);
}

/* --- עדכון לפופאפ הקיים --- */
.popup-backdrop-dark {
    /* ... הגדרות קודמות ... */
    transition: opacity 0.3s ease; /* הוספת מעבר חלק לרקע */
}

/* אנימציית יציאה חדשה */
@keyframes popOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

/* מצב סגירה המופעל מה-JS */
.popup-wrap.closing .styled-popup {
    animation: popOut 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1);
}

.popup-wrap.closing .popup-backdrop-dark {
    opacity: 0;
}


/* === מעברון (Transition Overlay) === *//* === מעברון (Transition Overlay) === */
.app-transition-overlay {
    position: fixed; /* התיקון הקריטי: fixed במקום absolute */
    top: 100%; 
    left: 0; 
    width: 100%; 
    height: 100%; /* תופס תמיד 100% מגובה המסך הנוכחי */
    background-color: var(--c-primary);
    z-index: 99999; /* הועלה כדי להבטיח שהוא מכסה הכל כולל פאנלים דביקים */
    border-radius: 40px 40px 0 0;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.app-transition-overlay.active {
    transform: translateY(-100%); /* עולה בדיוק 100% למעלה ומכסה את המסך */
}

/* === מסך סיום (Success Screen) === */
#screen-success {
    background-color: var(--c-primary);
    color: #FFFFFF;
}

.white-x {
    position: absolute;
    top: 24px;
    left: 24px; /* מיקום בצד שמאל למעלה (בממשק RTL) */
    z-index: 10;
    opacity: 0.8;
}

.success-content-wrap {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    width: 100%; padding: 80px 24px 30px; flex: 1;
}

.success-hands-img {
    height: 245px; margin-bottom: 0;
}

.success-title {
    font-size: 40px; line-height: 1.1; margin-bottom: 15px; color: #FFFFFF !important; font-weight: 400;
}

.success-subtitle {
    font-size: 16px; opacity: 0.9; margin-bottom: 50px;
}

.success-buttons {
    width: 100%; display: flex; flex-direction: column; gap: 15px; margin-bottom: auto;
}

.btn-submit-outline-white {
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    color: #FFFFFF;
    height: 60px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

.btn-submit-gradient-blue {
    background: linear-gradient(180deg, #4DB5FF 0%, #1574B3 100%);
    border: none;
    border-radius: 20px;
    color: #FFFFFF;
    height: 60px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

.btn-share-text {
    background: none; border: none; padding: 0; color: #FFFFFF; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: inherit;
    margin-top: 40px;
    flex-direction: row-reverse;
}


/* ==========================================
   חסימת מצב לנדסקייפ במובייל (אוניברסלי)
   ========================================== */
.landscape-blocker {
    display: none;
}

@media screen and (max-width: 950px) and (orientation: landscape) {
    
    .landscape-blocker {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: var(--c-primary);
        color: #ffffff;
        z-index: 9999999; /* מעל הכל */
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 24px;
    }

    .landscape-blocker-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        max-width: 500px;
        margin: 0 auto;
    }

    .landscape-blocker h2 {
        font-size: 36px;
        margin: 0;
        color: #A6CFF0; /* התכלת של העיצוב */
        line-height: 1.2;
    }

    .landscape-blocker p {
        font-size: 19px;
        margin: 0;
        line-height: 1.5;
        opacity: 0.95;
    }

    /* הסתרת התוכן הראשי בשתי האפליקציות למניעת גלילה ולחיצות ברקע */
    #staff-feed-root,
    #app-root, #lp-root {
        display: none !important;
    }
}
/* ==========================================================================
   הכנות למובייל - הסתרת אלמנטי הדסקטופ החדשים כברירת מחדל
   ========================================================================== */
.desktop-el-wrapper,
.desktop-bg-text,
.desktop-header-exit {
    display: none;
}


/* ==========================================================
   מסך פתיחה (Splash Screen Overlay) - גלובלי (Mobile First)
   ========================================================== */
#splash-screen-overlay { 
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--c-primary); 
    z-index: 999999;
    display: flex;
    align-items: center; 
    justify-content: center; 
    transition: opacity 0.4s ease, visibility 0.4s ease; /* משאירים פייד רק להעלמה של כל ה-overlay בסוף */
}

.loader-slide { 
    position: absolute; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    opacity: 0; 
    transform: none; /* ביטול ההרמה מלמטה למניעת קפיצות */
    transition: none !important; /* ביטול מוחלט של האנימציה בין השקופיות */
    width: 100%; 
    padding: 0 20px; 
    pointer-events: none; 
}

.loader-slide.active { 
    opacity: 1; 
    transform: none; 
}

.loader-flower { height: 160px; margin-bottom: 20px; }
.loader-text { font-size: 30px; line-height: 1.25; color: #A6CFF0; margin: 0; }
.loader-text > span {color: #ffffff;}

/* התאמת פלקס פנימית לקונטיינרים של הלוטי */
.lottie-splash-anim {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* =========================================================
   UNIFIED APP HEADER & MOBILE MENU (Pixel Perfect)
   ========================================================= */

/* --- הדר גלובלי צף --- */
.app-unified-header {
    position: absolute; 
    top: 0; left: 0; width: 100%;
    height: 85px;
    z-index: 1000;
    padding: 0 24px;
    background: transparent;
}

.app-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.app-header__logo img {
    height: 41px;
    width: auto;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- כפתור "אמרו תודה גם אתם" (לפי העיצוב החדש והתדמיתי) --- */
.app-btn-mission {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px; /* מרווח בין הלב לטקסט */
    height: 38px;
    padding: 0 16px;
    
    border-radius: 12px;
    border: none;
    
    /* הגרדיאנט המדויק מהאתר התדמיתי */
    background-image: 
        radial-gradient(107.08% 85.59% at 86.3% 87.5%, rgba(0, 0, 0, 0.23) 0%, rgba(0, 0, 0, 0.00) 86.18%),
        radial-gradient(83.94% 83.94% at 26.39% 20.83%, rgba(255, 255, 255, 0.41) 0%, rgba(255, 255, 255, 0.00) 76.6%),
        linear-gradient(0deg, #7ADEFF 0%, #7ADEFF 100%);
    
    color: var(--c-primary);
    font-family: var(--font-heading), 'Henri', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.app-btn-mission:hover {
    filter: brightness(0.95);
}

.icon-heart-fill {
    display: inline-block;
    width: 19px;
    height: 19px;
    background-color: var(--c-primary);
    -webkit-mask: url('assets/img/icon-heart.svg') center / contain no-repeat;
    mask: url('assets/img/icon-heart.svg') center / contain no-repeat;
}
.menu-version .icon-heart-fill {
  width: 24px;
  height: 24px;
}

/* --- כפתור ההמבורגר --- */
.app-hamburger {
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10001;
}

.app-hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--c-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- תפריט מובייל נשלף (Slide-in) --- */
.app-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
}

body.app-menu-open .app-mobile-menu {
    pointer-events: auto;
}

.app-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 74, 103, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.app-menu-open .app-mobile-menu__overlay {
  display: none;
    opacity: 1;
}

.app-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85vw;
    max-width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(252, 250, 250, 0.85);
    box-shadow: -14px 4px 40px 0 rgba(16, 74, 103, 0.25);
    backdrop-filter: blur(8.399999618530273px);
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.app-menu-open .app-mobile-menu__panel {
    right: 0; 
}

.app-mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0 solid var(--c-primary); /* מסגרת דקה כמו באתר התדמיתי */
    background-color: transparent;
    background-image: url('assets/img/icon-close.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
}

.app-mobile-menu__content {
    padding: 100px 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
}

.app-mobile-menu__nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 20px;
}

.app-mobile-menu__nav a {
    font-size: 22px;
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 500;
}

.app-mobile-menu__lang {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 22px;
    color: var(--c-primary);
    cursor: pointer;
}

.icon-globe-line {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--c-primary);
    -webkit-mask: url('assets/img/icon-globe.svg') center / contain no-repeat;
    mask: url('assets/img/icon-globe.svg') center / contain no-repeat;
}

/* הכפתור בתפריט נפתח */
.app-btn-mission.menu-version {
    flex-direction: row-reverse;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    height: 55px;
    border-radius: 17px;
    font-size: 21px;
}

/* התחתית עם החומה והפרח */
.app-mobile-menu__bottom {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.app-mobile-menu__flower {
    position: relative;
    width: 216px; 
    height: auto;
    z-index: 2;
    margin-bottom: 55px; /* דוחף את הפרח מעל החומה */
}
.app-mobile-menu__flower {
  display: none;
}

/* בסיס החומה (הכחול האטום) */
.app-mobile-menu__wall {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px; 
    background-color: var(--c-primary);
    z-index: 3;
}

/* שיני החומה (התמונה) - מיובאת מהאתר התדמיתי */
.app-mobile-menu__wall::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0; 
    width: 100%; 
    height: 35px;
    background-image: url('assets/img/wall-landing.png'); /* הנתיב זהה לאתר התדמיתי */
    background-repeat: repeat-x;
    background-position: 0.8rem bottom;
    background-size: auto 99%;
    transform: translateY(-99%);
}

/* הסתרת ההדר הגלובלי במסכים הפנימיים (מוסדות, צוות, ברכות והצלחה) */
body.hide-footer .app-unified-header {
    display: none !important;
}



/* =========================================================
   STAFF FEED HEADER OVERRIDES (To match Landing Site exactly)
   ========================================================= */

/* 1. עיצוב בסיסי למובייל ודסקטופ - הדר לבן ושקוף למחצה שנדבק למעלה */
body.page-template-page-staff-feed .feed-unified-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 85px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-bottom: 1px solid #144E6D !important;
    display: block !important;
    z-index: 1000;
    padding: 0 24px !important;
}

/* 2. ניהול תצוגה מובייל מול דסקטופ */
body.page-template-page-staff-feed .desktop-only {
    display: none !important;
}
body.page-template-page-staff-feed .mobile-only-flex {
    display: flex !important;
}

/* === עיצוב פופאפ עזרה (סימני שאלה) === */
.help-popup-subtitle {
    font-size: 18px;
    color: var(--c-primary);
    font-weight: 400;
    margin-bottom: 20px;
}

.help-popup-image {
    width: 100%;
    height: auto;
    display: block;
}

/* === עיצוב הטוסט הגלובלי (חיווי העתקת קישור וכו') === */
#app-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #104A67;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    z-index: 999999;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex !important; /* דורס את הסתרת הדיפולט של המערכת */
    visibility: hidden;
    white-space: nowrap;
}

#app-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* === עיצוב מצב טאב ריק (Empty State) === */
.empty-tab-state {
    text-align: center;
    padding: 30px 20px 30px;
    //animation: fadeIn 0.4s ease;
    opacity: 0.7; /* <--- התוספת החדשה */
}


/* === מודאל אודות בדף הנחיתה === */
body.about-modal-open {
    overflow: hidden;
}

body.about-modal-open .lp-modal[data-modal="about"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.about-modal-open .lp-modal[data-modal="about"] .lp-modal__panel {
    transform: translateY(0);
}

.lp-modal[data-modal="about"] .lp-modal__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}



/* ==========================================
   תיקונים לבקשת הלקוח: העלמת מפרידי אותיות וצמצום הפאנל התחתון
   ========================================== */

/* 1. העלמת האותיות עם הקו המקווקו וביטול הריווח בין הקבוצות */
.staff-group-letter {
    display: none !important;
}
.staff-group {
    margin-bottom: 0 !important;
}

/* 2. צמצום משמעותי של הפאנל התחתון (הבר הדביק של כפתור ההמשך) */
.staff-sticky-content {
    padding-bottom: 15px !important; /* מקטין את הריווח התחתון של הפאנל (במקור 35) */
}

#btn-staff-continue {
    margin-bottom: 8px !important; /* מקרב את כפתור ההמשך לטקסט שמתחתיו (במקור 32) */
}

.sticky-not-found {
    margin-top: 0 !important; /* מבטל את הריווח המיותר שמעל הלינק (במקור 20) */
}

/* 3. החזרת הקווים המפרידים בין כל אנשי הצוות (תיקון איחוד הרשימות) */
.staff-item {
    border-bottom: 1px solid var(--c-secondary) !important;
}

/* העלמת הקו המפריד רק לאיש הצוות האחרון בהחלט ברשימה כולה */
.staff-group:last-child .staff-item:last-child {
    border-bottom: none !important;
}
/* --- עדכון ריווחים: פאנל תחתון במסך בחירת צוות --- */

/* 1. הקטנת החלק הלבן/מטושטש שמעל הכפתור (במקור היה 190px) */
.staff-sticky-bottom {
    height: 145px !important; 
}

/* 2. הגדלת המרווח מהקצה התחתון של המסך */
.staff-sticky-content {
    padding-bottom: 25px !important; /* מחליף את ה-15px ששמנו קודם */
}



/* התאמת פריסה לפי גודל מסך */
@media (min-width: 769px) {
    .lp-modal[data-modal="about"] .lp-modal__main {
        flex-direction: row; /* טקסט מימין, תמונה משמאל ב-RTL */
        align-items: center;
    }
}

@media (max-width: 768px) {
    .lp-modal[data-modal="about"] .lp-modal__main {
        flex-direction: column-reverse; /* במובייל - התמונה קופצת למעלה */
    }
    .lp-modal[data-modal="about"] .about-popup-visual img {
        max-width: 180px;
        margin: 0 auto 20px;
    }
}



/* ==========================================================================
   גירסת דסקטופ (1024px ומעלה) - התאמה מלאה ומדויקת לפיגמה
   ========================================================================== */
@media (min-width: 1024px) {
    
    /* 1. הגדרות רקע ומרכוז אבסולוטי של הדף */
    body {
        background-color: #F8F3F3 !important; /* צבע אפרפר-תכלת לפי העיצוב */
        min-height: 100vh;
        position: relative;
    }
    body.page-template-page-app-php {
      overflow: hidden; 
    }

    #app-root {
        position: relative;
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* הצגת מעטפת אלמנטי הדסקטופ */
    .desktop-el-wrapper {
        display: block;
    }

    /* הסתרת אלמנטים של מובייל בלבד */
    .mobile-only, .app-header, .otp-wall-top, .screen-floating-actions, .app-footer-dots {
        display: none !important;
    }

    /* 2. הטקסטים הענקיים ברקע שגולשים מחוץ למסך */
    .desktop-bg-text {
      display: block; /* השורה שהוספנו */
        position: fixed;
        color: #175776;
        text-align: right;
        font-family: 'Henri', 'simona', sans-serif;
        font-size: 186.203px;
        font-style: normal;
        font-weight: 400;
        line-height: 150.514px;
        letter-spacing: -5.586px;
        z-index: 1;
        pointer-events: none;
        white-space: nowrap;
        opacity: 0.05; /* שומר על הבלטות העיצוב המקוריות */
    }
    
    .desktop-bg-text.giant-top-right {
        top: -140px;
        right: -280px;
    }
    
    .desktop-bg-text.giant-bottom-left {
        bottom: -60px;
        left: -430px;
    }

    /* 3. לוגו וכפתור יציאה מרחפים למעלה */
    .desktop-header-logo {
        position: fixed;
        top: 40px;
        left: 50px;
        z-index: 1000;
    }
    .desktop-header-logo img {
        height: 55px;
        width: auto;
    }

    .desktop-header-exit {
      display: block; /* השורה שהוספנו */
        position: fixed;
        top: 40px;
        right: 50px;
        background: transparent;
        border: 1px solid var(--c-primary);
        color: var(--c-primary);
        padding: 14px 25px;
        border-radius: 20px;
        font-size: 24px;
        font-weight: 700;
        font-family: var(--font-heading);
        cursor: pointer;
        z-index: 1000;
        transition: all 0.2s ease;
    }
    .desktop-header-exit:hover {
        background-color: var(--c-primary);
        color: #ffffff;
    }

    /* 4. קופסת האפליקציה המרכזית (הקונטיינר) */
    #screen-container {
        position: relative;
        z-index: 10; /* מעל הטקסטים של הרקע */
        width: 900px;
        height: 498px;
        box-sizing: border-box;
        justify-content: center;
    }

    .app-screen {
        display: none;
        width: 100%;
        height: 498px;
        min-height: unset;
        overflow: hidden;
        background-color: #104A67 !important; /* שומר על הצבע הכהה לאזור הגיבור. *חשוב: לא לשים פה רקע לבן!* */
        border: none !important;
        border-radius: 30px;
        box-shadow: 22px 30px 45.5px 0 rgba(0, 0, 0, 0.25);
    }

    /* הצגת מסך פעיל בגריד מפוצל - **הפיכת הצדדים! ימין=גיבור(כהה), שמאל=פעולה(טפסים)** */
    .app-screen.active {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "hero-side action-side"; /* ב-RTL העמודה הראשונה היא ימין */
    }

    /* 5. מסך 1: התחברות (Login Split) */
    #screen-login.active {
        grid-template-rows: 150px 1fr; /* הגבהת האזור הלבן שמעל הטאבים (מ-90px ל-150px) */
        grid-template-areas: 
            "hero-side action-tabs"
            "hero-side action-panels";
    }

    /* צד ימין - איור וכותרות (האזור הכהה) */
    #screen-login .login-hero {
        grid-area: hero-side;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px;
    }
    #screen-login .login-hero .hero-img { height: 120px; margin-bottom: 20px; }
    #screen-login .login-hero .main-title { font-size: 36px; color: #ffffff !important; margin-bottom: 10px; }
    #screen-login .login-hero .sub-title { font-size: 18px; color: #ffffff !important; }

    /* צד שמאל - אזור הטאבים (רקע לבן חלק) */
    #screen-login .login-tabs {
        grid-area: action-tabs;
        background-color: #FFFFFF !important;
        padding: 0; /* מחיקת הפדינג כדי לאפשר למרכוז לעבוד בצורה נקייה */
        display: flex;
        align-items: flex-end; /* מצמיד את הטאבים לתחתית האזור הלבן */
        justify-content: center; /* מרכוז הטאבים אופקית בדיוק באמצע האזור התכלת שמתחתיהם */
    }
    
    .login-tab-btn {
        height: 48px;
        border: none;
        margin: 0;
        padding: 0 35px; /* הרחבה קלה לטאבים */
        color: rgba(16, 74, 103, 0.4);
        font-size: 17px;
        font-weight: 500;
        cursor: pointer;
    }
    .login-tab-btn.active {
        color: var(--c-primary) !important;
        font-weight: 700;
        border-radius: 12px 12px 0 0;
    }

    /* צד שמאל - פאנל הטפסים (רקע תכלת) */
    #screen-login .login-panels {
        grid-area: action-panels;
        background-color: #C2E0EE !important;
        padding: 60px 69px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .terms-area { margin-top: auto; }

    /* 6. מסך 2: קוד אימות (OTP Split) */
    #screen-code.active { grid-template-areas: "hero-side action-side"; } /* הצדדים הפוכים גם כאן */
    #screen-code .otp-panel { display: contents !important; }
    
    #screen-code .otp-lock-icon,
    #screen-code .otp-panel .main-title,
    #screen-code .otp-panel .sub-title {
        grid-column: 1; /* צד ימין - הכהה */
        color: #ffffff !important;
        text-align: center;
        z-index: 5;
    }
    #screen-code .otp-lock-icon { grid-row: 1; margin-top: 90px; display: block !important; }
    #screen-code .otp-lock-icon img { height: 80px; }
    #screen-code .otp-panel .main-title { grid-row: 1; margin-top: 190px; font-size: 32px; display: block !important; }
    #screen-code .otp-panel .sub-title { grid-row: 1; margin-top: 250px; font-size: 15px; color: #ffffff !important; max-width: 300px; margin-right: auto; margin-left: auto; display: block !important; }

    #screen-code .otp-inner-panel {
        grid-area: action-side; /* צד שמאל - התכלת */
        background-color: #C2E0EE !important;
        padding: 50px 45px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 7. מסכים 3, 4, 5: מוסדות, אנשי צוות וכתיבה */
    .schools-white-card {
        grid-area: hero-side; /* צד ימין - האיור הכהה */
        background: var(--c-primary) !important;
        box-shadow: none !important;
        z-index: 11;
        padding: 40px !important;
        color: #ffffff !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 0 !important;
    }
    .schools-white-card .main-title { font-size: 32px; color: #ffffff !important; margin-top: 15px; }
    .schools-white-card .sub-title { font-size: 16px; color: #ffffff !important; margin-top: 5px; }
    .schools-white-card .schools-hero-img { height: 130px; display: block !important; margin: 0 auto; }

    /* התאמת הבר הלבן */
    .card-top-nav { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; padding: 0 !important; }
    .card-top-nav .step-info { color: #ffffff; font-size: 15px; justify-content: space-between; gap: 8px; }
    .card-top-nav .progress-steps .step { background: rgba(255,255,255,0.2); }
    .card-top-nav .progress-steps .step.active { background: #ffffff; }

    /* פאנל הפעילות (תכלת) - עובר שמאלה */
    .schools-inner-panel, .staff-inner-panel, .write-inner-panel {
        grid-area: action-side; /* צד שמאל */
        background-color: #C2E0EE !important;
        padding: 40px !important;
        height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .schools-list-container, .staff-list-container { max-height: 250px; overflow-y: auto; }
    #screen-staff .schools-white-card .login-tabs { position: absolute; left: -100%; }
    
    /* פאנל כפתור ההמשך הדביק של הצוות - מוצמד לחצי השמאלי בלבד! */
    .staff-sticky-bottom {
        position: absolute;
        bottom: -110px;
        left: 0;
        transform: translate(0, 100%);
        right: auto;
        width: 50%;
        height: 110px;
        border-radius: 0 0 0 30px;
        z-index: 100;
    }
    .staff-sticky-bottom.visible {
        transform: translate(0, -100%);
        bottom: -110px;
    }
    .staff-sticky-bg {
      height: 160px;
    }
    .staff-sticky-content { padding: 15px 40px; }

/* ==========================================================
       הסטיקרים (נקודות תחתונות) - הצמדה מושלמת לכרטיס
       ========================================================== */
    
    /* מסתירים את הפוטר המקורי של המובייל שיושב מחוץ לקונטיינר */
    .app-footer-dots {
        display: none !important;
    }
    
    /* מזריקים את הסטיקרים ישירות לתוך המסך הפעיל */
    .app-screen.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: -40px;
        width: 562px;
        height: 98px;
        background-image: url(assets/img/stickers.png);
        background-size: contain;
        background-position: left bottom;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 10;
        opacity: 0.8;
        border-radius: 0;
    }
    
    .app-screen.active {
      position: relative;
    }
    /* במסך ההצלחה אנחנו לא צריכים את הסטיקרים האלו (המסך כחול מלא) */
    #screen-success.active::after {
        display: none;
    }

    /* 8. מסך הצלחה (Success) */
    #screen-success.active {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #104A67 !important;
    }
    #screen-success .success-content-wrap { max-width: 550px; padding: 30px; }
    #screen-success .success-hands-img { height: 140px; margin-bottom: 15px; }
    #screen-success .success-title { font-size: 38px; }
    #screen-success .success-buttons { display: flex; flex-direction: row; gap: 15px; justify-content: center; margin-top: 25px; }
    #screen-success .btn-submit-gradient-blue, #screen-success .btn-submit-outline-white { width: auto; padding: 0 35px; margin: 0; }

    /* קונפיגורציית כפתורים שדות קלט כללית */
    
    .app-fixed-bg {
      display: none;
    }
    
    .schools-top-area {
      background-color: transparent;
    }
    .school-selected .schools-inner-panel {
      justify-content: center;
    }
    .school-selected .schools-footer-link {
      padding-bottom: 0;
    }
    .school-item {
      cursor: pointer;
    }
    #screen-staff.has-selection .schools-top-area {
      opacity: 1;
    }
    .write-inner-panel {
      background-color: #FFFFFF !important;
    }
    #screen-write::after {
      display: none;
    }
    .btn-remove-staff {
        position: relative;
        top: -10px;
    }
    
    .loader-flower { height: 140px; margin-bottom: 35px; }
    .loader-logo { height: 85px; }
    .loader-text { font-size: 36px; }
    
    
    /* ==========================================================================
       הוספת אזור לבן וחומה (Wall) בחלק העליון של צד הפעולה במסכים 2, 3, ו-4
       ========================================================================== */
    
    /* מיקום יחסי כדי שהפסים הווירטואליים יישבו נכון בתוך הפאנל */
    .otp-inner-panel,
    .schools-inner-panel,
    .staff-inner-panel {
        position: relative;
    }
    
    /* מוודא שהתוכן עצמו (שדות, חיפוש, רשימות) נשאר מעל החומה והרקע הלבן */
    .otp-inner-panel > *,
    .schools-inner-panel > *,
    .staff-inner-panel > * {
        position: relative;
        z-index: 2;
    }
    
    /* 1. החלק הלבן העליון */
    .otp-inner-panel::before,
    .schools-inner-panel::before,
    .staff-inner-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px; /* גובה האזור הלבן שמעל החומה */
        background-color: #FFFFFF;
        z-index: 0;
    }
    .staff-inner-panel::before {
      height: 98px;
    }
    
    /* 2. טקסטורת החומה המפרידה */
    .otp-inner-panel::after,
    .schools-inner-panel::after,
    .staff-inner-panel::after {
        content: "";
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        height: 30px;
        background-image: url(assets/img/wall_2_blue_n.png);
        background-size: auto 100%;
        background-position: 0.8rem center;
        background-repeat: repeat-x;
        z-index: 2;
    }
    .staff-inner-panel::after {
      display: none !important;
    }
    
    .write-inner-panel::before, .write-inner-panel::after {
      display: none;
    }
    
    /* 3. דחיפת התוכן כלפי מטה כדי שלא יעלה על הלבן והחומה */
    #screen-code .otp-inner-panel {
        padding-top: 100px !important; /* משאיר מקום לחומה ושומר על מרכוז שדות ה-OTP */
    }
    
    .schools-inner-panel,
    .staff-inner-panel {
        padding-top: 120px !important; /* דוחף את שורת החיפוש בדיוק אל מתחת לחומה כמו בפיגמה */
    }
    
    .write-inner-panel {
      padding-top: 40px !important
    }
    
    /* ==========================================================================
       הקפצת הטוסט לאזור הכהה בדסקטופ - ללא שינוי HTML (שומר על מובייל תקין)
       ========================================================================== */
    #screen-write .write-toast {
        position: fixed !important;
        bottom: calc(50vh - 249px + 40px) !important;
        left: calc(50vw + 225px) !important;
        transform: translateX(-50%) !important;
        top: unset !important;
        width: 100% !important;
        max-width: 340px;
        margin: 0 !important;
        border-radius: 20px !important;
        z-index: 99999;
    }
    
    /* ==========================================================================
       תיקון מסך הסיום: מסך מלא, כפתור יציאה לבן, הסתרת לוגו ומרכוז אנכי
       ========================================================================== */
    
    /* 1. מתיחת מסך הסיום על פני כל הדפדפן */
    #screen-success.active {
        position: fixed !important;
        top: 0; 
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        background-color: var(--c-primary) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* 2. שימוש בסלקטור :has כדי להסתיר את הלוגו והטקסטים ברקע כשהמסך פעיל */
    body:has(#screen-success.active) .desktop-header-logo,
    body:has(#screen-success.active) .desktop-bg-text {
        display: none !important;
    }
    
    /* צביעת כפתור ה"יציאה" בלבן כשהמסך מופעל */
    body:has(#screen-success.active) .desktop-header-exit {
        color: #FFFFFF !important;
        border-color: #FFFFFF !important;
        z-index: 10000 !important;
    }
    
    /* 3. העלמת כפתור ה-X של המובייל */
    #screen-success .white-x {
        display: none !important;
    }
    
    /* 4. מרכוז אנכי מושלם - ביטול המתיחה והריווחים המיותרים של המובייל */
    #screen-success .success-content-wrap {
        flex: unset !important;
        padding: 0 !important; 
        justify-content: center;
    }
    
    #screen-success .success-buttons {
        margin-bottom: 0 !important;
        flex-direction: row !important; /* מציג את הכפתורים אחד ליד השני אם יופעל הכפתור הנוסף */
        justify-content: center;
        gap: 20px;
    }
    
    /* 5. החזרת צבע הגרדיאנט המקורי לכפתור "שילחו עבור ילד נוסף" */
    #screen-success .btn-submit-gradient-blue {
        background: linear-gradient(180deg, #4DB5FF 0%, #1574B3 100%) !important;
        border: none !important;
        color: #FFFFFF !important;
        min-width: 320px;
        padding: 0 35px;
    }
    
    /* במידה ויופעל בעתיד הכפתור השני (צוות הסעה) - זה העיצוב השקוף שלו */
    #screen-success .btn-submit-outline-white {
        background: transparent !important;
        border: 1px solid #FFFFFF !important;
        color: #FFFFFF !important;
        min-width: 320px;
        padding: 0 35px;
    }
    body:has(#screen-success.active) .desktop-header-exit:hover {
      background: #FFFFFF !important;
      color: var(--c-primary) !important;
    }
    
    .write-cards-container {
        padding-top: 0; /* דוחף את הכרטיסיות מתחת לטוסט האבסולוטי בדסקטופ */
    }
    
    .app-header__actions {
      display: none;
    }
    .app-unified-header {
      position: fixed;
      top: 40px;
      left: 50px;
      width: unset;
      height: unset;
      padding: 0;
    }
    
    
    body.page-template-page-staff-feed .feed-unified-header {
        height: 100px !important;
    }
    
    body.page-template-page-staff-feed .app-header__inner {
        max-width: 1280px; 
        margin: 0 auto;
    }
    
    body.page-template-page-staff-feed .desktop-only {
        display: flex !important;
    }
    body.page-template-page-staff-feed .mobile-only-flex {
        display: none !important;
    }
    
    /* החזרת אזור הכפתורים והתפריט וסידור המרווחים */
    body.page-template-page-staff-feed .app-header__actions {
        display: flex !important; 
        gap: 30px;
        align-items: center;
    }
    
    body.page-template-page-staff-feed .app-header__nav ul {
        list-style: none;
        display: flex;
        gap: 30px;
        margin: 0;
        padding: 0;
    }
    
    body.page-template-page-staff-feed .app-header__nav a {
        color: var(--c-primary);
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        transition: opacity 0.2s;
    }
    body.page-template-page-staff-feed .app-header__nav a:hover {
        opacity: 0.7;
    }
    
    body.page-template-page-staff-feed .app-header__lang {
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--c-primary);
        font-family: inherit;
    }
    .page-template-staff-feed .app-btn-mission {
      position: absolute;
      left: 230px;
    }
}

/* ==========================================
   עיצוב כפתור מחיקת ברכה (אייקון פח)
   ========================================== */
.btn-remove-staff {
    text-decoration: none !important;
    padding: 0 !important; /* מגדיל את אזור הלחיצה מסביב לאייקון כדי שיהיה נוח במובייל */
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
}

.btn-remove-staff:hover {
    opacity: 1 !important;
    transform: scale(1.1); /* קפיצה קטנה במעבר עכבר בדסקטופ */
}

.btn-remove-staff img {
    width: 44px; /* גודל האייקון - ניתן לשנות אם הפח קטן/גדול מדי */
    height: 44px;
    object-fit: contain;
}