:root {
    --ig-red: #e11d48;
    --ig-pink: #ec4899;
    --ig-orange: #f97316;
    --ig-purple: #8b5cf6;
    --ig-blue: #2563eb;
    --ig-text: #111827;
    --ig-muted: #6b7280;
    --ig-line: rgba(17, 24, 39, .08);
    --ig-soft: #fff7fb;
}

.igp-page {
    direction: rtl;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(236, 72, 153, .15), transparent 32%),
        radial-gradient(circle at 85% 6%, rgba(249, 115, 22, .14), transparent 28%),
        linear-gradient(180deg, #fff, #fff7fb 60%, #fff);
    padding: 28px 14px 80px;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--ig-text);
}

.igp-shell {
    max-width: 1120px;
    margin: 0 auto;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(225, 29, 72, .12);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(225, 29, 72, .12);
}

.igp-cover {
    height: 210px;
    background:
        linear-gradient(135deg, rgba(225,29,72,.92), rgba(236,72,153,.84), rgba(249,115,22,.88)),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.35), transparent 24%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.igp-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.36), transparent 18%),
        linear-gradient(180deg, transparent 35%, rgba(0,0,0,.18));
}

.igp-cover.realtor {
    background:
        linear-gradient(135deg, rgba(139,92,246,.92), rgba(236,72,153,.86), rgba(249,115,22,.88)),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.35), transparent 24%);
}

.igp-header {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 26px;
    padding: 0 38px 26px;
    margin-top: -78px;
    position: relative;
    z-index: 2;
}

.igp-avatar-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.igp-avatar,
.igp-avatar-fallback {
    width: 164px;
    height: 164px;
    border-radius: 50%;
    border: 7px solid #fff;
    box-shadow: 0 18px 55px rgba(17,24,39,.20);
}

.igp-avatar {
    object-fit: cover;
    background: #fff;
}

.igp-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 950;
    color: #fff;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg, var(--ig-red), var(--ig-pink), var(--ig-orange)) border-box;
    border: 7px solid transparent;
    position: relative;
}

.igp-avatar-fallback::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ig-red), var(--ig-pink), var(--ig-orange));
    z-index: -1;
}

.igp-main-info {
    padding-top: 92px;
}

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

.igp-title-row h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -.5px;
}

.igp-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--ig-red), var(--ig-orange));
    font-size: 12px;
    font-weight: 950;
}

.igp-verified.blue {
    background: linear-gradient(135deg, var(--ig-purple), var(--ig-pink));
}

.igp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.igp-btn {
    border: 0;
    text-decoration: none;
    border-radius: 14px;
    padding: 10px 15px;
    font-weight: 950;
    font-family: Tahoma, Arial, sans-serif;
    cursor: pointer;
    transition: .2s ease;
}

.igp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(225,29,72,.13);
}

.igp-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ig-red), var(--ig-orange));
}

.igp-btn.light {
    color: #be123c;
    background: #fff1f2;
}

.igp-btn.ghost {
    color: #111827;
    background: #fff;
    border: 1px solid var(--ig-line);
}

.igp-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.igp-stats div {
    min-width: 105px;
}

.igp-stats strong {
    display: block;
    font-size: 20px;
    font-weight: 950;
}

.igp-stats span {
    color: var(--ig-muted);
    font-size: 13px;
    font-weight: 800;
}

.igp-bio {
    max-width: 720px;
    margin: 18px 0 0;
    color: #374151;
    line-height: 2;
    font-weight: 700;
}

.igp-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.igp-meta span {
    background: #fff7ed;
    color: #9a3412;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
}

.igp-highlights {
    display: flex;
    gap: 18px;
    padding: 18px 38px 26px;
    overflow-x: auto;
}

.igp-highlights article {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 88px;
}

.igp-highlights span {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 28px;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg, var(--ig-red), var(--ig-pink), var(--ig-orange)) border-box;
    border: 3px solid transparent;
    box-shadow: 0 10px 26px rgba(225,29,72,.12);
}

.igp-highlights strong {
    font-size: 12px;
    white-space: nowrap;
}

.igp-tabs {
    display: flex;
    justify-content: center;
    gap: 34px;
    border-top: 1px solid var(--ig-line);
    border-bottom: 1px solid var(--ig-line);
}

.igp-tabs a {
    text-decoration: none;
    color: var(--ig-muted);
    font-weight: 950;
    padding: 14px 4px;
    border-bottom: 3px solid transparent;
}

.igp-tabs a.active {
    color: #111827;
    border-bottom-color: #111827;
}

.igp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: #fff;
}

.igp-post {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
    text-decoration: none;
    color: #fff;
}

.igp-post img,
.igp-post-fallback {
    width: 100%;
    height: 100%;
}

.igp-post img {
    object-fit: cover;
    transition: .25s ease;
}

.igp-post:hover img {
    transform: scale(1.06);
}

.igp-post-fallback {
    display: grid;
    place-items: center;
    font-size: 42px;
    background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.igp-post-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
    transform: translateY(100%);
    transition: .25s ease;
}

.igp-post:hover .igp-post-overlay {
    transform: translateY(0);
}

.igp-post-overlay strong,
.igp-post-overlay span {
    display: block;
}

.igp-post-overlay strong {
    font-size: 14px;
}

.igp-post-overlay span {
    font-size: 12px;
    opacity: .9;
}

.igp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 58px 18px;
    color: var(--ig-muted);
}

.igp-empty strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

.igp-about {
    padding: 30px 38px 40px;
    border-top: 1px solid var(--ig-line);
}

.igp-about h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.igp-about p {
    color: #374151;
    line-height: 2;
}

.igp-about div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.igp-about span {
    background: #fff1f2;
    color: #9f1239;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
}

@media (max-width: 840px) {
    .igp-page {
        padding: 10px 0 55px;
    }

    .igp-shell {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .igp-cover {
        height: 160px;
    }

    .igp-header {
        grid-template-columns: 1fr;
        padding: 0 18px 22px;
        gap: 10px;
        margin-top: -64px;
        text-align: center;
    }

    .igp-avatar,
    .igp-avatar-fallback {
        width: 128px;
        height: 128px;
        border-width: 6px;
    }

    .igp-main-info {
        padding-top: 0;
    }

    .igp-title-row,
    .igp-actions,
    .igp-stats,
    .igp-meta {
        justify-content: center;
    }

    .igp-title-row h1 {
        font-size: 24px;
    }

    .igp-highlights {
        padding: 16px 18px 22px;
    }

    .igp-grid {
        gap: 2px;
    }

    .igp-about {
        padding: 24px 18px;
    }
}
