/**
 * Profile page (/@{username}) — New-Desgn/Profile-page.png.
 * Markup: app/Views/pages/reels/creator.php. Behaviour: assets/js/profile.js.
 * Sizes follow the design at a 393px wide phone; 768px+ scales the page up and widens the grid.
 *
 * 1. Tokens  2. Header  3. Cover + identity  4. Stats  5. Complete card  6. Tabs + grid
 * 7. Menu, sheet, toast  8. Larger screens  9. Motion
 */

/* 1. TOKENS ================================================================ */
.pf {
    --pf-bg: #fbf7f1;
    --pf-card: #ffffff;
    --pf-ink: #14213d;
    --pf-muted: #5b6577;
    --pf-line: rgba(20, 33, 61, 0.09);
    --pf-green: #0b6b47;
    --pf-green-dark: #08583a;
    --pf-red: #e3202b;
    --pf-blue: #1f6fe5;
    --pf-tint: #eaf4ee;
    --pf-shadow: 0 6px 18px -10px rgba(20, 33, 61, 0.22), 0 1px 3px rgba(20, 33, 61, 0.05);
    --pf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --pf-gutter: 16px;
    position: relative;
    min-height: 100vh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
    background: var(--pf-bg);
    color: var(--pf-ink);
}

[data-theme="dark"] .pf {
    --pf-bg: #121614;
    --pf-card: #1c221f;
    --pf-ink: #eef4f0;
    --pf-muted: #a3b0a9;
    --pf-line: rgba(255, 255, 255, 0.09);
    --pf-green: #1f8a5f;
    --pf-green-dark: #19744f;
    --pf-red: #ff5a5f;
    --pf-blue: #6aa7ff;
    --pf-tint: rgba(131, 215, 180, 0.12);
    --pf-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.8);
}

body:has(.pf),
body:has(.pf) .main-content {
    background: var(--pf-bg, #fbf7f1);
}

.pf .material-symbols-outlined.fill {
    font-variation-settings: "FILL" 1;
}

/* 2. HEADER ================================================================ */
.pf-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 0;
}

.pf-top .home-brand {
    margin-right: auto;
    min-width: 0;
}

.pf-top .home-brand-tag {
    display: block;
}

.pf-top-actions {
    display: flex;
    gap: 8px;
}

.pf-iconbtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pf-card);
    color: var(--pf-ink);
    box-shadow: var(--pf-shadow);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s var(--pf-ease);
}

.pf-iconbtn:active {
    transform: scale(0.94);
}

.pf-iconbtn .material-symbols-outlined {
    font-size: 21px;
}

.pf-back .material-symbols-outlined {
    font-size: 18px;
}

.pf-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--pf-card);
    background: var(--pf-red);
}

/* 3. COVER + IDENTITY ===================================================== */
.pf-hero {
    position: relative;
    padding-top: 136px;
}

.pf-cover {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    height: 176px;
    overflow: hidden;
}

.pf-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 62%;
}

.pf-wave {
    position: absolute;
    left: 0;
    width: 100%;
    fill: var(--pf-bg);
}

.pf-wave--top {
    top: -1px;
    height: 20px;
}

.pf-wave--bottom {
    bottom: -1px;
    height: 64px;
}

/* Soft nakshi motifs on the cream either side of the identity block */
.pf-motif {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-repeat: no-repeat;
    background-size: contain;
}

.pf-motif--left {
    top: 172px;
    left: -26px;
    width: 92px;
    height: 112px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 112' fill='none' stroke='%23e9b98a' stroke-width='1.3'%3E%3Cpath d='M46 8 76 38 46 68 16 38Z'/%3E%3Cpath d='M46 18 66 38 46 58 26 38Z'/%3E%3Ccircle cx='46' cy='38' r='6'/%3E%3Cpath d='M46 32c-4-6-4-10 0-14 4 4 4 8 0 14ZM46 44c4 6 4 10 0 14-4-4-4-8 0-14ZM40 38c-6 4-10 4-14 0 4-4 8-4 14 0ZM52 38c6-4 10-4 14 0-4 4-8 4-14 0Z'/%3E%3Cpath d='M46 60 70 84 46 108 22 84Z'/%3E%3Cpath d='M46 72 58 84 46 96 34 84Z'/%3E%3Ccircle cx='46' cy='84' r='3'/%3E%3C/svg%3E");
}

