/* GENERAL & TYPOGRAPHY */
body.mh-landing-body { margin: 0; padding: 0; font-family: 'Heebo', sans-serif; direction: rtl; background-color: #fff; color: #333; overflow-x: hidden; }
* { box-sizing: border-box; }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HERO SECTION UPGRADE --- */
.mh-hero-bg {
    padding: 160px 0 100px; /* ריווח גדול יותר מלמעלה בגלל ההדר */
    /* שילוב של תמונה עם מסכה לבנה למראה נקי ושקוף */
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 248, 255, 0.9) 100%),
        url('https://v2.hakel.club/wp-content/uploads/2025/11/הדר-כנפים.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* אפקט פרלקס עדין */
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    width: 100%;
}

.hero-text { 
    max-width: 800px;
    background: rgba(255, 255, 255, 0.6); /* זכוכית */
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-title { 
    font-size: 64px; 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 25px; 
    color: #1a1a1a;
    letter-spacing: -2px;
}

.hero-subtitle { 
    font-size: 22px; 
    color: #555; 
    margin-bottom: 45px; 
    line-height: 1.6; 
    font-weight: 400;
}

/* BUTTONS */
.btn-cta-primary { 
    background: linear-gradient(90deg, #007aff 0%, #0056b3 100%);
    color: #fff; 
    padding: 18px 40px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 20px; 
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3); 
    border: none; 
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-primary:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4); 
}

.btn-cta-secondary { 
    color: #333; 
    padding: 18px 30px; 
    font-weight: 600; 
    font-size: 18px; 
    margin-right: 15px;
    border-bottom: 2px solid transparent;
}
.btn-cta-secondary:hover { 
    color: #007aff; 
    border-bottom-color: #007aff;
}

/* TRUST BADGES */
.trust-badges { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 40px; 
    color: #666; 
    font-size: 14px; 
    font-weight: 500; 
}
.trust-badges span { display: flex; align-items: center; gap: 8px; }
.verified-icon { color: #25D366; }
.flash-icon { color: #FFD700; }

/* STATS */
.stats-section { background: #1a1a1a; color: #fff; padding: 60px 0; margin-top: -50px; position: relative; z-index: 10; border-radius: 0; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-item h3 { font-size: 48px; font-weight: 900; margin: 0; color: #007aff; }
.stat-item p { margin: 10px 0 0; font-size: 16px; opacity: 0.8; }

/* FEATURES */
.features-section { padding: 120px 0; background: #fff; }
.section-title { text-align: center; font-size: 42px; font-weight: 800; margin-bottom: 80px; color: #111; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.feature-card { padding: 50px 30px; border-radius: 20px; background: #fff; border: 1px solid #f0f0f0; transition: 0.3s; text-align: center; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); border-color: transparent; }

/* Icons */
.icon-box { width: 80px; height: 80px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.icon-box .material-icons { font-size: 40px; color: #fff; }
.icon-box.blue { background: linear-gradient(135deg, #007aff, #00c6ff); box-shadow: 0 10px 20px rgba(0, 122, 255, 0.2); }
.icon-box.green { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }
.icon-box.purple { background: linear-gradient(135deg, #9c27b0, #e040fb); box-shadow: 0 10px 20px rgba(156, 39, 176, 0.2); }

/* --- Global Modal Overlay (תקף לכל המודלים) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(17, 27, 33, 0.75); /* רקע כהה מודרני */
    backdrop-filter: blur(5px); /* אפקט טשטוש יוקרתי */
    z-index: 9999;
    display: none; /* JS will change this to flex */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* --- Login Card Pro Styles --- */
.login-card-pro {
    background: #ffffff;
    width: 100%;
    max-width: 420px; /* רוחב אידיאלי לדסקטופ */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 40px 30px;
    text-align: center;
    direction: rtl;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .login-card-pro {
    transform: translateY(0);
}

/* כפתור סגירה */
.close-modal {
    position: absolute;
    top: 15px;
    left: 15px; /* צד שמאל כי אנחנו ב-RTL */
    background: transparent;
    border: none;
    font-size: 24px;
    color: #8696a0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.close-modal:hover {
    color: #111b21;
}

/* --- Header Section --- */
.login-pro-header {
    margin-bottom: 30px;
}

.login-icon-circle {
    width: 64px;
    height: 64px;
    background: #e8f5e9; /* ירוק בהיר מאוד */
    color: #008069; /* ירוק וואטסאפ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.login-icon-circle .material-icons {
    font-size: 32px;
}

.login-pro-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111b21;
    margin: 0 0 8px 0;
}

.login-pro-header p {
    font-size: 15px;
    color: #54656f;
    margin: 0;
}

/* --- Form Styles --- */
.login-pro-form {
    text-align: right;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111b21;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e9edef;
    border-radius: 8px;
    background-color: #fcfdfd;
    transition: all 0.2s;
    box-sizing: border-box; /* חשוב מאוד */
    font-family: 'Heebo', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #008069;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 128, 105, 0.1);
}

/* --- Submit Button --- */
.btn-submit-login-pro {
    width: 100%;
    background-color: #008069;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 50px; /* עיגול מלא כמו אפליקציה */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit-login-pro:hover {
    background-color: #006d59;
}

.btn-submit-login-pro:active {
    transform: scale(0.98);
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end; /* במובייל המודל עולה מלמטה */
    }

    .login-card-pro {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0; /* פינות עגולות רק למעלה */
        padding: 30px 20px 50px 20px; /* יותר רווח למטה */
        margin: 0;
        transform: translateY(100%); /* אנימציה מלמטה */
    }
    
    .login-icon-circle {
        width: 56px;
        height: 56px;
    }
    
    .login-pro-header h2 {
        font-size: 22px;
    }
}

/* --- תיקון סדר שכבות (Z-Index Fix) --- */
.modal-overlay {
    /* חייב להיות גבוה יותר מההדר (שהוא 99999) */
    z-index: 100000 !important; 
}

/* --- תיקון אנימציה חלקה --- */
/* שלב 1: המודל קיים אך שקוף לגמרי */
.modal-overlay.visible {
    display: flex !important;
    opacity: 0;
}
/* שלב 2: המודל נהיה אטום והאנימציה רצה */
.modal-overlay.active {
    opacity: 1;
}

/* --- תיקונים ספציפיים למובייל --- */
@media screen and (max-width: 768px) {
    .login-card-pro {
        /* מונע מהמודל להידבק ללמעלה במסכים נמוכים */
        max-height: 85vh; 
        
        /* מאפשר גלילה בתוך המודל אם הוא גבוה מדי או כשהמקלדת פתוחה */
        overflow-y: auto; 
        
        /* עיצוב פינות נקי יותר */
        border-radius: 20px 20px 0 0;
        padding-bottom: 20px; 
    }
    
    /* מוודא שכפתור הסגירה תמיד נגיש */
    .close-modal {
        top: 10px;
        left: 10px;
        z-index: 100001;
        background: rgba(255,255,255,0.9); /* רקע לבן חצי שקוף למקרה שעולה על טקסט */
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}