.pp-account-main{
    padding: 0 0 60px 30px;
}

.pp-account-header {
    background: url('/assets/img/backgrounds/account-header.png') no-repeat;
    background-size: cover;
    min-height: 300px;
    position: relative;
}
.pp-account-content{
    width: 100%;
}

.profile-avatar {
    position: absolute;
    bottom: 45px;
    left: 45px;
    display: flex;
    align-items: flex-end;
}

.imageBox {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.imageInn {
    width: 100%;
    height: 100%;
    border-radius: 160px;
    background-size: cover;
    background-position: center;
}

.hoverImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.imageBox:hover .hoverImg {
    opacity: 1;
}

.user-info {
    position: absolute;
    bottom: 10px;
    left: 170px;
    color: white;
    width: 100%;
}

.user-info h2 {
    font-size: 60px;
    font-weight: 800;
    color: white;
    line-height: 96px;
    margin: 0;
}

.user-info .created-at {
    font-size: 12px;
    display: block;
}

.account-sections {
    display: flex;
    gap: 30px;
}

.account-email-section,
.account-password-section {
    flex: 1;
    background: #1a1a1a;
    padding: 20px;
    position: relative;
}

.email-container, .password-container {
    position: relative;
}

.email-tooltip, .password-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
}

.account-sections {
    display: flex;
    gap: 30px;
}

