:root {
    --brand: #4A7C9D;
    --brand-dark: #3d6a86;
    --brand-soft: #e8f0f5;
    --gold: #c4a052;
    --type-people: #4A7C9D;
    --type-business: #2a9d8f;
    --type-job: #c4a052;
    --type-group: #6b5b95;
    --type-post: #4A7C9D;
    --type-market: #c45c26;
    --ink: #333;
    --muted: #6b7280;
    --line: #e4e4e4;
    --card: #ececec;
    --bg: #fff;
    --header: #4A7C9D;
    --footer: #3a3a3a;
    --radius: 12px;
    --radius-lg: 16px;
    --surface: #f4f7f9;
    --surface-elevated: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body.page-home,
body.page-discover {
    background: var(--surface);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header);
}
.app-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.4rem 1.15rem;
    gap: 1rem;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
}
.header-nav-link {
    color: rgba(255,255,255,0.82);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
}
.header-nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.header-nav-link.active { color: #fff; background: rgba(255,255,255,0.18); }
.header-nav-link { position: relative; }
.nav-count {
    display: inline-flex;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 0.25rem;
    border-radius: 99px;
    background: #e55353;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    justify-content: center;
    vertical-align: middle;
}

.privacy-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.privacy-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.privacy-option input { margin-top: 0.2rem; }
.add-to-group { text-align: left; }
.logo-mark {
    display: flex;
    align-items: center;
    line-height: 0;
}
.logo-mark img.header-favicon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.95);
    background: var(--brand-dark);
}
.header-actions { display: flex; align-items: center; gap: 0.55rem; }

