/*
 * MissingPage public site - the modern layer.
 *
 * Loaded after the template stylesheets and overrides them wholesale using
 * the site's actual class vocabulary (two header variants, the custom button
 * family, tag-styled tables). Modern techniques where they earn their keep:
 * custom properties, fluid type via clamp(), a sticky translucent header,
 * :focus-visible rings, and prefers-reduced-motion respected throughout.
 */

:root {
    --mp-ink: #101216;
    --mp-panel: #12141a;
    --mp-cyan: #46b7c5;
    --mp-cyan-deep: #2e8fa3;
    --mp-cyan-dark: #3aa5b3;
    --mp-canvas: #f5f7fb;
    --mp-muted: #7b8492;
    --mp-line: #e7ebf2;
    --mp-radius: 16px;
    --mp-radius-sm: 10px;
    --mp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
    --mp-shadow-lift: 0 4px 8px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .12);
    --mp-grad: linear-gradient(135deg, #46b7c5, #2e8fa3);
    --mp-grad-hover: linear-gradient(135deg, #3aa5b3, #257e91);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(70, 183, 197, .28);
}

:focus-visible {
    outline: 2px solid var(--mp-cyan);
    outline-offset: 2px;
}

body {
    color: #2a2f37;
}

/* ---------- Header: sticky, translucent, both auth states ---------- */

/* Floating island: the header is a detached glass pill below the top edge,
   not a bar across it. The <header> itself goes transparent and only provides
   the sticky position; the pill is the nav container inside it. */
header {
    position: sticky;
    top: 12px;
    z-index: 1020;
    background: transparent;
    border-bottom: none;
    pointer-events: none; /* the gaps around the pill should not eat clicks */
}

header .container {
    pointer-events: auto;
}

.top-menu,
.main-page header .row {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .12);
    padding: 6px 10px 6px 20px;
}

.main-page header .row {
    align-items: center;
    margin: 0;
    padding: 8px 18px;
}

/* Room so page content never starts underneath the floating pill */
header + section,
header + div {
    margin-top: 6px;
}

.top-menu .main-nav {
    gap: .25rem;
}

.top-menu .main-nav .nav-link,
.navbar-login .navbar-nav li a {
    color: #3d434b;
    font-weight: 500;
    font-size: .98rem;
    border-radius: 999px;
    padding: 8px 18px;
    transition: color .15s ease, background-color .15s ease;
    text-decoration: none;
}

.top-menu .main-nav .nav-link:hover,
.navbar-login .navbar-nav li a:hover {
    color: var(--mp-cyan-dark);
    background: rgba(70, 183, 197, .08);
}

.top-menu .main-nav .nav-link.active,
.top-menu .main-nav li.active .nav-link {
    color: var(--mp-cyan-deep);
    background: rgba(70, 183, 197, .12);
    font-weight: 600;
}

/* The right-hand cluster: sign-in stays quiet, sign-up is the one loud thing */
.nav-auth {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nav-auth .nav-login {
    color: #3d434b;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.nav-auth .nav-login:hover {
    color: var(--mp-cyan-dark);
    background: rgba(70, 183, 197, .08);
}

.nav-auth .nav-signup {
    background: var(--mp-grad);
    color: #fff;
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(70, 183, 197, .3);
    transition: background .15s ease, box-shadow .15s ease;
}

.nav-auth .nav-signup:hover {
    background: var(--mp-grad-hover);
    color: #fff;
    box-shadow: 0 6px 16px rgba(70, 183, 197, .4);
}

.navbar-toggler {
    border: none;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(70, 183, 197, .25);
}

/* Mobile: the collapse opens as a soft sheet, not a bare list */
@media (max-width: 991.98px) {
    .top-menu,
    .main-page header .row {
        border-radius: 22px;
    }

    .top-menu .navbar-collapse {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
        margin-top: 10px;
        padding: 12px;
    }

    .top-menu .main-nav .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
    }

    .nav-auth {
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        margin-top: .5rem;
        padding-top: .75rem;
        border-top: 1px solid var(--mp-line);
    }

    .nav-auth .nav-login,
    .nav-auth .nav-signup {
        text-align: center;
        padding: 12px 16px;
    }
}

.header-logo {
    max-height: 44px;
}

/* Notification + profile cluster */
.custom-box,
.notification-popup {
    border: none !important;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .16);
    overflow: hidden;
}

.dropdown-menu .dropdown-item {
    border-radius: 8px;
    margin: 2px 6px;
    width: auto;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(70, 183, 197, .1);
    color: var(--mp-cyan-dark);
}

.pro-img {
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(16, 24, 40, .2);
}

/* ---------- Hero ---------- */

.banner-text {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -.5px;
}