.pf-motif--right {
    top: 212px;
    right: -10px;
    width: 70px;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70' fill='none' stroke='%23e9b98a' stroke-width='1.3'%3E%3Cpath d='M66 6C40 14 22 34 8 66'/%3E%3Cpath d='M52 14c-10-2-16 2-18 10 8 2 14-2 18-10ZM42 24c-10 0-15 5-16 13 8 0 13-5 16-13ZM32 36c-9 1-14 7-14 15 8-1 13-7 14-15ZM56 18c1 10-3 16-11 18-1-8 3-14 11-18ZM46 30c1 9-3 15-11 17-1-8 3-14 11-17ZM36 42c1 9-3 14-10 16-1-8 3-13 10-16Z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .pf-motif {
    opacity: 0.18;
}

.pf-id {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--pf-gutter);
    text-align: center;
}

.pf-avatar {
    position: relative;
    margin-bottom: 8px;
}

.pf-avatar-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--pf-card);
    background: linear-gradient(145deg, #0d7a50, #0a5c3c);
    box-shadow: 0 8px 20px -10px rgba(10, 60, 40, 0.55);
    overflow: hidden;
}

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

.pf-initials {
    font-family: var(--font-family-headline);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.pf-avatar-cam,
.pf-verified {
    position: absolute;
    right: -2px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pf-card);
    color: var(--pf-ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.pf-avatar-cam .material-symbols-outlined {
    font-size: 15px;
}

.pf-verified {
    cursor: default;
    color: #1d9bf0;
}

.pf-verified .material-symbols-outlined {
    font-size: 20px;
}

.pf-avatar.is-busy .pf-avatar-img {
    opacity: 0.55;
}

.pf-name {
    margin: 0;
    font-family: var(--font-family-headline);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--pf-ink);
    overflow-wrap: anywhere;
}

.pf-handle {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pf-muted);
}

.pf-bio {
    max-width: 340px;
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--pf-ink) 82%, transparent);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.pf-bio[hidden] {
    display: none;
}

.pf-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s var(--pf-ease), background-color 0.15s var(--pf-ease);
}

.pf-btn:active {
    transform: scale(0.97);
}

.pf-btn .material-symbols-outlined {
    font-size: 16px;
}

.pf-btn--primary {
    min-width: 130px;
    background: var(--pf-green);
    color: #fff;
    box-shadow: 0 8px 16px -10px var(--pf-green);
}

.pf-btn--primary:hover {
    background: var(--pf-green-dark);
}

.pf-btn--ghost {
    min-width: 130px;
    border: 1.5px solid var(--pf-green);
    background: transparent;
    color: var(--pf-green);
}

[data-theme="dark"] .pf-btn--ghost {
    color: #83d7b4;
    border-color: #83d7b4;
}

.pf-btn--light {
    background: var(--pf-card);
    color: var(--pf-ink);
    box-shadow: var(--pf-shadow);
}

.pf-btn--block {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.9375rem;
}

.pf-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

/* 4. STATS ================================================================= */
.pf-body {
    position: relative;
    z-index: 1;
    padding: 0 var(--pf-gutter);
}

.pf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 14px 0 0;
    padding: 7px 0;
    border-radius: 12px;
    background: var(--pf-card);
    box-shadow: var(--pf-shadow);
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.pf-stat + .pf-stat {
    border-left: 1px solid var(--pf-line);
}

.pf-stat-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pf-stat-top .material-symbols-outlined {
    font-size: 19px;
}

.pf-tone-green { color: var(--pf-green); }
.pf-tone-red { color: var(--pf-red); }
.pf-tone-blue { color: var(--pf-blue); }

[data-theme="dark"] .pf-tone-green { color: #4cc38a; }

.pf-stat-num {
    font-family: var(--font-family-headline);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--pf-ink);
}

.pf-stat-label {
    margin: 0;
    font-size: 0.625rem;
    color: var(--pf-muted);
}

/* 5. COMPLETE YOUR PROFILE ================================================= */
.pf-complete {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--pf-tint);
    box-shadow: 0 4px 12px -10px rgba(10, 60, 40, 0.5);
}

.pf-complete-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--pf-green) 22%, transparent);
    background: var(--pf-green);
    color: #fff;
    background-clip: padding-box;
}

.pf-complete-ico .material-symbols-outlined {
    font-size: 13px;
}

.pf-complete-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.pf-complete-text strong {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--pf-ink);
}

.pf-complete-text span {
    font-size: 0.53rem;
    letter-spacing: -0.005em;
    color: var(--pf-muted);
}

.pf-complete-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1px;
    height: 24px;
    padding: 0 4px 0 9px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pf-green) 35%, transparent);
    background: var(--pf-card);
    color: var(--pf-green);
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
}

[data-theme="dark"] .pf-complete-btn { color: #83d7b4; }

.pf-complete-btn .material-symbols-outlined {
    font-size: 15px;
}

/* 6. TABS + GRID =========================================================== */
.pf-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--pf-tabs, 3), 1fr);
    margin-top: 12px;
    border-bottom: 1px solid var(--pf-line);
}