/* Bell notification icon in header */
.header-bell {
    position: relative;
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: background 0.15s;
}
.header-bell:hover,
.header-bell-active { color: #fff; background: rgba(255,255,255,0.18); }
.header-bell-badge {
    position: absolute;
    top: -1px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #e55353;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

/* Round icon button (+ in groups, compose in chat, etc.) */
.btn-icon-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.btn-icon-round:hover { background: var(--brand-dark); color: #fff; }
/* no override — btn-icon-round always uses brand colour */

/* Admin layout: sidebar + content */
.admin-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.admin-sidenav {
    background: var(--surface-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 5rem;
}
.admin-sidenav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    position: relative;
    min-height: 44px;
    line-height: 1.2;
}
.admin-sidenav-link:last-child { border-bottom: 0; }
.admin-sidenav-link:hover { background: var(--surface); color: var(--brand); }
.admin-sidenav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.admin-sidenav-link i { width: 16px; text-align: center; opacity: 0.7; }
.admin-sidenav-link.active i { opacity: 1; }
.admin-nav-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #e55353;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 99px;
    padding: 1px 6px;
    line-height: 1.35;
}
.admin-content { min-width: 0; }
.admin-action-row .btn {
    min-height: 38px;
    min-width: 112px;
}
.admin-reject-form {
    min-width: 240px;
}
.icon-btn {
    width: auto;
    height: auto;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
}
.icon-btn:hover { color: #fff; opacity: 0.85; }
.icon-btn i { font-size: 1.15rem; }
.header-avatar-btn { gap: 0.2rem; }
.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    display: block;
}
.header-caret {
    font-size: 0.65rem;
    color: #fff;
    line-height: 1;
}
.badge-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #e55353;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
    flex: 1;
}
body.page-search .page,
body.page-discover .page {
    max-width: 720px;
}
body.page-profile .page { max-width: 980px; }
body.page-legal .page { max-width: 820px; }

.app-footer {
    background: var(--footer);
    color: #ddd;
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 1.1rem;
}
.footer-links a {
    color: #eee;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.footer-links a:hover { color: #fff; }
.footer-links i { width: auto; font-size: 0.85rem; }
.app-footer .copy { opacity: 0.75; font-size: 0.75rem; }

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.card-soft {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* ——— Page hero ——— */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.page-hero > div { flex: 1; min-width: 0; }
.page-hero-compact { margin-bottom: 1rem; }
.page-hero-logo {
    height: 44px;
    width: auto;
    display: none;
}
.page-hero-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    letter-spacing: -0.02em;
}
.page-hero-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ——— Home feed ——— */
.feed-page { padding-bottom: 0.5rem; }
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.35rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quick-action:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.quick-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.85rem;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
}
.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}
.sort-select {
    width: auto;
    min-width: 9.5rem;
    font-size: 0.82rem;
    border-radius: 999px;
    padding: 0.2rem 1.8rem 0.2rem 0.7rem;
}
.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-height: 1.6rem;
    margin: 0.15rem 0 0.85rem;
}
.search-toolbar #searchMeta {
    margin-right: auto;
}
.feed-stream { display: flex; flex-direction: column; gap: 0.85rem; }
.feed-card {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--brand);
}
.feed-card.type-people { border-left-color: var(--type-people); }
.feed-card.type-businesses { border-left-color: var(--type-business); }
.feed-card.type-jobs { border-left-color: var(--type-job); }
.feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem 0;
    font-size: 0.75rem;
}
.feed-kind {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feed-card.type-people .feed-kind { color: var(--type-people); }
.feed-card.type-businesses .feed-kind { color: var(--type-business); }
.feed-card.type-jobs .feed-kind { color: var(--type-job); }
.feed-time { font-size: 0.75rem; }
.feed-card-body {
    display: flex;
    gap: 0.85rem;
    padding: 0.65rem 1rem 0.85rem;
    color: inherit;
    text-decoration: none;
}
.feed-card-body:hover { color: inherit; }
.feed-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    flex-shrink: 0;
}
.feed-card.type-people .feed-avatar { border-radius: 50%; }
.feed-copy { min-width: 0; flex: 1; }
.feed-headline {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.35;
    color: var(--brand);
}
.feed-headline a { color: var(--brand); }
.feed-headline a:hover { color: var(--brand-dark); }
.feed-body {
    margin: 0 0 0.35rem;
    color: #555;
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-loc {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.feed-loc i { margin-right: 0.2rem; }
.feed-card-footer {
    padding: 0 1rem 0.85rem;
}
.feed-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}
.feed-cta i { font-size: 0.72rem; margin-left: 0.15rem; }
.feed-cta:hover { color: var(--brand-dark); }
.feed-pagination { margin-top: 1.25rem; }
.feed-card.type-post { border-left-color: var(--type-post); }
.feed-card.type-groups { border-left-color: var(--type-group); }
.feed-card.type-market { border-left-color: var(--type-market); }
.feed-card.type-post .feed-kind { color: var(--type-post); }
.feed-card.type-groups .feed-kind { color: var(--type-group); }
.feed-card.type-market .feed-kind { color: var(--type-market); }
.feed-copy-link { color: inherit; text-decoration: none; display: block; }
.feed-copy-link:hover { color: inherit; }
.feed-copy-link .feed-headline { color: var(--brand); }
.feed-body-post {
    display: block;
    -webkit-line-clamp: unset;
    white-space: pre-wrap;
    overflow: visible;
}
.feed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.feed-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.feed-more-wrap { flex-shrink: 0; }
.feed-more {
    width: 28px;
    height: 28px;
    border: 0;
    background: none;
    color: var(--muted);
    opacity: 0.45;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
}
.feed-more:hover,
.feed-more[aria-expanded="true"] {
    opacity: 1;
    color: var(--text, #0f172a);
    background: rgba(15, 23, 42, 0.06);
}
.feed-more i { font-size: 0.95rem; }
.dropdown-menu .feed-delete,
.dropdown-menu .moderate-form {
    margin: 0;
    display: block;
}
.dropdown-menu .dropdown-item {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    padding: 0.48rem 0.85rem;
}
.dropdown-menu .feed-delete button,
.dropdown-menu .moderate-form button {
    border: 0;
    background: transparent;
    width: 100%;
}
.feed-delete button:hover { color: #c0392b; }

.comment-block {
    padding: 0 1rem 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 0.15rem;
}
.comment-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.55rem 0 0.15rem;
}
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    flex-shrink: 0;
}
.comment-copy { min-width: 0; flex: 1; }
.comment-meta {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
}
.comment-meta a { color: var(--brand); }
.comment-text {
    margin: 0.1rem 0 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.4;
}
.comment-delete button {
    border: 0;
    background: none;
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
}
.comment-delete button:hover { color: #c0392b; }
.comment-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.55rem;
    align-items: center;
}
.comment-form .form-control { flex: 1; }
.comment-compose { margin-top: 0.35rem; }

.composer-card {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 1.35rem;
}
.composer-modes {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.composer-mode {
    margin: 0;
    cursor: pointer;
}
.composer-mode input { position: absolute; opacity: 0; pointer-events: none; }
.composer-mode span {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface);
}
.composer-mode input:checked + span {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
/* Quick links inside composer (Add business / Post a job) */
.composer-quick-links {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.composer-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.composer-quick-link:hover {
    border-color: var(--line);
    color: var(--brand);
    background: rgba(74, 124, 157, 0.08);
}
.composer-quick-link i { font-size: 0.74rem; color: currentColor; }

.composer-links-card {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    padding: 0.55rem 0.65rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Listing action buttons on My Listings page */
.listing-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.listing-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-elevated);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.listing-action-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.listing-action-btn i { font-size: 1.1rem; color: var(--brand); }
.result-item-sold { opacity: 0.65; }

.composer-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
}
.composer-listing {
    margin: 0.75rem 0 0;
    padding-left: 3.1rem;
}
.composer-card-collapsible .composer-input-collapsed {
    min-height: 44px;
    height: 44px;
    overflow: hidden;
    resize: none;
    transition: height 0.2s ease, min-height 0.2s ease;
}
.composer-card-collapsible.composer-expanded .composer-input-collapsed,
.composer-card-collapsible .composer-input-collapsed:focus {
    min-height: 122px;
    height: 122px;
}
.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-left: 3.1rem;
    flex-wrap: wrap;
}
.composer-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.photo-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.photo-add-btn:hover { color: var(--brand-dark); }
.photo-add-btn-icon {
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand-soft);
    flex-shrink: 0;
}
.comment-form .photo-add-btn-icon { width: 32px; height: 32px; }
.photo-preview {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.45rem;
    margin-top: 0.7rem;
    padding-left: 3.1rem;
}
.comment-compose .photo-preview { padding-left: 0; }
.photo-picker.has-photos .photo-preview { display: grid; }
.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f5;
}
.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-preview-item button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    line-height: 1;
    font-size: 0.85rem;
    padding: 0;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0 1rem 0.85rem;
}
.photo-grid-one { grid-template-columns: 1fr; }
.photo-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    padding: 0.4rem 0 0;
    max-width: 280px;
}
.photo-grid-item {
    border: 0;
    padding: 0;
    background: #eef2f5;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: zoom-in;
}
.photo-grid-one .photo-grid-item { aspect-ratio: 4 / 3; max-height: 420px; }
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-carousel {
    position: relative;
    margin: 0 0 0.85rem;
}
.photo-carousel-viewport {
    overflow: hidden;
    background: #eef2f5;
}
.photo-carousel-track {
    display: flex;
    transition: transform 0.28s ease;
    will-change: transform;
}
.photo-carousel-slide {
    flex: 0 0 100%;
    border: 0;
    padding: 0;
    background: #eef2f5;
    cursor: zoom-in;
    max-height: 420px;
}
.photo-carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.photo-carousel.is-single .photo-carousel-slide img { height: 320px; }
.photo-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-carousel-nav.prev { left: 0.65rem; }
.photo-carousel-nav.next { right: 0.65rem; }
.photo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0 0;
}
.photo-carousel-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5ced6;
}
.photo-carousel-dots span.active { background: var(--brand); }
.moderate-form { display: inline; margin: 0; }
.suspended-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem;
    margin: 0 0 0.35rem;
}
.listing-price {
    font-weight: 800;
    color: var(--type-market);
    font-size: 1.05rem;
}
.listing-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.55rem 0 0;
}
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}
.photo-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
}
.photo-lightbox-nav.prev { left: 1rem; }
.photo-lightbox-nav.next { right: 1rem; }

