:root {
    --main-blue: #1683ff;
    --main-blue-2: #0067d8;
    --dark: #050505;
    --text: #080808;
    --muted: #777;
    --bg: #f4f5f7;
    --card: #ffffff;
    --border: #e6e8ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    direction: rtl;
    font-family: 'Heebo', sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

/* עמוד */

.mf-profile-page {
    min-height: 100vh;
    background: transparent !important;
    padding-bottom: 70px;
    position: relative;
    z-index: 1;
}

/* קאבר */

.mf-cover {
    width: min(1120px, calc(100% - 40px));
    height: 250px;
    margin: 28px auto 0;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 45%, rgba(22,131,255,0.9), transparent 28%),
        linear-gradient(135deg, #eeeeee 0%, #ffffff 55%, #e8eef7 100%);
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(0,0,0,0.06);
}

.mf-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 45%, rgba(22,131,255,0.08) 46%, transparent 70%);
}

.mf-cover::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06132d, #1d55c9);
    right: 120px;
    top: -35px;
}

.mf-cover-back {
    position: absolute;
    z-index: 4;
    top: 34px;
    left: 34px;
    text-decoration: none;
    background: #050505;
    color: #fff;
    padding: 12px 22px;
    border-radius: 9px;
    font-weight: 900;
}

/* כרטיס פרופיל ראשי - פריסה מתוקנת */

.mf-profile-card {
    width: min(1080px, calc(100% - 40px));
    margin: -88px auto 0;
    position: relative;
    z-index: 10;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    padding: 34px;
    display: grid;
    grid-template-columns: 170px 1fr 300px;
    align-items: center;
    gap: 30px;
    box-shadow:
        0 28px 80px rgba(0,0,0,0.09),
        0 0 50px rgba(22,131,255,0.08);
    backdrop-filter: blur(18px);
}

.mf-avatar-area {
    display: flex;
    justify-content: flex-start;
    order: 1;
}

.mf-avatar {
    width: 145px;
    height: 145px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--main-blue), #064fa8);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 56px;
    font-weight: 900;
    overflow: hidden;
    box-shadow:
        0 0 0 7px #fff,
        0 18px 40px rgba(22,131,255,0.25);
}

.mf-avatar img,
.mf-composer-avatar img,
.mf-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mf-profile-info {
    text-align: right;
    order: 2;
}

.mf-name-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
}

.mf-name-line h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    color: #050505;
}

.mf-name-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.mf-name-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34,197,94,0.14);
}

.mf-name-dot.offline {
    background: #147cff;
}

.mf-name-dot.hidden {
    background: #94a3b8;
}

.mf-role {
    width: fit-content;
    margin: 14px 0 0;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.mf-role.owner {
    background: #ffd35a;
    color: #4a3100;
}

.mf-role.member {
    display: none;
}

/* דרגה קטנה למשתמש רגיל */

.mf-rank-inline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:12px;
    padding:9px 16px;
    width:max-content;
    max-width:100%;
    border-radius:999px;
    background:linear-gradient(135deg,rgba(22,131,255,.16),rgba(255,255,255,.72));
    border:1px solid rgba(22,131,255,.22);
    color:#0f172a;
    font-weight:900;
    font-size:14px;
    line-height:1;
    box-shadow:0 14px 34px rgba(22,131,255,.13), inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter:blur(14px);
}

.mf-rank-inline span{
    display:grid;
    place-items:center;
    width:25px;
    height:25px;
    border-radius:50%;
    background:rgba(255,255,255,.75);
    box-shadow:0 8px 20px rgba(22,131,255,.14);
    font-size:15px;
}

.mf-status {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 900;
    color: #111;
}

.mf-status.muted {
    color: #64748b;
}

.mf-desc {
    max-width: 440px;
    margin: 12px 0 0;
    color: #666;
    font-weight: 700;
    line-height: 1.7;
}

.mf-online-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 900;
}

.mf-online-text span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mf-online-text.online,
.mf-about-row strong.online {
    color: #16a34a;
}

.mf-online-text.online span {
    background: #22c55e;
}

.mf-online-text.offline,
.mf-about-row strong.offline {
    color: #0b63ce;
}

.mf-online-text.offline span {
    background: #147cff;
}

.mf-online-text.hidden,
.mf-about-row strong.hidden {
    color: #64748b;
}

.mf-online-text.hidden span {
    background: #94a3b8;
}

/* סטטיסטיקות - בחזרה למראה מסודר */

.mf-stats-boxes {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-self: stretch;
}

.mf-stats-boxes div {
    min-height: 104px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0,0,0,.04);
}

.mf-stats-boxes strong {
    color: #050505;
    font-size: 32px;
    font-weight: 900;
}

.mf-stats-boxes span {
    color: #666;
    font-size: 14px;
    font-weight: 900;
}

/* פריסה */