.pf-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 2px 8px;
    color: var(--pf-muted);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.pf-tab .material-symbols-outlined {
    font-size: 18px;
}

.pf-tab-count {
    font-weight: 500;
}

.pf-tab.is-active {
    color: var(--pf-red);
    font-weight: 700;
}

.pf-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--pf-red);
}

.pf-panel {
    padding-top: 8px;
}

.pf-panel[hidden],
.pf-grid[hidden],
.pf-empty[hidden] {
    display: none;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pf-card {
    position: relative;
    aspect-ratio: 10 / 13;
    border-radius: 10px;
    overflow: hidden;
    background:
        url("../images/home/logo-mark.png") center 42% / 34% no-repeat,
        radial-gradient(120% 80% at 50% 0%, #2fae6d 0%, #0d6b43 45%, #06402a 100%);
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s var(--pf-ease);
}

.pf-card:hover {
    transform: translateY(-2px);
}

.pf-card-link {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.pf-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-card-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 34%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 24%);
}

.pf-card-views {
    position: absolute;
    left: 7px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pf-card-views .material-symbols-outlined {
    font-size: 15px;
}

.pf-card-vis {
    position: absolute;
    left: 6px;
    top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
}

.pf-card-vis .material-symbols-outlined {
    font-size: 13px;
}

.pf-card-more {
    position: absolute;
    top: 2px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 32px;
    color: #fff;
    cursor: pointer;
}

.pf-card-more .material-symbols-outlined {
    font-size: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pf-card.is-removing {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.2s, transform 0.2s;
}

.pf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 20px 20px;
    text-align: center;
}

.pf-empty-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pf-tint);
    color: var(--pf-green);
}

[data-theme="dark"] .pf-empty-ico { color: #83d7b4; }

.pf-empty-ico .material-symbols-outlined {
    font-size: 28px;
}

.pf-empty p {
    max-width: 260px;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pf-muted);
}

/* 7. MENU, SHEET, TOAST ===================================================== */
.pf-menu {
    position: fixed;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 6px;
    border-radius: 14px;
    background: var(--pf-card);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--pf-line);
    animation: pf-pop 0.14s var(--pf-ease);
}

.pf-menu[hidden],
.pf-menu [hidden] {
    display: none;
}

.pf-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--pf-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.pf-menu button:hover,
.pf-menu button:focus-visible {
    background: color-mix(in srgb, var(--pf-ink) 6%, transparent);
}

.pf-menu button .material-symbols-outlined {
    font-size: 20px;
    color: var(--pf-muted);
}

.pf-menu .is-danger,
.pf-menu .is-danger .material-symbols-outlined {
    color: var(--pf-red);
}

.pf-sheet {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pf-sheet[hidden] {
    display: none;
}

.pf-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 11, 0.5);
    animation: pf-fade 0.2s;
}

.pf-sheet-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: var(--pf-card);
    color: var(--pf-ink);
    animation: pf-up 0.26s var(--pf-ease);
}

.pf-grip {
    width: 40px;
    height: 4px;
    margin: 2px auto 0;
    border-radius: 4px;
    background: color-mix(in srgb, var(--pf-ink) 20%, transparent);
}

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

.pf-sheet-head h2 {
    margin: 0;
    font-family: var(--font-family-headline);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--pf-ink);
}

.pf-sheet-head .pf-iconbtn {
    box-shadow: none;
    background: color-mix(in srgb, var(--pf-ink) 7%, transparent);
}

.pf-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pf-avatar-img--sm {
    width: 64px;
    height: 64px;
    border-width: 0;
}

.pf-avatar-img--sm .pf-initials {
    font-size: 1.375rem;
}

.pf-photo-row .pf-btn {
    min-height: 38px;
    border: 1px solid var(--pf-line);
    box-shadow: none;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-field > span:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pf-muted);
}

.pf-field em {
    font-style: normal;
    font-weight: 500;
}

.pf-field input,
.pf-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--pf-line);
    background: var(--pf-bg);
    color: var(--pf-ink);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
}

.pf-field input:focus,
.pf-field textarea:focus {
    outline: none;
    border-color: var(--pf-green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-green) 18%, transparent);
}

.pf-field .is-invalid {
    border-color: var(--pf-red);
}

.pf-input-at {
    position: relative;
    display: block;
}

.pf-input-at > span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-muted);
    font-weight: 600;
}

.pf-input-at input {
    padding-left: 32px;
}

.pf-field small {
    font-size: 0.75rem;
    color: var(--pf-muted);
    overflow-wrap: anywhere;
}

