.profile-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    -webkit-justify-content: stretch;
    justify-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background-color: #070e17;
    overflow-x: hidden;
}

.profile-modal-overlay.active {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-animation: fadeIn .22s ease;
    animation: fadeIn .22s ease;
}

.profile-modal-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    background-color: #070e17;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-transition: background-color 0.25s ease;
    -moz-transition: background-color 0.25s ease;
    transition: background-color 0.25s ease;
}

.profile-modal-close {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 30;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: rgba(11, 20, 30, 0.6);
    background-color: rgba(11, 20, 30, 0.6);
    color: #e2e8f0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 24px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.profile-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.05);
}

.profile-modal-grid {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}

.profile-modal-left {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 100%;
    height: 228px;
    min-height: 228px;
    padding: 28px 24px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-right: none;
    overflow: hidden;
}

.profile-bg-slider {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    -webkit-transition: opacity 1.8s ease-in-out, -webkit-transform 8s ease-out;
    -moz-transition: opacity 1.8s ease-in-out, -moz-transform 8s ease-out;
    transition: opacity 1.8s ease-in-out, transform 8s ease-out;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1);
}

.bg-slide.active {
    opacity: 1;
    -webkit-transform: scale(1.04);
    -moz-transform: scale(1.04);
    transform: scale(1.04);
}

.profile-bg-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: -webkit-linear-gradient(160deg, rgba(7, 14, 23, 0.35) 0%, rgba(12, 22, 34, 0.72) 55%, rgba(12, 22, 34, 0.92) 100%);
    background: -moz-linear-gradient(160deg, rgba(7, 14, 23, 0.35) 0%, rgba(12, 22, 34, 0.72) 55%, rgba(12, 22, 34, 0.92) 100%);
    background: linear-gradient(160deg, rgba(7, 14, 23, 0.35) 0%, rgba(12, 22, 34, 0.72) 55%, rgba(12, 22, 34, 0.92) 100%);
    background-color: rgba(7, 14, 23, 0.35);
    pointer-events: none;
}

.profile-left-content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 2;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: center;
}

.profile-brand img {
    width: auto;
    height: 28px;
    margin-bottom: 14px;
    -webkit-filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.profile-left-content h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(23px, 5vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.02em;
}

.profile-sub {
    margin: 0;
    color: rgba(203, 213, 225, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.profile-features {
    display: none;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 26px;
    max-width: 480px;
}

.profile-feature-item {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 16px;
}

.profile-feature-item .feat-icon {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    background-color: rgba(14, 165, 233, 0.12);
    color: var(--cyan);
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-feature-item .feat-icon svg {
    width: 22px;
    height: 22px;
}

.profile-feature-item h4 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.profile-feature-item p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
}

.profile-modal-right {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 2;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 20px 24px 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #0c1622;
    overflow-y: visible;
    -webkit-transition: background-color 0.25s ease, color 0.25s ease;
    -moz-transition: background-color 0.25s ease, color 0.25s ease;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.profile-modal-right-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.profile-modal-right h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pm-subtext {
    margin: 0 0 28px;
    color: #8294a6;
    font-size: 14px;
}

.pm-field {
    margin-bottom: 18px;
}

.pm-field label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.pm-inputbox {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    background-color: #070f18;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-inputbox:focus-within {
    border-color: var(--cyan);
    -webkit-box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.15);
    -moz-box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.15);
    box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.15);
}

.pm-inputbox .pm-icon {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #64748b;
}

.pm-inputbox input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    background-color: transparent;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
}

.pwd-toggle-btn {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    background-color: transparent;
    color: #64748b;
    cursor: pointer;
}

.pwd-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.pm-row {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 20px 0 26px;
    font-size: 13px;
}

