/* ========================================================================
   MY BLACK DOLLAR MATTERS — APP STYLES
   ======================================================================== */

/* ===== Layout shell ===== */
.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    min-height: 100vh;
    background: var(--bg);
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border);
    background: var(--bg-2);
    overflow-y: auto;
    padding: 1.2rem 0.8rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 0.8rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.15;
}
.sidebar-brand .brand-text { font-size: 0.92rem; }

/* Sidebar Donate CTA — prominent gold gradient button */
.sidebar-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 1.6rem);
    margin: 0.8rem 0.8rem 0.6rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #ffd166 0%, #ffb703 50%, #d62828 100%);
    color: #1a0f00;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 6px 18px rgba(255, 183, 3, 0.3);
    font-family: inherit;
}
.sidebar-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 183, 3, 0.45);
    filter: brightness(1.05);
}
.sidebar-donate-btn:active { transform: translateY(0); }
.sidebar-donate-btn .donate-icon {
    font-size: 1.15rem;
    line-height: 1;
}
@media (max-width: 1100px) {
    .sidebar-donate-btn { font-size: 0.85rem; padding: 0.7rem 0.8rem; }
    .sidebar-donate-btn .donate-icon { font-size: 1rem; }
    .sidebar-donate-btn span:not(.donate-icon) { display: none; }
}

