/* ==========================================================================
   MODERN DESIGN SYSTEM - CSS Custom Properties
   ========================================================================== */
:root {
    /* Colors - Primary Brand */
    --color-primary-50: #fdf4ff;
    --color-primary-100: #fae8ff;
    --color-primary-200: #f5d0fe;
    --color-primary-300: #f0abfc;
    --color-primary-400: #e879f9;
    --color-primary-500: #d946ef;
    --color-primary-600: #c026d3;
    --color-primary-700: #a21caf;
    --color-primary-800: #86198f;
    --color-primary-900: #701a75;
    
    /* Colors - Secondary (Pink) */
    --color-pink-50: #fdf2f8;
    --color-pink-100: #fce7f3;
    --color-pink-500: #ec4899;
    --color-pink-600: #db2777;
    
    /* Colors - Blue */
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    
    /* Colors - Green (Success/Cashback) */
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-500: #22c55e;
    --color-green-600: #16a34a;
    --color-green-700: #15803d;
    
    /* Colors - Red (Fake/Warning) */
    --color-red-50: #fef2f2;
    --color-red-100: #fee2e2;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    
    /* Colors - Amber/Yellow */
    --color-amber-50: #fffbeb;
    --color-amber-100: #fef3c7;
    --color-amber-500: #f59e0b;
    --color-amber-600: #d97706;
    
    /* Colors - Neutral */
    --color-white: #ffffff;
    --color-slate-25: #fcfcfd;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    
    /* Semantic Colors */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-slate-50);
    --bg-tertiary: var(--color-slate-100);
    --bg-inverse: var(--color-slate-900);
    
    --text-primary: var(--color-slate-900);
    --text-secondary: var(--color-slate-600);
    --text-tertiary: var(--color-slate-400);
    --text-inverse: var(--color-white);
    --text-link: var(--color-primary-600);
    --text-link-hover: var(--color-primary-700);
    
    --border-light: var(--color-slate-200);
    --border-medium: var(--color-slate-300);
    --border-focus: var(--color-primary-500);
    
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
    
    --header-height: 64px;
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--color-slate-900);
        --bg-secondary: var(--color-slate-800);
        --bg-tertiary: var(--color-slate-700);
        --text-primary: var(--color-slate-50);
        --text-secondary: var(--color-slate-400);
        --text-tertiary: var(--color-slate-500);
        --border-light: var(--color-slate-700);
        --border-medium: var(--color-slate-600);
    }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Container */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-600) 100%);
    box-shadow: var(--shadow-md);
    padding: 12px var(--container-padding);
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    height: var(--header-height);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

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

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
    outline: none;
    transition: background-color var(--transition-fast);
}

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

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

.logo-box {
    width: 42px;
    height: 42px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.site-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.site-name {
    color: var(--color-white);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    white-space: nowrap;
}

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

.nav-link-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.nav-link-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* Header Agent Button */
.nav-btn-agent {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-btn-agent:hover,
.nav-btn-agent.active {
    background: var(--color-white);
    color: var(--color-primary-700);
    border-color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.mobile-top-agent-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.mobile-top-agent-btn:hover,
.mobile-top-agent-btn.active {
    background: var(--color-white);
    color: var(--color-primary-700);
    border-color: var(--color-white);
}

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

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

.btn-post-ad {
    background: var(--color-amber-500);
    color: var(--color-slate-900);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-post-ad:hover {
    background: var(--color-amber-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-slate-900);
}

.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: var(--color-slate-950);
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-modal-backdrop);
}

.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: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
    overflow-y: auto;
}

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

/* Drawer Menu Styles */
.drawer-header {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-name-drawer {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 800;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-white);
    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: 12px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.drawer-section {
    border-bottom: 1px solid var(--color-slate-100);
    padding-bottom: 12px;
}

.drawer-section-title {
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-slate-400);
    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: 12px 20px;
    color: var(--color-slate-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    margin: 0 12px;
}

.drawer-link:hover,
.drawer-link.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary-700);
    padding-left: 24px;
}

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

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

.drawer-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 28px;
    color: var(--color-slate-500);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-right: 12px;
}

.drawer-sub-link:hover,
.drawer-sub-link.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary-700);
    border-left-color: var(--color-primary-600);
    padding-left: 32px;
}

