*{box-sizing:border-box}
:root{
    --green:var(--site-primary);
    --green-dark:#00852e;
    --green-soft:#eafaf0;
    --orange:#ff9f43;
    --orange-hover:#f38e2b;
    --ink:#14171a;
    --muted:#687178;
    --line:#e1e6eb;
    --page:#f4f7f9;
    --white:#fff;
    --shadow:0 4px 20px rgba(15,28,36,.06);
    --shadow-hover:0 10px 30px rgba(15,28,36,.12);
    --radius:10px;
}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5; -webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}

/* Top Announcement Banner */
.announcement-bar{background:#0e1720;color:#e2e8f0;font-size:12px;padding:8px 16px;text-align:center;font-weight:500;display:flex;align-items:center;justify-content:center;gap:16px}
.announcement-bar span b{color:#4ade80}

/* Topbar */
.topbar{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.topbar-inner{height:72px;max-width:1240px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:32px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:24px;font-weight:900;letter-spacing:-.6px;color:var(--green)}
.brand-mark{width:38px;height:38px;border-radius:10px;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;box-shadow:0 3px 10px rgba(0,168,59,.3)}
.topbar-tagline{font-size:11px;font-weight:700;letter-spacing:1.2px;color:var(--muted);text-transform:uppercase;flex:1;text-align:center}
.top-actions{display:flex;align-items:center;gap:20px;font-size:13px;font-weight:600;white-space:nowrap}
.top-actions a{color:var(--ink)!important;opacity:1!important;visibility:visible!important}
.top-actions a:hover{color:var(--green)!important}
.marketplace-logout button{color:var(--ink)!important;opacity:1!important;visibility:visible!important}
.marketplace-logout button:hover{color:var(--green)!important}
.sell-button{display:inline-flex!important;align-items:center;justify-content:center;background:var(--orange);color:#fff!important;border-radius:8px;padding:11px 24px;font-weight:800;transition:all .2s;box-shadow:0 4px 12px rgba(255,159,67,.3)}
.sell-button:hover{background:var(--orange-hover);transform:translateY(-1px)}
.profile-avatar-link{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0!important;overflow:hidden;border:2px solid rgba(255,255,255,.72);border-radius:50%;background:var(--green-soft);color:var(--green-dark)!important;box-shadow:0 2px 8px rgba(0,0,0,.10);line-height:1;vertical-align:middle}
.profile-avatar-link img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-avatar-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:var(--green-soft);color:var(--green-dark);font-size:15px;font-weight:850;text-transform:uppercase}
.profile-avatar-link:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* Hero Section */
.hero{background:linear-gradient(135deg, var(--site-primary-dark) 0%, var(--site-primary) 100%);color:#fff;padding:50px 24px 60px;border-bottom-left-radius:24px;border-bottom-right-radius:24px;box-shadow:0 12px 35px rgba(0,168,59,.18);position:relative;overflow:visible}
.hero-inner{max-width:840px;margin:auto;text-align:center;position:relative;z-index:2}
.hero h1{margin:0 0 24px;font-size:36px;font-weight:800;letter-spacing:-.8px;line-height:1.2}
.hero-search{display:grid;grid-template-columns:230px 1fr 60px;max-width:800px;margin:auto;background:#fff;border-radius:10px;overflow:visible;box-shadow:0 10px 35px rgba(0,0,0,.16);color:var(--ink);position:relative;z-index:20}
.hero-location{position:relative;border-right:1px solid var(--line)}
.field-label{display:none}
.hero-location select{width:100%;height:58px;border:0;background:#fff;padding:0 18px;outline:0;color:#222;font-weight:600;cursor:pointer}
.hero-keyword input{width:100%;height:58px;border:0;padding:0 20px;outline:0;color:var(--ink);font-size:15px}
.hero-keyword input::placeholder{color:#9aa5ae}
.search-autocomplete-host{position:relative;z-index:1200}
.search-suggestions{position:absolute;left:0;right:0;top:calc(100% + 5px);background:#fff;color:#253039;border:1px solid #dfe5e8;border-radius:8px;box-shadow:0 10px 28px rgba(25,45,55,.18);overflow:hidden;max-height:420px;overflow-y:auto;text-align:left;z-index:5000}
.search-suggestions[hidden]{display:none}
.search-suggestion{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:9px 13px;border:0;border-bottom:1px solid #edf0f2;background:#fff;color:#253039;text-align:left;cursor:pointer}
.search-suggestion:last-child{border-bottom:0}
.search-suggestion:hover,.search-suggestion.is-active{background:#f5faf7}
.search-suggestion-icon{width:34px;height:34px;border-radius:7px;background:#eef5f1;display:flex;align-items:center;justify-content:center;flex:0 0 34px;font-size:16px;overflow:hidden}
.search-suggestion-icon img{width:100%;height:100%;object-fit:cover}
.search-suggestion-copy{min-width:0;flex:1}
.search-suggestion-label{display:block;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestion-meta{display:block;margin-top:3px;color:#7b878d;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestion-type{font-size:9px;font-weight:800;color:var(--site-primary-text);text-transform:uppercase;letter-spacing:.3px}
@media(max-width:760px){.search-suggestions{top:calc(100% + 4px);max-height:55vh;border-radius:7px}.search-suggestion{min-height:50px;padding:8px 11px}.search-suggestion-label{font-size:12px}}
.search-button{position:relative;z-index:30;border:0;border-left:1px solid var(--line);background:#fff;font-size:26px;line-height:1;color:var(--green);cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:60px;height:58px;border-radius:0 10px 10px 0;transition:background .2s,color .2s,transform .2s;box-shadow:none}
.search-button:hover{background:var(--green-soft);color:var(--green-dark)}
.search-button:focus-visible{outline:3px solid rgba(255,255,255,.95);outline-offset:-4px}
.search-button:active{transform:scale(.98)}
.search-button svg{width:23px;height:23px;display:block}

/* Hero Trending & Quick Links */
.popular-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px}
.tag-label{font-size:12px;opacity:.9;align-self:center;margin-right:6px;font-weight:600}
.popular-tag{background:rgba(255,255,255,.16);color:#fff;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;backdrop-filter:blur(6px);transition:all .2s}
.popular-tag:hover{background:rgba(255,255,255,.3);transform:translateY(-1px)}

.hero-links{display:flex;justify-content:center;gap:24px;margin-top:22px;font-size:13px;font-weight:500}
.hero-links a{color:#e8f8ed;opacity:.92;transition:all .2s}
.hero-links a:hover{opacity:1;text-decoration:underline}

/* Trust Strip Extra */
/* Marketplace Shell */
.marketplace-shell{max-width:1240px;margin:auto;padding:10px 24px 60px}
.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.quick-links a{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow);transition:all .2s}
.quick-links a:hover{border-color:var(--green);transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.quick-icon{width:40px;height:40px;border-radius:10px;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:17px}
.quick-links strong{font-size:13px;color:var(--ink);font-weight:700}

/* Layout Grid */
.marketplace-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:start}
.marketplace-main-column{min-width:0;display:flex;flex-direction:column;gap:24px}
.sidebar,.feed{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.sidebar{overflow:visible}
.sidebar-heading,.feed-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}
.sidebar-heading h2,.feed-heading h2,.section-heading h2{margin:0;font-size:18px;font-weight:800;color:var(--ink)}
.sidebar-heading a,.feed-heading>a,.section-heading>a{font-size:13px;color:var(--green);font-weight:700}
.sidebar-heading a:hover,.feed-heading>a:hover,.section-heading>a:hover{text-decoration:underline}
.eyebrow{display:block;text-transform:uppercase;letter-spacing:1px;font-size:10px;font-weight:800;color:var(--green);margin-bottom:3px}

/* Categories Sidebar */
.category-browser{position:relative;display:block;min-height:520px}
.category-list{padding:6px 0;background:#fff}
.category-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:12px;align-items:center;padding:11px 18px;border:0;border-bottom:1px solid #f2f5f7;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:all .15s}
.category-row:last-child{border-bottom:0}
.category-row:hover,.category-row.is-active{background:var(--green-soft);color:#0b6e2d}
.category-row.is-active{box-shadow:inset 3px 0 0 var(--green)}
.category-icon{width:38px;height:38px;border-radius:10px;background:#edf4f8;color:#476273;display:flex;align-items:center;justify-content:center;font-weight:800;overflow:hidden}
.category-icon img{width:100%;height:100%;object-fit:cover}.category-icon i{font-size:18px}.category-child-icon i{font-size:17px}.mobile-category-icon i{font-size:27px}
.category-info{min-width:0;display:block}
.category-info strong{display:block;font-size:13px;font-weight:750;line-height:1.2}
.category-info small{display:block;color:#7390a2;font-size:11px;margin-top:2px}
.category-arrow{font-size:24px;line-height:1;color:#8aa9b9;text-align:center}
.category-mega{position:absolute;left:100%;top:0;bottom:0;width:min(760px,calc(100vw - 330px));background:#fff;display:none;overflow:hidden;z-index:100;border:1px solid var(--line);border-radius:0 10px 10px 0;box-shadow:0 10px 28px rgba(18,30,40,.12)}
.category-mobile-header{display:none}
.category-mega.is-open{display:flex}
.category-mega-empty{display:flex;align-items:center;justify-content:center;flex:1;color:var(--muted);font-size:13px;padding:30px;text-align:center}
.category-columns{display:flex;flex:1;overflow:auto;min-width:0}
.category-column{width:260px;min-width:260px;border-right:1px solid var(--line);padding:10px 0;overflow-y:auto;background:#fff}
.category-column.is-mobile-current{display:block}
.category-column:last-child{border-right:0;flex:1;min-width:280px}
.category-column-title{padding:9px 16px 11px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}
.category-child{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:9px;align-items:center;padding:9px 14px;border:0;background:#fff;text-align:left;cursor:pointer;color:var(--ink)}
.category-child:hover,.category-child.is-active{background:#f0faf4;color:#087a30}
.category-child-icon{width:34px;height:34px;border-radius:8px;background:#eef4f7;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#557080;font-size:18px;line-height:1;font-weight:800}
.category-child-icon img{width:100%;height:100%;object-fit:cover}
.category-child-name{min-width:0}
.category-child-name strong{display:block;font-size:12px;font-weight:700;line-height:1.25}
.category-child-name small{display:block;color:#7c929f;font-size:10px;margin-top:2px}
.category-child-arrow{font-size:20px;color:#8aa9b9;text-align:center}
.category-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f6f7;color:#52616b;font-size:20px;cursor:pointer;z-index:3}
.category-icon{width:36px;height:36px;border-radius:9px;background:#edf2f5;color:#4f5c65;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;line-height:1}
.category-info{min-width:0}
.category-info strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-weight:700}
.category-info small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.category-arrow{font-size:20px;color:#b2bec5}

/* Ads Feed Grid */
.dxc-pic{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1}
.dxc-pic img{width:80%;height:80%;object-fit:contain;display:block}
.dxc-pic.is-emoji{font-size:1.55em;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.mobile-sheet-item-icon .dxc-pic.is-emoji,.category-child-icon .dxc-pic.is-emoji{font-size:22px}
.mobile-category-icon .dxc-pic.is-emoji,.category-icon .dxc-pic.is-emoji{font-size:26px}
.mobile-popular-image .dxc-pic img{width:70%;height:70%}
.recent-viewed-feed{margin-bottom:28px}.deals-feed{margin-bottom:18px;background:#fff;border:1px solid #f3d3b4;border-radius:16px;padding:0;overflow:hidden}
.deals-summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;user-select:none;background:linear-gradient(90deg,#fff4ea,#fff)}
.deals-summary::-webkit-details-marker{display:none}.deals-summary::marker{content:''}
.deals-fire{font-size:26px;line-height:1;animation:dealsFlicker 1.8s ease-in-out infinite}
@keyframes dealsFlicker{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.12) rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){.deals-fire{animation:none}}
.deals-head{display:flex;flex-direction:column;min-width:0;flex:1}.deals-head strong{font-size:17px;color:#c2410c;font-weight:900}.deals-head small{font-size:12px;color:#8a6a52}
.deals-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid #f0c9a4;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:800;color:#c2410c;background:#fff;flex:none}
.deals-chev{display:inline-block;transition:transform .2s;font-size:15px;line-height:1;margin-top:-4px}
.deals-feed[open] .deals-chev{transform:rotate(180deg);margin-top:4px}
.deals-feed .deals-track{padding:4px 14px 14px}.deals-feed .deals-track{display:flex!important;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:12px;-webkit-overflow-scrolling:touch}.deals-feed .deals-track .ad-card{flex:0 0 calc((100% - 48px) / 4);min-width:0;scroll-snap-align:start}.deals-feed .deals-track .dax-card .ad-image-link{aspect-ratio:1/1}.deals-feed .deals-track .dax-card .ad-image{height:100%;object-fit:cover}@media(max-width:1024px){.deals-feed .deals-track .ad-card{flex-basis:calc((100% - 24px) / 3)}}@media(max-width:768px){.deals-feed .deals-track{gap:10px}.deals-feed .deals-track .ad-card{flex-basis:calc((100% - 10px) / 2.15)}}.feed{min-width:0;overflow:hidden}
.feed-heading{padding-bottom:16px}
.ads-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:16px}
.ad-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0;transition:all .2s ease}
.ad-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:#cbd5e0}
.ad-image-link{display:block;position:relative;background:#eef2f5;aspect-ratio:1/0.82;overflow:hidden}
.ad-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.ad-card:hover .ad-image{transform:scale(1.04)}
.ad-image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e2eaf0,#f3f7f9);color:#7a8a92;font-size:42px;font-weight:900}
.ad-trust-badges{position:absolute;top:9px;right:9px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;z-index:4;pointer-events:none}.ad-trust-badge{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.97);box-shadow:0 2px 8px rgba(15,28,36,.16);font-size:9px;font-weight:850;line-height:1;color:#26353d;white-space:nowrap}.ad-trust-icon{width:14px;height:14px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#1687d9;color:#fff;font-size:9px;font-weight:900}.ad-trust-cac .ad-trust-icon{background:var(--site-primary)}.featured-badge{position:absolute;top:9px;left:9px;background:var(--orange);color:#fff;border-radius:5px;padding:4px 9px;font-size:10px;font-weight:800;box-shadow:0 3px 8px rgba(0,0,0,.15);z-index:2}
.ad-content{padding:14px}
.ad-title{display:block;font-size:13px;font-weight:700;line-height:1.4;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink)}
.ad-title:hover{color:var(--green)}
.ad-price{color:var(--green);font-size:16px;font-weight:900;margin-top:8px}
.ad-meta{margin-top:6px;color:var(--muted);font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #f0f3f5;color:#8a949a;font-size:10px;font-weight:600}

/* Empty State */
.empty-state{padding:80px 20px;text-align:center}
.empty-icon{width:60px;height:60px;margin:0 auto 14px;border-radius:50%;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:28px}
.empty-state h3{margin:0 0 6px;font-size:18px;font-weight:800}
.empty-state p{margin:0 0 20px;color:var(--muted)}

/* Location Section */

/* Footer */
.site-footer{background:#04521f;color:#fff;margin-top:40px}
.footer-inner{max-width:1240px;margin:auto;padding:50px 24px 40px;display:grid;grid-template-columns:2.4fr repeat(2,1fr);gap:40px}
.footer-brand p{margin:14px 0 0;color:#c9f2d6;font-size:13px;line-height:1.6}
.footer-brand-link{font-size:24px;color:#fff!important}
.footer-column{display:flex;flex-direction:column;gap:11px}
.footer-column h3{margin:0 0 6px;font-size:13px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#e1f9e8}
.footer-column a{font-size:12px;color:#d0ebd7;transition:color .2s}
.footer-column a:hover{color:#fff;text-decoration:underline}
.footer-bottom{max-width:1240px;margin:auto;padding:18px 24px 26px;border-top:1px solid rgba(255,255,255,.15);display:flex;justify-content:space-between;color:#b2e5c0;font-size:11px}

/* Mobile-first marketplace home inspired by modern classified apps */
.mobile-home-category-area{display:none}
.mobile-category-sheet{display:none}
@media(max-width:768px){
    .announcement-bar{display:none}
    .topbar{background:var(--green);border-bottom:0}
    .topbar-inner{min-height:58px;height:58px;padding:0 14px}
    .brand{color:#fff;font-size:22px}
    .brand-mark{background:#fff;color:var(--green);box-shadow:none;width:34px;height:34px}
    .topbar-tagline{display:none}
    .top-actions{gap:8px;margin-left:auto}
    .top-actions a{color:#fff!important}
    .top-actions a:hover{color:#fff!important}
    .marketplace-logout button{color:#fff!important}
    .marketplace-logout button:hover{color:#fff!important}
    .top-actions a:not(.sell-button):not(.profile-avatar-link),.marketplace-logout{display:none!important}
    .sell-button{padding:8px 14px;border-radius:8px;background:#ffad42;box-shadow:none;font-size:12px}
    .hero{padding:30px 14px 38px;border-radius:0 0 20px 20px}
    .hero h1{font-size:23px;margin-bottom:18px}
    .hero-search{grid-template-columns:1fr 52px;border-radius:9px}
    .hero-location{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line)}
    .hero-location select{height:48px}
    .hero-keyword input{height:52px}
    .search-button{height:52px;min-width:52px;border-left:1px solid var(--line);border-radius:0 9px 9px 0}
    .quick-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
    .quick-links a{flex:0 0 auto;padding:9px 12px;border-radius:9px;box-shadow:none;gap:7px}
    .quick-icon{width:auto;height:auto;background:transparent;font-size:17px}
    .quick-links strong{font-size:11px}
    .mobile-home-category-area{display:block;margin:4px 0 20px}
    .mobile-section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 11px}
    .mobile-section-title h2{margin:0;font-size:18px;font-weight:800;color:#27323a}
    .mobile-section-title a{font-size:12px;font-weight:700;color:var(--green)}
    .mobile-popular-scroller{display:grid;grid-auto-flow:column;grid-auto-columns:78px;gap:10px;overflow-x:auto;padding:0 1px 6px;scrollbar-width:none;scroll-snap-type:x proximity}
    .mobile-popular-scroller::-webkit-scrollbar{display:none}
    .mobile-popular-card{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;scroll-snap-align:start;text-decoration:none}
    .mobile-popular-image{display:flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:16px;background:#edf4f8;font-size:28px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(20,40,50,.05)}
    .mobile-popular-image img{width:100%;height:100%;object-fit:cover}
    .mobile-popular-card>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:6px;font-size:11px;line-height:1.25;color:#33414a;font-weight:700}
    .mobile-category-section{margin-top:22px}
    .mobile-category-section-title{min-height:42px;position:relative;display:flex;align-items:center;justify-content:space-between}
    .mobile-category-heading-actions{display:flex;align-items:center;gap:10px}
    .mobile-category-toggle{position:relative;width:48px;height:48px;flex:0 0 48px;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--site-primary);border-radius:50%;background:#eafaf0;color:#00852e;cursor:pointer;box-shadow:0 3px 12px rgba(0,168,59,.22);-webkit-tap-highlight-color:transparent;animation:mobileCategoryNudge 1.5s ease-in-out infinite}
    .mobile-category-toggle::before{content:"";position:absolute;inset:-5px;border:2px solid rgba(0,168,59,.25);border-radius:50%;animation:mobileCategoryPulse 1.8s ease-out infinite;pointer-events:none}
    .mobile-category-toggle span{display:block;font-size:31px;font-weight:900;line-height:1;transform:translateY(-3px);transition:transform .22s ease}
    .mobile-category-section.is-expanded .mobile-category-toggle{animation:none}
    .mobile-category-section.is-expanded .mobile-category-toggle::before{animation:none;opacity:0}
    .mobile-category-section.is-expanded .mobile-category-toggle span{transform:rotate(180deg) translateY(2px)}
    .mobile-category-section:not(.is-expanded) .mobile-category-toggle:focus-visible{outline:3px solid #ffad1f;outline-offset:4px}
    @keyframes mobileCategoryNudge{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}
    @keyframes mobileCategoryPulse{0%{transform:scale(.86);opacity:.75}100%{transform:scale(1.28);opacity:0}}
    @media(prefers-reduced-motion:reduce){.mobile-category-toggle,.mobile-category-toggle::before{animation:none!important}}
    .mobile-category-grid{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 10px}
    .mobile-category-section.is-expanded .mobile-category-grid{display:grid}
    .mobile-category-tile{min-width:0;border:0;background:transparent;padding:0;text-align:center;color:#34424b;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer}
    .mobile-category-tile>span:last-child{font-size:11px;line-height:1.2;font-weight:600;max-width:92px}
    .mobile-category-icon{width:62px;height:62px;border-radius:12px;background:#edf4f8;display:flex;align-items:center;justify-content:center;font-size:31px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(25,50,65,.025)}
    .mobile-category-icon img{width:100%;height:100%;object-fit:cover}.mobile-sheet-item-icon i{font-size:18px}
    .mobile-category-icon.action-orange{background:#ffb85d;color:#fff;font-size:38px}
    .mobile-action-tile .mobile-category-icon{box-shadow:none}
    .mobile-category-tile:active .mobile-category-icon{transform:scale(.96)}
    .mobile-category-sheet{position:fixed;inset:0;background:#fff;z-index:5000;overflow:auto}
    .mobile-category-sheet.is-open{display:block}
    .mobile-category-sheet-head{position:sticky;top:0;z-index:2;height:62px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:8px 12px;background:#fff;border-bottom:1px solid #e4e9ec;box-shadow:0 2px 10px rgba(15,28,36,.06)}
    .mobile-category-sheet-head button{width:40px;height:40px;border:0;border-radius:10px;background:#f1f5f7;color:#26343c;font-size:27px;line-height:1;cursor:pointer}
    .mobile-category-sheet-head>div{min-width:0}
    .mobile-category-sheet-head strong,.mobile-category-sheet-head small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .mobile-category-sheet-head strong{font-size:15px}
    .mobile-category-sheet-head small{font-size:10px;color:#71808a;margin-top:2px}
    .mobile-category-sheet-list{padding:8px 12px 30px}
    .mobile-sheet-item{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:12px;align-items:center;border:0;border-bottom:1px solid #edf1f3;background:#fff;padding:12px 4px;text-align:left;color:#26343c}
    .mobile-sheet-item-icon{width:44px;height:44px;border-radius:10px;background:#edf4f8;display:flex;align-items:center;justify-content:center;font-size:23px;overflow:hidden}
    .mobile-sheet-item-icon img{width:100%;height:100%;object-fit:cover}
    .mobile-sheet-item-name strong{display:block;font-size:14px}
    .mobile-sheet-item-name small{display:block;margin-top:2px;color:#81909a;font-size:10px}
    .mobile-sheet-arrow{font-size:24px;color:#94a3ab}
    .mobile-sheet-item:active{background:#f2faf5}
    .marketplace-layout{display:block}
    .marketplace-layout>.sidebar{display:none}
    .feed{border:0;box-shadow:none;border-radius:0;background:transparent}
    .feed-heading{padding:0 2px 10px;border-bottom:0}
    .feed-heading h2{font-size:18px}
    .ads-grid{background:#eef4f7;border-radius:12px;padding:10px}
}
@media(max-width:480px){
    .mobile-popular-scroller{grid-auto-columns:74px}
    .mobile-category-grid{gap:17px 7px}
    .mobile-category-icon{width:58px;height:58px}
}

/* Responsive queries */
@media(max-width:1024px){
    .marketplace-layout{grid-template-columns:250px minmax(0,1fr)}
    .ads-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .footer-inner{grid-template-columns:repeat(2,1fr);gap:32px}
}
@media(max-width:768px){
    .announcement-bar{font-size:11px;padding:6px 12px}
    .topbar-inner{height:auto;min-height:68px;flex-wrap:wrap;padding:10px 16px;gap:12px}
    .topbar-tagline{display:none}
    .top-actions{margin-left:auto;gap:10px;font-size:12px;flex-wrap:wrap;justify-content:flex-end}
    .top-actions a{display:inline-flex!important;align-items:center}
    .sell-button{padding:9px 14px}
    .topbar-inner{gap:8px}
    .hero{padding:35px 16px 45px}
    .hero h1{font-size:26px}
    .hero-search{grid-template-columns:1fr 52px}
    .hero-location{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line)}
    .hero-location select{height:50px}
    .hero-keyword input{height:52px}
    .search-button{height:52px;min-width:52px;border-left:1px solid var(--line);border-radius:0 9px 9px 0}
    .popular-tags{display:none}
    .marketplace-shell{padding:12px 12px 40px}
    .quick-links{grid-template-columns:repeat(2,1fr)}
    .marketplace-layout{grid-template-columns:1fr}
    .marketplace-layout > .sidebar,.marketplace-layout > .feed{grid-column:1}
    .category-browser{display:block;min-height:0}
    .category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-right:0}
    .category-row{border-right:1px solid #f2f5f7;min-height:72px;padding:10px 12px;gap:9px}
    .category-row:hover,.category-row.is-active{background:#fff;color:var(--ink);box-shadow:none}
    .category-row.is-active{background:var(--green-soft);box-shadow:inset 3px 0 0 var(--green)}
    .category-mega{position:relative;left:auto;top:auto;right:auto;bottom:auto;width:auto;min-height:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;overflow:hidden}
    .category-mega.is-open{display:block}
    .category-mobile-header{display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid var(--line);background:#fbfcfc;position:relative;z-index:2}
    .category-mobile-back{width:36px;height:36px;flex:0 0 36px;border:1px solid #dce5e9;border-radius:9px;background:#fff;color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
    .category-mobile-title{min-width:0;display:flex;flex-direction:column;gap:2px}
    .category-mobile-title strong{font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .category-mobile-title span{font-size:10px;color:var(--muted)}
    .category-columns{display:block;overflow:visible}
    .category-column{display:none;width:100%;min-width:0;border-right:0;padding:4px 0 8px;overflow:visible}
    .category-column.is-mobile-current{display:block}
    .category-column-title{padding:9px 14px 8px}
    .category-child{grid-template-columns:34px minmax(0,1fr) 18px;padding:11px 14px;border-bottom:1px solid #f3f5f6}
    .category-child:hover,.category-child.is-active{background:#fff;color:var(--ink)}
    .category-child.is-active{background:#f0faf4;color:#087a30}
    .ads-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}
}
@media(max-width:480px){
    .ads-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ad-content{padding:10px}
    .ad-title{font-size:11px;min-height:34px}
    .ad-price{font-size:14px}
    .category-list{grid-template-columns:1fr}
    .category-row{min-height:66px;padding:9px 14px}
    .category-column{width:100%;min-width:0}
    .category-column:last-child{min-width:0}
    .footer-inner{grid-template-columns:1fr;padding:30px 16px}
    .footer-bottom{flex-direction:column;gap:6px}
}

.marketplace-logout{margin:0;padding:0;display:flex;align-items:center}
.marketplace-logout button{border:0;background:none;color:inherit;font:inherit;font-weight:600;cursor:pointer;padding:0}
.marketplace-logout button:hover{color:var(--green)}
.login-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}
.login-modal.is-open{display:flex}
.login-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.login-card{position:relative;width:min(430px,100%);background:#fff;border-radius:16px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.25);z-index:1}
.login-close{position:absolute;right:14px;top:10px;width:36px;height:36px;border:0;background:#f4f6f7;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
.login-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.login-brand .brand-mark{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:10px;background:var(--green);color:#fff;font-weight:800}
.login-brand .brand-mark-logo{background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(16,40,24,.12)}.login-brand .brand-mark-logo img{width:100%;height:100%;object-fit:cover;display:block}.login-brand strong,.login-brand span{display:block}
.login-brand span:not(.brand-mark){font-size:12px;color:#687078;margin-top:2px}
.login-card h2{margin:0 0 6px;font-size:24px}
.login-subtitle{margin:0 0 18px;color:#687078;font-size:13px}
.login-error{padding:11px 12px;border:1px solid #f2c1bc;background:#fff1f0;color:#a5221c;border-radius:8px;font-size:13px;margin-bottom:14px}.login-success{padding:11px 12px;border:1px solid #cbeed5;background:var(--site-primary-soft);color:#176b35;border-radius:8px;font-size:13px;margin-bottom:14px}.login-forgot{text-align:right;margin-top:-5px;margin-bottom:-1px}.login-forgot a{font-size:12px;color:var(--green-dark);font-weight:800;text-decoration:none}.login-forgot a:hover{text-decoration:underline}
.login-form{display:grid;gap:13px}
.login-form label{font-size:12px;font-weight:700;color:#3d454b}
.login-form input{display:block;width:100%;margin-top:6px;height:46px;border:1px solid #d9dfe3;border-radius:8px;padding:0 12px;font:inherit;outline:none}
.login-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
.login-form button{height:46px;border:0;border-radius:8px;background:var(--green);color:#fff;font-weight:800;cursor:pointer}
.login-form button:hover{background:var(--green-dark)}
.remember-device-option{display:flex!important;align-items:center;gap:8px;color:#59656d!important;font-size:12px!important;font-weight:600!important;cursor:pointer}.remember-device-option input{width:16px!important;height:16px!important;margin:0!important;accent-color:var(--green)}
.login-register{text-align:center;font-size:12px;color:#687078;margin:16px 0 0}
.login-register a{color:var(--green-dark);font-weight:700}
body.auth-modal-open{overflow:hidden}
.google-login-options{display:grid;gap:10px;margin-bottom:16px}
.google-button-host{width:100%;max-width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:999px}.google-button-host>div,.google-button-host iframe{max-width:100%!important}
.google-divider{display:flex;align-items:center;gap:10px;margin:2px 0 14px;color:#8a969e;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.google-divider::before,.google-divider::after{content:"";height:1px;background:#e2e7ea;flex:1}
.google-auth-error{display:none;margin:0 0 14px;padding:10px 12px;border:1px solid #f2c1bc;background:#fff1f0;color:#a5221c;border-radius:8px;font-size:12px;line-height:1.45}
.google-auth-error.is-visible{display:block}
.google-loading{display:none;margin-top:9px;color:#69777f;font-size:11px;text-align:center}
.google-loading.is-visible{display:block}
@media(max-width:480px){.google-button-host{min-height:40px}}
.register-card{position:relative;width:min(500px,100%);max-height:min(92vh,760px);overflow:auto;background:#fff;border-radius:16px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.25);z-index:1}
.register-form{display:grid;gap:13px}
.register-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#3f4b53}
.register-form input{width:100%;height:46px;border:1px solid #d8e0e5;border-radius:8px;padding:0 12px;font:inherit;font-size:14px;outline:none;background:#fff}
.register-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
.register-form button{height:46px;border:0;border-radius:8px;background:var(--green);color:#fff;font-weight:800;cursor:pointer}
.register-form button:hover{background:var(--green-dark)}
.register-login{text-align:center;font-size:12px;color:#687078;margin:16px 0 0}
.register-login a{color:var(--green-dark);font-weight:700}
.register-error{background:#fff1f0;border:1px solid #ffd1cd;color:#b42318;border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.45;margin-bottom:14px}
.register-error p{margin:0 0 4px}.register-error p:last-child{margin-bottom:0}
.register-hint{margin:-5px 0 4px;color:#7b8991;font-size:11px;line-height:1.45}
body.login-modal-open{overflow:hidden}

/* DaxNaija free-marketplace + founder story polish */
.hero-kicker{display:inline-flex;align-items:center;gap:7px;margin:0 0 12px;padding:7px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:800;letter-spacing:.2px}
.hero-intro{max-width:690px;margin:-12px auto 24px;color:var(--site-primary-soft);font-size:15px;line-height:1.65;font-weight:500}
.free-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:17px auto 0;color:#f4fff7;font-size:12px;font-weight:700}
.free-note-dot{width:7px;height:7px;border-radius:50%;background:#9cffbd;box-shadow:0 0 0 5px rgba(156,255,189,.13)}
.dax-story{max-width:1240px;margin:24px auto 0;padding:0 24px}
.dax-story-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:36px;align-items:center;padding:38px 42px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.dax-story-card:before{content:"";position:absolute;width:230px;height:230px;right:-90px;top:-110px;border-radius:50%;background:var(--green-soft)}
.dax-story-copy,.dax-founder{position:relative;z-index:1}
.dax-story-eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:9px;color:var(--green-dark);font-size:11px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
.dax-story h2{margin:0;font-size:27px;line-height:1.2;letter-spacing:-.5px;color:var(--ink)}
.dax-story-copy p{max-width:700px;margin:13px 0 0;color:var(--muted);font-size:14px;line-height:1.75}
.dax-story-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}
.dax-story-point{padding:8px 11px;border-radius:8px;background:var(--green-soft);color:#116b32;font-size:11px;font-weight:800}
.dax-founder{padding:22px;border:1px solid #e5ece8;border-radius:14px;background:#fbfdfc}
.dax-founder-top{display:flex;align-items:center;gap:13px}
.dax-founder-mark{width:50px;height:50px;flex:0 0 50px;border-radius:13px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:900;box-shadow:0 5px 14px rgba(0,168,59,.2)}
.dax-founder small{display:block;color:var(--green-dark);font-size:10px;font-weight:900;letter-spacing:.8px;text-transform:uppercase}
.dax-founder strong{display:block;margin-top:2px;color:var(--ink);font-size:17px;line-height:1.25}
.dax-founder p{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.dax-founder-company{margin-top:12px;padding-top:11px;border-top:1px solid #e7ece9;color:#3c4a42;font-size:11px;font-weight:700}
@media(max-width:768px){
    .hero-kicker{font-size:10px;padding:6px 10px;margin-bottom:10px}
    .hero-intro{font-size:13px;line-height:1.55;margin:-8px auto 18px;padding:0 4px}
    .free-note{font-size:11px;margin-top:14px}
    .dax-story{padding:0 12px;margin-top:16px}
    .dax-story-card{grid-template-columns:1fr;gap:20px;padding:24px 18px;border-radius:14px}
    .dax-story h2{font-size:22px}
    .dax-story-copy p{font-size:13px}
    .dax-founder{padding:17px}
}


/* Keep the vendor destination available on small screens without exposing
   the rest of the desktop navigation or changing the shared bottom nav. */
@media(max-width:768px){
    .top-actions a.dax-mobile-vendor{display:inline-flex!important;align-items:center}
    .quick-links a.dax-vendor-deals{display:flex!important;flex:0 0 auto}
}

/* DaxNaija header contrast — independent of the admin-selected primary color. */
.topbar{background:#1769b0!important;border-bottom:1px solid rgba(255,255,255,.18)!important}
.topbar .brand{color:#fff!important}
.topbar .brand-mark{background:#fff!important;color:#1769b0!important;box-shadow:0 3px 10px rgba(0,0,0,.16)!important}
.topbar .topbar-tagline{color:rgba(255,255,255,.82)!important}
.topbar .top-actions a,.topbar .marketplace-logout button{color:#fff!important}
.topbar .top-actions a:hover,.topbar .marketplace-logout button:hover{color:#fff!important}
.topbar .sell-button{background:#ffad1f!important;color:#17202a!important}
.topbar .sell-button:hover{background:#ff9f00!important;color:#17202a!important}


.hero-location-pair{display:grid;grid-template-columns:1fr 1.15fr}.hero-location-pair select{min-width:0;border-right:1px solid var(--line)}.hero-location-pair select:last-child{border-right:0}@media(max-width:600px){.hero-location-pair{grid-template-columns:1fr 1fr}}


/* DaxNaija desktop browsing polish: keep categories in view while ads scroll. */
@media (min-width: 769px) {
    .marketplace-layout > .sidebar {
        position: sticky;
        top: 84px;
        align-self: start;
        z-index: 20;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(14, 46, 28, .09);
    }
    .sidebar-heading {
        background: linear-gradient(120deg, #ffffff 0%, #f0fbf4 100%);
        border-radius: 14px 14px 0 0;
    }
    .category-browser { min-height: 0; }
    .category-list {
        max-height: calc(100vh - 158px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #b8ddc5 transparent;
    }
    .category-list::-webkit-scrollbar { width: 6px; }
    .category-list::-webkit-scrollbar-thumb { background: #b8ddc5; border-radius: 99px; }
    .category-row { padding-top: 10px; padding-bottom: 10px; }
}

/* Premium, Nigeria-inspired skyline graphic above the DaxNaija footer. */
.site-footer {
    background: var(--site-primary);
    color: #fff;
    margin-top: 40px;
    position: relative;
    overflow: visible;
}
.footer-skyline {
    height: 142px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #edf5fa 0%, #e6f1f6 100%);
    line-height: 0;
}
.footer-skyline svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.footer-skyline .skyline-fill { fill: var(--site-primary); }
.footer-skyline .skyline-detail {
    fill: none;
    stroke: var(--site-primary);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-inner {
    position: relative;
    max-width: 1240px;
    margin: auto;
    padding: 38px 24px 34px;
    display: grid;
    grid-template-columns: 2.4fr repeat(2, 1fr);
    gap: 40px;
}
.footer-brand .brand-mark { background: #087c32; color: #fff; box-shadow: 0 5px 16px rgba(0, 67, 24, .2); }
.footer-brand p { color: rgba(255,255,255,.86); }
.footer-column h3 { color: #eaffef; }
.footer-column a { color: rgba(255,255,255,.88); }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.24); color: rgba(255,255,255,.78); }
@media (max-width: 768px) {
    .footer-skyline { height: 82px; }
    .footer-inner { padding-top: 28px; }
}


.tutorial-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:-5px auto 24px}
.tutorial-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:150px;padding:12px 19px;border:1px solid rgba(255,255,255,.6);border-radius:999px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.tutorial-button:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(0,0,0,.18)}
.tutorial-buy{background:#fff;color:var(--site-primary-text)}.tutorial-sell{background:var(--site-accent,#ff9f43);color:#20252a}
.tutorial-modal[hidden]{display:none!important}.tutorial-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px}.tutorial-backdrop{position:absolute;inset:0;background:rgba(8,18,14,.78);backdrop-filter:blur(3px)}.tutorial-dialog{position:relative;width:min(900px,100%);max-height:92vh;overflow:auto;background:#fff;color:#1d2521;border-radius:16px;padding:16px;box-shadow:0 25px 80px rgba(0,0,0,.35)}.tutorial-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.tutorial-modal-head h2{font-size:19px;margin:0}.tutorial-close{width:38px;height:38px;border:0;border-radius:50%;background:#f0f3f1;color:#24332a;font-size:28px;line-height:1;cursor:pointer}.tutorial-player{width:100%;aspect-ratio:16/9;background:#101614;border-radius:10px;overflow:hidden}.tutorial-player iframe,.tutorial-player video{display:block;width:100%;height:100%;border:0;object-fit:contain}.tutorial-coming-soon{margin:14px 0 2px;padding:14px;border-radius:9px;background:#f1f8f3;color:#226a39;text-align:center;font-weight:700}.tutorial-coming-soon[hidden]{display:none!important}.tutorial-modal-open{overflow:hidden}
@media(max-width:600px){.tutorial-actions{gap:8px;margin:0 auto 18px}.tutorial-button{min-width:0;flex:1;padding:11px 12px;font-size:13px}.tutorial-dialog{padding:11px;border-radius:12px}.tutorial-modal-head h2{font-size:16px}.tutorial-modal{padding:10px}}

/* Recently viewed: use a single horizontal row only when there are more cards
   than the current screen can show. Keep manual scrolling available. */
.recent-viewed-feed .recent-viewed-track.is-auto-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}
.recent-viewed-feed .recent-viewed-track.is-auto-slider .ad-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .recent-viewed-feed .recent-viewed-track.is-auto-slider .ad-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}
@media (max-width: 768px) {
    .recent-viewed-feed .recent-viewed-track.is-auto-slider .ad-card {
        flex-basis: calc((100% - 10px) / 2);
    }
}
@media (prefers-reduced-motion: reduce) {
    .recent-viewed-feed .recent-viewed-track.is-auto-slider { scroll-behavior: auto; }
}


/* Mobile scroll handoff: keep the header until the search area reaches it,
   then dock the complete location + keyword search bar at the viewport top. */
@media (max-width: 768px) {
    .topbar, #dxh {
        transition: transform .2s ease;
        will-change: transform;
    }
    body.dax-mobile-search-docked .topbar,
    body.dax-mobile-search-docked #dxh {
        transform: translateY(-110%);
        pointer-events: none;
    }
    .hero-search.dax-search-docked {
        position: fixed !important;
        top: 0 !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 9990 !important;
        box-shadow: 0 5px 18px rgba(0,0,0,.18) !important;
        border-radius: 0 0 10px 10px !important;
    }
    .hero-search.dax-search-docked .hero-location select {
        height: 46px !important;
    }
    .hero-search.dax-search-docked .hero-keyword input,
    .hero-search.dax-search-docked .search-button {
        height: 48px !important;
    }
    .hero-search.dax-search-docked .search-button {
        min-width: 48px !important;
    }
    .dax-search-placeholder {
        display: block;
        width: 100%;
        pointer-events: none;
        visibility: hidden;
    }
}


/* Compact mobile homepage: remove secondary hero links and quick links to expose ads sooner. */
@media (max-width: 760px) {
  .hero-kicker,
  .hero .free-note,
  .hero .popular-tags,
  .hero .hero-links,
  .marketplace-shell > .quick-links {
    display: none !important;
  }
  .hero-inner {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
  }
  .hero-intro {
    margin: 8px 0 14px !important;
    max-width: 100%;
  }
}


/* Premium search bar treatment: crisp geometry, layered depth and clear field separation. */
.hero-search {
    display: grid !important;
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 64px !important;
    align-items: stretch;
    max-width: 850px !important;
    min-height: 68px;
    margin: 0 auto !important;
    padding: 6px;
    gap: 0;
    overflow: visible !important;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 18px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f7fbf8 100%) !important;
    box-shadow: 0 16px 38px rgba(0, 43, 18, .24), 0 3px 8px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.95) !important;
    isolation: isolate;
}
.hero-location {
    min-width: 0;
    border-right: 0 !important;
    border-radius: 12px 0 0 12px;
    background: #f2f8f4;
}
.hero-location-pair {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    height: 100%;
    min-width: 0;
}
.hero-location-pair select {
    min-width: 0;
    width: 100%;
    height: 56px !important;
    padding: 0 14px !important;
    border: 0;
    border-right: 1px solid #dfe9e2 !important;
    border-radius: 0;
    background: transparent !important;
    color: #263b2e !important;
    font-size: 13px;
    font-weight: 750 !important;
    outline: none;
    appearance: auto;
}
.hero-location-pair select:first-child { border-radius: 12px 0 0 12px; }
.hero-location-pair select:last-child {
    border-right: 1px solid #dfe9e2 !important;
    border-radius: 0;
}
.hero-location-pair select:focus-visible {
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 0 2px #20a957;
}
.hero-keyword {
    min-width: 0;
    background: #fff;
}
.hero-keyword input {
    width: 100%;
    height: 56px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    color: #18261e !important;
    font-size: 15px !important;
    font-weight: 550;
}
.hero-keyword input::placeholder { color: #89968e !important; opacity: 1; }
.hero-search:focus-within {
    border-color: rgba(255,255,255,.98);
    box-shadow: 0 18px 42px rgba(0, 43, 18, .27), 0 0 0 3px rgba(255,255,255,.2) !important;
}
.hero-search:focus-within .hero-keyword input:focus {
    box-shadow: inset 0 -2px 0 #19a34a;
}
.search-button {
    align-self: stretch;
    width: 64px;
    min-width: 64px !important;
    height: 56px !important;
    margin-left: 5px;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, #19b653 0%, #087b32 100%) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(0, 132, 47, .24), inset 0 1px 0 rgba(255,255,255,.24) !important;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.search-button svg { width: 23px; height: 23px; }
.search-button:hover {
    color: #fff !important;
    filter: brightness(1.06);
    box-shadow: 0 7px 16px rgba(0, 132, 47, .3) !important;
    transform: translateY(-1px);
}
.search-button:active { transform: scale(.96); }
.free-note { margin-top: 18px !important; font-weight: 750 !important; letter-spacing: .1px; }

@media (max-width: 768px) {
    .hero-search {
        grid-template-columns: minmax(0, 1fr) 52px !important;
        gap: 0;
        padding: 5px;
        min-height: 0;
        border-radius: 16px !important;
        box-shadow: 0 12px 28px rgba(0, 43, 18, .23), 0 2px 6px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.95) !important;
    }
    .hero-location {
        grid-column: 1 / -1;
        border-radius: 10px 10px 0 0;
        background: linear-gradient(180deg, #f5faf6 0%, #edf6f0 100%);
        border-bottom: 1px solid #dfe9e2 !important;
    }
    .hero-location-pair { grid-template-columns: 1fr 1.15fr; }
    .hero-location-pair select {
        height: 43px !important;
        padding: 0 11px !important;
        font-size: 12px;
    }
    .hero-location-pair select:first-child { border-radius: 10px 0 0 0; }
    .hero-location-pair select:last-child { border-radius: 0 10px 0 0; }
    .hero-keyword {
        grid-column: 1;
        border-radius: 0 0 0 10px;
    }
    .hero-keyword input {
        height: 49px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }
    .search-button {
        grid-column: 2;
        width: 48px;
        min-width: 48px !important;
        height: 49px !important;
        margin: 0;
        border-radius: 0 0 10px 0 !important;
    }
    .free-note { margin-top: 13px !important; }
    .hero-search.dax-search-docked {
        left: 7px !important;
        right: 7px !important;
        padding: 4px;
        border-radius: 0 0 13px 13px !important;
    }
    .hero-search.dax-search-docked .hero-location select { height: 40px !important; }
    .hero-search.dax-search-docked .hero-keyword input,
    .hero-search.dax-search-docked .search-button { height: 44px !important; }
    .hero-search.dax-search-docked .search-button { min-width: 44px !important; }
}
@media (max-width: 380px) {
    .hero-location-pair select { padding-left: 8px !important; font-size: 11px; }
    .hero-keyword input { font-size: 12px !important; }
}

