/* ═══════════════════════════════════════════════════════════════════
   IMANAH Health — Design System
   Brand green #1aaa1a and orange #e8621a are ACCENT colours only.
   Large section backgrounds always use deep greens or white/cream.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Brand colours — use for buttons, borders, badges, accents ONLY */
    --im-brand:         #1aaa1a;   /* exact logo green */
    --im-brand-dark:    #0d7a0d;   /* darker for hover states */
    --im-accent:        #e8621a;   /* logo orange — for numbers, highlights */
    --im-accent-dark:   #c04e0e;

    /* Section backgrounds — deep greens, never bright */
    --im-bg-hero:       #0a3d0a;   /* very dark for hero */
    --im-bg-dark:       #0c4a0c;   /* stat strip, CTA, footer */
    --im-bg-mid:        #155715;   /* mid-dark — subtle accents */

    /* Light backgrounds */
    --im-cream:         #faf9f7;
    --im-cream-dark:    #f2f0eb;
    --im-mint-bg:       #f0faf0;   /* very light green tint */
    --im-amber-bg:      #fff5ee;   /* very light orange tint */

    /* Text */
    --im-earth:         #1c2e1c;   /* dark green-tinted headings */
    --im-text:          #2c2c2c;
    --im-muted:         #6b7280;
    --im-link:          #1a7a1a;   /* darker brand green — readable on light */

    /* Borders & shadows */
    --im-border:        #d8ecd8;
    --im-shadow-sm:     0 2px 8px rgba(0,0,0,.07);
    --im-shadow-md:     0 6px 24px rgba(0,0,0,.10);
    --im-shadow-lg:     0 16px 48px rgba(0,0,0,.13);
    --im-radius:        0.75rem;
    --im-radius-lg:     1.25rem;
}

/* ── Base ──────────────────────────────────────────────────────────── */
html, body {
    font-family: 'Poppins', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--im-cream);
    color: var(--im-text);
    line-height: 1.7;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Poppins', serif;
    color: var(--im-earth);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.5rem; }

p { color: #444; }
a, .btn-link { color: var(--im-link); }
a:hover      { color: var(--im-brand-dark); }
h1:focus     { outline: none; }

/* ── Bootstrap Overrides ───────────────────────────────────────────── */
.btn-primary {
    background-color: var(--im-brand);
    border-color: var(--im-brand);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 0.5rem;
    padding: .55rem 1.4rem;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--im-brand-dark);
    border-color: var(--im-brand-dark);
    box-shadow: 0 4px 16px rgba(13,122,13,.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--im-brand);
    border-color: var(--im-brand);
}
.btn-outline-primary:hover {
    background-color: var(--im-brand);
    border-color: var(--im-brand);
    color: #fff;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--im-brand);
    --bs-btn-border-color: var(--im-brand);
    --bs-btn-hover-bg: var(--im-brand-dark);
    --bs-btn-hover-border-color: var(--im-brand-dark);
    --bs-btn-active-bg: var(--im-brand-dark);
    border-radius: 0.5rem;
    font-weight: 500;
}
.btn-outline-success {
    --bs-btn-color: var(--im-brand);
    --bs-btn-border-color: var(--im-brand);
    --bs-btn-hover-bg: var(--im-brand);
    --bs-btn-hover-border-color: var(--im-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--im-brand-dark);
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn:focus, .btn:active:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(26,170,26,.2);
}

.card {
    border: 1px solid var(--im-border);
    border-radius: var(--im-radius);
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}
.card:hover {
    box-shadow: var(--im-shadow-md);
    transform: translateY(-2px);
}
.card.border-0 { border: none !important; }

.badge.bg-success { background-color: var(--im-brand) !important; }
.text-success     { color: var(--im-brand) !important; }

/* ── Validation ────────────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid #3a9b52; }
.invalid                             { outline: 1px solid #c0392b; }
.validation-message                  { color: #c0392b; font-size: .85rem; margin-top: .25rem; }

/* ── Error UI ──────────────────────────────────────────────────────── */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #7b1c1c;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: .5rem;
}
.blazor-error-boundary::after { content: "An error has occurred." }

