/* ==========================================================================
   DESIGN TOKENS — Navy + Bright Blue theme
   ========================================================================== */
:root {
    --navy-900: #071530;
    --navy-800: #0b1f3a;
    --navy-700: #12294d;
    --navy-600: #1e3a8a;

    --brand-700: #1d4ed8;
    --brand-600: #2563eb;
    --brand-500: #3b82f6;
    --brand-400: #60a5fa;
    --brand-300: #93c5fd;
    --brand-200: #bfdbfe;
    --brand-100: #dbeafe;
    --brand-50: #eff6ff;
    --brand-25: #f5f9ff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --page-bg: #eef3fa;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --success: #059669;
    --danger: #dc2626;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 4px 14px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 12px 30px rgba(11, 31, 58, 0.12);
    --shadow-brand: 0 6px 18px rgba(37, 99, 235, 0.28);

    --hero-gradient: linear-gradient(120deg, #071530 0%, #0b1f3a 38%, #1e3a8a 72%, #2563eb 100%);
    --header-gradient: linear-gradient(90deg, #071530 0%, #0b1f3a 45%, #1d4ed8 100%);
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

* {
    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: var(--page-bg);
    color: var(--text-primary);
}

::selection {
    background: var(--brand-200);
    color: var(--navy-800);
}

/* Header Container */
.site-header {
    width: 100%;
    background: var(--header-gradient);
    box-shadow: 0 2px 14px rgba(7, 21, 48, 0.35);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--brand-400);
}

.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: var(--brand-600);
    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: var(--brand-600);
    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: var(--navy-800);
    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: var(--header-gradient);
    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: var(--brand-50);
    color: var(--brand-600);
    padding-left: 24px;
}

.drawer-link svg {
    color: var(--brand-600);
}

.drawer-link-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    padding: 2px 8px;
    border-radius: 12px;
}

.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: var(--brand-25);
    color: var(--brand-600);
    border-left-color: var(--brand-600);
    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, var(--brand-500), var(--brand-600));
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 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;
    }

    /* Search row: selects live in the drawer on mobile */
    .filter-desktop-only {
        display: none !important;
    }
    .hero-search-form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    .filter-search-group {
        flex: 1 1 160px;
        min-width: 0;
    }
    .filter-search-input {
        height: 44px;
        font-size: 0.88rem;
        padding: 0 10px 0 38px;
        border-radius: 10px;
        background: #ffffff;
        border-color: var(--border-strong);
    }
    .filter-search-icon {
        left: 12px;
    }
    .filter-search-icon svg {
        width: 16px;
        height: 16px;
    }
    .btn-filter-submit {
        height: 44px;
        padding: 0 16px;
        font-size: 0.87rem;
        border-radius: 10px;
        flex: 0 0 auto;
        gap: 5px;
    }
    .btn-filter-submit svg {
        width: 16px;
        height: 16px;
    }
    .btn-filter-reset {
        height: 44px;
        padding: 0 12px;
        font-size: 0.82rem;
        border-radius: 10px;
        flex: 0 0 auto;
    }

    /* Feed toolbar */
    .feed-toolbar {
        padding: 10px 12px;
        gap: 8px;
        border-left-width: 3px;
        border-radius: 10px;
    }
    .feed-title {
        font-size: 0.95rem;
    }
    .feed-count-badge {
        font-size: 0.72rem;
        padding: 2px 9px;
    }
    .active-filter-pill {
        font-size: 0.72rem;
        max-width: 165px;
    }
}

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

/* ==========================================================================
   HOMEPAGE HERO — navy band + floating search panel
   ========================================================================== */
.home-hero {
    position: relative;
    width: 100%;
    background: var(--hero-gradient);
    padding: 40px 16px 44px;
    overflow: hidden;
    border-bottom: 3px solid var(--brand-400);
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero::before {
    top: -150px;
    right: -90px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.30) 0%, transparent 68%);
}

.home-hero::after {
    bottom: -170px;
    left: -70px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.26) 0%, transparent 70%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--brand-200);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.hero-title {
    color: #ffffff;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(4, 14, 33, 0.35);
}