.text-large {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.6;
}

.background-video .overlay {
    background: linear-gradient(to right, rgba(12, 13, 16, .82), rgba(12, 13, 16, .45) 60%, rgba(12, 13, 16, .25));
}

/* ---------- Buttons: one family, whatever the template called them ---------- */

.update-btn,
.btn-mp,
.btn-upload,
.join-missingpage,
.page-btn,
.login-btn,
.tbl-load-more-btn,
.btn.btn-primary,
button.update-btn {
    background: var(--mp-grad) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--mp-radius-sm) !important;
    padding: 12px 26px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(70, 183, 197, .32);
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.update-btn:hover, .btn-mp:hover, .btn-upload:hover, .join-missingpage:hover,
.page-btn:hover, .login-btn:hover, .tbl-load-more-btn:hover, .btn.btn-primary:hover {
    background: var(--mp-grad-hover) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(70, 183, 197, .42);
}

.update-btn:active, .btn-mp:active, .join-missingpage:active, .btn.btn-primary:active {
    transform: translateY(1px);
}

.btn.btn-secondary,
.btn.btn-default,
.close-button,
.btn.btn-light-primary {
    background: #eef1f6 !important;
    color: #3d434b !important;
    border: none !important;
    border-radius: var(--mp-radius-sm) !important;
    font-weight: 600;
}

.btn.btn-secondary:hover,
.btn.btn-default:hover,
.close-button:hover {
    background: #e2e7ef !important;
    color: var(--mp-ink) !important;
}

/* ---------- Sections and cards ---------- */

section {
    scroll-margin-top: 90px;
}

.bg-shade {
    background: var(--mp-canvas);
}

.section-label {
    color: var(--mp-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .85rem;
}

.box-item {
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.box-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-lift);
}

.content-box-2,
.summary-box,
.createanevent,
.contactusbox {
    background: #fff;
    border: none;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
}

.eventpage .heading,
.main-content-user .heading {
    color: var(--mp-ink);
    font-weight: 700;
    letter-spacing: -.3px;
}

/* Tabs on the listing pages */
.nav-tabs .nav-link {
    color: var(--mp-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 18px;
}

.nav-tabs .nav-link.active {
    color: var(--mp-cyan-dark);
    background: transparent;
    border-bottom-color: var(--mp-cyan);
}

/* ---------- Tables (tag-styled in the template; retake them) ---------- */

table.file-table thead th,
.claimed-media-table th,
table.pip th {
    background: transparent;
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--mp-line);
    padding: 12px 14px;
}

table.file-table tbody td,
.claimed-media-table td,
table.pip td {
    border-top: 1px solid #f0f3f8;
    padding: 13px 14px;
    vertical-align: middle;
    color: #2a2f37;
}

table.file-table tbody tr:hover td,
.claimed-media-table tr:hover td {
    background: #f4fbfc;
}

/* ---------- Forms ---------- */

.form-control,
.input-text-field,
select.form-select,
textarea.form-control {
    border-radius: var(--mp-radius-sm);
    border-color: #dfe4ec;
}

.form-control:focus,
.input-text-field:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: var(--mp-cyan);
    box-shadow: 0 0 0 3px rgba(70, 183, 197, .16);
}

.form-check-input:checked {
    background-color: var(--mp-cyan);
    border-color: var(--mp-cyan);
}

/* ---------- Modals ---------- */

.modal .modal-content {
    border: none;
    border-radius: var(--mp-radius);
    box-shadow: 0 24px 64px rgba(16, 24, 40, .25);
}

.modal .modal-header {
    border-bottom: 1px solid #f0f3f8;
}

.modal .modal-title {
    color: var(--mp-ink);
    font-weight: 700;
}

.modal .modal-footer {
    border-top: 1px solid #f0f3f8;
}

/* ---------- Footer: quiet, dark, grown-up ---------- */

footer {
    background: var(--mp-ink);
    color: #9aa3af;
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

footer .label {
    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;
}

footer nav a,
footer .nav-link {
    color: #9aa3af !important;
    padding-left: 0;
    transition: color .15s ease;
}

footer nav a:hover,
footer .nav-link:hover {
    color: #5fd0de !important;
}

/* ---------- Quiet scrollbars (WebKit + Firefox) ---------- */

* {
    scrollbar-width: thin;
    scrollbar-color: #c6cdd8 transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #c6cdd8;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* ---------- Motion respect ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .box-item,
    .update-btn, .btn-mp, .join-missingpage,
    .login-box.login-shake {
        transition: none;
        animation: none;
    }
}

/* ---------- Services page ---------- */

.services-hero {
    background: var(--mp-ink);
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.services-hero .section-label {
    color: #5fd0de;
}

.services-title {
    color: #fff;
    font-family: 'Nexa-Bold', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: .5rem 0 1.2rem;
}

.services-title span {
    color: var(--mp-cyan);
}

.services-title em {
    font-style: normal;
    border-bottom: 3px solid var(--mp-cyan);
}

.services-lead {
    color: #b9c0cc;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    max-width: 640px;
}

.services-card {
    border: none;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.services-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-lift);
}

.services-card .card-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    margin-bottom: .6rem;
}

