/* =============================================================
   Timbrica — Studio Cabinet
   Cohesive design system for the entire user account area:
   /profile, /profile/avatars, /profile/settings, /profile/achievements,
   /profile/notifications, /u/{username}.
   ============================================================= */

/* ----- Tokens (extend the existing app tokens with cabinet-only) ----- */
:root {
    --pf-bg-deep: #07091a;
    --pf-aurora-1: rgba(56, 189, 248, .55);
    --pf-aurora-2: rgba(99, 102, 241, .50);
    --pf-aurora-3: rgba(168, 85, 247, .42);
    --pf-grain: 0.04;
    --pf-card-bg: rgba(15, 23, 42, .58);
    --pf-card-edge: rgba(148, 163, 184, .14);
    --pf-card-glow: 0 24px 64px -32px rgba(56, 189, 248, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    --pf-display-font: 'Fraunces', 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
    --pf-mono-font: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --pf-shell-pad: 32px;
    --pf-radius: 22px;
    --pf-radius-sm: 14px;
    --pf-ease: cubic-bezier(.22, .61, .36, 1);
}
[data-theme="light"] {
    --pf-bg-deep: #f4f1ec;
    --pf-aurora-1: rgba(2, 132, 199, .28);
    --pf-aurora-2: rgba(99, 102, 241, .26);
    --pf-aurora-3: rgba(168, 85, 247, .22);
    --pf-card-bg: rgba(255, 255, 255, .68);
    --pf-card-edge: rgba(15, 23, 42, .08);
    --pf-card-glow: 0 24px 64px -36px rgba(2, 132, 199, .28), 0 1px 0 rgba(255, 255, 255, .8) inset;
}

/* Body backdrop while inside cabinet */
body.pf-shell-active {
    background:
        radial-gradient(1200px 800px at 110% -10%, var(--pf-aurora-1), transparent 60%),
        radial-gradient(900px 700px at -10% 110%, var(--pf-aurora-2), transparent 60%),
        radial-gradient(700px 600px at 50% 120%, var(--pf-aurora-3), transparent 60%),
        var(--pf-bg-deep);
    background-attachment: fixed;
}

/* ============================================================ */
/*                       PARALLAX BACKDROP                       */
/* ============================================================ */
.pf-aurora {
    position: fixed;
    inset: -10vh -10vw;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
}
.pf-aurora__layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    opacity: .9;
    transition: opacity .6s var(--pf-ease);
}
.pf-aurora__layer--a {
    width: 60vmax;
    height: 60vmax;
    top: -10vmax;
    right: -10vmax;
    background: radial-gradient(circle, var(--pf-aurora-1) 0%, transparent 70%);
}
.pf-aurora__layer--b {
    width: 70vmax;
    height: 70vmax;
    bottom: -20vmax;
    left: -15vmax;
    background: radial-gradient(circle, var(--pf-aurora-2) 0%, transparent 70%);
}
.pf-aurora__layer--c {
    width: 50vmax;
    height: 50vmax;
    bottom: -10vmax;
    right: -5vmax;
    background: radial-gradient(circle, var(--pf-aurora-3) 0%, transparent 70%);
}
.pf-aurora__grain {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, var(--pf-grain)) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, calc(var(--pf-grain) * .8)) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1.5px 1.5px;
    mix-blend-mode: overlay;
    opacity: .55;
}
@media (prefers-reduced-motion: reduce) {
    .pf-aurora__layer { transform: none !important; }
}

/* ============================================================ */
/*                       SHELL LAYOUT                            */
/* ============================================================ */
.pf-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 32px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
@media (max-width: 920px) {
    .pf-shell { grid-template-columns: 1fr; gap: 16px; padding-bottom: 96px; }
}

/* ----- Sidebar nav (desktop) ----- */
.pf-side {
    position: sticky;
    top: 24px;
    align-self: start;
    background: var(--pf-card-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--pf-card-edge);
    border-radius: var(--pf-radius);
    padding: 22px 18px;
    box-shadow: var(--pf-card-glow);
    overflow: hidden;
}
.pf-side::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .55), rgba(168, 85, 247, .35), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .9;
}
.pf-side__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid var(--pf-card-edge);
    margin-bottom: 12px;
    min-width: 0;
}
.pf-side__brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: conic-gradient(from 220deg, #38bdf8, #818cf8, #6366f1, #38bdf8);
    box-shadow: 0 0 0 1px var(--pf-card-edge), 0 0 16px rgba(56, 189, 248, .35);
    flex-shrink: 0;
}
.pf-side__brand-text {
    font-family: var(--pf-display-font);
    font-size: 16px;
    letter-spacing: -.01em;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-side__brand-text small {
    display: block;
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-side__item-lbl {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-side__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pf-side__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s var(--pf-ease), background-color .2s var(--pf-ease), transform .25s var(--pf-ease);
    will-change: transform;
}
.pf-side__item:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, .08);
}
.pf-side__item:active { transform: translateX(0) scale(.99); }
.pf-side__item.is-active {
    color: var(--text-primary);
    background: linear-gradient(95deg, rgba(56, 189, 248, .14), rgba(168, 85, 247, .08));
}
.pf-side__item.is-active::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #38bdf8, #a855f7);
    box-shadow: 0 0 12px rgba(56, 189, 248, .55);
}
.pf-side__item-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: currentColor;
    opacity: .8;
}
.pf-side__item.is-active .pf-side__item-ico { opacity: 1; }
.pf-side__item-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}
.pf-side__divider {
    height: 1px;
    background: var(--pf-card-edge);
    margin: 10px 0;
}
.pf-side__logout {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, .35);
    color: #f87171;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: all .2s var(--pf-ease);
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pf-side__logout:hover {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .6);
}

