:root {
    /* מערכת צבעים - זהב חלוד */
    --blue: #B8860B;
    --blue-dark: #8B6508;
    --blue-light: #faf3e0;
    --gold: #B8860B;
    --gold-dark: #8B6508;
    --gold-light: #D4A93D;
    --gold-bg: #faf3e0;
    --white: #ffffff;
    --gray: #faf7f0;
    --border: #e8dcb8;
    --text: #2d1a08;
    --text-light: #6b5b3a;
    --red: #dc2626;
    --red-dark: #b91c1c;
}

.sm-wrap { direction: rtl; }

/* ============================================================
   הסתרת UM cover + photo - בכל מקום שיש בו UM
   (CSS אגרסיבי - לא תלוי ב-body class)
   ============================================================ */

/* קאבר ותמונה עגולה של UM - מסתירים בכל עמוד שבו מופיעים */
.um .um-cover,
.um-profile .um-cover,
.um-header .um-cover,
.um-header > .um-photo,
.um-header .um-profile-photo,
.um-header .um-profile-photo-overlay,
.um-profile-header .um-cover,
.um-profile-header > .um-photo,
div.um .um-cover,
div.um .um-header > .um-photo {
    display: none !important;
}

.um .um-header,
.um-profile .um-header,
div.um .um-header {
    padding: 0 !important;
    margin: 0 0 10px !important;
    background: transparent !important;
    min-height: 0 !important;
    border: none !important;
}

.um .um-header .um-profile-meta,
.um .um-header .um-name {
    display: none !important;
}

/* בצפייה בלבד - הסתר גם את הגוף של UM (wall/activity) */
body.sm-profile-page .um-profile-body,
body.sm-profile-page .um-profile-nav,
body.sm-profile-page .um-profile-nav-content,
body.sm-profile-page .um-profile-edit,
body.sm-profile-page .um-profile-meta-actions,
body.sm-profile-page .um-profile-headericon,
body.sm-profile-page .um-profile-subnav,
body.sm-profile-page .um-profile-actions,
body.sm-profile-page .um-profile-gear,
body.sm-profile-page .um-meta-actions,
body.sm-profile-page .um-profile-photo-overlay,
body.sm-profile-page .um-edit-profile,
body.sm-profile-page [class*="um-profile-edit"],
body.sm-profile-page [class*="um-edit-profile"],
body.sm-profile-page [class*="um-profile-meta"]:not(.sm-custom-profile *) {
    display: none !important;
}

body.sm-um-user-page .um-profile,
body.sm-um-user-page div.um,
body.sm-um-user-page .um {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* ============================================================
   תצוגת פרופיל מותאמת
   ============================================================ */
.sm-custom-profile {
    max-width: 960px;
    margin: 20px auto 60px;
    padding: 0 15px;
    direction: rtl;
}

/* --- Hero (תמונה ראשית) --- */
.sm-cp-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(83,121,204,0.2);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #D4A93D 0%, #8B6508 100%);
    position: relative;
}

.sm-cp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.5s;
}

.sm-cp-hero-img:hover { transform: scale(1.02); }

.sm-cp-hero-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
}

/* --- Header: שם + תגיות + פעולות --- */
.sm-cp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    padding: 26px 28px;
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(83,121,204,0.08);
    border: 1px solid var(--blue-light);
    margin-bottom: 20px;
}

.sm-cp-title-area { flex: 1; min-width: 240px; }

.sm-cp-name {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sm-cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-cp-tag {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    background: var(--blue-light);
    color: var(--blue);
}

/* --- Actions --- */
.sm-cp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* 📱 במובייל - כל כפתור בשורה */
@media (max-width: 640px) {
    .sm-cp-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .sm-cp-actions .sm-cp-btn,
    .sm-cp-actions a.sm-cp-btn,
    .sm-cp-actions button.sm-cp-btn {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    /* אייקון כפתור (לב, עריכה וכו') - מרכוז */
    .sm-cp-actions .sm-cp-btn--icon {
        width: 100% !important;
    }
}

.sm-cp-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 13px 24px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap;
    line-height: 1.2 !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

.sm-cp-btn > span { display: inline-block; }

.sm-cp-btn--primary,
a.sm-cp-btn--primary,
button.sm-cp-btn--primary {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 8px 20px rgba(184, 134, 11, 0.35),
        0 2px 6px rgba(184, 134, 11, 0.2);
}

.sm-cp-btn--primary *,
a.sm-cp-btn--primary *,
button.sm-cp-btn--primary * {
    color: #ffffff !important;
}

.sm-cp-btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sm-cp-btn--primary > * {
    position: relative;
    z-index: 2;
}

.sm-cp-btn--primary:hover,
a.sm-cp-btn--primary:hover,
button.sm-cp-btn--primary:hover {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 12px 28px rgba(184, 134, 11, 0.45),
        0 4px 8px rgba(184, 134, 11, 0.25);
}

.sm-cp-btn--secondary {
    background: var(--gold-bg) !important;
    color: var(--gold-dark) !important;
    border: 1.5px solid rgba(184, 134, 11, 0.25) !important;
}

.sm-cp-btn--secondary:hover {
    background: #f0e2b8 !important;
    color: var(--gold-dark) !important;
    border-color: #B8860B !important;
}

.sm-cp-btn--ghost {
    background: transparent !important;
    color: var(--text-light) !important;
    border: 1.5px solid var(--border) !important;
}

.sm-cp-btn--ghost:hover {
    background: var(--gold-bg) !important;
    color: var(--gold-dark) !important;
    border-color: #B8860B !important;
}

.sm-cp-btn--danger {
    background: #fff !important;
    color: var(--red) !important;
    border: 1.5px solid #ffdcd6 !important;
}

.sm-cp-btn--danger:hover {
    background: var(--red) !important;
    color: #fff !important;
    border-color: var(--red) !important;
}

.sm-cp-btn--icon {
    padding: 11px !important;
    width: 46px;
    height: 46px;
    justify-content: center;
}

/* כפתור לב בפרופיל */
.sm-cp-btn--heart {
    background: #fff !important;
    border: 1.5px solid #ffdcd6 !important;
}

.sm-cp-btn--heart svg {
    fill: transparent;
    stroke: var(--red);
    stroke-width: 2;
    transition: all 0.25s;
}

.sm-cp-btn--heart:hover {
    background: #fef5f4 !important;
    transform: scale(1.05);
}

.sm-cp-btn--heart.is-fav svg {
    fill: var(--red);
    stroke: var(--red);
    animation: sm-pop 0.35s ease;
}

/* --- Info Grid --- */
.sm-cp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sm-cp-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--blue-light);
    transition: all 0.2s;
}

.sm-cp-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83,121,204,0.1);
    border-color: #f0e2b8;
}

.sm-cp-info-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-light), #f0e2b8);
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

.sm-cp-info-content { min-width: 0; flex: 1; }

.sm-cp-info-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.sm-cp-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

/* --- Sections (על עצמי / מה אני מחפש / גלריה) --- */
.sm-cp-section {
    background: #fff;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 16px;
    border: 1px solid var(--blue-light);
    box-shadow: 0 2px 12px rgba(83,121,204,0.05);
}

.sm-cp-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-cp-section-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4e5c;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Gallery בפרופיל --- */
.sm-cp-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sm-cp-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    cursor: zoom-in;
    background: var(--gray);
}

.sm-cp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sm-cp-gallery-item:hover img { transform: scale(1.08); }

