* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f6f9;
}

/* Header Container */
.site-header {
    width: 100%;
    background: linear-gradient(90deg, #e91e63 0%, #8e24aa 50%, #3f51b5 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Top Navbar Row */
.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px;
    outline: none;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.site-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.site-name {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Desktop Middle Navigation */
.nav-center-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-item {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-item:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-link-item.active {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Header Agent Button */
.nav-btn-agent {
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 9px;
    font-size: 0.90rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn-agent:hover,
.nav-btn-agent.active {
    background: #ffffff;
    color: #8e24aa;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.mobile-header-right {
    display: none;
    align-items: center;
}

.mobile-top-agent-btn {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.mobile-top-agent-btn:hover,
.mobile-top-agent-btn.active {
    background: #ffffff;
    color: #8e24aa;
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .mobile-header-right {
        display: flex;
    }
}

/* Right Action Button */
.nav-right {
    display: flex;
    align-items: center;
}

.btn-post-ad {
    background: #ffeb3b;
    color: #1e1b4b;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-post-ad:hover {
    background: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #0f172a;
}

.btn-post-ad svg {
    stroke-width: 2.8;
}

/* Mobile Drawer Backdrop Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Side Drawer (Left to Right) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

/* Drawer Menu Styles */
.drawer-header {
    background: linear-gradient(90deg, #e91e63 0%, #8e24aa 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-name-drawer {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    outline: none;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.drawer-body {
    padding: 8px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.drawer-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.drawer-section-title {
    padding: 6px 20px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
    background-color: #f3e8ff;
    color: #8e24aa;
    padding-left: 24px;
}

.drawer-link svg {
    color: #8e24aa;
}

.drawer-sub-items {
    display: flex;
    flex-direction: column;
    max-height: 200px;
    overflow-y: auto;
    padding: 2px 0;
}

.drawer-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 8px 28px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.drawer-sub-link:hover,
.drawer-sub-link.active {
    background-color: #faf5ff;
    color: #8e24aa;
    border-left-color: #8e24aa;
    padding-left: 32px;
}

.drawer-footer {
    padding: 10px 20px 20px 20px;
    margin-top: auto;
}

.btn-drawer-post {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #e91e63, #8e24aa);
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(142, 36, 170, 0.25);
    transition: transform 0.2s;
}

.btn-drawer-post:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .site-main-content {
        padding: 14px 12px 50px 12px;
        gap: 16px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-center-links {
        display: none;
    }
    .btn-post-ad {
        padding: 7px 12px;
        font-size: 0.84rem;
        border-radius: 8px;
    }
    .filter-desktop-only,
    .category-chips-wrap {
        display: none !important;
    }
    .frontend-filter-card {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .frontend-filter-form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
    }
    .filter-search-group {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .filter-search-input {
        height: 42px !important;
        font-size: 0.88rem !important;
        padding-left: 36px !important;
        padding-right: 8px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }
    .filter-search-icon {
        left: 11px !important;
    }
    .filter-search-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    .btn-filter-submit {
        height: 42px !important;
        padding: 0 16px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }
    .btn-filter-submit svg {
        width: 16px !important;
        height: 16px !important;
    }
    .btn-filter-reset {
        height: 42px !important;
        padding: 0 12px !important;
        font-size: 0.84rem !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   FRONTEND ADS FEED & CONTENT
   ========================================================================== */
.site-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 60px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Filter & Search Bar */
.frontend-filter-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 20px 24px;
}

.frontend-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filter-search-group {
    flex: 2;
    min-width: 240px;
}

.filter-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.filter-search-input:focus {
    border-color: #8e24aa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.12);
}

.filter-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    border-color: #8e24aa;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.12);
}

.btn-filter-submit {
    height: 44px;
    padding: 0 22px;
    background: linear-gradient(135deg, #e91e63 0%, #8e24aa 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 8px rgba(142, 36, 170, 0.25);
    white-space: nowrap;
}

.btn-filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(142, 36, 170, 0.35);
}

.btn-filter-reset {
    height: 44px;
    padding: 0 16px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-filter-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Category Quick Filter Chips */
.category-chips-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.category-chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-chip:hover,
.category-chip.active {
    background: #f3e8ff;
    color: #8e24aa;
    border-color: #d8b4fe;
}

/* Section Header */
.feed-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.feed-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-count-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================================================
   HOMEPAGE LAYOUT (PC Sidebar on Left, Ads Feed on Right)
   ========================================================================== */
.home-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.home-left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-filter-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-category-list {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-cat-item:hover {
    background: #faf5ff;
    color: #8e24aa;
    border-left-color: #8e24aa;
    padding-left: 22px;
}

.sidebar-cat-item.active {
    background: #f3e8ff;
    color: #8e24aa;
    font-weight: 700;
    border-left-color: #8e24aa;
}

/* PC Left Sidebar is strictly hidden on Mobile & Tablet (<= 992px) */
@media (max-width: 992px) {
    .home-layout-grid {
        grid-template-columns: 1fr;
        display: block;
    }
    .home-left-sidebar,
    aside.home-left-sidebar {
        display: none !important;
    }
}

.home-main-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ==========================================================================
   HORIZONTAL AD CARDS (PC 2-Column, Mobile 1-Column)
   ========================================================================== */
.ads-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ads-feed-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Modern Horizontal Ad Card - Fixed Consistent Height */
.frontend-ad-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    height: 176px;
    min-height: 176px;
    max-height: 176px;
    box-sizing: border-box;
}

.frontend-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.ad-card-media {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    height: 100%;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 14px 0 0 14px;
}

.ad-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.frontend-ad-card:hover .ad-card-media img {
    transform: scale(1.05);
}

.ad-photo-count-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Badges Container Floating Across Top-Right Border of Card */
.ad-card-top-badges {
    position: absolute;
    top: 0;
    right: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    border: 1.5px solid #ffffff;
    overflow: hidden;
}

/* Purple Real Image Badge (Dam pata) */
.ad-real-image-badge {
    background: #8e24aa;
    color: #ffffff;
    padding: 2.5px 8px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.ad-type-badge {
    position: static;
    background: linear-gradient(135deg, #e91e63, #8e24aa);
    color: #ffffff;
    padding: 2.5px 9px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 0;
}

/* Fake Ad Warning Badge (Top-Left on Thumbnail Image) */
.ad-fake-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #dc2626;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
    z-index: 2;
    line-height: 1.2;
    white-space: nowrap;
}

.ad-card-content {
    padding: 9px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    flex: 1;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ad-card-top-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding-top: 4px;
    padding-right: 0;
    margin-bottom: 2px;
}

.ad-cat-pill {
    background: #f3e8ff;
    color: #8e24aa;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.ad-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.73rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.ad-cashback-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.70rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.ad-cashback-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.ad-card-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.28;
    margin: 2px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-card-price-tag {
    font-size: 1.08rem;
    font-weight: 800;
    color: #059669;
    margin: 1px 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.ad-card-footer-info {
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
}

.ad-card-time {
    font-size: 0.73rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ad-card-apps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ad-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.ad-app-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

.ad-app-icon.icon-whatsapp { color: #25D366; }
.ad-app-icon.icon-viber { color: #7360F2; }
.ad-app-icon.icon-imo { color: #0084FF; }
.ad-app-icon.icon-telegram { color: #229ED9; }

/* Empty State */
.feed-empty-state {
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.feed-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.feed-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.feed-empty-desc {
    font-size: 0.92rem;
    color: #64748b;
    max-width: 420px;
}

/* ==========================================================================
   FRONTEND AD DETAIL MODAL
   ========================================================================== */
.ad-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ad-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.ad-modal-box {
    background: #ffffff;
    border-radius: 18px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.ad-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ad-modal-close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.ad-modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ad-modal-scrollable {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Gallery inside Modal */
.modal-gallery-main {
    width: 100%;
    height: 360px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.modal-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.modal-thumb-item {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.modal-thumb-item.active,
.modal-thumb-item:hover {
    border-color: #8e24aa;
}

.modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.modal-price-big {
    font-size: 1.6rem;
    font-weight: 800;
    color: #059669;
}

.ad-modal-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-contact-call {
    background: #059669;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    transition: transform 0.15s, background-color 0.15s;
}

.btn-contact-call:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-contact-wa {
    background: #25D366;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: transform 0.15s, background-color 0.15s;
}

.btn-contact-wa:hover {
    background: #1ebc59;
    transform: translateY(-1px);
}

.ad-modal-desc-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    white-space: pre-wrap;
}

.site-footer,
.site-footer-modern {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 48px;
    border-top: 1px solid #1e293b;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 20px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: fit-content;
}

.footer-tagline {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 380px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-nav-list li a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #cbd5e1;
    font-weight: 500;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.84rem;
    color: #64748b;
}

.footer-copyright strong {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-container {
        padding: 30px 16px 16px;
    }
}

/* ==========================================================================
   DEDICATED AD DETAILS PAGE (view_ad.php)
   ========================================================================== */
.ad-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 60px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #64748b;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #8e24aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.breadcrumb-nav a:hover {
    color: #e91e63;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #cbd5e1;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-column Layout */
.ad-view-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 992px) {
    .ad-view-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Left Column */
.ad-view-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ad-view-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ad-view-header-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
}

.ad-view-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.32;
    margin: 0;
    letter-spacing: -0.025em;
    word-break: break-word;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .ad-view-title {
        font-size: 1.35rem;
        line-height: 1.35;
        letter-spacing: -0.02em;
    }
    .ad-view-header-block {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }
}

.ad-view-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    border-radius: 10px;
    width: fit-content;
}

@media (max-width: 640px) {
    .ad-view-meta-bar {
        width: 100%;
        gap: 8px;
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

.ad-view-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Cashback Guarantee Notice Box (Above Image Gallery) */
.ad-cashback-notice-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-cashback-notice-si {
    font-size: 0.95rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.5;
}

.ad-cashback-notice-en {
    font-size: 0.90rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.4;
}

/* Fake Ad Warning Notice Box (Above Image Gallery) */
.ad-fake-notice-box {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-fake-notice-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 2px;
}

.ad-fake-notice-si {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.5;
}

.ad-fake-notice-en {
    font-size: 0.90rem;
    font-weight: 600;
    color: #dc2626;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .ad-cashback-notice-box,
    .ad-fake-notice-box {
        padding: 10px 14px;
        margin-bottom: 12px;
    }
    .ad-cashback-notice-si,
    .ad-fake-notice-si {
        font-size: 0.88rem;
    }
    .ad-cashback-notice-en,
    .ad-fake-notice-en {
        font-size: 0.84rem;
    }
}

/* Gallery Showcase */
.ad-gallery-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ad-gallery-viewer {
    width: 100%;
    height: 460px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
    .ad-gallery-viewer {
        height: 300px;
    }
}

.ad-gallery-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.ad-gallery-thumbs-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
}

.ad-gallery-thumb-btn {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2.5px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.ad-gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-gallery-thumb-btn.active,
.ad-gallery-thumb-btn:hover {
    border-color: #8e24aa;
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(142, 36, 170, 0.2);
}

/* Price Row Directly Below Image Gallery */
/* Main Price & Actions Box */
.ad-main-price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-main-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.ad-main-price-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ad-main-price-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.ad-main-price-val {
    font-size: 2rem;
    font-weight: 900;
    color: #059669;
    line-height: 1.1;
}

.ad-apps-available-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.apps-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.ad-apps-icons-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-mobile-actions-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.ad-end-contact-box {
    display: none;
    margin-bottom: 24px;
}

.ad-end-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .ad-mobile-actions-container {
        display: flex;
        gap: 7px;
        margin-top: 12px;
    }
    .ad-end-contact-box {
        display: block;
        margin-bottom: 20px;
    }
    .ad-end-contact-actions {
        gap: 7px;
    }
    .btn-sidebar-call,
    .btn-sidebar-whatsapp,
    .btn-sidebar-viber,
    .btn-sidebar-telegram,
    .btn-sidebar-imo {
        padding: 7px 12px;
        font-size: 0.86rem;
        border-radius: 8px;
        gap: 7px;
    }
    .btn-sidebar-call svg,
    .btn-sidebar-whatsapp svg,
    .btn-sidebar-viber svg,
    .btn-sidebar-telegram svg,
    .btn-sidebar-imo svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .ad-mobile-actions-container,
    .ad-end-contact-actions {
        gap: 6px;
    }
    .btn-sidebar-call,
    .btn-sidebar-whatsapp,
    .btn-sidebar-viber,
    .btn-sidebar-telegram,
    .btn-sidebar-imo {
        padding: 6px 10px;
        font-size: 0.82rem;
        border-radius: 7px;
        gap: 6px;
    }
    .btn-sidebar-call svg,
    .btn-sidebar-whatsapp svg,
    .btn-sidebar-viber svg,
    .btn-sidebar-telegram svg,
    .btn-sidebar-imo svg {
        width: 15px;
        height: 15px;
    }
}

/* Specs Overview Grid */
.ad-specs-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .ad-specs-overview {
        display: none !important;
    }
}

.ad-spec-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-spec-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3e8ff;
    color: #8e24aa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ad-spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

/* Description Section */
.ad-description-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ad-section-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

/* End of Description Contact CTA Box (Mobile Only) */
.ad-end-contact-box {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 992px) {
    .ad-end-contact-box {
        display: flex;
    }
}

.ad-end-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.ad-end-contact-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.ad-end-price-tag {
    font-size: 1.35rem;
    font-weight: 900;
    color: #059669;
}

.ad-end-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Safety Tips & Advisory Box */
.safety-tips-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.04);
}

.safety-tips-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #fef3c7;
    padding-bottom: 12px;
}

.safety-tips-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.safety-tip-p {
    font-size: 0.92rem;
    color: #78350f;
    line-height: 1.65;
    margin: 0;
}

.safety-tip-p strong {
    color: #92400e;
}

.safety-tip-p.en-text {
    font-size: 0.86rem;
    color: #92400e;
    font-style: italic;
    opacity: 0.95;
    line-height: 1.55;
}

.safety-tip-divider {
    border: 0;
    border-top: 1px dashed #fde68a;
    margin: 4px 0;
}

.safety-complaint-box {
    margin-top: 6px;
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.05);
}

.safety-complaint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #9a3412;
}

.safety-complaint-header svg {
    color: #ea580c;
    flex-shrink: 0;
}

.safety-complaint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
    align-self: flex-start;
    margin-top: 2px;
}

.safety-complaint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, #2ee06e 0%, #0e7b6e 100%);
    color: #ffffff !important;
}

.safety-complaint-btn svg {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .safety-complaint-box {
        padding: 14px;
    }
    .safety-complaint-btn {
        width: 100%;
        text-align: center;
    }
}

/* Sidebar Right Column */
.ad-view-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* Price Section Display Rules for Mobile & Desktop */
.mobile-price-section {
    display: none;
}

.desktop-price-section {
    display: block;
}

@media (max-width: 992px) {
    .mobile-price-section {
        display: block;
    }
    .desktop-price-section {
        display: none;
    }
}

.sidebar-price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-price-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.sidebar-price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #059669;
    margin: 4px 0 16px 0;
}

.sidebar-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #8e24aa);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(142, 36, 170, 0.25);
    flex-shrink: 0;
}

.seller-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.seller-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: #059669;
    font-weight: 600;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 3px;
}

.btn-sidebar-call,
.btn-sidebar-whatsapp,
.btn-sidebar-viber,
.btn-sidebar-telegram,
.btn-sidebar-imo {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-sidebar-call svg,
.btn-sidebar-whatsapp svg,
.btn-sidebar-viber svg,
.btn-sidebar-telegram svg,
.btn-sidebar-imo svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sidebar-call {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #1e293b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.btn-sidebar-call:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.btn-sidebar-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.22);
}

.btn-sidebar-whatsapp:hover {
    background: #1ebc59;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.32);
}

.btn-sidebar-viber {
    background: #7360f2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(115, 96, 242, 0.22);
}

.btn-sidebar-viber:hover {
    background: #5e48ea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 96, 242, 0.32);
}

.btn-sidebar-telegram {
    background: #0088cc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.22);
}

.btn-sidebar-telegram:hover {
    background: #0077b5;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.32);
}

.btn-sidebar-imo {
    background: #00a4e4;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 164, 228, 0.22);
}

.btn-sidebar-imo:hover {
    background: #008ec6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 164, 228, 0.32);
}

.apps-available-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.share-ad-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.share-ad-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.share-btns-row {
    display: flex;
    gap: 10px;
}

.btn-share-icon {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-icon:hover {
    background: #ffffff;
    border-color: #8e24aa;
    color: #8e24aa;
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE HORIZONTAL AD CARD (Image Left, Details Right)
   ========================================================================== */
@media (max-width: 768px) {
    .ads-feed-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .frontend-ad-card {
        flex-direction: row;
        align-items: stretch;
        border-radius: 12px;
        background: #ffffff;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        box-sizing: border-box;
    }

    .frontend-ad-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .ad-card-media {
        width: 148px;
        min-width: 148px;
        max-width: 148px;
        height: 100%;
        min-height: auto;
        position: relative;
        flex-shrink: 0;
        border-radius: 12px 0 0 12px;
        background: #f1f5f9;
    }

    .ad-card-media img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .ad-card-content {
        padding: 7px 11px;
        gap: 2px;
        flex: 1;
        min-width: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        overflow: hidden;
    }

    .ad-card-top-tags {
        gap: 4px;
        margin-bottom: 1px;
        padding-top: 3px;
        padding-right: 0;
    }

    .ad-cat-pill {
        font-size: 0.68rem;
        padding: 1px 6px;
    }

    .ad-city-pill {
        font-size: 0.70rem;
    }

    .ad-card-heading {
        font-size: 0.86rem;
        line-height: 1.25;
        font-weight: 700;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin: 0;
    }

    .ad-card-price-tag {
        font-size: 1.02rem;
        font-weight: 800;
        margin-top: 0;
        line-height: 1.2;
        color: #059669;
        flex-shrink: 0;
    }

    .ad-card-footer-info {
        margin-top: auto;
        padding-top: 4px;
        border-top: 1px dashed #f1f5f9;
        gap: 4px;
        flex-shrink: 0;
    }

    .ad-card-time {
        font-size: 0.70rem;
    }

    .ad-app-icon svg {
        width: 14px;
        height: 14px;
    }

    .ad-photo-count-badge {
        bottom: 5px;
        left: 5px;
        padding: 2px 5px;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .ad-card-top-badges {
        top: 0;
        right: 10px;
        transform: translateY(-50%);
        border-radius: 5px;
    }

    .ad-real-image-badge,
    .ad-type-badge {
        padding: 2px 7px;
        font-size: 0.58rem;
    }

    .ad-fake-badge {
        top: 5px;
        left: 5px;
        padding: 2px 5px;
        font-size: 0.58rem;
    }
}

@media (max-width: 480px) {
    .frontend-ad-card {
        height: 152px;
        min-height: 152px;
        max-height: 152px;
        border-radius: 10px;
    }

    .ad-card-media {
        width: 135px;
        min-width: 135px;
        max-width: 135px;
        border-radius: 10px 0 0 10px;
    }

    .ad-card-content {
        padding: 6px 9px;
        gap: 1px;
    }

    .ad-card-heading {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .ad-card-price-tag {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .ad-card-top-tags {
        padding-top: 2px;
        padding-right: 0;
    }

    .ad-card-top-badges {
        top: 0;
        right: 8px;
        transform: translateY(-50%);
        border-radius: 5px;
    }

    .ad-cat-pill, .ad-city-pill, .ad-cashback-pill {
        font-size: 0.62rem;
        padding: 1px 5px;
        white-space: nowrap;
    }

    .ad-card-time {
        font-size: 0.67rem;
    }

    .ad-card-footer-info {
        flex-shrink: 0;
    }

    .ad-app-icon svg {
        width: 13px;
        height: 13px;
    }
}

/* ==========================================================================
   INFINITE SCROLL LOADER & ENDED STATE
   ========================================================================== */
.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.spinner-dot-ring {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #8e24aa;
    border-radius: 50%;
    animation: spinInfinite 0.75s linear infinite;
}

@keyframes spinInfinite {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-ended {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px dashed #e2e8f0;
    margin-top: 20px;
}

/* ==========================================================================
   AGENTS DIRECTORY PAGE (6 Columns PC, 2 Columns Mobile)
   ========================================================================== */
.agents-page-wrapper {
    padding: 24px 16px 48px;
    min-height: 80vh;
}

.agents-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Agents Hero Card */
.agents-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #3b0764 100%);
    border-radius: 16px;
    padding: 28px 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.agents-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(142, 36, 170, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.agents-hero-content {
    flex: 1;
    min-width: 260px;
    position: relative;
    z-index: 1;
}

.agents-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(142, 36, 170, 0.35);
    border: 1px solid rgba(240, 98, 146, 0.4);
    color: #f472b6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.agents-hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #ffffff;
}

.agents-hero-subtitle {
    font-size: 0.92rem;
    color: #cbd5e1;
    max-width: 480px;
    line-height: 1.45;
}

/* Agents Search Bar */
.agents-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.agents-search-input-wrap {
    position: relative;
    flex: 1;
}

.agents-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.agents-search-input {
    width: 100%;
    padding: 10px 34px 10px 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.agents-search-input::placeholder {
    color: #94a3b8;
}

.agents-search-input:focus {
    background: rgba(255, 255, 255, 0.20);
    border-color: #f06292;
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.25);
}

.agents-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.2rem;
    text-decoration: none;
    line-height: 1;
}

.agents-search-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #e91e63, #8e24aa);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.agents-search-btn:hover {
    background: linear-gradient(135deg, #d81b60, #7b1fa2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

/* Results header bar */
.agents-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.agents-count-info {
    font-size: 0.90rem;
    color: #475569;
    font-weight: 600;
}

.agents-count-info strong {
    color: #0f172a;
    font-weight: 800;
}

.agents-filter-active {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #64748b;
}

.agents-reset-pill {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.agents-reset-pill:hover {
    background: #cbd5e1;
}

/* ==========================================================================
   AGENTS GRID (6 Columns PC, 2 Columns Mobile)
   ========================================================================== */
.agents-feed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1199px) and (min-width: 992px) {
    .agents-feed-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .agents-feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .agents-feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .agents-page-wrapper {
        padding: 16px 12px 36px;
    }

    .agents-hero-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .agents-hero-title {
        font-size: 1.35rem;
    }

    .agents-hero-subtitle {
        font-size: 0.84rem;
    }

    .agents-search-form {
        max-width: 100%;
    }
}

/* Agent Card Design */
.agent-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(142, 36, 170, 0.10);
    border-color: #d8b4fe;
}

/* Avatar Wrap (Boxed) */
.agent-avatar-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.agent-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.agent-card:hover .agent-avatar-img {
    transform: scale(1.05);
}

.agent-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(135deg, #e91e63, #8e24aa);
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.agent-verified-tick {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Agent Name */
.agent-name {
    font-size: 0.90rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 4px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Role Pill */
.agent-role-pill {
    display: inline-block;
    background: #f3e8ff;
    color: #8e24aa;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Contact Actions Stack */
.agent-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}

.btn-agent-call {
    width: 100%;
    padding: 7px 6px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-agent-call:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

.btn-agent-wa {
    width: 100%;
    padding: 8px 8px;
    background: #25D366;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.18);
}

.btn-agent-wa:hover {
    background: #1ebc59;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.28);
}

/* Empty state */
.agents-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.agents-empty-icon {
    width: 72px;
    height: 72px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #94a3b8;
}

.agents-empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.agents-empty-desc {
    font-size: 0.90rem;
    color: #64748b;
    line-height: 1.5;
}
