.d-none {
    display: none !important;
}

.my-account-page {
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.my-account-page .wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    align-self: center;
    justify-content: start;
}

.my-account-nav .header-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

@media(min-width: 1024px) {
    .my-account-page {
        height: 100%;
    }

    .my-account-nav .header-icon {
        width: 40px;
        height: 40px;
    }

    .my-account-page .wrapper {
        width: 50vw;
        max-width: 1024px;
        min-width: 600px;
        height: 100%;
        justify-content: start;
    }
}

@media (min-width: 1366px) {
    .my-account-page {
        height: 100%;
    }
}

.my-account-page .otp-section {
    display: none;
    padding: 40px 20px;
    border-radius: 8px;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    border: 2px solid #EDEDED;
    background-color: #FFFFFF;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
}

.my-account-page .otp-section.show {
    display: flex;
}

.my-account-page .otp-section .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.my-account-page .otp-section h2 {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 100%;
    letter-spacing: -0.5px;
    text-align: center;
    vertical-align: middle;
    color: #525252;
}

.my-account-page .otp-section .header p {
    font-weight: 500;
    font-size: 1rem;
    line-height: 25px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #525252;
}

.my-account-page .otp-section .header span#phone-number {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.5px;
    text-align: center;
    vertical-align: middle;
    color: #0F62FE;
}

.my-account-page .otp-section .otp-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.my-account-page .otp-section .otp-wrapper.error #otp-msg {
    color: #F57E77;
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
    text-align: center;
}

.my-account-page .otp-section .otp-inputs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(56px, 1fr));
    gap: 14px;
    max-width: 370px;
}

.my-account-page .otp-section .otp-inputs input {
    text-align: center;
    border: 1px solid #CFD3D4;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
    color: #5E6366;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    min-height: auto;
    aspect-ratio: 52/64;
}

.my-account-page .otp-section .otp-wrapper.error .otp-inputs input {
    border: 1px solid #F15858;
    color: #F15858;
}

.my-account-page .otp-section .otp-inputs input:focus {
    outline: none;
    border-color: #616161;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.14);
}

.my-account-page .otp-section .otp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.my-account-page .otp-section .otp-primary-action .btn-primary {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: #5898B8;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 24px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    width: 100%;
}

.my-account-page .otp-section .otp-primary-action .btn-primary:disabled {
    background: #C6C6C6;
    color: #DDDDDD;
    cursor: not-allowed;
}

.my-account-page .otp-section .otp-actions p {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: #525252;
}

.my-account-page .otp-section .otp-link {
    border: none;
    background: transparent;
    color: #0F62FE;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
}

.my-account-page .otp-section .resend-btn {
    border: none;
    background: transparent;
    color: #0F62FE;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.5;
}

.my-account-page .otp-section .resend-btn:not(:disabled) {
    color: #0F62FE;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
}

.my-account-page .otp-section .resend-timer {
    color: #909090;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 767px) {
    .my-account-page {
        height: 100%;
        min-height: calc(100dvh - 64px);
    }

    .my-account-page .otp-section {
        padding: 24px 16px;
    }

    .my-account-page .otp-section .otp-actions p {
        text-align: center;
    }

    .my-account-page .otp-section .otp-inputs {
        grid-template-columns: repeat(6, minmax(10vw, 1fr));
        gap: 8px;
    }

    .my-account-page .otp-section .otp-inputs input {
        font-size: 1.5rem;
        border-radius: 12px;
    }
}

.account-recovery-setup {
    display: none;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: #FFFFFF;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.account-recovery-setup.show {
    display: flex;
}

.account-recovery-setup .card-header {
    background: #EDEDED;
    color: #404040;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    text-align: center;
    padding: 1.25rem 1.5rem;
}

.account-recovery-setup .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.account-recovery-setup .card-header {
    flex-shrink: 0;
}

.account-recovery-setup .info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #F5F5F5;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #ECECEC;
}

.account-recovery-setup .info-box svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.account-recovery-setup .info-box span {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #898989;
    text-align: center;
}

.account-recovery-setup .question-text {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #525252;
    margin: 0;
}

.account-recovery-setup .radio-group {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.account-recovery-setup .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #898989;
    position: relative;
    user-select: none;
}

.account-recovery-setup .radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.account-recovery-setup .radio-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 0.125rem solid #D1D1D1;
    background: #FFFFFF;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.account-recovery-setup .radio-custom::after {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #0F62FE;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.account-recovery-setup .radio-label:has(input:checked) .radio-custom {
    border-color: #0F62FE;
    background: #FFFFFF;
}

.account-recovery-setup .radio-label:has(input:checked) .radio-custom::after {
    transform: scale(1);
}

.account-recovery-setup .divider-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.account-recovery-setup .divider-line {
    flex: 1;
    height: 0.0625rem;
    background: #E0E0E0;
}

.account-recovery-setup .divider-label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #0F62FE;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.account-recovery-setup .section-tidak .divider-label {
    white-space: normal;
}

.account-recovery-setup .desc-text {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    color: #898989;
    margin: 0;
    text-align: center;
}

