:root {
    --emerald: #0B5B3E;
    --emerald-dark: #073B2A;
    --gold: #D4AF37;
    --sand: #F7F3EA;
    --charcoal: #1F1F1F;
    --white: #FFFFFF;
}

html { scroll-behavior: smooth; }
body {
    font-family: Inter, Poppins, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--sand);
    color: var(--charcoal);
}

.af-card {
    background: var(--white);
    border: 1px solid rgba(11, 91, 62, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.af-btn-primary,
.af-btn-gold,
.af-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.af-btn-primary:hover,
.af-btn-gold:hover,
.af-btn-outline:hover { transform: translateY(-1px); }
.af-btn-primary { background: var(--emerald); color: white; }
.af-btn-gold { background: linear-gradient(135deg, #D4AF37, #F2D675); color: var(--charcoal); }
.af-btn-outline { border: 1px solid rgba(11, 91, 62, .25); color: var(--emerald); background: white; }

.af-input {
    width: 100%;
    border: 1px solid rgba(31,31,31,.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: white;
    outline: none;
}
.af-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(11,91,62,.08); }
.af-sidebar-active { background: var(--emerald); color: white; border-radius: 16px; }
.af-badge-sponsored { background: rgba(212,175,55,.16); color: var(--emerald); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; }

.brand-gradient {
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.25), transparent 34%),
        linear-gradient(135deg, #0B5B3E 0%, #073B2A 100%);
}
.pattern-overlay { position: relative; overflow: hidden; }
.pattern-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(45deg, rgba(212,175,55,.45) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212,175,55,.25) 25%, transparent 25%);
    background-size: 36px 36px;
    pointer-events: none;
}
.gold-text { color: var(--gold); }
.emerald-text { color: var(--emerald); }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .auth-shell { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.auth-brand-panel {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}
@media (min-width: 1024px) { .auth-brand-panel { min-height: 100vh; padding: 72px; } }
.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(212,175,55,.18);
    right: -120px;
    bottom: -120px;
}
.auth-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.auth-feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(255,255,255,.11);
}
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.12), transparent 30%),
        var(--sand);
}
.auth-card { width: 100%; max-width: 680px; }
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border-radius: 16px;
    font-weight: 800;
}
.auth-tab-active { background: rgba(11,91,62,.09); color: var(--emerald); }

.icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(11,91,62,.09);
    color: var(--emerald);
}
.icon-pill-gold { background: rgba(212,175,55,.18); color: var(--emerald); }
.premium-panel { position: relative; overflow: hidden; }
.premium-panel::after {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(212,175,55,.18);
}
.bi { line-height: 1; }

/* v6 asynchronous interaction helpers */
#typingIndicator i { animation: afPulse 1s infinite ease-in-out; }
@keyframes afPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
[data-like-button] { transition: color .15s ease, transform .15s ease; }
[data-like-button]:active { transform: scale(.96); }