/* --- טשטוש --- */
.sm-blurred,
.sm-blurred img,
img.sm-blurred {
    filter: blur(22px) !important;
    transition: filter 0.3s;
    /* 🔒 הגנה מפני הורדה ולחיצה ימנית */
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
}

/* 🔒 גם על container - מונע save as image  */
.sm-blurred {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}

/* --- Lightbox --- */
.sm-lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.93);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
    animation: sm-lb-fade 0.25s ease;
}

@keyframes sm-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.sm-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}

.sm-lightbox-close {
    position: absolute;
    top: 20px; left: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.sm-lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sm-cp-info-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-cp-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .sm-cp-name { font-size: 26px; }
    .sm-cp-hero { border-radius: 16px; }
    .sm-cp-header { padding: 20px 22px; gap: 18px; }
    .sm-cp-section { padding: 20px 22px; }
}

@media (max-width: 480px) {
    .sm-cp-info-grid { grid-template-columns: 1fr; }
    .sm-cp-actions { width: 100%; }
    .sm-cp-btn:not(.sm-cp-btn--icon) { flex: 1; justify-content: center; }
    .sm-cp-name { font-size: 22px; }
}

@keyframes sm-pop {
    0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); }
}

/* ============================================================
   ספרייה — כרטיסי חיפוש [shiduchim_members]
   ============================================================ */
.sm-filters {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(83,121,204,0.1);
    border: 1px solid var(--border);
}

.sm-filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.sm-select {
    border: 2px solid var(--border); border-radius: 50px;
    padding: 10px 16px; font-size: 14px;
    color: var(--text); background: var(--white);
    cursor: pointer; transition: border-color 0.3s; outline: none;
}
.sm-select:focus { border-color: var(--blue); }

.sm-age-filter { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-light); }
.sm-age-input {
    border: 2px solid var(--border); border-radius: 8px;
    padding: 8px 10px; width: 60px; font-size: 14px;
    text-align: center; outline: none;
}
.sm-age-input:focus { border-color: var(--blue); }

.sm-filter-btn {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 20px rgba(184, 134, 11, 0.3), 0 2px 6px rgba(184, 134, 11, 0.2) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sm-filter-btn * { color: #ffffff !important; }
.sm-filter-btn:hover {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 28px rgba(184, 134, 11, 0.4), 0 4px 8px rgba(184, 134, 11, 0.25) !important;
}

.sm-reset-btn { color: var(--text-light); font-size: 13px; text-decoration: none; }
.sm-reset-btn:hover { color: var(--blue); }

.sm-favs-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border); border-radius: 50px;
    cursor: pointer; font-size: 14px;
    color: var(--text); background: var(--white);
    transition: all 0.25s; user-select: none;
}
.sm-favs-toggle input { display: none; }
.sm-favs-toggle:hover { border-color: var(--red); color: var(--red); }
.sm-favs-toggle.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.sm-results-count { color: var(--text-light); font-size: 14px; margin-bottom: 16px; text-align: right; }

.sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .sm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sm-grid { grid-template-columns: 1fr; } }

.sm-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.1);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.sm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.2);
}

.sm-card-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #faf3e0 0%, #f0e2b8 50%, #e8dcb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* רקע מטושטש של התמונה - נותן "עומק" יפה */
.sm-card-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--photo-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.9);
    transform: scale(1.2);
    z-index: 1;
    opacity: 0.6;
}

/* סימן טשטוש לאדמין */
.sm-blur-indicator {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(234, 179, 8, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* כפתור לב בכרטיס */
.sm-card .sm-fav-btn,
button.sm-fav-btn {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #B8860B !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    z-index: 5;
    padding: 0 !important;
}
.sm-card .sm-fav-btn:hover,
button.sm-fav-btn:hover {
    transform: scale(1.12);
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #8B6508 !important;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
}
.sm-card .sm-fav-btn svg,
button.sm-fav-btn svg {
    fill: transparent;
    stroke: #B8860B;
    stroke-width: 2.5;
    transition: all 0.25s;
    width: 22px;
    height: 22px;
}
.sm-card .sm-fav-btn.is-fav,
button.sm-fav-btn.is-fav {
    background: #fff !important;
    background-color: #fff !important;
    border-color: var(--red) !important;
}
.sm-card .sm-fav-btn.is-fav svg,
button.sm-fav-btn.is-fav svg {
    fill: var(--red);
    stroke: var(--red);
    animation: sm-pop 0.35s ease;
}
.sm-card .sm-fav-btn.is-loading,
button.sm-fav-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* כפתור דיווח בכרטיס */
.sm-card .sm-report-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(184, 134, 11, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
    z-index: 5;
    padding: 0;
    color: #B8860B;
}
.sm-card .sm-report-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.sm-photo {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    display: block;
}
.sm-card:hover .sm-photo:not(.sm-blurred) { transform: scale(1.05); }

.sm-no-photo {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0e2b8 0%, #e5c060 50%, #D4A93D 100%);
    color: rgba(255,255,255,0.9);
    position: relative;
}
.sm-no-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.sm-no-photo svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sm-card-body { padding: 16px; }
.sm-name { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sm-tag {
    background: var(--blue-light); color: var(--blue);
    border-radius: 50px; padding: 4px 10px;
    font-size: 12px; font-weight: 600;
}
.sm-about { color: var(--text-light); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

.sm-btn, a.sm-btn, .sm-card a.sm-btn {
    display: block !important;
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 12px 16px;
    min-height: 20px;
    line-height: 1.4;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 6px 18px rgba(184, 134, 11, 0.3),
        0 2px 4px rgba(184, 134, 11, 0.2);
    position: relative;
    overflow: hidden;
    border: none !important;
}
.sm-btn *, a.sm-btn * {
    color: #ffffff !important;
}
.sm-btn:hover, .sm-btn:focus, a.sm-btn:hover, a.sm-btn:visited, a.sm-btn:focus {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 10px 24px rgba(184, 134, 11, 0.4),
        0 3px 6px rgba(184, 134, 11, 0.25);
}
.sm-btn::before, a.sm-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
}

.sm-empty { text-align: center; padding: 60px; color: var(--text-light); }
.sm-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.sm-notice { text-align: center; padding: 40px; color: var(--text-light); }

/* ============================================================
   עיצוב טופס עריכת פרופיל UM (?um_action=edit)
   ============================================================ */
body.sm-editing-profile {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

body.sm-editing-profile .um,
body.sm-editing-profile div.um,
body.sm-editing-profile .um-profile {
    max-width: 780px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
}

body.sm-editing-profile .um-form {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 32px 36px !important;
    box-shadow: 0 10px 40px rgba(83,121,204,0.12) !important;
    border: 1px solid var(--blue-light) !important;
    margin-top: 20px !important;
}

body.sm-editing-profile .um-form::before {
    content: '✏️  עריכת פרופיל';
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--blue-light);
    text-align: right;
    letter-spacing: -0.3px;
}

body.sm-editing-profile .um-field {
    margin-bottom: 22px !important;
    padding: 0 !important;
}

body.sm-editing-profile .um-field-label,
body.sm-editing-profile .um-field > label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    display: block !important;
}

body.sm-editing-profile .um-field-label label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

body.sm-editing-profile .um-form input[type="text"],
body.sm-editing-profile .um-form input[type="email"],
body.sm-editing-profile .um-form input[type="tel"],
body.sm-editing-profile .um-form input[type="number"],
body.sm-editing-profile .um-form input[type="password"],
body.sm-editing-profile .um-form input[type="date"],
body.sm-editing-profile .um-form input[type="url"],
body.sm-editing-profile .um-form textarea,
body.sm-editing-profile .um-form select,
body.sm-editing-profile .um-form .um-field-area input,
body.sm-editing-profile .um-form .select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: var(--text) !important;
    background: #fff !important;
    transition: all 0.25s !important;
    outline: none !important;
    box-sizing: border-box !important;
    direction: rtl;
    min-height: 46px;
    line-height: 1.4;
}

body.sm-editing-profile .um-form input:hover,
body.sm-editing-profile .um-form textarea:hover,
body.sm-editing-profile .um-form select:hover {
    border-color: #c7d0e8 !important;
}

body.sm-editing-profile .um-form input:focus,
body.sm-editing-profile .um-form textarea:focus,
body.sm-editing-profile .um-form select:focus,
body.sm-editing-profile .um-form .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(83,121,204,0.15) !important;
}

