body.profile-page-body {
    min-height: 100vh;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(187, 134, 252, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(3, 218, 198, 0.08) 0%, transparent 25%),
        linear-gradient(180deg, #040404 0%, #0a0a0f 40%, #050505 100%);
}

body.profile-page-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.5;
}

.profile-main {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 2rem 1.5rem 5rem;
}

.profile-shell {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.profile-backline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.profile-back-link:hover {
    transform: translateX(-4px);
    color: #fff;
    border-color: rgba(187, 134, 252, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.profile-back-link svg {
    flex-shrink: 0;
}

.profile-hero-card {
    overflow: visible;
}

.profile-cover {
    position: relative;
    height: 220px;
    margin-bottom: -110px;
    background: linear-gradient(135deg, rgba(23, 23, 31, 0.8) 0%, rgba(31, 20, 47, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.profile-cover-image[hidden] {
    display: none;
}

.profile-cover-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.8;
    mix-blend-mode: screen;
    z-index: 1;
}

.profile-cover-glow-left {
    top: 20px;
    left: 10%;
    width: 250px;
    height: 120px;
    background: rgba(187, 134, 252, 0.3);
}

.profile-cover-glow-right {
    bottom: -20px;
    right: 10%;
    width: 200px;
    height: 100px;
    background: rgba(3, 218, 198, 0.2);
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 11, 0.95) 100%);
    z-index: 2;
}

.profile-cover-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.profile-cover-actions[hidden] {
    display: none !important;
}

.profile-cover-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.58rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 10, 16, 0.56);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-cover-action:hover,
.profile-cover-action:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(187, 134, 252, 0.34);
    transform: translateY(-1px);
}

.profile-cover-action:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.profile-cover-action-secondary:hover,
.profile-cover-action-secondary:focus-visible {
    border-color: rgba(255, 107, 107, 0.32);
    background: rgba(255, 107, 107, 0.12);
}

.profile-cover-settings {
    position: absolute;
    top: 4.35rem;
    right: 1rem;
    z-index: 3;
    width: min(320px, calc(100% - 2rem));
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 16, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.profile-cover-settings[hidden] {
    display: none;
}

.profile-cover-settings-row {
    display: grid;
    gap: 0.65rem;
}

.profile-cover-settings-row + .profile-cover-settings-row {
    margin-top: 0.95rem;
}

.profile-cover-settings-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-cover-settings-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.83rem;
    font-weight: 600;
}

.profile-cover-settings-value {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-cover-settings-select {
    width: 100%;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.profile-cover-settings-select:focus {
    border-color: rgba(187, 134, 252, 0.34);
}

.profile-cover-settings-range {
    width: 100%;
    accent-color: #bb86fc;
}

.profile-cover-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
}

.profile-cover-settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.58rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(187, 134, 252, 0.28);
    background: rgba(187, 134, 252, 0.16);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-cover-settings-button:hover,
.profile-cover-settings-button:focus-visible {
    background: rgba(187, 134, 252, 0.24);
    border-color: rgba(187, 134, 252, 0.4);
}

.profile-cover-settings-button-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.profile-cover-settings-button-secondary:hover,
.profile-cover-settings-button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.profile-hero-body {
    position: relative;
    z-index: 2;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: flex-end;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 36px;
    overflow: hidden;
    border: 4px solid #101015;
    background: #1a1a24;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(187, 134, 252, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(3, 218, 198, 0.5);
}

.profile-avatar-placeholder,
.profile-avatar-image {
    width: 100%;
    height: 100%;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
}

.profile-avatar-image {
    object-fit: cover;
    display: block;
}

.profile-presence-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: none;
    background: #03dac6;
    border: 4px solid #101015;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 12px rgba(3, 218, 198, 0.6);
    animation: pulse-online 2s infinite;
}

.profile-presence-indicator.is-visible {
    display: block;
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(3, 218, 198, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(3, 218, 198, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(3, 218, 198, 0);
    }
}

.profile-copy {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.profile-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(187, 134, 252, 0.15);
    border: 1px solid rgba(187, 134, 252, 0.25);
    color: #e2c6ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.verified-badge-name {
    display: inline-flex;
    color: #03dac6;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.verified-badge-name[hidden] {
    display: none !important;
}

.verified-badge-name svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(3, 218, 198, 0.4));
}

