/* ==========================================================================
   Clopix — Creator Profile Page  (author.php)
   Uses global CSS custom properties from global.css
   ========================================================================== */

/* ── Page shell ──────────────────────────────────────────────────────────── */
.pf-page { background: var(--color-black); min-height: 100vh; overflow-x: hidden; color: var(--color-white); }

/* ── Masthead ────────────────────────────────────────────────────────────── */
.pf-masthead { background: var(--color-black); color: var(--color-white); }
.pf-masthead__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.pf-masthead__bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pf-masthead__actions { display: flex; align-items: center; gap: 0.6rem; }
.pf-owner-menu { display: none; }

.pf-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.pf-back svg,
.pf-back i { transition: transform 0.2s; }
.pf-back i {
    font-size: 0.95rem;
    line-height: 1;
}
.pf-back:hover {
    border-color: rgba(201,169,122,0.42);
    background: rgba(201,169,122,0.12);
    color: var(--color-white);
}
.pf-back:hover svg,
.pf-back:hover i { transform: translateY(-1px); }
.pf-back.clopix-site-icon-button--icon {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.pf-back.clopix-site-icon-button--icon:hover {
    border-color: transparent;
    background: transparent;
}
.pf-back--mobile-settings {
    display: none;
}
.pf-owner-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
}
.pf-owner-fab__trigger {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-black);
    box-shadow: 0 16px 36px rgba(10,10,10,0.22);
    cursor: pointer;
}
.pf-owner-fab__trigger:hover {
    background: #d4b48a;
}

/* ── Profile hero ────────────────────────────────────────────────────────── */
/*
   LEFT:  [avatar] + [name / X Outfits]
   RIGHT: [Followers]  [Following]
*/
.pf-profile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 1.25rem;
}
.pf-profile::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Left group */
.pf-profile__left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.pf-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(201,169,122,0.65);
    box-shadow: 0 0 0 3px rgba(201,169,122,0.1);
    flex-shrink: 0;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pf-profile__identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

/* Name + follow button sit side-by-side */
.pf-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pf-name {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-outfit-count {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.pf-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 400;
    margin: 0;
}

/* Desktop: tagline lives inside the identity column — hide the standalone one */
@media (min-width: 641px) {
    .pf-tagline--inline     { display: block; }
    .pf-tagline--standalone { display: none; }
}

/* Mobile: hide tagline inside identity, show it inside the bio section */
@media (max-width: 640px) {
    .pf-tagline--inline     { display: none; }
    .pf-tagline--standalone { display: block; margin-bottom: 0.4rem; }
}

/* Right group — wrapper column: stats on top, socials below */
.pf-profile__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    flex-shrink: 0;
}

.pf-profile__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pf-stat strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1;
}

.pf-stat span {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* Desktop: scale up avatar and numbers slightly */
@media (min-width: 641px) {
    .pf-avatar              { width: 72px; height: 72px; }
    .pf-stat strong         { font-size: 1.6rem; }
    .pf-profile__stats      { gap: 2rem; }
    .pf-profile__right      { gap: 0.75rem; }
}
/* ── Bio — below the full profile row ────────────────────────────────────── */
.pf-bio {
    /* border-top: 1px solid rgba(255,255,255,0.08); */
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
    overflow: hidden;
}
.pf-bio p {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
    margin: 0;
    max-width: 560px;
}
.pf-bio .pf-tagline { color: var(--color-accent); }
@media (min-width: 641px) {
    .pf-bio p { max-width: 100%; }
}

.pf-socials {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}
.pf-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.35);
    border-radius: var(--radius-sm);
    transition: color 0.18s, background 0.18s;
    text-decoration: none;
}
.pf-social i { font-size: 14px; line-height: 1; }
.pf-social:hover { color: var(--color-white); background: rgba(255,255,255,0.08); }