.services-card .card-text {
    color: #5b6270;
    line-height: 1.65;
}

.services-cta {
    background: var(--mp-canvas);
}

.services-cta-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -.4px;
}

.services-cta-text {
    color: var(--mp-muted);
    max-width: 460px;
    margin: 1rem auto 1.6rem;
    line-height: 1.65;
}

.services-cta-btn {
    display: inline-block;
    padding: 14px 36px;
}

.services-cta-small {
    margin-top: 1.2rem;
    color: var(--mp-muted);
    font-size: .9rem;
}

.services-cta-small a {
    color: var(--mp-cyan-dark);
}

/* ---------- Signed-in listing pages (My Pages / My Events) ---------- */

.main-content-user,
.main-page-content {
    padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: var(--mp-canvas);
    min-height: 60vh;
}

/* The listing lives on a card instead of floating on the page background */
.eventpage {
    background: #fff;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: clamp(1.2rem, 3vw, 2rem);
}

.eventpage .heading,
.main-content-user .heading {
    font-size: 1.45rem;
}

.eventpage .nav-tabs {
    margin-top: .75rem;
    border-bottom: 1px solid var(--mp-line) !important;
    gap: .25rem;
}

.eventpage .tab-content {
    padding-top: .5rem;
}

.eventpage table.file-table {
    margin-top: 1.25rem;
}

/* Load more: a quiet action, not a hero button in a table footer */
.tbl-load-more-btn {
    background: transparent !important;
    color: var(--mp-cyan-dark) !important;
    border: 1px solid rgba(70, 183, 197, .45) !important;
    border-radius: 999px !important;
    padding: 7px 20px;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: none !important;
}

.tbl-load-more-btn:hover {
    background: rgba(70, 183, 197, .1) !important;
    color: var(--mp-cyan-deep) !important;
}

.eventpage tfoot th {
    border: none;
    padding-top: 1rem;
}

/* Tab tooltips: small ink cards instead of the template's raw popover */
.eventpage .popover__content {
    background: var(--mp-ink);
    color: #d7dce4;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .28);
    padding: 10px 14px;
    font-size: .82rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Empty states read as information, not as a lonely table cell */
.eventpage tbody td[colspan] {
    color: var(--mp-muted);
    padding: 2rem 1rem;
    text-align: center;
}

/* The Received tab's recipient/executor switch */
.claim-media {
    margin: .5rem 0 0;
}

.claim-media .form-check-label {
    font-weight: 600;
    color: #3d434b;
}

/* Inline step panels (Add Maturity Date) join the card language */
.maturityDiv {
    background: #fff;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-top: 1rem;
}

.backToTabView {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef1f6;
    color: #3d434b !important;
    text-decoration: none;
    font-weight: 700;
}

.backToTabView:hover {
    background: rgba(70, 183, 197, .15);
    color: var(--mp-cyan-deep) !important;
}

/* Dark heroes rise up behind the floating pill so no white strip shows above
   them; their inner padding gives that space back to the content. */
.background-video,
.services-hero {
    margin-top: -82px;
    padding-top: 82px;
}

/* ---------- Scroll-aware island + wordmark ---------- */

.brand-word {
    font-family: 'Nexa-Heavy', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--mp-ink);
    text-decoration: none !important;
    white-space: nowrap;
}

.brand-word em {
    font-style: normal;
    color: var(--mp-cyan);
}

.brand-word:hover {
    color: var(--mp-ink);
}

