/* CatalogCoin profile dashboard — soft UI */
:root {
    --pd-bg: #f3f4f6;
    --pd-card: #ffffff;
    --pd-ink: #1d1d1f;
    --pd-muted: #6e6e73;
    --pd-soft: #86868b;
    --pd-line: #e8e8ed;
    --pd-blue: #0071e3;
    --pd-coral: #E6674B;
    --pd-coral-soft: rgba(230, 103, 75, .14);
    --pd-radius: 22px;
    --pd-shadow: 0 2px 14px rgba(0, 0, 0, .045);
}

.pd-body {
    background: var(--pd-bg) !important;
    color: var(--pd-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pd {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.pd-hero {
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 28px 28px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: start;
    margin-bottom: 16px;
}
@media (max-width: 820px) {
    .pd-hero { grid-template-columns: auto 1fr; }
    .pd-hero-actions { grid-column: 1 / -1; }
}

.pd-hero .avatar-xl,
.pd-hero .avatar {
    width: 88px;
    height: 88px;
    font-size: 28px;
}

.pd-kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--pd-soft);
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.pd-name {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 6px;
}

.pd-handle {
    font-size: 14px;
    color: var(--pd-muted);
    margin-bottom: 10px;
}

.pd-bio {
    font-size: 15px;
    line-height: 1.5;
    color: var(--pd-ink);
    max-width: 52ch;
    margin-bottom: 14px;
}
.pd-bio.empty { color: var(--pd-soft); font-style: italic; }
.pd-bio a { color: var(--pd-blue); text-decoration: none; }

.pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f5f5f7;
    color: var(--pd-muted);
    font-size: 13px;
    font-weight: 500;
}
.pd-chip strong { color: var(--pd-ink); font-weight: 650; }

.pd-ach-stack {
    display: flex;
    align-items: center;
    margin-left: 4px;
}
.pd-ach-stack .pd-ach {
    width: 44px;
    height: 44px;
    margin-left: -14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.08);
    position: relative;
    transition: transform .18s ease, z-index 0s;
    z-index: 1;
}
.pd-ach-stack .pd-ach:first-child { margin-left: 0; }
.pd-ach-stack .pd-ach:hover {
    transform: translateY(-4px) scale(1.08);
    z-index: 5;
}
.pd-ach-stack .pd-ach img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-ach-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #1d1d1f;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    z-index: 20;
}
.pd-ach-tip strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}
.pd-ach:hover .pd-ach-tip { opacity: 1; }

.pd-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}
@media (max-width: 820px) {
    .pd-hero-actions { flex-direction: row; flex-wrap: wrap; }
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.pd-btn-primary { background: var(--pd-blue); color: #fff; }
.pd-btn-coral { background: var(--pd-coral); color: #fff; }
.pd-btn-soft { background: #e8e8ed; color: var(--pd-ink); }
.pd-btn-ghost { background: transparent; color: var(--pd-blue); }
.pd-btn-follow.is-on { background: #e8f8ef; color: #1b7a3d; }

.pd-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
    .pd-kpis { grid-template-columns: repeat(2, 1fr); }
}
.pd-kpi {
    background: var(--pd-card);
    border-radius: 18px;
    box-shadow: var(--pd-shadow);
    padding: 18px 20px;
}
.pd-kpi-num {
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.pd-kpi-label {
    font-size: 13px;
    color: var(--pd-muted);
}

.pd-grid {
    display: grid;
    grid-template-columns: 1.35fr .9fr;
    gap: 14px;
    margin-bottom: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .pd-grid { grid-template-columns: 1fr; }
}

.pd-card {
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 22px 22px 18px;
    margin-bottom: 14px;
}
.pd-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.pd-card-title {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0;
}
.pd-card-hint {
    font-size: 12px;
    color: var(--pd-soft);
}

.pd-chart-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--pd-soft);
    margin-top: 6px;
}
.pd-chart-empty {
    padding: 36px 12px;
    text-align: center;
    color: var(--pd-soft);
    font-size: 14px;
}
.pd-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
}
.pd-bar {
    flex: 1;
    min-width: 3px;
    border-radius: 999px 999px 4px 4px;
    opacity: .85;
}

.pd-pages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-page-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}
.pd-page-row:hover { background: #f5f5f7; }
.pd-page-row img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #f5f5f7;
    border-radius: 12px;
}
.pd-page-title {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.pd-page-meta {
    font-size: 12px;
    color: var(--pd-soft);
    margin-top: 2px;
}
.pd-page-views {
    font-size: 14px;
    font-weight: 650;
    color: var(--pd-coral);
    white-space: nowrap;
}

.pd-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}
.pd-tab {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    background: #e8e8ed;
    color: var(--pd-ink);
}
.pd-tab.is-on {
    background: var(--pd-ink);
    color: #fff;
}

.pd-footer {
    text-align: center;
    color: var(--pd-soft);
    font-size: 12px;
    padding: 28px 16px 40px;
}
.pd-footer a { color: var(--pd-blue); text-decoration: none; }

/* reuse collection bits inside dash */
.pd .shelf-row,
.pd .people-row,
.pd .ach-card,
.pd .coin-wrap {
    border-radius: 16px;
}
.pd .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.pd .empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
}
.pd .lock-note {
    text-align: center;
    padding: 40px 20px;
    color: var(--pd-muted);
}