/* ----- Mobile bottom-nav ----- */
.pf-mobnav {
    display: none;
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: var(--pf-card-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--pf-card-edge);
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    gap: 4px;
}
.pf-mobnav__item {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 999px;
    transition: all .25s var(--pf-ease);
    position: relative;
}
.pf-mobnav__item.is-active {
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
}
.pf-mobnav__item-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}
@media (max-width: 920px) {
    .pf-side { display: none; }
    .pf-mobnav { display: flex; }
}

/* ============================================================ */
/*                          MAIN                                 */
/* ============================================================ */
.pf-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Generic card */
.pf-card {
    position: relative;
    background: var(--pf-card-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--pf-card-edge);
    border-radius: var(--pf-radius);
    padding: 28px;
    box-shadow: var(--pf-card-glow);
    overflow: hidden;
    transition: transform .35s var(--pf-ease), border-color .25s var(--pf-ease);
}
.pf-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .35), rgba(168, 85, 247, .15) 40%, transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.pf-card:hover { border-color: rgba(148, 163, 184, .25); }
.pf-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.005em;
}
.pf-card__title-eyebrow {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}
.pf-card__title-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s var(--pf-ease);
}
.pf-card__title-link::after {
    content: '→';
    transition: transform .2s var(--pf-ease);
    display: inline-block;
}
.pf-card__title-link:hover { gap: 8px; }
.pf-card__title-link:hover::after { transform: translateX(2px); }

.pf-card--accent::before {
    background: linear-gradient(135deg, rgba(129, 140, 248, .55), rgba(168, 85, 247, .25), transparent 60%);
}
.pf-card--success::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, .55), rgba(56, 189, 248, .15), transparent 60%);
}
.pf-card--danger::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, .55), rgba(99, 102, 241, .25), transparent 60%);
}

/* ============================================================ */
/*                       WELCOME BANNER                          */
/* ============================================================ */
.pf-welcome {
    position: relative;
    overflow: hidden;
    padding: 32px 36px;
    border-radius: var(--pf-radius);
    background:
        radial-gradient(circle at 90% -20%, rgba(129, 140, 248, .25), transparent 50%),
        radial-gradient(circle at -10% 110%, rgba(168, 85, 247, .25), transparent 55%),
        var(--pf-card-bg);
    border: 1px solid var(--pf-card-edge);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--pf-card-glow);
    isolation: isolate;
}
.pf-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(129, 140, 248, .55), rgba(168, 85, 247, .35), rgba(56, 189, 248, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.pf-welcome::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, .35), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: pfWelcomeBlob 18s ease-in-out infinite;
}
@keyframes pfWelcomeBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.15); }
}
.pf-welcome__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}
.pf-welcome__sparkle {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a855f7);
    box-shadow: 0 12px 32px -8px rgba(251, 191, 36, .55), 0 0 0 1px rgba(255, 255, 255, .12) inset;
    font-size: 28px;
    flex-shrink: 0;
    transform-origin: center;
    animation: pfWelcomeWiggle 3.6s ease-in-out infinite;
}
@keyframes pfWelcomeWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(8deg); }
}
.pf-welcome__eyebrow {
    font-family: var(--pf-mono-font);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #818cf8;
    margin: 0 0 4px;
    font-weight: 600;
}
.pf-welcome__title {
    font-family: var(--pf-display-font);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.pf-welcome__title em {
    font-style: italic;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pf-welcome__desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.55;
    max-width: 580px;
}
.pf-welcome__ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pf-welcome__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s var(--pf-ease), box-shadow .25s var(--pf-ease);
    letter-spacing: .02em;
}
.pf-welcome__cta--primary {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(168, 85, 247, .55);
}
.pf-welcome__cta--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(168, 85, 247, .65); }
.pf-welcome__cta--ghost {
    background: rgba(15, 23, 42, .35);
    color: var(--text-primary);
    border: 1px solid var(--pf-card-edge);
}
.pf-welcome__cta--ghost:hover { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .05); transform: translateY(-1px); }
.pf-welcome__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s var(--pf-ease);
    z-index: 1;
}
.pf-welcome__close:hover { color: var(--text-primary); background: rgba(15, 23, 42, .8); border-color: rgba(148, 163, 184, .35); }
.pf-welcome__close svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
    .pf-welcome { padding: 24px 22px; }
    .pf-welcome__inner { grid-template-columns: 1fr; text-align: left; }
    .pf-welcome__sparkle { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-welcome::after { animation: none; }
    .pf-welcome__sparkle { animation: none; }
}