/* ── Buttons ─────────────────────────────────────────────────────────────── */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pf-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.pf-btn--ghost:hover { border-color: rgba(255,255,255,0.6); color: var(--color-white); }
.pf-btn--gold  { background: var(--color-accent); color: var(--color-black); }
.pf-btn--gold:hover { background: #d4b48a; }
.pf-btn--new-collection svg { flex-shrink: 0; }

.pf-owner-menu__trigger {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
}

.pf-owner-menu__panel {
    display: none;
}

.pf-owner-sheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1101;
    align-items: flex-end;
    visibility: hidden;
    pointer-events: none;
}
.pf-owner-sheet.is-open {
    visibility: visible;
    pointer-events: all;
}
.pf-owner-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    transition: opacity 0.25s;
}
.pf-owner-sheet.is-open .pf-owner-sheet__backdrop { opacity: 1; }
.pf-owner-sheet__sheet {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
}
.pf-owner-sheet.is-open .pf-owner-sheet__sheet { transform: translateY(0); }
.pf-owner-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.pf-owner-sheet__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0;
}
.pf-owner-sheet__close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); */
    border-radius: 50%;
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    cursor: pointer;
}
.pf-owner-sheet__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.pf-owner-menu__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0.9rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}
.pf-owner-menu__item--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-black);
}
.pf-owner-menu__icon {
    width: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Profile not available ───────────────────────────────────────────────── */
.pf-unavailable {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: var(--color-black);
}
.pf-unavailable__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 360px;
    gap: 1rem;
}
.pf-unavailable__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.pf-unavailable__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}
.pf-unavailable__sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.48);
    margin: 0;
    line-height: 1.6;
}
.pf-unavailable__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.16);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.pf-unavailable__back:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ── Masthead visitor row (follow + ellipsis) ────────────────────────────── */
.pf-masthead__visitor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile-only masthead follow button: hidden on desktop, shown on mobile */
.pf-masthead__visitor .pf-follow-btn--masthead {
    display: none;
}

@media (max-width: 640px) {
    .pf-masthead__visitor .pf-follow-btn--masthead {
        -webkit-appearance: none;
        appearance: none;
        display: inline-block;
        height: 34px;
        padding: 0 0.875rem;
        border-radius: var(--radius-sm);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        line-height: 34px;
        border-width: 1.5px;
        vertical-align: middle;
        white-space: nowrap;
    }
    .pf-masthead__visitor .pf-follow-btn--masthead.is-following {
        border-color: rgba(255,255,255,0.25);
        color: rgba(255,255,255,0.7);
    }
    .pf-name-row .pf-follow-btn { display: none; }
}

/* ── Ellipsis menu ───────────────────────────────────────────────────────── */
.pf-ellipsis-wrap {
    position: relative;
}
.pf-ellipsis-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pf-ellipsis-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.pf-ellipsis-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: rgba(10,10,10,0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 200;
}
.pf-ellipsis-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.pf-ellipsis-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
}
.pf-ellipsis-item:hover { background: rgba(255,255,255,0.06); color: var(--color-white); }
.pf-ellipsis-item--danger { color: #ef4444; }
.pf-ellipsis-item--danger:hover { background: rgba(239,68,68,0.12); }
.pf-ellipsis-item + .pf-ellipsis-item { border-top: 1px solid rgba(255,255,255,0.07); }

/* ── Custom share modal ──────────────────────────────────────────────────── */
.pf-share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1100;
    display: flex;
    align-items: flex-end;          /* bottom-sheet on mobile */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.pf-share-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
.pf-share-modal {
    background: #0a0a0a;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.5rem 2rem;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    position: relative;
}
.pf-share-overlay.is-open .pf-share-modal { transform: translateY(0); }

/* Center on wider screens */
@media (min-width: 540px) {
    .pf-share-overlay { align-items: center; }
    .pf-share-modal { border-radius: 14px; max-width: 400px; padding: 1.5rem; }
}

.pf-share-modal__handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}
@media (min-width: 540px) { .pf-share-modal__handle { display: none; } }

.pf-share-modal__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0 0 1.25rem;
    text-align: center;
}