.drawer-footer {
    padding: 12px 20px 24px 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(--color-primary-600), var(--color-primary-700));
    color: var(--color-white);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(142, 36, 170, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-drawer-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142, 36, 170, 0.4);
}

@media (max-width: 768px) {
    .site-main-content {
        padding: 0;
        gap: 0;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-center-links {
        display: none;
    }
    .btn-post-ad {
        padding: 8px 14px;
        font-size: 0.84rem;
        border-radius: var(--radius-md);
    }
    .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: 16px !important;
        padding-left: 36px !important;
        padding-right: 8px !important;
        border-radius: 10px !important;
        background: var(--color-white) !important;
        border: 1.5px solid var(--border-light) !important;
        box-shadow: var(--shadow-xs) !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;
    }
}

/* ==========================================================================
   MODERN HOMEPAGE SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px var(--container-padding) 70px;
    margin: 0 calc(-1 * var(--container-padding));
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-primary-600) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-pink-500);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-gradient-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-blue-500);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.hero-gradient-orb.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--color-primary-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero Search Form */
.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

.hero-search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search-input-group {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.hero-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.hero-search-input {
    width: 100%;
    height: 56px;
    padding: 0 24px 0 56px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    color: var(--text-primary);
    background: var(--color-slate-50);
    outline: none;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-input:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.hero-search-input:focus + .hero-search-icon,
.hero-search-input-group:focus-within .hero-search-icon {
    color: var(--color-primary-500);
}

.hero-search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-filter-item {
    position: relative;
}

.hero-filter-select {
    height: 56px;
    padding: 0 48px 0 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--color-slate-50);
    outline: none;
    appearance: none;
    cursor: pointer;
    min-width: 180px;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
    background-image: 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='%2394a3b8' 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");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hero-filter-select:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.hero-search-btn {
    height: 56px;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(142, 36, 170, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142, 36, 170, 0.45);
}

.hero-search-btn:active {
    transform: translateY(0);
}

.hero-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    margin: 0 auto;
    width: fit-content;
}

.hero-clear-filters:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Hero Trust Indicators */
.hero-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trust-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Featured Categories Section (Compact & Modern) */
.featured-categories-section {
    padding: 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 0 10px 0;
}

.section-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg {
    color: var(--color-primary-600);
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-600);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.section-view-all:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    gap: 6px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 100%;
    margin: 0;
}

.category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-50) 0%, rgba(142, 36, 170, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary-300);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: var(--color-primary-600);
    transition: all 0.2s ease;
    z-index: 1;
}

.category-icon-wrapper svg {
    width: 17px;
    height: 17px;
}

.category-card:hover .category-icon-wrapper {
    background: var(--color-primary-600);
    border-color: var(--color-primary-600);
    color: var(--color-white);
    transform: scale(1.05);
}

.category-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-name {
    color: var(--color-primary-700);
}

.category-arrow {
    display: none;
}

/* Advanced Filter Bar (Sticky) */
.advanced-filter-bar {
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 12px var(--container-padding);
    margin: 0 calc(-1 * var(--container-padding));
}

.filter-bar-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.filter-search-group {
    flex: 1;
    min-width: 240px;
    position: relative;
}

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

.filter-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    background: var(--color-slate-50);
}

.filter-search-input:focus {
    border-color: var(--border-focus);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.filter-search-input:focus + .filter-search-icon,
.filter-search-group:focus-within .filter-search-icon {
    color: var(--color-primary-500);
}

.filter-select-group {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    background: var(--color-slate-50) 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='%2394a3b8' 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 var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--border-focus);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Filter Submit Button */
.btn-filter-submit {
    height: 44px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 3px 8px rgba(142, 36, 170, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.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: var(--color-slate-100);
    color: var(--color-slate-600);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.btn-filter-reset:hover {
    background: var(--color-slate-200);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

/* ==========================================================================
   IMPROVED AD CARD STYLES
   ========================================================================== */

.ads-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .ads-feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

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

/* Modern Horizontal Ad Card */
.frontend-ad-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    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(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-200);
}

.ad-card-media {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    height: 100%;
    background: var(--color-slate-100);
    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 var(--transition-slow);
    display: block;
}

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

.ad-photo-count-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

/* Top Badges (Real Image & Type) */
.ad-card-top-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.ad-real-image-badge,
.ad-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.ad-real-image-badge {
    background: var(--color-primary-600);
    color: var(--color-white);
}

.ad-type-badge {
    background: linear-gradient(135deg, var(--color-pink-500), var(--color-primary-600));
    color: var(--color-white);
}

/* Fake Ad Badge */
.ad-fake-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-red-600);
    color: var(--color-white);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    line-height: 1;
    white-space: nowrap;
}

/* Ad Card Content */
.ad-card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    flex: 1;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ad-card-top-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ad-cat-pill {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid var(--color-primary-200);
}

.ad-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--color-slate-500);
    font-weight: 500;
    white-space: nowrap;
}