.account-recovery-setup .section-tidak,
.account-recovery-setup .section-ya {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-recovery-setup .section-tidak.d-none,
.account-recovery-setup .section-ya.d-none {
    display: none;
}

.account-recovery-setup .section-tidak:not(.d-none),
.account-recovery-setup .section-ya:not(.d-none) {
    animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-recovery-setup .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.account-recovery-setup .form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #2C2C2C;
}

.account-recovery-setup .form-group input[type="text"] {
    width: 100%;
    height: 3.25rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #525252;
    background: #FFFFFF;
    border: 0.0625rem solid #D1D1D1;
    border-radius: 0.5rem;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-recovery-setup .form-group input[type="text"]::placeholder {
    color: #B0B0B0;
    font-weight: 400;
}

.account-recovery-setup .form-group input[type="text"]:focus {
    border-color: #0F62FE;
    box-shadow: 0 0 0 0.1875rem rgba(126, 61, 247, 0.12);
}

.account-recovery-setup .form-group input.error {
    border-color: #F15858;
}

.account-recovery-setup .submit-wrapper {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.account-recovery-setup #submitBtn {
    width: fit-content;
    height: 3.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    font-family: inherit;
    cursor: not-allowed;
    background: #C6C6C6;
    color: #DDDDDD;
    transition: background 0.25s ease, transform 0.15s ease;
    padding: 1rem 2rem;
}

.account-recovery-setup #submitBtn:not(:disabled) {
    background: #5898B8;
    color: #FFFFFF;
    cursor: pointer;
}

.account-recovery-setup #submitBtn:not(:disabled):hover {
    background: #5898B8;
}

.account-recovery-setup #submitBtn:not(:disabled):active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    .my-account-page {
        height: calc(100dvh - 64px);
        overflow-y: auto;
        padding: 0.75rem;
    }

    .my-account-page .wrapper {
        justify-content: flex-start;
        padding-top: 0.5rem;
        align-self: flex-start;
        max-height: 100%;
    }

    .account-recovery-setup .card-body {
        padding: 1.25rem;
        gap: 1rem;
    }

    .account-recovery-setup .radio-group {
        gap: 1.5rem;
    }
}

.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: max-content;
    max-width: 90vw;
}

.toast-notification.show {
    top: 96px;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .toast-notification.show {
        top: 72px;
    }
}

.toast-notification .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-notification p {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #404040;
    margin: 0;
    text-align: left;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
}

@media (max-width: 767px) {
    .toast-notification p {
        font-size: 14px;
    }

    .toast-notification {
        padding: 14px 16px;
        gap: 12px;
    }
}

.account-recovery-setup-message {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 1.25rem;
}

.account-recovery-setup-message.show {
    display: flex;
}

@media (min-width: 1024px) {
    .account-recovery-setup-message {
        min-width: 16vw;
        max-width: 32vw;
        margin: 0 auto;
    }
}

.account-recovery-setup-message .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
}

.account-recovery-setup-message img {
    width: 3.25rem;
    height: 3.25rem;
}

.account-recovery-setup-message h3 {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #1E1E1E;
}

.account-recovery-setup-message p {
    font-weight: 500;
    font-size: 1rem;
    line-height: 130%;
    letter-spacing: 0;
    text-align: center;
    color: #616161;
}

.account-recovery-setup-message .btn-primary {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    gap: 8px;
    background-color: #5898B8;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    border: none;
}
.my-account-page .nav-back {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
    margin: auto;
    width: fit-content;
}

.my-account-page .nav-back-wrapper {
    margin: 0 auto;
    max-width: 40rem;
    width: 100%;
}

.my-account-page .nav-back p {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #161616;
}

.account-recovery-setup .radio-label:has(input:checked) {
    color: #0F62FE;
}

.account-recovery-setup .divider-line {
    background: #0F62FE;
}

.nav-back-wrapper #btn-back-account-recovery-setup {
    display: none;
}

.my-account-page .wrapper:has(.account-recovery-setup.show) #btn-back-account-recovery-setup {
    display: flex;
}

.nav-back-wrapper #header-otp-section,
.nav-back-wrapper #header-message {
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 100%;
    letter-spacing: 0;
    color: #161616;
}

.my-account-page .wrapper:has(.otp-section.show) #header-otp-section {
    display: block;
}

.account-recovery-setup-message .card-footer {
    border-top: 1px solid #D9D9D9;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
}

.my-account-page .wrapper:has(.account-recovery-setup-message.show) #header-message {
    display: block;
}

.account-recovery-setup .form-group .field-error {
    color: #F57E77;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.25rem;
    text-align: center;
}

/* --- Modal (modalBox) --- */

#modalBox .modal-wrap,
#modalBox .global-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
}

#modalBox .modal-dialog {
    min-width: 0;
    padding: 0;
    border-radius: 1.25rem;
    background: white;
    text-align: center;
    position: relative;
}

#modalBox .account-recovery-setup-message {
    width: min(90vw, 40rem);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: none;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale3d(0.8, 0.8, 1) translate3d(0, 60px, 0);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
    }
}

#modalBox .animate__zoomInUp {
    animation: zoomInUp 0.3s ease forwards;
}

.account-recovery-setup-message .btn-secondary {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: #F5F5F5;
    color: #404040;
    border: 1px solid #E0E0E0;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 24px;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    cursor: pointer;
}

.account-recovery-setup-message .card-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.account-recovery-setup-message .card-footer {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-recovery-setup-message .data-field {
    width: 100%;
    background: #F5F5F5;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: left;
}

.account-recovery-setup-message .data-field .label {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #909090;
}

.account-recovery-setup-message .data-field .value-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.account-recovery-setup-message .data-field .value-wrapper p {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #0F62FE;
    word-break: break-all;
    margin: 0;
}

.account-recovery-setup-message .data-field .value-wrapper svg {
    flex-shrink: 0;
}