.top-menu,
.main-page header .row {
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.top-menu .main-nav .nav-link,
.nav-auth .nav-login,
.brand-word {
    transition: color .2s ease, background-color .2s ease;
}

/* Over a dark hero, before any scrolling: the pill is dark glass */
header.over-dark:not(.is-scrolled) .top-menu {
    background: rgba(16, 18, 22, .5);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

header.over-dark:not(.is-scrolled) .brand-word {
    color: #fff;
}

header.over-dark:not(.is-scrolled) .top-menu .main-nav .nav-link,
header.over-dark:not(.is-scrolled) .nav-auth .nav-login {
    color: #dfe4ec;
}

header.over-dark:not(.is-scrolled) .top-menu .main-nav .nav-link:hover,
header.over-dark:not(.is-scrolled) .nav-auth .nav-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

header.over-dark:not(.is-scrolled) .top-menu .main-nav .nav-link.active,
header.over-dark:not(.is-scrolled) .top-menu .main-nav li.active .nav-link {
    color: #5fd0de;
    background: rgba(255, 255, 255, .1);
}

header.over-dark:not(.is-scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

/* Scrolled: a touch tighter, a firmer shadow */
header.is-scrolled .top-menu,
header.is-scrolled .main-page header .row {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 10px rgba(16, 24, 40, .08), 0 16px 40px rgba(16, 24, 40, .14);
}

/* The expanded mobile sheet must stay readable whatever the pill state */
@media (max-width: 991.98px) {
    header.over-dark:not(.is-scrolled) .top-menu .navbar-collapse .nav-link,
    header.over-dark:not(.is-scrolled) .top-menu .navbar-collapse .nav-login {
        color: #3d434b;
    }
}

/* ---------- Claim media ---------- */

.claim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.claim-subtitle {
    color: var(--mp-muted);
    margin: .35rem 0 0;
    max-width: 480px;
}

.claim-actions {
    display: flex;
    gap: .6rem;
    align-items: center;
}

/* Per Srikanth: the header action pairs (Create X / My X) should match, not
   split into primary and ghost - both wear the gradient. */
.claim-ghost-btn {
    background: var(--mp-grad);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius-sm);
    padding: 11px 22px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(70, 183, 197, .32);
    transition: background .15s ease, box-shadow .15s ease;
}

.claim-ghost-btn:hover {
    background: var(--mp-grad-hover);
    color: #fff;
    box-shadow: 0 6px 18px rgba(70, 183, 197, .42);
}

/* The claim form is one centred, focused card */
.claim-card {
    max-width: 560px;
    margin: 1.5rem auto 1rem;
    text-align: left;
}

.claim-question {
    display: block;
    font-weight: 600;
    color: var(--mp-ink);
    margin-bottom: .6rem;
}

/* Segmented control: radios hidden, labels share a pill track */
.mp-segment {
    display: inline-flex;
    background: #eef1f6;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.25rem;
}

.mp-segment-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-segment-label {
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--mp-muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.mp-segment-input:checked + .mp-segment-label {
    background: #fff;
    color: var(--mp-cyan-deep);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.mp-segment-input:focus-visible + .mp-segment-label {
    outline: 2px solid var(--mp-cyan);
    outline-offset: 2px;
}

/* The code is the hero of this screen */
.claim-code-input {
    font-size: 1.15rem !important;
    letter-spacing: 3px;
    font-weight: 600;
}

.claim-submit {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .25rem;
    float: none !important;
}

.claim-help {
    color: var(--mp-muted);
    font-size: .85rem;
    line-height: 1.55;
    margin-top: 1.25rem;
}

.claim-pane {
    margin-top: .25rem;
}

/* Claim phone pane: undo the template's float and tame select2 */

.claim-card .claim-phone {
    float: none;
    margin: 0;
    width: 100%;
}

.claim-field-label {
    display: block;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.claim-card .select2-container {
    width: 100% !important;
}

.claim-card .select2-container .select2-selection--single {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #dfe4ec;
    border-radius: var(--mp-radius-sm);
}

.claim-card .select2-container .select2-selection__rendered {
    line-height: normal;
    padding-left: 0;
    color: #2a2f37;
}

.claim-card .select2-container .select2-selection__arrow {
    height: 54px;
    right: 10px;
}

.claim-card .select2-container--open .select2-selection--single,
.claim-card .select2-container--focus .select2-selection--single {
    border-color: var(--mp-cyan);
    box-shadow: 0 0 0 3px rgba(70, 183, 197, .16);
}

.select2-dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--mp-cyan);
}

/* The legacy floats that pushed the submit link out of line */
.claim-card .send,
.claim-card .update-btn {
    float: none !important;
    clear: none !important;
}

/* ---------- Support page ---------- */

.support-hero {
    background: var(--mp-ink);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    margin-top: -82px;
    padding-top: calc(clamp(2.5rem, 6vw, 4.5rem) + 82px);
}

.support-option {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    background: #fff;
    border: none;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.support-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-lift);
}

.support-option-title {
    display: block;
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.support-option-text {
    display: block;
    color: var(--mp-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.support-section-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: 1.4rem;
    letter-spacing: -.3px;
    margin-bottom: 1rem;
}

/* FAQ: native <details>, dressed */
.faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--mp-shadow);
    margin-bottom: .6rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--mp-ink);
    list-style: none;
    position: relative;
    padding-right: 2.6rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mp-cyan-dark);
    font-size: 1.3rem;
    font-weight: 600;
    transition: transform .15s ease;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: #5b6270;
    line-height: 1.65;
}