.pf-share-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.pf-share-preview__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.pf-share-preview__info { display: flex; flex-direction: column; min-width: 0; }
.pf-share-preview__info strong { font-size: 0.875rem; color: #fff; }
.pf-share-preview__info span   { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.pf-share-url-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.pf-share-url-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-body);
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    height: 38px;
}
.pf-share-copy-btn {
    height: 38px;
    padding: 0 1rem;
    border-radius: 6px;
    border: 1.5px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.pf-share-copy-btn:hover { background: var(--color-accent); color: #000; }

.pf-share-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.pf-share-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.25rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pf-share-social:hover {
    background: rgba(201,169,122,0.1);
    border-color: rgba(201,169,122,0.25);
    color: var(--color-accent);
}
.pf-share-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.pf-share-social__label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: inherit;
    text-align: center;
    white-space: nowrap;
}

.pf-share-cancel {
    display: block;
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.15s;
}
.pf-share-cancel:hover { background: rgba(255,255,255,0.1); }

/* ── Follow button ───────────────────────────────────────────────────────── */
.pf-follow-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-black);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.15s ease;
    flex-shrink: 0;
}
.pf-follow-btn:hover {
    background: transparent;
    color: var(--color-accent);
}
/* "Following" state — outlined */
.pf-follow-btn.is-following {
    background: transparent;
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.25);
}
.pf-follow-btn.is-following:hover {
    border-color: #ef4444;
    color: #ef4444;
}
/* Loading state */
.pf-follow-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Content wrap ────────────────────────────────────────────────────────── */
.pf-wrap {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0 var(--container-pad) 6rem;
    background: var(--color-black);
}

/* ── Collections rail ───────────────────────────────────────────────────── */
.pf-collections-section {
    width: 100vw;
    margin: -1rem calc(50% - 50vw) 1.5rem;
    padding: 1rem max(var(--container-pad), calc((100vw - var(--container-max)) / 2)) 1rem;
    background: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pf-collections-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.pf-collections-section__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.pf-collections-section__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    color: var(--color-white);
}

.pf-collections-section__new {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pf-collections-rail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

.pf-collections-rail::-webkit-scrollbar { display: none; }

.pf-collection {
    flex: 0 0 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-white);
    text-decoration: none;
}

.pf-collection__media {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(180deg, rgba(201,169,122,0.95), rgba(201,169,122,0.28));
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.pf-collection__media img,
.pf-collection__placeholder {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-black);
}

.pf-collection__media img {
    object-fit: cover;
    object-position: center;
}

.pf-collection__placeholder {
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.28);
}

.pf-collection__status {
    position: absolute;
    right: -2px;
    bottom: 4px;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(10,10,10,0.92);
    color: var(--color-white);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pf-collection__title {
    display: none;
}

.pf-collection__meta {
    display: none;
}

.pf-collections-drafts {
    margin-top: 1rem;
}

.pf-collections-drafts__label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
}

.pf-collections-rail--drafts .pf-collection__media {
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.pf-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s;
}
.pf-card:hover {
    border-color: rgba(201,169,122,0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}
.pf-card__cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    position: relative;
}
.pf-card__cover img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.45s ease;
}
.pf-card:hover .pf-card__cover img { transform: scale(1.05); }
.pf-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.04);
}
.pf-card__body {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.pf-card__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-white);
    margin: 0 0 0.2rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-card__meta { font-size: 0.68rem; color: rgba(255,255,255,0.42); margin: 0; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.pf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem;
    gap: 0.75rem;
}
.pf-empty__msg { font-size: 0.9rem; color: rgba(255,255,255,0.48); margin: 0; }

/* ── Stat clickable ──────────────────────────────────────────────────────── */
.pf-stat--clickable {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.pf-stat--clickable:hover { opacity: 0.75; }

/* ── Follow list modal ───────────────────────────────────────────────────── */
.pf-fl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.pf-fl-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
body.pf-modal-open { overflow: hidden; }

.pf-fl-modal {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    width: min(360px, calc(100vw - 2rem));
    max-width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}
.pf-fl-overlay.is-open .pf-fl-modal { transform: translateY(0); }

.pf-fl-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.pf-fl-modal__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
}
.pf-fl-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.42);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.pf-fl-modal__close:hover { color: var(--color-white); }

.pf-fl-modal__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.pf-fl-search__icon {
    color: rgba(255,255,255,0.42);
    flex-shrink: 0;
}
.pf-fl-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-white);
    background: transparent;
    padding: 0;
    line-height: 1.5;
}
.pf-fl-search__input::placeholder { color: rgba(255,255,255,0.28); }
.pf-fl-search__input::-webkit-search-cancel-button,
.pf-fl-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.pf-fl-modal__list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pf-fl-modal__loader {
    display: flex;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
}
.pf-fl-modal__loader .pf-spinner {
    display: block;
    border-color: rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
}

