.creator-profile-page {
    --creator-profile-accent: #ad5d55;
    --creator-profile-ink: #262322;
    --creator-profile-muted: #746d69;
    --creator-profile-surface: #fff;
    width: min(100%, 1120px);
    margin: 0 auto;
    color: var(--creator-profile-ink);
}

.creator-profile-hero,
.creator-profile-panel,
.creator-profile-post,
.creator-profile-empty {
    border: 1px solid rgba(55, 46, 42, .1);
    background: var(--creator-profile-surface);
    box-shadow: 0 12px 34px rgba(48, 36, 32, .07);
}

.creator-profile-hero {
    overflow: hidden;
    border-radius: 24px;
}

.creator-profile-cover {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(240px, 35vw, 390px);
    overflow: hidden;
    background: linear-gradient(135deg, #ead6cc, #b8685e 52%, #6d3f3b);
}

.creator-profile-cover::after {
    position: absolute;
    inset: 45% 0 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(29, 21, 20, .42));
}

.creator-profile-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-profile-cover > span {
    color: rgba(255, 255, 255, .86);
    font-size: clamp(4rem, 11vw, 8rem);
}

.creator-profile-back {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(27, 22, 21, .58);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.creator-profile-identity {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 22px;
    padding: 0 34px 20px;
}

.creator-profile-avatar {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    margin-top: -58px;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #f3e6df;
    color: var(--creator-profile-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.8rem;
    box-shadow: 0 12px 30px rgba(48, 36, 32, .18);
}

.creator-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-profile-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
}

.creator-profile-title h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.02;
}

.creator-profile-title h1 i {
    color: #4d84d8;
    font-size: .55em;
}

.creator-profile-title p {
    margin: 8px 0 0;
    color: var(--creator-profile-muted);
}

.creator-profile-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.creator-profile-primary-actions form {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.creator-profile-primary-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 800;
}

.creator-profile-primary-actions .btn-primary {
    border-color: var(--creator-profile-accent);
    background: var(--creator-profile-accent);
}

.creator-profile-tabs {
    display: flex;
    gap: 5px;
    margin: 0 34px;
    padding-top: 8px;
    border-top: 1px solid rgba(55, 46, 42, .1);
}

.creator-profile-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 8px 18px;
    border-bottom: 3px solid transparent;
    color: var(--creator-profile-muted);
    font-weight: 800;
    text-decoration: none;
}

.creator-profile-tabs a:hover,
.creator-profile-tabs a:focus-visible {
    border-bottom-color: var(--creator-profile-accent);
    color: var(--creator-profile-accent);
}

.creator-profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.creator-profile-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 20px;
}

.creator-profile-panel,
.creator-profile-post {
    padding: 22px;
    border-radius: 18px;
}

.creator-profile-panel h2,
.creator-profile-post h2 {
    margin: 0;
    font-size: 1.28rem;
}

.creator-profile-panel > p {
    margin: 12px 0 0;
    color: var(--creator-profile-muted);
    line-height: 1.6;
}

.creator-profile-panel dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.creator-profile-panel dl div {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
}

.creator-profile-panel dt {
    color: var(--creator-profile-muted);
}

.creator-profile-panel dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.creator-profile-panel a {
    color: var(--creator-profile-accent);
}

.creator-profile-panel-heading,
.creator-profile-feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.creator-profile-panel-heading > span,
.creator-profile-feed-heading > strong {
    color: var(--creator-profile-muted);
    font-size: .82rem;
}

.creator-profile-service-list {
    display: grid;
    margin-top: 10px;
}

.creator-profile-service-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    border-top: 1px solid rgba(55, 46, 42, .08);
}

.creator-profile-service-list article div {
    display: grid;
    gap: 2px;
}

.creator-profile-service-list small,
.creator-profile-service-list article > span {
    color: var(--creator-profile-muted);
    font-size: .78rem;
}

.creator-profile-service-list article > a {
    display: grid;
    place-items: center;
    width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: #f5e9e4;
    text-decoration: none;
}