.pf-field small b {
    color: var(--pf-ink);
}

.pf-form-error {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pf-red);
}

.pf-form-error:empty {
    display: none;
}

.pf-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 1080;
    max-width: calc(100% - 32px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(18, 24, 21, 0.9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transform: translateX(-50%);
    animation: pf-up 0.2s var(--pf-ease);
}

.pf-toast[hidden] {
    display: none;
}

/* The current bottom-navigation item carries a dot (design) */
body:has(.pf) .bottom-nav .nav-item.active {
    position: relative;
}

body:has(.pf) .bottom-nav .nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--pf-red, #e3202b);
}

/* Footer is not part of this page on phones (the bottom navigation is) */
@media (max-width: 767px) {
    body:has(.pf) .site-footer,
    body:has(.pf) footer.footer {
        display: none;
    }
}

/* 8. LARGER SCREENS ========================================================= */
@media (max-width: 359px) {
    .pf-top .home-brand-tag { display: none; }
    .pf-stat-top { gap: 5px; }
    .pf-tab { font-size: 0.6875rem; gap: 3px; }
}

@media (min-width: 768px) {
    .pf {
        --pf-gutter: 24px;
        padding-bottom: 48px;
    }

    .pf-top { padding: 16px 24px 0; }
    .pf-iconbtn { width: 44px; height: 44px; }
    .pf-iconbtn .material-symbols-outlined { font-size: 24px; }

    .pf-hero { padding-top: 250px; }
    .pf-cover { top: 76px; height: 300px; }
    .pf-wave--top { height: 30px; }
    .pf-wave--bottom { height: 110px; }
    .pf-motif--left { top: 300px; left: 0; width: 140px; height: 170px; }
    .pf-motif--right { top: 360px; right: 10px; width: 110px; height: 110px; }

    .pf-avatar-img { width: 128px; height: 128px; border-width: 5px; }
    .pf-initials { font-size: 2.75rem; }
    .pf-avatar-cam, .pf-verified { width: 34px; height: 34px; right: 2px; bottom: 6px; }
    .pf-avatar-cam .material-symbols-outlined { font-size: 20px; }
    .pf-name { font-size: 1.875rem; }
    .pf-handle { font-size: 1rem; }
    .pf-bio { max-width: 520px; font-size: 0.9375rem; }
    .pf-actions { gap: 12px; margin-top: 18px; }
    .pf-btn { min-height: 44px; padding: 0 22px; border-radius: 12px; font-size: 0.9375rem; }
    .pf-btn .material-symbols-outlined { font-size: 20px; }
    .pf-btn--primary, .pf-btn--ghost { min-width: 190px; }

    .pf-body { max-width: 960px; margin: 0 auto; }
    .pf-stats { margin-top: 28px; padding: 16px 0; border-radius: 18px; }
    .pf-stat-top .material-symbols-outlined { font-size: 26px; }
    .pf-stat-num { font-size: 1.375rem; }
    .pf-stat-label { font-size: 0.875rem; }
    .pf-complete { gap: 16px; margin-top: 14px; padding: 14px 18px; border-radius: 18px; }
    .pf-complete-ico { width: 44px; height: 44px; }
    .pf-complete-ico .material-symbols-outlined { font-size: 20px; }
    .pf-complete-text strong { font-size: 1rem; }
    .pf-complete-text span { font-size: 0.8125rem; }
    .pf-complete-btn { height: 36px; padding: 0 10px 0 16px; font-size: 0.875rem; }
    .pf-tabs { margin-top: 24px; }
    .pf-tab { min-height: 48px; gap: 8px; font-size: 0.9375rem; }
    .pf-tab .material-symbols-outlined { font-size: 22px; }
    .pf-panel { padding-top: 16px; }
    .pf-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .pf-card { border-radius: 14px; }
    .pf-card-views { left: 10px; bottom: 9px; font-size: 0.875rem; }
    .pf-sheet { align-items: center; }
    .pf-sheet-card { border-radius: 24px; }
    .pf-toast { bottom: 32px; }
}

@media (min-width: 1100px) {
    .pf-hero { padding-top: 290px; }
    .pf-cover { height: 340px; }
    .pf-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 9. MOTION ================================================================ */
@keyframes pf-fade { from { opacity: 0; } }
@keyframes pf-up { from { opacity: 0; transform: translate(var(--pf-tx, 0), 16px); } }
@keyframes pf-pop { from { opacity: 0; transform: scale(0.96); } }

.pf-toast { --pf-tx: -50%; }

@media (prefers-reduced-motion: reduce) {
    .pf *, .pf *::before, .pf *::after {
        animation: none !important;
        transition: none !important;
    }
}