.account-email-section,
.account-password-section,
.communication-section,
.notification-section,
.account-removal-section {
    background: linear-gradient(90deg, rgba(227, 236, 255, 0.3) 12.28%, #E3ECFF 202.46%);
    padding: 20px;
    position: relative;
}

html.theme-dark .account-email-section,
html.theme-dark .account-password-section,
html.theme-dark .communication-section,
html.theme-dark .notification-section,
html.theme-dark .account-removal-section {
    background: linear-gradient(180deg, #010F29 0%, #001337 171.51%);
}

.email-label, .account-label, .communication-label, .notification-label, .account-removal-label{
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.email-label:after,
.account-label:after,
.communication-label:after,
.notification-label:after,
.account-removal-label:after
{
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
}

.label-disabled{
    background: none;
}

.btn-save{
    background: #2244EF;
    color: white;
    width: 180px;
    height: 40px;
    border-radius: 50px;
    border: none!important;
}

.communication-section,
.notification-section,
.account-removal-section{
    display: flow-root;
}

#btnCommEdit,
#btnCommEditCancel {
    display: none !important;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 10px 0;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox .checkbox-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #808794;
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox .checkbox-box::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.custom-checkbox input:checked + .checkbox-box {
    border-color: #ffffff;
}

.custom-checkbox input:checked + .checkbox-box::after {
    opacity: 1;
}

.custom-checkbox .optional_checkbox_label {
    color: #808794;
    font-size: 16px;
    line-height: 1.4;
}

.btnSaveComm {
    display: block !important;
}

.hide {
    display: none!important;
}

.btnSaveComm .hide{
    display: block !important;
}

.custom-checkbox input:checked ~ .optional_checkbox_label {
    color: #ffffff;
}

.custom-checkbox .optional_checkbox_label {
    color: #808794;
}

.email-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(1, 15, 41, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.email-modal-overlay.hide { display: none; }

.email-modal {
    background: #001742;
    padding: 32px;
    /*border-radius: 12px;*/
    width: 600px;
    max-width: 90%;
    position: relative;
    color: #fff;
}

.email-modal-close {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
}

.email-modal .accountEmailInputBox {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px 0;
    border-radius: 6px;
    border: 1px solid #808794;
    background:  #001742;
    color: #fff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.modal-footer .btn {
    min-width: 100px;
    border: none;
}

.fullRow.start-form {
    margin-top: 16px;
    margin-bottom: 16px;
}

.input-pill {
    position: relative;
    border: 1px solid #808794;
    border-radius: 50px;
    padding: 8px 16px;
    background-color: transparent;
}

.input-pill input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #808794;
    font-size: 16px;
    padding: 0;
}

.input-pill input::placeholder { color: #808794; }
.input-pill input:focus { color: white; }
.input-pill:focus-within { border: 1px solid white; }
.input-pill:focus-within .label-pill { opacity: 1; color: white; }

.label-pill {
    position: absolute;
    top: -13px;
    left: 20px;
    background-color:  #001742;
    padding: 0 6px;
    font-size: 14px;
    color: white;
    opacity: 0;
    pointer-events: none;
}

.field-error {
    margin-top: 6px;
    margin-left: 20px;
    font-size: 14px;
    color: #ff3b3b;
}

.email-modal .button-main {
    width: 100%;
    height: 50px;
    background-color: #2244EF !important;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    padding: 0 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.help-block{
    font-size: 14px;
    margin-top: 20px;
}

.modal-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.modal-heading h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
}

.btn-default{
    background-color: #2244EF !important;
    color: white;
    border-radius: 50px;
    font-size: 16px;
}
.email-container {
    display: flex;
    flex-direction: column;
}

.email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.email-block {
    display: flex;
    flex-direction: column;
}

.email-label {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.emailSpanLabel {

    color: #ccc;
}

@media (max-width: 1200px) {
    .email-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-default {
        align-self: flex-start;
    }

    .imageBox{
        width: 120px;
        height: 120px;
        border-radius: 120px;
    }

    .user-info{
        left: 130px;
    }
}

.emailSpanLabel{
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
}

.email-icon {
    width: 20px;
    height: 20px;
}

.password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .password-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .password-tooltip {
        align-self: flex-start;
    }
}

.password-label-disabled {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(1,15,41,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-modal-overlay.hide { display: none; }

.password-modal {
    background: #001742;
    padding: 32px;
    /*border-radius: 12px;*/
    width: 600px;
    max-width: 90%;
    position: relative;
    color: #fff;
}

.password-modal-close {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
}

.fullRow.start-form {
    margin-top: 16px;
    margin-bottom: 16px;
}

.input-pill {
    position: relative;
    border: 1px solid #808794;
    border-radius: 50px;
    padding: 8px 16px;
    background-color: transparent;
}

.input-pill input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #808794;
    font-size: 16px;
    padding: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button-main {
    width: 100%;
    height: 50px;
    background-color: #2244EF !important;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    margin-top: 20px;
}

.input-pill {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.eye {
    display: block;
    width: 20px;
    height: 20px;
}

.eye.hide {
    display: none;
}

.password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.password-block {
    display: flex;
    flex-direction: column;
}

.passwordSpanLabel {
    margin-top: 4px;
    color: #ccc;
}

@media (max-width: 480px) {
    .password-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-default {
        align-self: flex-start;
    }
}

@media (max-width: 901px) {
    .pp-account-main {
        padding: 0 0 0 0;
    }
}

.communication_text{
    color: #808794;
    font-size: 16px;
}

.radio-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.remove-account-row{
    margin: 10px 0;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #808794;
    position: relative;
    transition: color 0.2s ease;
    margin-bottom: 0;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-box {
    width: 18px;
    height: 18px;
    border: 2px solid #808794;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-box::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-box::after {
    opacity: 1;
}

.custom-radio input[type="radio"]:checked + .radio-box {
    border-color: #FFFFFF;
}

.custom-radio input[type="radio"]:checked + .radio-box + .radio-label-text {
    color: #FFFFFF;
}

.custom-radio:hover .radio-box {
    border-color: #fff;
}

.radio-label-text {
    color: #ccc;
    transition: color 0.2s ease;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

#remove_account_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(1, 15, 41, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#remove_account_popup.hide {
    display: none !important;
}

#remove_account_popup .modal-wrap {
    background: #001742;
    padding: 32px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    color: #fff;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
}

#remove_account_popup .modal-wrap__body p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
}

#remove_account_popup .modal-wrap__footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

#remove_account_popup .custom-modal-button {
    max-width: 220px;
    height: 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

#remove_account_popup .custom-modal-button--reject {
    background-color: #D4E2FF!important;
    color: black!important;
}

#remove_account_popup .custom-modal-button--submit {
    background-color: #2244EF!important;
    color: #fff!important;
}

@media (max-width: 575.98px) {
    #remove_account_popup .modal-wrap__footer {
        flex-direction: column;
        align-items: stretch;
    }

    #remove_account_popup .custom-modal-button {
        max-width: 100%;
        width: 100%;
    }
}

.account-sections, .communication-section, .notification-section, .account-removal-section{
    margin: 30px 0;
}

@media (max-width: 1200px) {
    .pp-account-layout {
        grid-template-columns: 1fr;
    }
    .pp-account-sidebar {
        display: none;
    }

    .account-sections {
        flex-direction: column;
        gap: 20px;
    }

    .account-email-section,
    .account-password-section {
        padding: 15px;
    }
}

.account-email-section .email-block,
.account-password-section .password-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.emailSpanLabel,
.passwordSpanLabel {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1200px) {



    .pp-account-content{
        margin: 0 auto;
        padding: 0 32px;
    }
    .pp-account-main{
        padding: 0 0 0 0;
    }
    .pp-account-layout{
        padding: 0;
    }
}

.password-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.password-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.password-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-icon {
    width: 20px;
    height: 20px;
}


@media (max-width: 1200px) {
    .password-content-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-default {
        align-self: center;
    }

    .password-content-row .btn-default{
        margin: 0 auto;
        min-width: 360px;
    }
    .user-info h2{
        font-size: 30px;
        line-height: 48px;
        max-width: 10ch;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: inline-block;
    }
}
.password-block{
    width: 100%;
}

.account-field-container {
    width: 100%;
    margin-bottom: 30px;
}

.label-row {
    width: 100%;
    margin-bottom: 10px;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.content-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-icon, .password-icon {
    width: 20px;
    height: 20px;
}

.content-label {
    font-size: 20px;
    color: white;
}

.btn-save {
    min-width: 100px;
    height: 40px;
    border-radius: 50px;
    background: #2244EF;
    color: white;
    border: none !important;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

    }
    .content-block {
        justify-content: center;
    }
    .btn-save {
        align-self: center;
        width: 100%;
        margin-top: 15px;
    }
}

html:not(.theme-dark) body {
    color: #000;
}
html:not(.theme-dark)  .account-label, html:not(.theme-dark) .label-row,
html:not(.theme-dark)  .custom-radio input[type="radio"]:checked + .radio-box + .radio-label-text,
html:not(.theme-dark)  .custom-checkbox input:checked ~ .optional_checkbox_label{
    color: #000;
}

html:not(.theme-dark)  .custom-checkbox .checkbox-box::after{
    border-color: #000;
}


html:not(.theme-dark) .custom-radio input[type="radio"]:checked + .radio-box,
html:not(.theme-dark) .custom-checkbox input:checked + .checkbox-box{
    border-color: #000000;
}

html:not(.theme-dark) .custom-radio input[type="radio"]:checked + .radio-box:after{
    background-color: #000000;
}

html:not(.theme-dark) .btn-save,
html:not(.theme-dark) .btn-default,
html:not(.theme-dark) .button-main {
    color: #fff;
}
html:not(.theme-dark) .help-block{
    color: #808794;
}

html:not(.theme-dark) .emailSpanLabel,
html:not(.theme-dark) .passwordSpanLabel,
html:not(.theme-dark) .user-info h2,
html:not(.theme-dark) .created-at,
html:not(.theme-dark) .modal-heading h2,
html:not(.theme-dark) .label-pill,
html:not(.theme-dark) .email-modal,
html:not(.theme-dark) .password-modal{
    color: #000;
}

html:not(.theme-dark)  .pp-account-header {
    background: url('/assets/img/backgrounds/account-header-white.png') no-repeat;
    background-size: cover;
}

html:not(.theme-dark) #remove_account_popup .modal-wrap__body p{
    color: #808BA0;
}

