/* ==========================================================================
   🔥 FIREBIX UNIFIED CORE MATRIX SYSTEM & HOMEPAGE STYLES
   ========================================================================== */
:root {
    --fire-base: #F13423;
    --fire-glow: #FF6B35;
    --fire-dark: #0F0F0F;
    --fire-gray-bg: #FAFAFB;
    --fire-card-bg: #ffffff;
    --fire-text-main: #0f0f0f;
    --fire-text-muted: #64748b;
    --fire-border: #E5E7EB;
    --fire-gradient: linear-gradient(135deg, #F13423, #FF6B35);
    --fire-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --fire-shadow-md: 0 4px 18px rgba(0, 0, 0, 0.04);
    --transition-snappy: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --pop-neon-grad: linear-gradient(135deg, #FF5A1F, #FF007F, #7000FF, #00D2FF);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent !important;
}

body {
    background: var(--fire-gray-bg);
    color: var(--fire-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    line-height: 1.5;
}

img, a, button, .post-card, .short-card, .action-icon-btn, .category, .article-premium-card, .feed-product-card, .feed-business-spotlight-card {
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.post-content h3, .post-content p, .article-premium-body h4, .article-premium-body p {
    user-select: text !important;
}

/* ==========================================================================
   🧩 LAYOUT STRUCTURE & RESPONSIVE PROPORTIONS (DESKTOP COMPACT FIX)
   ========================================================================== */
.app-layout-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* CENTER FEED COLUMN (BALANCED WIDTH, NO OVERSIZED CARDS) */
.main-content-stream {
    width: 100%;
    max-width: 680px;
    background: var(--fire-card-bg);
    padding-bottom: 95px;
    box-sizing: border-box;
    min-width: 0;
}

.desktop-right-sidebar {
    display: none;
}

.mobile-only-flex { display: flex !important; }
.desktop-only-block { display: none !important; }
.desktop-only-flex { display: none !important; }

@media (min-width: 768px) {
    .mobile-only-flex { display: none !important; }
    .desktop-only-flex { display: flex !important; }
}

/* ==========================================================================
   🔝 TOP NAVBAR & HEADER
   ========================================================================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--fire-border);
    position: sticky;
    top: 0;
    z-index: 90;
    height: 54px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo strong {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: #0F0F0F;
}

.logo strong span { 
    color: var(--fire-base); 
}

.header-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search-bar {
    width: 100%;
    max-width: 280px; 
    margin-right: 8px;
    cursor: pointer;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    background: #F1F5F9;
    border: 1px solid transparent;
    border-radius: 20px;
    outline: none;
    font-size: 12.5px;
    color: #0F0F0F;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.search-input-wrap input:hover {
    background: #E2E8F0;
}

.action-icon-btn {
    border: none;
    background: transparent;
    color: #0F0F0F;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.action-icon-btn i {
    font-size: 19px;
    color: #0F0F0F;
}

.action-icon-btn:hover {
    background-color: #F1F5F9;
}

.action-icon-btn:active {
    transform: scale(0.92);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fire-base);
    border: 2px solid #ffffff;
}

.notification-wrap {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 28px));
    max-height: 430px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--fire-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: var(--transition-snappy);
    z-index: 120;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--fire-border);
}

.notification-panel-head strong {
    font-size: 13.5px;
    font-weight: 800;
}

.notification-panel-head span {
    color: var(--fire-base);
    font-size: 11px;
    font-weight: 700;
}

.notification-list {
    max-height: 370px;
    overflow-y: auto;
    padding: 6px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    color: var(--fire-text-main);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.notification-item:hover {
    background: #F1F5F9;
}

.notification-item.is-unread {
    background: rgba(241, 52, 35, 0.05);
}

.notification-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 34px;
    background: #E5E7EB center/cover no-repeat;
}

.notification-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notification-copy span {
    font-size: 12.5px;
    line-height: 1.35;
}

.notification-copy small {
    font-size: 10.5px;
    color: var(--fire-text-muted);
}

.notification-empty {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--fire-text-muted);
    font-size: 12.5px;
}

/* 3-DOTS BUTTONS */
.home-post-menu-btn,
.home-spark-menu-btn,
.home-article-menu-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.home-post-menu-btn i,
.home-spark-menu-btn i,
.home-article-menu-btn i {
    font-size: 16px;
    pointer-events: none;
}

.home-post-menu-btn:hover,
.home-spark-menu-btn:hover,
.home-article-menu-btn:hover {
    background: #F1F5F9;
    color: #0F0F0F;
}

.home-post-menu-btn:active,
.home-spark-menu-btn:active,
.home-article-menu-btn:active {
    transform: scale(0.92);
}

/* CATEGORY TABS */
.categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 16px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fire-border);
}

.categories::-webkit-scrollbar,
.shorts-row::-webkit-scrollbar,
.products-scroll-track::-webkit-scrollbar {
    display: none !important;
}

.category {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    background: #F1F5F9;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: var(--transition-snappy);
    flex-shrink: 0;
}

.category:active { transform: scale(0.95); }
.category:hover { background: #E2E8F0; }
.category.active {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 800;
}

/* ==========================================================================
   🎬 SPARKS SHELF (CLEAN THUMBNAIL RENDER)
   ========================================================================== */
.shorts-shelf {
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--fire-border);
    margin-bottom: 6px;
}

.mixed-feed-block {
    width: 100%;
}

.shorts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feed-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-section-title i {
    color: var(--fire-base);
    font-size: 17px;
}

.feed-section-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--fire-dark);
    letter-spacing: -0.3px;
}