.pf-fl-modal__empty {
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.48);
    font-size: 0.875rem;
}

/* ── List items ──────────────────────────────────────────────────────────── */
.pf-fl-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.12s ease;
}
.pf-fl-item:hover { background: rgba(255,255,255,0.04); }
.pf-fl-item:last-child { border-bottom: none; }

.pf-fl-item__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.pf-fl-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}
.pf-fl-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pf-fl-item__info strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-fl-item__info span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-fl-item__actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}
.pf-fl-btn {
    -webkit-appearance: none;
    appearance: none;
    height: 28px;
    padding: 0 0.65rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pf-fl-remove,
.pf-fl-unfollow {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.72);
}
.pf-fl-remove:hover,
.pf-fl-unfollow:hover {
    border-color: rgba(255,255,255,0.42);
    color: var(--color-white);
}
.pf-fl-block {
    background: transparent;
    border: 1.5px solid rgba(239,68,68,0.3);
    color: #ef4444;
}
.pf-fl-block:hover {
    background: rgba(239,68,68,0.12);
    border-color: #ef4444;
}
.pf-fl-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Infinite scroll sentinel + spinner ──────────────────────────────────── */
.pf-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-top: 1rem;
}
.pf-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: pf-spin 0.7s linear infinite;
}
.pf-sentinel--loading .pf-spinner { display: block; }

@keyframes pf-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) { .pf-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .pf-grid { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 768px) {
    /* Manage Outfits hidden on tablet — accessible via header nav */
    .pf-btn--manage { display: none; }
}
@media (max-width: 640px) {
    .pf-masthead__inner  { padding-inline: 1rem; }
    .pf-masthead__bar    { padding: 0.65rem 0; gap: 0.5rem; }
    .pf-owner-menu { display: block; }
    .pf-back--mobile-settings { display: inline-flex; }
    .pf-btn--edit,
    .pf-btn--manage,
    .pf-btn--new,
    .pf-btn--new-collection { display: none; }
    .pf-wrap             { padding: 1.5rem 0.5rem 4rem; }

    /* ── Parent-taxonomy-style mobile cards ── */
    .pf-grid             { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .pf-card {
        position: relative;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(201,169,122,0.18);
        box-shadow: none;
        overflow: hidden;
        background: rgba(255,255,255,0.04);
    }
    .pf-card:hover       { transform: none; box-shadow: none; border-color: rgba(201,169,122,0.18); }
    .pf-card__cover      { aspect-ratio: 2 / 3; }
    .pf-card__cover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10,10,10,0.84) 0%, rgba(10,10,10,0.34) 42%, rgba(10,10,10,0.04) 72%);
        pointer-events: none;
    }
    .pf-card__placeholder {
        background: linear-gradient(160deg, #1a1714 0%, #241f1a 100%);
    }
    .pf-card__body {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        padding: 0.75rem;
        border-top: none;
        background: transparent;
    }
    .pf-card__title {
        margin: 0;
        font-size: 1rem;
        line-height: 1.15;
        color: var(--color-white);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pf-card__meta {
        display: none;
    }
    .pf-collections-section {
        display: flex;
        align-items: center;
        background: var(--color-black);
        padding: 0.55rem 1rem;
        width: 100vw;
        margin: 0 calc(50% - 50vw) 0;
        margin-bottom: 0;
        min-height: 84px;
    }
    .pf-collections-rail {
        align-items: center;
        justify-content: flex-start;
        gap: 0.65rem;
        width: 100%;
        min-height: 56px;
        padding-bottom: 0;
    }
    .pf-collection {
        flex: 0 0 auto;
        justify-content: center;
        gap: 0;
    }
    .pf-collection__media {
        width: 56px;
        height: 56px;
    }
    .pf-collection__title,
    .pf-collection__meta {
        display: none;
    }
    .pf-collection__status {
        right: -1px;
        bottom: 2px;
        padding: 0.16rem 0.38rem;
        font-size: 0.5rem;
    }
}