.pm-checkbox {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pm-checkbox input[type="checkbox"] {
    position: relative;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    outline: none;
    background-color: #070f18;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.pm-checkbox input[type="checkbox"]:checked {
    border-color: var(--cyan);
    background-color: var(--cyan);
}

.pm-checkbox input[type="checkbox"]:checked::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #050d1a;
    border-width: 0 2px 2px 0;
    content: "";
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pm-forgot {
    color: var(--cyan);
    font-weight: 600;
    text-decoration: none;
}

.pm-forgot:hover {
    text-decoration: underline;
}

.pm-submit-btn {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    background: -webkit-linear-gradient(180deg, #4ce0db 0%, #0f8b9d 100%);
    background: -moz-linear-gradient(180deg, #4ce0db 0%, #0f8b9d 100%);
    background: linear-gradient(180deg, #4ce0db 0%, #0f8b9d 100%);
    background-color: #0f8b9d;
    -webkit-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(16, 141, 161, 0.35);
    -moz-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(16, 141, 161, 0.35);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(16, 141, 161, 0.35);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
    -moz-transition: opacity 0.2s ease, -moz-transform 0.2s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pm-submit-btn:hover {
    opacity: 0.98;
    -webkit-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(16, 141, 161, 0.45);
    -moz-box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(16, 141, 161, 0.45);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(16, 141, 161, 0.45);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pm-divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.pm-divider:before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    content: "";
}

.pm-divider span {
    position: relative;
    padding: 0 12px;
    background-color: #0c1622;
    color: #64748b;
    font-size: 12px;
    -webkit-transition: background-color 0.25s ease;
    -moz-transition: background-color 0.25s ease;
    transition: background-color 0.25s ease;
}

.pm-new-section p {
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 13px;
}

.pm-create-btn {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    background: transparent;
    background-color: transparent;
    color: var(--cyan);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.pm-create-btn:hover {
    border-color: var(--cyan);
    background-color: rgba(56, 189, 248, 0.08);
}

.pm-create-btn svg {
    width: 18px;
    height: 18px;
}

html[data-theme="light"] .profile-left-content h2 {
    color: #ffffff;
}

html[data-theme="light"] .profile-modal-card {
    background-color: #ffffff;
}

html[data-theme="light"] .profile-modal-right {
    background-color: #ffffff;
}

html[data-theme="light"] .profile-modal-right h3 {
    color: #0f172a;
}

html[data-theme="light"] .pm-subtext {
    color: #64748b;
}

html[data-theme="light"] .pm-field label {
    color: #334155;
}

html[data-theme="light"] .pm-inputbox {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

html[data-theme="light"] .pm-inputbox input {
    color: #0f172a;
}

html[data-theme="light"] .pm-checkbox {
    color: #475569;
}

html[data-theme="light"] .pm-checkbox input[type="checkbox"] {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

html[data-theme="light"] .pm-checkbox input[type="checkbox"]:checked {
    border-color: #0284c7;
    background-color: #0284c7;
}

html[data-theme="light"] .pm-checkbox input[type="checkbox"]:checked::after {
    border-color: #ffffff;
}

html[data-theme="light"] .pm-forgot {
    color: #0284c7;
}

html[data-theme="light"] .pm-divider:before {
    background-color: #e2e8f0;
}

html[data-theme="light"] .pm-divider span {
    background-color: #ffffff;
    color: #64748b;
}

html[data-theme="light"] .pm-new-section p {
    color: #475569;
}

html[data-theme="light"] .pm-create-btn {
    border-color: #0284c7;
    color: #0284c7;
}

html[data-theme="light"] .pm-create-btn:hover {
    background-color: rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .profile-modal-close {
    border-color: #cbd5e1;
    background: #ffffff;
    background-color: #ffffff;
    color: #0f172a;
}

.pm-error {
    min-height: 16px;
    margin: 0 0 10px;
    color: #f87171;
    font-size: 12.5px;
    line-height: 1.4;
}

#loginForm {
    margin: 0;
}

@media (min-width: 576px) {
    .profile-modal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: 100vh;
    }

    .profile-modal-left {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        position: relative;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 60px 64px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-bg-overlay {
        background: -webkit-linear-gradient(180deg, rgba(7, 14, 23, 0.35) 0%, rgba(7, 14, 23, 0.8) 100%), radial-gradient(circle at 40% 30%, rgba(56, 189, 248, 0.25), transparent 65%);
        background: -moz-linear-gradient(180deg, rgba(7, 14, 23, 0.35) 0%, rgba(7, 14, 23, 0.8) 100%), radial-gradient(circle at 40% 30%, rgba(56, 189, 248, 0.25), transparent 65%);
        background: linear-gradient(180deg, rgba(7, 14, 23, 0.35) 0%, rgba(7, 14, 23, 0.8) 100%), radial-gradient(circle at 40% 30%, rgba(56, 189, 248, 0.25), transparent 65%);
        background-color: rgba(7, 14, 23, 0.35);
    }

    .profile-left-content {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        top: 5%;
        left: 10%;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        width: auto;
        height: auto;
        padding: 60px 64px;
        text-align: left;
        overflow-y: auto;
    }

    .profile-brand img {
        height: 39px;
        margin-bottom: 50px;
        -webkit-filter: none;
        filter: none;
    }

    .profile-left-content h2 {
        margin: 0 0 16px;
        padding: 0;
        text-shadow: none;
        font-size: clamp(32px, 3.5vw, 44px);
        text-align: left;
    }

    .profile-sub {
        margin: 0 0 44px;
        text-shadow: none;
        font-size: 15px;
        text-align: left;
    }

    .profile-features {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }

    .profile-modal-right {
        padding: 60px 64px;
        overflow-y: auto;
    }

    .profile-modal-right-wrap {
        max-width: 470px;
    }
}