.pv-account-page,
.pv-account-page * {
    box-sizing: border-box;
}

.pv-account-page {
    width: 100%;
    max-width: 560px;
    margin: 50px auto;
    padding: 0 18px;
    color: #182230;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pv-account-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(16, 24, 40, .08);
}

.pv-account-brand span {
    display: inline-block;
    margin-bottom: 8px;
    color: #5d4b91;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pv-account-brand h2 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 30px;
    line-height: 1.2;
}

.pv-account-brand p {
    margin: 0;
    color: #667085;
    line-height: 1.65;
}







.pv-account-panel form {
    display: grid;
    gap: 16px;
}

.pv-account-panel label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.pv-account-panel input[type="text"],
.pv-account-panel input[type="email"],
.pv-account-panel input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d5dbe5;
    border-radius: 9px;
    background: #fff;
    color: #101828;
    font: inherit;
    outline: none;
}

.pv-account-panel input:focus {
    border-color: #735fa8;
    box-shadow: 0 0 0 3px rgba(115, 95, 168, .12);
}

.pv-account-password-wrap {
    position: relative;
    display: block;
}

.pv-account-password-wrap input {
    padding-right: 48px !important;
}

.pv-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.pv-account-check {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 8px !important;
    font-weight: 500 !important;
}

.pv-account-primary,
.pv-account-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none !important;
}

button.pv-account-primary {
    border: 0;
    cursor: pointer;
}

.pv-account-primary {
    background: #372a66;
    color: #fff !important;
}

.pv-account-primary:hover {
    background: #2d2256;
}

.pv-account-secondary {
    border: 1px solid #d5dbe5;
    background: #fff;
    color: #344054 !important;
}

.pv-account-forgot {
    justify-self: start;
    color: #5d4b91;
    font-size: 14px;
    text-decoration: none;
}

.pv-account-help {
    margin: 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f7f5fb;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.pv-account-notice {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}

.pv-account-notice.is-error {
    background: #fff1f0;
    color: #b42318;
}

.pv-account-notice.is-success {
    background: #ecfdf3;
    color: #027a48;
}

.pv-account-signed-in {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
    padding: 16px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fafbfc;
}

.pv-account-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #372a66;
    color: #fff;
}

.pv-account-signed-in strong,
.pv-account-signed-in span {
    display: block;
}

.pv-account-signed-in span {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.pv-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Floating account menu */
.pv-account-floating,
.pv-account-floating * {
    box-sizing: border-box;
}

.pv-account-floating {
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 999990;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pv-account-menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: #372a66;
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
    cursor: pointer;
}

.pv-account-menu-toggle i {
    font-size: 13px;
}

.pv-account-menu-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    border: 2px solid #372a66;
    border-radius: 50%;
    background: #30b36b;
}



















@media (max-width: 600px) {
    .pv-account-card {
        padding: 22px 18px;
    }

    .pv-account-floating {
        top: 14px;
        right: 14px;
    }
}

body.admin-bar .pv-account-floating {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .pv-account-floating {
        top: 46px;
    }
}


/* =========================================================
   ACCOUNT MENU CLICK / TOUCH TARGETS
========================================================= */

.pv-account-floating {
    z-index: 2147483000;
    pointer-events: auto;
}

.pv-account-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pv-account-menu-toggle i,
.pv-account-menu-toggle span {
    pointer-events: none;
}







/* Make account-page actions use the entire visible button area. */
.pv-account-panel .pv-account-primary {
    width: 100%;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pv-account-panel .pv-account-primary {
    cursor: pointer;
}




/* =========================================================
   LOGGED-IN AVATAR -> DASHBOARD
========================================================= */
.pv-account-dashboard-link {
    text-decoration: none !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pv-account-dashboard-link:hover,
.pv-account-dashboard-link:focus,
.pv-account-dashboard-link:active,
.pv-account-dashboard-link:visited {
    color: #fff;
    text-decoration: none !important;
}

.pv-account-dashboard-link:hover {
    background: #2f245b;
    transform: translateY(-1px);
}

.pv-account-dashboard-link:focus-visible {
    outline: 3px solid rgba(88, 80, 180, .28);
    outline-offset: 3px;
}

/* =========================================================
   PV 3.0.4 LOGIN / PASSWORD RESET POLISH
========================================================= */
.pv-account-remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 24px;
}

.pv-account-panel .pv-account-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #344054;
    font-size: 14px;
    font-weight: 500 !important;
    line-height: 1.3;
    cursor: pointer;
}

