body.profile-v2 {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
    min-height: 100vh;
}

.profile-v2--portfolio body,
.profile-v2--about body {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
}

body.profile-v2 .container {
    max-width: 1100px;
    padding-left: 24px;
    padding-right: 24px;
}

.profile-v2-hero {
    position: relative;
    padding-bottom: 4rem;
}

.profile-v2-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: #edf1f5;
}

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

.profile-v2-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.58) 100%);
    pointer-events: none;
}


.profile-v2-cover-action {
    position: absolute;
    right: 24px;
    top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.profile-v2-cover-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.profile-v2-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.profile-v2-hero-inner {
    position: relative;
    margin-top: -96px;
}

.profile-v2-hero-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(15, 23, 42, 0.14);
    padding: 2.8rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    position: relative;
    overflow: hidden;
}

.profile-v2-hero-card::before,
.profile-v2-hero-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}

.profile-v2-hero-card::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.16), transparent 68%);
    top: -190px;
    right: -110px;
}

.profile-v2-hero-card::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 70% 60%, rgba(56, 189, 248, 0.18), transparent 70%);
    bottom: -170px;
    left: 12%;
}

.profile-v2-hero-card > * {
    position: relative;
    z-index: 1;
}

.profile-v2-hero-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
}

.profile-v2-identity {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.profile-v2-identity-copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-v2-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-v2-avatar {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
    background: #fff;
}

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

.profile-v2-avatar-edit {
    position: absolute;
    inset: auto 0 0 0;
    margin: 0 auto;
    width: calc(100% - 16px);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 140ms ease, opacity 140ms ease;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.profile-v2-avatar:hover .profile-v2-avatar-edit,
.profile-v2-avatar-edit:focus {
    transform: translateY(-6px);
    opacity: 1;
}

.profile-v2-name {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.profile-v2-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #64748b;
    margin-right: 0.85rem;
}

.profile-v2-meta span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.6);
    margin-right: 0.6rem;
}

.profile-v2-meta span:first-child::before {
    display: none;
}

.profile-v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-v2-hero-action {
    border-radius: 999px;
    padding: 0.65rem 1.85rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.profile-v2-hero-action.btn-outline-secondary {
    box-shadow: none;
    border-color: rgba(148, 163, 184, 0.4);
    color: #0f172a;
    background: rgba(255, 255, 255, 0.78);
}

.profile-v2-hero-action:hover {
    transform: translateY(-2px);
}

.profile-v2-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
}

.profile-v2-hero-stat {
    border-radius: 22px;
    padding: 1.4rem 1.5rem;
    background: rgba(248, 250, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.profile-v2-hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
}

.profile-v2-hero-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.profile-v2-tabs {
    margin-top: 2.75rem;
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}

.profile-v2-tabs a {
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 999px;
    transition: all 120ms ease;
}

.profile-v2-tabs a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.profile-v2-tabs a.is-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26);
}

.profile-v2-main {
    margin-top: 2.75rem;
}

.profile-v2-content {
    margin-bottom: 2.4rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    padding: 2.4rem 2.75rem;
}

.profile-v2-settings {
    margin-top: 2rem;
    margin-bottom: 2.4rem;
}

.profile-v2-settings .block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.profile-v2-settings .block-title {
    border-radius: 0;
}

.profile-v2-settings > .col-xs-12 > .row:nth-of-type(n+2) {
    display: none;
}

.profile-v2-settings .block:nth-of-type(n+2) {
    display: none;
}

.profile-v2-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.profile-v2-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.profile-v2-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-v2-toolbar .btn {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
}

.profile-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
}

.profile-v2-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.profile-v2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
}

.profile-v2-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f1f3f5;
}

.profile-v2-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-v2-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
}

.profile-v2-card-body h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: #0f172a;
}

.profile-v2-card-body p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

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

.profile-owner-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-owner-item-main {
    flex: 1 1 auto;
    min-width: 240px;
}

.profile-owner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.profile-owner-status {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
}

.profile-owner-category,
.profile-owner-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-owner-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.profile-owner-title a {
    color: inherit;
    text-decoration: none;
}

.profile-owner-title a:hover {
    text-decoration: underline;
}

.profile-owner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.profile-owner-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-owner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.profile-v2-empty {
    background: rgba(248, 250, 255, 0.92);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px dashed rgba(79, 70, 229, 0.25);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.profile-v2-empty h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.profile-v2-empty p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

.profile-v2-empty .btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    margin-top: 1rem;
}

.profile-v2-about {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.75rem 2rem;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.profile-v2-footer-link {
    display: flex;
    justify-content: flex-end;
}

.profile-v2-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 0.8rem 0 0.2rem;
}

.profile-v2-account-link:hover {
    text-decoration: underline;
}

.profile-cropper-wrapper {
    width: 100%;
    min-height: 360px;
    max-height: 520px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.profile-cropper-wrapper--avatar {
    min-height: 360px;
    max-height: 460px;
}

.profile-cropper-wrapper--cover {
    min-height: 420px;
    max-height: 540px;
}

.profile-cropper-wrapper img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.profile-cropper-hint {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

.profile-cropper-error {
    margin-top: 1rem;
}

.profile-v2-cover-action .icon-camera::before,
.profile-v2-avatar-edit .icon-camera::before {
    font-family: "FontAwesome";
    content: "\f030";
    display: inline-block;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .profile-v2-hero-inner {
        margin-top: -80px;
    }

    .profile-v2-hero-card {
        padding: 2.4rem 2.35rem;
    }

    .profile-v2-hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .profile-v2-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-v2-hero-inner {
        margin-top: -72px;
    }

    .profile-v2-hero-card {
        padding: 2rem 1.8rem;
        gap: 1.9rem;
    }

    .profile-v2-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-v2-hero-actions {
        width: 100%;
    }

    .profile-v2-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-v2-tabs {
        justify-content: center;
    }

    .profile-owner-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-owner-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
