.profile {
    margin-bottom: 30px;
    padding: 22px 22px 18px;
    text-align: left;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: border-color 0.4s ease, background 0.6s ease, box-shadow 0.4s ease;
}

.profile:hover {
    border-color: var(--ice);
    box-shadow: var(--card-hover);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-head h2 {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
}

.profile-head .bar {
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.profile-grid li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 0.82rem;
    min-width: 0;
}

.profile-grid li:last-child,
.profile-grid li:nth-last-child(2) {
    border-bottom: 0;
}

.pf-k {
    flex: 0 0 46px;
    font-size: 0.71rem;
    letter-spacing: 0.06em;
    color: var(--faint);
    padding-top: 1px;
}

.pf-v {
    flex: 1;
    min-width: 0;
    line-height: 1.55;
    color: var(--text);
    word-break: break-word;
}

.pf-copy {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ice-deep);
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
    transition: opacity 0.2s ease;
}

.pf-copy:hover {
    opacity: 0.75;
}

[data-theme="dark"] .pf-copy {
    color: var(--ice-bright);
}

.profile .tags {
    margin-top: 0;
    margin-bottom: 16px;
}

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

.pf-stat {
    padding: 11px 8px 10px;
    border-radius: 14px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pf-stat:hover {
    border-color: var(--ice);
}

.pf-stat b {
    display: block;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.pf-stat span {
    display: block;
    margin-top: 3px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

@media (max-width: 640px) {
    .profile {
        padding: 18px 16px 14px;
        margin-bottom: 24px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-grid li:last-child,
    .profile-grid li:nth-last-child(2) {
        border-bottom: 1px dashed var(--line-soft);
    }

    .profile-grid li:last-child {
        border-bottom: 0;
    }

    .pf-stat b {
        font-size: 1.05rem;
    }

    .pf-stat span {
        font-size: 0.62rem;
    }
}
