/* Secondary glass action. */
:root { --preview-cancel-bg:#f3f4f7; --preview-cancel-fg:#273344; }
:is(
 button.secondary[data-contribute],
 button.secondary.family-add,
 button.secondary.header-account-add,
 button.secondary[data-reset-mobile-filters],
 button.secondary[data-goal-cancel],
 button.secondary[data-pay-invoice],
 button.secondary[data-open-card-statement],
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary,
 .nexo-profile-bottom-sheet button.nexo-profile-detail-button.secondary,
 .preview-cancel-demo
) {
 box-sizing:border-box!important;
 background:var(--preview-cancel-bg)!important;
 background-color:var(--preview-cancel-bg)!important;
 border:1px solid transparent!important;
 border-radius:16px!important;
 color:var(--preview-cancel-fg)!important;
 box-shadow:none!important;
 text-shadow:none!important;
 font-weight:500!important;
 transition:background-color 150ms ease,color 150ms ease!important;
}
:is(
 button.secondary[data-contribute],
 button.secondary.family-add,
 button.secondary.header-account-add,
 button.secondary[data-reset-mobile-filters],
 button.secondary[data-goal-cancel],
 button.secondary[data-pay-invoice],
 button.secondary[data-open-card-statement],
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary,
 .nexo-profile-bottom-sheet button.nexo-profile-detail-button.secondary,
 .preview-cancel-demo
):is(:hover,:active) {
 background:#e7e9ed!important;
 border-color:transparent!important;
 color:var(--text-primary)!important;
}
:is(
 button.secondary[data-contribute],
 button.secondary.family-add,
 button.secondary.header-account-add,
 button.secondary[data-reset-mobile-filters],
 button.secondary[data-goal-cancel],
 button.secondary[data-pay-invoice],
 button.secondary[data-open-card-statement],
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary,
 .nexo-profile-bottom-sheet button.nexo-profile-detail-button.secondary,
 .preview-cancel-demo
):focus-visible {
 outline:2px solid #8ea3b8!important;
 outline-offset:2px!important;
}
:is(
 button.secondary[data-contribute],
 button.secondary.family-add,
 button.secondary.header-account-add,
 button.secondary[data-reset-mobile-filters],
 button.secondary[data-goal-cancel],
 button.secondary[data-pay-invoice],
 button.secondary[data-open-card-statement],
 .nexo-profile-bottom-sheet .nexo-bottom-buttons > button.secondary,
 .nexo-profile-bottom-sheet button.nexo-profile-detail-button.secondary,
 .preview-cancel-demo
) .nexo-icon { color:inherit!important; stroke:currentColor!important; }
@media (prefers-reduced-motion:reduce)  and (max-width:800px){
 .preview-cancel-demo { transition:none!important; }
}

/* Preview experiment 2: thin red border only on three requested buttons.
   Preserve Cancelar's grey background and dark text. */
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
) {
 border:1px solid #ec0000!important;
 border-color:#ec0000!important;
 color:var(--preview-cancel-fg)!important;
}
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
):is(:hover,:active) {
 border-color:#ec0000!important;
 color:var(--preview-cancel-fg)!important;
}

/* Preview experiment 3: only these three labels/icons turn red.
   The bank and family actions use finer type; invoice keeps existing weight. */
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
),
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
):is(:hover,:active) {
 color:#ec0000!important;
}
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo
) {
 font-weight:400!important;
}

/* Preview experiment 4 — glass only on the three selected actions. */
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
) {
 background:rgba(255,255,255,.48)!important;
 background-color:rgba(255,255,255,.48)!important;
 -webkit-backdrop-filter:blur(18px) saturate(1.35)!important;
 backdrop-filter:blur(18px) saturate(1.35)!important;
 border:1.5px solid rgba(236,0,0,.75)!important;
 border-color:rgba(236,0,0,.75)!important;
 color:#ec0000!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 8px 20px rgba(36,45,61,.08)!important;
}
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo
):is(:hover,:active) {
 background:rgba(255,255,255,.58)!important;
 background-color:rgba(255,255,255,.58)!important;
 border-color:rgba(236,0,0,.9)!important;
 color:#ec0000!important;
}

/* Preview experiment 5: same red glass treatment for Ver fatura only. */
:is(
 button.secondary[data-open-card-statement],
 .preview-grid > .preview-card:nth-child(8) > .preview-cancel-demo
) {
 background:rgba(255,255,255,.48)!important;
 background-color:rgba(255,255,255,.48)!important;
 -webkit-backdrop-filter:blur(18px) saturate(1.35)!important;
 backdrop-filter:blur(18px) saturate(1.35)!important;
 border:1.5px solid rgba(236,0,0,.75)!important;
 border-color:rgba(236,0,0,.75)!important;
 color:#ec0000!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 8px 20px rgba(36,45,61,.08)!important;
}
:is(
 button.secondary[data-open-card-statement],
 .preview-grid > .preview-card:nth-child(8) > .preview-cancel-demo
):is(:hover,:active) {
 background:rgba(255,255,255,.58)!important;
 background-color:rgba(255,255,255,.58)!important;
 border-color:rgba(236,0,0,.9)!important;
 color:#ec0000!important;
}

/* Explicit width override: browser-computed 1.5px on all four glass buttons. */
:is(
 button.secondary.header-account-add,
 button.secondary.family-add,
 button.secondary[data-pay-invoice]:not(:disabled),
 button.secondary[data-open-card-statement],
 .preview-grid > .preview-card:nth-child(1) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(3) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(6) > .preview-cancel-demo,
 .preview-grid > .preview-card:nth-child(8) > .preview-cancel-demo
) {
 border-width:1.5px!important;
}

/* High-specificity preview width; outranks the base .secondary border shorthand. */
#headerAccounts button.secondary.header-account-add,
#app button.secondary.family-add,
#app button.secondary[data-pay-invoice]:not(:disabled),
#app button.secondary[data-open-card-statement],
body .preview-grid > .preview-card:nth-child(1) > button.preview-cancel-demo,
body .preview-grid > .preview-card:nth-child(3) > button.preview-cancel-demo,
body .preview-grid > .preview-card:nth-child(6) > button.preview-cancel-demo,
body .preview-grid > .preview-card:nth-child(8) > button.preview-cancel-demo {
 border-width:1.5px!important;
}