.ad-cashback-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--color-green-50);
    color: var(--color-green-700);
    border: 1px solid var(--color-green-100);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.ad-card-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 4px 0 2px;
    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.125rem;
    font-weight: 800;
    color: var(--color-green-700);
    margin: 2px 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.ad-card-footer-info {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--color-slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.ad-card-time {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

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

.ad-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--color-slate-100);
    transition: all var(--transition-fast);
}

.ad-app-icon:hover {
    background: var(--color-slate-200);
    transform: scale(1.1);
}

.ad-app-icon svg {
    width: 16px;
    height: 16px;
    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: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-light);
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.feed-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-slate-100);
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-empty-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Infinite Scroll Loader */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    color: var(--color-slate-500);
    font-size: 0.9rem;
}

.spinner-dot-ring {
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-primary-200);
    border-top-color: var(--color-primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.infinite-scroll-ended {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--color-slate-400);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR NEW HOMEPAGE SECTIONS
   ========================================================================== */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .hero-section {
        padding: 50px var(--container-padding) 60px;
    }
    
    .hero-trust-indicators {
        gap: 20px;
    }
    
    .trust-divider {
        height: 40px;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        padding: 40px 16px 50px;
        margin: 0 -16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-search-wrapper {
        flex-direction: column;
        padding: 6px;
        border-radius: var(--radius-lg);
    }
    
    .hero-search-input-group {
        min-width: 100%;
    }
    
    .hero-search-input {
        height: 52px;
        font-size: 1rem;
        padding: 0 16px 0 48px;
    }
    
    .hero-search-icon {
        left: 16px;
    }
    
    .hero-search-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-filter-item {
        width: 100%;
    }
    
    .hero-filter-select {
        width: 100%;
        min-width: 100%;
        height: 52px;
    }
    
    .hero-search-btn {
        width: 100%;
        justify-content: center;
        height: 52px;
    }
    
    .hero-trust-indicators {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        padding-top: 24px;
    }
    
    .trust-divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
    
    .trust-item {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .trust-number {
        font-size: 1.375rem;
    }
    
    .trust-label {
        font-size: 0.75rem;
    }
    
    /* Featured Categories Mobile */
    .featured-categories-section {
        padding: 0;
        margin-bottom: 2px;
    }
    
    .section-header {
        margin-bottom: 8px;
        padding: 0 2px;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
    }
    
    .category-card {
        padding: 7px 10px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .category-icon-wrapper {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 6px;
    }

    .category-icon-wrapper svg {
        width: 15px;
        height: 15px;
    }
    
    .category-name {
        font-size: 0.78rem;
    }
    
    .category-arrow {
        display: none;
    }
    
    /* Advanced Filter Bar Mobile */
    .advanced-filter-bar {
        position: static;
        top: auto;
        padding: 12px 16px;
        margin: 0 -16px 16px;
        border-bottom: none;
        border-top: 1px solid var(--border-light);
        box-shadow: none;
        background: var(--bg-secondary);
    }
    
    .filter-bar-form {
        gap: 10px;
    }
    
    .filter-search-group {
        order: 1;
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .filter-search-input {
        height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0 14px 0 42px;
    }
    
    .filter-search-icon {
        left: 12px;
    }
    
    .filter-select-group {
        order: 2;
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        max-width: none;
    }
    
    .filter-select {
        height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0 36px 0 12px;
    }
    
    .btn-filter-submit {
        order: 3;
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
        height: 44px;
        justify-content: center;
    }
    
    .btn-filter-reset {
        order: 4;
        flex: 1 1 100%;
        height: 40px;
        justify-content: center;
        margin-top: 4px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .filter-select-group {
        flex: 1 1 100%;
    }
    
    .btn-filter-submit {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   FRONTEND ADS FEED & CONTENT (Updated)
   ========================================================================== */
.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-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: #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;
}