/* ============================================================ */
/*                          HERO                                 */
/* ============================================================ */
.pf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 36px 36px 32px;
}
.pf-hero__eyebrow {
    font-family: var(--pf-mono-font);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pf-hero__name {
    font-family: var(--pf-display-font);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.pf-hero__name em {
    font-style: italic;
    background: linear-gradient(135deg, #38bdf8, #a855f7 60%, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pf-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}
.pf-hero__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.pf-hero__streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-weight: 600;
}
.pf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid var(--pf-card-edge);
    border-radius: 999px;
    background: rgba(15, 23, 42, .35);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s var(--pf-ease);
}
.pf-hero__cta:hover {
    border-color: rgba(56, 189, 248, .5);
    background: rgba(56, 189, 248, .08);
    transform: translateY(-1px);
}
.pf-hero__cta svg { width: 14px; height: 14px; }

.pf-hero__avatar {
    position: relative;
    width: clamp(112px, 14vw, 160px);
    height: clamp(112px, 14vw, 160px);
    flex-shrink: 0;
    isolation: isolate;
    display: grid;
    place-items: center;
}
.pf-hero__avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from var(--ring-rot, 0deg), #38bdf8, #a855f7, #6366f1, #818cf8, #38bdf8);
    filter: blur(.4px);
    animation: pfRingSpin 18s linear infinite;
    z-index: -1;
}
.pf-hero__avatar-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--pf-bg-deep);
}
.pf-hero__avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15) inset;
}
.pf-hero__avatar-emoji {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-tertiary);
    font-size: clamp(48px, 7vw, 72px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15) inset;
}
.pf-hero__avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    border: 3px solid var(--pf-bg-deep);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .2s var(--pf-ease);
    text-decoration: none;
    z-index: 2;
}
.pf-hero__avatar-edit:hover { transform: scale(1.1) rotate(-8deg); }
.pf-hero__avatar-edit svg { width: 16px; height: 16px; }

@keyframes pfRingSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .pf-hero { grid-template-columns: 1fr; padding: 28px; gap: 20px; text-align: center; }
    .pf-hero__avatar { margin: 0 auto; }
    .pf-hero__meta { justify-content: center; }
}

/* ============================================================ */
/*                       LEVEL / XP                              */
/* ============================================================ */
.pf-level {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--pf-card-edge);
}
.pf-level__badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(129, 140, 248, .14), rgba(168, 85, 247, .14));
    border: 1px solid rgba(129, 140, 248, .35);
}
.pf-level__num {
    font-family: var(--pf-display-font);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pf-level__lbl {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--pf-mono-font);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: var(--pf-bg-deep);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--pf-card-edge);
    color: var(--text-muted);
    font-weight: 600;
}
.pf-level__info { min-width: 0; }
.pf-level__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
.pf-level__title-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pf-xp-track {
    position: relative;
    height: 10px;
    background: rgba(15, 23, 42, .55);
    border: 1px solid var(--pf-card-edge);
    border-radius: 999px;
    overflow: hidden;
}
.pf-xp-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--pf-xp, 0%);
    background: linear-gradient(90deg, #38bdf8, #a855f7, #6366f1);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(.65, .04, .27, 1);
    box-shadow: 0 0 16px rgba(168, 85, 247, .55);
}
.pf-xp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: pfShimmer 2.4s linear infinite;
    border-radius: inherit;
}
@keyframes pfShimmer {
    from { background-position: 0% 0; }
    to { background-position: -220% 0; }
}
.pf-xp-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--pf-mono-font);
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: .04em;
}
.pf-xp-meta strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 540px) {
    .pf-level { grid-template-columns: 1fr; text-align: center; }
    .pf-level__badge { margin: 0 auto; }
}

/* ============================================================ */
/*                      STATS GRID                               */
/* ============================================================ */
.pf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.pf-stats__item {
    position: relative;
    background: var(--pf-card-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--pf-card-edge);
    border-radius: 18px;
    padding: 20px;
    overflow: hidden;
    transition: transform .35s var(--pf-ease);
    will-change: transform;
}
.pf-stats__item::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, var(--c, rgba(56, 189, 248, .25)) 0%, transparent 60%);
    pointer-events: none;
    transition: transform .6s var(--pf-ease);
}
.pf-stats__item:hover { transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(-3px); }
.pf-stats__item:hover::after { transform: translate(-10%, -10%) scale(1.2); }
.pf-stats__item--cyan   { --c: rgba(56, 189, 248, .35); }
.pf-stats__item--violet { --c: rgba(168, 85, 247, .35); }
.pf-stats__item--amber  { --c: rgba(129, 140, 248, .32); }
.pf-stats__item--pink   { --c: rgba(99, 102, 241, .32); }
.pf-stats__num {
    font-family: var(--pf-display-font);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1;
    color: var(--text-primary);
    margin: 0 0 4px;
    position: relative;
    z-index: 1;
}
.pf-stats__lbl {
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: .01em;
    position: relative;
    z-index: 1;
}
@media (max-width: 720px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================ */
/*                      DAILY CHALLENGE                          */
/* ============================================================ */
.pf-challenge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}
.pf-challenge__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(129, 140, 248, .2), rgba(168, 85, 247, .15));
    border: 1px solid rgba(129, 140, 248, .35);
    font-size: 26px;
}
.pf-challenge[data-done="1"] .pf-challenge__icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(56, 189, 248, .15));
    border-color: rgba(34, 197, 94, .35);
}
.pf-challenge__title {
    font-family: var(--pf-mono-font);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}
.pf-challenge__desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -.005em;
}
.pf-challenge[data-done="1"] .pf-challenge__desc {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(34, 197, 94, .55);
    text-decoration-thickness: 1.5px;
}
.pf-challenge__reward {
    font-family: var(--pf-mono-font);
    font-size: 13px;
    font-weight: 700;
    color: #818cf8;
    background: rgba(129, 140, 248, .12);
    border: 1px solid rgba(129, 140, 248, .35);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}