/* .mobile-bell removed — replaced by mobile-topbar-bell */

.min-w-0 { min-width: 0; }
.notice-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.notice-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notice-row-approval { color: inherit; }
.notice-row-approval:hover { color: inherit; }
.notice-arrow { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }
.notice-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.75rem 0.85rem;
    color: inherit;
}
.notice-row.unread { background: var(--brand-soft); }
.notice-row-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.notice-row-inner:hover { color: inherit; }
.notice-row:hover { box-shadow: var(--shadow-sm); }
.notice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.notice-title { margin: 0; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.notice-read-form { flex-shrink: 0; }
.notice-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.15s, color 0.15s;
}
.notice-read-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* New message picker overflow fixes */
.message-picker-results .result-item h3,
.message-picker-results .result-item p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.network-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 0.55rem;
}
.network-person {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    min-width: 0;
}
.network-person:hover { color: inherit; }
.network-person img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.network-person-block {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.7rem 1rem;
    margin-bottom: 0.45rem;
}
.network-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.group-hero {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}
.group-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.group-mark.lg { width: 64px; height: 64px; font-size: 1.35rem; }
.group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.group-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    color: inherit;
}
.group-tile:hover { color: inherit; box-shadow: var(--shadow-sm); }

.empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(74, 124, 157, 0.25);
}
.empty-state i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 0.75rem;
}
.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}
.empty-inline { padding: 2rem 0; }