.hero-title-accent {
    color: var(--brand-300);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.62;
    max-width: 520px;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.hero-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(3px);
}

.hero-trust-chip-accent {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.42);
    color: #a7f3d0;
}

/* Floating Search Panel */
.hero-search-panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 20px 46px rgba(4, 14, 33, 0.42);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-select-group {
    flex: 1 1 158px;
    min-width: 150px;
}

/* Quick Category Chips */
.hero-chips-row {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    scrollbar-width: thin;
}

.hero-chips-row::-webkit-scrollbar {
    height: 5px;
}

.hero-chips-row::-webkit-scrollbar-thumb {
    background: var(--brand-200);
    border-radius: 4px;
}

.hero-chips-label {
    flex-shrink: 0;
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hero-chip {
    flex-shrink: 0;
    padding: 5px 13px;
    border-radius: 20px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-chip:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

.hero-chip.active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32);
}

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

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

.filter-search-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: var(--surface-alt);
}

.filter-search-input::placeholder {
    color: var(--text-faint);
}

.filter-search-input:focus {
    border-color: var(--brand-500);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

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

.filter-select {
    width: 100%;
    height: 46px;
    padding: 0 34px 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 0.89rem;
    font-weight: 600;
    color: var(--text-secondary);
    outline: none;
    background: var(--surface-alt) 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='%232563eb' stroke-width='2.4' 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, background-color 0.2s;
}

.filter-select:focus {
    border-color: var(--brand-500);
    background-color: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn-filter-submit {
    height: 46px;
    padding: 0 24px;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: var(--shadow-brand);
    white-space: nowrap;
}

.btn-filter-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 9px 22px rgba(37, 99, 235, 0.40);
}

.btn-filter-reset {
    height: 46px;
    padding: 0 16px;
    background: var(--surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-filter-reset:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

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

/* Feed Toolbar (homepage) */
.feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-600);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    box-shadow: var(--shadow-sm);
}

.feed-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.feed-toolbar-right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.feed-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.feed-count-badge {
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-600);
    color: #ffffff;
    padding: 4px 5px 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    max-width: 230px;
    box-shadow: 0 2px 7px rgba(37, 99, 235, 0.26);
}

.active-filter-pill > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-filter-pill svg {
    flex-shrink: 0;
}

.active-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.active-filter-remove:hover {
    background: rgba(255, 255, 255, 0.45);
}

.feed-clear-all {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.feed-clear-all:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Hero responsive — placed after base rules so cascade applies */
@media (max-width: 1024px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-sub {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 22px 12px 24px;
        border-bottom-width: 2px;
    }
    .home-hero-inner {
        gap: 16px;
    }
    .hero-copy {
        gap: 9px;
    }
    .hero-eyebrow {
        font-size: 0.63rem;
        padding: 4px 10px;
        letter-spacing: 0.5px;
    }
    .hero-title {
        font-size: 1.45rem;
        letter-spacing: -0.3px;
    }
    .hero-sub {
        font-size: 0.84rem;
        line-height: 1.55;
    }
    .hero-trust-row {
        gap: 6px;
    }
    .hero-trust-chip {
        font-size: 0.71rem;
        padding: 5px 10px;
        border-radius: 9px;
    }
    .hero-search-panel {
        padding: 12px;
        gap: 10px;
        border-radius: var(--radius-md);
        box-shadow: 0 12px 28px rgba(4, 14, 33, 0.34);
    }
    .hero-chips-row {
        padding-top: 10px;
    }
    .hero-chips-label {
        display: none;
    }
    .hero-chip {
        font-size: 0.76rem;
        padding: 5px 11px;
    }
}

/* ==========================================================================
   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: 16px;
    position: sticky;
    top: 82px;
}

.sidebar-filter-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-header {
    background: linear-gradient(100deg, var(--navy-800) 0%, var(--brand-700) 100%);
    padding: 12px 15px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-header svg {
    color: var(--brand-300);
    flex-shrink: 0;
}

.sidebar-widget-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 1px 9px;
    border-radius: 20px;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.5;
}

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

.sidebar-list-scroll {
    max-height: 288px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-list-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-list-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-200);
    border-radius: 4px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 15px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-cat-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-cat-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-cat-item:hover {
    background: var(--brand-25);
    color: var(--brand-700);
    border-left-color: var(--brand-500);
    padding-left: 19px;
}

.sidebar-cat-item:hover .sidebar-cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-cat-item.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 700;
    border-left-color: var(--brand-600);
}

.sidebar-cat-item.active .sidebar-cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp Support Widget */
.sidebar-support-card {
    background: linear-gradient(140deg, var(--brand-50) 0%, #ffffff 100%);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-md);
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-shadow: var(--shadow-sm);
}

.sidebar-support-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.32);
}

