/* =========================================================================
   PhillyMatch brand & layout overrides
   Loaded AFTER the compiled theme bundles (custom.css / home.css) so that
   nothing in the vendor theme has to be rebuilt.  Everything site-specific
   that is not part of the purchased script lives here.
   ========================================================================= */

:root {
    --pm-accent: #c61d61;
    --pm-accent-hover: #a8174f;
    --pm-ink: #f4f4f7;
    --pm-ink-soft: #c9c9d2;
    --pm-ink-muted: #8f8f9c;
    --pm-surface: #1b1b23;
    --pm-surface-2: #23232d;
    --pm-font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 1. Typography: one font everywhere ------------------------- */
body,
body.lw-public-master,
body.lw-login-register-page,
.credits-display-text,
.masthead h1,
.masthead h2,
.btn,
.btn.lw-special-btn,
.lw-search-section input,
.lw-search-section select,
.contact-section .card h4,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pm-font) !important;
}

/* The landing-page theme forces uppercase, letter-spaced buttons; undo that */
.btn {
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- 2. Brand lockup (mark + wordmark as live text) -------------- */
.pm-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none !important;
    color: var(--pm-ink) !important;
    line-height: 1;
    white-space: nowrap;
}
.pm-brand__mark {
    height: 42px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}
.pm-brand__word {
    font-family: var(--pm-font);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    color: var(--pm-ink);
}
.pm-brand__word em {
    font-style: normal;
    color: var(--pm-accent);
}
.pm-brand--lg .pm-brand__mark { height: 64px; }
.pm-brand--lg .pm-brand__word { font-size: 2.15rem; }
.pm-brand--stack {
    flex-direction: column;
    gap: .5rem;
}
.pm-brand--stack .pm-brand__mark { height: 84px; }
.pm-brand--stack .pm-brand__word { font-size: 2rem; }
.pm-brand__tag {
    display: block;
    margin-top: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pm-ink-muted);
}

/* Sidebar brand (logged-in app) */
.sidebar .sidebar-brand .pm-brand__word { text-transform: none; letter-spacing: -.02em; }
.sidebar .sidebar-brand .pm-brand { padding: .25rem 0; }
.sidebar .sidebar-brand .pm-brand__mark { height: 40px; }
.sidebar .sidebar-brand .pm-brand__word { font-size: 1.35rem; }
.sidebar.toggled .sidebar-brand .pm-brand__word { display: none; }
.sidebar.toggled .sidebar-brand .pm-brand__mark { height: 34px; }

/* ---------- 3. Landing page ------------------------------------------- */
#mainNav .navbar-brand { padding: .6rem 0; }
@media (min-width: 992px) {
    #mainNav .nav-link {
        font-size: 1.05rem;
        font-weight: 600;
        padding: 1.6rem 1.1rem;
        color: rgba(255, 255, 255, .82);
    }
    #mainNav .nav-link:hover { color: #fff; }
}
#mainNav .nav-link.pm-nav-cta {
    color: #fff !important;
    background: var(--pm-accent);
    border-radius: 999px;
    padding: .55rem 1.25rem !important;
    margin: .9rem 0 0 .5rem;
    line-height: 1.2;
}
#mainNav .nav-link.pm-nav-cta:hover { background: var(--pm-accent-hover); }
@media (max-width: 991.98px) {
    #mainNav .nav-link.pm-nav-cta { display: inline-block; margin: .5rem 0 .75rem; }
}

