/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* CSS Variables - Global */
:root {
    --blue: #1e3a8a;
    --blue-light: #3b82f6;
    --blue-pale: #eff6ff;
    --orange: #f59e0b;
    --orange-dark: #d97706;
    --green: #10b981;
    --red: #ef4444;
    --g50: #f8fafc; --g100: #f1f5f9; --g200: #e2e8f0; --g300: #cbd5e1;
    --g400: #94a3b8; --g500: #64748b; --g600: #475569; --g700: #334155; --g800: #1e293b; --g900: #0f172a;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --btn-primary: #f59e0b;
    --btn-primary-hover: #d97706;
    --btn-primary-active: #c56a05;
    --btn-text: #fff;
    --btn-radius: 8px;
}

/* ========================================
   SEARCH SECTION
   ======================================== */
.module-title,
.section-header,
.testimonials-header .header-left {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g900);
}

.search-section {
    background: #e2e8f0;
    padding: 15px 0;
}

.search-form { width: 100%; }

.search-row-main {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    border: 1px solid #f29c0b;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    flex: 1;
    border-right: 1px solid var(--g200);
}

.search-field i { color: var(--g400); }
.search-field.search-location i { color: #1d283a; }

.search-field input, .search-field select {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--g800);
    width: 100%;
}

.search-field input:focus, .search-field select:focus { outline: none; }
.search-field input::placeholder { color: var(--g400); }

.search-keyword { 
    position: relative;
    flex: 2;
}

.search-filter {
    flex: 1;
}

.search-price {
    flex: 1.2;
}

.search-price input {
    width: 50px !important;
    text-align: center;
}

.search-price .price-sep {
    color: var(--g400);
    padding: 0 2px;
}

.search-btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Live Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border-top: 2px solid var(--green);
}

.search-dropdown.show { display: block; }

.dropdown-section { padding: 0; }

.dropdown-divider { 
    height: 1px; 
    background: var(--g200); 
    margin: 0;
    display: none;
}

.dropdown-divider.show { display: block; }

/* Category Results */
.dropdown-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--g800);
}

.dropdown-category-item:hover {
    background: var(--green);
    color: #fff;
}

.dropdown-category-item i {
    font-size: 1rem;
    color: var(--g500);
    width: 20px;
    text-align: center;
}

.dropdown-category-item:hover i { color: #fff; }

.dropdown-category-item .query-text {
    font-weight: 600;
}

.dropdown-category-item .in-text {
    color: var(--g500);
    font-weight: 400;
}

.dropdown-category-item:hover .in-text { color: rgba(255,255,255,0.8); }

.dropdown-category-item .category-name {
    font-weight: 600;
}

.dropdown-category-item .count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--g400);
    background: var(--g100);
    padding: 2px 8px;
    border-radius: 10px;
}

.dropdown-category-item:hover .count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Suggestion Results */
.dropdown-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--g700);
}

.dropdown-suggestion-item:hover {
    background: var(--g100);
}

.dropdown-suggestion-item i {
    color: var(--g400);
}

.dropdown-suggestion-item .suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Headers */
.dropdown-header {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--g50);
}

/* No Results */
.dropdown-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--g500);
}

.search-btn {
    background: var(--btn-primary);
    color: var(--btn-text);
    border: none;
    padding: 12px 20px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: none;
}
.search-btn:hover { background: var(--btn-primary-hover); color: var(--btn-text); }
.search-btn:active { background: var(--btn-primary-active); color: var(--btn-text); }

.filters-toggle {
    background: var(--g100);
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--g600);
}
.filters-toggle:hover { background: var(--g200); }

/* Advanced Filters Row */
.search-row-filters {
    display: none;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
}
.search-row-filters.show { display: flex; }