.pf-challenge[data-done="1"] .pf-challenge__reward {
    color: #34d399;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .35);
}
@media (max-width: 600px) {
    .pf-challenge { grid-template-columns: auto minmax(0, 1fr); }
    .pf-challenge__reward { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}

/* ============================================================ */
/*                      ACTIVITY HEATMAP                         */
/* ============================================================ */
.pf-heat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13px, 1fr));
    gap: 4px;
    padding-top: 6px;
}
.pf-heat__day {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(148, 163, 184, .08);
    transition: transform .15s var(--pf-ease), filter .15s var(--pf-ease);
    cursor: default;
}
.pf-heat__day:hover {
    transform: scale(1.6);
    filter: brightness(1.3);
    z-index: 2;
    position: relative;
}
.pf-heat__day[data-l="1"] { background: rgba(56, 189, 248, .25); }
.pf-heat__day[data-l="2"] { background: rgba(56, 189, 248, .5); }
.pf-heat__day[data-l="3"] { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.pf-heat__day[data-l="4"] { background: linear-gradient(135deg, #818cf8, #a855f7); box-shadow: 0 0 8px rgba(168, 85, 247, .55); }
.pf-heat__legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    justify-content: flex-end;
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: .08em;
}
.pf-heat__legend-cell {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: rgba(148, 163, 184, .08);
}
.pf-heat__legend-cell[data-l="1"] { background: rgba(56, 189, 248, .25); }
.pf-heat__legend-cell[data-l="2"] { background: rgba(56, 189, 248, .5); }
.pf-heat__legend-cell[data-l="3"] { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.pf-heat__legend-cell[data-l="4"] { background: linear-gradient(135deg, #818cf8, #a855f7); box-shadow: 0 0 8px rgba(168, 85, 247, .55); }

/* ============================================================ */
/*                  RECENT ACTIVITY / MOST USED                  */
/* ============================================================ */
.pf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pf-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background-color .25s var(--pf-ease), transform .25s var(--pf-ease);
}
.pf-list__item:hover {
    background: rgba(56, 189, 248, .07);
    transform: translateX(3px);
}
.pf-list__icon {
    flex-shrink: 0;
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(148, 163, 184, .07);
}
.pf-list__title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-list__meta {
    flex-shrink: 0;
    font-family: var(--pf-mono-font);
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: .03em;
}
.pf-list__bar {
    flex-shrink: 0;
    width: 80px;
    height: 6px;
    background: rgba(148, 163, 184, .12);
    border-radius: 999px;
    overflow: hidden;
}
.pf-list__bar-fill {
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    border-radius: inherit;
    transition: width 1s var(--pf-ease);
}
.pf-list__empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px 0;
}

/* ============================================================ */
/*                      RECOMMENDATIONS                          */
/* ============================================================ */
.pf-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.pf-rec {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .35);
    border: 1px solid var(--pf-card-edge);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform .3s var(--pf-ease), border-color .25s var(--pf-ease), background-color .25s var(--pf-ease);
    overflow: hidden;
}
.pf-rec::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center top, rgba(56, 189, 248, .18), transparent 60%);
    opacity: 0;
    transition: opacity .3s var(--pf-ease);
}
.pf-rec:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, .35);
}
.pf-rec:hover::after { opacity: 1; }
.pf-rec__icon { font-size: 32px; line-height: 1; position: relative; }
.pf-rec__name {
    font-size: 12.5px;
    text-align: center;
    line-height: 1.25;
    letter-spacing: .005em;
    color: var(--text-secondary);
    position: relative;
}

/* ============================================================ */
/*                          REFERRAL                             */
/* ============================================================ */
.pf-ref {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    margin-top: 12px;
}
.pf-ref__input {
    padding: 12px 16px;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--pf-mono-font);
    font-size: 13px;
    outline: none;
    width: 100%;
}
.pf-ref__input:focus {
    border-color: rgba(56, 189, 248, .55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .1);
}
.pf-ref__btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .2s var(--pf-ease), box-shadow .25s var(--pf-ease);
    white-space: nowrap;
}
.pf-ref__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(168, 85, 247, .55); }
.pf-ref__btn[data-copied="1"] { background: linear-gradient(135deg, #34d399, #22d3ee); }
.pf-ref__count {
    font-family: var(--pf-mono-font);
    font-size: 12px;
    color: var(--accent);
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

/* ============================================================ */
/*                       AVATAR PICKER                           */
/* ============================================================ */
.pf-avatars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}
.pf-avatar-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 22px;
    border: 1px solid var(--pf-card-edge);
    background: rgba(15, 23, 42, .4);
    cursor: pointer;
    overflow: hidden;
    transition: transform .35s var(--pf-ease), border-color .25s var(--pf-ease), box-shadow .3s var(--pf-ease);
    will-change: transform;
    padding: 0;
    display: grid;
    place-items: center;
    font: inherit;
}
.pf-avatar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(56, 189, 248, .35), transparent 50%);
    opacity: 0;
    transition: opacity .3s var(--pf-ease);
    pointer-events: none;
}
.pf-avatar-card:hover { transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(-4px) rotate(-1deg); }
.pf-avatar-card:hover::before { opacity: .35; }
.pf-avatar-card.is-selected {
    border-color: transparent;
    box-shadow:
        0 0 0 2px var(--pf-bg-deep),
        0 0 0 4px #38bdf8,
        0 18px 48px -16px rgba(56, 189, 248, .65);
    transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(-4px) scale(1.02);
}
.pf-avatar-card.is-selected:hover {
    transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(-6px) scale(1.04) rotate(-1deg);
}
.pf-avatar-card.is-selected::before { opacity: .55; }
.pf-avatar-card__img {
    width: 76%;
    height: 76%;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    transition: transform .35s var(--pf-ease);
}
.pf-avatar-card:hover .pf-avatar-card__img { transform: scale(1.08); }
.pf-avatar-card__name {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--pf-mono-font);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(7, 9, 26, .85);
    padding: 3px 8px;
    border-radius: 999px;
    pointer-events: none;
}
.pf-avatar-card.is-selected .pf-avatar-card__name {
    color: #fff;
    background: rgba(56, 189, 248, .9);
}
.pf-avatar-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #38bdf8;
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity .25s var(--pf-ease), transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.pf-avatar-card.is-selected .pf-avatar-card__check { opacity: 1; transform: scale(1); }
.pf-avatar-card__check svg { width: 14px; height: 14px; }

