.profile-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    margin-bottom: -80px; 
    position: relative;
    z-index: 1;
}
.profile-card {
    position: relative;
    z-index: 2;
    padding-top: var(--space-md);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: unset;
}
.profile-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.profile-avatar-wrapper {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-full);
    margin-top: -65px; 
    margin-bottom: var(--space-md);
    background-color: var(--color-bg-alt);
    padding: 6px; 
    box-shadow: var(--shadow-md);
    flex-shrink: 0; 
}
.profile-avatar,
.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: var(--fw-bold);
    background-color: var(--color-primary-500);
    color: #ffffff;
}
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-sm);
}
.profile-info__fullname {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin: 0;
    color: var(--color-text);
}
.profile-info__username {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    direction: ltr;
}
.author-info__role {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-block;
    background-color: var(--color-border);
    color: var(--color-text-muted);
}
.author-info__role--admin { background-color: hsl(350, 75%, 95%); color: var(--color-error); }
.author-info__role--moderator { background-color: hsl(140, 75%, 95%); color: var(--color-success); }
.dark-theme .author-info__role--admin { background-color: hsl(350, 75%, 15%); }
.dark-theme .author-info__role--moderator { background-color: hsl(140, 75%, 15%); }
.profile-actions {
    display: flex;
    gap: var(--space-sm);
}
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--space-md);
}
.profile-tab-item {
    display: inline-block;
    padding: var(--space-md) var(--space-sm);
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; 
    white-space: nowrap; 
}
.profile-tab-item.active,
.profile-tab-item:hover {
    color: var(--color-primary-500);
    border-bottom-color: var(--color-primary-500);
}
.profile-section {
    padding: var(--space-md) var(--space-xxs);
}
.profile-card__body {
    padding-top: 0;
}
.profile-tab-panel {
    display: none;
}
.profile-tab-panel.active {
    display: block;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.profile-sidebar,
.profile-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.profile-section .section-title {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}
.profile-bio {
    font-size: 1rem;
    line-height: var(--line-height-base);
    word-wrap: break-word;
}
.profile-bio .social-icons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: var(--color-bg-muted);
    padding: var(--space-xxs) var(--space-xs);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--fw-medium);
    margin: var(--space-xs);
    color: var(--color-text-muted);
}
.profile-bio .social-icons:hover {
    background-color: var(--color-border);
}
.profile-bio .social-icons svg,
.profile-bio .social-icons .social-icon-img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.stat-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.stat-card {
    background-color: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
}
.stat-card__count {
    font-size: 1.75rem;
    font-weight: var(--fw-bold);
    color: var(--color-primary-500);
    margin: 0 0 var(--space-xs) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}
.stat-card__count svg {
    width: 24px;
    height: 24px;
}
.stat-card__label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0;
}
.reputation-badge {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}
.reputation-badge svg {
    width: 14px;
    height: 14px;
}
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.recent-post-item {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.post-title-link {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-xs);
    align-items: flex-start;
}
.post-title-link:hover {
    color: var(--color-primary-500);
    text-decoration: none;
}
.reply-preview {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    font-weight: var(--fw-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xs);
}
.meta___post {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    justify-content: space-between;
}
.meta___post.v__ote {
    justify-content: space-between;
}
.post-vote-controls, .meta___post__group-1, .meta___post__group-2, .meta___post.v__ote small, .profile-birthdate-section span, .profile-joineddate-section span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-muted);
    color: var(--color-text-muted);
}
.vote-btn:hover {
    background-color: var(--color-border);
    color: var(--color-text);
}
.vote-btn.active {
    background-color: var(--color-primary-100);
    color: var(--color-primary-500);
}
.dark-theme .vote-btn.active {
    background-color: hsl(210, 85%, 20%);
}
.vote-btn svg { width: 16px; height: 16px; }
.vote-count { font-weight: var(--fw-medium); }
.meta___post__group-1 small {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal.show { display: flex; }
.modal-dialog {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.modal-header .modal-title { margin: 0; font-size: var(--fs-lg); }
.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
}
.modal-user-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.modal-user-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.modal-user-avatar,
.default-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.default-avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-500);
    color: #ffffff;
    font-weight: var(--fw-bold);
}
.modal-user-info { flex-grow: 1; }
.modal-user-info .fullname { font-weight: var(--fw-medium); color: var(--color-text); }
.modal-user-info .username { font-size: var(--fs-sm); color: var(--color-text-muted); }
.modal-user-action { flex-shrink: 0; }
.modal-user-action .button {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-sm);
}
.private-profile-card {
    text-align: center;
    padding: var(--space-xl);
}
.private-profile-card svg {
    width: 60px;
    height: 60px;
    color: var(--color-primary-500);
    margin-bottom: var(--space-md);
}
.private-profile-card h3 {
    color: var(--color-text);
}
.report-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.report-modal__content {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.report-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}
.report-modal__header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.report-modal__close {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.report-modal__close:hover {
    color: var(--color-text);
}
.report-modal__form .auth-form__group {
    margin-bottom: var(--space-md);
}
.report-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}
.report-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.report-modal.show {
    display: flex;
}
.report-modal__content {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.report-content-btn {
    background: none;
    border: none;
    padding: 4px;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    gap: 5px;
}
.report-content-btn:hover {
    color: var(--color-error);
    background-color: rgba(255, 0, 0, 0.05);
}
.report-content-btn svg {
    width: 16px;
    height: 16px;
}
.pagination {
    margin: var(--space-lg) 0 0 0;
    padding: var(--space-lg) 0 0 0;
    border-top: 1px solid var(--color-border);
}
@media (max-width: 767px) {
    .meta___post__group-1 small span {
        display: none;
    }
}
@media (min-width: 767px) {   
    .profile-card__header {
        flex-direction: row;
        margin-inline-start: var(--space-md);
        text-align: left;
    }
    .profile-avatar-wrapper {
        margin-bottom: var(--space-lg);
        margin-left: var(--space-lg);
    }
    .profile-header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        flex-grow: 1;
        border-bottom: none; 
        padding-left: var(--space-lg);
        padding-bottom: var(--space-sm);
    }
    .profile-info {
        align-items: flex-start;
    }
    .profile-actions {
        margin-bottom: var(--space-sm); 
    }
    .profile-tabs {
        padding-left: 200px; 
    }
    .profile-grid {       
        grid-template-columns: 1fr 2fr;
    }
    .profile-sidebar {
        grid-column: 1;
    }
    .profile-main {
        grid-column: 2;
    }
}