.faq-item a { color: var(--mp-cyan-dark); }

.support-form-card { max-width: 640px; }

.support-textarea { min-height: 140px; }

/* ---------- Chat assistant ---------- */

.mp-chat-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 1.35rem;
    background: var(--mp-grad);
    box-shadow: 0 8px 24px rgba(70, 183, 197, .45);
    cursor: pointer;
    transition: transform .15s ease;
}

.mp-chat-launcher:hover { transform: scale(1.06); }

.mp-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 1050;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .3);
    overflow: hidden;
}

.mp-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mp-ink);
    color: #fff;
    padding: 14px 16px;
}

.mp-chat-title { font-weight: 700; }

.mp-chat-sub { font-size: .74rem; color: #9aa3af; }

.mp-chat-close {
    background: none;
    border: none;
    color: #9aa3af;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.mp-chat-close:hover { color: #fff; }

.mp-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
}

.mp-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.5;
}

.mp-chat-bot {
    background: #f1f4f8;
    color: #2a2f37;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.mp-chat-me {
    background: var(--mp-grad);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.mp-chat-link {
    color: var(--mp-cyan-deep);
    font-weight: 600;
}

.mp-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
}

.mp-chat-chip {
    background: rgba(70, 183, 197, .1);
    color: var(--mp-cyan-deep);
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.mp-chat-chip:hover { background: rgba(70, 183, 197, .2); }

.mp-chat-inputrow {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--mp-line);
}

.mp-chat-inputrow input {
    flex: 1;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .9rem;
}

.mp-chat-inputrow input:focus {
    outline: none;
    border-color: var(--mp-cyan);
    box-shadow: 0 0 0 3px rgba(70, 183, 197, .15);
}

.mp-chat-inputrow button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--mp-grad);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Header action pairs (Create X / My X): identical geometry, whatever mix of
   classes each page's buttons carry */
.claim-actions {
    flex-wrap: wrap;
}

.claim-actions .update-btn,
.claim-actions .claim-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px !important;
    margin: 0 !important;
    float: none !important;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
}

/* ---------- Services: menu-based layout ---------- */

.services-menu {
    position: sticky;
    top: 84px; /* sits just under the floating island */
    z-index: 900;
    padding: 10px 0;
}

.services-menu-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
}

.services-menu-track::-webkit-scrollbar { display: none; }

.services-menu-pill {
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--mp-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.services-menu-pill:hover {
    color: var(--mp-cyan-dark);
    background: rgba(70, 183, 197, .08);
}

.services-menu-pill.active {
    background: var(--mp-grad);
    color: #fff;
    box-shadow: 0 3px 10px rgba(70, 183, 197, .35);
}

.svc-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
    scroll-margin-top: 150px;
}

.svc-alt {
    background: var(--mp-canvas);
}

.svc-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -.4px;
    margin: .4rem 0 1rem;
}

.svc-text {
    color: #5b6270;
    line-height: 1.75;
    font-size: 1.02rem;
    max-width: 520px;
}

.svc-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 12px 28px;
}

/* One concrete moment per section: a quiet card in the product's voice */
.svc-moment {
    background: var(--mp-ink);
    border-radius: var(--mp-radius);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    box-shadow: var(--mp-shadow-lift);
    max-width: 460px;
    margin: 0 auto;
}

.svc-moment p {
    font-family: 'Nexa-Bold', sans-serif;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.svc-moment span {
    color: #5fd0de;
    font-size: .85rem;
    letter-spacing: .5px;
}

/* ---------- News feed ---------- */

.newsfeed-filter {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: #fff;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: 1.1rem 1.25rem;
}

.newsfeed-filter-field {
    flex: 1 1 150px;
}

.newsfeed-filter-search {
    flex: 2 1 240px;
}

.newsfeed-filter-actions {
    display: flex;
    gap: .5rem;
}

.newsfeed-filter-actions .btn {
    height: 46px;
    display: inline-flex;
    align-items: center;
}

.newsfeed-reset {
    background: #eef1f6 !important;
    color: #3d434b !important;
    border: none !important;
    border-radius: var(--mp-radius-sm) !important;
    font-weight: 600;
}

.newsfeed-reset:hover {
    background: #e2e7ef !important;
}

/* Feed entries as cards */
.newsfeed-box .card-item {
    background: #fff;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.1rem;
}

.newsfeed-box .username {
    color: var(--mp-ink);
}

.newsfeed-box .username span {
    font-weight: 700;
}

.newsfeed-box .date {
    color: var(--mp-muted);
    font-size: .8rem;
    margin-top: 2px;
}

.newsfeed-box .card-text {
    color: #5b6270;
    line-height: 1.65;
}

.newsfeed-box .carousel-item,
.newsfeed-box .media-content img {
    border-radius: 12px;
    overflow: hidden;
}

.newsfeed-box .viewMoreDescr {
    color: var(--mp-cyan-dark);
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Invitation sharing ---------- */

.mp-invite-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(70, 183, 197, .12);
    color: var(--mp-cyan-deep) !important;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
}

.mp-invite-btn:hover {
    background: var(--mp-grad);
    color: #fff !important;
}

#mp-share-sheet .mp-share-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 18, 22, .55);
    z-index: 1060;
}