.pf-avatar-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 18px;
}
.pf-avatar-toggle button {
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 999px;
    transition: all .25s var(--pf-ease);
}
.pf-avatar-toggle button.is-active {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(168, 85, 247, .55);
}

/* Hide-able panels for the toggle */
.pf-avatar-tab { display: none; }
.pf-avatar-tab.is-active { display: block; }

/* ============================================================ */
/*                          SHOWCASE                             */
/* ============================================================ */
.pf-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 14px;
}
.pf-showcase__empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    grid-column: 1 / -1;
}

/* ============================================================ */
/*                          FORMS                                */
/* ============================================================ */
.pf-form {
    display: grid;
    gap: 18px;
}
.pf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.pf-form-grid--full > * { grid-column: 1 / -1; }
.pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pf-field--full { grid-column: 1 / -1; }
.pf-field label {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}
.pf-field input,
.pf-field select,
.pf-field textarea {
    padding: 12px 16px;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s var(--pf-ease), box-shadow .25s var(--pf-ease), background-color .2s var(--pf-ease);
    width: 100%;
}
.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
    border-color: rgba(56, 189, 248, .55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
    background: rgba(15, 23, 42, .65);
}
.pf-field textarea { resize: vertical; min-height: 80px; }
.pf-field small {
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: .01em;
}
@media (max-width: 600px) { .pf-form-grid { grid-template-columns: 1fr; } }

.pf-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 6px;
}
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s var(--pf-ease), box-shadow .25s var(--pf-ease);
}
.pf-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(168, 85, 247, .55); }
.pf-btn:active { transform: translateY(0) scale(.99); }
.pf-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--pf-card-edge);
}
.pf-btn--ghost:hover {
    background: rgba(148, 163, 184, .07);
    border-color: rgba(148, 163, 184, .25);
    box-shadow: none;
}
.pf-btn--danger { background: linear-gradient(135deg, #ef4444, #f43f5e); }
.pf-btn--danger:hover { box-shadow: 0 12px 32px -10px rgba(239, 68, 68, .55); }

.pf-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #4ade80;
    font-size: 13.5px;
}
.pf-status svg { flex-shrink: 0; width: 16px; height: 16px; }
.pf-error {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
    font-size: 13.5px;
}

/* Switch / checkbox in settings */
.pf-switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .35);
    border: 1px solid var(--pf-card-edge);
    cursor: pointer;
    transition: border-color .25s var(--pf-ease), background-color .25s var(--pf-ease);
}
.pf-switch:hover { border-color: rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .06); }
.pf-switch input { display: none; }
.pf-switch__control {
    flex-shrink: 0;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .25);
    position: relative;
    transition: background-color .25s var(--pf-ease);
    margin-top: 2px;
}
.pf-switch__control::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.pf-switch input:checked + .pf-switch__control {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
}
.pf-switch input:checked + .pf-switch__control::after { transform: translateX(16px); }
.pf-switch__txt strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    letter-spacing: -.005em;
}
.pf-switch__txt span {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ============================================================ */
/*                          THEMES                               */
/* ============================================================ */
.pf-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.pf-theme {
    position: relative;
    padding: 22px 16px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, .4);
    border: 1px solid var(--pf-card-edge);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    font: inherit;
    color: var(--text-primary);
    transition: transform .3s var(--pf-ease), border-color .25s var(--pf-ease);
    will-change: transform;
}
.pf-theme:hover:not([disabled]) { transform: translateY(-3px); border-color: rgba(56, 189, 248, .35); }
.pf-theme[disabled] { cursor: not-allowed; opacity: .55; }
.pf-theme.is-active {
    border-color: var(--theme-c, #38bdf8);
    box-shadow: 0 12px 36px -12px var(--theme-c-glow, rgba(56, 189, 248, .55));
}
.pf-theme__swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--theme-c, #38bdf8);
    box-shadow: 0 0 24px var(--theme-c-glow, rgba(56, 189, 248, .65));
}
.pf-theme__name {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.pf-theme__locked {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: .08em;
}

/* ============================================================ */
/*                       NOTIFICATIONS LIST                      */
/* ============================================================ */
.pf-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}
.pf-notif-empty svg { width: 56px; height: 56px; opacity: .5; }
.pf-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pf-notif {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .35);
    border: 1px solid var(--pf-card-edge);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s var(--pf-ease), background-color .25s var(--pf-ease);
    align-items: start;
}
.pf-notif:hover {
    border-color: rgba(56, 189, 248, .35);
    background: rgba(56, 189, 248, .05);
}
.pf-notif--unread {
    background: linear-gradient(95deg, rgba(56, 189, 248, .08), rgba(168, 85, 247, .04));
    border-color: rgba(56, 189, 248, .35);
}
.pf-notif__dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}
.pf-notif--unread .pf-notif__dot {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    box-shadow: 0 0 12px rgba(56, 189, 248, .65);
}
.pf-notif__meta {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.pf-notif__meta strong { color: var(--text-primary); font-weight: 600; }
.pf-notif__excerpt {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pf-notif__tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(148, 163, 184, .1);
    border-radius: 999px;
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: .04em;
    margin-top: 8px;
}
.pf-notif__time {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: .03em;
    white-space: nowrap;
}

/* ============================================================ */
/*                  PUBLIC PROFILE / SHOWCASE-PUB                */
/* ============================================================ */
.pf-public {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================ */
/*                           UTIL                                */
/* ============================================================ */
.pf-tilt {
    transition: transform .35s var(--pf-ease);
    will-change: transform;
    transform-style: preserve-3d;
    --tilt-rx: 0deg;
    --tilt-ry: 0deg;
}
.pf-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--pf-ease), transform .7s var(--pf-ease);
}
.pf-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .pf-reveal { opacity: 1; transform: none; transition: none; }
    .pf-hero__avatar-ring { animation: none; }
    .pf-xp-fill::after { animation: none; }
    .pf-tilt { transition: none; }
}