body.sm-editing-profile .um-form textarea {
    min-height: 110px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* Select2 dropdown (ב-UM משתמשים הרבה ב-select2) */
body.sm-editing-profile .select2-selection__rendered {
    line-height: 42px !important;
    padding-right: 0 !important;
    color: var(--text) !important;
}

body.sm-editing-profile .select2-selection__arrow {
    height: 44px !important;
}

/* תיבת checkbox (טשטוש תמונה וכו') - בנייד בלבד */
@media (max-width: 768px) {
    body.sm-editing-profile .um-field-checkbox,
    body.sm-editing-profile .um-form .um-field-checkbox-option {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 12px 16px !important;
        background: var(--gray) !important;
        border-radius: 12px !important;
        cursor: pointer;
        transition: background 0.2s;
    }

    body.sm-editing-profile .um-field-checkbox:hover {
        background: var(--blue-light) !important;
    }
}

/* כפתורי שליחה/ביטול בטופס UM edit */
body.sm-editing-profile .um-button,
body.sm-editing-profile .um input[type="submit"],
body.sm-editing-profile .um-form input[type="submit"],
body.sm-editing-profile .um-form button[type="submit"],
.um-form input[type="submit"],
.um-form button[type="submit"] {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 13px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 20px rgba(184, 134, 11, 0.3) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-width: 140px;
    background-image: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
}

body.sm-editing-profile .um-button:hover,
body.sm-editing-profile .um input[type="submit"]:hover,
body.sm-editing-profile .um-form input[type="submit"]:hover,
.um-form input[type="submit"]:hover,
.um-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 28px rgba(184, 134, 11, 0.45) !important;
}

body.sm-editing-profile .um-cancel,
body.sm-editing-profile .um-form a.um-link-alt {
    background: var(--gray) !important;
    color: var(--text-light) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 13px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s !important;
    display: inline-block;
}

body.sm-editing-profile .um-cancel:hover {
    background: #e0e4ef !important;
    color: var(--text) !important;
}

/* שדה העלאת תמונה */
body.sm-editing-profile .um-single-image-upload,
body.sm-editing-profile .um-photo-upload-placeholder {
    border: 2px dashed var(--border) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    background: var(--gray) !important;
    transition: all 0.25s;
}

body.sm-editing-profile .um-single-image-upload:hover {
    border-color: var(--blue) !important;
    background: var(--blue-light) !important;
}

/* הודעת שגיאה */
body.sm-editing-profile .um-field-error,
body.sm-editing-profile .um-form .um-field-error {
    background: #fef5f4 !important;
    color: var(--red) !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    border: 1px solid #ffdcd6 !important;
}

/* תיקון datepicker */
body.sm-editing-profile .pickadate__holder {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Responsive */
@media (max-width: 600px) {
    body.sm-editing-profile .um-form {
        padding: 22px !important;
    }
    body.sm-editing-profile .um-form::before {
        font-size: 22px;
    }
}

/* ============================================================
   גלריה מתחת לתמונה הראשית (רצועה)
   ============================================================ */
.sm-cp-gallery-strip {
    margin-bottom: 20px;
}

/* ============================================================
   פופאפ צ'אט
   ============================================================ */
#sm-chat-popup {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999999 !important;
    direction: rtl;
    pointer-events: auto !important;
}

#sm-chat-popup .sm-chat-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    animation: sm-chat-fade 0.25s ease;
}

@keyframes sm-chat-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-chat-slide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#sm-chat-popup .sm-chat-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    height: 580px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: sm-chat-slide 0.3s ease;
}

#sm-chat-popup .sm-chat-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: none;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

#sm-chat-popup .sm-chat-close:hover {
    background: rgba(0,0,0,0.15);
    transform: scale(1.1);
}

#sm-chat-popup .sm-chat-content {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
}

@media (max-width: 500px) {
    #sm-chat-popup .sm-chat-box {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* ============================================================
   תיבת דואר - [shiduchim_inbox]
   ============================================================ */
.sm-inbox-container {
    height: 650px;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(83,121,204,0.15);
    border: 1px solid var(--blue-light);
    background: #fff;
}

@media (max-width: 600px) {
    .sm-inbox-container {
        height: calc(100vh - 200px);
        border-radius: 12px;
        margin: 10px auto;
    }
}

/* ============================================================
   באנר הערה לבעלים שביקש טשטוש
   ============================================================ */
.sm-blur-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-right: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 18px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}
.sm-blur-notice-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.sm-blur-notice-text {
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
.sm-blur-notice-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: #92400e;
}
.sm-blur-notice-text small {
    color: #a16207;
    font-size: 12px;
}

/* ============================================================
   Load More - הצג עוד חברים
   ============================================================ */
.sm-card-hidden {
    display: none !important;
}

.sm-load-more-wrap {
    text-align: center;
    margin: 32px auto 16px;
    padding: 16px;
}

.sm-load-more-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(83,121,204,0.25);
    min-width: 200px;
}

.sm-load-more-btn:hover {
    background: #8B6508;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83,121,204,0.35);
}

.sm-load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.sm-load-more-info {
    margin-top: 10px;
    color: var(--text-light, #6b7280);
    font-size: 13px;
}

.sm-load-more-info .sm-visible-count {
    font-weight: 700;
    color: var(--blue);
}

/* אופטימיזציית ביצועים ותמונות */
.sm-photo {
    will-change: transform;
}

.sm-card {
    contain: layout style paint;
}

/* ============================================================
   Menu Badges - מחוונים בתפריט WP
   ============================================================ */
.sm-menu-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-right: 6px;
    margin-left: 2px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    animation: sm-badge-pulse 2s ease-in-out infinite;
    color: #fff;
}

.sm-menu-badge--gold {
    background: linear-gradient(135deg, #D4A93D 0%, #B8860B 100%);
    border: 1.5px solid #fff;
}

.sm-menu-badge--red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1.5px solid #fff;
}

@keyframes sm-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ============================================================
   Tabs - עמוד מועדפים עם 2 טאבים
   ============================================================ */
.sm-favs-tabs {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 16px;
}

.sm-favs-nav {
    display: flex;
    gap: 10px;
    background: var(--gold-bg);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.sm-favs-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text-light);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s;
    background: transparent;
    text-align: center;
}

.sm-favs-tab:hover {
    background: rgba(184, 134, 11, 0.08);
    color: var(--gold-dark);
}

.sm-favs-tab.is-active {
    background: var(--white);
    color: var(--gold-dark);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.sm-favs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--gold);
    color: #fff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.sm-favs-count--hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: sm-badge-pulse 2s ease-in-out infinite;
}

