:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --vip: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --whatsapp: #25d366;
    --call: #2563eb;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --bottom-nav-h: 4.25rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.topbar { background: #111; color: #fff; font-size: .85rem; padding: .5rem 1rem; text-align: center; }
header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 120; padding-top: var(--safe-top); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: .65rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-wordmark {
    display: inline-flex; align-items: baseline; line-height: 1;
    background: #111; padding: .5rem .85rem; border-radius: 10px;
}
.brand-nairobi { font-weight: 700; color: #fff; letter-spacing: -.01em; }
.brand-elite { font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.logo-wordmark .brand-nairobi,
.logo-wordmark .brand-elite { font-size: 1.15rem; }
.hero .brand-nairobi,
.hero .brand-elite { font-size: inherit; }
.hero .brand-suffix { color: #fff; font-weight: 600; }
.logo-img { height: 48px; width: auto; object-fit: contain; }
nav.nav-desktop { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav.nav-desktop a { color: var(--muted); font-weight: 500; font-size: .95rem; }
nav.nav-desktop a:hover, nav.nav-desktop a.active { color: var(--primary); }
nav.nav-desktop .btn-primary { background: var(--primary); color: #fff; }
.menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55);
    z-index: 130; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px);
}
.menu-backdrop.open { display: block; opacity: 1; }
.mobile-menu {
    position: fixed; top: 0; right: 0; width: min(88vw, 320px); height: 100%;
    background: #fff; z-index: 140; transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -8px 0 32px rgba(15,23,42,.15); display: flex; flex-direction: column;
    padding-top: var(--safe-top);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.mobile-menu-title { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.menu-close { width: 40px; height: 40px; border: none; background: #f1f5f9; border-radius: 10px; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.mobile-menu-nav { display: flex; flex-direction: column; padding: .75rem; gap: .25rem; overflow-y: auto; }
.mobile-menu-nav a {
    padding: .85rem 1rem; border-radius: 10px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-nav a:hover, .mobile-menu-nav a.active { background: #fef2f2; color: var(--primary); }
.mobile-menu-nav .btn { margin-top: .5rem; }
.nav-badge { background: var(--primary); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; font-weight: 700; }
.bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: .35rem .5rem calc(.35rem + var(--safe-bottom));
    box-shadow: 0 -4px 24px rgba(15,23,42,.06);
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .15rem; padding: .45rem .25rem; color: var(--muted); font-size: .68rem; font-weight: 600;
    border-radius: 10px; min-height: 52px; text-align: center; line-height: 1.2;
}
.bottom-nav-item.active { color: var(--primary); background: #fef2f2; }
.bottom-nav-icon { font-size: 1.1rem; line-height: 1; opacity: .85; }
.bottom-nav-item.active .bottom-nav-icon { opacity: 1; }

.pwa-install-banner {
    display: none; position: fixed; left: .75rem; right: .75rem; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .65rem);
    z-index: 125; background: #111; color: #fff; border-radius: 14px; padding: .85rem 1rem;
    box-shadow: 0 10px 30px rgba(15,23,42,.25); align-items: center; gap: .75rem;
    border: 1px solid rgba(225,29,72,.35);
}
.pwa-install-banner.show { display: flex; }
.pwa-install-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pwa-install-copy strong { font-size: .9rem; }
.pwa-install-copy span { font-size: .75rem; color: #cbd5e1; }
.pwa-install-btn {
    background: var(--primary); color: #fff; border: none; border-radius: 10px;
    padding: .55rem .85rem; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.pwa-install-dismiss {
    background: transparent; border: none; color: #94a3b8; font-size: 1.35rem; line-height: 1;
    cursor: pointer; padding: .15rem .25rem;
}

@media (min-width: 769px) {
    .pwa-install-banner { bottom: calc(1rem + var(--safe-bottom)); max-width: 420px; left: auto; right: 1rem; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; border: none; cursor: pointer; min-height: 44px; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.hero { background: linear-gradient(135deg, #111 0%, #1e293b 100%); color: #fff; padding: 1.75rem 1rem; }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.35rem, 5vw, 2.2rem); margin-bottom: .45rem; letter-spacing: -.02em; font-weight: 700; }
.hero p { color: #cbd5e1; max-width: 700px; font-size: clamp(.875rem, 2.5vw, 1rem); }
.container { max-width: 1200px; margin: 0 auto; padding: .85rem 1rem 1.25rem; }

/* Site-wide soft Nairobi skyline backdrop */
body.site-shell { background: #f8fafc; }
body.site-shell .topbar,
body.site-shell > header,
body.site-shell > .hero,
body.site-shell > .container,
body.site-shell .page-content,
body.site-shell .auth-wrap,
body.site-shell .page-chat-wrap,
body.site-shell .messages-container,
body.site-shell .profile-container,
body.site-shell .chat-container,
body.site-shell > footer { position: relative; z-index: 1; }
.landing-bg-soft {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.landing-bg-soft-image {
    position: absolute;
    inset: -8px;
    background: url('../img/landing-city.png') center top/cover no-repeat;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.02);
    opacity: 1;
}
.landing-bg-soft-wash {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.68);
}
.filters { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0; margin: .85rem 0; overflow: hidden; box-shadow: 0 2px 12px rgba(15,23,42,.04); }
.filters-toggle {
    display: none; width: 100%; padding: .9rem 1rem; border: none; background: #fff;
    font-weight: 700; font-size: .92rem; color: var(--text); cursor: pointer;
    align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px;
}
.filters-toggle-icon { color: var(--muted); font-size: .85rem; transition: transform .2s; }
.filters-toggle[aria-expanded="true"] .filters-toggle-icon { transform: rotate(180deg); }
.filter-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; padding: 1rem; }
.filter-row > div { flex: 1 1 140px; min-width: 0; }
.filter-row label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.filter-row input, .filter-row select { width: 100%; padding: .72rem .8rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; min-width: 0; min-height: 44px; background: #fff; }
.filter-checks { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin-top: 0; padding: .85rem 1rem 1rem; border-top: 1px solid var(--border); background: #fafbfc; }
.filter-checks label { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--text); cursor: pointer; padding: .35rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); min-height: 36px; }
.filter-checks input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; accent-color: var(--primary); }
.counties { display: flex; gap: .5rem; margin: .85rem 0; }
.popular-counties { margin: .85rem 0 1rem; }
.popular-counties-head { margin-bottom: .55rem; }
.popular-counties-label {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.popular-counties-list { flex-wrap: wrap; margin: 0; gap: .55rem; }
.county-pill-popular {
    padding: .58rem 1.05rem; font-size: .88rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(225, 29, 72, .08);
}
.county-pill-popular.active, .county-pill-popular:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.all-counties-panel { margin: 0 0 .85rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.all-counties-toggle {
    list-style: none; cursor: pointer; padding: .75rem 1rem; font-weight: 700; font-size: .88rem;
    color: var(--text); background: #fafbfc; border-bottom: 1px solid transparent;
    display: flex; align-items: center; justify-content: space-between;
}
.all-counties-toggle::-webkit-details-marker { display: none; }
.all-counties-toggle::after { content: '▾'; color: var(--muted); font-size: .85rem; transition: transform .2s; }
.all-counties-panel[open] .all-counties-toggle { border-bottom-color: var(--border); }
.all-counties-panel[open] .all-counties-toggle::after { transform: rotate(180deg); }
.all-counties-panel .counties-rail { margin: 0; padding: .75rem 1rem 1rem; max-height: 8rem; overflow-y: auto; flex-wrap: wrap; }
.counties-rail {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: .35rem 0 .5rem;
    margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem;
    position: relative; mask-image: linear-gradient(to right, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.counties-rail::-webkit-scrollbar { display: none; }
.county-pill {
    flex: 0 0 auto; scroll-snap-align: start; padding: .5rem .95rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--border); font-size: .82rem; font-weight: 600;
    white-space: nowrap; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.county-pill.active, .county-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: .85rem 0; flex-wrap: wrap; gap: .5rem; }
.results-bar h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.results-bar span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.listing-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    transition: box-shadow .2s, transform .2s; cursor: pointer; content-visibility: auto;
    contain-intrinsic-size: 320px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.listing-card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); }
.listing-card:active { transform: scale(.995); }
.listing-photo { position: relative; height: 220px; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); }
.listing-photo img, .listing-photo-img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo img[data-fallback="1"] { object-fit: contain; padding: 1.5rem; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); }
.badge-row { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; text-transform: uppercase; }
.badge-vip { background: var(--vip); color: #111; }
.badge-prime-vip { background: linear-gradient(135deg, #e11d48, #f59e0b); color: #fff; }
.badge-prime { background: #e11d48; color: #fff; }
.badge-regular { background: #64748b; color: #fff; }
.badge-verified { background: #22c55e; color: #fff; }
.badge-boost { background: #7c3aed; color: #fff; }
.badge-online { background: #22c55e; color: #fff; }
.badge-real { background: #22c55e; color: #fff; }
.badge-video { background: #6366f1; color: #fff; }
.listing-body { padding: .85rem; }
.listing-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.listing-phone { font-size: 1rem; font-weight: 700; color: var(--call); margin-bottom: .35rem; }
.listing-desc { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; min-height: 2.5em; }
.listing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.listing-actions .btn { min-height: 44px; font-size: .85rem; border-radius: 10px; }
.btn-call { background: var(--call); color: #fff; }
.btn-message { background: var(--primary); color: #fff; }
.btn-message-wide { grid-column: 1 / -1; }
.btn-view { grid-column: 1 / -1; background: #f1f5f9; color: var(--text); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.pagination { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.pagination a, .pagination span { padding: .6rem .95rem; border-radius: 10px; border: 1px solid var(--border); background: #fff; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: .875rem; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
footer { background: #111; color: #94a3b8; text-align: center; padding: 1.75rem 1rem calc(1.75rem + var(--safe-bottom)); margin-top: 1.5rem; font-size: .875rem; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: flex-end; justify-content: center; padding: 0; }
.modal-overlay.active { display: flex; }
#messageModal { z-index: 250; }
.message-compose-modal { position: relative; }
.profile-modal { background: #fff; border-radius: 16px 16px 0 0; max-width: 900px; width: 100%; max-height: 94vh; overflow-y: auto; position: relative; -webkit-overflow-scrolling: touch; }
.modal-close { position: sticky; top: .75rem; float: right; margin: .75rem .75rem 0 0; background: #111; color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.35rem; cursor: pointer; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.payment-modal { background: #fff; border-radius: 16px 16px 0 0; padding: 1.5rem; max-width: 400px; width: 100%; text-align: center; margin: auto 0 0; }

.credits-call-overlay { z-index: 250; backdrop-filter: blur(6px); }
.credits-call-modal {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem calc(1.25rem + var(--safe-bottom, 0px));
    max-width: 420px;
    width: 100%;
    margin: auto 0 0;
    text-align: center;
    box-shadow: 0 -12px 40px rgba(225, 29, 72, .18);
    border: 1px solid rgba(225, 29, 72, .12);
    border-bottom: none;
}
.credits-call-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, .06);
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.credits-call-visual {
    position: relative;
    width: 112px;
    height: 112px;
    margin: .25rem auto 1rem;
}
.credits-call-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225,29,72,.18) 0%, rgba(225,29,72,.04) 70%, transparent 100%);
    animation: creditsPulse 2s ease-in-out infinite;
}
.credits-call-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(225, 29, 72, .25));
}
.credits-call-coins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.credits-call-coins span {
    position: absolute;
    font-size: 1rem;
    opacity: .85;
    animation: creditsFloat 3s ease-in-out infinite;
}
.credits-call-coins span:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.credits-call-coins span:nth-child(2) { top: 12%; right: 4%; animation-delay: .6s; }
.credits-call-coins span:nth-child(3) { bottom: 10%; left: 18%; animation-delay: 1.2s; }
.credits-call-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--primary);
    margin: 0 0 .45rem;
}
.credits-call-lead {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}
.credits-call-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-bottom: 1rem;
}
.credits-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .65rem .4rem;
}
.credits-stat-needed {
    border-color: rgba(225, 29, 72, .35);
    background: rgba(225, 29, 72, .06);
    box-shadow: 0 4px 14px rgba(225, 29, 72, .1);
}
.credits-stat-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.credits-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.credits-stat-needed .credits-stat-value { color: var(--primary); }
.credits-stat-unit {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: .1rem;
}
.credits-call-offer {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(225,29,72,.08));
    border: 1px dashed rgba(225, 29, 72, .25);
    border-radius: 12px;
    padding: .75rem .85rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.credits-call-offer strong { color: var(--text); font-size: .95rem; }
.credits-call-offer-badge {
    align-self: center;
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.credits-call-buy {
    margin-bottom: .55rem;
    font-size: 1rem;
    padding: .9rem 1rem;
    box-shadow: 0 8px 24px rgba(225, 29, 72, .28);
}
.credits-call-later,
.credits-chat-dismiss {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.credits-chat-modal .credits-chat-icon { font-size: 2.35rem; }
.credits-chat-start-note {
    display: none;
    margin: -.35rem 0 1rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.credits-chat-start-note strong { color: var(--primary); }
.credits-chat-dismiss {
    margin-top: .45rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: .85rem;
}
@keyframes creditsPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .85; }
}
@keyframes creditsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.payment-modal input { width: 100%; padding: .85rem; margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px; min-height: 48px; font-size: 1rem; }
.report-modal { text-align: left; }
.report-modal h3 { text-align: center; margin-bottom: .35rem; }
.report-target { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.report-label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: .75rem 0 .35rem; text-transform: uppercase; letter-spacing: .04em; }
.report-modal select,
.report-modal textarea { width: 100%; padding: .78rem .85rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.report-modal textarea { min-height: 100px; resize: vertical; margin-bottom: .5rem; }
.report-modal .btn-block { margin-top: .75rem; }
.payment-status { margin-top: 1rem; padding: .75rem; border-radius: 8px; display: none; }
.payment-status.error { background: #fee2e2; color: #991b1b; display: block; }
.payment-status.success { background: #dcfce7; color: #166534; display: block; }
.alert-repair { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; padding: 1rem; border-radius: 10px; margin: 1rem 0; font-size: .875rem; }

/* Shared page styles */
.page-content { padding-top: 1.5rem; padding-bottom: 2rem; }
.page-narrow { max-width: 720px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.card .sub { color: var(--muted); margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .78rem .85rem; border: 1px solid var(--border);
    border-radius: 10px; font: inherit; background: #fff; min-height: 48px;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.btn-block { width: 100%; margin-top: .5rem; }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.auth-wrap { max-width: 440px; margin: 2rem auto; }
.auth-wrap .card { padding: 2rem; }
.auth-links { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.auth-links a { color: var(--primary); font-weight: 600; }
.wallet-card { background: linear-gradient(135deg, #111, #334155); color: #fff; border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem; border: none; }
.wallet-card h2 { font-size: .9rem; opacity: .8; margin-bottom: .5rem; font-weight: 500; }
.balance { font-size: 3rem; font-weight: 800; line-height: 1; }
.balance span { font-size: 1rem; font-weight: 500; opacity: .7; }
.tx-list { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tx-list h3 { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
.tx { display: flex; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: .875rem; }
.tx:last-child { border-bottom: none; }
.tx .amount.positive { color: #16a34a; font-weight: 600; }
.tx .amount.negative { color: #dc2626; font-weight: 600; }
.tx .meta { color: #94a3b8; font-size: .75rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.pkg { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: border-color .2s; }
.pkg:hover, .pkg.selected { border-color: var(--primary); }
.pkg .credits { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.pkg .price { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.pkg .bonus { font-size: .8rem; color: #16a34a; margin-top: .25rem; }
.terms-content { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.terms-content h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; color: var(--text); }
.terms-content h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
.terms-content p, .terms-content li { color: var(--muted); margin-bottom: .75rem; }
.terms-content ul { padding-left: 1.25rem; }
.age-restriction-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; text-align: center; }
.age-restriction-banner h1 { color: #991b1b; font-size: 1.25rem; margin-bottom: .5rem; }
.document-header { margin-bottom: 1.5rem; }
.document-header h2 { font-size: 1.5rem; }
.last-updated { color: var(--muted); font-size: .875rem; }
.toc { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--primary); text-decoration: none; }
.terms-content .section { margin-bottom: 2rem; }
.terms-content .section h3 { font-size: 1.15rem; margin-bottom: .75rem; color: var(--text); }
.highlight-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 1rem; }

.chat-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.chat-plan-card { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.chat-plan-card:hover { border-color: var(--primary); }
.chat-plan-days { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.chat-plan-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.chat-plan-features { list-style: none; text-align: left; font-size: .8rem; color: var(--muted); margin: 0 0 1rem; padding: 0; }
.chat-plan-features li { padding: .25rem 0; padding-left: 1rem; position: relative; }
.chat-plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.contact-info { background: #f8fafc; border-radius: 12px; padding: 1rem; }

.payment-summary, .summary { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin: 1rem 0; text-align: left; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; font-weight: 700; }
.btn-pay { width: 100%; background: var(--primary); color: #fff; border: none; padding: .85rem; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: .5rem; }
.loading { width: 32px; height: 32px; border: 3px solid #e2e8f0; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile / account page overrides */
body.page-account { background: transparent; color: var(--text); }
body.page-account .profile-header,
body.page-account .profile-container { background: transparent; }
body.page-account .logo-text,
body.page-account header .logo { color: var(--primary); }

/* Messages inbox */
body.page-messages { background: transparent; }
.messages-inbox {
    max-width: 1200px; margin: 0 auto; height: calc(100dvh - 130px - var(--bottom-nav-h));
    display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; position: relative; z-index: 1;
}
.inbox-sidebar {
    width: 340px; min-width: 280px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; background: #fff;
}
.inbox-sidebar-head {
    padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.inbox-sidebar-head h2 { font-size: 1.25rem; margin: 0; font-family: 'Playfair Display', serif; }
.inbox-membership-pill {
    font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px;
    background: #dcfce7; color: #166534;
}
.inbox-membership-owner { background: #fef2f2; color: #be123c; }
.inbox-membership-link { font-size: .8rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.inbox-search-wrap { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.inbox-search {
    width: 100%; padding: .65rem .9rem; border: 1px solid var(--border); border-radius: 999px;
    font: inherit; background: #f8fafc;
}
.inbox-search:focus { outline: none; border-color: var(--primary); }
.inbox-list { flex: 1; overflow-y: auto; }
.inbox-item {
    display: flex; gap: .85rem; padding: .9rem 1.1rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--border); transition: background .2s;
}
.inbox-item:hover, .inbox-item.active { background: #fef2f2; }
.inbox-item.active { border-left: 3px solid var(--primary); }
.inbox-avatar { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.inbox-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.inbox-online-dot {
    position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px;
    background: #16a34a; border: 2px solid #fff; border-radius: 50%;
}
.inbox-online-dot.inline { position: static; display: inline-block; vertical-align: middle; margin-right: .25rem; }
.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.inbox-item-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item-time { font-size: .72rem; color: var(--muted); flex-shrink: 0; }
.inbox-item-preview { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.inbox-item-preview span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-unread {
    background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700;
    min-width: 1.25rem; height: 1.25rem; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; padding: 0 .35rem;
}
.inbox-empty-list { padding: 2rem 1.25rem; text-align: center; color: var(--muted); }
.inbox-empty-hint { font-size: .85rem; margin: .35rem 0 1rem; }
.inbox-thread {
    flex: 1; display: flex; flex-direction: column; background: #f8fafc;
    min-width: 0; min-height: 0; overflow: hidden;
}
.inbox-thread-head {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
    background: #fff; border-bottom: 1px solid var(--border);
}
.inbox-back-btn {
    display: none; border: none; background: #f1f5f9; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.inbox-thread-user { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.inbox-thread-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.inbox-thread-user h3 { font-size: 1rem; margin: 0 0 .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread-user p { margin: 0; font-size: .8rem; color: var(--muted); }
.inbox-thread-actions { display: flex; gap: .35rem; }
.inbox-action-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: #f1f5f9; text-decoration: none; color: inherit;
}
.inbox-thread-head,
.inbox-credits-bar { flex-shrink: 0; }
.inbox-credits-bar {
    padding: .55rem 1rem; font-size: .8rem; display: flex; justify-content: space-between;
    align-items: center; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--border);
    background: #fffbeb; color: #92400e;
}
.inbox-credits-bar a { color: var(--primary); font-weight: 600; }
.inbox-credits-ok { background: #dcfce7; color: #166534; }
.inbox-credits-warning { background: #fef2f2; color: #991b1b; }
.inbox-messages {
    flex: 1; min-height: 0; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: .65rem;
}
.inbox-date { text-align: center; margin: .35rem 0; }
.inbox-date span { background: #e2e8f0; color: var(--muted); font-size: .72rem; padding: .2rem .65rem; border-radius: 999px; }
.inbox-msg { max-width: 78%; display: flex; flex-direction: column; gap: .2rem; }
.inbox-msg.sent { align-self: flex-end; align-items: flex-end; }
.inbox-msg.received { align-self: flex-start; align-items: flex-start; }
.inbox-bubble {
    padding: .75rem 1rem; border-radius: 18px; font-size: .925rem; line-height: 1.5; word-wrap: break-word;
}
.inbox-msg.sent .inbox-bubble { background: linear-gradient(135deg, var(--primary), #be123c); color: #fff; border-bottom-right-radius: 4px; }
.inbox-msg.received .inbox-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.inbox-meta { font-size: .72rem; color: var(--muted); display: flex; gap: .35rem; }
.inbox-thread-empty, .inbox-placeholder {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--muted); padding: 2rem;
}
.inbox-placeholder-icon, .inbox-thread-empty-icon { font-size: 3.5rem; margin-bottom: .75rem; }
.inbox-placeholder h2 { color: var(--text); margin-bottom: .35rem; font-family: 'Playfair Display', serif; }
.inbox-compose {
    flex-shrink: 0;
    padding: .85rem 1rem calc(.85rem + var(--safe-bottom, 0px));
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, .06);
    position: relative; z-index: 2;
}
.inbox-compose-form { display: flex; gap: .65rem; align-items: flex-end; }
.inbox-compose-form textarea {
    flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: .7rem 1rem;
    border: 1px solid var(--border); border-radius: 999px; font: inherit; background: #f8fafc;
}
.inbox-compose-form textarea:focus { outline: none; border-color: var(--primary); }
.inbox-send-btn {
    width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--primary);
    color: #fff; font-size: 1.2rem; cursor: pointer; flex-shrink: 0;
}
.inbox-compose-locked { text-align: center; }
.inbox-alert { max-width: 1200px; margin: 0 auto .75rem; padding: .75rem 1rem; border-radius: 10px; font-size: .875rem; }
.inbox-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

@media (max-width: 768px) {
    .messages-inbox { height: calc(100dvh - 60px - var(--bottom-nav-h)); border-radius: 0; border-left: none; border-right: none; }
    .inbox-sidebar { width: 100%; border-right: none; }
    .messages-inbox.show-thread .inbox-sidebar { display: none; }
    .inbox-back-btn { display: flex; align-items: center; justify-content: center; }
    .inbox-thread { display: none; }
    .messages-inbox.show-thread .inbox-thread { display: flex; }
}

/* Chat page */
body.page-chat { background: transparent; }
body.page-chat .page-chat-wrap { max-width: 900px; margin: 0 auto; padding: 0 1rem 1rem; }
body.page-chat .chat-container {
    display: flex; flex-direction: column; height: calc(100dvh - 140px - var(--bottom-nav-h));
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
body.page-chat .chat-header {
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 1rem;
}
body.page-chat .back-btn { color: var(--muted); text-decoration: none; font-size: 1.25rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
body.page-chat .back-btn:hover { background: #f1f5f9; color: var(--primary); }
body.page-chat .recipient-info { display: flex; align-items: center; gap: .75rem; flex: 1; }
body.page-chat .recipient-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
body.page-chat .recipient-details h3 { font-size: 1.1rem; margin-bottom: .15rem; }
body.page-chat .recipient-details p { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
body.page-chat .online-indicator { width: 8px; height: 8px; background: #16a34a; border-radius: 50%; }
body.page-chat .header-actions { display: flex; gap: .5rem; }
body.page-chat .header-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; text-decoration: none; color: var(--text); }
body.page-chat .messages-area { flex: 1; overflow-y: auto; padding: 1rem; background: #f8fafc; }
body.page-chat .message { margin-bottom: .75rem; max-width: 80%; }
body.page-chat .message.sent { margin-left: auto; }
body.page-chat .message.received { margin-right: auto; }
body.page-chat .message-bubble { padding: .75rem 1rem; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
body.page-chat .message.sent .message-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
body.page-chat .message.received .message-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
body.page-chat .message-meta { font-size: .75rem; color: var(--muted); margin-top: .25rem; padding: 0 .25rem; }
body.page-chat .message.sent .message-meta { text-align: right; }
body.page-chat .date-divider { text-align: center; margin: 1rem 0; }
body.page-chat .date-divider span { background: #e2e8f0; color: var(--muted); padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; }
body.page-chat .welcome-message, body.page-chat .empty-chat { text-align: center; padding: 2rem 1rem; color: var(--muted); }
body.page-chat .welcome-message h4 { color: var(--text); margin-bottom: .5rem; }
body.page-chat .input-area { border-top: 1px solid var(--border); padding: 1rem; background: #fff; }
body.page-chat .input-row { display: flex; gap: .75rem; align-items: flex-end; }
body.page-chat .input-row textarea { flex: 1; min-height: 44px; max-height: 120px; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 10px; resize: none; font: inherit; }
body.page-chat .send-btn { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: .65rem 1.1rem; font-weight: 600; cursor: pointer; }
body.page-chat .credit-notice { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
body.page-chat .typing-indicator { display: none; font-size: .8rem; color: var(--muted); padding: .5rem 0; }
body.page-chat .typing-indicator.show { display: block; }
body.page-chat .login-prompt { padding: 1.5rem; text-align: center; background: #fff; border-top: 1px solid var(--border); }

.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; cursor: pointer; }
.service-tag input { width: auto; margin: 0; }
.negotiate-note { padding: 1rem 1.15rem; background: rgba(225, 29, 72, 0.06); border: 1px solid rgba(225, 29, 72, 0.18); border-radius: 12px; }
.negotiate-note-text { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .9rem; }
.listing-services { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.listing-service-tag { font-size: .7rem; background: #fef2f2; color: #be123c; padding: .2rem .55rem; border-radius: 999px; border: 1px solid #fecaca; }

/* ── Tablet & mobile ── */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
    .listing-photo { height: 200px; }
}

@media (max-width: 768px) {
    body { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .5rem); }
    .topbar { display: none; }
    .nav-desktop { display: none !important; }
    .menu-toggle { display: flex; }
    .bottom-nav { display: flex; }
    .hero { padding: 1.25rem 1rem; }
    .landing-bg-soft-image { filter: blur(10px); inset: -6px; }
    .landing-bg-soft-wash { background: rgba(248, 250, 252, 0.72); }
    .hero h1 { font-size: 1.35rem; }
    .hero p { font-size: .875rem; line-height: 1.55; }
    .container { padding: .75rem .85rem 1rem; }
    .filters-toggle { display: flex; }
    .filters-panel { display: none; }
    .filters-panel.open { display: block; }
    .filter-row { flex-direction: column; align-items: stretch; padding: .85rem 1rem 1rem; gap: .65rem; }
    .filter-row > div { flex: 1 1 auto; width: 100%; }
    .filter-checks { gap: .45rem; padding: .75rem 1rem 1rem; }
    .filter-row input, .filter-row select { font-size: 16px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .grid { grid-template-columns: 1fr; gap: .85rem; }
    .listing-card { border-radius: 18px; }
    .listing-photo { height: 240px; }
    .listing-body { padding: 1rem; }
    .listing-name { font-size: 1.1rem; }
    .listing-phone { font-size: 1.05rem; }
    .listing-actions { gap: .55rem; }
    .results-bar h2 { font-size: 1rem; }
    .auth-wrap { margin: 1rem auto; padding: 0 .25rem; }
    .auth-wrap .card { padding: 1.35rem; border-radius: 16px; }
    .wallet-card { padding: 1.5rem; border-radius: 18px; }
    .balance { font-size: 2.35rem; }
    .pkg-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .chat-plan-grid { grid-template-columns: 1fr; }
    .terms-content { padding: 1.25rem; }
    .page-content { padding-top: 1rem; padding-bottom: 1.25rem; }
    .card { padding: 1.15rem; border-radius: 14px; }
    .form-row { grid-template-columns: 1fr; gap: .75rem; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .profile-modal { max-height: 92dvh; border-radius: 18px 18px 0 0; }
    #profileModal .profile-modal { width: 100%; max-width: none; }
    .payment-modal { border-radius: 18px 18px 0 0; padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom)); max-width: none; }
    .credits-call-modal { border-radius: 18px 18px 0 0; max-width: none; padding-bottom: calc(1.25rem + var(--safe-bottom)); }
    .credits-call-stats { gap: .4rem; }
    .credits-stat-value { font-size: 1.15rem; }
    body.page-chat .page-chat-wrap { padding: 0 .75rem .75rem; }
    body.page-chat .chat-container { height: calc(100dvh - 120px - var(--bottom-nav-h)); border-radius: 14px; }
    body.page-chat .input-row textarea { font-size: 16px; }
    body.page-chat .send-btn { min-height: 44px; padding: .75rem 1rem; }
}

@media (max-width: 480px) {
    .logo-wordmark { padding: .42rem .7rem; border-radius: 8px; }
    .logo-wordmark .brand-nairobi,
    .logo-wordmark .brand-elite { font-size: 1rem; }
    .county-pill { font-size: .78rem; padding: .45rem .8rem; }
    .listing-photo { height: 220px; }
    .badge { font-size: .65rem; }
    .pagination a, .pagination span { padding: .55rem .75rem; font-size: .82rem; }
    .pkg-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none !important; }
    .filters-toggle { display: none !important; }
    .filters-panel { display: block !important; }
    .modal-overlay { align-items: center; padding: 1rem; }
    .profile-modal { border-radius: 16px; max-height: 90vh; }
    .payment-modal { border-radius: 16px; margin: 0; }
    .credits-call-modal { border-radius: 16px; margin: 0; padding-bottom: 1.5rem; }
    .modal-close { position: absolute; top: .75rem; right: .75rem; float: none; margin: 0; }

    /* Desktop: use full viewport width & height */
    html, body.site-shell { min-height: 100dvh; }

    .container,
    body.site-shell > .container,
    body.site-shell .page-content {
        max-width: none;
        width: 100%;
        padding-left: clamp(1rem, 2.5vw, 2.5rem);
        padding-right: clamp(1rem, 2.5vw, 2.5rem);
    }

    .header-inner,
    .hero-inner {
        max-width: none;
        width: 100%;
        padding-left: clamp(1rem, 2.5vw, 2.5rem);
        padding-right: clamp(1rem, 2.5vw, 2.5rem);
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.15rem;
    }

    /* Messages — full-height inbox */
    body.page-messages {
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    body.page-messages > header { flex-shrink: 0; }
    body.page-messages > footer { display: none; }
    body.page-messages .messages-inbox,
    body.page-messages .inbox-alert {
        max-width: none;
        width: 100%;
    }
    body.page-messages .inbox-alert { margin-inline: 0; border-radius: 0; }
    body.page-messages .messages-inbox {
        flex: 1;
        min-height: 0;
        height: auto;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
    body.page-messages .inbox-sidebar { width: min(380px, 30vw); }

    /* Chat — full-height thread */
    body.page-chat {
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    body.page-chat > footer { display: none; }
    body.page-chat .page-chat-wrap {
        max-width: none;
        width: 100%;
        flex: 1;
        min-height: 0;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    body.page-chat .chat-container {
        flex: 1;
        min-height: 0;
        height: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    /* Video call room */
    body.page-call-room {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    body.page-call-room > footer { display: none; }
    body.page-call-room .container.page-content {
        flex: 1;
        max-width: none;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    body.page-call-room .call-room {
        flex: 1;
        max-width: none;
        margin: 0;
        padding: clamp(1rem, 2vw, 2rem);
    }

    /* Account / profile page */
    body.page-account .container {
        max-width: none;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1400px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (min-width: 769px) and (hover: hover) {
    .listing-card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); }
}

/* Engagement: activity, categories, spotlights, favorites */
.dot-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,.25);
    animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
.activity-status {
    font-size: .78rem;
    font-weight: 600;
    margin-top: .15rem;
}
.activity-online { color: #16a34a; }
.activity-recent { color: #059669; }
.activity-today { color: #64748b; }
.activity-yesterday { color: #94a3b8; }
.activity-offline, .activity-old { color: #94a3b8; }

.home-categories {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .25rem 0 1rem;
    margin-bottom: .25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-categories::-webkit-scrollbar { display: none; }
.category-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.category-pill:hover { border-color: #fda4af; color: var(--primary); }
.category-pill.active {
    background: rgba(225,29,72,.08);
    border-color: rgba(225,29,72,.35);
    color: var(--primary);
}
.category-online.active .dot-online { box-shadow: 0 0 0 3px rgba(34,197,94,.35); }

.executive-concierge-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
    color: #f8fafc;
    border: 1px solid rgba(225, 29, 72, .25);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .18);
}
.executive-concierge-banner-guest { background: linear-gradient(135deg, #1e293b, #334155); }
.executive-concierge-copy h2 {
    margin: .35rem 0 .45rem;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-family: 'Playfair Display', serif;
}
.executive-concierge-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: .92rem;
    max-width: 42rem;
}
.executive-concierge-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(225, 29, 72, .18);
    color: #fecdd3;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.executive-concierge-btn { white-space: nowrap; }
.inbox-item-executive {
    background: linear-gradient(90deg, rgba(17,24,39,.04), rgba(225,29,72,.05));
    border: 1px solid rgba(225, 29, 72, .12);
    margin-bottom: .35rem;
}
.inbox-item-badge {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
    background: #fef2f2;
    padding: .12rem .45rem;
    border-radius: 999px;
}
.inbox-avatar-executive img { background: #111827; }
.inbox-credits-executive {
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #f8fafc;
    border-color: rgba(225, 29, 72, .25);
}
.inbox-credits-executive .inbox-credits-note {
    font-size: .78rem;
    color: #cbd5e1;
}
.inbox-credits-executive-low {
    border-color: rgba(225, 29, 72, .45);
    box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .15);
}
.inbox-msg.received .inbox-bubble.executive-bubble {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.spotlight-section { margin-bottom: 1.35rem; }
.spotlight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}
.spotlight-head h2 {
    font-size: 1.05rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.spotlight-head a {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.spotlight-rail {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.spotlight-rail .listing-card-compact {
    flex: 0 0 210px;
    scroll-snap-align: start;
}
.listing-card-compact .listing-photo { height: 170px; }
.listing-card-compact .listing-body { padding: .75rem .85rem .85rem; }
.listing-card-compact .listing-name { font-size: .95rem; }

.favorite-btn {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
    transition: transform .15s, color .15s, background .15s;
}
.favorite-btn:hover { transform: scale(1.06); color: var(--primary); }
.favorite-btn.active { color: var(--primary); background: #fff; }

.nearby-label {
    font-size: .76rem;
    font-weight: 600;
    color: #475569;
    margin-top: .1rem;
}
.nearby-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
}
.nearby-context-note { font-size: .82rem; color: #64748b; }
.nearby-context-link { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--primary); text-decoration: none; }

.page-visitors .visitor-summary { text-align: center; padding: 1.5rem; margin-bottom: 1rem; }
.visitor-count { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.visitor-upsell { padding: 1.25rem; margin-bottom: 1rem; }
.visitor-list { display: grid; gap: .75rem; }
.visitor-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.visitor-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.visitor-meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.visitor-area { font-size: .78rem; color: #64748b; }
.visitor-time { font-size: .75rem; color: #94a3b8; white-space: nowrap; }

.notifications-toolbar {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.notification-list { display: grid; gap: .65rem; margin-bottom: 1rem; }
.notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    padding: .9rem 1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
}
.notification-item.unread { border-color: rgba(225,29,72,.25); background: rgba(225,29,72,.04); }
.notification-item p { margin: .15rem 0; color: #64748b; font-size: .88rem; }
.notification-item time { font-size: .75rem; color: #94a3b8; }
.notification-icon { font-size: 1.35rem; line-height: 1; }
.notification-prefs-preview { padding: 1rem 1.15rem; }
.pref-list { margin: .5rem 0 0; padding-left: 0; list-style: none; color: #475569; font-size: .88rem; }
.pref-list li { padding: .2rem 0; }
.stat-link { color: inherit; text-decoration: none; display: block; }
.btn-sm { padding: .45rem .85rem; font-size: .82rem; }

.badge-diamond { background: linear-gradient(135deg, #1e1b4b, #6366f1); color: #fff; }

.stories-rail {
    display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .35rem;
}
.story-bubble {
    flex: 0 0 78px; text-align: center; text-decoration: none; color: inherit;
}
.story-ring {
    display: inline-flex; padding: 3px; border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #fb7185);
}
.story-ring img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.story-name { display: block; font-size: .72rem; margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.story-card { overflow: hidden; }
.story-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .65rem; flex-wrap: wrap; }
.story-media { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; background: #000; }
.story-caption { font-size: .88rem; color: #475569; margin: .65rem 0; }

/* Story upload */
.page-upload-story { padding-bottom: 2rem; }
.story-upload-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}
.story-upload-main { padding: 1.35rem; border-radius: 16px; }
.story-upload-alert {
    background: rgba(225,29,72,.08);
    border: 1px solid rgba(225,29,72,.25);
    color: #be123c;
    padding: .75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .88rem;
    font-weight: 500;
}
.story-upload-empty { text-align: center; padding: 2rem 1rem; }
.story-upload-empty h3 { margin-bottom: .5rem; }
.story-upload-empty p { color: var(--muted); margin-bottom: 1rem; }

.story-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s, box-shadow .2s;
    cursor: pointer;
    overflow: hidden;
}
.story-dropzone:hover,
.story-dropzone.is-dragover {
    border-color: var(--primary);
    background: rgba(225,29,72,.03);
    box-shadow: 0 0 0 4px rgba(225,29,72,.08);
}
.story-dropzone.has-file {
    border-style: solid;
    border-color: rgba(225,29,72,.35);
    min-height: 280px;
    cursor: default;
}
.story-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.story-dropzone.has-file .story-file-input { pointer-events: none; }

.story-dropzone-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    pointer-events: none;
}
.story-dropzone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: rgba(225,29,72,.1);
    font-size: 1.65rem;
}
.story-dropzone-empty strong { display: block; font-size: 1.05rem; color: var(--text); margin-bottom: .35rem; }
.story-dropzone-hint { display: block; color: var(--muted); font-size: .88rem; }
.story-dropzone-meta { display: block; margin-top: .65rem; font-size: .78rem; color: #94a3b8; }

.story-dropzone-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #0f172a;
}
.story-dropzone-preview img,
.story-dropzone-preview video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    display: block;
}
.story-preview-clear {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.story-preview-type {
    position: absolute;
    bottom: .65rem;
    left: .65rem;
    z-index: 4;
    background: rgba(15,23,42,.75);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .65rem;
    border-radius: 999px;
}

.story-field { margin-top: 1.15rem; }
.story-field label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .45rem;
    color: var(--text);
}
.story-optional { font-weight: 400; color: var(--muted); }
.story-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .75rem .9rem;
    font-family: inherit;
    font-size: .95rem;
    resize: vertical;
    min-height: 72px;
    transition: border-color .15s, box-shadow .15s;
}
.story-field textarea:focus {
    outline: none;
    border-color: rgba(225,29,72,.45);
    box-shadow: 0 0 0 3px rgba(225,29,72,.1);
}
.story-caption-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
    font-size: .78rem;
    color: #94a3b8;
}
.story-submit-btn {
    margin-top: 1.15rem;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}
.story-submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.story-upload-aside { display: flex; flex-direction: column; gap: 1rem; }
.story-upload-tips { padding: 1.15rem; }
.story-upload-tips h3 { font-size: 1rem; margin-bottom: .75rem; }
.story-upload-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}
.story-upload-tips li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .86rem;
    color: #475569;
    line-height: 1.45;
}
.story-upload-tips li span:first-child { flex-shrink: 0; }

.story-upload-preview-phone { padding: 1rem; text-align: center; }
.story-phone-frame {
    width: 160px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 8px;
    background: #111;
    box-shadow: 0 12px 32px rgba(15,23,42,.18);
}
.story-phone-notch {
    width: 52px;
    height: 5px;
    background: #333;
    border-radius: 999px;
    margin: 0 auto 6px;
}
.story-phone-screen {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #1e293b, #0f172a);
}
.story-phone-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.story-phone-screen img,
.story-phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-phone-caption {
    margin: .75rem 0 0;
    font-size: .78rem;
    color: var(--muted);
}

.story-upload-success {
    max-width: 440px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 18px;
}
.story-upload-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(34,197,94,.35);
}
.story-upload-success h2 { margin-bottom: .5rem; }
.story-upload-success p { color: var(--muted); margin-bottom: 1.25rem; }
.story-upload-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .story-upload-layout { grid-template-columns: 1fr; }
    .story-upload-preview-phone { display: none; }
    .story-dropzone { min-height: 200px; }
    .story-dropzone.has-file,
    .story-dropzone-preview,
    .story-dropzone-preview img,
    .story-dropzone-preview video { min-height: 240px; }
}

.leaderboard-rank-wrap { position: relative; }
.leaderboard-rank {
    position: absolute; top: .55rem; left: .55rem; z-index: 2;
    background: rgba(15,23,42,.82); color: #fff; font-size: .75rem; font-weight: 700;
    padding: .2rem .45rem; border-radius: 6px;
}

.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.bar-fill { width: 100%; background: linear-gradient(to top, #e11d48, #fda4af); border-radius: 4px 4px 0 0; min-height: 4px; }
.analytics-boost-upsell { margin-top: 1rem; }

.voice-btn.recording { background: #e11d48; color: #fff; animation: pulse-online 1s infinite; }

.elite-score-pill {
    font-size: .72rem; font-weight: 700; color: #6366f1;
    background: rgba(99,102,241,.1); padding: .15rem .45rem; border-radius: 999px;
}

/* Live & calls */
.dot-live {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6);
    animation: pulse-live 1.5s infinite; vertical-align: middle; margin-right: .25rem;
}
@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
    70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.badge-live { background: rgba(239,68,68,.12); color: #dc2626; border: 1px solid rgba(239,68,68,.25); }
.category-pill.category-live.active { border-color: #ef4444; color: #dc2626; }
.live-preview-wrap {
    aspect-ratio: 16/9; background: #0f172a; border-radius: 12px; overflow: hidden; margin: 1rem 0;
}
.live-preview-wrap video { width: 100%; height: 100%; object-fit: cover; }
.live-studio-actions, .live-owner-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.live-setting-toggle { font-size: .9rem; color: var(--muted); cursor: pointer; }
.live-setting-toggle input { margin-right: .5rem; }
body.page-call-room .call-room { max-width: 960px; margin: 0 auto; padding: 1rem; }
.call-room-header { text-align: center; margin-bottom: 1.5rem; }
.call-status { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.call-billing { color: var(--primary); font-size: .875rem; font-weight: 600; margin-top: .35rem; }
.demo-call-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 220px; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(225,29,72,.12));
    border-radius: 16px; padding: 2rem; text-align: center;
}
.demo-call-avatar { font-size: 3rem; margin-bottom: .75rem; }
.demo-call-placeholder p { margin: 0; font-weight: 600; color: var(--text); }
.demo-call-placeholder small { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.call-video-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .call-video-grid { grid-template-columns: 2fr 1fr; }
}
.call-video-wrap {
    position: relative; aspect-ratio: 16/9; background: #0f172a; border-radius: 16px; overflow: hidden;
}
.call-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.call-video-label {
    position: absolute; bottom: .75rem; left: .75rem; background: rgba(0,0,0,.55);
    color: #fff; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem;
}
.call-room-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-danger, .call-hangup { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover, .call-hangup:hover { background: #dc2626; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }

/* ── Privacy shield (anti-capture deterrents) ── */
body.privacy-strict {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
body.privacy-strict input,
body.privacy-strict textarea,
body.privacy-strict select,
body.privacy-strict [contenteditable="true"],
body.privacy-strict [data-privacy-allow-copy],
body.privacy-strict .privacy-allow-copy {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}
img, video, picture, canvas, .privacy-protected {
    -webkit-user-drag: none;
    user-drag: none;
}
.privacy-watermark-layer {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2.5rem 3rem;
    padding: 2rem;
    transform: rotate(-22deg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}
body.privacy-watermark-on .privacy-watermark-layer {
    opacity: 0.16;
    visibility: visible;
}
body.privacy-capture-block .privacy-watermark-layer {
    opacity: 0.24;
    visibility: visible;
    z-index: 99998;
}
.privacy-watermark-tile {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #64748b;
    white-space: nowrap;
    text-transform: uppercase;
}
.privacy-shield {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    background: #0f172a;
    transition: opacity .12s ease;
}
body.privacy-capture-block .privacy-shield {
    opacity: 1;
    pointer-events: all;
}
body.privacy-capture-block .privacy-shield::after {
    content: 'Screenshots and screen recording are not permitted on Nairobi Elite.';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
    max-width: 22rem;
    margin: auto;
    line-height: 1.5;
}
body.privacy-hidden img,
body.privacy-hidden video,
body.privacy-hidden .privacy-sensitive,
body.privacy-hidden .privacy-protected,
body.privacy-hidden .profile-modal,
body.privacy-hidden .messages-inbox,
body.privacy-hidden .listing-photo,
body.privacy-hidden .call-video-wrap,
body.privacy-hidden .live-preview-wrap,
body.privacy-hidden .inbox-messages,
body.privacy-hidden .modal-overlay.active > * {
    filter: blur(26px) brightness(0.2) !important;
    transition: filter .15s ease;
}
body.privacy-hidden .privacy-watermark-layer,
body.privacy-hidden .privacy-shield {
    filter: none !important;
}

@media print {
    body.privacy-strict * {
        visibility: hidden !important;
    }
    body.privacy-strict::after {
        content: 'Printing is disabled for privacy.';
        visibility: visible;
        display: block;
        position: fixed;
        inset: 0;
        padding: 2rem;
        font-size: 1.25rem;
    }
}