/* ============================================================ */
/*                          RTL                                  */
/* ============================================================ */
[dir="rtl"] .pf-shell { grid-template-columns: minmax(0, 1fr) 248px; }
@media (max-width: 920px) {
    [dir="rtl"] .pf-shell { grid-template-columns: 1fr; }
}
[dir="rtl"] .pf-side { grid-column: 2; }
[dir="rtl"] .pf-main { grid-column: 1; grid-row: 1; }
[dir="rtl"] .pf-side__item.is-active::before { left: auto; right: -18px; border-radius: 3px 0 0 3px; }
[dir="rtl"] .pf-list__item:hover { transform: translateX(-3px); }
[dir="rtl"] .pf-card__title-link::after { content: '←'; }
[dir="rtl"] .pf-card__title-link:hover::after { transform: translateX(-2px); }
[dir="rtl"] .pf-side__brand-text small { letter-spacing: 0; }

/* ============================================================ */
/*           PARALLAX 2.0 — 4th layer + cursor glow              */
/* ============================================================ */
/* Star-field layer: very far depth, twinkles, subtle. */
.pf-aurora__layer--d {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    border-radius: 0;
    filter: none;
    opacity: .55;
    background-image:
        radial-gradient(1.5px 1.5px at 18% 22%, #e0e7ff 50%, transparent 100%),
        radial-gradient(1px 1px at 71% 9%, #c7d2fe 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 33% 67%, #fde68a 50%, transparent 100%),
        radial-gradient(1px 1px at 82% 78%, #ddd6fe 50%, transparent 100%),
        radial-gradient(1.4px 1.4px at 56% 38%, #fef3c7 50%, transparent 100%),
        radial-gradient(1px 1px at 8% 88%, #c7d2fe 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 92% 44%, #fde68a 50%, transparent 100%),
        radial-gradient(1px 1px at 47% 14%, #ddd6fe 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 23% 53%, #e0e7ff 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 91%, #c7d2fe 50%, transparent 100%);
    animation: pfStarsTwinkle 6s ease-in-out infinite;
    mix-blend-mode: screen;
}
[data-theme="light"] .pf-aurora__layer--d {
    opacity: .35;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(1.5px 1.5px at 18% 22%, #1e3a8a 50%, transparent 100%),
        radial-gradient(1px 1px at 71% 9%, #6d28d9 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 33% 67%, #be185d 50%, transparent 100%),
        radial-gradient(1px 1px at 82% 78%, #1e3a8a 50%, transparent 100%),
        radial-gradient(1.4px 1.4px at 56% 38%, #6d28d9 50%, transparent 100%),
        radial-gradient(1px 1px at 8% 88%, #1e3a8a 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 92% 44%, #be185d 50%, transparent 100%),
        radial-gradient(1px 1px at 47% 14%, #6d28d9 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 23% 53%, #1e3a8a 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 91%, #6d28d9 50%, transparent 100%);
}
@keyframes pfStarsTwinkle {
    0%, 100% { opacity: .55; }
    50% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-aurora__layer--d { animation: none; }
}

/* Cursor glow — radial gradient that follows the pointer (desktop only) */
.pf-cursor-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    inset: 0;
    opacity: 0;
    transition: opacity .4s var(--pf-ease);
    mix-blend-mode: screen;
}
[data-theme="light"] .pf-cursor-glow { mix-blend-mode: multiply; }
.pf-cursor-glow.is-active { opacity: 1; }
.pf-cursor-glow::before {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, .22) 0%, rgba(168, 85, 247, .12) 35%, transparent 65%);
    filter: blur(40px);
    transform: translate3d(var(--cgX, 50vw), var(--cgY, 50vh), 0) translate(-50%, -50%);
    will-change: transform;
}
[data-theme="light"] .pf-cursor-glow::before {
    background: radial-gradient(circle, rgba(2, 132, 199, .14) 0%, rgba(168, 85, 247, .08) 35%, transparent 65%);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    .pf-cursor-glow { display: none; }
}

/* ============================================================ */
/*           HERO 3D DEPTH — perspective + layered translateZ    */
/* ============================================================ */
.pf-hero {
    perspective: 1400px;
    transform-style: preserve-3d;
}
.pf-hero > div:first-child {
    transform-style: preserve-3d;
    transition: transform .6s var(--pf-ease);
}
.pf-hero__name,
.pf-hero__cta,
.pf-level {
    transition: transform .6s var(--pf-ease);
    will-change: transform;
}
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .pf-hero[data-tilt-active="1"] .pf-hero__name { transform: translateZ(40px); }
    .pf-hero[data-tilt-active="1"] .pf-hero__meta { transform: translateZ(20px); }
    .pf-hero[data-tilt-active="1"] .pf-hero__cta { transform: translateZ(30px); }
    .pf-hero[data-tilt-active="1"] .pf-level { transform: translateZ(15px); }
    .pf-hero[data-tilt-active="1"] .pf-hero__avatar { transform: translateZ(60px) scale(1.04); }
    .pf-hero__avatar { transition: transform .6s var(--pf-ease); }
}

/* Tilt 2.0 — stronger transform + subtle glow on hover */
.pf-tilt {
    transform-style: preserve-3d;
    transition: transform .35s var(--pf-ease), box-shadow .35s var(--pf-ease);
}
.pf-tilt {
    transform: perspective(1000px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg));
}
@media (pointer: fine) {
    .pf-tilt:hover {
        box-shadow: 0 30px 80px -32px rgba(56, 189, 248, .42), 0 1px 0 rgba(255, 255, 255, .06) inset;
    }
}

/* Stat-cards lift on hover (used together with pf-tilt on cabinet stats) */
.pf-stats__item.pf-tilt {
    transition: transform .35s var(--pf-ease), box-shadow .35s var(--pf-ease), border-color .25s var(--pf-ease);
}

/* ============================================================ */
/*         FLOATING ACTION DOTS — sprinkles around hero          */
/* ============================================================ */
.pf-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow:
        160px 50px 0 -1px rgba(168, 85, 247, .8),
        -120px 90px 0 -2px rgba(99, 102, 241, .7),
        220px 130px 0 -3px rgba(56, 189, 248, .55),
        -200px 30px 0 -2px rgba(129, 140, 248, .65),
        300px -10px 0 -3px rgba(34, 197, 94, .55);
    top: 30%;
    left: 65%;
    opacity: .7;
    animation: pfHeroDots 14s ease-in-out infinite;
    will-change: transform;
}
@keyframes pfHeroDots {
    0%, 100% { transform: translate(0, 0); opacity: .7; }
    33% { transform: translate(-12px, -8px); opacity: .9; }
    66% { transform: translate(8px, -16px); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-hero::after { animation: none; }
}

/* ============================================================ */
/*           PUBLIC PROFILE — social-network-style card          */
/* ============================================================ */
.pf-pinned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.pf-pinned__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(15, 23, 42, .35);
    border: 1px solid var(--pf-card-edge);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .25s var(--pf-ease), border-color .25s var(--pf-ease), box-shadow .25s var(--pf-ease);
    overflow: hidden;
    isolation: isolate;
}
.pf-pinned__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(56, 189, 248, .15));
    opacity: 0;
    transition: opacity .3s var(--pf-ease);
    z-index: -1;
}
.pf-pinned__item:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 18px 40px -22px rgba(56, 189, 248, .55);
}
.pf-pinned__item:hover::before { opacity: 1; }
.pf-pinned__icon {
    font-size: 30px;
    line-height: 1;
}
.pf-pinned__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.005em;
}
.pf-pinned__meta {
    font-family: var(--pf-mono-font);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    font-size: 12.5px;
    font-weight: 500;
    color: #34d399;
    margin-top: 10px;
}
.pf-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: pfStatusPulse 2s ease-in-out infinite;
}
@keyframes pfStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pf-status--idle {
    background: rgba(148, 163, 184, .1);
    border-color: rgba(148, 163, 184, .25);
    color: var(--text-muted);
}
.pf-status--idle .pf-status__dot { background: #94a3b8; animation: none; }

.pf-public-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
}
.pf-public-stats__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pf-public-stats__num {
    font-family: var(--pf-display-font);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text-primary);
}
.pf-public-stats__lbl {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================ */
/*              MESSAGES — inbox + conversation                  */
/* ============================================================ */
.pf-msg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pf-msg-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, .35);
    border: 1px solid var(--pf-card-edge);
    transition: transform .2s var(--pf-ease), background-color .25s var(--pf-ease), border-color .25s var(--pf-ease);
}
.pf-msg-row:hover {
    transform: translateX(3px);
    background: rgba(15, 23, 42, .55);
    border-color: rgba(148, 163, 184, .25);
}
.pf-msg-row.is-unread {
    background: linear-gradient(95deg, rgba(56, 189, 248, .1), rgba(168, 85, 247, .05));
    border-color: rgba(56, 189, 248, .3);
}
.pf-msg-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.pf-msg-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-msg-row__info { min-width: 0; }
.pf-msg-row__name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-msg-row__preview {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.pf-msg-row.is-unread .pf-msg-row__preview { color: var(--text-secondary); font-weight: 500; }
.pf-msg-row__meta {
    text-align: right;
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: .04em;
    white-space: nowrap;
}
.pf-msg-row__badge {
    display: inline-block;
    margin-top: 4px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.4;
}

.pf-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(60vh, 540px);
    overflow-y: auto;
    padding: 8px 4px 4px;
    scrollbar-width: thin;
}
.pf-thread__bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.pf-thread__bubble--in {
    align-self: flex-start;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.pf-thread__bubble--out {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(168, 85, 247, .2));
    border: 1px solid rgba(56, 189, 248, .35);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}