#blazor-error-ui {
    color-scheme: light only;
    background: #fffbeb;
    border-top: 2px solid var(--im-accent);
    bottom: 0; left: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,.12);
    box-sizing: border-box;
    display: none;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: .9rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ── Public Navbar ─────────────────────────────────────────────────── */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-imanah {
    background: #fff !important;
    border-bottom: 3px solid var(--im-brand);
    padding: .5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.navbar-logo {
    height: 48px;
    width: auto;
}

.navbar-imanah .navbar-brand { padding: 0; }

.navbar-imanah .nav-link {
    color: #2c3e2c !important;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: .4rem .85rem !important;
    border-radius: .35rem;
    transition: color .15s, background .15s;
}
.navbar-imanah .nav-link:hover,
.navbar-imanah .nav-link.active {
    color: var(--im-brand-dark) !important;
    background: var(--im-mint-bg);
}

.navbar-imanah .btn-get-started {
    background: var(--im-brand);
    color: #fff !important;
    font-weight: 600;
    border-radius: .45rem;
    padding: .4rem 1.1rem !important;
    border: none;
    transition: background .2s, transform .15s;
}
.navbar-imanah .btn-get-started:hover {
    background: var(--im-brand-dark);
    transform: translateY(-1px);
}

.navbar-imanah .navbar-toggler {
    border-color: rgba(26,122,13,.3);
}

.navbar-imanah .dropdown-menu {
    border: 1px solid var(--im-border);
    border-radius: var(--im-radius);
    box-shadow: var(--im-shadow-md);
    padding: .4rem 0;
    min-width: 160px;
}
.navbar-imanah .dropdown-item {
    font-size: .875rem;
    font-weight: 500;
    color: #2c3e2c;
    padding: .45rem 1rem;
}
.navbar-imanah .dropdown-item:hover {
    background: var(--im-mint-bg);
    color: var(--im-brand-dark);
}

/* ── Nav Avatar ────────────────────────────────────────────────────── */
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--im-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-avatar-initials {
    background: var(--im-brand);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}
.profile-dropdown {
    min-width: 220px;
    border-radius: var(--im-radius);
    border: 1px solid var(--im-border);
    margin-top: .5rem;
}

/* ── Public Layout ─────────────────────────────────────────────────── */
.public-main { min-height: calc(100vh - 280px); }

.public-footer {
    background: var(--im-bg-hero) !important;
    border-top: 3px solid var(--im-brand);
    margin-top: 0 !important;
}
.public-footer p,
.public-footer .text-muted      { color: rgba(255,255,255,.5) !important; }
.public-footer a                { color: rgba(255,255,255,.6); text-decoration: none; }
.public-footer a:hover          { color: var(--im-accent) !important; }
.public-footer hr               { border-color: rgba(255,255,255,.1) !important; }
.public-footer .footer-brand {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    font-size: 1.2rem;
}

/* ── Hero Section ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(150deg, var(--im-bg-hero) 0%, var(--im-bg-dark) 60%, var(--im-bg-mid) 100%);
    color: #fff;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(232,98,26,.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}

.hero-section .hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    margin-bottom: 1.25rem;
}

.hero-section .hero-lead {
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-weight: 300;
    line-height: 1.8;
}

.btn-hero-primary {
    background: #fff;
    color: var(--im-bg-dark);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2.2rem;
    border-radius: .55rem;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-hero-primary:hover {
    background: var(--im-mint-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    color: var(--im-bg-dark);
}

.btn-hero-outline {
    color: rgba(255,255,255,.9);
    border: 1.5px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.07);
    font-weight: 500;
    font-size: 1rem;
    padding: .85rem 2.2rem;
    border-radius: .55rem;
    backdrop-filter: blur(4px);
    transition: all .2s;
}
.btn-hero-outline:hover {
    border-color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.13);
    color: #fff;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 63px;
    overflow: hidden;
    line-height: 0;
}
.hero-wave svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 63px;
}
.wave-1 { animation: wave-scroll 31s linear infinite;         opacity: 0.25; }
.wave-2 { animation: wave-scroll 20s linear infinite reverse; opacity: 0.45; }
.wave-3 { animation: wave-scroll 12s linear infinite;         opacity: 1;    }
@keyframes wave-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Section Styles ────────────────────────────────────────────────── */
.section-eyebrow {
    display: inline-block;
    color: var(--im-link);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.section-title  { color: var(--im-earth); margin-bottom: 1rem; }
.section-lead   { color: var(--im-muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.8; }

.bg-cream  { background-color: var(--im-cream) !important; }
.bg-mint   { background-color: var(--im-mint-bg) !important; }
.bg-amber  { background-color: var(--im-amber-bg) !important; }

/* ── Service Cards ─────────────────────────────────────────────────── */
.service-card {
    background: #fff;
    border: 1px solid var(--im-border);
    border-radius: var(--im-radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--im-brand);
    opacity: 0;
    transition: opacity .25s;
}

.service-card:hover {
    box-shadow: var(--im-shadow-lg);
    transform: translateY(-5px);
}
.service-card:hover::before { opacity: 1; }

.service-card .service-icon {
    width: 64px;
    height: 64px;
    background: var(--im-mint-bg);
    border: 1.5px solid var(--im-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.service-card h5 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--im-earth); }
.service-card p  { color: var(--im-muted); font-size: .9rem; flex: 1; line-height: 1.7; }
.service-card .btn { margin-top: 1.25rem; align-self: center; }

/* ── Stat Strip ────────────────────────────────────────────────────── */
.stat-strip {
    background: var(--im-cream);
    padding: 2.5rem 0;
    border-top: 1px solid var(--im-border);
    border-bottom: 1px solid var(--im-border);
}
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--im-brand-dark);
    line-height: 1;
    display: block;
}
.stat-item .stat-label {
    font-size: .78rem;
    color: var(--im-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .4rem;
    display: block;
}

/* ── CTA Section ───────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(150deg, var(--im-bg-hero) 0%, var(--im-bg-dark) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(232,98,26,.07) 0%, transparent 65%);
}
.cta-section h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.cta-section p  { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Auth Pages ────────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--im-bg-hero) 0%, var(--im-bg-dark) 60%, var(--im-bg-mid) 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(232,98,26,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(255,255,255,.04) 0%, transparent 50%);
}

.auth-card {
    background: #fff;
    border-radius: var(--im-radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--im-brand);
}

.auth-card .auth-logo {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--im-bg-dark);
    text-align: center;
    margin-bottom: .25rem;
}

.auth-card .auth-title {
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--im-muted);
}

.auth-card .form-label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--im-earth);
    margin-bottom: .35rem;
}

.auth-card .form-control {
    border-color: #d0d8d0;
    border-radius: .5rem;
    padding: .6rem .9rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
    border-color: var(--im-brand);
    box-shadow: 0 0 0 .2rem rgba(26,170,26,.15);
}

.auth-links a { color: var(--im-link); font-size: .875rem; }
.auth-links a:hover { color: var(--im-brand-dark); }

/* ── Admin Layout ──────────────────────────────────────────────────── */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #1a2234 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.06);
}

.admin-sidebar .sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}
.admin-sidebar .sidebar-brand .brand-name {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--im-accent);
}
.admin-sidebar .sidebar-brand .brand-sub {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .1rem;
}

.admin-sidebar .nav-link {
    color: rgba(226,232,240,.65);
    padding: .5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 0;
    font-size: .875rem;
    transition: background .15s, color .15s;
    border-left: 2px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.07);
    color: #fff;
    border-left-color: var(--im-brand);
}