.pv-account-panel .pv-account-check input[type="checkbox"] {
    position: static !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 18px !important;
    transform: none !important;
    vertical-align: middle !important;
}

.pv-account-panel .pv-account-primary {
    gap: 9px;
    width: 100%;
}

.pv-password-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0;
}

.pv-password-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
}

.pv-password-steps b {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: #e9edf3;
    color: #475467;
    font-size: 11px;
}

.pv-password-steps span.is-active {
    border-color: #c7bce9;
    background: #f6f2ff;
    color: #372a66;
}

.pv-password-steps span.is-active b,
.pv-password-steps span.is-complete b {
    background: #372a66;
    color: #fff;
}

.pv-account-state-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid #e1e6ee;
    border-radius: 14px;
    background: #fafbfc;
    text-align: center;
}

.pv-account-state-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ede8fa;
    color: #372a66;
    font-size: 18px;
}

.pv-account-state-card strong {
    color: #101828;
    font-size: 17px;
}

.pv-account-state-card p {
    margin: 0 0 4px;
    color: #667085;
}

@media (max-width: 520px) {
    .pv-password-steps {
        grid-template-columns: 1fr;
    }

    .pv-password-steps span {
        justify-content: flex-start;
        text-align: left;
    }
}

/* =========================================================
   v3.0.18 - MOBILE ACCOUNT ACCESS + RESPONSIVE HARDENING
   - Keep the public account launcher visible above theme UI.
   - Use a labelled pill on phones instead of a tiny icon.
   - Open the account popover upward on narrow screens.
========================================================= */
.pv-account-menu-label {
    display: none;
    min-width: 0;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .pv-account-page {
        width: 100%;
        max-width: 560px;
        margin: 30px auto;
        padding-left: 14px;
        padding-right: 14px;
    }

    .pv-account-card {
        width: 100%;
        min-width: 0;
    }

    .pv-account-actions > a,
    .pv-account-actions > button {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .pv-account-floating,
    body.admin-bar .pv-account-floating {
        top: auto !important;
        right: auto !important;
        bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)) !important;
        left: max(12px, env(safe-area-inset-left)) !important;
        z-index: 2147483000 !important;
        max-width: calc(100vw - 24px);
    }

    .pv-account-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        border-radius: 999px;
        box-shadow: 0 8px 22px rgba(16, 24, 40, .20);
    }

    .pv-account-menu-toggle i {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .pv-account-menu-label {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
    }

    .pv-account-menu-dot {
        top: 3px;
        right: 5px;
    }

    

    

    .pv-account-brand h2 {
        font-size: 26px;
    }

    .pv-account-signed-in {
        align-items: flex-start;
        min-width: 0;
    }

    .pv-account-signed-in > div:last-child {
        min-width: 0;
    }

    .pv-account-signed-in span {
        overflow-wrap: anywhere;
    }

    .pv-account-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pv-account-actions > a,
    .pv-account-actions > button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .pv-account-page {
        margin-top: 18px;
        margin-bottom: 88px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .pv-account-card {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .pv-account-brand h2 {
        font-size: 24px;
    }

    .pv-account-menu-toggle {
        min-height: 40px;
        height: 40px;
        padding-left: 9px;
        padding-right: 9px;
    }

    
}


/* v3.1.18 - unified User / Therapist login */
.pv-account-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 24px 0 20px;
    padding: 5px;
    border-radius: 12px;
    background: #f1f3f7;
}
.pv-account-login-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475467;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.pv-account-login-tab.is-active {
    background: #002053;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 32, 83, .18);
}
.pv-account-login-panel[hidden] { display: none !important; }
.pv-account-login-intro { margin: 0 0 16px; }
.pv-account-login-intro strong { display: block; color: #17233a; font-size: 17px; }
.pv-account-login-intro p { margin: 4px 0 0; color: #667085; font-size: 13px; line-height: 1.55; }
@media (max-width: 480px) {
    .pv-account-login-tabs { grid-template-columns: 1fr; }
}

/* v3.1.19 - logged-out launcher goes directly to Login */
.pv-account-login-direct,
.pv-account-login-direct:hover,
.pv-account-login-direct:focus,
.pv-account-login-direct:active,
.pv-account-login-direct:visited {
    color: #fff;
    text-decoration: none !important;
}