/* ——— Discover ——— */
.discover-page { padding-bottom: 0.5rem; }
.discover-page .search-wrap { width: 100%; margin: 0 0 0.75rem; }
.discover-page .search-tabs { width: 100%; max-width: 100%; margin: 0 0 1rem; overflow: hidden; }
.discover-page .search-results { width: 100%; }
body.page-discover .alert,
body.page-discover #searchMeta,
body.page-discover .pagination { width: 100%; }

.home-logo-wrap { display: none; }

.auth-wrap { max-width: 440px; margin: 1.5rem auto; }
.auth-wrap.profile-editor { max-width: 560px; }
.avatar-preview {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    display: inline-block;
}
.crop-wrap {
    max-height: 360px;
    overflow: hidden;
}
.crop-wrap img { max-width: 100%; display: block; }
.tag-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    min-height: 42px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 99px;
    padding: 0.15rem 0.55rem;
    font-size: 0.82rem;
}
.tag-chip button {
    border: 0;
    background: none;
    color: inherit;
    line-height: 1;
    padding: 0;
}
.tag-input {
    border: 0;
    outline: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}
.auth-hero { text-align: center; margin-bottom: 1.25rem; }
.auth-hero p { color: var(--muted); margin: 0.35rem 0 0; }
.auth-hero .logo-lg { height: 56px; width: auto; }

.steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}
.step {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.step .num {
    width: 28px;
    height: 28px;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
}
.step.active { color: var(--brand-dark); font-weight: 600; }
.step.active .num { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.done .num { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.home-logo-wrap { display: none; }

.search-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.search-wrap input {
    padding: 0.7rem 2.8rem 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    box-shadow: none;
    background: #fff;
}
.search-wrap input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(74, 124, 157, 0.15);
}
.search-wrap .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4ab;
    pointer-events: none;
}

.search-tabs {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    margin: 0 0 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.search-tabs a, .search-tabs button {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0.7rem 0.15rem;
    font-size: clamp(0.68rem, 2.4vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0;
    color: #8a9399;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}
.search-tabs .active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}
.tab-label-short { display: none; }
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15em;
    height: 1.15em;
    padding: 0 0.38em;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.tab-count-n {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}
.search-tabs .active .tab-count {
    background: var(--brand-soft);
    color: var(--brand);
}
@media (max-width: 560px) {
    .tab-label-full { display: none; }
    .tab-label-short { display: inline; }
    .search-tabs a, .search-tabs button {
        gap: 0.22rem;
        padding: 0.6rem 0.08rem;
    }
}

.search-results { width: 100%; margin: 0 auto; }
body.page-search .alert,
body.page-search #searchMeta,
body.page-search .pagination {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.95rem 1.1rem;
    margin-bottom: 0.75rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    border-left: 4px solid transparent;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s;
}
.result-item.type-people { border-left: 4px solid var(--type-people); }
.result-item.type-businesses { border-left: 4px solid var(--type-business); }
.result-item.type-jobs { border-left: 4px solid var(--type-job); }
.result-item.type-groups { border-left: 4px solid var(--type-group); }
.result-item.type-market { border-left: 4px solid var(--type-market); }
.result-item:hover {
    color: inherit;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.result-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    flex-shrink: 0;
}
.result-item.type-market .result-avatar {
    border-radius: 50%;
}
.result-body { min-width: 0; flex: 1; }
.result-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}
.result-item.type-people .result-type { color: var(--type-people); }
.result-item.type-businesses .result-type { color: var(--type-business); }
.result-item.type-jobs .result-type { color: var(--type-job); }
.result-item.type-groups .result-type { color: var(--type-group); }
.result-item.type-market .result-type { color: var(--type-market); }
.search-results .result-item h3,
.result-item .result-name {
    font-size: 1.05rem;
    margin: 0 0 0.15rem;
    color: var(--brand);
    font-weight: 700;
}
.result-item h3,
.result-item h3 a,
.result-name a {
    color: var(--brand);
}
.result-item h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.result-item p { margin: 0; color: #555; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-loc {
    margin-left: auto;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
    padding-left: 0.75rem;
    font-size: 0.92rem;
}

.result-item.featured {
    background: var(--surface-elevated);
    border: 1px solid rgba(74, 124, 157, 0.15);
}
.featured-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    margin-bottom: 0.35rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.chat-thread { display: flex; flex-direction: column; gap: 0.45rem; padding-bottom: 5rem; }
.chat-day {
    display: flex;
    justify-content: center;
    margin: 0.65rem 0 0.35rem;
}
.chat-day span {
    background: #ececec;
    color: #666;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 99px;
}
.bubble {
    max-width: 80%;
    padding: 0.7rem 0.9rem 0.45rem;
    border-radius: 16px;
    line-height: 1.4;
}
.bubble.mine { margin-left: auto; background: var(--brand); color: #fff; }
.bubble.theirs { margin-right: auto; background: #f4f4f4; border: 1px solid var(--line); }
.bubble-time {
    font-size: 0.68rem;
    opacity: 0.75;
    margin-top: 0.3rem;
}
.bubble.mine .bubble-time { text-align: right; }
.chat-composer {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 0.75rem 0;
    display: flex;
    gap: 0.5rem;
}
.chat-composer input { flex: 1; }
.send-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.profile-card, .profile-details {
    background: var(--surface-elevated);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem 1.2rem;
}
.profile-card { text-align: center; position: relative; }
.profile-card .feed-more-wrap {
    position: absolute;
    top: 0.65rem;
    right: 0.55rem;
}
.profile-card img.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    margin: 0 auto 0.85rem;
    display: block;
}
.profile-card h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--brand);
}
.profile-card .result-type {
    justify-content: center;
    color: var(--muted);
    width: 100%;
    margin-bottom: 0.35rem;
}
.profile-card .profile-loc { color: var(--muted); margin-bottom: 0.9rem; }
.profile-card .btn-message {
    background: var(--brand);
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1.5rem;
    display: inline-block;
    font-weight: 600;
}
.profile-card .btn-message:hover { background: var(--brand-dark); color: #fff; }
.profile-card .btn-message-secondary {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.profile-card .btn-message-secondary:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.back-link:hover { color: var(--brand-dark); }

.entity-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.entity-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.entity-action:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}
.entity-action-danger:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdf0ee;
}
.entity-action i { font-size: 0.85rem; }

.detail-page { max-width: 720px; margin: 0 auto; }
.detail-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.detail-hero .feed-more-wrap {
    margin-left: auto;
    align-self: flex-start;
}
.group-hero .feed-more-wrap {
    margin-left: 0;
}
.detail-hero img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
}
.detail-hero img.detail-hero-icon {
    border-radius: 50%;
    padding: 0.75rem;
    object-fit: contain;
}
.detail-hero h1 { color: var(--brand); }
.group-hero .page-hero-title { color: var(--brand); }
.share-copy-field {
    font-size: 0.9rem;
    resize: none;
}