.sidebar-support-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sidebar-support-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-support-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.sidebar-support-btn {
    flex-shrink: 0;
    background: #25d366;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, transform 0.18s ease;
}

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

/* 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: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    height: 176px;
    min-height: 176px;
    max-height: 176px;
    box-sizing: border-box;
}

.frontend-ad-card::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
    pointer-events: none;
}

.frontend-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11, 31, 58, 0.13);
    border-color: var(--brand-200);
}

.frontend-ad-card:hover::after {
    opacity: 1;
}

.frontend-ad-card:hover .ad-card-heading {
    color: var(--brand-700);
}

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

.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;
}

/* Real Image Badge */
.ad-real-image-badge {
    background: var(--brand-600);
    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, var(--brand-500), var(--brand-600));
    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: var(--brand-50);
    color: var(--brand-600);
    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: var(--text-primary);
    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;
    transition: color 0.18s ease;
}

.ad-card-price-tag {
    align-self: flex-start;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    font-size: 0.98rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin: 2px 0;
    line-height: 1.25;
    flex-shrink: 0;
    white-space: nowrap;
}

.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: var(--radius-lg);
    border: 1.5px dashed var(--brand-200);
    padding: 56px 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: var(--brand-50);
    color: var(--brand-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.feed-empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-800);
}

.feed-empty-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.6;
}

.feed-empty-cta {
    text-decoration: none;
    margin-top: 10px;
}

/* ==========================================================================
   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: var(--brand-600);
}

.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: var(--navy-900);
    color: #94a3b8;
    margin-top: 48px;
    border-top: 3px solid var(--brand-600);
    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-social-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.footer-social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

.footer-social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-btn svg {
    display: block;
    transition: transform 0.3s ease;
}

.footer-social-btn:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.footer-social-btn:hover svg {
    transform: scale(1.1);
}

.footer-wa-badge {
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-wa-badge:hover {
    color: #25d366;
    transform: translateX(3px);
}

.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: var(--brand-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.breadcrumb-nav a:hover {
    color: var(--brand-500);
    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: var(--brand-600);
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 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: var(--brand-50);
    color: var(--brand-600);
    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, var(--brand-500), var(--brand-600));
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 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: var(--brand-600);
    color: var(--brand-600);
    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(11, 31, 58, 0.08);
    }

    .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: #e7eefb;
    }

    .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: 0.90rem;
        font-weight: 800;
        margin: 1px 0;
        padding: 2px 8px;
        line-height: 1.25;
        background: var(--brand-50);
        border: 1px solid var(--brand-100);
        color: var(--brand-700);
        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
   ========================================================================== */
#scrollSentinel {
    height: 10px;
    margin-top: 10px;
}

.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: fit-content;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 11px 22px;
    background: #ffffff;
    border: 1px solid var(--brand-100);
    border-radius: 30px;
    color: var(--brand-700);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.spinner-dot-ring {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand-600);
    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;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 10px 20px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 30px;
    color: var(--brand-700);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==========================================================================
   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, var(--navy-900) 0%, var(--navy-800) 55%, var(--brand-700) 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(37, 99, 235, 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(37, 99, 235, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: var(--brand-300);
    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: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 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, var(--brand-500), var(--brand-600));
    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: var(--brand-gradient);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 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(37, 99, 235, 0.10);
    border-color: var(--brand-200);
}

/* 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, var(--brand-500), var(--brand-600));
    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: var(--brand-50);
    color: var(--brand-600);
    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;
}