.nav-section {
    margin-bottom: 1.2rem;
}
.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 0 0.8rem;
    margin-bottom: 0.4rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    width: 100%;
    text-align: left;
    position: relative;
}
.nav-item:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(255,183,3,0.18), transparent);
    color: var(--gold);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.nav-icon {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.sidebar-user {
    margin-top: auto;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sidebar-user .avatar { width: 36px; height: 36px; font-size: 0.8rem; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-weight: 700; font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-handle { font-size: 0.75rem; color: var(--text-3); }
.sidebar-user { cursor: pointer; transition: background 0.15s; border-radius: 10px; }
.sidebar-user:hover { background: var(--surface-2); }

/* Sidebar Profile link (signed-in only) */
.sidebar-profile-link {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

/* Sidebar Sign-In CTA (signed-out) */
.sidebar-signin-cta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin-top: auto;
    padding: 0.9rem;
    background: var(--surface-2);
    border: 1px dashed var(--border-2);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.sidebar-signin-cta:hover {
    background: rgba(245, 166, 35, 0.08);
    border-color: var(--gold);
}
.sidebar-signin-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.sidebar-signin-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sidebar-signin-text strong {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 700;
}
.sidebar-signin-text small {
    font-size: 0.72rem;
    color: var(--text-3);
    line-height: 1.3;
}

/* Profile view sign-in CTA */
.profile-signin-cta {
    max-width: 540px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 18px;
}
.profile-signin-emoji { font-size: 3rem; line-height: 1; margin-bottom: 1rem; }
.profile-signin-cta h2 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--text); }
.profile-signin-cta p { color: var(--text-3); margin-bottom: 1.5rem; line-height: 1.5; }
.profile-signin-foot { font-size: 0.8rem; color: var(--text-3); margin-top: 1rem; margin-bottom: 0 !important; }

/* ===== Top bar (mobile + search) ===== */
.app-top {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 0.6rem 0.9rem 0.6rem 2.4rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s;
}
.search-box input:focus { border-color: var(--gold); background: var(--bg-2); }
.search-icon {
    position: absolute;
    left: 0.9rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

.top-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--gold); }
.icon-btn .dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

/* ===== Main column ===== */
.app-main {
    min-width: 0;
    border-right: 1px solid var(--border);
}
.app-main-inner { padding: 1.5rem; }

.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view-header {
    margin-bottom: 1.5rem;
}
.view-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.view-sub {
    color: var(--text-3);
    font-size: 0.95rem;
}

/* ===== Right column ===== */
.app-right {
    padding: 1.2rem 1.2rem 1.2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.right-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}
.right-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.suggestion {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.suggestion:last-child { border: none; padding-bottom: 0; }
.suggestion .avatar { width: 36px; height: 36px; font-size: 0.75rem; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-handle { font-size: 0.78rem; color: var(--text-3); }
.btn-follow {
    background: var(--text);
    color: var(--bg);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-follow:hover { background: var(--gold); color: #1a0f00; }
.btn-follow.following { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

.trending-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.trending-item:hover { background: var(--surface-2); margin: 0 -1rem; padding: 0.5rem 1rem; border-radius: 8px; }
.trending-item:last-child { border: none; }
.trending-cat { font-size: 0.75rem; color: var(--text-3); }
.trending-tag { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.trending-count { font-size: 0.78rem; color: var(--text-3); }

/* ===== Composer ===== */
.composer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.composer-row {
    display: flex;
    gap: 0.8rem;
}
.composer .avatar { width: 42px; height: 42px; font-size: 0.85rem; flex-shrink: 0; }
.composer-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    outline: none;
    resize: none;
    min-height: 60px;
    font-family: inherit;
}
.composer-input::placeholder { color: var(--text-3); }

.composer-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.composer-tool {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.composer-tool:hover { background: var(--surface-2); color: var(--gold); }
.composer-tool .ico { font-size: 1.05rem; }
.composer-submit { margin-left: auto; }

/* ===== Post card ===== */
.post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: border 0.2s;
}
.post:hover { border-color: var(--border-2); }

.post-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
.post-head .avatar { width: 42px; height: 42px; font-size: 0.85rem; }
.post-author { flex: 1; min-width: 0; }
.post-name { font-weight: 700; color: var(--text); }
.post-meta { font-size: 0.8rem; color: var(--text-3); display: flex; align-items: center; gap: 0.3rem; }
.verified { color: var(--gold); font-size: 0.9rem; }

/* ============== BADGES (Member / Founding / Donor tier) ============== */
.donor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}
.donor-badge-icon { font-size: 0.78rem; line-height: 1; }
.badge-member  { background: rgba(6, 214, 160, 0.12);  color: #06d6a0; border-color: rgba(6, 214, 160, 0.3); }
.badge-founder { background: rgba(255, 183, 3, 0.12);  color: var(--gold); border-color: rgba(255, 183, 3, 0.35); }
.tier-supporter { background: rgba(6, 214, 160, 0.12);  color: #06d6a0; border-color: rgba(6, 214, 160, 0.3); }
.tier-champion  { background: rgba(58, 134, 255, 0.12); color: #3a86ff; border-color: rgba(58, 134, 255, 0.35); }
.tier-patron    { background: rgba(167, 90, 255, 0.12); color: #a75aff; border-color: rgba(167, 90, 255, 0.35); }
.tier-founder   {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.18), rgba(239, 71, 111, 0.18));
    color: var(--gold);
    border-color: rgba(255, 183, 3, 0.45);
    font-weight: 700;
}
.donor-badge-lg { font-size: 0.85rem; padding: 0.3rem 0.75rem; }
.post-name-line { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.profile-name-badges { display: flex; gap: 0.4rem; margin-top: 0.4rem; flex-wrap: wrap; }

/* ============== MOVEMENT IMPACT CARD (right column) ============== */
.impact-stat-row { display: flex; gap: 1rem; }
.impact-stat { flex: 1; }
.impact-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}
.impact-stat span { font-size: 0.75rem; color: var(--text-3); }

/* ============== DONATE SUCCESS BLOCK ============== */
.success-block {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.06), rgba(6, 214, 160, 0.06));
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: var(--radius);
    animation: successPop 0.5s ease-out;
}
.success-icon { font-size: 3rem; animation: successBounce 0.8s ease-out; }
.success-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
}
.success-tier { margin: 0.6rem 0 0.2rem; }
@keyframes successPop {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes successBounce {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* Success share buttons */
.success-share { margin: 1rem 0 0.4rem; }
.success-share-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 0.6rem;
}
.success-share-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.success-share-btn {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.35);
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    padding: 0;
}
.success-share-btn:hover {
    background: rgba(255, 183, 3, 0.22);
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.25);
    transform: translateY(-1px);
}
.success-share-btn:active { transform: translateY(0); }
.success-share-toast {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--gold);
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.success-share-toast.show { opacity: 1; }
.post-menu {
    color: var(--text-3);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
}
.post-menu:hover { background: var(--surface-2); color: var(--text); }

.post-body {
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.post-body a { color: var(--gold); }
.post-tags { color: var(--gold); font-weight: 600; }

.post-image {
    width: 100%;
    border-radius: var(--radius-sm);
    margin: 0.5rem 0 0.8rem;
    border: 1px solid var(--border);
    background: var(--bg-2);
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}
.post-action {
    display: flex; align-items: center; gap: 0.4rem;
    color: var(--text-3);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}
.post-action:hover { color: var(--gold); }
.post-action.liked { color: var(--red); }
.post-action.boosted { color: var(--green); }

/* ===== Network / People grid ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.person-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: all 0.2s;
}
.person-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.person-banner {
    height: 60px;
    background: var(--grad-gold);
}
.person-body { padding: 0 1.2rem 1.2rem; margin-top: -28px; }
.person-card .avatar {
    width: 56px; height: 56px;
    font-size: 1.1rem;
    border: 3px solid var(--bg-2);
    margin: 0 auto 0.5rem;
}
.person-name { font-weight: 700; margin-bottom: 0.2rem; }
.person-handle { color: var(--text-3); font-size: 0.85rem; margin-bottom: 0.5rem; }
.person-bio { color: var(--text-2); font-size: 0.88rem; min-height: 2.6em; margin-bottom: 0.8rem; }
.person-meta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 1rem; }

/* ===== Marketplace ===== */
.market-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 0.45rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-2); }
.filter-chip.active { background: var(--gold); color: #1a0f00; border-color: var(--gold); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

/* ===== Directory (9-category business hub) ===== */
.dir-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dir-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.dir-hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,183,3,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}
.dir-hub-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: var(--surface-2);
}
.dir-hub-card:hover::before { opacity: 1; }
.dir-hub-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.3rem;
    position: relative;
}
.dir-hub-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    position: relative;
}
.dir-hub-blurb {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.4;
    position: relative;
}
.dir-hub-count {
    font-size: 0.74rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
    position: relative;
}