.pf-thread__time {
    font-family: var(--pf-mono-font);
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-top: 2px;
    opacity: .7;
}
.pf-thread__day-divider {
    align-self: center;
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--pf-card-edge);
}
.pf-thread__compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
    align-items: end;
}
.pf-thread__compose textarea {
    min-height: 44px;
    max-height: 160px;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .55);
    border: 1px solid var(--pf-card-edge);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .25s var(--pf-ease);
}
.pf-thread__compose textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, .55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
}

/* ============================================================ */
/*       FORECAST PAGE — animated progression rings              */
/* ============================================================ */
.pf-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.pf-forecast__card {
    position: relative;
    padding: 22px;
    background: rgba(15, 23, 42, .4);
    border: 1px solid var(--pf-card-edge);
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
}
.pf-forecast__card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from var(--ring-from, 0deg), rgba(56, 189, 248, .25), rgba(168, 85, 247, .25), transparent 60%);
    animation: pfForecastSpin 22s linear infinite;
    z-index: -1;
    opacity: .6;
}
@keyframes pfForecastSpin {
    to { transform: rotate(360deg); }
}
.pf-forecast__eta {
    font-family: var(--pf-display-font);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text-primary);
    line-height: 1;
}
.pf-forecast__lbl {
    font-family: var(--pf-mono-font);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
}
.pf-forecast__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) {
    .pf-forecast__card::before { animation: none; }
}