.profile-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.profile-meta-chip svg {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.chip-verified {
    background: rgba(3, 218, 198, 0.1);
    border-color: rgba(3, 218, 198, 0.2);
    color: #03dac6;
}

.chip-verified svg {
    color: #03dac6;
}

.chip-official {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.chip-official svg {
    color: #ffc107;
}

.chip-flux {
    background: rgba(187, 134, 252, 0.14);
    border-color: rgba(187, 134, 252, 0.22);
    color: #ddc3ff;
}

.profile-actions-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

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

.profile-stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

.profile-stat-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tabs-container {
    margin-top: 0.2rem;
}

.profile-tabs-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: max-content;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(187, 134, 252, 0.15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.3);
}

.tab-btn[hidden],
.tab-content[hidden] {
    display: none !important;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: inherit;
}

.tab-btn.active .tab-badge {
    background: #bb86fc;
    color: #000;
}

.tab-content {
    display: none;
    padding-top: 1.5rem;
    animation: fade-in 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-settings-panel {
    padding: 1.4rem;
}

.profile-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.profile-settings-head h2 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.profile-settings-head p {
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.65;
}

.profile-settings-form {
    display: grid;
    gap: 1rem;
}

.profile-settings-avatar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.profile-settings-avatar-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.profile-settings-avatar-card p {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.6;
}

.profile-settings-avatar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-settings-field {
    display: grid;
    gap: 0.5rem;
}

.profile-settings-field label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-settings-field input,
.profile-settings-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-settings-field textarea {
    min-height: 140px;
    resize: vertical;
}

.profile-settings-field input[readonly] {
    color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.profile-settings-field input:focus,
.profile-settings-field textarea:focus {
    outline: none;
    border-color: rgba(187, 134, 252, 0.42);
    box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.profile-settings-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.profile-settings-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(187, 134, 252, 0.3);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-post-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
}

.profile-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.profile-post-card:hover .profile-post-image {
    transform: scale(1.05);
}

.profile-post-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background:
        radial-gradient(circle at top left, rgba(187, 134, 252, 0.26) 0%, transparent 42%),
        linear-gradient(135deg, rgba(20, 20, 29, 0.96) 0%, rgba(13, 13, 18, 0.9) 100%);
}

.profile-post-media-icon {
    font-size: 2rem;
}

.profile-post-media-label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-post-gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 10, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.profile-post-body {
    padding: 1.5rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-post-date {
    min-width: 0;
}

.profile-post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.profile-post-title-link {
    color: #fff;
    text-decoration: none;
}

.profile-post-title-link:hover .profile-post-title,
.profile-post-title-link:focus-visible .profile-post-title {
    color: #f0ddff;
}

.profile-post-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.profile-post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-post-excerpt .post-inline-link {
    color: #9fe8ff;
    text-decoration: underline;
    text-decoration-color: rgba(159, 232, 255, 0.42);
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.profile-post-excerpt .post-inline-link:hover,
.profile-post-excerpt .post-inline-link:focus-visible {
    color: #d8f8ff;
    text-decoration-color: rgba(216, 248, 255, 0.8);
    outline: none;
}

.profile-post-footer {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-post-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.profile-post-stat svg {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.profile-post-card:hover .profile-post-stat svg {
    color: #bb86fc;
}

.profile-post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.profile-post-read,
.profile-post-edit,
.profile-post-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.58rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-post-read:hover,
.profile-post-read:focus-visible,
.profile-post-edit:hover,
.profile-post-edit:focus-visible {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.3);
    color: #e2c6ff;
}

.profile-post-delete {
    cursor: pointer;
}

.profile-post-delete:hover,
.profile-post-delete:focus-visible {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.28);
    color: #ffb4b4;
}

.empty-state-action {
    margin-top: 1.35rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(187, 134, 252, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.user-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(187, 134, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar-placeholder {
    color: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.user-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-v {
    background: rgba(3, 218, 198, 0.15);
    color: #03dac6;
}

.badge-o {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.user-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, transform 0.3s ease;
}

.user-card:hover .user-arrow {
    color: #bb86fc;
    transform: translateX(3px);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #03dac6;
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1200;
    box-shadow: 0 10px 30px rgba(3, 218, 198, 0.4);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .profile-hero-body {
        grid-template-columns: auto 1fr;
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .profile-actions-wrapper {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 700px) {
    .profile-shell {
        gap: 1rem;
    }

    .profile-cover {
        margin-bottom: -90px;
        height: 190px;
    }

    .profile-cover-actions {
        top: 0.85rem;
        right: 0.85rem;
        left: 0.85rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .profile-cover-settings {
        top: 7rem;
        right: 0.85rem;
        left: 0.85rem;
        width: auto;
    }

    .profile-hero-body {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-presence-indicator {
        width: 24px;
        height: 24px;
        bottom: 5px;
        right: 5px;
        border-width: 3px;
    }

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

    .verified-badge-name svg {
        width: 28px;
        height: 28px;
    }

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

    .profile-actions-wrapper {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .profile-actions-wrapper .btn {
        flex: 1;
    }

    .profile-actions-wrapper .btn-icon-only {
        flex: none;
    }

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

    .profile-stat-card {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .profile-stat-value {
        font-size: 1.5rem;
    }

    .profile-tabs-nav {
        padding: 0.3rem;
        border-radius: 16px;
    }

    .tab-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }

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

    .profile-settings-avatar-card {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-settings-avatar-actions,
    .profile-settings-actions {
        justify-content: stretch;
    }

    .profile-settings-actions .btn,
    .profile-settings-avatar-actions .btn {
        width: 100%;
    }

    .users-grid,
    .profile-posts-grid {
        grid-template-columns: 1fr;
    }

    .profile-post-body {
        padding: 1.15rem;
    }

    .profile-post-meta,
    .profile-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-post-actions {
        width: 100%;
    }

    .profile-post-read,
    .profile-post-edit,
    .profile-post-delete {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .profile-main {
        padding: 1.35rem 1rem 4rem;
    }

    .profile-hero-body {
        padding: 0 1rem 1.35rem;
    }

    .profile-cover {
        height: 176px;
    }

    .profile-actions-wrapper {
        flex-wrap: wrap;
    }

    .profile-actions-wrapper .btn,
    .profile-actions-wrapper .btn-icon-only {
        width: 100%;
        flex: none;
    }
}