.dir-back {
    background: transparent;
    border: none;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.6rem;
    font-family: inherit;
}
.dir-back:hover { text-decoration: underline; }

.dir-sub-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.dir-sub-chip {
    padding: 0.45rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.dir-sub-chip:hover { color: var(--text); border-color: var(--border-2); }
.dir-sub-chip.active {
    background: var(--gold);
    color: #1a0f00;
    border-color: var(--gold);
}

.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.dir-card {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
}
.dir-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--surface-2);
}
.dir-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface-3), var(--surface));
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.dir-card-body { flex: 1; min-width: 0; }
.dir-card-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.dir-verified {
    background: var(--green);
    color: #002914;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}
.dir-card-tagline {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.dir-card-meta {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.dir-cat-chip {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
}
.dir-sub-chip {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text-2);
    font-weight: 600;
}
.dir-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-3);
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}
.dir-stars { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }
.dir-stars small { color: var(--text-3); font-weight: 400; margin-left: 0.2rem; }
.dir-city { font-weight: 500; }

@media (max-width: 600px) {
    .dir-hub-grid { grid-template-columns: 1fr 1fr; }
    .dir-grid { grid-template-columns: 1fr; }
}
}
.product-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.product-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-2);
    display: grid; place-items: center;
    font-size: 3rem;
    border-bottom: 1px solid var(--border);
}
.product-body { padding: 0.8rem 1rem 1rem; }
.product-name { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; }
.product-shop { font-size: 0.78rem; color: var(--gold); margin-bottom: 0.4rem; }
.product-price { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.product-owned { font-size: 0.75rem; color: var(--green); font-weight: 600; }

/* ===== Business dashboard ===== */
.biz-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.biz-logo {
    width: 80px; height: 80px;
    border-radius: 16px;
    background: var(--grad-gold);
    display: grid; place-items: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.biz-info { flex: 1; }
.biz-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.2rem; }
.biz-meta { color: var(--text-3); font-size: 0.88rem; }
.biz-stats { display: flex; gap: 1.5rem; }
.biz-stat { text-align: center; }
.biz-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.biz-stat-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.biz-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.biz-tab {
    padding: 0.7rem 1.2rem;
    color: var(--text-3);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.biz-tab:hover { color: var(--text); }
.biz-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== Jobs ===== */
.job-card {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}
.job-card:hover { border-color: var(--gold); }
.job-logo {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--grad-gold);
    display: grid; place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.job-info { flex: 1; min-width: 0; }
.job-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem; }
.job-co { color: var(--text-2); font-size: 0.9rem; margin-bottom: 0.4rem; }
.job-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.job-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
}
.job-salary { color: var(--green); font-weight: 700; }