.detail-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid #e6e6e6;
    font-size: 0.95rem;
}
.detail-row:last-child { border-bottom: 0; }
.detail-label { font-weight: 700; color: #333; }
.detail-value { color: #444; }
.detail-value a { text-decoration: underline; }

.profile-hero { text-align: center; }
.profile-hero img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
}
.muted { color: var(--muted); }
.webpage-link { word-break: break-all; }
.help-text { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }

.legal-doc h1 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.legal-doc h2 { font-size: 1.05rem; margin-top: 1.4rem; margin-bottom: 0.5rem; color: var(--brand-dark); }
.legal-doc p, .legal-doc li { color: #444; line-height: 1.55; }
.legal-doc .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.legal-doc ul { padding-left: 1.2rem; }

.dropdown-menu { border-radius: 12px; }
.alert { border-radius: 10px; }

.wizard-pane { display: none; }
.wizard-pane.active { display: block; }

.settings-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { color: var(--ink); background: #f7f7f7; }
.settings-row.is-disabled { color: var(--muted); cursor: default; }
.settings-row.is-disabled:hover { background: #fff; }
.settings-chevron { color: #bbb; font-size: 0.75rem; }
.settings-logout {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: #c0392b;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 600;
}

/* Mobile top bar (logo + bell) — hidden on desktop */
.mobile-topbar { display: none; }

.tabbar { display: none; }

@media (max-width: 767px) {
    .header-nav { display: none; }
    .page-hero-logo { display: block; height: 36px; }
    /* .mobile-bell no longer used */
    .listing-actions { grid-template-columns: repeat(2, 1fr); }
    .composer-links-card { padding: 0.5rem; }
    .page-hero-title { font-size: 1.25rem; }
    .profile-layout { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; gap: 0.2rem; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
    .result-loc { display: none; }
    .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .quick-action { font-size: 0.68rem; padding: 0.7rem 0.2rem; }
    .header-actions { display: none; }
    body.has-tabbar .app-header { display: none; }
    body.has-tabbar .app-footer { display: none; }
    body.has-tabbar .page {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
        padding-top: 3rem; /* room for mobile-topbar */
    }

    /* Mobile top bar */
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 45;
        height: 2.8rem;
        background: var(--header);
        padding: 0 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .mobile-topbar-logo img {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        display: block;
    }
    .mobile-topbar-bell {
        position: relative;
        color: rgba(255,255,255,0.82);
        font-size: 1.15rem;
        padding: 0.25rem 0.4rem;
        border-radius: 8px;
        line-height: 1;
        text-decoration: none;
        transition: background 0.15s;
    }
    .mobile-topbar-bell:hover,
    .mobile-topbar-bell.active { color: #fff; background: rgba(255,255,255,0.18); }
    .mobile-topbar-badge {
        position: absolute;
        top: -3px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: #e55353;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        pointer-events: none;
    }
    /* Admin layout stacks on mobile */
    .admin-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .admin-sidenav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        border-radius: var(--radius);
        position: static;
    }
    .admin-sidenav-link {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.55rem 0.75rem;
        border-bottom: 0;
        border-right: 1px solid var(--line);
        font-size: 0.72rem;
        white-space: nowrap;
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .admin-sidenav-link:last-child { border-right: 0; }
    .admin-sidenav-link i { width: auto; }
    .tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: var(--header);
        border-top: 0;
        padding: 0.35rem 0.15rem calc(0.35rem + env(safe-area-inset-bottom));
        justify-content: space-around;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    }
    .tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        color: rgba(255,255,255,0.7);
        font-size: 0.62rem;
        font-weight: 600;
        position: relative;
        padding: 0.15rem 0;
    }
    .tabbar a:hover { color: #fff; }
    .tabbar a.active { color: #fff; }
    .tabbar i { font-size: 1.05rem; }
    .tabbar-badge {
        position: absolute;
        top: 0;
        right: calc(50% - 18px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: #e55353;
        color: #fff;
        font-size: 10px;
        line-height: 16px;
        text-align: center;
    }
    .chat-composer {
        bottom: calc(3.6rem + env(safe-area-inset-bottom));
        padding-bottom: 0.75rem;
    }
    .composer-listing,
    .composer-actions,
    .photo-preview {
        padding-left: 0;
    }
}