.filter-field select, .filter-field input {
    border: 1px solid var(--g200);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #fff;
}
.filter-field select:focus, .filter-field input:focus {
    outline: none;
    border-color: #1d283a;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-range input { width: 90px; }
.price-range span { color: var(--g400); }

/* ========================================
   FEED SECTION
   ======================================== */
.feed-section {
    background: #fff;
    padding: 30px 0 30px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feed-tabs { display: flex; gap: 6px; }

.feed-tabs .tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    background: var(--btn-primary);
    border: none;
    border-radius: var(--btn-radius);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--btn-text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.feed-tabs .tab:hover { background: var(--btn-primary-hover); color: var(--btn-text); }
.feed-tabs .tab.active { background: #1d283a; color: var(--btn-text); }

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #e2e8f0;
    color: #1d283a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--btn-radius);
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.view-all:hover { background: #d7dde6; color: #1d283a; }
.view-all:active { background: #cbd3df; color: #1d283a; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.feed-panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g900);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   ADS GRID
   ======================================== */
.ads-grid,
.listing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* AD CARD */
.ad-card,
.listing-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--g200);
    transition: all 0.2s;
}
.ad-card:hover,
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ad-card.is-featured,
.listing-card.is-featured { border-color: var(--orange); }
.ad-card.is-top,
.listing-card.is-top { border-color: var(--red); background: linear-gradient(to bottom, #fef2f2, #fff); }
.ad-card a,
.listing-card a { text-decoration: none; color: inherit; display: block; }

.card-img {
    position: relative;
    height: 140px;
    background: var(--g100);
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-img .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.badge.featured { background: var(--orange); color: #000; }
.badge.top { background: var(--red); color: #fff; }
.badge.views { background: rgba(0,0,0,0.75); color: #fff; bottom: 8px; top: auto; left: 8px; display: flex; align-items: center; gap: 4px; }

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}
.fav-btn i { color: var(--g500); font-size: 1rem; transition: all 0.2s; }

.fav-btn:hover { 
    background: var(--red); 
    border-color: var(--red); 
    transform: scale(1.1);
}

.fav-btn:hover i { 
    color: #fff; 
}

.fav-btn.active { 
    background: var(--red); 
    border-color: var(--red); 
    opacity: 1;
    pointer-events: auto;
}

.fav-btn.active i { 
    color: #fff; 
}

/* Show favorite button on hover of image/card */
.listing-card:hover .fav-btn,
.ad-card:hover .fav-btn,
.mod-card:hover .fav-btn,
.spotlight-card:hover .fav-btn,
.card-img:hover .fav-btn,
.img:hover .fav-btn {
    opacity: 1;
    pointer-events: auto;
}

.card-body { padding: 10px; }

.card-body .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d283a;
    margin-bottom: 2px;
}

.card-body h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--g800);
    margin: 0 0 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5em;
}

.card-body .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--g500);
}
.card-body .meta span { display: flex; align-items: center; gap: 4px; }
.card-body .meta i { font-size: 0.75rem; }

.card-body .meta span:last-child {
    color: var(--g600);
    font-weight: 600;
}
.card-body .meta span:last-child i {
    color: #1d283a;
}

/* Load More Button */
.load-more-wrap { text-align: center; margin-top: 20px; padding: 10px 0; }

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--btn-primary);
    border: none;
    border-radius: var(--btn-radius);
    color: var(--btn-text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: none;
}

.load-more-btn:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-text);
}

