.page-container {
    display: flex;
    align-items: center;
    max-width: 940px;
}

.profile-con,
.profile-top,
.profile-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1.4;
}

.profile-con {
    margin: 12px 0 0 0;
}

.profile-top {
    gap: 12px;
}

.ps-user {
    box-shadow: 0px 2px 4px #00000069;
    background: #171a25;
    border: 1px solid #394056;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
}

.profile-bottom {
    max-height: 0;
    gap: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all .3s ease;
}

.profile-bottom.expanded {
    max-height: 3000px;
    gap: 10px;
    opacity: 1;
    margin: 10px 0;
    pointer-events: auto;
}

.profile-bottom .profile-section {
    background: #171a25;
    padding: 10px;
    border: 1px solid #394056;
    max-width: 640px;
}

/* Custom Alert */
.custom-alert-con {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 105;
    display: none;
    justify-content: center;
    align-items: center;
}

.custom-alert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    background-color: #252c34;
    padding: 12px;
    border: 2px solid #0000006e;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 110;
    text-align: center;
}

/* Profile Section */
#profile {
    padding: 12px;
}

.user-sec-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.user-sec-top img {
    display: flex;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: #4d5762;
}

.user-name {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: white;
}

.user-label {
    padding: 3px 6px;
    font-size: 14px;
    background: #0000003d;
    border-radius: 6px;
}

.role-label {
    display: inline;
    color: #fff;
    margin-left: 4px;
    padding: 3px 6px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
}

.user-bio {
    color: #ffffffc2;
}

#public-videos {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    margin-top: 10px;
}

/* Links Section */
.public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.public-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: #ffffffc2 !important;
    background: #272d3a;
    border: 1px solid #ffffff26;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.public-links img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Bio */
#confirm_bio {
    resize: none;
}

/* Navigation */
#profile-nav {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0px;
}

.profile-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    overflow: auto;
    font-weight: 400;
    font-size: 18px;
    padding-bottom: 4px;
}

.profile-nav div {
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #272d3a;
    color: #edededeb;
    box-shadow: 0px 2px 4px #00000069;
    transform: translate(0, 0);
}

.profile-nav div:active {
    box-shadow: 0px 0px 0px #0c0f13;
    transform: translate(2px, 2px);
    color: #0c0f13;
    background: #ffffff;
}

.profile-nav div.active {
    color: #0c0f13;
    background: #ffffff;
    box-shadow: 0px 0px 0px #0c0f13;
    transform: translate(2px, 2px);
}

/* Forms */
form {
    gap: 18px;
}

.form-section {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
}

.form-section.no-toggle {
    cursor: auto;
}

.form-section.closed {
    max-height: 30px;
}

.form-section.opened {
    max-height: 1000px;
}

.form-help {
    text-align: center;
    font-size: 15px;
}

/* Avatar */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 8px;
    color: #ffffffc4;
    font-size: 16px;
    cursor: pointer;
}

.avatar-preview {
    display: none;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 250px;
    max-height: 250px;
    z-index: 2;
    outline: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    background: #00000063;
}

.avatar-con {
    width: 100%;
    height: 100%;
    max-width: 5000px;
    max-height: 5000px;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

.avatar-con img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.avatar-con-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: blur(12px) brightness(1.1);
    overflow: hidden;
}

.avatar-con-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.choose-image {
    display: none;
    align-self: flex-start;
    background: #ffffff21;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0px 0px 0px #0c0f13;
}