/* PVX SPECTRUM THEME V1. Color-only overlay. No layout or interaction changes. */
:root{
 --pvx-spectrum-purple:#7657ff;--pvx-spectrum-cyan:#05c7ed;
 --pvx-spectrum-gold:#ffda39;--pvx-spectrum-green:#078455;
 --pvx-spectrum-red:#bc303e;--pvx-spectrum-panel:#20232f;
}
/* Keep the existing charcoal canvas and gold branding. */
body :is(.pvx-dashboard-panel,.pvx-dashboard-membership-card,.pvx-registration-form,.pvx-login-card,.pvx-add-funds-card,.pvx-transfer-card,.pvx-transfer-security-card){
 border-color:#8374b4!important;box-shadow:0 5px 24px #00000026!important
}
body :is(.pvx-member-identity-item,.pvx-dashboard-referral-link-card,.pvx-downliners-total-card),
body .pvx-wallets-grid>.pvx-wallet-card{
 background:linear-gradient(125deg,#20232f,#262938)!important;
 border-color:#60528a!important;color:#f4f4fb!important;
 box-shadow:0 5px 20px #00000025!important
}
body :is(.pvx-member-identity-item,.pvx-dashboard-referral-link-card,.pvx-downliners-total-card,.pvx-wallet-card)
:is(.pvx-member-identity-value,.pvx-dashboard-referral-link-value,.pvx-wallet-card-balance,.pvx-downliners-total-number){
 color:#f5f4ff!important
}
body :is(.pvx-member-identity-label,.pvx-wallet-card-label,.pvx-downliners-total-label){color:#bbc5ed!important}
body .pvx-wallet-card .pvx-wallet-history-text-v1{color:#81e7ff!important}
body .pvx-wallets-grid>.pvx-wallet-card::before{background:linear-gradient(90deg,#7657ff,#05c7ed)!important}
/* Explicit action selectors avoid generic button overrides and disabled states. */
body :is(.pvx-primary-button,.pvx-transfer-primary-button,.pvx-transactions-search-submit,
.pvx-downliners-search-button,.pvx-dashboard-team-button,.pvx-copy-referral-button,
.pvx-add-funds-confirm-amount-button,.pvx-add-funds-submit-button):not(:disabled):not([aria-disabled="true"]){
 background:linear-gradient(110deg,#6542dc,#087da7)!important;border-color:#9275ff!important;color:#fff!important
}
/* Bright gold financial entry actions remain recognizably PVX. */
body .pvx-wallet-add-funds-button:not(:disabled){
 background:#ffda39!important;border-color:#e6bb20!important;color:#191c22!important
}
/* Login green; logout red. Public header class conventions plus exact login URLs. */
body :is(.pvx-login-button,.pvx-btn.pvx-login,.pvx-btn.login,
a[href="/login/"],a[href$="/login/"],a[href$="/login"]):not(:disabled){
 background:#078455!important;border-color:#079963!important;color:#fff!important
}
body :is(.pvx-user-navigation-logout,.pvx-user-mobile-link-logout,.pvx-logout,
a[href*="action=logout"]){
 background:#a92c39!important;border-color:#d95161!important;color:#fff!important
}
/* Account status is distinct from active navigation tabs. */
body :is(.pvx-status-active,.pvx-downliner-status.pvx-status-active),
body .pvx-team20 .status-active{
 background:#d9f7e5!important;color:#086735!important;border-color:#48a876!important
}
body :is(.pvx-status-inactive,.pvx-downliner-status.pvx-status-inactive),
body .pvx-team20 .status-inactive{
 background:#ffe1e6!important;color:#a32335!important;border-color:#d9717e!important
}
/* Transaction direction retains its explicit credit/debit class. */
body .pvx-transaction-card.is-credit{background:#ddf5e8!important;border-color:#50ab7b!important}
body .pvx-transaction-card.is-debit{background:#ffe2e7!important;border-color:#d77586!important}
body .pvx-transaction-card.is-credit .pvx-transaction-amount{color:#067139!important}
body .pvx-transaction-card.is-debit .pvx-transaction-amount{color:#b1273c!important}
/* Navigation and notification accents. No menu state or visibility changes. */
body :is(.pvx-user-navigation-link-active,.pvx-user-mobile-link-active){
 background:#302747!important;color:#f9d95c!important;border-color:#8062c3!important
}
body .pvx-notification-panel .pvx-notification-item.is-unread{border-color:#8264ee!important}
body .pvx-notification-badge{background:#6846d8!important;color:#fff!important}
body .pvx-notification-panel .pvx-notification-header strong{color:#83deff!important}
body .pvx-team20 .team-filters{background:#242533!important;border-color:#6e589a!important}
body .pvx-team20 .team-filters button{background:linear-gradient(110deg,#6542dc,#087da7)!important;color:#fff!important}
body .pvx-team20 .team-ref,body .pvx-team20 .team-sponsor small{color:#6335a8!important}
/* Membership identity: assign colors by stable title, not card position. */
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Meteor membership"]{--spectrum-tier:#ffb35b;--spectrum-shade:#503125}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Asteroid membership"]{--spectrum-tier:#aabaff;--spectrum-shade:#303c64}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Comet membership"]{--spectrum-tier:#4dd9ff;--spectrum-shade:#194859}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Star membership"]{--spectrum-tier:#ffdf52;--spectrum-shade:#4d421c}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Nebula membership"]{--spectrum-tier:#c5a0ff;--spectrum-shade:#442967}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Supernova membership"]{--spectrum-tier:#ff94ca;--spectrum-shade:#5b2748}
body #pvx-mj-v1 .pvx-mj-tile[data-mj-title="Galaxy membership"]{--spectrum-tier:#58e4c2;--spectrum-shade:#1e4c49}
body #pvx-mj-v1 .pvx-mj-tile:is([data-state="ready"],[data-state="current"],[data-state="previous"]){
 background:linear-gradient(120deg,var(--spectrum-shade),#232630)!important;
 color:#f7f7ff!important;border-color:var(--spectrum-tier)!important
}
body #pvx-mj-v1 .pvx-mj-tile:is([data-state="ready"],[data-state="current"],[data-state="previous"]) strong{
 color:var(--spectrum-tier)!important
}
body #pvx-mj-v1 .pvx-mj-tile:is([data-state="ready"],[data-state="current"],[data-state="previous"]) .pvx-mj-badge{
 background:#ffffff1c!important;color:#fff!important
}
body #pvx-mj-v1 .pvx-mj-tile[data-state="current"]{box-shadow:0 0 0 2px var(--spectrum-tier),0 4px 20px #00000030!important}
body #pvx-mj-v1 .pvx-mj-tile[data-state="locked"]{background:#30333d!important;color:#b6bbc6!important;border-color:#636775!important}
body #pvx-mj-v1 .pvx-mj-tile[data-state="locked"] strong{color:#c5c9d3!important}
body #pvx-mj-v1 .pvx-mj-tile[data-state="locked"] .pvx-mj-badge{background:#424651!important;color:#e1e3eb!important}
body #pvx-mj-v1 .pvx-mj-tile[data-state="soon"]{
 background:repeating-linear-gradient(135deg,#2b2e38,#2b2e38 9px,#323642 9px,#323642 18px)!important;
 color:#c5c9d3!important;border-color:#6f7585!important
}
/* Tier badges elsewhere use the same palette on readable light surfaces. */
body .pvx-team20 .tier-meteor{background:#ffe1b5!important;color:#853900!important}
body .pvx-team20 .tier-asteroid{background:#e0e5ff!important;color:#394b88!important}
body .pvx-team20 .tier-comet{background:#c9f3ff!important;color:#075b77!important}
body .pvx-team20 .tier-star{background:#fff0ac!important;color:#715300!important}
body .pvx-team20 .tier-nebula{background:#ead7ff!important;color:#633193!important}
body .pvx-team20 .tier-supernova{background:#ffd7ec!important;color:#982258!important}
body .pvx-team20 .tier-galaxy{background:#c4f5e7!important;color:#09634e!important}


/* PVX_CONTRAST_REPAIR_V2 */
html body .pvx-user-dashboard .pvx-dashboard-referral-id-card {
    background: #d7e8fa !important;
}
html body .pvx-user-dashboard .pvx-dashboard-upliner-card {
    background: #dcefe1 !important;
}
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card {
    background: #fae4cf !important;
}
html body .pvx-user-dashboard .pvx-downliners-total-card {
    background: #e8dcf6 !important;
}
html body .pvx-user-dashboard .pvx-member-identity-item .pvx-member-identity-value,
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card .pvx-dashboard-referral-link-value,
html body .pvx-user-dashboard .pvx-downliners-total-card .pvx-downliners-total-number {
    color: #242b37 !important;
    -webkit-text-fill-color: #242b37 !important;
}
html body .pvx-user-dashboard .pvx-member-identity-label,
html body .pvx-user-dashboard .pvx-downliners-total-label {
    color: #394351 !important;
}
html body .pvx-wallets-page .pvx-wallets-grid > .pvx-wallet-card.pvx-wallet-card-wide {
    background: #dce9ef !important;
    border-color: #9bb6c5 !important;
}
html body .pvx-wallets-page .pvx-wallet-card.pvx-wallet-card-wide .pvx-wallet-card-label,
html body .pvx-wallets-page .pvx-wallet-card.pvx-wallet-card-wide .pvx-wallet-card-balance,
html body .pvx-wallets-page .pvx-wallet-card.pvx-wallet-card-wide p {
    color: #243847 !important;
    -webkit-text-fill-color: #243847 !important;
}
html body .pvx-main-wallet-card .pvx-wallet-add-funds-button {
    background: linear-gradient(135deg,#287c5b,#15583f) !important;
    border-color: #3d926f !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px #153c3026 !important;
}
html body .pvx-main-wallet-card .pvx-wallet-add-funds-button span {
    color: #ffffff !important;
}
html body .pvx-main-wallet-card .pvx-wallet-add-funds-button:hover {
    background: linear-gradient(135deg,#226d50,#104b35) !important;
}
html body dialog.pvx-notification-panel {
    background: #181a1d !important;
    color: #f3f1eb !important;
    border-color: #444951 !important;
}
html body .pvx-notification-panel .pvx-notification-header {
    background: #181a1d !important;
    border-color: #444951 !important;
}
html body .pvx-notification-panel .pvx-notification-header strong,
html body .pvx-notification-panel #pvx-notification-title,
html body .pvx-notification-panel .pvx-notification-status {
    color: #f3f1eb !important;
}
html body .pvx-notification-panel .pvx-notification-item,
html body .pvx-notification-panel .pvx-notification-item.is-unread {
    background: #e0eaf5 !important;
    border-color: #a9bfd6 !important;
}
html body .pvx-notification-panel .pvx-notification-item.is-unread {
    border-left-color: #466f9b !important;
}
html body .pvx-notification-panel .pvx-notification-item summary strong,
html body .pvx-notification-panel .pvx-notification-item p {
    color: #24394e !important;
}
html body .pvx-notification-panel .pvx-notification-item summary small,
html body .pvx-notification-panel .pvx-notification-state {
    color: #4c6073 !important;
}
@media(max-width:767px) {
    html body .pvx-team20 .team-filters > div:has(#pvx-team-membership) {
        grid-column: 1 / -1;
    }
    html body .pvx-team20 #pvx-team-membership {
        width: 100%;
        min-width: 0;
        padding-right: 32px;
        font-size: 16px;
    }
}

/* PVX_REFERRAL_LINK_CONTRAST_V3 */
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card {
    background: #fae4cf !important;
}
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card .pvx-dashboard-referral-link-value,
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card .pvx-dashboard-referral-link-value * {
    color: #49301e !important;
    -webkit-text-fill-color: #49301e !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html body .pvx-user-dashboard .pvx-dashboard-referral-link-card .pvx-dashboard-referral-link-value {
    overflow-wrap: anywhere;
    white-space: normal;
}

/* PVX_REFERRAL_LINK_ID_CONTRAST_V4 */
html body #pvx-user-referral-link,
html body #pvx-user-referral-link * {
    color: #49301e !important;
    -webkit-text-fill-color: #49301e !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html body #pvx-user-referral-link {
    overflow-wrap: anywhere;
    white-space: normal;
}

/* PVX_ACTIVATION_NOTICE_LAYOUT_V1 */
html body .pvx-user-dashboard .pvx-membership-action:has(> .pvx-membership-notice) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    min-width: 0;
}
html body .pvx-user-dashboard .pvx-membership-action > .pvx-membership-notice {
    box-sizing: border-box !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word;
}
html body .pvx-user-dashboard .pvx-membership-action > .pvx-membership-notice-success {
    background: #dfefe5 !important;
    border: 1px solid #91bca2 !important;
    border-left: 4px solid #2c8054 !important;
    color: #195538 !important;
    -webkit-text-fill-color: #195538 !important;
}
html body .pvx-user-dashboard .pvx-membership-action > .pvx-membership-notice-error {
    background: #f5e0e3 !important;
    border: 1px solid #cc929c !important;
    color: #8b2c3c !important;
    -webkit-text-fill-color: #8b2c3c !important;
}
html body .pvx-user-dashboard .pvx-membership-action:has(> .pvx-membership-notice) > .pvx-secondary-button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: flex-start !important;
    flex: 0 1 auto !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    border-radius: 9px !important;
    background: #263646 !important;
    border: 1px solid #486078 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
@media (max-width: 767px) {
    html body .pvx-user-dashboard .pvx-membership-action:has(> .pvx-membership-notice) > .pvx-secondary-button {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* PVX_TEAM_RESET_ALIGNMENT_V1 */
@media (max-width: 767px) {
    html body .pvx-team20 form.team-filters {
        padding-bottom: 8px !important;
        row-gap: 8px !important;
    }

    html body .pvx-team20 form.team-filters > button[type="submit"] {
        grid-column: 2 !important;
    }

    html body .pvx-team20 form.team-filters > a.team-reset {
        grid-column: 2 !important;
        justify-self: stretch !important;
        align-self: start !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 28px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 3px 0 !important;
        font-size: 13px !important;
        line-height: 22px !important;
    }
}
/* END PVX_TEAM_RESET_ALIGNMENT_V1 */

/* PVX_TEAM_RESET_RIGHT_V2 */
@media (max-width: 767px) {
    html body .pvx-team20 form.team-filters > a.team-reset {
        justify-content: flex-end !important;
        text-align: right !important;
        padding-right: 0 !important;
    }
}

/* PVX_TEAM_REMOVE_RESET_V3 */
html body .pvx-team20 form.team-filters > a.team-reset {
    display: none !important;
}
html body .pvx-team20 form.team-filters {
    padding-bottom: 8px !important;
}
html body .pvx-team20 form.team-filters > button[type="submit"] {
    margin-bottom: 0 !important;
}

/* PVX_DIRECT_DOWNLINERS_NUMBER_CONTRAST_V1 */
html body .pvx-dashboard-downliners-total-card .pvx-downliners-total-number,
html body .pvx-dashboard-downliners-total-card .pvx-downliners-total-number * {
    color: #422660 !important;
    -webkit-text-fill-color: #422660 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}