.admin-sidebar .nav-section-header {
    padding: 1.1rem 1.5rem .3rem;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.25);
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: .65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.admin-content { padding: 1.5rem; flex: 1; overflow-y: auto; min-width: 0; overflow-x: hidden; }
.admin-wrapper  { display: flex; min-height: 100vh; }
.admin-main     { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-shell    { overflow-x: hidden; }

/* ── Rendered project documents ────────────────────────────────────── */
.doc-content { max-width: 820px; line-height: 1.75; color: #2c2c2c; }
.doc-content h1 { font-size: 1.9rem; margin: 0 0 1rem; }
.doc-content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; padding-bottom: .3rem; border-bottom: 1px solid #e5e7eb; }
.doc-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.doc-content p  { margin: 0 0 1rem; }
.doc-content ul, .doc-content ol { margin: 0 0 1rem 1.25rem; }
.doc-content li { margin-bottom: .35rem; }
.doc-content img, .doc-content svg { max-width: 100%; height: auto; margin: 1.25rem 0; border-radius: .5rem; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.doc-content th, .doc-content td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; }
.doc-content th { background: #f9fafb; }
.doc-content code { background: #f3f4f6; padding: .1rem .35rem; border-radius: .25rem; font-size: .9em; }
.doc-content pre { background: #f3f4f6; padding: 1rem; border-radius: .5rem; overflow-x: auto; }
.doc-content blockquote { border-left: 3px solid var(--im-brand); padding-left: 1rem; color: #555; margin: 1rem 0; }

/* ── Utility ───────────────────────────────────────────────────────── */
.text-brand  { color: var(--im-brand) !important; }
.text-accent { color: var(--im-accent) !important; }

.darker-border-checkbox.form-check-input { border-color: #929292; }

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ══════════════════════════════════════════════════════════════════
   MATCHMAKING TENANT — /match page only  (mm- prefix, pink theme)
   All rules isolated under mm- classes — zero bleed to IMANAH pages.
   ══════════════════════════════════════════════════════════════════ */

/* Brand token */
:root { --mm-pink: #E31777; --mm-pink-dark: #b8105e; --mm-dark: #1e1f20; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.mm-nav-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.mm-navbar {
    background: #fff;
    border-bottom: 2px solid var(--mm-pink, #E31777);
    padding: .6rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.mm-nav-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.15;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.mm-nav-logo { height: 48px; width: auto; }

.mm-nav-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mm-dark, #1e1f20);
    letter-spacing: -.01em;
}

.mm-nav-brand-text span { color: var(--mm-pink, #E31777); }

.mm-nav-brand-sub {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mm-pink, #E31777);
}

.mm-nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: #45474f !important;
    padding: .4rem .9rem !important;
    border-radius: .35rem;
    transition: color .15s, background .15s;
}

.mm-nav-link:hover {
    color: var(--mm-pink, #E31777) !important;
    background: #fff0f6;
}

.mm-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mm-pink, #E31777);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.mm-nav-avatar-initials {
    background: var(--mm-pink, #E31777);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.mm-nav-toggler { border-color: rgba(227,23,119,.3); }

.mm-bell-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--mm-pink, #E31777);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
    padding: .2rem .35rem;
    border-radius: .7rem;
    min-width: 1.1rem;
    text-align: center;
}

/* ── Quick search card ───────────────────────────────────────────── */
.mm-quick { padding: 2.5rem 0 0.5rem; }

.mm-quick-card {
    background: var(--mm-pink, #E31777);
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(227,23,119,.25);
}

.mm-quick-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.mm-quick-label {
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .35rem;
    display: block;
}

.mm-quick-input {
    background: #faf7f2 !important;
    border: none !important;
    border-radius: .6rem !important;
    color: #45474f !important;
    font-weight: 500;
    padding: .6rem .85rem !important;
    box-shadow: none !important;
}

.mm-quick-dash { color: rgba(255,255,255,.85); font-weight: 600; }

.mm-quick-actions { margin-top: 1.5rem; }

.mm-quick-btn {
    background: #fff;
    color: var(--mm-pink, #E31777);
    font-weight: 700;
    padding: .7rem 2rem;
    border: none;
}

.mm-quick-btn:hover {
    background: #fff;
    color: var(--mm-pink-dark, #b8105e);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.mm-footer {
    background: var(--mm-dark, #1e1f20);
    color: rgba(255,255,255,.75);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.mm-footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .25rem;
}

.mm-footer-tagline {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mm-pink, #E31777);
    margin-bottom: .85rem;
}

.mm-footer-desc {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 0;
}

.mm-footer-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    margin-bottom: .85rem;
}

.mm-footer-links { margin: 0; padding: 0; }
.mm-footer-links li { margin-bottom: .5rem; }
.mm-footer-links a {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
.mm-footer-links a:hover { color: var(--mm-pink, #E31777); }

.mm-footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 2.5rem 0 1.5rem;
}

.mm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 1rem;
    border-radius: 50%;
    background: #5865F2; /* Discord brand */
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform .15s, filter .15s;
}

.mm-social-icon:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ── Tip card (rotating micro-coaching) ──────────────────────────── */
.mm-tip {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #fff;
    border: 1px solid #f0e3ec;
    border-left: 4px solid var(--mm-pink, #E31777);
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    font-size: .9rem;
}

.mm-tip-encouraging { border-left-color: var(--mm-pink, #E31777); }
.mm-tip-etiquette   { border-left-color: #00897B; }
.mm-tip-safety      { border-left-color: #C9A227; }

.mm-tip-icon { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.mm-tip-body { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.mm-tip-title { font-weight: 700; color: #45474f; }
.mm-tip-text { color: #5a5c63; line-height: 1.5; }
.mm-tip-link { font-size: .82rem; font-weight: 600; color: var(--mm-pink, #E31777); text-decoration: none; }
.mm-tip-link:hover { text-decoration: underline; }

.mm-tip-next {
    background: none;
    border: none;
    color: #b9a9b3;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, transform .3s;
}
.mm-tip-next:hover { color: var(--mm-pink, #E31777); transform: rotate(180deg); }

/* ── Advanced search ─────────────────────────────────────────────── */
.mm-search-panel {
    background: #fff;
    border: 1px solid #f0e3ec;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.mm-fgroup { margin-bottom: 1rem; }
.mm-fgroup-label { font-weight: 700; font-size: .8rem; color: #45474f; margin-bottom: .4rem; }
.mm-fscroll { max-height: 180px; overflow-y: auto; padding-right: .25rem; }

.mm-check-pill.active {
    background: var(--mm-pink, #E31777);
    color: #fff;
    border-color: var(--mm-pink, #E31777);
}

/* ── Chat ────────────────────────────────────────────────────────── */
.mm-chat-window {
    background: #fff;
    border: 1px solid #f0e3ec;
    border-radius: 1rem;
    padding: 1rem;
    max-height: 55vh;
    overflow-y: auto;
}
.mm-chat-row { display: flex; margin-bottom: .5rem; }
.mm-chat-row.mine { justify-content: flex-end; }
.mm-chat-bubble {
    max-width: 75%;
    padding: .5rem .8rem;
    border-radius: 1rem;
    font-size: .9rem;
}
.mm-chat-bubble.mine   { background: var(--mm-pink, #E31777); color: #fff; border-bottom-right-radius: .25rem; }
.mm-chat-bubble.theirs { background: #f1f1f4; color: #333; border-bottom-left-radius: .25rem; }
.mm-chat-time { display: block; font-size: .65rem; opacity: .7; margin-top: .2rem; text-align: right; }

/* ── AI composer assist ──────────────────────────────────────────── */
.mm-ai-btn {
    background: #f5e8f0;
    color: var(--mm-pink, #E31777);
    border: 1px solid #f0d4e4;
    border-radius: .5rem;
    padding: .3rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
.mm-ai-btn:hover:not(:disabled) { background: #fce4f1; }
.mm-ai-btn:disabled { opacity: .55; cursor: default; }

.mm-ai-suggestion {
    background: #fff;
    border: 1px dashed var(--mm-pink, #E31777);
    border-radius: .6rem;
    padding: .75rem;
    margin-top: .5rem;
    font-size: .9rem;
}

.mm-translate-link {
    background: none;
    border: none;
    color: #999;
    font-size: .72rem;
    cursor: pointer;
    padding: .1rem .15rem;
}
.mm-translate-link:hover { color: var(--mm-pink, #E31777); }

.mm-translation {
    background: #f6f8f8;
    border-left: 3px solid #00897B;
    border-radius: .4rem;
    padding: .5rem .6rem;
    margin-top: .25rem;
    font-size: .85rem;
    max-width: 75%;
}
.mm-translation-note { font-size: .68rem; color: #999; margin-top: .3rem; font-style: italic; }

/* ── Expectations editor ─────────────────────────────────────────── */
.mm-exp-item { padding: 1rem 0; border-top: 1px solid #f1e7ee; }
.mm-exp-item:first-of-type { border-top: none; }
.mm-conviction.conv-3 { border-color: #dc3545; color: #dc3545; font-weight: 600; }
.mm-conviction.conv-2 { border-color: #C9A227; }

/* ── Compatibility map ───────────────────────────────────────────── */
.mm-compat-chip {
    padding: .35rem .8rem;
    border-radius: 1rem;
    font-size: .85rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #eee;
}
.mm-compat-chip.green  { color: #198754; }
.mm-compat-chip.yellow { color: #b8860b; }
.mm-compat-chip.red    { color: #dc3545; }

.mm-compat-row {
    display: flex;
    gap: .75rem;
    background: #fff;
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: .6rem;
    border-left: 4px solid #ccc;
}
.mm-compat-row.green  { border-left-color: #198754; }
.mm-compat-row.yellow { border-left-color: #C9A227; }
.mm-compat-row.red    { border-left-color: #dc3545; background: #fff7f7; }
.mm-compat-dot { font-size: 1rem; line-height: 1.5; }
.mm-compat-positions { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .85rem; color: #45474f; margin-top: .35rem; }
.mm-conv { color: #999; font-size: .78rem; }

/* ── Negotiation ─────────────────────────────────────────────────── */
.mm-reso { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: .7rem; white-space: nowrap; }
.mm-reso-0 { background: #eef0f2; color: #6b7280; }
.mm-reso-1 { background: #e8f6ee; color: #198754; }
.mm-reso-2 { background: #fff6e0; color: #b8860b; }
.mm-reso-3 { background: #fdecee; color: #dc3545; }
.mm-nego-comment { font-size: .88rem; padding: .25rem 0; color: #45474f; }
.mm-nego-proposed {
    display: inline-block;
    margin-left: .4rem;
    font-size: .75rem;
    color: var(--mm-pink, #E31777);
    background: #fff0f6;
    padding: .05rem .4rem;
    border-radius: .4rem;
}

/* ── Explainer pages ─────────────────────────────────────────────── */
.mm-explainer { padding: 3rem 0; background: #fff; }
.mm-explainer-hero {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.mm-explainer-hero img { width: 100%; height: auto; display: block; }
.mm-explainer-h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--mm-dark, #1e1f20);
    margin: 1rem 0;
    text-align: center;
}
.mm-explainer .mm-eyebrow-pill { display: inline-flex; }
.mm-explainer-lead {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #45474f;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.mm-explainer-cta { text-align: center; margin-top: 1.75rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Learn index cards */
.mm-learn-card {
    display: block;
    background: #fff;
    border: 1px solid #f0e3ec;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .15s, box-shadow .15s;
}
.mm-learn-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.mm-learn-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #faf7f2; }
.mm-learn-card-body { padding: 1rem 1.15rem; }
.mm-learn-card-body h5 { font-weight: 700; color: #45474f; margin-bottom: .25rem; }
.mm-learn-card-body p { color: #6c757d; font-size: .9rem; margin: 0; }

.mm-footer-copy {
    font-size: .78rem;
    color: rgba(255,255,255,.3);
    margin: 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.mm-hero { background: #fff; overflow: hidden; }

.mm-hero-content {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem)
             clamp(3.5rem, 8vw, 6rem) clamp(2rem, 8vw, 7rem);
    max-width: 620px;
    width: 100%;
    margin-left: auto;
}

.mm-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff0f6;
    border: 1.5px solid #fbc8de;
    color: var(--mm-pink-dark);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.mm-eyebrow-dot {
    width: 7px; height: 7px;
    background: var(--mm-pink);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: mm-pulse 2.2s ease-in-out infinite;
}

@keyframes mm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .45; transform: scale(1.55); }
}

.mm-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7.5vw, 5rem);
    font-weight: 700;
    color: var(--mm-dark);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 1.3rem;
}

.mm-h1-accent {
    color: var(--mm-pink);
    font-style: italic;
    display: block;
}

.mm-hero-p {
    font-size: clamp(.93rem, 1.8vw, 1.07rem);
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 2.1rem;
    max-width: 480px;
}

/* ── Pill buttons ────────────────────────────────────────────────── */
.mm-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(.88rem, 1.4vw, 1rem);
    padding: .78rem clamp(1.5rem, 3vw, 2.2rem);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    z-index: 0;
    white-space: nowrap;
}

.mm-btn-pill::before {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: width .5s ease, height .5s ease;
    z-index: -1;
}

.mm-btn-pill:hover { transform: translateY(-2px); }
.mm-btn-pill:hover::before { width: 420px; height: 420px; }

.mm-btn-primary {
    background: var(--mm-pink);
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(227,23,119,.35);
}
.mm-btn-primary::before { background: rgba(255,255,255,.18); }
.mm-btn-primary:hover   { background: var(--mm-pink); box-shadow: 0 10px 32px rgba(227,23,119,.45); }

.mm-btn-dark {
    background: var(--mm-dark);
    color: #fff !important;
}
.mm-btn-dark::before { background: rgba(255,255,255,.12); }
.mm-btn-dark:hover   { background: var(--mm-dark); }

.mm-btn-sm { padding: .55rem 1.4rem; font-size: .875rem; }

/* ── Stats row ───────────────────────────────────────────────────── */
.mm-hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem 1.25rem;
    margin-top: 2.5rem;
}

.mm-avatar-stack { display: flex; }

.mm-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    margin-left: -10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    flex-shrink: 0;
}
.mm-avatar:first-child { margin-left: 0; }

.mm-stat-sep { width: 1px; height: 32px; background: #ddd; flex-shrink: 0; }

.mm-stat-item { display: flex; flex-direction: column; line-height: 1.2; }
.mm-stat-item strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mm-dark);
}
.mm-stat-item span {
    font-size: .7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: .15rem;
}

/* ── Hero panel ──────────────────────────────────────────────────── */
.mm-hero-panel {
    position: relative;
    width: 100%;
    min-height: 420px;
    background: #faf5f8;
    overflow: hidden;
}

.mm-hero-img {
    position: absolute;
    inset: 0;               /* fill the whole panel — no left gap */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Floating badges ─────────────────────────────────────────────── */
.mm-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 1rem;
    padding: .9rem 1.15rem;
    box-shadow: 0 14px 44px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: .75rem;
    animation: mm-float 4.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes mm-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.mm-float-badge-icon {
    width: 40px; height: 40px;
    border-radius: .6rem;
    background: #fff0f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mm-float-badge-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mm-dark);
    line-height: 1.15;
}

.mm-float-badge-lbl {
    font-size: .68rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: .15rem;
}

/* ── Stats strip ─────────────────────────────────────────────────── */
.mm-stat-strip {
    background: var(--mm-dark);
    padding: 3rem 0;
}

.mm-stat-cell {
    border-right: 1px solid rgba(255,255,255,.1);
    padding: 1rem 2rem;
}
.mm-stat-cell:last-child { border-right: none; }

.mm-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--mm-pink);
    line-height: 1;
}

.mm-stat-lbl {
    display: block;
    font-size: .73rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .5rem;
}

/* ── Section ─────────────────────────────────────────────────────── */
.mm-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ── Filter bar ──────────────────────────────────────────────────── */
.mm-filter-bar-inner {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1.5px solid #f0e0eb;
}

.mm-filter-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: .3rem;
}

.mm-select, .mm-input {
    border-color: #e8c8d8;
    border-radius: .6rem;
}
.mm-select:focus, .mm-input:focus {
    border-color: var(--mm-pink);
    box-shadow: 0 0 0 .2rem rgba(227,23,119,.15);
}

/* ── Profile cards ───────────────────────────────────────────────── */
.mm-profile-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(51,51,51,.08);
    border: 1px solid #f5e8f0;
    transition: box-shadow .3s, transform .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mm-profile-card:hover {
    box-shadow: 0 12px 40px rgba(227,23,119,.14);
    transform: translateY(-6px);
}

.mm-profile-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.mm-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.mm-profile-card:hover .mm-profile-img { transform: scale(1.06); }

/* Detail-view photo: show the WHOLE picture (no crop), unlike the cover-cropped directory thumbnail. */
.mm-profile-img-wrap.full { height: auto; }
.mm-profile-img.full { height: auto; max-height: 460px; object-fit: contain; background: #f3f1ec; }
.mm-profile-card:hover .mm-profile-img.full { transform: none; }

/* Powered by TechUnited badge */
.powered-by { text-align: center; font-size: .78rem; color: #9a9a9a; padding: 10px 0 4px; }
.powered-by a { color: #6c7a89; text-decoration: none; font-weight: 600; }
.powered-by a:hover { text-decoration: underline; }

/* Impersonation banner */
.imp-banner { position: sticky; top: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: #b8860b; color: #fff; padding: 6px 14px; font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.imp-banner .imp-admin { opacity: .85; font-size: .8rem; }
.imp-exit { background: #fff; color: #7a5a00; border-radius: 99px; padding: 3px 12px; font-weight: 600; text-decoration: none; }
.imp-exit:hover { background: #ffe7b3; color: #7a5a00; }

/* Feedback widget (floating) */
.fb-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1080; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fb-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--brand-fab, #2E7D32); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; }
.fb-fab:hover { background: var(--brand-fab-dark, #1f5d24); }
.fb-panel { width: 320px; max-width: calc(100vw - 36px); background: #fff; border-radius: 14px; box-shadow: 0 12px 38px rgba(0,0,0,.25); padding: 14px; }
.fb-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; }
.fb-x { border: none; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #888; }
.fb-input { width: 100%; border: 1px solid #d8d8d8; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: .92rem; }
.fb-page { font-size: .72rem; color: #888; margin-bottom: 8px; }
.fb-check { font-size: .82rem; color: #555; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; cursor: pointer; }
.fb-err { color: #c0392b; font-size: .8rem; margin-bottom: 8px; }
.fb-btn { border: none; border-radius: 99px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.fb-btn-primary { background: var(--brand-fab, #2E7D32); color: #fff; width: 100%; }
.fb-btn-light { background: #eee; color: #333; }
.fb-done { text-align: center; padding: 10px 4px; }
.fb-done-check { font-size: 1.8rem; }

/* Profile completeness meter */
.mm-progress {
    height: 8px;
    background: #ece6dd;
    border-radius: 99px;
    overflow: hidden;
}
.mm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #2e7d32);
    border-radius: 99px;
    transition: width .35s ease;
}

.mm-profile-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f9f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #e8c8d8;
}

/* Locked photo (visible after a mutual connection) */
.mm-profile-img-placeholder.mm-photo-locked {
    flex-direction: column;
    gap: .4rem;
    background: linear-gradient(135deg, #eceff1 0%, #dfe5e8 100%);
    color: #8a96a0;
    font-size: 2.4rem;
}
.mm-photo-locked .mm-photo-locked-text {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mm-profile-gender-badge {
    position: absolute;
    bottom: .75rem;
    left: .75rem;
    background: var(--mm-pink);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: 2rem;
}

.mm-profile-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mm-profile-pseudonym {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e1f20;
    margin-bottom: .3rem;
}

.mm-profile-meta {
    display: flex;
    gap: .75rem;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .6rem;
}

.mm-profile-meta span { display: flex; align-items: center; gap: .3rem; }

.mm-profile-bio {
    font-size: .84rem;
    color: #45474f;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

.mm-profile-actions { margin-top: auto; }

/* ── Profile Builder ─────────────────────────────────────────────── */
.mm-builder-wrap { background: #f9f0f5; min-height: 100vh; padding-bottom: 4rem; }

.mm-builder-steps {
    background: #fff;
    border-bottom: 2px solid #f5e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 66px;
    z-index: 100;
}

.mm-steps-row {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.mm-step-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .35rem .5rem;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 500;
    color: #aaa;
    flex-shrink: 0;
    transition: color .2s;
}
.mm-step-btn:disabled { cursor: default; }
.mm-step-btn.active { color: var(--mm-pink, #E31777); }
.mm-step-btn.done   { color: #28a745; }

.mm-step-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #eee;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.mm-step-btn.active .mm-step-circle { background: var(--mm-pink, #E31777); color: #fff; }
.mm-step-btn.done   .mm-step-circle { background: #28a745; color: #fff; }

.mm-step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    min-width: 20px;
    transition: background .2s;
}
.mm-step-line.done { background: #28a745; }

.mm-builder-body { padding-top: 2rem; max-width: 780px; }

.mm-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1.5px solid #f5e8f0;
}

.mm-card-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #1e1f20; margin-bottom: .3rem; }
.mm-card-sub   { font-size: .85rem; color: #6b7280; margin-bottom: 1.5rem; }

.mm-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #45474f;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mm-required      { color: var(--mm-pink, #E31777); }
.mm-field-optional { color: #aaa; font-weight: 400; text-transform: none; letter-spacing: 0; }
.mm-field-hint    { font-size: .75rem; color: #9ca3af; margin-top: .3rem; }
.mm-field-error   { font-size: .8rem; color: #dc3545; margin-top: .3rem; }

.mm-input {
    border-color: #e8c8d8 !important;
    border-radius: .6rem !important;
}
.mm-input:focus {
    border-color: var(--mm-pink, #E31777) !important;
    box-shadow: 0 0 0 .2rem rgba(227,23,119,.12) !important;
}

/* Personality checkboxes */
.mm-checkbox-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.mm-check-pill {
    display: flex; align-items: center; gap: .4rem;
    background: #f9f0f5;
    border: 1.5px solid #e8c8d8;
    border-radius: 2rem;
    padding: .3rem .9rem;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.mm-check-pill:has(input:checked) { background: var(--mm-pink, #E31777); border-color: var(--mm-pink, #E31777); color: #fff; }
.mm-check-pill input { display: none; }

/* Children */
.mm-child-row {
    display: flex;
    align-items: center;
    background: #f9f0f5;
    border: 1.5px solid #f5e8f0;
    border-radius: .65rem;
    padding: .65rem 1rem;
    font-size: .88rem;
}
.mm-add-child-row {
    background: #fdf5fa;
    border: 1.5px dashed #e8c8d8;
    border-radius: .75rem;
    padding: 1rem;
}

/* Photo grid */
.mm-photo-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.mm-photo-thumb {
    position: relative;
    width: 100px; height: 100px;
    border-radius: .65rem;
    overflow: hidden;
    border: 2px solid #f5e8f0;
}
.mm-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-photo-main-badge {
    position: absolute; top: 4px; left: 4px;
    background: var(--mm-pink, #E31777);
    color: #fff; font-size: .62rem; font-weight: 700;
    padding: .15rem .45rem; border-radius: .35rem;
}
.mm-photo-delete {
    position: absolute; top: 2px; right: 2px;
    background: rgba(0,0,0,.55); color: #fff;
    border: none; border-radius: 50%;
    width: 22px; height: 22px;
    font-size: .85rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Unit toggle (cm/ft, kg/lbs) */
.mm-unit-toggle {
    display: inline-flex;
    border: 1.5px solid #e8c8d8;
    border-radius: 2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.mm-unit-toggle button {
    background: none;
    border: none;
    padding: .15rem .65rem;
    font-size: .7rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.mm-unit-toggle button.active {
    background: var(--mm-pink, #E31777);
    color: #fff;
}

/* Theme picker swatches */
.mm-theme-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .4rem;
}

.mm-theme-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    font-weight: 700;
    transition: transform .15s, border-color .15s;
    padding: 0;
}

.mm-theme-swatch:hover    { transform: scale(1.15); }
.mm-theme-swatch.selected { border-color: #1e1f20; transform: scale(1.15); }

/* Builder nav */
.mm-builder-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .5rem;
}

/* ── Interests page ──────────────────────────────────────────────── */
.mm-interests-wrap { background: #faf5f8; min-height: 100vh; }

.mm-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #1e1f20;
    margin: 0;
}

.mm-tab-row { display: flex; gap: .5rem; border-bottom: 2px solid #f0e0eb; }

.mm-tab {
    background: none;
    border: none;
    padding: .6rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color .15s, border-color .15s;
}
.mm-tab.active { color: var(--mm-pink,#E31777); border-bottom-color: var(--mm-pink,#E31777); }

.mm-tab-badge {
    background: var(--mm-pink,#E31777);
    color: #fff;
    border-radius: 2rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .5rem;
    min-width: 20px;
    text-align: center;
}

.mm-request-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1.5px solid #f5e8f0;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.mm-request-profile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 220px;
}

.mm-request-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #f5e8f0;
    flex-shrink: 0;
}

.mm-request-avatar-placeholder {
    background: #f9f0f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #e8c8d8;
}

.mm-request-info { flex: 1; }

.mm-request-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1f20;
    margin-bottom: .2rem;
}

.mm-request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .4rem;
}
.mm-request-meta span { display: flex; align-items: center; }

.mm-request-message {
    font-size: .88rem;
    color: #45474f;
    font-style: italic;
    margin: .4rem 0 0;
    line-height: 1.6;
}

.mm-request-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
    flex-shrink: 0;
}

.mm-status-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .75rem;
    border-radius: 2rem;
}
.mm-status-pending  { background: #fff8e6; color: #7a5a00; }
.mm-status-accepted { background: #e8f5e9; color: #2e7d32; }
.mm-status-declined { background: #fce4ec; color: #c62828; }
.mm-status-withdrawn{ background: #f5f5f5; color: #616161; }
.mm-status-verified { background: #e8f5e9; color: #2e7d32; }
.mm-status-rejected { background: #fce4ec; color: #c62828; }

/* ── Verification badges ─────────────────────────────────────────── */
.mm-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.mm-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #f0f9f1;
    border: 1.5px solid #b6e0bd;
    color: #1e6b2b;
    border-radius: 2rem;
    padding: .15rem .6rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
}
.mm-badge-icon  { font-size: .85rem; }
/* Compact (directory card): keep the full badge set on a single line — tight, no wrap. */
.mm-badges-sm { gap: .18rem; flex-wrap: nowrap; }
.mm-badges-sm .mm-badge { padding: .1rem .26rem; gap: 0; border-width: 1px; }
.mm-badges-sm .mm-badge-icon { font-size: .85rem; }
/* Unearned badge in a full ShowAll set — visibly "not yet". */
.mm-badge-dim { opacity: .4; filter: grayscale(1); }

/* Semi-annoying photo nudge banner (no photo / photo doesn't look real). */
.mm-photo-nudge {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    background: #fff3cd; color: #6b5300; border-bottom: 2px solid #ffe08a;
    padding: .6rem 1.25rem; font-size: .9rem;
}
.mm-photo-nudge > .bi { font-size: 1.15rem; color: #c79100; }
.mm-photo-nudge .mm-nudge-cta {
    margin-left: auto; background: var(--mm-pink, #E31777); color: #fff;
    padding: .3rem .9rem; border-radius: 2rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.mm-photo-nudge .mm-nudge-later {
    background: transparent; border: none; color: #6b5300; opacity: .65;
    font-size: .8rem; text-decoration: underline; cursor: pointer;
}

/* How-to videos placeholder (clip not uploaded yet). */
.mm-video-placeholder {
    aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .55rem; border-radius: .85rem .85rem 0 0;
    background: linear-gradient(135deg, #f4ede3, #efe2d4);
    color: var(--mm-pink, #E31777);
}
.mm-video-placeholder > .bi { font-size: 2.4rem; opacity: .85; }
.mm-video-soon {
    font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(0,0,0,.06); color: #6a6a6a; padding: .2rem .65rem; border-radius: 2rem;
}

/* Contextual "Watch how" help-video chip + modal. */
.mm-help-chip {
    display: inline-flex; align-items: center; gap: .25rem;
    background: transparent; color: var(--mm-pink, #E31777);
    border: 1px solid var(--mm-pink, #E31777); border-radius: 2rem;
    padding: .2rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.mm-help-chip:hover { background: var(--mm-pink, #E31777); color: #fff; }
.mm-help-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 3000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mm-help-modal-body {
    background: #fff; border-radius: .85rem; padding: 1rem; max-width: 720px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
/* Small borderless icon buttons on a profile card (view / favourite / hide). */
.mm-card-icon {
    background: transparent; border: none; color: #8a8a8a; font-size: 1.15rem;
    line-height: 1; padding: .25rem .4rem; border-radius: .5rem; cursor: pointer;
    text-decoration: none; transition: background .12s, color .12s;
}
.mm-card-icon:hover { background: #f3f3f3; color: #333; }

/* ── Verification self-service cards ─────────────────────────────── */
.mm-verify-earned {
    background: #fff;
    border: 1.5px solid #f0e0eb;
    border-radius: .85rem;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.mm-verify-card {
    background: #fff;
    border: 1.5px solid #f5e8f0;
    border-radius: .85rem;
    padding: 1.1rem 1.25rem;
    height: 100%;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    transition: box-shadow .25s;
}
.mm-verify-card:hover { box-shadow: 0 8px 28px rgba(227,23,119,.1); }
.mm-verify-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff0f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.mm-verify-body { flex: 1; min-width: 0; }
.mm-verify-title { font-weight: 700; color: #1e1f20; display: flex; align-items: center; gap: .4rem; }
.mm-verify-paid {
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: #fde8b0; color: #7a5a00; border-radius: 1rem; padding: .05rem .45rem;
}
.mm-verify-blurb { font-size: .82rem; color: #6b7280; margin: .25rem 0 .6rem; line-height: 1.5; }

.mm-wali-reveal {
    font-size: .82rem;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: .5rem;
    padding: .4rem .8rem;
    color: #2e7d32;
    max-width: 280px;
    text-align: right;
}

.mm-request-date {
    font-size: .72rem;
    color: #9ca3af;
}

/* Members-only gate (shared) */
.mm-members-gate {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1.5px solid #f5e8f0;
}
.mm-gate-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.mm-members-gate h3 { font-family: 'Playfair Display', serif; color: #1e1f20; margin-bottom: .5rem; }
.mm-members-gate p  { color: #6b7280; margin-bottom: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .mm-hero-content { padding: 3rem 1.5rem; margin-left: 0; max-width: 100%; }
    .mm-stat-sep     { display: none; }
    .mm-stat-cell    { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .mm-stat-cell:last-child { border-bottom: none; }
}

/* ── Hero Split ──────────────────────────────────────────────────── */
.im-hero {
    background: #fff;
    overflow: hidden;
}

.im-hero-content {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem) clamp(2rem, 8vw, 7rem);
    max-width: 620px;
    width: 100%;
    margin-left: auto;
}

.im-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--im-mint-bg);
    border: 1.5px solid var(--im-border);
    color: var(--im-brand-dark);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.im-eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--im-brand);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: im-pulse-dot 2.2s ease-in-out infinite;
}

@keyframes im-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.5); }
}

.im-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7.5vw, 5rem);
    font-weight: 700;
    color: var(--im-earth);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 1.3rem;
}

.im-h1-accent {
    color: var(--im-brand);
    font-style: italic;
    display: block;
}

.im-hero-p {
    font-size: clamp(.93rem, 1.8vw, 1.07rem);
    color: var(--im-muted);
    line-height: 1.9;
    margin-bottom: 2.1rem;
    max-width: 480px;
}

/* ── Pill Buttons ────────────────────────────────────────────────── */
.im-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(.88rem, 1.4vw, 1rem);
    padding: .78rem clamp(1.5rem, 3vw, 2.2rem);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    z-index: 0;
    white-space: nowrap;
}

.im-btn-pill::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width .5s ease, height .5s ease;
    z-index: -1;
}

.im-btn-pill:hover { transform: translateY(-2px); }
.im-btn-pill:hover::before { width: 420px; height: 420px; }

.im-btn-green {
    background: var(--im-brand);
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(26,170,26,.35);
}
.im-btn-green::before  { background: rgba(255,255,255,.16); }
.im-btn-green:hover    { box-shadow: 0 10px 32px rgba(26,170,26,.45); background: var(--im-brand); }

.im-btn-outline-dark {
    background: transparent;
    color: var(--im-earth) !important;
    border: 2px solid rgba(28,46,28,.35);
}
.im-btn-outline-dark::before { background: rgba(28,46,28,.05); }
.im-btn-outline-dark:hover   { border-color: rgba(28,46,28,.6); }

.im-btn-white {
    background: #fff;
    color: var(--im-bg-dark) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.im-btn-white::before { background: rgba(255,255,255,.22); }
.im-btn-white:hover   { background: #fff; }

.im-btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
}
.im-btn-outline-white::before { background: rgba(255,255,255,.1); }
.im-btn-outline-white:hover   { border-color: rgba(255,255,255,.9); }

/* ── Hero Stats Row ──────────────────────────────────────────────── */
.im-hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem 1.25rem;
    margin-top: 2.5rem;
}

.im-avatar-stack { display: flex; }

.im-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.im-avatar:first-child { margin-left: 0; }

.im-hero-stat-sep {
    width: 1px;
    height: 32px;
    background: #d8d8d8;
    flex-shrink: 0;
}

.im-hero-stat-item {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.im-hero-stat-item strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--im-earth);
}
.im-hero-stat-item span {
    font-size: .7rem;
    color: var(--im-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: .15rem;
}

/* ── Hero Right Panel ────────────────────────────────────────────── */
.im-hero-panel {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, var(--im-bg-hero) 0%, #0f5210 55%, var(--im-bg-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}

.im-hero-panel::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    top: -120px; right: -120px;
    pointer-events: none;
}

.im-hero-panel::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(232,98,26,.05);
    border: 1px solid rgba(232,98,26,.1);
    bottom: -90px; left: -90px;
    pointer-events: none;
}

/* ── Floating Badges ─────────────────────────────────────────────── */
.im-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 1rem;
    padding: .9rem 1.15rem;
    box-shadow: 0 14px 44px rgba(0,0,0,.22);
    display: flex;
    align-items: center;
    gap: .75rem;
    animation: im-float 4.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes im-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.im-float-badge-icon {
    width: 42px; height: 42px;
    border-radius: .65rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.im-float-badge-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--im-earth);
    line-height: 1.15;
}

.im-float-badge-lbl {
    font-size: .68rem;
    color: var(--im-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: .15rem;
}

/* ── Panel central illustration ──────────────────────────────────── */
.im-panel-center {
    width: 230px; height: 230px;
    position: relative;
    z-index: 1;
}

.im-panel-svg { width: 100%; height: 100%; overflow: visible; }

/* ── Stats Strip ─────────────────────────────────────────────────── */
.im-stat-strip {
    background: var(--im-bg-dark);
    padding: 3.25rem 0;
}

.im-stat-cell {
    border-right: 1px solid rgba(255,255,255,.1);
    padding: 1.1rem 2rem;
}
.im-stat-cell:last-child { border-right: none; }

.im-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--im-accent);
    line-height: 1;
}

.im-stat-lbl {
    display: block;
    font-size: .74rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .5rem;
}

/* ── Section wrapper ─────────────────────────────────────────────── */
.im-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ── How It Works ────────────────────────────────────────────────── */
.im-step-card {
    text-align: center;
    padding: 2.25rem 1.75rem;
    background: var(--im-mint-bg);
    border-radius: var(--im-radius-lg);
    border: 1.5px solid var(--im-border);
    height: 100%;
    position: relative;
    transition: box-shadow .3s, transform .3s;
}
.im-step-card:hover {
    box-shadow: 0 14px 44px rgba(26,170,26,.12);
    transform: translateY(-5px);
}

.im-step-num {
    width: 58px; height: 58px;
    background: var(--im-brand);
    color: #fff;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.3rem;
    box-shadow: 0 6px 22px rgba(26,170,26,.38);
}

.im-step-card h5 { font-size: 1.05rem; color: var(--im-earth); margin-bottom: .5rem; }
.im-step-card p  { font-size: .88rem; color: var(--im-muted); line-height: 1.75; margin: 0; }

/* ── Service Cards ───────────────────────────────────────────────── */
.im-svc-card {
    background: #fff;
    border-radius: var(--im-radius-lg);
    padding: 2rem 1.75rem;
    border: 1.5px solid var(--im-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s, transform .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}

.im-svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--im-brand), var(--im-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}

.im-svc-card:hover {
    box-shadow: 0 16px 50px rgba(26,170,26,.12);
    transform: translateY(-6px);
    border-color: transparent;
}
.im-svc-card:hover::before { transform: scaleX(1); }

.im-svc-icon {
    width: 58px; height: 58px;
    background: var(--im-mint-bg);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
    transition: background .3s, transform .3s;
}
.im-svc-card:hover .im-svc-icon {
    background: var(--im-brand);
    transform: scale(1.08) rotate(-4deg);
}

.im-svc-card h5 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--im-earth); }
.im-svc-card p  { color: var(--im-muted); font-size: .88rem; flex: 1; line-height: 1.7; margin: 0; }

.im-svc-link {
    font-size: .84rem;
    font-weight: 600;
    color: var(--im-brand-dark);
    text-decoration: none;
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    transition: letter-spacing .2s;
}
.im-svc-link:hover { letter-spacing: .04em; color: var(--im-brand-dark); }

/* ── Testimonials ────────────────────────────────────────────────── */
.im-testimonial-card {
    background: #fff;
    border-radius: var(--im-radius-lg);
    padding: 2.25rem 1.75rem;
    border: 1.5px solid var(--im-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s, transform .3s;
    position: relative;
}
.im-testimonial-card.featured {
    border-color: var(--im-brand);
    box-shadow: 0 12px 44px rgba(26,170,26,.13);
    transform: translateY(-5px);
}
.im-testimonial-card:hover          { box-shadow: 0 16px 50px rgba(26,170,26,.12); transform: translateY(-6px); }
.im-testimonial-card.featured:hover { transform: translateY(-9px); }

.im-testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: var(--im-brand);
    line-height: .55;
    opacity: .28;
    display: block;
    margin-bottom: .6rem;
}

.im-testimonial-card blockquote {
    font-size: .91rem;
    color: #444;
    font-style: italic;
    line-height: 1.85;
    margin: 0 0 1.5rem;
    flex: 1;
}

.im-testimonial-author { display: flex; align-items: center; gap: .85rem; }

.im-testimonial-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid var(--im-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.im-testimonial-name { font-weight: 700; font-size: .9rem; color: var(--im-earth); }
.im-testimonial-role { font-size: .76rem; color: var(--im-muted); margin-top: .1rem; }

/* ── CTA pill-button size override ──────────────────────────────── */
.cta-section .im-btn-pill { padding: .9rem 2.4rem; font-size: 1rem; }

/* ── Hero image (+30%, fades at bottom) ─────────────────────────── */
.mm-hero-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 676px;          /* 520 × 1.3 */
    object-fit: contain;
    object-position: top right;
    display: block;
    align-self: flex-start;
    /* Mask fades the image out smoothly at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image:         linear-gradient(to bottom, black 60%, transparent 100%);
}

.mm-hero-panel {
    min-height: 540px;          /* taller panel for larger image */
}

/* Soft gradient band along the bottom — blends image into the page */
.mm-hero-panel::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, #faf5f8 85%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure img avatars match the div avatar size */
img.im-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Testimonial avatar as img */
img.im-testimonial-avatar {
    object-fit: cover;
    background: var(--im-mint-bg);
}

/* ── Responsive tweaks ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .im-hero-content {
        padding: 3rem 1.5rem;
        margin-left: 0;
        max-width: 100%;
    }
    .im-hero-stat-sep { display: none; }
    .im-stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .im-stat-cell:last-child { border-bottom: none; }
}

/* ── Rotating hero banner (tenant-uploaded set) — cross-fade ───────── */
.mm-hero-carousel { position: absolute; inset: 0; }
/* Banners fill the whole panel (cover-crop, anchored top), centred — overrides the generic
   .mm-hero-img contain/max-height rule, which is only for the default static hero image. */
.mm-hero-carousel .mm-hero-img {
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    object-fit: cover; object-position: center top;
    opacity: 0; transition: opacity 1.1s ease-in-out;
}
.mm-hero-carousel .mm-hero-img.active { opacity: 1; }

/* ── Live chat widget (Ask AI / Live Agent) ───────────────────────── */
.chat-widget { position: fixed; right: 18px; bottom: 82px; z-index: 1080; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--brand-fab, #2E7D32); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; }
.chat-fab:hover { background: var(--brand-fab-dark, #1f5d24); }
.chat-panel { width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 14px; box-shadow: 0 12px 38px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; max-height: 72vh; }
.chat-head { background: var(--brand-fab, #2E7D32); color: #fff; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-x { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-choices { padding: 14px; }
.chat-choice { display: block; width: 100%; text-align: left; border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fafafa; cursor: pointer; }
.chat-choice:hover { background: #f0f0f0; }
.chat-choice-ic { font-size: 1.1rem; margin-right: 6px; }
.chat-choice-sub { display: block; font-size: .78rem; color: #777; margin-top: 2px; }
.chat-log { padding: 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; }
.chat-msg.chat-visitor { align-self: flex-end; }
.chat-msg.chat-ai, .chat-msg.chat-agent { align-self: flex-start; }
.chat-msg.chat-system { align-self: center; }
.chat-msg-who { font-size: .72rem; color: #888; margin-bottom: 2px; }
.chat-bubble { padding: 8px 11px; border-radius: 12px; background: #f0f0f0; font-size: .9rem; white-space: pre-wrap; }
.chat-visitor .chat-bubble { background: var(--brand-fab, #2E7D32); color: #fff; }
.chat-system .chat-bubble { background: transparent; color: #888; font-style: italic; font-size: .8rem; text-align: center; }
.chat-typing { letter-spacing: 2px; }
.chat-compose { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #eee; }
.chat-input { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.chat-send { border: none; background: var(--brand-fab, #2E7D32); color: #fff; border-radius: 8px; padding: 0 12px; cursor: pointer; }
.chat-attach { border: none; background: transparent; color: #6b7280; cursor: pointer; padding: 0 5px; font-size: 1.05rem; display: inline-flex; align-items: center; }
.chat-attach:hover:not(:disabled) { color: var(--brand-fab, #2E7D32); }
.chat-attach:disabled { opacity: .5; cursor: default; }
/* Rendered (markdown) message bodies — keep tight, constrain inline images */
.chat-bubble p:last-child, .chat-md p:last-child { margin-bottom: 0; }
.chat-bubble p, .chat-md p { margin: 0 0 .35rem; }
.chat-bubble img, .chat-md img { max-width: 100%; border-radius: 6px; margin-top: 4px; display: block; }
.chat-bubble a { text-decoration: underline; }
.chat-tohuman { width: 100%; background: none; border: none; color: var(--brand-fab, #2E7D32); font-size: .82rem; padding: 6px; cursor: pointer; }
.chat-err { color: #c00; font-size: .82rem; margin-top: 6px; }
.chat-closed { padding: 10px; text-align: center; }

/* ── Unified support widget (chat + report in one tabbed panel) ── */
.support-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1080; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--brand-fab, #2E7D32); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.support-fab:hover { background: var(--brand-fab-dark, #1f5d24); }
.support-panel { width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 14px; box-shadow: 0 12px 38px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; max-height: 75vh; }
.support-header { display: flex; align-items: stretch; background: var(--brand-fab, #2E7D32); }
.support-tabs { display: flex; flex: 1; }
.support-tab { flex: 1; border: none; background: transparent; color: rgba(255,255,255,.7); font-weight: 600; font-size: .9rem; padding: 12px 8px; cursor: pointer; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.support-tab:hover { color: #fff; }
.support-tab.active { color: #fff; border-bottom-color: #fff; }
.support-x { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 14px; }
.support-body { overflow-y: auto; }
/* Embedded children render as plain content (no fixed positioning / own FAB). */
.support-body .chat-embedded, .support-body .fb-embedded { width: auto; }
.support-body .chat-panel { width: auto; max-height: none; box-shadow: none; border-radius: 0; }
.support-body .fb-panel { width: auto; box-shadow: none; border-radius: 0; }

/* Business-hours banner + leave-a-message bits */
.chat-context { padding: 6px 12px; font-size: .8rem; color: #666; background: #f6f6f6; border-bottom: 1px solid #eee; }
.chat-hours { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .82rem; }
.chat-hours.is-open { background: #eafaef; color: #1c6b34; }
.chat-hours.is-closed { background: #fff4e5; color: #8a5a12; }
.chat-hours-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 9px; }
.chat-hours.is-open .chat-hours-dot { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.chat-hours.is-closed .chat-hours-dot { background: #e6952e; box-shadow: 0 0 0 3px rgba(230,149,46,.25); }
.chat-hours-sub { opacity: .8; margin-top: 2px; }
.chat-offline-note { margin: 10px; padding: 8px 10px; background: #fff4e5; color: #8a5a12; border-radius: 8px; font-size: .8rem; }
.chat-send-msg { width: 100%; border: none; background: var(--brand-fab, #2E7D32); color: #fff; border-radius: 8px; padding: 9px; font-weight: 600; cursor: pointer; }
.chat-send-msg:disabled { opacity: .6; cursor: default; }

/* Feedback screenshot panel (capture / paste / annotate) */
.fb-shot { margin: 4px 0 6px; }
.fb-shot-btn { border: 1px solid #cfd8cf; background: #fff; color: #2e5a34; border-radius: 6px; font-size: .72rem; font-weight: 600; padding: 3px 9px; cursor: pointer; transition: background .15s; }
.fb-shot-btn:hover:not(:disabled) { background: #eef6ef; }
.fb-shot-btn:disabled { opacity: .5; cursor: default; }
.fb-shot-tip { font-size: .72rem; color: #8a948a; margin-top: 4px; }

/* Leading-icon form fields (IconField) */
.icon-field .icon-field-icon { background: #f4f8f4; color: var(--im-brand); border-color: #d0d8d0; }
.icon-field:focus-within .icon-field-icon { color: var(--im-brand-dark); border-color: var(--im-brand); }

/* Post-chat rating */
.chat-rate { padding: 10px 12px; }
.chat-rate-q { font-weight: 600; margin-bottom: 6px; }
.chat-stars { font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.chat-star { color: #cfcfcf; cursor: pointer; transition: color .1s; }
.chat-star.on, .chat-star:hover { color: #f5b301; }