/* ===== Events ===== */
.event-card {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}
.event-card:hover { border-color: var(--green); }
.event-date {
    width: 70px; flex-shrink: 0;
    text-align: center;
    background: var(--grad-warm);
    color: #fff;
    border-radius: 12px;
    padding: 0.6rem 0.3rem;
    height: fit-content;
}
.event-date-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-date-day { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.event-info { flex: 1; }
.event-title { font-weight: 700; margin-bottom: 0.2rem; }
.event-meta { color: var(--text-3); font-size: 0.85rem; margin-bottom: 0.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ===== Learn / Courses ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.course-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.course-banner {
    height: 120px;
    background: var(--grad-gold);
    display: grid; place-items: center;
    font-size: 3rem;
    position: relative;
}
.course-cat {
    position: absolute;
    top: 0.8rem; left: 0.8rem;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}
.course-body { padding: 1rem 1.2rem 1.2rem; }
.course-title { font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; }
.course-instr { font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.6rem; }
.course-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-3); }
.course-free { color: var(--green); font-weight: 700; }

/* ===== Circles ===== */
.circle-card {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}
.circle-card:hover { border-color: var(--gold); }
.circle-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.circle-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--grad-warm);
    display: grid; place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.circle-name { font-weight: 700; font-size: 1.05rem; }
.circle-meta { font-size: 0.85rem; color: var(--text-3); }
.circle-desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 0.8rem; }
.circle-progress {
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.circle-progress-bar { height: 100%; background: var(--grad-gold); border-radius: 3px; }
.circle-amounts { display: flex; justify-content: space-between; font-size: 0.82rem; }
.circle-raised { color: var(--text-2); }
.circle-goal { color: var(--text-3); }

/* ===== Organize ===== */
.action-call {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}
.action-call:hover { border-color: var(--red); }
.action-urgency {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.urgency-urgent { background: rgba(214,40,40,0.2); color: #ff6b6b; }
.urgency-active { background: rgba(255,183,3,0.2); color: var(--gold); }
.urgency-new    { background: rgba(42,157,143,0.2); color: var(--green); }

.action-title { font-weight: 700; margin-bottom: 0.4rem; }
.action-desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 0.7rem; }
.action-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-3); }

/* ===== Culture / Media ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.media-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.media-art {
    aspect-ratio: 1;
    background: var(--bg-2);
    display: grid; place-items: center;
    font-size: 4rem;
    position: relative;
}
.media-play {
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}
.media-card:hover .media-play { opacity: 1; }
.media-play span {
    width: 50px; height: 50px;
    background: var(--gold);
    color: #1a0f00;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.2rem;
}
.media-body { padding: 0.8rem 1rem 1rem; }
.media-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.media-artist { font-size: 0.82rem; color: var(--gold); }

/* ===== Wellness ===== */
.wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.wellness-card {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    transition: all 0.2s;
}
.wellness-card:hover { border-color: var(--gold); }
.wellness-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--grad-warm);
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wellness-info { flex: 1; min-width: 0; }
.wellness-name { font-weight: 700; }
.wellness-role { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.3rem; }
.wellness-meta { font-size: 0.82rem; color: var(--text-3); margin-bottom: 0.6rem; }
.wellness-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.wellness-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
}