/* ============================================================ */
/*           AVATAR-UPLOAD — animated upload zone                */
/* ============================================================ */
.pf-avatar-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border: 2px dashed var(--pf-card-edge);
    border-radius: 18px;
    background: rgba(15, 23, 42, .3);
    cursor: pointer;
    transition: all .25s var(--pf-ease);
    text-align: center;
}
.pf-avatar-upload:hover,
.pf-avatar-upload.is-drag {
    border-color: rgba(56, 189, 248, .55);
    background: rgba(56, 189, 248, .06);
    transform: scale(1.01);
}
.pf-avatar-upload__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.pf-avatar-upload__hint {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.pf-avatar-upload__progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .55);
    overflow: hidden;
    display: none;
}
.pf-avatar-upload.is-busy .pf-avatar-upload__progress { display: block; }
.pf-avatar-upload__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    transition: width .3s var(--pf-ease);
}

/* My Pocket Pet card on the profile overview (Phase 32). Mirrors pf-card
   look but adds an avatar circle on the left + health bar at the bottom. */
.pf-pet-card .pf-pet-card__inner,
.pf-pet-empty .pf-pet-card__inner{display:grid;grid-template-columns:64px 1fr auto;gap:16px;align-items:center}
.pf-pet-card__avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,rgba(168,85,247,.18),rgba(56,189,248,.18));display:flex;align-items:center;justify-content:center;font-size:38px;line-height:1;border:2px solid rgba(168,85,247,.32);box-shadow:0 2px 12px rgba(56,189,248,.15)}
.pf-pet-card__avatar--empty{filter:saturate(.6)}
.pf-pet-card__body{min-width:0}
.pf-pet-card__name{margin:2px 0 4px;font-size:22px;font-weight:700;color:var(--pf-text);line-height:1.2;letter-spacing:-.01em}
.pf-pet-card__meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--pf-text-muted);font-size:13px;margin-bottom:10px}
.pf-pet-card__lv{padding:2px 10px;border-radius:10px;background:rgba(168,85,247,.16);color:#a855f7;font-size:11px;font-weight:700;border:1px solid rgba(168,85,247,.32)}
.pf-pet-card__health{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:12px;color:var(--pf-text-muted)}
.pf-pet-card__health-label{font-weight:600;color:var(--pf-text-muted)}
.pf-pet-card__health-bar{display:block;height:6px;background:rgba(255,255,255,.08);border-radius:3px;overflow:hidden;min-width:120px}
.pf-pet-card__health-fill{display:block;height:100%;background:linear-gradient(90deg,#f06b9d,#ff8b6b);transition:width .3s var(--pf-ease,ease)}
.pf-pet-card__health-val{font-variant-numeric:tabular-nums;font-weight:700;color:var(--pf-text)}
.pf-pet-card__cta{padding:8px 14px;border-radius:12px;background:rgba(56,189,248,.16);color:#38bdf8;font-weight:600;font-size:13px;border:1px solid rgba(56,189,248,.32);white-space:nowrap}
.pf-pet-card .pf-pet-card__link:hover .pf-pet-card__cta{background:rgba(56,189,248,.26)}
.pf-pet-card__none-desc{margin:2px 0 0;color:var(--pf-text-muted);font-size:13px;line-height:1.45}
@media (max-width:560px){
    .pf-pet-card .pf-pet-card__inner,.pf-pet-empty .pf-pet-card__inner{grid-template-columns:56px 1fr;gap:12px}
    .pf-pet-card__cta{grid-column:1 / -1;text-align:center;margin-top:8px}
    .pf-pet-card__avatar{width:56px;height:56px;font-size:32px}
}