.load-more-btn:active {
    background: var(--btn-primary-active);
    color: var(--btn-text);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--g200);
    border-top-color: var(--btn-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   RECOMMENDATIONS SECTION
   ======================================== */
.recommendations-section {
    background: #fff;
    padding: 30px 0 !important;
    
    
}

/* Skeleton Loading */
.mod-card.skeleton {
    pointer-events: none;
}
.skeleton-img {
    height: 120px;
    background: linear-gradient(90deg, var(--g200) 25%, var(--g100) 50%, var(--g200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, var(--g200) 25%, var(--g100) 50%, var(--g200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}
.skeleton-text.short {
    width: 60%;
    height: 12px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.recommendations-section .module-title {
    font-size: 1rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendations-section .module-title i {
    font-size: 1rem !important;
}

.recommendations-section .module-header {
    margin-bottom: 8px !important;
}

.recommendations-section .module-header small {
    font-size: 0.75rem;
    color: var(--g500);
}

/* ========================================
   MODULE SECTIONS
   ======================================== */
.module-section { background: #fff; padding: 30px 0; }
.module-section.alt { background: #fff; }

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g900);
}
.module-title i { font-size: 1.3rem; color: #1d283a; }

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #e2e8f0;
    color: #1d283a;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
}
.see-all:hover { background: #d7dde6; color: #1d283a; }
.see-all:active { background: #cbd3df; color: #1d283a; }

/* ========================================
   MODULE CAROUSEL
   ======================================== */
.module-carousel { 
    position: relative;
}

.module-carousel .track-wrapper {
    width: 100%;
    overflow: hidden;
}

.track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 0;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track:active { cursor: grabbing; }

.mod-card {
    flex: 0 0 180px;
    min-width: 150px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--g200);
    transition: box-shadow 0.2s, transform 0.2s;
    scroll-snap-align: start;
}
.mod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.mod-card a { text-decoration: none; color: inherit; }

.mod-card .img { position: relative; height: 120px; background: var(--g100); overflow: hidden; }
.mod-card .img img { width: 100%; height: 100%; object-fit: cover; }

.mod-card .info { padding: 10px; }
.mod-card .info .price { font-size: 1rem; font-weight: 700; color: #1d283a; }
.mod-card .info h4 { font-size: 0.8rem; font-weight: 500; color: var(--g800); margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-card .info span { font-size: 0.75rem; color: var(--g500); display: flex; align-items: center; gap: 3px; }

/* Recommendations Section - Compact Style */
.recommendations-section .mod-card {
    flex: 0 0 150px;
    min-width: 130px;
}

.recommendations-section .mod-card a { 
    display: block;
    position: relative;
}

.recommendations-section .mod-card .img { 
    height: 100px;
}

.recommendations-section .mod-card .img img {
    transition: transform 0.3s ease;
}

.recommendations-section .mod-card:hover .img img {
    transform: scale(1.05);
}

.recommendations-section .mod-card .info { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.5), transparent);
    padding: 50px 8px 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.recommendations-section .mod-card:hover .info {
    transform: translateY(0);
}

.recommendations-section .mod-card .info .price { 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.recommendations-section .mod-card .info h4 { 
    font-size: 0.75rem; 
    font-weight: 500; 
    color: #fff; 
    margin: 2px 0; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.recommendations-section .mod-card .info span { 
    font-size: 0.7rem; 
    color: rgba(255,255,255,0.9); 
    display: flex; 
    align-items: center; 
    gap: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #1d283a;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    color: var(--btn-text);
    opacity: 0;
    pointer-events: none;
}
.arrow:hover { background: #1d283a; color: var(--btn-text); }
.arrow:active { background: #1d283a; color: var(--btn-text); }
.arrow.prev { left: -18px; }
.arrow.next { right: -18px; }

.module-carousel:hover .arrow.show,
.carousel-cats-section:hover .arrow.show,
.home-testimonials-section:hover .arrow.show {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   SELLERS SECTION
   ======================================== */
.sellers-section { 
    background: #fff; 
    padding: 24px 0; 
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g900);
    margin-bottom: 16px;
}
.section-header i { color: var(--orange); }

.sellers-grid { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    min-width: 240px;
}
.seller-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.seller-card img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g200); }

.seller-card .info { flex: 1; }
.seller-card .name { font-weight: 600; color: var(--g800); margin-bottom: 4px; }

.seller-card .badges { display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.seller-card .badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}
.seller-card .badges .verified { background: #dcfce7; color: #166534; }
.seller-card .badges .business { background: #e2e8f0; color: #1d283a; }

.seller-card .stats { display: flex; gap: 8px; font-size: 0.75rem; color: var(--g500); flex-wrap: wrap; }
.seller-card .stats span { display: flex; align-items: center; gap: 3px; }
.seller-card .stats i { color: var(--orange); }

/* ========================================
   TESTIMONIALS SECTION - Minimal Slider
   ======================================== */
.home-testimonials-section {
    background: #fff;
    padding: 30px 0;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.testimonials-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--g900);
    font-size: 1.3rem;
}

.testimonials-header .header-left i {
    color: var(--orange);
    font-size: 1.1rem;
}

.testimonials-header .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-header .slider-nav {
    width: 28px;
    height: 28px;
    border: 1px solid var(--g300);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--g600);
}

.testimonials-header .slider-nav:hover {
    background: #1d283a;
    border-color: #1d283a;
    color: #fff;
}

.testimonials-header .view-all {
    font-size: 0.85rem;
    color: #1d283a;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.testimonials-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testim-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: 10px;
    padding: 14px 16px;
    scroll-snap-align: start;
}

.testim-stars {
    color: var(--orange);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.testim-text {
    font-size: 0.88rem;
    color: var(--g700);
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testim-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1d283a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--g800);
}

.testim-card:nth-child(odd) .author-avatar { background: var(--green); }
.testim-card:nth-child(3n) .author-avatar { background: var(--orange); color: #000; }


/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section { background: #fff; padding: 20px 0; }

.trust-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }

.stat { display: flex; align-items: center; gap: 10px; }
.stat i { font-size: 1.3rem; color: #1d283a; }
.stat .val { font-size: 1.1rem; font-weight: 700; color: var(--g800); }
.stat .lbl { font-size: 0.8rem; color: var(--g500); }

@media (max-width: 768px) {
    .testimonials-header .header-left span { display: none; }
    .testim-card { flex: 0 0 260px; min-width: 260px; }
    .trust-stats { gap: 1.5rem; }
    .stat { flex-direction: column; text-align: center; }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #1d283a 0%, #f59e0b 100%);
    padding: 3rem 0;
    text-align: center;
    color: #fff;
}
.cta-section h1 { font-size: 2rem; font-weight: 800; margin: 0 0 10px; }
.gold { color: var(--orange); }
.light { color: #93c5fd; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5rem; }

.btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn.primary { background: var(--btn-primary); color: var(--btn-text); box-shadow: none; }
.btn.primary:hover { background: var(--btn-primary-hover); color: var(--btn-text); }
.btn.primary:active { background: var(--btn-primary-active); color: var(--btn-text); }
.btn.secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn.secondary:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) { .cta-section h1 { font-size: 1.5rem; } }

/* ========================================
   PREMIUM SECTION
   ======================================== */
.premium-section,
.spotlight-section { background: #fff; padding: 2rem 0; }
.section-sub { text-align: center; color: var(--g500); margin-bottom: 1.5rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 850px; margin: 0 auto; }

.plan {
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}
.plan.popular { border-color: var(--btn-primary); box-shadow: 0 0 0 1px var(--btn-primary); }
.ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--btn-primary); color: #fff; padding: 3px 14px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; }

.plan h3 { font-size: 1.1rem; font-weight: 700; color: var(--g800); margin-bottom: 10px; }
.plan .price { margin-bottom: 1rem; }
.plan .curr { font-size: 0.9rem; color: var(--g500); }
.plan .amt { font-size: 2rem; font-weight: 800; color: var(--g800); }
.plan .per { font-size: 0.85rem; color: var(--g500); }

.plan ul { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.plan ul li { display: flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--g700); font-size: 0.85rem; }
.plan ul li i { color: var(--green); }

.plan-btn {
    display: block;
    padding: 10px;
    background: var(--btn-primary);
    border: none;
    border-radius: var(--btn-radius);
    color: var(--btn-text);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}
.plan-btn:hover { background: var(--btn-primary-hover); color: var(--btn-text); }
.plan-btn.primary { background: var(--btn-primary); border: none; color: var(--btn-text); }
.plan-btn.primary:hover { background: var(--btn-primary-hover); }
.plan-btn:active { background: var(--btn-primary-active); color: var(--btn-text); }

/* ========================================
   MOBILE FLOAT BUTTON
   ======================================== */
.float-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    background: #1d283a;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.2s;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }

/* ========================================
   RESPONSIVE - ADS GRID
   ======================================== */
@media (max-width: 1200px) { .ads-grid, .listing-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .ads-grid, .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { 
    .ads-grid, .listing-grid { grid-template-columns: repeat(2, 1fr); } 
    .feed-header { flex-direction: column; gap: 10px; align-items: flex-start; } 
}
@media (max-width: 480px) { 
    .ads-grid, .listing-grid { gap: 8px; } 
    .card-img { height: 120px; } 
    .card-body { padding: 8px; } 
    .card-body h3 { font-size: 0.8rem; }
    .fav-btn { width: 30px; height: 30px; }
    .card-img .badge { font-size: 0.65rem; padding: 3px 6px; }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 575px) {
    .track { gap: 8px; }
}

@media (max-width: 576px) { 
    .arrow { display: none; } 
    .float-btn { display: flex; }
}

/* ========================================
   RESPONSIVE - SEARCH SECTION
   ======================================== */
@media (max-width: 768px) {
    .search-row-main { flex-wrap: wrap; }
    .search-field { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--g200); }
    .search-field:last-of-type { border-bottom: none; }
    .search-btn { flex: 1; }
    .filters-toggle { flex: 0; }
    .search-row-filters { flex-direction: column; }
    .price-range { width: 100%; }
    .price-range input { flex: 1; }
}

@media (max-width: 576px) {
    .search-section {
        padding: 12px 0 18px;
    }

    .search-row-main {
        flex-wrap: wrap;
        gap: 12px;
        border: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .search-field {
        border: none;
        padding: 0;
        position: relative;
        background: transparent;
        flex: 1 1 calc(50% - 12px);
    }

    .search-field.search-keyword {
        flex: 1 1 100%;
    }

    .search-field i {
        display: none;
    }

    .search-field input,
    .search-field select {
        width: 100%;
        border-radius: 999px;
        border: 1px solid rgba(30, 58, 138, 0.15);
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    }

    .search-field.search-keyword input {
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }

    .search-field.search-filter:not(.search-price) select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        text-align: center;
        padding-right: 2.5rem;
    }

    .search-field.search-filter:not(.search-price)::after {
        content: "▾";
        font-size: 0.9rem;
        color: var(--g500);
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .search-price {
        display: flex;
        gap: 8px;
        align-items: center;
        flex: 1 1 calc(50% - 12px);
    }

    .search-price .price-sep {
        order: 1;
        color: var(--g400);
        font-weight: 700;
        padding: 0;
    }

    .search-price input {
        flex: 1;
        text-align: center;
    }

    .search-btn {
        width: 100%;
        flex: 1 1 100%;
        border-radius: 999px;
        justify-content: center;
        font-size: 1rem;
        padding: 0.65rem 1rem;
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    }
}

@media (max-width: 991.98px) {
    #stickySearch {
        display: none;
    }

    #stickySearch.filters-visible {
        display: block;
        animation: filtersFade 0.25s ease;
    }
}

@keyframes filtersFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PREMIUM LISTINGS SECTION
   ======================================== */
.premium-section,
.spotlight-section {
    background: #fff;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.premium-section::before,
.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    pointer-events: none;
}

.premium-section .container,
.spotlight-section .container {
    position: relative;
    z-index: 1;
}

.premium-section .module-header,
.spotlight-section .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Larger premium cards and 4-up default */
.premium-section .mod-card,
.spotlight-section .mod-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
}

@media (max-width: 992px) {
    .premium-section .mod-card,
    .spotlight-section .mod-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .premium-section .mod-card,
    .spotlight-section .mod-card {
        flex: 0 0 100%;
    }
}

.premium-section .module-title,
.spotlight-section .module-title {
    color: #1d283a;
}

.premium-section .module-title i,
.spotlight-section .module-title i {
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.boost-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--btn-primary);
    color: var(--btn-text);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--btn-radius);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: none;
}

.boost-cta:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-text);
}
.boost-cta:active { background: var(--btn-primary-active); color: var(--btn-text); }

/* Premium card badges */
.premium-section .badge.top,
.spotlight-section .badge.top {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.premium-section .badge.featured,
.spotlight-section .badge.featured {
    background: #f59e0b;
    color: #fff;
}

.premium-section .badge.promoted,
.spotlight-section .badge.boosted {
    background: #10b981;
    color: #e2e8f0;
}

/* Premium card top border indicator */
.premium-section .mod-card.premium-card,
.spotlight-section .mod-card.spotlight-card {
    position: relative;
}

.premium-section .mod-card.premium-card::after,
.spotlight-section .mod-card.spotlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    border-radius: 8px 8px 0 0;
}

.premium-section .mod-card.premium-card.top::after,
.spotlight-section .mod-card.spotlight-card.top::after {
    background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
}

.premium-section .mod-card.premium-card.featured::after,
.spotlight-section .mod-card.spotlight-card.featured::after {
    background: #f59e0b;
}

.premium-section .mod-card.premium-card.promoted::after,
.spotlight-section .mod-card.spotlight-card.boosted::after {
    background: #10b981;
}

/* Premium Section Responsive */
@media (max-width: 768px) {
    .premium-section,
    .spotlight-section {
        padding: 15px 0;
    }
    
    .premium-section .module-header,
    .spotlight-section .module-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