.mf-layout {
    width: min(1080px, calc(100% - 40px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}

.mf-sidebar,
.mf-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* כרטיסים */

.mf-side-card,
.mf-composer,
.mf-post,
.mf-empty {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.045);
    backdrop-filter: blur(14px);
}

.mf-side-card {
    padding: 24px;
    position: sticky;
    top: 105px;
}

.mf-side-card h3,
.mf-section-title h2 {
    margin: 0;
    color: #050505;
    font-size: 28px;
    font-weight: 900;
}

.mf-about-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.mf-about-row span {
    color: #777;
    font-weight: 800;
}

.mf-about-row strong {
    color: #050505;
    font-weight: 900;
}

.mf-side-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.mf-side-actions a {
    text-decoration: none;
    text-align: center;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 900;
    color: #050505;
    background: #fff;
    border: 1px solid var(--border);
}

.mf-side-actions a.primary {
    background: linear-gradient(135deg, var(--main-blue), var(--main-blue-2));
    color: #fff;
    border: 0;
}

/* סטטוס */

.mf-composer {
    padding: 20px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
}

.mf-composer-avatar,
.mf-post-avatar {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--main-blue), var(--main-blue-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    overflow: hidden;
}

.mf-composer-body input[type="text"] {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    background: #fafafa;
    border-radius: 15px;
    padding: 0 18px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
}

.mf-composer-bottom {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mf-composer-bottom label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 900;
}

.mf-composer-bottom button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    background: #050505;
    border-radius: 13px;
    padding: 12px 22px;
    font-weight: 900;
}

/* פיד */

.mf-section-title {
    padding: 4px 4px 0;
}

.mf-section-title p {
    margin: 5px 0 0;
    color: #777;
    font-weight: 800;
}

.mf-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mf-post {
    padding: 22px;
}

.mf-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mf-post-user {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mf-post-user strong {
    display: block;
    color: #050505;
    font-size: 18px;
    font-weight: 900;
}

.mf-post-user span {
    display: block;
    color: #777;
    margin-top: 3px;
    font-size: 14px;
    font-weight: 800;
}

.mf-post-badge {
    background: rgba(22,131,255,0.12);
    color: var(--main-blue);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
}

.mf-post-body {
    margin-top: 18px;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    color: #111;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 700;
}

.mf-post-footer {
    margin-top: 14px;
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 14px;
    font-weight: 800;
}

.mf-empty {
    padding: 45px 24px;
    text-align: center;
}

.mf-empty div {
    font-size: 42px;
}

.mf-empty h3 {
    margin: 10px 0 6px;
    color: #050505;
    font-size: 24px;
    font-weight: 900;
}

.mf-empty p {
    margin: 0;
    color: #777;
    font-weight: 800;
}

/* רקע חי */

.profile-orb{
    position:fixed;
    border-radius:50%;
    pointer-events:none;
    z-index:0 !important;
    filter:blur(2px);
}

.profile-orb.orb-1{
    width:340px;
    height:340px;
    background:radial-gradient(circle,rgba(22,131,255,.22),transparent 72%);
    top:10%;
    right:4%;
}

.profile-orb.orb-2{
    width:240px;
    height:240px;
    background:radial-gradient(circle,rgba(0,91,234,.14),transparent 72%);
    bottom:10%;
    left:6%;
}

.profile-orb.orb-3{
    width:140px;
    height:140px;
    background:radial-gradient(circle,rgba(22,131,255,.12),transparent 70%);
    top:44%;
    left:18%;
}

.profile-orb.orb-4{
    width:90px;
    height:90px;
    background:radial-gradient(circle,rgba(255,255,255,.75),transparent 70%);
    bottom:22%;
    right:24%;
}

.profile-light-line,
.profile-particle{
    position:fixed;
    pointer-events:none;
    z-index:0 !important;
}

.profile-light-line{
    width:460px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(22,131,255,.45),transparent);
    opacity:.5;
}

.profile-light-line.line-1{
    top:18%;
    left:-260px;
}

.profile-light-line.line-2{
    bottom:26%;
    right:-260px;
}

.profile-particle{
    width:6px;
    height:6px;
    border-radius:50%;
    background:rgba(22,131,255,.48);
    box-shadow:0 0 14px rgba(22,131,255,.45);
}

.profile-particle.p1{top:22%;right:28%;}
.profile-particle.p2{top:58%;left:16%;}
.profile-particle.p3{top:38%;left:48%;}
.profile-particle.p4{bottom:18%;right:18%;}
.profile-particle.p5{top:74%;left:36%;}

.topbar,
.mf-cover,
.mf-profile-card,
.mf-layout,
.site-footer {
    position: relative;
    z-index: 2;
}

/* מובייל */

@media (max-width: 1050px) {
    .mf-profile-card,
    .mf-layout {
        grid-template-columns: 1fr;
    }

    .mf-avatar-area{
        justify-content:center;
    }

    .mf-profile-info{
        text-align:center;
    }

    .mf-name-line{
        justify-content:center;
    }

    .mf-role,
    .mf-rank-inline{
        margin-left:auto;
        margin-right:auto;
    }

    .mf-stats-boxes {
        grid-template-columns: repeat(3, 1fr);
    }

    .mf-side-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .mf-cover,
    .mf-profile-card,
    .mf-layout {
        width: calc(100% - 24px);
    }

    .mf-cover {
        height: 210px;
        margin-top: 14px;
    }

    .mf-profile-card {
        margin-top: -70px;
        padding: 24px;
    }

    .mf-name-line h1 {
        font-size: 38px;
    }

    .mf-stats-boxes {
        grid-template-columns: 1fr;
    }

    .mf-composer {
        grid-template-columns: 1fr;
    }

    .mf-composer-avatar {
        display: none;
    }

    .mf-composer-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mf-composer-bottom button {
        width: 100%;
    }
}