.creator-profile-feed {
    display: grid;
    gap: 20px;
}

.creator-profile-feed-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--creator-profile-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.creator-profile-post header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.creator-profile-post-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3e6df;
    color: var(--creator-profile-accent);
    font-weight: 900;
}

.creator-profile-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-profile-post header div {
    display: grid;
}

.creator-profile-post time {
    color: var(--creator-profile-muted);
    font-size: .78rem;
}

.creator-profile-post > h2 {
    margin-top: 18px;
}

.creator-profile-post > p {
    margin: 8px 0 16px;
    color: var(--creator-profile-muted);
    line-height: 1.55;
}

.creator-profile-post-media {
    display: block;
    margin: 16px -22px;
    overflow: hidden;
    background: #eee6e1;
}

.creator-profile-post-media img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.creator-profile-post footer {
    display: flex;
    justify-content: flex-end;
}

.creator-profile-post footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--creator-profile-accent);
    font-weight: 800;
    text-decoration: none;
}

.creator-profile-no-posts,
.creator-profile-empty {
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
}

.creator-profile-no-posts > i,
.creator-profile-empty > i {
    color: var(--creator-profile-accent);
    font-size: 2.4rem;
}

.creator-profile-empty {
    width: min(100%, 720px);
    margin: 40px auto;
    padding: 36px;
    border-radius: 22px;
}

.creator-profile-empty p {
    color: var(--creator-profile-muted);
}

.connection-profile-cover {
    background: linear-gradient(135deg, #e4d8ef, #a47592 52%, #61475d);
}

.connection-profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.connection-profile-interests span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f3e8ed;
    color: #714e64;
    font-size: .8rem;
    font-weight: 750;
}

.connection-profile-interests p {
    margin: 0;
    color: var(--creator-profile-muted);
}

.connection-profile-activity {
    display: grid;
    place-items: center;
    min-height: 310px;
    text-align: center;
}

.connection-profile-activity > i {
    color: var(--creator-profile-accent);
    font-size: 2.5rem;
}

.connection-profile-activity > p {
    max-width: 440px;
}

.connection-profile-activity .btn-primary {
    border-color: var(--creator-profile-accent);
    background: var(--creator-profile-accent);
}

@media (max-width: 991.98px) {
    .creator-profile-page {
        width: calc(100% + 24px);
        margin: -4px -12px 0;
        padding-bottom: calc(var(--fx-mobile-nav-height, 78px) + env(safe-area-inset-bottom));
    }

    .creator-profile-hero {
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .creator-profile-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .creator-profile-sidebar {
        position: static;
        display: contents;
    }

    .creator-profile-feed {
        gap: 12px;
    }

    .creator-profile-feed-heading {
        order: -1;
    }

    .creator-profile-panel,
    .creator-profile-post {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 5px 18px rgba(48, 36, 32, .05);
    }
}

@media (max-width: 575.98px) {
    .creator-profile-cover {
        height: 230px;
    }

    .creator-profile-identity {
        display: block;
        padding: 0 16px 16px;
        text-align: center;
    }

    .creator-profile-avatar {
        width: 128px;
        height: 128px;
        margin: -52px auto 0;
        border-width: 5px;
        font-size: 3rem;
    }

    .creator-profile-title {
        display: grid;
        gap: 16px;
        padding-top: 12px;
    }

    .creator-profile-title h1 {
        font-size: 2rem;
    }

    .creator-profile-primary-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .creator-profile-primary-actions form,
    .creator-profile-primary-actions form .btn {
        width: 100%;
    }

    .creator-profile-primary-actions form {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 9px;
    }

    .creator-profile-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0 10px;
    }

    .creator-profile-tabs a {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding-inline: 5px;
        font-size: .7rem;
        line-height: 1.05;
        text-align: center;
    }

    .creator-profile-tabs a i {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .creator-profile-page * {
        scroll-behavior: auto !important;
    }
}