html:not(.theme-dark)  .email-modal,
html:not(.theme-dark) .label-pill,
html:not(.theme-dark) .password-modal,
html:not(.theme-dark) #remove_account_popup .modal-wrap{
    background: #F9F9F9;
}

html:not(.theme-dark) .email-modal-overlay,
html:not(.theme-dark) .password-modal-overlay,
html:not(.theme-dark) .remove_account_popup{
    background: rgba(236, 242, 252, 0.85);
}

html:not(.theme-dark) .input-pill input:focus { color: #000000; }
html:not(.theme-dark) .input-pill:focus-within { border: 1px solid #000000; }
html:not(.theme-dark) .input-pill:focus-within .label-pill { opacity: 1; color: black; }

html:not(.theme-dark) .custom-modal-button--reject {
    background-color: #FFFFFF33!important;
    color: white!important;
}

html:not(.theme-dark) #remove_account_popup .custom-modal-button--submit {
    background-color: #2244EF;
    color: #fff;
}

.standalone-link{
    color: #0C93F9;
}

.input-pill {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    width: 24px;
    height: 24px;
    color: #888;
}

#social-finish-wrapper{
    margin: 30px 0;
}
.email-ellipsis{
    max-width: 25ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

html:not(.theme-dark) .imageInn.no-avatar {
    background-image: url('/assets/img/icons/profile-light.png');
}

html.theme-dark .imageInn.no-avatar {
    background-image: url('/assets/img/icons/profile.png');
}

.account-info-wrapper{
    margin-bottom: 30px;
}