.masthead .lw-main-text-block { max-width: 60rem; }
.masthead h1 {
    font-size: 2.4rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
    padding: 0;
    margin-bottom: 1.25rem;
}
.masthead h1 .pm-hl { color: #ffd166; -webkit-text-fill-color: #ffd166; }
.masthead .pm-hero-sub {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--pm-ink-soft);
    max-width: 44rem;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
@media (min-width: 768px) {
    .masthead h1 { font-size: 3.4rem; }
    .masthead .pm-hero-sub { font-size: 1.3rem; }
}
@media (min-width: 992px) {
    .masthead h1 { font-size: 4rem; line-height: 1.08; }
}
.masthead .btn.lw-special-btn,
.pm-btn-primary {
    font-family: var(--pm-font) !important;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: .95rem 2.25rem;
    border-radius: 12px;
    background-color: var(--pm-accent);
    color: #fff !important;
    backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(198, 29, 97, .35) !important;
    border: 0;
}
.masthead .btn.lw-special-btn:hover,
.pm-btn-primary:hover { background-color: var(--pm-accent-hover); }
.pm-btn-ghost {
    font-family: var(--pm-font) !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: .9rem 1.5rem;
    border-radius: 12px;
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .35) !important;
    box-shadow: none !important;
}
.pm-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.pm-hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.pm-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 2.25rem;
    margin-top: 3rem;
    padding: 0;
    list-style: none;
    font-size: .95rem;
    color: var(--pm-ink-soft);
}
.pm-trust li::before {
    content: "\2713";
    color: #7ee0a0;
    font-weight: 800;
    margin-right: .45rem;
}