@media (max-width: 520px) {
    .sm-favs-tab {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* ============================================================
   באנר פרופיל בצ'אט
   ============================================================ */
.sm-chat-profile-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px 12px 0 0;
    transition: all 0.25s;
    direction: rtl;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.sm-chat-profile-banner:hover {
    background: linear-gradient(135deg, #D4A93D 0%, #B8860B 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}
.sm-chat-profile-banner * { color: #ffffff !important; }
.sm-chat-profile-arrow {
    transition: transform 0.3s;
    display: inline-block;
}
.sm-chat-profile-banner:hover .sm-chat-profile-arrow {
    transform: translateX(-4px);
}

/* ============================================================
   ניהול תמונות משתמש (shiduchim_photos_mgmt)
   ============================================================ */
.sm-photos-mgmt {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf3e0 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.06);
    direction: rtl;
}

.sm-photos-mgmt-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-dark);
}

.sm-photos-section {
    margin-bottom: 24px;
}

.sm-photos-section:last-of-type {
    margin-bottom: 0;
}

.sm-photos-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-photos-count {
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
}

.sm-photos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.sm-photo-item {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.12);
    border: 2px solid #fff;
    background: var(--gold-bg);
}

.sm-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.sm-photo-item--pending {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.sm-photo-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(184, 134, 11, 0.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sm-photo-item-label--pending {
    background: rgba(251, 191, 36, 0.9);
    color: #78350f;
}

.sm-photo-delete {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 3;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 0;
}

.sm-photo-delete:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.sm-photo-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 130px;
    height: 130px;
    border-radius: 14px;
    border: 2px dashed #B8860B;
    background: rgba(184, 134, 11, 0.05);
    color: var(--gold-dark);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}

.sm-photo-upload-box:hover {
    background: rgba(184, 134, 11, 0.12);
    border-color: #8B6508;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.2);
}

.sm-photo-upload-box--small {
    width: 130px;
    height: 130px;
}

.sm-photo-upload-icon {
    font-size: 28px;
    line-height: 1;
}

.sm-photo-upload-text {
    font-size: 13px;
    font-weight: 700;
}

.sm-photos-empty {
    color: var(--text-light);
    font-size: 14px;
    margin: 6px 0 0;
    font-style: italic;
}

.sm-photos-info {
    margin: 18px 0 0;
    padding: 12px 16px;
    background: rgba(184, 134, 11, 0.08);
    border-right: 3px solid #B8860B;
    border-radius: 8px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
}

.sm-photos-messages {
    margin-top: 12px;
}

.sm-photos-msg {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    animation: sm-fadeIn 0.3s ease;
}

.sm-photos-msg--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.sm-photos-msg--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

@keyframes sm-fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .sm-photos-mgmt {
        padding: 20px 16px;
    }
    .sm-photo-item,
    .sm-photo-upload-box,
    .sm-photo-upload-box--small {
        width: 110px;
        height: 110px;
    }
}

/* ============================================================
   Override גלובלי - מודל דיווח + כל הכפתורים הכחולים
   ============================================================ */
/* כפתורים של תוסף הדיווחים */
.shiduchim-reports-modal button[type="submit"],
.shiduchim-reports-modal .sm-submit,
.shiduchim-reports-modal .shiduchim-submit,
.shiduchim-report-modal button[type="submit"],
.sh-report-modal button[type="submit"],
[class*="report"] button[type="submit"]:not(.sm-report-btn),
[class*="report-modal"] button,
[id*="report-modal"] button[type="submit"] {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.3) !important;
}

/* כפתור ביטול במודלים */
[class*="report"] button[type="button"]:not(.sm-report-btn):not(.sm-photo-delete):not(.sm-fav-btn),
[class*="report-modal"] .sh-cancel,
[class*="report-modal"] .sm-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1.5px solid #ddd !important;
    border-radius: 14px !important;
    padding: 12px 28px !important;
}

/* ============================================================
   הודעת "יש להתחבר" - מסך יפה עם כפתורים
   ============================================================ */
.sm-login-notice {
    max-width: 540px;
    margin: 60px auto;
    padding: 48px 32px;
    background: linear-gradient(135deg, #fdfbf5 0%, #faf3e0 100%);
    border-radius: 24px;
    border: 1px solid rgba(184, 134, 11, 0.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 20px rgba(184, 134, 11, 0.08),
        0 1px 3px rgba(184, 134, 11, 0.05);
    text-align: center;
    direction: rtl;
}

.sm-login-notice-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(184, 134, 11, 0.25));
}

.sm-login-notice-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1208;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.sm-login-notice-text {
    font-size: 16px;
    line-height: 1.6;
    color: #6b5b3a;
    margin: 0 0 32px;
    font-weight: 500;
}

.sm-login-notice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sm-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.sm-login-btn--primary {
    background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 8px 20px rgba(184, 134, 11, 0.35),
        0 2px 6px rgba(184, 134, 11, 0.2);
}

.sm-login-btn--primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 12px 28px rgba(184, 134, 11, 0.45),
        0 4px 8px rgba(184, 134, 11, 0.25);
}

.sm-login-btn--ghost {
    background: #ffffff !important;
    color: #8B6508 !important;
    border: 1.5px solid rgba(184, 134, 11, 0.3) !important;
}

.sm-login-btn--ghost:hover {
    background: #fdfbf5 !important;
    color: #6B4E08 !important;
    border-color: #B8860B !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.15);
}