/* AfriVibe v7 refinements */
.profile-tab-active {
    background: var(--emerald);
    color: #fff;
    box-shadow: 0 14px 28px rgba(11, 91, 62, .18);
}
.market-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(212,175,55,.28), transparent 26%),
        linear-gradient(135deg, #0B5B3E 0%, #063827 100%);
}
.market-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, rgba(212,175,55,.12) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%);
    background-size: 44px 44px;
    opacity: .35;
}
.market-card { transition: transform .2s ease, box-shadow .2s ease; }
.market-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11, 91, 62, .14); }
.chat-shell .chat-sidebar { background: linear-gradient(180deg, #fff, #fffaf0); }
.chat-row { border: 1px solid transparent; transition: all .2s ease; }
.chat-row:hover, .chat-row.active { background: rgba(11, 91, 62, .08); border-color: rgba(11, 91, 62, .12); }
.chat-panel { min-height: 78vh; }
.chat-header { box-shadow: 0 14px 32px rgba(15,23,42,.04); }
.chat-call-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(11,91,62,.16); display: grid; place-items: center; color: var(--emerald); background: #fff; }
.chat-call-btn:hover { background: var(--emerald); color: #fff; }
.chat-bubble { border-radius: 26px; padding: 16px; box-shadow: 0 12px 30px rgba(15,23,42,.07); }
.chat-bubble.mine { background: var(--emerald); color: #fff; border-bottom-right-radius: 8px; }
.chat-bubble.theirs { background: #fff; color: var(--charcoal); border-bottom-left-radius: 8px; }
.emoji-picker { position: absolute; bottom: 54px; right: 0; z-index: 30; width: 260px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.18); border: 1px solid rgba(15,23,42,.08); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.emoji-picker button { padding: 8px; border-radius: 12px; background: #F7F3EA; font-size: 20px; }
.emoji-picker.hidden { display: none; }
.comment-card a { color: var(--emerald); font-weight: 800; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* AfriVibe v8 responsiveness, popup chat and privacy/safety refinements */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .af-card { border-radius: 20px; }
    .af-btn-primary, .af-btn-gold, .af-btn-outline { min-height: 44px; padding: 11px 16px; }
    .af-input { min-height: 44px; font-size: 16px; }
    .chat-shell { display: block; }
    .chat-shell .chat-sidebar { margin-bottom: 18px; }
    .chat-panel { min-height: 70vh; }
    #chatMessages { max-height: 62vh !important; }
    .market-hero { padding: 24px !important; }
    .emoji-picker { position: fixed; left: 12px; right: 12px; bottom: 88px; width: auto; grid-template-columns: repeat(6, 1fr); }
    .auth-form-panel { padding: 18px; }
    .auth-brand-panel { padding: 28px; }
}

.floating-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 60;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0B5B3E, #063827);
    color: #D4AF37;
    box-shadow: 0 18px 50px rgba(11, 91, 62, .35);
    font-size: 26px;
}
.floating-chat-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #D4AF37;
    color: #1F1F1F;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
}
.floating-chat-list {
    position: fixed;
    right: 20px;
    bottom: 94px;
    width: min(360px, calc(100vw - 24px));
    max-height: 440px;
    overflow: auto;
    z-index: 60;
    background: #fff;
    border: 1px solid rgba(11,91,62,.12);
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(15,23,42,.2);
    padding: 14px;
}
.floating-chat-dock {
    position: fixed;
    right: 96px;
    bottom: 22px;
    z-index: 61;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}
.floating-chat-window {
    width: 340px;
    height: 460px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(11,91,62,.12);
    box-shadow: 0 25px 80px rgba(15,23,42,.2);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
.floating-chat-window.minimized { height: 64px; }
.floating-chat-header {
    background: linear-gradient(135deg, #0B5B3E, #073B2A);
    color: white;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-chat-messages { flex: 1; overflow: auto; padding: 14px; background: #F7F3EA; }
.floating-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(15,23,42,.08); }
.floating-chat-input input { flex: 1; border-radius: 16px; border: 1px solid rgba(15,23,42,.1); padding: 10px 12px; outline: none; }
.floating-chat-input button { width: 42px; height: 42px; border-radius: 14px; background: #0B5B3E; color: white; }
.floating-chat-msg { max-width: 82%; padding: 10px 12px; border-radius: 18px; margin-bottom: 8px; font-size: 14px; }
.floating-chat-msg.mine { margin-left: auto; background: #0B5B3E; color: white; border-bottom-right-radius: 6px; }
.floating-chat-msg.theirs { background: white; color: #1F1F1F; border-bottom-left-radius: 6px; }
.reaction-chip { border-radius: 999px; padding: 6px 10px; background: #F7F3EA; font-weight: 800; font-size: 12px; }
.reaction-chip:hover, .reaction-chip.active { background: rgba(212,175,55,.25); color: #0B5B3E; }
@media (max-width: 900px) {
    .floating-chat-dock { right: 12px; left: 12px; bottom: 88px; flex-direction: column; align-items: stretch; }
    .floating-chat-window { width: 100%; height: min(520px, 72vh); }
    .floating-chat-launcher { right: 16px; bottom: 82px; }
    .floating-chat-list { right: 12px; left: 12px; bottom: 152px; width: auto; }
}

/* AfriVibe v9 deep-link, media and performance refinements */
.af-highlight-pulse {
    animation: afDeepLinkPulse 1.15s ease-in-out 3;
    outline: 3px solid rgba(212,175,55,.65);
    outline-offset: 5px;
}
@keyframes afDeepLinkPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0); }
    50% { box-shadow: 0 0 0 14px rgba(212,175,55,.20); }
}
.chat-bubble img,
.floating-chat-msg img { background: #F7F3EA; }
.notification-row { transition: transform .16s ease, background .16s ease; }
.notification-row:hover { transform: translateX(3px); background: rgba(212,175,55,.16); }
@media (max-width: 640px) {
    .floating-chat-input { padding: 10px; }
    .floating-chat-input label { width: 42px; height: 42px; flex: 0 0 auto; }
    .chat-bubble { max-width: 92vw; }
}


/* AfriVibe v10: collapsible comments, native mobile chat, micro-interactions and animated reactions */
.comments-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .38s cubic-bezier(.22,1,.36,1), opacity .24s ease, transform .28s ease;
    will-change: max-height, opacity, transform;
}
.comments-collapse.is-open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}
.post-action-bar { position: relative; }
.reaction-tray {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 35;
    display: flex;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 55px rgba(15,23,42,.22);
    border: 1px solid rgba(11,91,62,.10);
    transform-origin: left bottom;
    animation: afTrayIn .2s cubic-bezier(.34,1.56,.64,1);
}
.reaction-tray.hidden { display: none; }
.reaction-tray button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: transform .15s ease, background .15s ease;
}
.reaction-tray button:hover { transform: translateY(-4px) scale(1.16); background: rgba(212,175,55,.18); }
@keyframes afTrayIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.interaction-icon,
button .bi,
a .bi,
.af-btn-primary,
.af-btn-gold,
.af-btn-outline,
.icon-pill,
.chat-call-btn,
.reaction-chip,
.floating-chat-input button,
.floating-chat-launcher {
    transition: transform .16s cubic-bezier(.34,1.56,.64,1), color .18s ease, background .18s ease, box-shadow .18s ease;
}
.interaction-icon:hover,
.icon-pill:hover,
.chat-call-btn:hover,
.reaction-chip:hover { transform: translateY(-1px) scale(1.025); }
.interaction-icon:active,
.af-btn-primary:active,
.af-btn-gold:active,
.af-btn-outline:active,
.chat-call-btn:active,
.reaction-chip:active,
.floating-chat-launcher:active { transform: scale(.93); }
.reaction-chip.active { background: rgba(212,175,55,.30); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); }
.reaction-chip.is-animating,
.interaction-icon.is-animating { animation: afReactionPop .45s cubic-bezier(.22,1.4,.36,1); }
@keyframes afReactionPop { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-3deg); } 65% { transform: scale(.96) rotate(2deg); } 100% { transform: scale(1); } }
.af-reaction-burst {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    font-size: 27px;
    animation: afReactionBurst .7s ease forwards;
    filter: drop-shadow(0 8px 16px rgba(15,23,42,.18));
}
@keyframes afReactionBurst {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
    25% { opacity: 1; transform: translate(-50%, -75%) scale(1.25); }
    100% { opacity: 0; transform: translate(-50%, -130%) scale(.9); }
}

/* Native-feeling chat refinements */
.chat-panel { border-radius: 28px; }
.chat-scroll { scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-bubble { max-width: min(75%, 680px); line-height: 1.48; }
.chat-bubble.mine { border-bottom-right-radius: 8px; background: linear-gradient(135deg, #0B5B3E, #073B2A); }
.chat-bubble.theirs { border: 1px solid rgba(11,91,62,.08); }
.chat-composer { position: sticky; bottom: 0; z-index: 8; box-shadow: 0 -12px 32px rgba(15,23,42,.06); }
.chat-composer .af-input { border-radius: 999px; background: #F7F3EA; border-color: rgba(11,91,62,.10); }
.floating-chat-window { transition: height .2s ease, transform .2s ease, box-shadow .2s ease; }
.floating-chat-header { min-height: 68px; }
.floating-chat-messages { scroll-behavior: smooth; overscroll-behavior: contain; }
.floating-chat-msg { line-height: 1.42; word-break: break-word; }

/* Mobile profile and touch optimization */
@media (max-width: 768px) {
    main .p-5.lg\:p-8 { padding: 14px; }
    .post-action-bar { gap: 8px; justify-content: flex-start; }
    .post-action-bar > * { flex: 0 0 auto; }
    .reaction-tray { position: fixed; left: 12px; right: 12px; bottom: 112px; justify-content: space-around; padding: 12px; }
    .reaction-tray button { width: 44px; height: 44px; font-size: 23px; }
    [data-comments-toggle] { width: 100%; justify-content: center; background: rgba(11,91,62,.05); }
    [data-comment-form] { flex-wrap: wrap; }
    [data-comment-form] input[name="body"] { flex: 1 1 100%; }
    [data-comment-form] .af-btn-primary { flex: 1; }
    .comment-card { align-items: flex-start; }
    .comment-card.ml-10 { margin-left: 18px !important; }

    .chat-shell { min-height: calc(100dvh - 136px); gap: 12px; }
    .chat-shell .chat-sidebar { max-height: 38dvh; overflow: hidden; padding: 14px; border-radius: 22px; }
    .chat-shell .chat-sidebar .mt-5.space-y-3 { max-height: 22dvh; overflow-y: auto; }
    .chat-panel { min-height: 62dvh; max-height: calc(100dvh - 156px); border-radius: 24px; }
    .chat-header { padding: 12px 14px; position: sticky; top: 0; z-index: 12; }
    .chat-header img { width: 44px !important; height: 44px !important; }
    .chat-header .text-xl { font-size: 1rem; }
    .chat-call-btn { width: 39px; height: 39px; }
    #chatMessages.chat-scroll { padding: 14px 12px 18px; max-height: none !important; }
    .chat-bubble { max-width: 86%; padding: 11px 13px; border-radius: 20px; font-size: 14px; }
    .chat-bubble.mine { border-bottom-right-radius: 6px; }
    .chat-bubble.theirs { border-bottom-left-radius: 6px; }
    .chat-composer { flex-direction: row !important; align-items: center; gap: 8px; padding: 10px !important; padding-bottom: max(10px, env(safe-area-inset-bottom)) !important; }
    .chat-composer label.af-btn-outline { min-width: 44px; width: 44px; height: 44px; padding: 0; border-radius: 999px; font-size: 0; }
    .chat-composer label.af-btn-outline i { font-size: 18px; }
    .chat-composer select#giftSelect { display: none; }
    .chat-composer .af-btn-gold { width: 44px; height: 44px; padding: 0; border-radius: 999px; font-size: 0; }
    .chat-composer .af-btn-gold i { font-size: 18px; }
    .chat-composer .af-btn-primary { width: 48px; height: 44px; padding: 0; border-radius: 999px; font-size: 0; }
    .chat-composer .af-btn-primary i { font-size: 18px; }

    .floating-chat-window { height: min(78dvh, 620px); border-radius: 28px 28px 18px 18px; }
    .floating-chat-dock { bottom: 80px; }
    .floating-chat-input { padding-bottom: max(10px, env(safe-area-inset-bottom)); align-items: center; }
    .floating-chat-input input { min-height: 44px; border-radius: 999px; }
    .floating-chat-msg { max-width: 86%; border-radius: 20px; padding: 10px 12px; }

    .max-w-6xl.space-y-6 > .af-card.overflow-hidden .h-64 { height: 150px; }
    .max-w-6xl.space-y-6 > .af-card.overflow-hidden .p-6 { padding: 18px; margin-top: -58px; text-align: center; }
    .max-w-6xl.space-y-6 > .af-card.overflow-hidden img.w-32 { width: 96px; height: 96px; margin-inline: auto; }
    .max-w-6xl.space-y-6 > .af-card.overflow-hidden h1 { font-size: 1.55rem; line-height: 1.15; }
    .max-w-6xl.space-y-6 > .af-card.overflow-hidden .mt-6.flex { justify-content: center; gap: 8px; }
    .max-w-6xl.space-y-6 > .af-card.overflow-hidden .mt-6.flex > * { flex: 1 1 calc(50% - 8px); justify-content: center; min-height: 44px; padding: 10px 12px; }
    [data-profile-tabs] { position: sticky; top: 104px; z-index: 20; border-radius: 20px; scroll-snap-type: x mandatory; }
    [data-profile-tabs] button { scroll-snap-align: start; min-width: 118px; }
    [data-tab-panel] { padding: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .comments-collapse, .reaction-tray, .af-reaction-burst, .reaction-chip.is-animating, .interaction-icon.is-animating { animation: none !important; transition: none !important; }
}

/* AfriVibe V3 Core Engine UI */
.v3-page-hero{background:linear-gradient(135deg,#0B5B3E,#113c2b);color:white;border-radius:32px;padding:34px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:0 24px 60px rgba(11,91,62,.22);overflow:hidden;position:relative}.v3-page-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:240px;height:240px;border-radius:50%;border:35px solid rgba(212,175,55,.35)}.v3-page-hero h1{font-size:clamp(2rem,4vw,4rem);font-weight:1000;line-height:.95}.v3-eyebrow{color:#D4AF37;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.v3-hero-metrics{display:flex;gap:12px;position:relative;z-index:1}.v3-hero-metrics div,.v3-metric{background:#fff;border-radius:22px;padding:18px;box-shadow:0 14px 36px rgba(0,0,0,.08)}.v3-hero-metrics div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:white;min-width:120px}.v3-hero-metrics span,.v3-metric span{display:block;font-size:12px;opacity:.75}.v3-hero-metrics strong,.v3-metric strong{font-size:24px;font-weight:1000}.v3-metric strong{color:#0B5B3E}.v3-create-card,.v3-performance-card{border:1px solid rgba(212,175,55,.25)}
.v3-search-results{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 10px);background:white;border-radius:24px;box-shadow:0 22px 70px rgba(0,0,0,.16);overflow:hidden;border:1px solid rgba(0,0,0,.05)}.v3-search-item{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #f0eee8;color:#1F1F1F;text-decoration:none}.v3-search-item:hover{background:#F7F3EA}.v3-search-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#0B5B3E;color:white;display:grid;place-items:center;font-weight:900}.v3-search-badge{font-size:11px;padding:3px 8px;border-radius:999px;background:#D4AF37;color:#1F1F1F;font-weight:800}.v3-mention-dropdown{position:absolute;left:0;bottom:calc(100% + 8px);width:min(380px,92vw);background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.16);z-index:120;overflow:hidden;border:1px solid rgba(0,0,0,.06)}.v3-mention-item{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer}.v3-mention-item:hover{background:#F7F3EA}.v3-mention-item img{width:34px;height:34px;border-radius:50%;object-fit:cover}.whatsapp-direct{background:#25D366!important;color:white!important}.chat-theme-select{border:1px solid #e7e2d7;border-radius:14px;padding:10px 12px;background:white;font-weight:700;color:#0B5B3E}.chat-panel[data-chat-theme="gold"] .mine{background:#D4AF37!important;color:#1F1F1F!important}.chat-panel[data-chat-theme="ocean"] .mine{background:#0369a1!important}.chat-panel[data-chat-theme="purple"] .mine{background:#6d28d9!important}.chat-panel[data-chat-theme="sunset"] .mine{background:#ea580c!important}.chat-panel[data-chat-theme="rose"] .mine{background:#be123c!important}.chat-panel[data-chat-theme="forest"] .mine{background:#166534!important}.chat-panel[data-chat-theme="midnight"] .chat-scroll{background:#111827!important}.chat-panel[data-chat-theme="teal"] .mine{background:#0f766e!important}.chat-panel[data-chat-theme="coral"] .mine{background:#e11d48!important}.chat-panel[data-chat-theme="indigo"] .mine{background:#4338ca!important}.chat-panel[data-chat-theme="slate"] .mine{background:#334155!important}.chat-panel[data-chat-theme="mango"] .mine{background:#c2410c!important}.chat-panel[data-chat-theme="wine"] .mine{background:#831843!important}.chat-panel[data-chat-theme="classic"] .mine{background:#128C7E!important}
@media(max-width:900px){.v3-page-hero{flex-direction:column;align-items:flex-start}.v3-hero-metrics{width:100%;display:grid;grid-template-columns:1fr 1fr}.v3-ads-page .grid{grid-template-columns:1fr!important}.chat-shell{grid-template-columns:1fr!important}.chat-sidebar{max-height:320px;overflow:auto}.chat-panel{min-height:70vh}.v3-search-results{position:fixed;left:12px;right:12px;top:88px}}


/* =========================================================
   VibeChat V3 Desktop Composer Fix
   Keeps message input visible on desktop and mobile.
   ========================================================= */
.chat-shell {
    height: calc(100vh - 96px) !important;
    min-height: 640px !important;
    max-height: calc(100vh - 96px) !important;
    overflow: hidden !important;
    align-items: stretch !important;
}

.chat-shell > .chat-sidebar,
.chat-shell > .chat-panel {
    min-height: 0 !important;
    height: 100% !important;
}

.chat-sidebar {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.chat-sidebar .space-y-3,
.chat-sidebar .overflow-y-auto {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

.chat-panel {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 28px !important;
}

.chat-header {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
}

#chatMessages.chat-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 24px !important;
}

#typingIndicator {
    flex: 0 0 auto !important;
}

.chat-composer {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(11,91,62,.12) !important;
    box-shadow: 0 -18px 38px rgba(15,23,42,.10) !important;
}

.chat-composer .relative.flex-1 {
    min-width: 260px !important;
}

.chat-composer #messageInput {
    min-height: 48px !important;
    width: 100% !important;
    display: block !important;
    color: #1F1F1F !important;
}

.chat-composer button,
.chat-composer label,
.chat-composer select {
    flex-shrink: 0 !important;
}

.v3-mention-dropdown {
    bottom: calc(100% + 10px) !important;
    z-index: 9999 !important;
}

@media (max-width: 1024px) {
    .chat-shell {
        height: auto !important;
        max-height: none !important;
        min-height: calc(100vh - 84px) !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }

    .chat-sidebar {
        height: auto !important;
        max-height: 260px !important;
    }

    .chat-panel {
        height: calc(100vh - 120px) !important;
        min-height: 620px !important;
    }

    .chat-composer {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .chat-composer .relative.flex-1 {
        order: 1 !important;
        flex-basis: 100% !important;
        min-width: 100% !important;
    }

    .chat-composer label,
    .chat-composer select,
    .chat-composer .af-btn-gold,
    .chat-composer .af-btn-primary {
        order: 2 !important;
    }
}

@media (max-width: 640px) {
    .chat-panel {
        height: calc(100vh - 96px) !important;
        min-height: 560px !important;
        border-radius: 18px !important;
    }

    .chat-header {
        padding: 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    #chatMessages.chat-scroll {
        padding: 14px !important;
    }

    .chat-composer {
        padding: 12px !important;
    }

    .chat-composer select,
    .chat-composer label {
        max-width: 48% !important;
    }
}


/* =========================================================
   AfriVibe Premium Landing Page Hero Redesign
   ========================================================= */
.af-landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11,91,62,.08);
}
.af-landing-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.af-landing-logo img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.af-landing-links {
    display: flex;
    gap: 34px;
    font-size: 14px;
    font-weight: 800;
}
.af-landing-links a { color: #1F1F1F; text-decoration: none; }
.af-landing-links a:hover { color: #0B5B3E; }
.af-landing-actions { display: flex; gap: 12px; align-items: center; }
.af-nav-login, .af-nav-cta {
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 900;
    text-decoration: none;
    font-size: 14px;
}
.af-nav-login { border: 1px solid rgba(31,31,31,.14); color: #1F1F1F; background: #fff; }
.af-nav-cta { background: #0B5B3E; color: white; box-shadow: 0 10px 24px rgba(11,91,62,.18); }

.af-home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 18%, rgba(212,175,55,.16), transparent 30%),
        linear-gradient(105deg, #0B5B3E 0%, #073B2A 54%, #F7F3EA 54.2%, #FFF9EC 100%);
    min-height: 760px;
}
.af-hero-bg-grid {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(45deg, rgba(212,175,55,.45) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.18) 25%, transparent 25%);
    background-size: 42px 42px;
}
.af-hero-africa {
    position: absolute;
    width: 420px;
    height: 480px;
    left: 42%;
    top: 16%;
    transform: translateX(-50%);
    opacity: .12;
    background:
        radial-gradient(circle, rgba(255,255,255,.9) 2px, transparent 3px);
    background-size: 34px 34px;
    clip-path: polygon(48% 0,65% 6%,73% 17%,83% 25%,78% 37%,90% 51%,74% 59%,67% 76%,57% 100%,46% 85%,39% 67%,29% 59%,23% 45%,10% 40%,20% 25%,33% 19%);
}
.af-home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    min-height: 760px;
    margin: 0 auto;
    padding: 58px 24px 0;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 36px;
}
.af-hero-copy { color: #fff; max-width: 640px; padding-bottom: 48px; }
.af-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D4AF37;
    border: 1px solid rgba(212,175,55,.55);
    background: rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 14px;
}
.af-hero-copy h1 {
    margin: 24px 0 0;
    font-size: clamp(48px, 6.5vw, 86px);
    line-height: .98;
    font-weight: 1000;
    letter-spacing: -0.055em;
}
.af-hero-copy h1 span { color: #D4AF37; }
.af-hero-sub {
    margin-top: 24px;
    max-width: 560px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
    line-height: 1.65;
}
.af-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}
.af-hero-primary,
.af-hero-secondary,
.af-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    padding: 16px 24px;
    font-weight: 1000;
    text-decoration: none;
    min-height: 56px;
}
.af-hero-primary {
    background: linear-gradient(135deg, #D4AF37, #F5D76E);
    color: #1F1F1F;
    box-shadow: 0 18px 36px rgba(212,175,55,.22);
}
.af-hero-secondary {
    background: #fff;
    color: #0B5B3E;
    box-shadow: 0 16px 34px rgba(0,0,0,.08);
}
.af-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px,1fr));
    gap: 22px;
    margin-top: 36px;
    max-width: 640px;
}
.af-hero-stats div { border-right: 1px solid rgba(255,255,255,.18); padding-right: 16px; }
.af-hero-stats div:last-child { border-right: 0; }
.af-hero-stats i {
    display: block;
    color: #D4AF37;
    font-size: 24px;
    margin-bottom: 8px;
}
.af-hero-stats strong {
    display: block;
    font-size: 26px;
    font-weight: 1000;
    color: #fff;
    line-height: 1;
}
.af-hero-stats span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    margin-top: 6px;
}
.af-hero-visual {
    position: relative;
    min-height: 700px;
    align-self: end;
}
.af-hero-gold-arc {
    position: absolute;
    width: 620px;
    height: 760px;
    right: -170px;
    bottom: -140px;
    border-radius: 55% 0 0 55%;
    border-left: 14px solid #D4AF37;
    background: linear-gradient(110deg, rgba(255,255,255,.86), rgba(247,243,234,.55));
    box-shadow: inset 28px 0 0 rgba(212,175,55,.18);
}
.af-phone-glow {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 999px;
    right: 84px;
    top: 130px;
    background: radial-gradient(circle, rgba(212,175,55,.22), transparent 65%);
    filter: blur(14px);
}
.af-hero-woman {
    position: absolute;
    right: -70px;
    bottom: -2px;
    width: min(660px, 56vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 50px rgba(6,30,23,.28));
}

.af-section { max-width: 1280px; margin: 0 auto; padding: 74px 24px; }
.af-features-section { background: #F7F3EA; }
.af-section-head { text-align: center; margin-bottom: 42px; }
.af-section-head h2,
.af-market-head h2,
.af-wallet-copy h2 {
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -.04em;
}
.af-section-head p,
.af-market-head p,
.af-wallet-copy p { margin-top: 10px; color: #667085; }
.af-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.af-feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 48px rgba(15,23,42,.07);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid rgba(11,91,62,.07);
}
.af-feature-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #0B5B3E;
    color: #D4AF37;
    font-size: 22px;
}
.af-feature-card h3 { font-weight: 1000; font-size: 20px; }
.af-feature-card p { color: #667085; margin-top: 6px; line-height: 1.55; }

.af-market-section { max-width: none; background: #fff; }
.af-market-section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.af-market-head { padding: 0 24px; }
.af-product-grid {
    max-width: 1280px;
    padding: 36px 24px 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
}
.af-product-card {
    background: #fff;
    border: 1px solid rgba(11,91,62,.09);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 22px 52px rgba(15,23,42,.07);
}
.af-product-sponsored {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(212,175,55,.16);
    color: #0B5B3E;
    font-weight: 900;
    font-size: 12px;
}
.af-product-image {
    margin-top: 14px;
    height: 200px;
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(11,91,62,.12), transparent 50%),
        #F7F3EA;
    display: grid;
    place-items: center;
    color: #0B5B3E;
    font-size: 56px;
}
.af-product-card h3 { margin-top: 16px; font-weight: 1000; }
.af-product-card p { color: #0B5B3E; font-weight: 1000; margin-top: 4px; }
.af-product-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 14px; }
.af-product-actions button {
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    border: 1px solid rgba(31,31,31,.12);
    background: #fff;
}
.af-product-actions button:last-child { background: #0B5B3E; color: #fff; border-color: #0B5B3E; }

.af-wallet-section {
    display: grid;
    grid-template-columns: .85fr 1fr 1fr;
    gap: 26px;
    align-items: center;
}
.af-wallet-card {
    border-radius: 24px;
    padding: 28px;
    min-height: 150px;
    box-shadow: 0 22px 52px rgba(15,23,42,.07);
}
.af-wallet-card span { display: flex; gap: 10px; align-items: center; font-weight: 900; }
.af-wallet-card strong { display: block; margin-top: 12px; font-size: 34px; font-weight: 1000; }
.af-wallet-card small { display: block; margin-top: 6px; font-weight: 800; opacity: .82; }
.af-wallet-card.green { background: #0B5B3E; color: #fff; }
.af-wallet-card.green i { color: #D4AF37; }
.af-wallet-card.gold { background: linear-gradient(135deg, #D4AF37, #F2D675); color: #1F1F1F; }

.af-cta-section { padding-top: 24px; }
.af-final-cta {
    border-radius: 32px;
    padding: 40px 48px;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.22), transparent 42%),
        linear-gradient(135deg, #0B5B3E, #073B2A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.af-final-cta h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 1000; }
.af-final-cta p { color: rgba(255,255,255,.76); margin-top: 6px; }
.af-final-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 14px; }
.af-cta-outline { color: #fff; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.06); }

.af-footer { background: #063827; color: #fff; }
.af-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 2fr repeat(3,1fr);
    gap: 36px;
}
.af-footer-logo {
    display: inline-flex;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
}
.af-footer-logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.af-footer p, .af-footer a { display: block; color: rgba(255,255,255,.70); margin-top: 10px; text-decoration: none; }
.af-footer h4 { font-weight: 1000; }

@media (max-width: 1050px) {
    .af-landing-links { display: none; }
    .af-home-hero {
        background:
            radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 30%),
            linear-gradient(180deg, #0B5B3E 0%, #073B2A 58%, #F7F3EA 58.2%, #FFF9EC 100%);
    }
    .af-home-hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
    .af-hero-copy { max-width: 100%; }
    .af-hero-visual { min-height: 600px; }
    .af-hero-woman { right: 50%; transform: translateX(50%); width: min(720px, 92vw); }
    .af-hero-gold-arc { right: 50%; transform: translateX(50%); }
    .af-feature-grid, .af-product-grid { grid-template-columns: repeat(2,1fr); }
    .af-wallet-section { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .af-landing-nav { padding: 12px 16px; }
    .af-landing-logo img { height: 40px; max-width: 160px; }
    .af-nav-login { display: none; }
    .af-nav-cta { padding: 10px 14px; }
    .af-home-hero-inner { padding-left: 18px; padding-right: 18px; min-height: auto; }
    .af-home-hero { min-height: auto; }
    .af-hero-sub { font-size: 16px; }
    .af-hero-buttons { flex-direction: column; }
    .af-hero-primary, .af-hero-secondary { width: 100%; }
    .af-hero-stats { grid-template-columns: repeat(2,1fr); gap: 18px; }
    .af-hero-stats div { border-right: 0; padding-right: 0; }
    .af-hero-visual { min-height: 500px; }
    .af-feature-grid, .af-product-grid { grid-template-columns: 1fr; }
    .af-feature-card { flex-direction: column; }
    .af-final-cta { padding: 30px 22px; flex-direction: column; align-items: flex-start; }
    .af-footer-inner { grid-template-columns: 1fr; }
}


/* Trust + Commerce Engine */
.trust-badge {
    display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(212,175,55,.16);color:#0B5B3E;font-weight:900;font-size:12px
}
.vibescore-ring {
    width:88px;height:88px;border-radius:999px;display:grid;place-items:center;background:conic-gradient(#D4AF37 var(--score), rgba(11,91,62,.12) 0);color:#0B5B3E;font-weight:1000
}
.ai-helper-note {font-size:12px;color:#667085}


/* =========================================================
   AfriVibe VibeChat + VibeFeed Refinement Patch
   ========================================================= */

/* Clean icon-only chat attachment button */
.chat-attach-btn {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F7F3EA !important;
    border: 1px solid rgba(11,91,62,.14) !important;
    color: #0B5B3E !important;
    font-size: 22px !important;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.chat-attach-btn:hover {
    transform: translateY(-1px);
    background: #0B5B3E !important;
    color: #fff !important;
}

/* Static chat theme background: background stays on the panel, messages scroll above it */
.chat-panel {
    position: relative !important;
    background: var(--chat-theme-bg, #F7F3EA) !important;
    isolation: isolate !important;
}
.chat-panel::before {
    content: "";
    position: absolute;
    inset: 74px 0 70px 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(212,175,55,.10), transparent 26%),
        radial-gradient(circle at 88% 70%, rgba(11,91,62,.08), transparent 28%),
        linear-gradient(45deg, rgba(11,91,62,.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212,175,55,.035) 25%, transparent 25%);
    background-size: auto, auto, 34px 34px, 34px 34px;
}
.chat-header,
#typingIndicator,
.chat-composer {
    position: relative !important;
    z-index: 3 !important;
}
#chatMessages.chat-scroll {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
}

/* Chat theme background variables */
.chat-panel[data-chat-theme="emerald"] { --chat-theme-bg: #F7F3EA; }
.chat-panel[data-chat-theme="gold"] { --chat-theme-bg: #FFF8E1; }
.chat-panel[data-chat-theme="ocean"] { --chat-theme-bg: #E6F6FF; }
.chat-panel[data-chat-theme="purple"] { --chat-theme-bg: #F4EDFF; }
.chat-panel[data-chat-theme="sunset"] { --chat-theme-bg: #FFF1E6; }
.chat-panel[data-chat-theme="rose"] { --chat-theme-bg: #FFF1F2; }
.chat-panel[data-chat-theme="forest"] { --chat-theme-bg: #ECFDF3; }
.chat-panel[data-chat-theme="midnight"] { --chat-theme-bg: #111827; }
.chat-panel[data-chat-theme="teal"] { --chat-theme-bg: #E6FFFB; }
.chat-panel[data-chat-theme="coral"] { --chat-theme-bg: #FFF5F2; }
.chat-panel[data-chat-theme="indigo"] { --chat-theme-bg: #EEF2FF; }
.chat-panel[data-chat-theme="slate"] { --chat-theme-bg: #F1F5F9; }
.chat-panel[data-chat-theme="mango"] { --chat-theme-bg: #FFF7ED; }
.chat-panel[data-chat-theme="wine"] { --chat-theme-bg: #FFF1F7; }
.chat-panel[data-chat-theme="classic"] { --chat-theme-bg: #ECE5DD; }

/* Online/offline status dot styling */
.chat-status-dot {
    box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(15,23,42,.18) !important;
}
.chat-status-dot.bg-green-500 {
    background: #22C55E !important;
}
.chat-status-dot.bg-gray-400 {
    background: #9CA3AF !important;
}

/* VibeFeed text-only optimization */
.post-body.text-only {
    font-size: 15.5px;
    line-height: 1.75;
    padding: 4px 0 2px;
}
.post-media-wrap {
    overflow: hidden;
}
.post-media-img {
    display: block;
    background: #F7F3EA;
}
/* Hide any old placeholder/broken empty media blocks if cached or injected */
article[data-post-card] .bi-image.mr-2:only-child,
article[data-post-card] .post-empty-media {
    display: none !important;
}

@media (max-width: 640px) {
    .chat-attach-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }
}


/* =========================================================
   VibeChat Structural Audit: Desktop Input + Responsiveness
   ========================================================= */
@media (min-width: 1025px) {
    .chat-shell {
        display: grid !important;
        grid-template-columns: 380px minmax(0, 1fr) !important;
        gap: 24px !important;
        height: calc(100vh - 118px) !important;
        min-height: 660px !important;
        max-height: calc(100vh - 118px) !important;
        overflow: hidden !important;
    }

    .chat-panel {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .chat-sidebar {
        min-height: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .chat-scroll,
    #chatMessages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        padding-bottom: 28px !important;
    }

    .chat-composer-audited,
    .chat-composer {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 80 !important;
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns: 52px minmax(280px, 1fr) minmax(150px, 210px) auto auto !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        background: #fff !important;
        border-top: 1px solid rgba(11,91,62,.12) !important;
        box-shadow: 0 -18px 42px rgba(15,23,42,.10) !important;
        padding: 14px 18px !important;
    }

    .chat-input-wrap {
        min-width: 0 !important;
        width: 100% !important;
    }

    #messageInput {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        height: 50px !important;
        display: block !important;
        padding-right: 48px !important;
    }

    #giftSelect {
        width: 100% !important;
        min-width: 150px !important;
        height: 50px !important;
    }

    .chat-send-btn,
    .chat-composer .af-btn-primary {
        min-width: 104px !important;
        height: 50px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .chat-composer .af-btn-gold {
        height: 50px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .chat-attach-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 1024px) {
    .chat-composer-audited,
    .chat-composer {
        display: grid !important;
        grid-template-columns: 46px 1fr auto !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .chat-input-wrap {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
    }

    .chat-attach-btn {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #giftSelect {
        grid-column: 1 / 3 !important;
        grid-row: 2 !important;
    }

    .chat-composer .af-btn-gold {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }

    .chat-send-btn,
    .chat-composer .af-btn-primary {
        grid-column: 1 / 4 !important;
        grid-row: 3 !important;
        width: 100% !important;
        min-height: 48px !important;
    }
}

@media (max-width: 640px) {
    .chat-shell {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .chat-panel {
        min-height: calc(100vh - 110px) !important;
    }

    #chatMessages {
        max-height: calc(100vh - 300px) !important;
    }
}

/* Demo login helpers */
.demo-login-chip {
    border: 1px solid rgba(11,91,62,.14);
    background: #fff;
    color: #0B5B3E;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    text-align: left;
}
.demo-login-chip:hover {
    background: #0B5B3E;
    color: #fff;
}


/* =========================================================
   AfriVibe Final UI Bugfix Patch
   ========================================================= */
.verified-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    line-height: 1 !important;
    vertical-align: middle;
    margin-left: 6px;
}
h1 .verified-mini { font-size: 20px !important; }
.profile-whatsapp-btn {
    background: #25D366 !important;
    color: #fff !important;
    border: 1px solid #25D366 !important;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(37,211,102,.18);
}
.profile-whatsapp-btn:hover {
    transform: translateY(-1px);
}
.referral-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.referral-link-box input {
    background: #fff !important;
    color: #0B5B3E !important;
    font-weight: 800;
    border-color: rgba(212,175,55,.45) !important;
}
.vibeboost-nav-highlight,
a[href="/app/ads"] {
    position: relative;
}
.dashboard-chart-card canvas,
#dashboardMarketTrend,
#dashboardGiftTrend,
#vibeBoostTrend {
    width: 100% !important;
    max-height: 260px !important;
}
.v3-ads-page {
    display: block !important;
}
.v3-performance-card canvas {
    min-height: 260px;
}
@media (max-width: 640px) {
    .referral-link-box {
        grid-template-columns: 1fr;
    }
    .verified-mini, h1 .verified-mini {
        font-size: 16px !important;
    }
}


/* =========================================================
   AfriVibe Marketplace + Chat + Ads Professional Redesign
   ========================================================= */
.verified-micro,
.verified-tiny {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    line-height: 1 !important;
    vertical-align: middle;
    margin-left: 4px;
    opacity: .92;
}
.verified-mini { font-size: 13px !important; }

.marketplace-pro {
    max-width: 1440px;
    margin: 0 auto;
}
.market-pro-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 36px;
    color: #fff;
    background:
      radial-gradient(circle at 88% 20%, rgba(212,175,55,.32), transparent 30%),
      linear-gradient(135deg, #0B5B3E, #073B2A);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 28px;
    align-items: center;
    box-shadow: 0 24px 60px rgba(11,91,62,.18);
}
.market-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(212,175,55,.35);
    color: #D4AF37;
    font-weight: 900;
}
.market-pro-hero h1 {
    margin-top: 16px;
    max-width: 820px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -.045em;
}
.market-pro-hero p {
    margin-top: 14px;
    color: rgba(255,255,255,.78);
    max-width: 660px;
    line-height: 1.65;
}
.market-hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.market-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    padding: 13px 18px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.32);
    font-weight: 900;
    text-decoration: none;
}
.market-hero-panel {
    display: grid;
    gap: 14px;
}
.market-hero-panel div {
    border-radius: 24px;
    padding: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
}
.market-hero-panel strong {
    display: block;
    font-size: 34px;
    color: #D4AF37;
    font-weight: 1000;
}
.market-hero-panel span {
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.market-filter-card {
    position: sticky;
    top: 88px;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(260px,1fr) 220px 220px auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(11,91,62,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
    backdrop-filter: blur(12px);
}
.market-filter-card input,
.market-filter-card select {
    width: 100%;
    border: 1px solid rgba(31,31,31,.12);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    background: #fff;
}
.market-search-box {
    position: relative;
}
.market-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A8F98;
}
.market-search-box input {
    padding-left: 46px;
}
.market-filter-card button {
    border: 0;
    border-radius: 16px;
    background: #0B5B3E;
    color: #fff;
    font-weight: 1000;
    padding: 14px 20px;
}

.market-main-grid {
    display: grid;
    grid-template-columns: 330px minmax(0,1fr);
    gap: 26px;
    align-items: start;
}
.market-sidebar {
    display: grid;
    gap: 20px;
}
.market-category-list,
.market-location-list {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}
.market-category-list a,
.market-location-list a {
    display: flex;
    justify-content: space-between;
    border-radius: 14px;
    padding: 11px 13px;
    color: #1F1F1F;
    background: #F7F3EA;
    font-weight: 800;
    text-decoration: none;
}
.market-category-list a.active,
.market-category-list a:hover,
.market-location-list a:hover {
    background: #0B5B3E;
    color: #fff;
}
.market-upload {
    display: block;
    padding: 16px;
    border-radius: 20px;
    background: #F7F3EA;
    border: 1px dashed rgba(11,91,62,.25);
    cursor: pointer;
    font-weight: 900;
}
.ai-btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    background: rgba(11,91,62,.09);
    color: #0B5B3E;
    font-weight: 1000;
}
.market-section-head {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}
.market-section-head h2 {
    font-size: 30px;
    line-height: 1.08;
    font-weight: 1000;
}
.market-section-head p {
    color: #667085;
    margin-top: 5px;
}
.market-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}
.product-pro-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(11,91,62,.08);
    box-shadow: 0 20px 50px rgba(15,23,42,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(11,91,62,.13);
}
.product-image-wrap {
    position: relative;
    height: 240px;
    background: #F7F3EA;
    overflow: hidden;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0B5B3E;
    font-size: 54px;
    background:
      radial-gradient(circle at center, rgba(212,175,55,.15), transparent 55%),
      #F7F3EA;
}
.sponsored-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255,255,255,.94);
    color: #0B5B3E;
    font-size: 12px;
    font-weight: 1000;
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
}
.product-card-body {
    padding: 18px;
}
.seller-line {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}
.seller-line a {
    color: #667085;
    text-decoration: none;
}
.product-card-body h3 {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 1000;
    line-height: 1.18;
}
.product-desc {
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}
.product-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #5F6B7A;
}
.product-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #F7F3EA;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 14px;
}
.product-price-row strong {
    color: #0B5B3E;
    font-size: 24px;
    font-weight: 1000;
}
.product-price-row small {
    color: #8A8F98;
    font-weight: 800;
}
.product-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 10px;
    margin-top: 16px;
}
.product-actions a {
    border-radius: 15px;
    padding: 12px 10px;
    text-align: center;
    font-weight: 1000;
    text-decoration: none;
}
.view-btn {
    border: 1px solid rgba(11,91,62,.22);
    color: #0B5B3E;
    background: #fff;
}
.chat-btn {
    background: #0B5B3E;
    color: #fff;
}
.order-mini-form {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}
.order-mini-form input {
    border: 1px solid rgba(31,31,31,.10);
    border-radius: 14px;
    padding: 11px 13px;
}
.order-mini-form button {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 1000;
    background: linear-gradient(135deg,#D4AF37,#F2D675);
    color: #1F1F1F;
}

.sponsored-feed-card {
    position: relative;
    overflow: hidden;
}
.sponsored-feed-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg,#0B5B3E,#D4AF37);
}

@media (max-width: 1280px) {
    .market-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .market-filter-card { grid-template-columns: 1fr 200px 200px auto; }
}
@media (max-width: 1024px) {
    .market-pro-hero,
    .market-main-grid {
        grid-template-columns: 1fr;
    }
    .market-filter-card {
        position: relative;
        top: auto;
        grid-template-columns: 1fr 1fr;
    }
    .market-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .market-pro-hero { padding: 24px; }
    .market-filter-card,
    .market-sidebar,
    .market-product-grid {
        grid-template-columns: 1fr;
    }
    .product-image-wrap { height: 220px; }
}

/* Chat module consistency */
.chat-panel,
.chat-sidebar {
    border-color: rgba(11,91,62,.10) !important;
}
.chat-bubble.mine {
    background: linear-gradient(135deg,#0B5B3E,#073B2A) !important;
}
.chat-send-btn {
    background: #0B5B3E !important;
}
.chat-theme-select {
    border-color: rgba(11,91,62,.18) !important;
}

/* Further reduce verified badge size globally */
.bi-patch-check-fill {
    font-size: .82em;
}
h1 .bi-patch-check-fill {
    font-size: .48em !important;
}


/* =========================================================
   AfriVibe VibeChat, Market Grid/List, Share/Saved Fixes
   ========================================================= */

/* Chat composer: keep send icon visible on desktop */
.chat-composer.chat-composer-audited,
.chat-composer {
    grid-template-columns: 50px minmax(260px,1fr) 50px 96px !important;
    align-items: center !important;
}
.chat-send-icon-btn {
    height: 50px !important;
    min-width: 92px !important;
    border: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0B5B3E !important;
    color: #fff !important;
    font-weight: 1000 !important;
    box-shadow: 0 12px 28px rgba(11,91,62,.18) !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.chat-send-icon-btn i {
    display: inline-flex !important;
    font-size: 18px !important;
    color: #fff !important;
}
.chat-gift-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
}
.chat-gift-btn {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,#D4AF37,#F2D675);
    color: #1F1F1F;
    display: inline-grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(212,175,55,.18);
}
.chat-gift-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(320px, 86vw);
    background: #fff;
    border: 1px solid rgba(11,91,62,.10);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(15,23,42,.20);
    padding: 14px;
    z-index: 9999;
}
.chat-gift-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0B5B3E;
    margin-bottom: 10px;
}
.chat-gift-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #F7F3EA;
}
.chat-gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.chat-gift-grid button {
    min-height: 82px;
    border: 1px solid rgba(11,91,62,.08);
    background: #F7F3EA;
    border-radius: 16px;
    color: #0B5B3E;
    font-weight: 900;
    display: grid;
    place-items: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
}
.chat-gift-grid button:hover {
    background: #0B5B3E;
    color: #fff;
}
.chat-gift-grid i {
    font-size: 22px;
}
.chat-gift-grid span {
    font-size: 11px;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Market grid/list and uniform boxes */
.market-view-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.market-view-actions button {
    border: 1px solid rgba(11,91,62,.16);
    background: #fff;
    color: #0B5B3E;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 1000;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.market-view-actions button.active {
    background: #0B5B3E;
    color: #fff;
}
.market-product-grid {
    align-items: stretch !important;
}
.product-pro-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}
.product-card-body h3 {
    min-height: 48px;
}
.product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px !important;
}
.product-meta {
    min-height: 34px;
}
.product-actions,
.order-mini-form {
    margin-top: auto !important;
}
.market-product-grid.market-list-view {
    grid-template-columns: 1fr !important;
}
.market-product-grid.market-list-view .product-pro-card {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 260px;
}
.market-product-grid.market-list-view .product-image-wrap {
    height: 100%;
    min-height: 260px;
}
.market-product-grid.market-list-view .product-card-body h3,
.market-product-grid.market-list-view .product-desc,
.market-product-grid.market-list-view .product-meta {
    min-height: auto !important;
}
.market-product-grid.market-list-view .product-desc {
    -webkit-line-clamp: 4;
}

/* Share and saved UX */
button[onclick^="sharePost"] {
    cursor: pointer;
}
a[href="/app/saved"] {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .chat-composer.chat-composer-audited,
    .chat-composer {
        grid-template-columns: 46px 1fr 46px !important;
    }
    .chat-send-icon-btn {
        grid-column: 1 / 4 !important;
        width: 100% !important;
    }
    .market-product-grid.market-list-view .product-pro-card {
        grid-template-columns: 1fr;
    }
    .market-product-grid.market-list-view .product-image-wrap {
        height: 220px;
        min-height: 220px;
    }
}


/* =========================================================
   AfriVibe Coin Package + Market FAQ + Badge Adjustment
   ========================================================= */
.verified-micro,
.verified-tiny,
.verified-mini {
    font-size: 15px !important;
    line-height: 1 !important;
    margin-left: 5px;
}
h1 .verified-micro,
h1 .verified-mini {
    font-size: 18px !important;
}

.market-info-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    margin-top: 12px;
}
.market-eyebrow-lite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0B5B3E;
    font-weight: 1000;
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.how-steps div {
    border-radius: 20px;
    background: #F7F3EA;
    padding: 16px;
    border: 1px solid rgba(11,91,62,.08);
}
.how-steps span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #0B5B3E;
    color: #D4AF37;
    font-weight: 1000;
}
.how-steps strong {
    display: block;
    margin-top: 10px;
    color: #1F1F1F;
    font-weight: 1000;
}
.how-steps p,
.faq-list p {
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}
.faq-list {
    display: grid;
    gap: 10px;
}
.faq-list details {
    border-radius: 18px;
    background: #F7F3EA;
    padding: 14px 16px;
    border: 1px solid rgba(11,91,62,.08);
}
.faq-list summary {
    cursor: pointer;
    color: #0B5B3E;
    font-weight: 1000;
}
.faq-list p {
    margin-top: 8px;
}

.product-card-body h3 {
    min-height: 52px;
}
.product-desc {
    min-height: 68px !important;
}
.product-actions a,
.order-mini-form button {
    min-height: 46px;
}
@media(max-width: 900px){
    .market-info-grid,
    .how-steps {
        grid-template-columns: 1fr;
    }
}


/* AfriVibe Social Commerce Upgrade */
.social-product-select {
    border: 1px solid rgba(11,91,62,.18);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    min-width: min(100%, 260px);
    color: var(--emerald);
    font-weight: 800;
}
.social-product-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(11,91,62,.12);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, rgba(247,243,234,.88));
    box-shadow: 0 15px 35px rgba(15,23,42,.05);
}
.social-product-media {
    min-height: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sand);
    display: grid;
    place-items: center;
    color: var(--emerald);
    font-size: 2.2rem;
}
.social-product-media img { width: 100%; height: 100%; object-fit: cover; }
.social-commerce-pill,
.trust-badge,
.escrow-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}
.social-commerce-pill { background: rgba(11,91,62,.10); color: var(--emerald); }
.trust-badge { background: rgba(11,91,62,.10); color: var(--emerald); }
.trust-badge.gold, .escrow-mini { background: rgba(212,175,55,.18); color: #5a4200; }
.social-product-info h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 950; color: var(--charcoal); }
.social-product-info p { color: #5f6b67; margin-top: 4px; }
.social-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #64716c;
}
.social-product-meta strong { color: var(--emerald); font-size: 1.2rem; }
.social-product-actions, .social-commerce-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.view-product-btn, .chat-seller-btn, .buy-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}
.view-product-btn { background: #fff; border: 1px solid rgba(11,91,62,.18); color: var(--emerald); }
.chat-seller-btn { background: rgba(11,91,62,.10); color: var(--emerald); }
.buy-now-btn { background: linear-gradient(135deg, #D4AF37, #F2D675); color: #1F1F1F; }
.market-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.escrow-order-form button {
    background: linear-gradient(135deg, #0B5B3E, #073B2A) !important;
}
.mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(11,91,62,.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
    padding: 8px;
    backdrop-filter: blur(14px);
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #66736e;
    font-size: 11px;
    font-weight: 850;
    padding: 7px 2px;
    border-radius: 18px;
}
.mobile-bottom-nav a i { font-size: 18px; }
.mobile-bottom-nav a.active {
    background: var(--emerald);
    color: #fff;
}
.mobile-quick-sell {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 72;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #D4AF37, #F2D675);
    color: #1F1F1F;
    box-shadow: 0 18px 38px rgba(15,23,42,.24);
    font-size: 22px;
}
@media (max-width: 768px) {
    main .p-5 { padding-bottom: 110px; }
    .social-product-card { grid-template-columns: 1fr; }
    .social-product-media { min-height: 220px; }
    #floatingChatLauncher { bottom: 155px !important; }
}