#mp-share-sheet .mp-share-card {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1061;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .3);
    padding: 22px;
}

.mp-share-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: 1.1rem;
}

.mp-share-sub {
    color: var(--mp-muted);
    font-size: .85rem;
    margin: 6px 0 14px;
}

.mp-share-opt {
    display: block;
    width: 100%;
    text-align: left;
    background: #f4f6fa;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: var(--mp-ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.mp-share-opt:hover {
    background: rgba(70, 183, 197, .14);
    color: var(--mp-cyan-deep);
}

.mp-share-cancel {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--mp-muted);
    padding: 8px;
    margin-top: 4px;
    cursor: pointer;
}

/* Create-flow summary: the popup behind it is the template's teal gradient
   over a patterned image, which made text contrast a lottery - the maturity
   date lost. The summary gets its own opaque ink panel, so white text on it
   is guaranteed whatever the popup wears. */
.pageSummaryDiv .summary-box {
    background: #14181f;
    border-radius: 14px;
    padding: 24px 26px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.pageSummaryDiv label,
.pageSummaryDiv p,
.pageSummaryDiv span {
    color: #fff !important;
}

.pageSummaryDiv .text-summary > label {
    color: #5fd0de !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: .72rem !important;
}

.pageSummaryDiv .text-summary p {
    font-size: .95em !important;
    line-height: 1.6;
}

/* ---------- Create wizards (page + event popups) ---------- */

/* The full-screen sheet: ink, not the teal gradient with a pattern image */
.create-a-page,
.createanevent {
    background-image: linear-gradient(165deg, #0e1116 0%, #171d26 55%, #101216 100%) !important;
    scrollbar-color: #3a4150 transparent;
}

/* Panels get a consistent centred column */
.create-a-page [data-target],
.createanevent [data-target] {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.heading-popup {
    font-family: 'Nexa-Bold', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -.3px;
}

.closePageEvent img {
    filter: invert(1);
    opacity: .7;
    transition: opacity .15s ease;
}

.closePageEvent:hover img {
    opacity: 1;
}

/* Step indicator: the chevron blocks become a pill rail */
.steps-progress {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
    padding: 5px;
    gap: 2px;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
}

.steps-progress::-webkit-scrollbar { display: none; }

.steps-progress li span,
.steps-progress li .span {
    background: transparent !important;
    color: #8b93a1;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 18px 9px 40px !important;
    position: relative;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

/* No more arrows */
.steps-progress li span::before,
.steps-progress li span::after,
.steps-progress li .span::before,
.steps-progress li .span::after,
.span.active1::after,
.span.active1::before {
    content: none !important;
}

.number_step {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
}

/* Completed steps: cyan */
.steps-progress .span.active1-modal {
    color: #5fd0de;
}

.steps-progress .span.active1-modal .number_step {
    background: rgba(70, 183, 197, .25);
}

/* Current step: the one lit pill */
.steps-progress li.current1-modal > .span,
.steps-progress li.current1-modal > span {
    background: linear-gradient(135deg, #46b7c5, #2e8fa3) !important;
    color: #fff !important;
}

.steps-progress li.current1-modal .number_step {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* Step tooltips flip to white cards on the dark sheet */
.steps-progress .popover__content {
    background: #fff;
    color: #3d434b;
    border: none;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    padding: 12px 15px;
    font-size: .8rem;
    line-height: 1.55;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Text on the dark sheet reads light... */
.create-a-page label,
.create-a-page p,
.create-a-page .form-check-label,
.create-a-page .heading,
.createanevent label,
.createanevent p,
.createanevent .form-check-label,
.createanevent .heading {
    color: #c7cdd6;
}

/* ...except floating labels, which sit over white inputs */
.create-a-page .form-floating > label,
.createanevent .form-floating > label {
    color: #6b7280 !important;
}

/* Upload grid on the dark sheet */
.create-a-page .file-table th,
.createanevent .file-table th {
    color: #8b93a1 !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

.create-a-page .file-table td,
.createanevent .file-table td {
    color: #dfe4ec;
    border-color: rgba(255, 255, 255, .08);
    background: transparent;
}

.create-a-page .file-table td a,
.createanevent .file-table td a {
    color: #5fd0de;
}

.create-a-page .file-table .remove,
.createanevent .file-table .remove {
    color: #ff8a8f;
    cursor: pointer;
}

/* Wizard navigation: previous quiet, next loud */
#pagePrev, #eventPrev {
    background: rgba(255, 255, 255, .1) !important;
    color: #dfe4ec !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: none !important;
}

#pagePrev:hover, #eventPrev:hover {
    background: rgba(255, 255, 255, .18) !important;
}

/* Errors must survive the dark sheet */
.create-a-page #file-error,
.create-a-page .invalid-feedback,
.create-a-page .field-validation-error,
.createanevent .invalid-feedback,
.createanevent .field-validation-error {
    color: #ff8a8f !important;
}

/* PDF frames need real height to be a reader, not a letterbox */
#iframeID .iframe,
.modal-body .iframe {
    width: 100%;
    height: min(75vh, 900px);
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* ---------- Guided prompts on the description step ---------- */

#mp-prompts {
    margin-bottom: 12px;
}

.mp-prompts-label {
    color: #c7cdd6;
    font-size: .85rem;
    margin-bottom: 8px;
}

.mp-prompts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-prompt-chip {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #dfe4ec;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.mp-prompt-chip:hover {
    background: rgba(70, 183, 197, .25);
    color: #fff;
}

/* Draft restore bar at the top of the wizard */
#mp-draft-bar {
    max-width: 900px;
    margin: 0 auto 14px;
    background: rgba(70, 183, 197, .14);
    border: 1px solid rgba(70, 183, 197, .35);
    border-radius: 12px;
    padding: 12px 16px;
    color: #dfe4ec;
    font-size: .9rem;
}

#mp-draft-bar button {
    margin-left: 10px;
    border: none;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

#mp-draft-restore {
    background: linear-gradient(135deg, #46b7c5, #2e8fa3);
    color: #fff;
}

#mp-draft-discard {
    background: rgba(255, 255, 255, .12);
    color: #c7cdd6;
}

/* Preview + opened affordances in the recipients modal */
.mp-preview-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(70, 183, 197, .12);
    color: var(--mp-cyan-deep) !important;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none !important;
}

.mp-preview-link:hover {
    background: var(--mp-grad);
    color: #fff !important;
}

.mp-opened-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(46, 165, 143, .15);
    color: #1e7a68;
    font-size: .75rem;
    font-weight: 700;
}

/* ---------- Readiness meter ---------- */

.mp-ready-card {
    background: #fff;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.mp-ready-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.mp-ready-title {
    font-family: 'Nexa-Bold', sans-serif;
    color: var(--mp-ink);
    font-size: 1.05rem;
}

.mp-ready-score {
    color: var(--mp-cyan-deep);
    font-weight: 700;
}

.mp-ready-bar {
    height: 8px;
    background: #eef1f6;
    border-radius: 999px;
    margin: 10px 0 14px;
    overflow: hidden;
}

.mp-ready-bar span {
    display: block;
    height: 100%;
    background: var(--mp-grad);
    border-radius: 999px;
    transition: width .4s ease;
}

.mp-ready-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #5b6270;
    border-bottom: 1px solid #f3f5f9;
}

.mp-ready-row:last-child { border-bottom: none; }

.mp-ready-row.ok { color: #2a2f37; }

.mp-ready-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    background: #eef1f6;
    color: var(--mp-muted);
    flex-shrink: 0;
}

.mp-ready-row.ok .mp-ready-mark {
    background: rgba(46, 165, 143, .15);
    color: #1e7a68;
}

.mp-ready-fix {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 700;
    color: var(--mp-cyan-deep);
    text-decoration: none;
    background: rgba(70, 183, 197, .1);
    border-radius: 999px;
    padding: 3px 12px;
}

.mp-ready-fix:hover {
    background: var(--mp-grad);
    color: #fff;
}

/* Backup executor rows in the wizard */
.mp-add-backup-btn {
    margin-top: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px dashed rgba(255, 255, 255, .3);
    color: #dfe4ec;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.mp-add-backup-btn:hover {
    background: rgba(70, 183, 197, .18);
}

.mp-backup-note {
    color: #8b93a1;
    font-size: .8rem;
    margin-top: 8px;
    line-height: 1.55;
}

.mp-backup-row {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
}

.mp-backup-remove-wrap { text-align: right; }

.mp-backup-remove {
    color: #ff8a8f !important;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

/* Family card link at the foot of the readiness meter */
.mp-ready-card-link {
    display: block;
    margin-top: 12px;
    padding: 11px 16px;
    text-align: center;
    background: rgba(70, 183, 197, .1);
    border: 1px dashed rgba(70, 183, 197, .45);
    border-radius: 12px;
    color: var(--mp-cyan-deep) !important;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none !important;
}

.mp-ready-card-link:hover {
    background: var(--mp-grad);
    color: #fff !important;
    border-style: solid;
}

/* ---------- "Your people" on the recipients step ---------- */

#mp-your-people {
    margin-bottom: 14px;
}

.mp-your-people-label {
    color: #c7cdd6;
    font-size: .85rem;
    margin-bottom: 8px;
}

.mp-your-people-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-person-chip {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #dfe4ec;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.mp-person-chip:hover {
    background: rgba(70, 183, 197, .25);
    color: #fff;
}

.mp-person-chip.used {
    background: linear-gradient(135deg, #46b7c5, #2e8fa3);
    color: #fff;
    border-color: transparent;
}

/* ---------- Address book ---------- */

.mp-ab-list {
    margin-top: .75rem;
}

.mp-ab-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1.2fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f8;
}

@media (max-width: 767.98px) {
    .mp-ab-row { grid-template-columns: 1fr 1fr; }
}

.mp-ab-actions {
    display: flex;
    gap: 6px;
}

.mp-ab-save, .mp-ab-del {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.mp-ab-save {
    background: var(--mp-grad);
    color: #fff;
}

.mp-ab-del {
    background: #fdecec;
    color: #b3363c;
}

.mp-ab-empty {
    color: var(--mp-muted);
    padding: 1.5rem 0;
    text-align: center;
}

.mp-your-people-manage {
    margin-left: 8px;
    color: #5fd0de;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Address book v2 ---------- */

.mp-ab-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: .75rem 0 .5rem;
}

#mp-ab-search { max-width: 340px; }

.mp-ab-groups { display: flex; gap: 4px; }

.mp-ab-group {
    border: none;
    background: #eef1f6;
    color: var(--mp-muted);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.mp-ab-group.active {
    background: var(--mp-grad);
    color: #fff;
}

.mp-ab-row { border-bottom: 1px solid #f0f3f8; padding: 4px 0; display: block; }

.mp-ab-row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.mp-ab-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.mp-ab-who { flex: 1; min-width: 0; }

.mp-ab-name { font-weight: 700; color: var(--mp-ink); }

.mp-ab-sub {
    color: var(--mp-muted);
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-ab-edit-toggle {
    border: none;
    background: rgba(70, 183, 197, .1);
    color: var(--mp-cyan-deep);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.mp-ab-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 0 14px 52px;
}

@media (max-width: 767.98px) {
    .mp-ab-form { grid-template-columns: 1fr 1fr; padding-left: 0; }
}

.mp-ab-birthdays {
    background: rgba(230, 162, 60, .1);
    border: 1px solid rgba(230, 162, 60, .35);
    border-radius: 12px;
    padding: 10px 14px;
    margin: .5rem 0;
    font-size: .88rem;
}

.mp-ab-bd { display: inline-block; margin-right: 14px; }

.mp-ab-bd a { color: var(--mp-cyan-deep); font-weight: 700; }

.mp-ab-bd-label { font-weight: 700; margin-right: 8px; }

.mp-ab-dupes {
    background: rgba(70, 183, 197, .08);
    border: 1px dashed rgba(70, 183, 197, .4);
    border-radius: 12px;
    padding: 10px 14px;
    margin: .5rem 0;
    font-size: .88rem;
}

.mp-ab-merge {
    border: none;
    background: var(--mp-grad);
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
}

/* Photo avatars where they exist */
.mp-ab-photo {
    object-fit: cover;
}

.mp-chip-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 7px;
    vertical-align: -5px;
}

/* Readiness meter collapses to one line; the score stays visible */
.mp-ready-head {
    cursor: pointer;
    user-select: none;
}

.mp-ready-chevron {
    margin-left: 10px;
    color: var(--mp-muted);
    transition: transform .18s ease;
    display: inline-block;
}

.mp-ready-card.collapsed .mp-ready-chevron {
    transform: rotate(-90deg);
}

.mp-ready-body {
    overflow: hidden;
    max-height: 600px;
    transition: max-height .25s ease, opacity .2s ease;
}

.mp-ready-card.collapsed .mp-ready-body {
    max-height: 0;
    opacity: 0;
}

/* Notification popup: a real scrollable panel, not a three-item peephole */
.notification-popup {
    max-height: 420px;
    overflow-y: auto;
    min-width: 320px;
    scrollbar-width: thin;
}

.notification-popup .load-more-notifications-btn {
    display: block;
    text-align: center;
    padding: 10px;
    color: var(--mp-cyan-deep);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
}
