/* User Profile — layout & visual system */
:root {
    --profile-accent: #2563eb;
    --profile-accent-soft: rgba(37, 99, 235, 0.12);
    --profile-banner-h: 220px;
    --profile-avatar: 120px;
    --profile-radius: 16px;
    --profile-radius-sm: 10px;
    --profile-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
    --profile-shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
    --profile-accent: #3b82f6;
    --profile-accent-soft: rgba(59, 130, 246, 0.15);
    --profile-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    --profile-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.user-profile-container {
    min-height: calc(100vh - 64px);
    background: var(--background);
    padding-bottom: 3rem;
}

.profile-page {
    max-width: 1120px;
    margin: 0 auto;
}

/* ── Hero / banner (no overlap — card sits below banner) ── */
.profile-header {
    position: relative;
    margin-bottom: 0;
}

.profile-banner {
    height: var(--profile-banner-h);
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 50%, #6366f1 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.08) 0%,
        rgba(15, 23, 42, 0.55) 100%
    );
}

.profile-card {
    position: relative;
    margin: 1.25rem 1.25rem 0;
    padding: 1.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--profile-radius);
    box-shadow: var(--profile-shadow-lg);
}

/* ── Identity row ── */
.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.profile-info.profile-loaded {
    opacity: 1;
}

.profile-avatar {
    position: static;
    width: var(--profile-avatar);
    height: var(--profile-avatar);
    margin: 0;
    border-radius: 50%;
    background: var(--card-background);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: var(--text-secondary, #94a3b8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
    overflow: hidden;
}

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

.profile-details {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.profile-title-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.15rem;
}

.profile-details h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.username {
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 0.65rem;
    font-weight: 500;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 0.85rem;
    line-height: 1.55;
    max-width: 52ch;
}

.user-roles {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border: 1.5px solid #6b7280;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    background: var(--background);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--profile-radius-sm) !important;
}

/* ── Stats bar ── */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-align: center;
    min-width: 0;
}

.stat-clickable {
    cursor: pointer;
}

.stat-clickable:hover {
    background: var(--profile-accent-soft);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.stat-hidden {
    cursor: default;
    opacity: 0.55;
}

.stat-hidden:hover {
    transform: none;
    background: var(--background);
    border-color: transparent;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.member-since .stat-number {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ── Main grid ── */
.profile-content {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 1.5rem;
    padding: 1.75rem 1.25rem 0;
    animation: profileFadeUp 0.5s ease-out;
}

@keyframes profileFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-section {
    background: var(--card-background);
    border-radius: var(--profile-radius);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--profile-shadow);
}

.profile-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    padding: 0;
}

.profile-section h3 i {
    color: var(--profile-accent);
    font-size: 0.85rem;
}

/* Social links — compact grid */
.social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    background: var(--profile-accent-soft);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--profile-accent);
    transform: none;
    box-shadow: none;
}

.social-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    color: var(--profile-accent);
    transition: color 0.2s ease;
}

.social-link:hover i {
    color: var(--profile-accent);
}

.social-location {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
}