@media (max-width: 520px) {
    .sm-login-notice {
        margin: 30px 16px;
        padding: 36px 20px;
    }
    .sm-login-notice-title {
        font-size: 20px;
    }
    .sm-login-notice-text {
        font-size: 14px;
    }
    .sm-login-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
    .sm-login-notice-actions {
        flex-direction: column;
        width: 100%;
    }
    .sm-login-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   📱 תיקון מובייל - מינימלי ובטוח
   (הוסר overflow-x:hidden על html/body כי חוסם תפריט נייד)
   ============================================ */
/* ============================================
   סוף
   ============================================ */

/* ============================================
   🔧 תיקון skip-link (גורם ל-scrollWidth ענק)
   ============================================ */
.skip-link.screen-reader-text {
    position: absolute !important;
    left: -9999px !important;
    right: auto !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

/* כשמשתמש קורא-מסך פוקוס עליו - מציג אותו */
.skip-link.screen-reader-text:focus {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    z-index: 99999 !important;
    background: #000 !important;
    color: #fff !important;
    padding: 10px 20px !important;
}
/* ============================================
   סוף
   ============================================ */

/* ============================================
   📱 תיקון גלישה בעמוד עריכת פרופיל - סופי
   (לפי ה-HTML שראינו: .um-3432.um עם max-width:1000px ו-padding-right:250px)
   ============================================ */
@media (max-width: 768px) {
    
    /* wrapper של UM */
    body .um-3432.um,
    body .um.um-3432,
    body [class*="um-"][class*=" um "] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Meta - ביטול padding-right:250px הבעייתי */
    body .um-3432.um .um-profile-meta,
    body .um .um-profile-meta {
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    /* תמונת פרופיל - מרכז במקום צד */
    body .um-3432.um .um-profile-photo,
    body .um .um-profile-photo {
        position: relative !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 20px !important;
        top: 0 !important;
    }
    
    body .um-3432.um .um-profile-photo a.um-profile-photo-img,
    body .um .um-profile-photo a.um-profile-photo-img {
        width: 120px !important;
        height: 120px !important;
        top: 0 !important;
    }
    
    body .um-3432.um .um-profile-photo img,
    body .um .um-profile-photo img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* body של פרופיל */
    body .um-3432.um .um-profile-body,
    body .um .um-profile-body {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* שדות טופס */
    body .um .um-field {
        width: 100% !important;
    }
}

/* ============================================
   🔧 תיקון סופי - הכרחת RTL ומניעת בריחת תוכן
   (לעמודי UM בלבד)
   ============================================ */

/* באופן גלובלי על כל האתר - ודא RTL */
html[dir="rtl"] body,
html[dir="rtl"] main,
html[dir="rtl"] header,
html[dir="rtl"] footer,
html[dir="rtl"] .page-content {
    direction: rtl !important;
    text-align: right !important;
}

/* (הוסר - היה חוסם תפריט נייד) */

/* במובייל בלבד - תיקון UM פרופיל */
@media (max-width: 768px) {
    
    /* מאלץ את כל הקונטיינרים של UM להיות בגבולות */
    .um,
    .um-profile,
    .um-form,
    .um-header,
    .um-profile-body,
    .um-profile-meta,
    .um-row,
    .um-col-1,
    .um-col-alt {
        direction: rtl !important;
        text-align: right !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        float: none !important;
        position: static !important;
    }
    
    /* Header של Elementor - לא נוגע בתפריט כדי לא לחסום המבורגר */
    /* (הקוד הישן חסם את תפריט הנייד - הוסר) */
    
    /* Footer של Elementor */
    footer.elementor,
    footer.elementor-location-footer {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* מתגבר על padding-right:250px המנחית */
    body .um-3432.um .um-profile-meta,
    body .um .um-profile-meta {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    /* תמונת פרופיל - במרכז בלי top שלילי */
    body .um-3432.um .um-profile-photo,
    body .um .um-profile-photo {
        position: relative !important;
        width: 100px !important;
        height: 100px !important;
        margin: 20px auto !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    body .um-3432.um .um-profile-photo a.um-profile-photo-img,
    body .um .um-profile-photo a.um-profile-photo-img {
        width: 100px !important;
        height: 100px !important;
        top: 0 !important;
        position: relative !important;
    }
    
    body .um-3432.um .um-profile-photo img,
    body .um .um-profile-photo img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* שדות input */
    .um .um-form-field,
    .um input,
    .um textarea,
    .um select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        direction: rtl !important;
        text-align: right !important;
    }
    
    /* כפתורים */
    .um .um-button,
    .um-col-alt .um-half {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
    
    /* ניהול תמונות שלנו */
    .sm-photos-mgmt {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
}
/* ============================================
   סוף תיקון סופי
   ============================================ */

/* ============================================
   🙈 הסתרת כפתור V הכפול בראש עמוד עריכה
   (יש כבר כפתור "עדכן פרופיל" בתחתית)
   ============================================ */
.um-profile-edit.um-profile-headericon,
.um-profile-headericon {
    display: none !important;
}
/* ============================================
   סוף
   ============================================ */

/* ============================================
   🔒 תיקון גלישה צדדית בעמוד עריכת פרופיל
   ============================================ */
@media (max-width: 768px) {
    /* רק בעמודי UM - מונע גלישה צדדית */
    body.um-page,
    body[class*="um-"] {
        overflow-x: hidden !important;
    }
    
    /* כל שדות UM - רוחב קבוע */
    body .um-form-row,
    body .um-field-area,
    body .um-field-group,
    body .um-profile-body,
    body .um-profile-nav,
    body .um-profile-nav-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* input/select/textarea - רוחב מלא במכלה */
    body .um input[type="text"],
    body .um input[type="email"],
    body .um input[type="tel"],
    body .um input[type="number"],
    body .um input[type="password"],
    body .um select,
    body .um textarea {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   🔒 תיקון סופי לגלישה צדדית - גלובלי
   (מחזיר את מה שעבד בעבר)
   ============================================ */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ============================================================
   👀 צפיות בפרופיל - חשיפה הדדית
   ============================================================ */

.sm-views-section {
    background: linear-gradient(135deg, #fff 0%, #fefbf2 100%);
    border: 1px solid var(--border, #e8dcb8);
    border-radius: 18px;
    padding: 18px 22px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.08);
    direction: rtl;
}

.sm-views-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border, #e8dcb8);
}

.sm-views-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text, #2d1a08);
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.sm-views-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.sm-views-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold, #B8860B);
    line-height: 1;
    background: var(--gold-bg, #faf3e0);
    padding: 4px 12px;
    border-radius: 50px;
    flex-shrink: 0;
}

.sm-views-label {
    color: var(--text-light, #6b5b3a);
    font-weight: 500;
}

/* ---- Toggle כפתור גלוי/מוסתר - כפיית גודל אחיד ---- */
.sm-views-toggle,
.sm-views-toggle:hover,
.sm-views-toggle:focus,
.sm-views-toggle:active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px 14px 5px 5px !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    background: var(--gold-bg, #faf3e0);
    color: var(--gold-dark, #8B6508);
    box-shadow: inset 0 0 0 1px var(--border, #e8dcb8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sm-views-toggle:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px var(--border, #e8dcb8), 0 4px 10px rgba(184, 134, 11, 0.18) !important;
}

.sm-views-toggle:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none !important;
}

.sm-views-toggle-track {
    position: relative;
    width: 30px !important;
    height: 18px !important;
    border-radius: 50px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--border, #e8dcb8);
    flex-shrink: 0;
    transition: background 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
}

.sm-views-toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold, #B8860B) 0%, var(--gold-light, #D4A93D) 100%);
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sm-views-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sm-views-toggle-on,
.sm-views-toggle-off {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-views-toggle-on svg,
.sm-views-toggle-off svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* מצב גלוי */
.sm-views-toggle.is-visible {
    background: linear-gradient(135deg, var(--gold, #B8860B) 0%, var(--gold-light, #D4A93D) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25) !important;
}

.sm-views-toggle.is-visible .sm-views-toggle-track {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.sm-views-toggle.is-visible .sm-views-toggle-thumb {
    right: 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sm-views-toggle.is-visible .sm-views-toggle-off { display: none; }
.sm-views-toggle.is-hidden .sm-views-toggle-on { display: none; }

/* גריד הצופים */
.sm-views-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 90px));
    gap: 12px;
    align-items: start;
    justify-content: flex-start;
}

.sm-viewer-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.sm-viewer-card:hover {
    background: var(--gold-bg, #faf3e0);
    transform: translateY(-2px);
}

.sm-viewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold-bg, #faf3e0);
    border: 2px solid var(--border, #e8dcb8);
    margin-bottom: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.12);
}

.sm-viewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-viewer-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold, #B8860B);
    font-weight: 700;
}

.sm-viewer-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text, #2d1a08);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-viewer-time {
    font-size: 10px;
    color: var(--text-light, #6b5b3a);
    margin-top: 2px;
}

/* מצב נעול - לפני הפעלה */
.sm-views-locked {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fefbf2 0%, var(--gold-bg, #faf3e0) 100%);
    border-radius: 12px;
    padding: 18px 20px;
}

.sm-views-locked-icon { font-size: 36px; line-height: 1; }

.sm-views-locked-text {
    flex: 1;
    min-width: 220px;
    line-height: 1.55;
    color: var(--text, #2d1a08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-views-locked-text strong { font-size: 15px; }
.sm-views-locked-text small { color: var(--text-light, #6b5b3a); font-size: 13px; }

.sm-views-optin-btn-big {
    padding: 12px 24px;
    font-size: 14px;
    background: linear-gradient(135deg, var(--gold, #B8860B) 0%, var(--gold-light, #D4A93D) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    white-space: nowrap;
}

.sm-views-optin-btn-big:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35);
}

.sm-views-empty {
    text-align: center;
    color: var(--text-light, #6b5b3a);
    padding: 24px 12px;
    margin: 0;
    background: var(--gold-bg, #faf3e0);
    border-radius: 10px;
}

@media (max-width: 480px) {
    .sm-views-section { padding: 12px 14px; }
    .sm-views-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
    .sm-viewer-avatar { width: 48px; height: 48px; }
    .sm-viewer-name { font-size: 11px; }
    .sm-viewer-time { font-size: 9px; }
    .sm-views-optin-btn-big { width: 100%; }
    .sm-views-toggle { font-size: 12px; padding: 5px 12px 5px 5px; }
    .sm-views-toggle-track { width: 32px; height: 20px; }
    .sm-views-toggle-thumb { width: 16px; height: 16px; }
    .sm-views-toggle.is-visible .sm-views-toggle-thumb { right: 14px; }
}


/* ============================================================
   🛠️ תיקון elements שחורגים מהviewport
   1. Maspik honeypots עם left: -99999px - מותחים את ה-html
   2. #elementor-device-mode עם position שגוי
   הפתרון: position: fixed (לא תורם ל-scrollWidth של document)
   ============================================================ */

.maspik-field,
input[name*="maspik"],
input[name="maspik_spam_key"],
input[name="full-name-maspik-hp"],
[data-interaction-id^="maspik_atomic"],
[data-interaction-id="maspik_atomic_hp"],
[data-interaction-id="maspik_atomic_sk"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

#elementor-device-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Safety net - רק על html, לא על body
   (overflow-x:hidden על body יוצר bug ב-iOS שחותך select2 dropdowns) */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* כפיית הסתרה של ה-<select> המקורי (אם UM/select2 לא הסתיר אותו) */
html body select.um-s1,
html body select.select2-hidden-accessible,
html body .um select.um-form-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* iOS Safari מחייב cursor: pointer כדי לתפוס clicks על non-button elements */
.select2-container,
.select2-container--default,
.select2-selection,
.select2-selection--single,
.select2-selection__rendered,
.select2-selection__arrow {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(184, 134, 11, 0.3) !important;
    touch-action: manipulation !important;
}

/* ה-dropdown נפתח אבל מוסתר מאחורי משהו בנייד.
   הפתרון: לכפות עליו opacity:1, visibility:visible
   ולהוציא אותו לחלוטין מ-stacking context של ההורה
   באמצעות position:fixed עם המיקום המקורי */
.select2-dropdown {
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* בכל מקרה - וודא ש-iOS לא חוסם את ה-dropdown */
@media (max-width: 768px) {
    .select2-container--open .select2-dropdown {
        z-index: 2147483647 !important;
        position: absolute !important;
        background: #fff !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
        border: 2px solid #B8860B !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* בנייד - הצף את התוצאות עם opacity מלא */
    .select2-results {
        opacity: 1 !important;
        background: #fff !important;
    }

    .select2-results__option {
        background: #fff !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-height: 44px !important; /* iOS minimum tap target */
        line-height: 24px !important;
        padding: 10px 14px !important;
    }
}

/* בעמודי UM - בטל אפשרות של stacking context על אבות שיכולים לחסום select2 dropdown */
body.sm-um-user-page .um-form,
body.sm-um-user-page .um-profile-body,
body.sm-um-user-page .um-row,
body.sm-um-user-page .um-col-1,
body.sm-um-user-page .um-col-2,
body.sm-um-user-page .um-field,
body.sm-um-user-page .um-field-area {
    transform: none !important;
    isolation: auto !important;
    contain: none !important;
    will-change: auto !important;
    z-index: auto !important;
}

/* ============================================================
   📱 תיקון checkbox רוחב-חצי בעמוד עריכה במובייל
   um-field-half נדחס ל-50% ו-מילה אחת נכנסת בשורה
   ============================================================ */
@media (max-width: 768px) {
    body.sm-editing-profile label.um-field-half,
    body.sm-editing-profile .um label.um-field-half,
    body.sm-editing-profile .um-field-checkbox.um-field-half,
    body.sm-editing-profile label.um-field-checkbox.um-field-half {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    body.sm-editing-profile .um-field-checkbox.um-field-half .um-field-checkbox-state,
    body.sm-editing-profile label.um-field-half .um-field-checkbox-state {
        flex-shrink: 0 !important;
    }

    body.sm-editing-profile .um-field-checkbox-option,
    body.sm-editing-profile label.um-field-half .um-field-checkbox-option {
        flex: 1 1 auto !important;
        text-align: right !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        word-spacing: normal !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        display: inline-block !important;
    }

    /* הקלת padding בתוך השדות */
    body.sm-editing-profile .um-field {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.sm-editing-profile .um-field-area {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   📱 הורדת שוליים פנימיים בעמוד עריכה במובייל
   הקונטיינרים (main, page-content, um, um-form, profile-body)
   מקבלים padding שיוצר שוליים לבנים מיותרים בנייד.
   ============================================================ */
@media (max-width: 768px) {
    body.sm-editing-profile main.site-main,
    body.sm-editing-profile .page-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body.sm-editing-profile .um.um-profile,
    body.sm-editing-profile div.um.um-profile,
    body.sm-editing-profile .um-form,
    body.sm-editing-profile .um-profile-body {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ============================================================
   🚨 תיקון Select2 dropdowns - השקפה דתית/אזור/עישון לא נפתחים
   ה-overflow-x: hidden + position:fixed שלי מפר את ה-stacking
   context של select2. הפתרון: z-index גבוה + pointer-events: auto
   ============================================================ */

/* ============================================================
   🚨 תיקון Select2 dropdowns
   הז-index חייב להיות רק על הdropdown הפתוח, לא על containers
   סגורים (כדי לא לחסום dropdowns אחרים).
   ============================================================ */

/* containers סגורים - בלי z-index שייצור stacking context */
.select2,
.select2-container,
.select2-container--default {
    z-index: auto !important;
    isolation: auto !important;
}

/* רק container פתוח + dropdown מקבלים z גבוה */
.select2-container--open {
    z-index: 2147483647 !important;
}

.select2-container .select2-dropdown,
.select2-dropdown,
.select2-dropdown--below,
.select2-dropdown--above {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    position: absolute !important;
    transform: translateZ(0) !important;
    background: #ffffff !important;
    border: 2px solid #B8860B !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    overflow: hidden !important;
}

.select2-results__option {
    background: #ffffff !important;
    padding: 10px 14px !important;
    color: #2d1a08 !important;
}

.select2-results__option[aria-selected="true"] {
    background: #faf3e0 !important;
    color: #B8860B !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
    background: #B8860B !important;
    color: #ffffff !important;
}

.select2-results,
.select2-results__options,
.select2-results__option,
.select2-search,
.select2-search__field,
.select2-selection,
.select2-selection--single,
.select2-selection__rendered,
.select2-selection__arrow {
    pointer-events: auto !important;
}

/* וודא שה-select המקורי מאפשר אינטראקציה */
select.um-s1,
select.um-form-field,
.um-field select,
.um select {
    pointer-events: auto !important;
}

/* ============================================================
   📸 שדה תמונה בהרשמה - מחליף את profile_cover של UM
   ============================================================ */

/* הסתרת שדה profile_cover של UM בעמוד הרשמה בלבד */
body.um-page-register #um_field_3425_profile_cover,
body.um-page-register .um-field-profile_cover {
    display: none !important;
}

/* קונטיינר השדה */
#sm-register-photo-wrap {
    margin: 24px 0;
}

#sm-register-photo-wrap .um-field-label label {
    font-weight: 700;
    color: #2d1a08;
}

/* תיבת ההעלאה */
.sm-reg-photo-box {
    margin: 8px 0;
}

.sm-reg-photo-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    background: #faf3e0;
    border: 2px dashed #B8860B;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #8B6508;
    font-weight: 600;
}

.sm-reg-photo-upload-btn:hover {
    background: #f5e9c8;
    transform: translateY(-2px);
}

.sm-reg-photo-upload-icon {
    font-size: 32px;
    line-height: 1;
}

.sm-reg-photo-upload-text {
    font-size: 15px;
    font-weight: 700;
}

.sm-reg-photo-upload-help {
    font-size: 12px;
    color: #6b5b3a;
    font-weight: 400;
}

/* preview של התמונה */
.sm-reg-photo-preview {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.sm-reg-photo-preview img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 3px solid #B8860B;
    display: block;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.sm-reg-photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c33;
    color: #fff;
    border: 2px solid #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    padding: 0;
}

.sm-reg-photo-remove:hover {
    transform: scale(1.1);
}

/* status + info */
.sm-reg-photo-status {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}

.sm-reg-photo-info {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b5b3a;
    line-height: 1.4;
}

/* ============================================================
   🚫 חסימת משתמשים בצ'אט
   ============================================================ */

/* כפתור החסימה ב-banner של הצ'אט */
.sm-chat-profile-banner {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 54px; /* ריווח שמאל גדול - לא לדרוס על X של popup */
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%) !important;
    border-bottom: 1px solid #8B6508;
    direction: rtl;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

/* בעמוד inbox אין X של popup, אז אין צורך בריווח שמאל גדול */
.sm-chat-profile-banner.sm-inbox-banner {
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
}

.sm-chat-banner-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    min-width: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.sm-chat-banner-link:hover {
    opacity: 0.92;
    color: #ffffff !important;
}

.sm-chat-banner-link strong {
    color: #ffffff !important;
    font-weight: 800;
}

.sm-chat-banner-link .sm-chat-profile-arrow {
    color: #ffffff !important;
    margin-right: auto;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sm-chat-banner-link:hover .sm-chat-profile-arrow {
    transform: translateX(-4px);
}

.sm-chat-banner-link span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.sm-chat-block-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #fff;
}

.sm-chat-block-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.05);
}

/* ה-overlay כשהחסימה פעילה - בתוך popup */
.sm-block-overlay,
.sm-inbox-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    z-index: 1000;
    direction: rtl;
}

/* כפתור X של overlay - תמיד נגיש */
.sm-block-overlay-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.sm-block-overlay-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.sm-block-overlay-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.sm-block-overlay-title {
    font-size: 20px;
    font-weight: 800;
    color: #2d1a08;
    margin-bottom: 12px;
}

.sm-block-overlay-text {
    font-size: 14px;
    color: #6b5b3a;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 24px;
}

.sm-block-unblock-btn {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    transition: all 0.2s ease;
}

.sm-block-unblock-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
}

.sm-block-unblock-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* וידוא שה-popup parent יהיה יחסי */
#sm-chat-popup .sm-chat-content {
    position: relative;
}

/* שיפור עבור inbox */
#shiduchim-inbox {
    position: relative;
}

/* בנייד - וודא שהoverlay נראה כמו שצריך */
@media (max-width: 600px) {
    .sm-block-overlay,
    .sm-inbox-block-overlay {
        padding: 20px 16px;
    }
    .sm-block-overlay-title {
        font-size: 18px;
    }
    .sm-block-overlay-text {
        font-size: 13px;
        max-width: 280px;
    }
    .sm-block-overlay-icon {
        font-size: 48px;
    }
}

/* ============================================================
   🚩 כפתור דיווח עם טקסט - בעמוד הפרופיל
   ============================================================ */

.sm-report-btn--with-text {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: rgba(204, 51, 51, 0.08) !important;
    border: 1px solid rgba(204, 51, 51, 0.3) !important;
    border-radius: 50px !important;
    color: #c33 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.sm-report-btn--with-text:hover {
    background: rgba(204, 51, 51, 0.15) !important;
    border-color: #c33 !important;
    transform: translateY(-1px);
}

.sm-report-btn-icon {
    font-size: 15px;
    line-height: 1;
}

.sm-report-btn-text {
    line-height: 1;
}

/* ============================================================
   ⚠️ פופאפ שדות חסרים בעריכת פרופיל
   ============================================================ */

.sm-missing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
    animation: sm-missing-fade-in 0.3s ease;
}

@keyframes sm-missing-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sm-missing-modal {
    background: linear-gradient(135deg, #fffaf0 0%, #fff8e7 100%);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: sm-missing-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

@keyframes sm-missing-slide-up {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm-missing-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sm-missing-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
}

.sm-missing-icon {
    font-size: 56px;
    margin-bottom: 14px;
    line-height: 1;
}

.sm-missing-title {
    font-size: 22px;
    font-weight: 800;
    color: #c33;
    margin: 0 0 12px;
}

.sm-missing-text {
    font-size: 15px;
    color: #4a3a1f;
    margin: 0 0 16px;
}

.sm-missing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: right;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(204, 51, 51, 0.2);
}

.sm-missing-list li {
    font-size: 15px;
    color: #2d1a08;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.sm-missing-list li:last-child {
    border-bottom: none;
}

.sm-missing-cta {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
    transition: all 0.2s ease;
}

.sm-missing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45);
}

/* הדגשה זמנית של שדה חסר אחרי סגירת הפופאפ */
.sm-field-highlight {
    animation: sm-highlight-pulse 1s ease-in-out 3;
    border-radius: 8px;
}

@keyframes sm-highlight-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204, 51, 51, 0); }
    50% { box-shadow: 0 0 0 6px rgba(204, 51, 51, 0.3); }
}

/* ============================================================
   🖼️ כפתור הסרת תמונה ראשית + Toggle טשטוש
   ============================================================ */

/* כפתור X של תמונה ראשית */
.sm-photo-delete-main,
.sm-photo-delete-pending {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(204, 51, 51, 0.92);
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    padding: 0;
    z-index: 5;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-photo-delete-main:hover,
.sm-photo-delete-pending:hover {
    background: #c33;
    transform: scale(1.15);
}

.sm-photo-item {
    position: relative;
}

/* Toggle טשטוש */
.sm-blur-toggle-wrap {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #faf3e0 0%, #fff8e7 100%);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 12px;
    direction: rtl;
}

.sm-blur-toggle-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.sm-blur-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sm-blur-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 50px;
    flex-shrink: 0;
    transition: background 0.25s ease;
    cursor: pointer;
    margin-top: 2px;
}

.sm-blur-toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sm-blur-toggle:checked + .sm-blur-toggle-switch {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
}

.sm-blur-toggle:checked + .sm-blur-toggle-switch::before {
    right: 25px;
}

.sm-blur-toggle-text {
    flex: 1;
    line-height: 1.4;
}

.sm-blur-toggle-text strong {
    display: block;
    font-size: 14px;
    color: #2d1a08;
    font-weight: 700;
    margin-bottom: 2px;
}

.sm-blur-toggle-text small {
    display: block;
    font-size: 12px;
    color: #6b5b3a;
}

.sm-blur-toggle-status {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
}

/* הסתרת ה-checkbox המקורי של UM (טשטוש) בעמוד עריכת פרופיל */
body.sm-editing-profile .um-field[data-key="blur_photos"],
body.sm-editing-profile #um_field_blur_photos {
    display: none !important;
}

/* מובייל */
@media (max-width: 600px) {
    .sm-missing-modal {
        padding: 28px 20px 22px;
    }
    .sm-missing-title {
        font-size: 19px;
    }
    .sm-missing-text {
        font-size: 14px;
    }
    .sm-missing-list li {
        font-size: 14px;
    }
    .sm-blur-toggle-wrap {
        padding: 12px 14px;
    }
    .sm-report-btn--with-text {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }
}

/* ============================================================
   💬 צ'אט פנימי - גרסה חדשה (ללא TalkJS)
   ============================================================ */

/* ==== Popup wrapper ==== */
#sm-chat-popup .sm-chat-content {
    height: 100%;
    width: 100%;
}

.sm-chat-box-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #fff;
    direction: rtl;
    overflow: hidden;
    position: relative;
}

/* ==== הודעות ==== */
.sm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff8e7 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-chat-loading,
.sm-chat-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

.sm-chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    animation: sm-bubble-in 0.2s ease-out;
}

@keyframes sm-bubble-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-chat-bubble--mine {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
    align-self: flex-start;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
}

.sm-chat-bubble--theirs {
    background: #fff;
    color: #2d1a08;
    align-self: flex-end;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sm-chat-bubble-body {
    font-size: 14px;
    margin-bottom: 4px;
}

.sm-chat-bubble-time {
    font-size: 10.5px;
    opacity: 0.7;
    text-align: left;
}

.sm-chat-bubble--mine .sm-chat-bubble-time {
    color: rgba(255, 255, 255, 0.9);
}

.sm-chat-bubble--theirs .sm-chat-bubble-time {
    color: #888;
}

/* ==== טופס שליחה ==== */
.sm-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    align-items: flex-end;
}

.sm-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    line-height: 1.4;
    max-height: 120px;
    min-height: 40px;
    transition: border 0.2s ease;
    direction: rtl;
}

.sm-chat-input:focus {
    outline: none;
    border-color: #B8860B;
}

.sm-chat-input:disabled {
    opacity: 0.6;
    cursor: wait;
}

.sm-chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.sm-chat-send-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.45);
}

.sm-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.sm-chat-send-btn svg {
    transform: rotate(180deg);
}

/* ============================================================
   📬 Inbox - עמוד תיבת דואר
   ============================================================ */

.sm-inbox-wrapper {
    display: flex;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    direction: rtl;
    border: 1px solid #eee;
}

.sm-inbox-sidebar {
    width: 320px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    flex-shrink: 0;
}

.sm-inbox-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #faf3e0 0%, #fff8e7 100%);
    border-bottom: 1px solid #e8dcb8;
    font-weight: 800;
    font-size: 16px;
    color: #2d1a08;
}

.sm-inbox-list {
    flex: 1;
    overflow-y: auto;
}

.sm-inbox-loading,
.sm-inbox-empty-list {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.sm-inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.sm-inbox-item:hover {
    background: #fff8e7;
}

.sm-inbox-item.is-active {
    background: #faf3e0;
    border-right: 3px solid #B8860B;
}

.sm-inbox-item--unread {
    background: #fff8e7;
}

.sm-inbox-item--unread .sm-inbox-item-name,
.sm-inbox-item--unread .sm-inbox-item-preview {
    font-weight: 700;
    color: #2d1a08;
}

.sm-inbox-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

.sm-inbox-avatar--default {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.sm-inbox-item-content {
    flex: 1;
    min-width: 0;
}

.sm-inbox-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.sm-inbox-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d1a08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-inbox-item-time {
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
    margin-right: 6px;
}

.sm-inbox-item-preview {
    font-size: 12.5px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-inbox-item-you {
    color: #999;
}

.sm-inbox-badge {
    background: #c33;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

.sm-inbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fffaf0 0%, #fff8e7 100%);
}

.sm-inbox-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.sm-inbox-chat {
    height: 100%;
}

/* ==== מובייל ==== */
@media (max-width: 768px) {
    .sm-inbox-wrapper {
        height: calc(100vh - 100px);
        border-radius: 0;
        flex-direction: column;
    }
    
    .sm-inbox-sidebar {
        width: 100%;
        max-height: 200px;
        border-left: 0;
        border-bottom: 1px solid #eee;
    }
    
    .sm-inbox-main {
        flex: 1;
    }
    
    .sm-chat-bubble {
        max-width: 85%;
        font-size: 13.5px;
    }
}

/* ============================================================
   🔔 פנייה להפעלת התראות דפדפן
   ============================================================ */
.sm-notif-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
    z-index: 99998;
    direction: rtl;
    animation: sm-notif-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sm-notif-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-notif-prompt-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.sm-notif-prompt-text {
    flex: 1;
    min-width: 0;
}

.sm-notif-prompt-text strong {
    display: block;
    font-size: 13.5px;
    color: #2d1a08;
    margin-bottom: 2px;
    font-weight: 700;
}

.sm-notif-prompt-text small {
    display: block;
    font-size: 11.5px;
    color: #888;
}

.sm-notif-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.sm-notif-prompt-actions button {
    padding: 6px 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
}

.sm-notif-prompt-yes {
    background: linear-gradient(135deg, #B8860B 0%, #D4A93D 100%);
    color: #fff;
}

.sm-notif-prompt-no {
    background: transparent;
    color: #888;
}

.sm-notif-prompt-no:hover {
    color: #555;
}

@media (max-width: 600px) {
    .sm-notif-prompt {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* ============================================================
   ✨ הודעת שדרוג הצ'אט בעמוד inbox
   ============================================================ */
.sm-inbox-upgrade-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #fff8e7 0%, #faf3e0 100%);
    border: 1px solid #D4A93D;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #2d1a08;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.1);
    animation: sm-upgrade-slide 0.4s ease;
}

@keyframes sm-upgrade-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-inbox-upgrade-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.sm-inbox-upgrade-text {
    flex: 1;
    font-weight: 600;
}

.sm-inbox-upgrade-close {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #555;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sm-inbox-upgrade-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .sm-inbox-upgrade-notice {
        font-size: 12.5px;
        padding: 10px 14px;
    }
    .sm-inbox-upgrade-icon {
        font-size: 18px;
    }
}


/* ============================================
   📱 פתרון רספונסיבי סופי לעמוד עריכת פרופיל
   ============================================ */
@media (max-width: 768px) {
    /* רק על html ועל body - מונע overflow אופקי */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    /* כל ה-wrappers של UM - להגביל רוחב */
    .um.um-account,
    .um.um-profile,
    .um.um-form,
    .um-account-tab,
    .um-profile-body {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* שדות חובה למלא רוחב מלא */
    .um .um-field {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .um .um-field input,
    .um .um-field textarea,
    .um .um-field select {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* meta עם padding בעייתי */
    .um .um-profile-meta {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    /* תמונת פרופיל - מרכז */
    .um .um-profile-photo {
        position: relative !important;
        margin: 0 auto 20px !important;
        top: 0 !important;
    }
    
    /* select2 לא לעבור גבולות */
    .select2-container {
        max-width: calc(100vw - 30px) !important;
    }
}

/* ⚠️ ההודעה הקבועה לא נפגעת מ-overflow:hidden */
.sm-unapproved-notice {
    position: fixed !important;
    overflow: visible !important;
}


/* ============================================
   🟢 סטטוס "מחובר/ת" בכרטיסי משתמשים
   ============================================ */
.sm-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    vertical-align: middle;
}

.sm-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: sm-online-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes sm-online-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