.feed-section-title h3 span {
    color: var(--fire-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    margin-left: 4px;
}

.view-all-link {
    color: var(--fire-base);
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

.shorts-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.short-card {
    width: 100%;
    aspect-ratio: 9 / 14;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    position: relative;
    cursor: pointer;
    box-shadow: var(--fire-shadow-sm);
    transition: transform 0.15s ease;
}

.short-card:active {
    transform: scale(0.97);
}

.short-thumb-img,
.short-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-overlay {
    position: absolute;
    inset: 0;
    padding: 10px 8px;
    color: #ffffff;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.short-overlay strong {
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 2px;
}

.short-overlay span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-card .home-spark-menu-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    z-index: 10;
}

/* ==========================================================================
   🛍️ NATIVE BUSINESS PRODUCTS SHELF (HORIZONTAL CLEAN TRACK)
   ========================================================================== */
.home-products-shelf {
    background: #ffffff;
    border: 1px solid var(--fire-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 6px;
}

.shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.shelf-pill-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #2563EB;
    background: #EFF6FF;
    padding: 3px 8px;
    border-radius: 999px;
}

.products-scroll-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.feed-product-card {
    width: 145px;
    flex-shrink: 0;
    border: 1px solid var(--fire-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.feed-product-card:active {
    transform: scale(0.97);
}

.f-prod-img-box {
    width: 100%;
    height: 110px;
    background: #F8FAFC;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-fallback-icon {
    font-size: 26px;
    color: #94a3b8;
}

.f-prod-meta {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.f-prod-meta h4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--fire-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.f-prod-price-row strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--fire-dark);
}

.f-prod-price-row .strike {
    font-size: 10.5px;
    color: #94a3b8;
    text-decoration: line-through;
}

.f-prod-store-name {
    font-size: 10px;
    color: var(--fire-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   🏬 FEATURED BUSINESS SPOTLIGHT CARD
   ========================================================================== */
.feed-business-spotlight-card {
    background: #ffffff;
    border: 1px solid var(--fire-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--fire-shadow-sm);
    transition: transform 0.15s ease;
    margin-bottom: 6px;
}

.feed-business-spotlight-card:active {
    transform: scale(0.98);
}

.fb-spotlight-cover {
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 10px 14px;
}

.fb-featured-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fb-featured-badge i {
    color: #38bdf8;
}

.fb-spotlight-body {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.fb-spotlight-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    flex-shrink: 0;
    margin-top: -24px;
}

.fb-spotlight-info {
    flex: 1;
    min-width: 0;
}

.fb-spotlight-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fb-spotlight-name-row h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--fire-dark);
}

.fb-cat-pill {
    background: #F1F5F9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
}

.fb-spotlight-addr {
    font-size: 11px;
    color: var(--fire-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-visit-store {
    padding: 7px 12px;
    border-radius: 10px;
    background: #0F172A;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   🏷️ HOME OFFERS SHELF
   ========================================================================== */
.home-offers-shelf {
    background: #FFFDF9;
    border: 1px solid #FED7AA;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 6px;
}

.offers-grid-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feed-offer-tile {
    background: #ffffff;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.f-offer-content {
    min-width: 0;
    flex: 1;
}

.f-deal-pill {
    font-size: 9.5px;
    font-weight: 800;
    color: #DC2626;
    background: #FEE2E2;
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.f-offer-content h4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--fire-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-offer-store {
    font-size: 10.5px;
    color: #92400E;
    font-weight: 700;
    display: block;
}

.btn-claim-deal {
    background: #111827;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   📰 ARTICLE STRIP (FULL VERTICAL CARD FIX)
   ========================================================================== */
.articles-shelf {
    padding: 14px 16px;
    background: var(--fire-card-bg);
    border-radius: 20px;
    border: 1px solid var(--fire-border);
    margin-bottom: 8px;
    width: 100%;
}

.articles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.articles-row {
    width: 100%;
}

.article-premium-card {
    position: relative;
    background: var(--fire-card-bg);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--fire-border);
    display: flex;
    flex-direction: column !important; /* Full vertical magazine format */
    width: 100% !important;
    box-shadow: var(--fire-shadow-sm);
    transition: var(--transition-snappy);
}

.article-premium-card:active {
    transform: scale(0.99);
}

/* 🖼️ Clean 16:9 Banner Cover Image */
.article-cover-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    background: #F1F5F9;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.article-cover-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.article-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-cover-wrap .home-article-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.article-premium-body {
    width: 100% !important;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-premium-body h4 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--fire-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-premium-body p {
    font-size: 12.5px;
    color: var(--fire-text-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-creator-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.article-author-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.article-creator-line small {
    font-weight: 700;
    color: #374151;
    font-size: 11.5px;
}

.article-premium-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fire-text-muted);
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
    margin-top: 4px;
}

.article-action-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-action-left button {
    border: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    height: 28px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-snappy);
}

.article-action-left button:active {
    transform: scale(0.92);
}

.article-action-left .article-like-btn.is-liked {
    color: var(--fire-base) !important;
}

.article-action-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
}

/* ==========================================================================
   🖼️ STANDARD FEED POST CARDS (TIGHT, CLEAN & PROPORTIONAL)
   ========================================================================== */
.feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
}

.post-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--fire-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    padding: 12px 14px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.post-header > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.avatar-wrapper {
    background: linear-gradient(135deg, #F13423, #FF6B35);
    padding: 2px;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.post-header h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F0F0F;
    line-height: 1.25;
}

.post-header small {
    color: var(--fire-text-muted);
    font-size: 11px;
    font-weight: 600;
}

.post-content {
    margin-bottom: 8px;
}

.post-content h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #0F0F0F;
    letter-spacing: -0.2px;
}

.post-body-copy {
    color: #334155;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.read-more-link {
    color: var(--fire-base) !important;
    font-weight: 800 !important;
    font-size: 13px;
    text-decoration: none !important;
    margin-left: 4px;
}

/* 🖼️ ASPECT 4/3 FOCUSED IMAGE */
.post-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 400px;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 8px;
}

.post-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.multiple-image-badge {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: rgba(0,0,0,0.75); 
    color: #fff; 
    font-size: 10.5px; 
    padding: 3px 7px; 
    border-radius: 10px; 
    font-weight: 800;
}

/* POST ACTIONS */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2px;
    background: transparent;
}

.post-actions button {
    border: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
    transition: var(--transition-snappy);
}

.post-actions button i { 
    font-size: 17px; 
    color: #475569;
}

.post-actions button:active {
    transform: scale(0.92);
}

.post-actions .feed-like-btn.is-liked {
    color: var(--fire-base) !important;
}

.post-actions .feed-like-btn.is-liked i {
    color: var(--fire-base) !important;
}

.post-actions .feed-dislike-btn.is-disliked {
    color: #0F172A !important;
}

.post-like-count {
    font-weight: 800;
    font-size: 12.5px;
}

/* FOLLOW BUTTON */
.inline-follow-btn {
    border: none;
    background: #0F172A;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.inline-follow-btn:active {
    transform: scale(0.94);
}

.home-follow-btn {
    margin-left: auto;
}

/* ==========================================================================
   🌟 POLISHED DESKTOP SIDEBAR (VERIFIED BUSINESSES & PARTNER HUB)
   ========================================================================== */
@media (min-width: 992px) {
    body {
        background: #F4F5F7;
    }

    .app-layout-wrapper {
        display: grid;
        grid-template-columns: 680px 290px;
        justify-content: center;
        padding-left: 260px;
        gap: 20px;
        max-width: 1280px;
        margin: 0 auto;
    }

    .main-content-stream {
        background: #ffffff;
        border-left: 1px solid var(--fire-border);
        border-right: 1px solid var(--fire-border);
        padding-bottom: 40px;
    }

    .desktop-right-sidebar {
        display: flex !important;
        flex-direction: column;
        position: sticky;
        top: 14px;
        height: fit-content;
        gap: 14px;
    }

    .widget-box {
        background: #ffffff;
        border: 1px solid var(--fire-border);
        border-radius: 18px;
        padding: 16px;
        box-shadow: var(--fire-shadow-sm);
    }

    .widget-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .widget-header h4 {
        font-size: 13.5px;
        font-weight: 800;
        color: #0F172A;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .widget-see-all {
        font-size: 11.5px;
        font-weight: 700;
        color: var(--fire-base);
        text-decoration: none;
    }

    .sidebar-biz-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-biz-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .sidebar-biz-item:hover {
        background: #F8FAFC;
    }

    .sb-biz-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        border: 1px solid var(--fire-border);
        flex-shrink: 0;
    }

    .sb-biz-info {
        min-width: 0;
        flex: 1;
    }

    .sb-biz-info strong {
        font-size: 12.5px;
        font-weight: 800;
        color: #0F172A;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sb-biz-info span {
        font-size: 11px;
        color: #64748B;
        display: block;
    }

    .sb-arrow {
        font-size: 18px;
        color: #94A3B8;
    }

    /* PARTNER SPOTLIGHT BANNER */
    .partner-spotlight-box {
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        color: #ffffff;
        border: none;
    }

    .psb-pill {
        display: inline-block;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        color: #38BDF8;
        background: rgba(56, 189, 248, 0.12);
        padding: 3px 8px;
        border-radius: 999px;
        margin-bottom: 6px;
    }

    .psb-content h5 {
        font-size: 15px;
        font-weight: 900;
        margin-bottom: 4px;
        letter-spacing: -0.2px;
    }

    .psb-content p {
        font-size: 11.5px;
        color: #94A3B8;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .btn-psb-action {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #ffffff;
        color: #0F172A;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        transition: transform 0.15s ease;
    }

    .btn-psb-action:active {
        transform: scale(0.96);
    }

    .legal-footer p, .legal-footer a { 
        font-size: 11px; 
        color: #94A3B8;
        text-decoration: none;
    }
}

/* ==========================================================================
   📱 MOBILE ADAPTATIONS (SLIMMER CARDS)
   ========================================================================== */
@media (max-width: 767px) {
    .notification-panel {
        position: fixed;
        top: 56px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    .feed {
        padding: 10px 10px;
    }

    .shorts-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .offers-grid-dual {
        grid-template-columns: 1fr;
    }
}

/* CELEBRATION OVERLAY & MODALS */
#followCelebrationCanvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

.follow-thanks-toast-alert {
    position: fixed;
    top: -80px; left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #111827;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.follow-thanks-toast-alert.show-toast {
    top: 18px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.thanks-toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
}

.thanks-toast-content b { color: #FF6B35; }

.empty-box {
    padding: 50px 16px;
    text-align: center;
    color: var(--fire-text-muted);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--fire-border);
}

/* FULLSCREEN IMAGE MODAL */
.fullscreen-image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    z-index: 99999999 !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.fullscreen-image-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.elastic-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    font-size: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
}

.modal-image-slider {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.modal-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    padding: 10px;
}

.modal-slide-item img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}