/* Content sections */
.pm-section { padding: 5rem 0; background: var(--pm-surface); color: var(--pm-ink); }
.pm-section--alt { background: #15151c; }
.pm-section h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
    color: #fff;
}
.pm-section .pm-lead {
    color: var(--pm-ink-soft);
    font-size: 1.1rem;
    max-width: 44rem;
    margin: 0 auto 3rem;
}
.pm-step {
    background: var(--pm-surface-2);
    border-radius: 16px;
    padding: 1.75rem 1.6rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .06);
}
.pm-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--pm-accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}
.pm-step h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.pm-step p { color: var(--pm-ink-soft); margin: 0; line-height: 1.55; }
.pm-feature { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.pm-feature__icon {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(198, 29, 97, .15);
    color: var(--pm-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.pm-feature h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.pm-feature p { color: var(--pm-ink-soft); margin: 0; line-height: 1.55; }
.pm-illustration {
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    width: 100%;
    height: auto;
}

/* Contact cards */
.contact-section .card {
    background: var(--pm-surface-2);
    color: var(--pm-ink);
    border-radius: 14px;
    border-bottom: 3px solid var(--pm-accent);
}
.contact-section .card h4 { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--pm-ink-muted); }
.contact-section .card .small { font-size: 1rem; color: var(--pm-ink); }
.contact-section .card a { color: var(--pm-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-section .card i.fas { font-size: 1.6rem; }

/* Footer (landing + inner pages) */
.pm-footer {
    background: #101016;
    color: var(--pm-ink-muted);
    padding: 3rem 0 2.5rem;
    font-size: .9rem;
    text-align: center;
}
.pm-footer__links { margin: 0 0 .9rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.5rem; }
.pm-footer__links a { color: var(--pm-ink-soft); text-decoration: none; }
.pm-footer__links a:hover { color: #fff; text-decoration: underline; }
.pm-footer__legal { margin: 0; }

/* ---------- 4. Login / register / contact pages ------------------------ */
.lw-login-register-page .lw-logo-img-on-bg { display: none; }
.lw-login-register-page .card .pm-brand { margin-bottom: .25rem; }
.lw-login-register-page .card hr { border-color: rgba(255, 255, 255, .12); }
.lw-login-register-page .card h4 { font-weight: 700; color: var(--pm-ink); }
.lw-login-register-page .pm-form-note { color: var(--pm-ink-muted); font-size: .85rem; }
.lw-login-register-page .pm-auth-links { margin-top: 1.5rem; font-size: .85rem; }
.lw-login-register-page .pm-auth-links a { color: var(--pm-ink-soft); margin: 0 .5rem; }
.lw-login-register-page .form-check-label a { color: var(--pm-ink); text-decoration: underline; text-underline-offset: 2px; }
/* A soft vignette so form text stays readable over any illustration */
.lw-login-register-page .lw-page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .0) 45%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}
.lw-login-register-page .sticky-footer { color: var(--pm-ink-muted); }
/* The fixed right-hand card covers the centered footer on wide screens; the card carries the same links. */
@media (min-width: 767px) { .lw-login-register-page .sticky-footer { display: none; } }
.lw-login-register-page .btn-user { font-size: 1rem; padding: .7rem 1.25rem; font-weight: 700; }

/* ---------- 5. Logged-in app: light touch ------------------------------ */
.topbar .lw-premium-user-btn {
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-weight: 700;
}
.lw-cookie-policy-container { font-family: var(--pm-font); }

/* ---------- 6. Information pages (About, How it works, Safety, Terms, Privacy) ---- */
body.pm-page {
    background: var(--pm-surface);
    color: var(--pm-ink-soft);
    padding-bottom: 0;
}
.pm-page #mainNav { background-color: rgba(20, 20, 28, .92); backdrop-filter: blur(6px); }
.pm-page__main { padding-top: 5.5rem; }
.pm-page__header {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(180deg, #15151c 0%, var(--pm-surface) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.pm-page__header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0;
}
.pm-page__intro { font-size: 1.15rem; color: var(--pm-ink-soft); max-width: 46rem; margin: .9rem 0 0; line-height: 1.55; }
@media (min-width: 768px) { .pm-page__header h1 { font-size: 3rem; } }

.pm-article {
    max-width: 46rem;
    padding: 2.5rem 0 4.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pm-ink-soft);
}
.pm-article h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 2.4rem 0 .8rem;
    letter-spacing: -.01em;
}
.pm-article h2:first-child { margin-top: 0; }
.pm-article h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 1.6rem 0 .5rem; }
.pm-article p { margin: 0 0 1rem; }
.pm-article ul, .pm-article ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.pm-article li { margin-bottom: .45rem; }
.pm-article a { color: #ff7fb0; text-decoration: underline; text-underline-offset: 3px; }
.pm-article a:hover { color: #fff; }
.pm-article .btn, .pm-article .btn:hover { text-decoration: none; }
.pm-article strong { color: #fff; }
.pm-article .pm-meta { color: var(--pm-ink-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.pm-article .pm-callout {
    background: var(--pm-surface-2);
    border-left: 4px solid var(--pm-accent);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
}
.pm-article .pm-callout p:last-child { margin-bottom: 0; }
.pm-article .pm-refs { list-style: none; padding: 0; counter-reset: ref; }
.pm-article .pm-refs li {
    position: relative;
    padding-left: 2.4rem;
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: .8rem;
    color: var(--pm-ink-soft);
}
.pm-article .pm-refs li::before {
    counter-increment: ref;
    content: "[" counter(ref) "]";
    position: absolute;
    left: 0;
    color: var(--pm-ink-muted);
    font-weight: 700;
}
.pm-article .pm-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .pm-article .pm-grid { grid-template-columns: 1fr 1fr; } }
.pm-article .pm-card { background: var(--pm-surface-2); border-radius: 14px; padding: 1.2rem 1.3rem; border: 1px solid rgba(255,255,255,.06); }
.pm-article .pm-card h3 { margin-top: 0; font-size: 1.05rem; }
.pm-article .pm-card p, .pm-article .pm-card ul { margin-bottom: 0; font-size: .98rem; }
.pm-article .pm-cta { text-align: center; margin: 3rem 0 0; }
.pm-article .pm-cta .btn { margin: .25rem; }
.pm-article .pm-founder { display: flex; gap: 1.25rem; align-items: flex-start; }
.pm-article .pm-founder img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* Center the reading column on wide screens (header and article share the same measure) */
.pm-page__header h1,
.pm-page__header .pm-page__intro { max-width: 46rem; margin-left: auto; margin-right: auto; }
.pm-page__header { text-align: center; }
.pm-article { margin-left: auto; margin-right: auto; }

/* =========================================================================
   Phase 2 additions
   ========================================================================= */

/* ---------- 7. Questionnaire nudge (Home, Find Matches) ---------------- */
.pm-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
    border-radius: 12px;
    font-family: var(--pm-font);
}
.pm-nudge--strong {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(198, 29, 97, .22), rgba(198, 29, 97, .08));
    border: 1px solid rgba(198, 29, 97, .45);
    color: var(--pm-ink);
}
.pm-nudge--strong .pm-nudge__text { flex: 1 1 28rem; min-width: 0; }
.pm-nudge--strong strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; color: #fff; }
.pm-nudge--strong span { color: var(--pm-ink-soft); line-height: 1.5; }
.pm-nudge__btn { white-space: nowrap; flex: 0 0 auto; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; }
.pm-nudge--quiet {
    padding: .55rem .9rem;
    background: var(--pm-surface-2);
    border: 1px solid rgba(255, 255, 255, .06);
    color: var(--pm-ink-soft);
    font-size: .92rem;
    justify-content: flex-start;
    gap: .35rem .9rem;
}
.pm-nudge--quiet a { color: var(--pm-accent); font-weight: 700; text-decoration: none; }
.pm-nudge--quiet a:hover { text-decoration: underline; }

/* ---------- 8. Questionnaire page -------------------------------------- */
.pm-q { font-family: var(--pm-font); color: var(--pm-ink); max-width: 56rem; margin: 0 auto; }
.pm-q__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.pm-q__progress { flex: 1 1 20rem; max-width: 30rem; }
.pm-q__bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: visible;
}
.pm-q__bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pm-accent), #e8457f);
    transition: width .35s ease;
}
.pm-q__bar-unlock {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    margin-left: -1px;
    background: #fff;
    opacity: .7;
    border-radius: 1px;
}
.pm-q__bar-unlock[hidden] { display: none; }
.pm-q__counts { margin-top: .45rem; font-size: .88rem; color: var(--pm-ink-muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.pm-q__counts #pmUnlockText { color: var(--pm-ink-soft); }
.pm-q__dot { opacity: .5; }

.pm-q__panel {
    background: var(--pm-surface);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.pm-q__panel[hidden] { display: none; }
.pm-q__panel:focus { outline: none; }
.pm-q__title { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.3; margin: 0 0 .9rem; }
.pm-q__welcome p, .pm-q__done p { color: var(--pm-ink-soft); line-height: 1.6; font-size: 1.02rem; max-width: 44rem; }
.pm-q__points { margin: 0 0 1.5rem; padding-left: 1.25rem; color: var(--pm-ink-soft); line-height: 1.6; max-width: 44rem; }
.pm-q__points li { margin-bottom: .45rem; }
.pm-q__start { padding: .75rem 2.2rem; border-radius: 999px; font-weight: 700; }

.pm-q__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .85rem; color: var(--pm-ink-muted); margin-bottom: 1rem; }
.pm-q__saved { color: #7ee0a0; font-weight: 700; min-height: 1em; }
.pm-q__statement {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 1.75rem;
    min-height: 4.1em;
}
.pm-q__scale {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
    align-items: start;
    margin: 0 auto;
    max-width: 44rem;
}
.pm-q__opt {
    appearance: none;
    background: transparent;
    border: 0;
    padding: .35rem 0 0;
    cursor: pointer;
    color: var(--pm-ink-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    font-family: var(--pm-font);
    min-height: 5.2rem;
}
.pm-q__opt-dot {
    --size: calc(1.5rem * var(--w, 1));
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .03);
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.pm-q__opt:hover .pm-q__opt-dot, .pm-q__opt:focus-visible .pm-q__opt-dot { border-color: #fff; transform: scale(1.08); }
.pm-q__opt:focus-visible { outline: none; }
.pm-q__opt:focus-visible .pm-q__opt-dot { box-shadow: 0 0 0 4px rgba(198, 29, 97, .35); }
.pm-q__opt.is-selected .pm-q__opt-dot {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    box-shadow: 0 0 0 5px rgba(198, 29, 97, .22);
}
.pm-q__opt.is-selected { color: #fff; }
.pm-q__opt-label { font-size: .74rem; line-height: 1.2; text-align: center; max-width: 6.2rem; }
.pm-q__ends { display: none; }
.pm-q__error { color: #ff8da8; font-weight: 600; margin: 1rem 0 0; }
.pm-q__error[hidden] { display: none; }
.pm-q__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.pm-q__navbtn { color: var(--pm-ink-soft) !important; text-decoration: none !important; padding-left: 0; padding-right: 0; font-weight: 600; }
.pm-q__navbtn:hover { color: #fff !important; }
.pm-q__navbtn:disabled { opacity: .35; }
.pm-q__hint { font-size: .8rem; color: var(--pm-ink-muted); }
.pm-q__done { text-align: center; padding-top: 2.5rem; }
.pm-q__done p { margin-left: auto; margin-right: auto; }
.pm-q__done-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(126, 224, 160, .15); color: #7ee0a0; font-size: 1.4rem; margin-bottom: 1rem;
}
.pm-q__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.pm-q__actions .btn { border-radius: 999px; padding: .6rem 1.4rem; font-weight: 700; }
.pm-q__foot { margin: 1.25rem 0 0; font-size: .85rem; color: var(--pm-ink-muted); text-align: center; }
.pm-q__foot a { color: var(--pm-ink-soft); text-decoration: underline; }

@media (max-width: 767.98px) {
    .pm-q__panel { padding: 1.4rem 1.1rem 1.25rem; border-radius: 14px; }
    .pm-q__statement { font-size: 1.3rem; min-height: 0; margin-bottom: 1.4rem; }
    .pm-q__scale { gap: .15rem; }
    .pm-q__opt { min-height: 0; }
    .pm-q__opt-dot { --size: calc(1.25rem * var(--w, 1)); }
    .pm-q__opt-label { display: none; }
    .pm-q__ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--pm-ink-muted); margin-top: .6rem; }
    .pm-q__title { font-size: 1.25rem; }
    .pm-nudge--strong { padding: 1rem; }
    .pm-nudge__btn { width: 100%; text-align: center; }
}

/* ---------- 9. Member cards: location line, pending-match badge ---------- */
.pm-card-location { color: var(--pm-ink-soft); font-size: .9em; }
.badge.pm-match-pending {
    background: rgba(255, 255, 255, .08);
    color: var(--pm-ink-soft);
    font-weight: 600;
    border: 1px dashed rgba(255, 255, 255, .25);
}
/* letter avatars are plain SVG circles: make sure the thumbnail frame doesn't crop them oddly */
.lw-user-thumbnail[src^="data:image/svg"] { object-fit: cover; background: transparent; }

/* ---------- 10. Messenger: match the dark theme ------------------------- */
.lw-messenger { background-color: var(--pm-surface); color: var(--pm-ink); text-shadow: none; }
.lw-messenger .lw-messenger-header { background-color: #23232d; }
.lw-messenger .lw-messenger-sidebar { background-color: #1f1f28; }
.lw-messenger .lw-messenger-sidebar .lw-messenger-contact-list .list-group-item.list-group-item-action:not(.active):hover { background-color: #2a2a36; }
.lw-messenger .lw-messenger-sidebar .lw-messenger-contact-search .form-control,
.lw-messenger .lw-messenger-sidebar .lw-messenger-contact-search .form-control.text-dark {
    background-color: #2a2a36;
    color: var(--pm-ink) !important;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lw-messenger .lw-messenger-sidebar .lw-messenger-contact-search .form-control::placeholder { color: var(--pm-ink-muted); }
.lw-messenger .lw-messenger-sidebar .lw-messenger-contact-list .list-group-item:not(.active) { background-color: transparent; color: var(--pm-ink); border-color: rgba(255, 255, 255, .06); }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-item {
    background-color: #2a2a36;
    color: var(--pm-ink);
    font-weight: 400;
}
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-recipient .lw-messenger-chat-item:after { border-right-color: #2a2a36; }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-item .lw-messenger-chat-meta { border-top-color: rgba(255, 255, 255, .12); color: var(--pm-ink-muted); font-style: normal; }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-sender .lw-messenger-chat-item { background-color: var(--pm-accent); color: #fff; }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-sender .lw-messenger-chat-item:after { border-left-color: var(--pm-accent); }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window .lw-messenger-chat-sender .lw-messenger-chat-item .lw-messenger-chat-meta { border-top-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.lw-messenger .lw-messenger-content .lw-messenger-chat-window img.lw-profile-picture { border-color: rgba(255, 255, 255, .25); }
.lw-messenger .lw-messenger-footer { background-color: #15151c; border-top: 1px solid rgba(255, 255, 255, .06); }
.lw-messenger .lw-messenger-footer .form-control,
.lw-messenger .lw-messenger-footer .emojionearea.emojionearea-inline,
.lw-messenger .lw-messenger-footer .emojionearea.emojionearea-inline > .emojionearea-editor {
    background-color: #2a2a36 !important;
    color: var(--pm-ink) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}
.lw-messenger .lw-messenger-footer .emojionearea-editor:empty:before,
.lw-messenger .lw-messenger-footer .form-control::placeholder { color: var(--pm-ink-muted) !important; }
.lw-messenger .lw-messenger-footer .btn-secondary,
.lw-messenger .lw-messenger-footer .btn-light { background-color: #2a2a36; border-color: rgba(255, 255, 255, .1); color: var(--pm-ink); }
.lw-messenger .lw-messenger-bottom-sheet .lw-heading { background-color: #23232d; border-bottom-color: rgba(255, 255, 255, .1); color: var(--pm-ink); }
.lw-messenger .lw-messenger-bottom-sheet .lw-content { background-color: var(--pm-surface); }
/* the "x" delete buttons on bubbles */
.lw-messenger .lw-messenger-chat-item .lw-single-message-delete { color: rgba(255, 255, 255, .55); }

/* ---------- 11. Credits page: uniform package cards -------------------- */
.lw-img-credits-radio-btns-container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 10px 0; }
.lw-img-credits-radio-btns-container .btn.lw-group-radio-option-img {
    width: 15rem;
    max-width: 100%;
    margin: 0 !important;
    padding: 1rem .75rem 1.25rem;
    border-radius: 14px;
    background: var(--pm-surface-2);
    border: 2px solid rgba(255, 255, 255, .06);
    transition: border-color .15s ease, transform .15s ease;
}
.lw-img-credits-radio-btns-container .btn.lw-group-radio-option-img:hover { border-color: rgba(255, 255, 255, .25); }
.lw-img-credits-radio-btns-container .btn.lw-group-radio-option-img.active { transform: none; border-color: var(--pm-accent); }
.lw-img-credits-radio-btns-container .lw-credit-package-name { background: transparent; color: var(--pm-ink-muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 .5rem; }
.lw-img-credits-radio-btns-container .active .lw-credit-package-name { background: transparent; color: var(--pm-accent); }
.pm-package { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.pm-package__icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(198, 29, 97, .15); color: var(--pm-accent); font-size: 1.4rem; margin-bottom: .5rem;
}
.pm-package__credits { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; }
.pm-package__price { font-size: 1.15rem; font-weight: 700; color: var(--pm-ink); }
.pm-package__rate { font-size: .8rem; color: var(--pm-ink-muted); }
/* the admin-entered package title repeats the credit count, so the cards lead with the number instead */
.lw-img-credits-radio-btns-container .lw-credit-package-name { display: none; }

/* ---------- 12. Forms: optional-field hint ------------------------------ */
.pm-optional { font-weight: 400; color: var(--pm-ink-muted); font-size: .9em; }

/* ---------- 13. Featured members block --------------------------------- */
.pm-featured { text-align: center; }
.pm-featured__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.pm-featured__empty { font-size: .85rem; color: var(--pm-ink-muted); margin: 0 0 .25rem; }
.pm-featured__cta { font-size: .85rem; font-weight: 600; color: var(--pm-ink-soft) !important; text-decoration: none !important; padding: .35rem 0 0; }
.pm-featured__cta:hover { color: #fff !important; }