.social-location i {
    color: var(--profile-accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.no-links,
.no-social,
.no-posts {
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-style: normal;
}

/* Recent posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.recent-post {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.recent-post:hover {
    background: var(--profile-accent-soft);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateX(3px);
    box-shadow: none;
}

.recent-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
}

.recent-post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* ── Wall ── */
.profile-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wall-section {
    background: var(--card-background);
    border-radius: var(--profile-radius);
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--profile-shadow);
}

.wall-header {
    margin-bottom: 1.1rem;
}

.wall-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.wall-header h2 i {
    color: var(--profile-accent);
    font-size: 1rem;
}

.wall-header p {
    color: var(--text-secondary, #64748b);
    margin: 0;
    font-size: 0.875rem;
}

.write-message {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.write-message-guest {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.guest-cta-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--profile-accent-soft);
    color: var(--profile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.guest-cta-text {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
    min-width: 160px;
}

.message-form textarea {
    width: 100%;
    min-height: 88px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-form textarea:focus {
    outline: none;
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px var(--profile-accent-soft);
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.75rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
}

/* Wall sort pills */
.wall-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    background: var(--background);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--border-color);
}

.wall-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.wall-filter-btn i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wall-filter-btn:hover {
    background: var(--card-background);
    color: var(--text-color);
}

.wall-filter-btn.active {
    background: var(--profile-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.wall-filter-btn.active i {
    opacity: 1;
}

/* Wall messages list */
.wall-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wall-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--profile-radius-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.wall-message:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: none;
}

.wall-message-highlight {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px var(--profile-accent-soft);
    animation: wallMessageFlash 2.4s ease;
}

@keyframes wallMessageFlash {
    0% { background: var(--profile-accent-soft); }
    100% { background: var(--background); }
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

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

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.message-meta {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.wall-message .message-header-end,
.message-content .message-header-end {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.wall-message .message-header-end .comment-date,
.message-content .message-header-end .comment-date {
    margin: 0;
    white-space: nowrap;
}

.wall-action-btns {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.wall-action-btns .edit-comment-btn,
.wall-action-btns .delete-comment-btn {
    margin: 0;
    padding: 0.2rem 0.35rem;
    line-height: 1;
}

.message-meta .author-name,
.message-content .author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.message-meta .author-name:hover,
.message-content .author-name:hover {
    color: var(--profile-accent);
}

.message-meta .author-username {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-secondary, #64748b);
}

.message-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.45;
    margin: 0;
    word-wrap: break-word;
}

.wall-message .message-text p {
    margin: 0;
}

.wall-loading,
.loading {
    text-align: center;
    color: var(--text-secondary, #64748b);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.no-messages,
.no-messages-block {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-secondary, #64748b);
}

.no-messages-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Voting */
.comment-votes {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-background);
    color: var(--text-secondary, #64748b);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vote-btn:hover {
    border-color: var(--profile-accent);
    color: var(--profile-accent);
}

.vote-btn.upvote.active {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.vote-btn.downvote.active {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.wall-message .message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.wall-message .message-actions .comment-votes {
    margin-top: 0;
    margin-left: auto;
}

/* Buttons scoped to profile */
.user-profile-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--profile-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.user-profile-container .btn-primary {
    background: var(--profile-accent);
    color: #fff;
}

.user-profile-container .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.user-profile-container .btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.user-profile-container .btn-outline:hover {
    border-color: var(--profile-accent);
    color: var(--profile-accent);
}

.user-profile-container .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

/* Replies */
.message-replies {
    margin-top: 0.5rem;
    padding: 0.5rem 0 0.5rem 0.75rem;
    border-left: 2px solid var(--border-color);
}

.wall-reply {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: var(--card-background);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--border-color);
}

.reply-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.25rem;
}

.reply-meta {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.reply-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-color);
}

.reply-form {
    margin-top: 0.5rem;
    padding: 0.65rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--profile-radius-sm);
}

.reply-textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.8125rem;
    resize: vertical;
    min-height: 48px;
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.show-more-replies {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    color: var(--profile-accent);
    background: transparent;
    border: 1px solid var(--profile-accent);
    border-radius: 6px;
    cursor: pointer;
}

.show-more-replies:hover {
    background: var(--profile-accent);
    color: #fff;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, var(--profile-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

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

/* Pagination */
.wall-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0 0;
    margin-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.pagination-controls {
    display: flex;
    gap: 0.35rem;
}

.pagination-controls .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

/* Follow modal */
.follow-list-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.follow-list-modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.follow-list-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.follow-list-modal-content {
    position: relative;
    background: var(--card-background);
    border-radius: var(--profile-radius);
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--profile-shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.follow-list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.follow-list-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.follow-list-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary, #64748b);
    line-height: 1;
    padding: 0 0.25rem;
}

.follow-list-modal-body {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.follow-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.follow-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--profile-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.follow-list-item:hover {
    background: var(--background);
}

.follow-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--profile-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.follow-list-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.follow-list-username {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.follow-list-loading,
.follow-list-empty,
.follow-list-error {
    text-align: center;
    padding: 1.25rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
}

/* Error state */
.error-page {
    text-align: center;
    padding: 3rem 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: 2;
    }

    .profile-main {
        order: 1;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat:nth-child(4),
    .stat:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .profile-card {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        margin-top: 1rem;
        padding: 1.25rem 1rem;
    }

    .profile-content {
        padding: 1.25rem 0.75rem 0;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-details {
        width: 100%;
    }

    .profile-title-block {
        justify-content: center;
    }

    .user-roles {
        justify-content: center;
    }

    .bio {
        max-width: none;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-banner {
        height: 160px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
        font-size: 2.25rem;
    }

    .wall-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wall-filters::-webkit-scrollbar {
        display: none;
    }

    .wall-filter-btn {
        flex-shrink: 0;
    }

    .wall-message {
        flex-direction: column;
    }

    .write-message-guest {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .wall-filter-btn span,
    .wall-filter-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.55rem;
    }
}