/* ===== Messages ===== */
.messaging-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 60px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.thread-list {
    border-right: 1px solid var(--border);
    overflow-y: auto;
}
.thread-search {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.thread-search input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}
.thread-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.thread-item:hover { background: var(--surface-2); }
.thread-item.active { background: var(--surface-3); }
.thread-item .avatar { width: 40px; height: 40px; font-size: 0.8rem; flex-shrink: 0; }
.thread-info { flex: 1; min-width: 0; }
.thread-name { font-weight: 600; font-size: 0.9rem; display: flex; justify-content: space-between; }
.thread-time { color: var(--text-3); font-size: 0.75rem; font-weight: 400; }
.thread-preview {
    font-size: 0.8rem;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-panel {
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.bubble {
    max-width: 70%;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.4;
}
.bubble.them {
    background: var(--surface-2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.bubble.me {
    background: var(--grad-gold);
    color: #1a0f00;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.chat-input {
    padding: 0.8rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}
.chat-input input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    outline: none;
}
.chat-send {
    width: 40px; height: 40px;
    background: var(--grad-gold);
    color: #1a0f00;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 900;
}

/* ===== Profile ===== */
.profile-header {
    position: relative;
    margin-bottom: 4rem;
}
.profile-banner {
    height: 180px;
    background: var(--grad-warm);
    border-radius: var(--radius);
}
.profile-info {
    padding: 0 1.5rem;
    margin-top: -50px;
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: grid; place-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: #1a0f00;
    border: 4px solid var(--bg);
    flex-shrink: 0;
}
.profile-meta { flex: 1; padding-top: 2.5rem; }
.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.1rem; }
.profile-handle { color: var(--text-3); margin-bottom: 0.5rem; }
.profile-bio { color: var(--text-2); margin-bottom: 0.5rem; }
.profile-stats { display: flex; gap: 1.2rem; font-size: 0.88rem; color: var(--text-2); }
.profile-stats strong { color: var(--text); }

/* ===== Tabs (generic) ===== */
.tabs {
    display: flex;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.tab {
    padding: 0.8rem 1.2rem;
    color: var(--text-3);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== Toast / Notice ===== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-3);
    border: 1px solid var(--gold);
    color: var(--text);
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ===== Auth modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal p { color: var(--text-3); margin-bottom: 1.5rem; font-size: 0.9rem; }
.modal label { display: block; font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.4rem; margin-top: 0.8rem; }
.modal input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}
.modal input:focus { border-color: var(--gold); }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.modal-actions .btn { flex: 1; }
.modal-switch { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-3); }
.modal-switch a { color: var(--gold); cursor: pointer; }

/* ===== Search results dropdown ===== */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 0.3rem;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border: none; }
.search-result-item:hover,
.search-result-item.search-result-active { background: var(--surface-2); }
.search-result-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.search-result-text { flex: 1; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-type { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Mobile nav ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0.2rem;
    z-index: 100;
    justify-content: space-around;
}
.mobile-nav button {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.5rem 0.2rem;
    color: var(--text-3);
    font-size: 0.7rem;
    font-weight: 600;
}
.mobile-nav button .ico { font-size: 1.2rem; }
.mobile-nav button.active { color: var(--gold); }

/* ===== Hamburger menu (mobile only) ===== */
.hamburger-menu {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
    margin-right: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}
.hamburger-menu:hover { background: var(--surface-2); }

/* ===== Sidebar overlay (mobile drawer) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}
.sidebar-overlay .sidebar-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
.sidebar-overlay .sidebar-overlay-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0,0,0,0.4);
    animation: slideInLeft 0.25s ease;
    display: flex; flex-direction: column;
}
.sidebar-overlay-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--surface);
    z-index: 1;
}
.sidebar-overlay-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.sidebar-overlay-close {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}
.sidebar-overlay-close:hover { background: var(--surface-2); }
.sidebar-overlay-body { padding: 1rem 0.8rem; }
.sidebar-overlay-body .nav-item { width: 100%; justify-content: flex-start; padding: 0.7rem 0.8rem; }
.sidebar-overlay-body .nav-item span { display: inline !important; }
.sidebar-overlay-body .nav-section-title { display: block !important; margin-top: 0.8rem; }
.sidebar-overlay-body .sidebar-user-info { display: flex !important; flex-direction: column; }
.sidebar-overlay-body .sidebar-brand { display: flex !important; align-items: center; gap: 0.8rem; padding: 0 0.5rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; flex-direction: row; }
.sidebar-overlay-body .sidebar-brand .brand-mark { width: 48px; height: 48px; border-radius: 8px; }
.sidebar-overlay-body .sidebar-donate-btn { width: 100%; margin-bottom: 1rem; }
.sidebar-overlay-body .nav-badge { position: static; display: inline-flex; }
.sidebar-overlay-body .sidebar-user { padding: 0.6rem; }
.sidebar-overlay-body .sidebar-signin-cta { padding: 0.8rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Floating Donate FAB — mobile only, positioned above the bottom nav */
.mbdm-donate-fab {
    display: none; /* hidden on desktop — sidebar already has its own donate btn */
    position: fixed;
    bottom: 78px; /* sit just above the bottom nav (~62px tall) */
    right: 16px;
    z-index: 95;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #ffd166 0%, #ffb703 50%, #d62828 100%);
    color: #1a0f00;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(255, 99, 71, 0.35), 0 2px 8px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: mbdmFabPulse 3.2s ease-in-out infinite;
}
.mbdm-donate-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 30px rgba(255, 99, 71, 0.45), 0 3px 10px rgba(0,0,0,0.45);
}
.mbdm-donate-fab:active { transform: translateY(0) scale(1); }
.mbdm-donate-fab-icon { font-size: 1.1rem; line-height: 1; }
.mbdm-donate-fab-text { letter-spacing: 0.01em; }
@keyframes mbdmFabPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 99, 71, 0.35), 0 2px 8px rgba(0,0,0,0.4); }
    50%      { box-shadow: 0 8px 28px rgba(255, 99, 71, 0.55), 0 2px 10px rgba(0,0,0,0.45), 0 0 0 8px rgba(255, 183, 3, 0.08); }
}
@media (max-width: 768px) {
    .mbdm-donate-fab { display: inline-flex; }
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 80px 1fr 320px; }
    .sidebar { padding: 1rem 0.4rem; }
    .nav-item span:not(.nav-icon):not(.nav-badge),
    .nav-section-title,
    .sidebar-user-info { display: none; }
    .nav-item { justify-content: center; padding: 0.7rem; }
    .nav-badge { position: absolute; top: 4px; right: 4px; }
    .sidebar-user { padding: 0.5rem; justify-content: center; }
    .brand-mark { width: 128px; height: 128px; border-radius: 16px; }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar, .app-right { display: none; }
    .app-main { border-right: none; }
    .mobile-nav { display: flex; }
    .hamburger-menu { display: inline-flex; align-items: center; }
    body.sidebar-open .sidebar-overlay { display: block; }
    body.sidebar-open { overflow: hidden; }
    /* Shrink search placeholder on mobile so it doesn't push actions off-screen */
    .search-box input::placeholder { font-size: 0.85rem; }
    .search-box input { font-size: 0.9rem; padding: 0.55rem 0.7rem 0.55rem 2.2rem; }
    .top-actions .icon-btn { padding: 0.4rem 0.5rem; font-size: 0.95rem; }
    /* Ensure FAB sits above bottom nav */
    .mbdm-donate-fab { bottom: 84px; right: 14px; padding: 0.6rem 0.85rem; font-size: 0.85rem; }
    /* Add bottom padding so content isn't hidden under fixed bottom nav + FAB */
    .app-main-inner { padding-bottom: 100px; }
    /* Search box takes remaining space after hamburger + actions */
    .app-top { gap: 0.3rem; padding: 0.6rem 0.7rem; }
    .messaging-wrap { grid-template-columns: 1fr; }
    .thread-list { display: block; }
    .chat-panel { display: none; }
    .messaging-wrap.show-chat .thread-list { display: none; }
    .messaging-wrap.show-chat .chat-panel { display: flex; }
    .profile-info { flex-direction: column; align-items: flex-start; }
    .profile-meta { padding-top: 1rem; }
}

@media (max-width: 600px) {
    .app-main-inner { padding: 1rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .composer-actions { flex-wrap: wrap; }
    .post-actions { gap: 0.8rem; }
}

/* ============================================================
   PRINT STYLES — app pages (profile, directory, business cards)
   ============================================================ */
@media print {
    /* Reset & base */
    *, *::before, *::after {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    /* Hide navigation chrome */
    .sidebar,
    .app-right,
    .app-bottom-nav,
    .mobile-fab,
    .donate-modal,
    .donate-modal-overlay,
    .success-share-toast,
    .topbar-search,
    .topbar-actions,
    .auth-modal,
    .filter-bar,
    .pagination-controls,
    .nav-badge,
    [data-action="donate"] {
        display: none !important;
    }

    /* Main content — full width */
    .app-shell {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .app-main {
        padding: 0 !important;
        background: #fff !important;
    }
    .app-main-inner {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Print header */
    .print-only { display: block !important; }
    .print-only-header {
        display: block !important;
        border-bottom: 2px solid #000;
        padding-bottom: 12pt;
        margin-bottom: 18pt;
    }
    .print-only-header .site-mark {
        font-size: 14pt;
        font-weight: 800;
        color: #000;
    }
    .print-only-header .site-mark em { color: #8b5a00; font-style: normal; }
    .print-only-header .print-meta {
        font-size: 9pt;
        color: #333;
        margin-top: 4pt;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: #000;
    }
    h1 { font-size: 22pt; }
    h2 { font-size: 16pt; border-bottom: 1px solid #999; padding-bottom: 4pt; }
    h3 { font-size: 13pt; }
    p, li, span, div {
        color: #1a1a1a !important;
    }

    /* Profile view */
    .profile-header {
        background: #fff !important;
        border: 1px solid #ccc !important;
        padding: 18pt !important;
        page-break-inside: avoid;
    }
    .profile-avatar, .avatar {
        border: 2px solid #000 !important;
        background: #fff !important;
    }
    .profile-stats {
        display: flex !important;
        gap: 24pt !important;
        border-top: 1px solid #999;
        padding-top: 8pt;
        margin-top: 12pt;
    }
    .profile-bio { font-size: 11pt; }

    /* Directory listings */
    .business-card, .directory-card, .listing-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        padding: 12pt !important;
        margin-bottom: 8pt !important;
        page-break-inside: avoid;
    }
    .business-card h3, .directory-card h3 {
        font-size: 13pt;
        margin-bottom: 4pt;
    }
    .business-card-meta, .listing-meta {
        font-size: 10pt;
        color: #333 !important;
    }
    .business-card-tags, .tag-pill {
        background: #f5f5f5 !important;
        color: #000 !important;
        border: 1px solid #999;
        padding: 2pt 6pt;
        font-size: 9pt;
    }

    /* Posts */
    .post, .feed-post, .post-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        padding: 10pt !important;
        margin-bottom: 8pt !important;
    }
    .post-author, .post-meta {
        font-size: 9pt;
        color: #555 !important;
    }
    .post-actions, .post-reactions {
        display: none !important;
    }

    /* Composer — hide */
    .composer, .post-composer {
        display: none !important;
    }

    /* Buttons → flat */
    button, .btn, .nav-item, .pill {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #999 !important;
        box-shadow: none !important;
    }

    /* Inputs */
    input, textarea, select {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #999 !important;
    }

    /* Images */
    img { max-width: 100% !important; page-break-inside: avoid; }

    /* Links: text + URL after */
    a, a:visited {
        color: #1a1a1a !important;
        text-decoration: underline !important;
    }
    a[href^="http"]:not(.no-print-url)::after,
    a[href^="mailto:"]:not(.no-print-url)::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
        word-break: break-all;
    }
    a[href^="#"]:not(.no-print-url)::after { content: ""; }

    /* Decorative */
    .halo, .gradient-overlay, .glow { display: none !important; }

    /* Page setup */
    @page {
        size: letter;
        margin: 0.6in;
    }
    body { print-color-adjust: economy; -webkit-print-color-adjust: economy; }
}

/* Default: print-only elements are hidden on screen */
.print-only { display: none; }

/* ============================================================
   ACCESSIBILITY — keyboard focus indicators (app shell)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible,
.nav-item:focus-visible,
.lang-btn:focus-visible,
.theme-toggle:focus-visible,
.sidebar-brand:focus-visible,
.feed-tab:focus-visible,
.filter-chip:focus-visible,
.tag-pill:focus-visible,
.thread-item:focus-visible,
.emoji-btn:focus-visible,
.tab-btn:focus-visible,
.icon-btn:focus-visible,
.action-chip:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.2);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 2px;
    border-color: #F5A623 !important;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

/* Active nav item should not lose its focus ring */
.nav-item.active:focus-visible {
    outline-color: #FFD97A;
}

/* Skip link — visible only when focused */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: #F5A623;
    color: #0A2540;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Search dropdown — clear focus state for keyboard users */
.search-results li:focus-visible,
.search-results a:focus-visible,
.search-result-item:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: -3px;
    background: rgba(245, 166, 35, 0.12) !important;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast */
@media (prefers-contrast: more) {
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    .nav-item:focus-visible {
        outline-width: 4px;
        outline-color: #FFD97A;
    }
}
