/* Overlay */
#allNigeriaPanel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

/* Modal content */
.all-nigeria-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top search bar */
.all-nigeria-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.all-nigeria-top h2 { margin:0; font-size:20px; font-weight:700; }
.all-nigeria-top input {
  flex:1;
  max-width:300px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #e7eaf0;
  font-size:14px;
  outline:none;
}
.all-nigeria-top .btn-close {
  padding:8px 12px;
  border-radius:12px;
  background:#ff4d4f;
  color:#fff;
  border:none;
  cursor:pointer;
  font-weight:600;
}

/* States Grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap:12px;
}
.states-grid button {
  padding:14px 16px;
  border-radius:12px;
  background:#f8f9fa;
  border:1px solid #e7eaf0;
  cursor:pointer;
  font-weight:600;
  color:#1d2330;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transition: all 0.25s ease;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.states-grid button span {
  font-size:12px;
  color:#606a7a;
  margin-top:4px;
}
.states-grid button:hover {
  background: var(--accent);
  color:#fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:0 6px 12px rgba(0,0,0,0.15);
}
.all-nigeria-btn {
  padding: 10px 18px;
  border-radius: 20px;            
  background: rgba(255,255,255,0.15); /* lighter & visible on dark background */
  color: #fff;                        /* white text for contrast */
  border: 1px solid rgba(255,255,255,0.3); /* subtle border */
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 120px;
}

.all-nigeria-btn:hover {
  background: rgba(255,255,255,0.25); /* slightly brighter on hover */
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.all-nigeria-btn:active {
  transform: translateY(0);
  background: rgba(255,255,255,0.2);
}


/* Ads Grid uses your existing .grid and .card */
/* Ads Scroll Section */
.ads-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#ads-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 16px;
background: #eee;
}

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
}

.ad-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  flex: 0 0 auto;
  transition: transform .2s, box-shadow .2s;
}
.ad-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.ad-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

@media (min-width: 1024px){
#products,.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card,.product-card{max-width:100%!important;min-height:auto!important;}
.card img,.product-card img{height:220px!important;object-fit:cover!important;}
header input[type="text"],header input[type="search"],#search{width:260px!important;min-width:260px!important;}
header,.topbar,.header{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

#ads-container{
width:100%;
max-width:1150px;
margin:auto;
overflow:hidden;
border-radius:24px;
}

.billboard-wrap{
position:relative;
overflow:hidden;
border-radius:24px;
background:#111;
box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.billboard-track{
display:flex;
transition:transform .8s ease-in-out;
width:100%;
}

.billboard-slide{
.billboard-slide img{
width:100%;
height:auto;
object-fit:contain;
object-position:center;
display:block;
}

min-width:100%;
position:relative;
overflow:hidden;
}


.billboard-dots{
position:absolute;
left:0;
right:0;
bottom:14px;
display:flex;
justify-content:center;
gap:8px;
z-index:9;
}

.dot{
width:11px;
height:11px;
border-radius:50%;
background:rgba(255,255,255,.5);
}

.dot.active{
background:#ff8a00;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#ads-container{
border-radius:18px;
}

.billboard-wrap{
border-radius:18px;
}

.billboard-slide img{
}

#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

#ads-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 16px;
background: #eee;
}

  position: relative;
  width: 100%;
  height: 400px;      /* big banner */
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}
.ad-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out;
}
.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Responsive heights */
@media (max-width: 768px) {
#ads-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 16px;
background: #eee;
}

}
@media (max-width: 480px) {
#ads-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 16px;
background: #eee;
}

}
@media (min-width: 1024px){
#products,.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card,.product-card{max-width:100%!important;min-height:auto!important;}
.card img,.product-card img{height:220px!important;object-fit:cover!important;}
header input[type="text"],header input[type="search"],#search{width:260px!important;min-width:260px!important;}
header,.topbar,.header{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

.ads-section {
  margin: 50px auto;
  padding: 20px;
  max-width: 1400px;
}

.ads-section h2 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #111;
  text-align: center;
}

.ads-wrapper {
  overflow: hidden;
  width: 100%;
}

.ads-container {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
}

.ads-container a {
  flex: 0 0 calc(50% - 15px); /* 2 ads per row on desktop */
  text-decoration: none;
}

.ads-container img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s;
}

.ads-container img:hover {
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 991px) {
  .ads-container a {
    flex: 0 0 calc(50% - 15px);
  }
  .ads-container img {
    height: 260px;
  }
}

/* Mobile */
@media (max-width: 599px) {
  .ads-container a {
    flex: 0 0 100%;
  }
  .ads-container img {
    height: 220px;
  }
}
@media (min-width: 1024px){
#products,.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card,.product-card{max-width:100%!important;min-height:auto!important;}
.card img,.product-card img{height:220px!important;object-fit:cover!important;}
header input[type="text"],header input[type="search"],#search{width:260px!important;min-width:260px!important;}
header,.topbar,.header{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 72px;
  background: rgba(11,42,74,.96);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
.bottom-nav a {
  flex:1;
  height:58px;
  margin:0 4px;
  border-radius:16px;
  text-align:center;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
.bottom-nav a span { font-size:11px; font-weight:700; }
.bottom-nav a.active { background: var(--accent); color:#fff; opacity:1; box-shadow:0 4px 14px rgba(255,138,0,.45); }
  font-size:18px;
.bottom-nav a:hover { transform: translateY(-2px); }
}
  gap: 4px;
  opacity: 0.85;
  font-weight: 500;
}
.bottom-nav a span { font-size: 12px; }
.bottom-nav a.active { color: var(--accent); opacity: 1; }
.bottom-nav.hide { transform: translateY(100%); }
@media (min-width: 1024px){
#products,.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card,.product-card{max-width:100%!important;min-height:auto!important;}
.card img,.product-card img{height:220px!important;object-fit:cover!important;}
header input[type="text"],header input[type="search"],#search{width:260px!important;min-width:260px!important;}
header,.topbar,.header{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* Banner container */
#ads-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 16px;
background: #eee;
}

  position: relative;
  width: 100%;
  height: 300px;     /* adjust banner height */
  overflow: hidden;
  border-radius: 10px;
  background: #eee;  /* fallback background */
}

/* Each slide */
.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ad-slide.active {
  opacity: 1;
  z-index: 1;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



@media (min-width: 1024px){
#products,.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card,.product-card{max-width:100%!important;min-height:auto!important;}
.card img,.product-card img{height:220px!important;object-fit:cover!important;}
header input[type="text"],header input[type="search"],#search{width:260px!important;min-width:260px!important;}
header,.topbar,.header{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== PROFESSIONAL CATEGORY SECTION ===== */
#category-section.categories{
display:grid !important;
grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
gap:14px;
margin-top:10px;
}

#category-section .cat{
background:#fff !important;
border:1px solid #ececec !important;
border-radius:16px !important;
padding:14px 10px !important;
min-height:115px;
display:flex !important;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
cursor:pointer;
transition:all .18s ease;
box-shadow:0 4px 14px rgba(0,0,0,.06);
}

#category-section .cat:hover{
transform:translateY(-4px);
box-shadow:0 10px 22px rgba(0,0,0,.10);
border-color:#ff8a00 !important;
}

#category-section .cat .icon{
width:58px;
height:58px;
border-radius:14px;
background:#fff7ef;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

#category-section .cat .icon img{
width:42px !important;
height:42px !important;
object-fit:contain;
display:block;
}

#category-section .cat span{
font-size:14px !important;
font-weight:700 !important;
color:#222 !important;
text-align:center;
line-height:1.2;
text-transform:capitalize;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#category-section.categories{
grid-template-columns:repeat(4,1fr);
gap:10px;
}
#category-section .cat{
min-height:100px;
padding:10px 6px !important;
}
#category-section .cat .icon{
width:48px;
height:48px;
}
#category-section .cat .icon img{
width:34px !important;
height:34px !important;
}
#category-section .cat span{
font-size:12px !important;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== PREMIUM CATEGORY ICON BOOST ===== */

#category-section .cat{
min-height:128px !important;
padding:12px 8px !important;
border-radius:18px !important;
}

#category-section .cat .icon{
width:74px !important;
height:74px !important;
border-radius:18px !important;
background:#fff8f0 !important;
box-shadow:inset 0 0 0 1px rgba(255,138,0,.08);
}

#category-section .cat .icon img{
width:62px !important;
height:62px !important;
object-fit:cover !important;
border-radius:14px;
}

#category-section .cat span{
font-size:15px !important;
font-weight:800 !important;
margin-top:4px;
letter-spacing:.2px;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#category-section .cat{
min-height:108px !important;
}
#category-section .cat .icon{
width:58px !important;
height:58px !important;
}
#category-section .cat .icon img{
width:48px !important;
height:48px !important;
}
#category-section .cat span{
font-size:12px !important;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== LUXURY CATEGORY TOUCH ===== */

#category-section .cat{
background:linear-gradient(180deg,#ffffff 0%,#fffaf4 100%) !important;
border:1px solid rgba(22,95,170,.10) !important;
box-shadow:
0 8px 22px rgba(0,0,0,.06),
0 2px 6px rgba(255,138,0,.08) !important;
position:relative;
overflow:hidden;
}

#category-section .cat::before{
content:"";
position:absolute;
top:0;
left:0;
right:0;
height:4px;
background:linear-gradient(90deg,#165faa,#ff8a00);
opacity:.95;
}

#category-section .cat:hover{
transform:translateY(-5px) scale(1.02);
box-shadow:
0 14px 28px rgba(0,0,0,.10),
0 4px 10px rgba(255,138,0,.15) !important;
border-color:#ff8a00 !important;
}

#category-section .cat .icon{
background:linear-gradient(135deg,#fff,#fff4e8) !important;
border:1px solid rgba(255,138,0,.10);
}

#category-section .cat span{
color:#1b1b1b !important;
font-weight:800 !important;
text-shadow:0 1px 0 rgba(255,255,255,.7);
}

#category-section .cat:hover span{
color:#165faa !important;
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== FULL PREMIUM CATEGORY GLOW FIT ===== */

#category-section.categories{
display:grid !important;
grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
gap:18px !important;
padding:10px 4px;
}

#category-section .cat{
position:relative;
min-height:170px !important;
padding:14px 10px !important;
border-radius:26px !important;
border:none !important;
overflow:hidden;
background:
linear-gradient(135deg,#1b6fd1 0%,#0b56b3 18%,#ffffff 18%,#ffffff 82%,#ff8a00 82%,#ff9f1c 100%) !important;
box-shadow:
0 10px 28px rgba(0,0,0,.10),
0 0 0 1px rgba(255,255,255,.7) inset;
display:flex !important;
flex-direction:column;
align-items:center;
justify-content:center;
gap:12px;
transition:all .22s ease;
}

#category-section .cat::before{
content:"";
position:absolute;
inset:4px;
border-radius:22px;
background:linear-gradient(180deg,#ffffff 0%,#fffaf3 100%);
z-index:0;
}

#category-section .cat:hover{
transform:translateY(-6px) scale(1.03);
box-shadow:
0 16px 34px rgba(0,0,0,.14),
0 8px 18px rgba(255,138,0,.18);
}

#category-section .cat .icon,
#category-section .cat span{
position:relative;
z-index:2;
}

#category-section .cat .icon{
width:88px !important;
height:88px !important;
border-radius:22px !important;
background:linear-gradient(135deg,#ffffff,#fff4e8) !important;
display:flex;
align-items:center;
justify-content:center;
box-shadow:
0 8px 18px rgba(0,0,0,.08),
inset 0 0 0 1px rgba(255,138,0,.12);
overflow:hidden;
}

#category-section .cat .icon img{
width:74px !important;
height:74px !important;
object-fit:cover !important;
border-radius:18px;
display:block;
}

#category-section .cat span{
font-size:18px !important;
font-weight:900 !important;
color:#111 !important;
letter-spacing:.2px;
text-align:center;
line-height:1.15;
text-transform:capitalize;
text-shadow:0 1px 0 rgba(255,255,255,.9);
}

/* mobile */
.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#category-section.categories{
grid-template-columns:repeat(3,1fr) !important;
gap:12px !important;
}
#category-section .cat{
min-height:138px !important;
border-radius:20px !important;
}
#category-section .cat::before{
border-radius:16px;
}
#category-section .cat .icon{
width:64px !important;
height:64px !important;
border-radius:16px !important;
}
#category-section .cat .icon img{
width:54px !important;
height:54px !important;
}
#category-section .cat span{
font-size:14px !important;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== SMALLER CATEGORY ONLY ===== */
#category-section.categories{
display:grid!important;
grid-template-columns:repeat(auto-fit,minmax(74px,1fr))!important;
gap:10px!important;
padding:4px 0!important;
}

#category-section .cat{
min-height:112px!important;
padding:6px 4px!important;
border-radius:24px!important;
}

#category-section .cat .icon{
width:46px!important;
height:46px!important;
margin-top:12px!important;
}

#category-section .cat .icon img{
width:100%!important;
height:auto!important;
object-fit:cover!important;
}

#category-section .cat span{
font-size:11px!important;
padding-bottom:6px!important;
line-height:1.05!important;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#category-section.categories{
grid-template-columns:repeat(4,1fr)!important;
gap:8px!important;
}
#category-section .cat{
min-height:98px!important;
}
#category-section .cat .icon{
width:40px!important;
height:40px!important;
}
#category-section .cat span{
font-size:10px!important;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

/* ===== CATEGORY IMAGE BOOST ONLY ===== */
#category-section .cat .icon{
width:54px!important;
height:54px!important;
margin-top:10px!important;
background:#fff!important;
border-radius:14px!important;
overflow:hidden!important;
box-shadow:0 3px 8px rgba(0,0,0,.08)!important;
}

#category-section .cat .icon img{
width:100%!important;
height:auto!important;
object-fit:cover!important;
filter:contrast(1.08) saturate(1.08) brightness(1.03)!important;
border-radius:12px!important;
}

#category-section .cat{
min-height:114px!important;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#category-section .cat .icon{
width:46px!important;
height:46px!important;
}
#category-section .cat .icon img{
border-radius:10px!important;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}

#rearai-fab{
position:fixed;
right:18px;
bottom:90px;
width:70px;
height:70px;
border-radius:24px;
background:linear-gradient(135deg,#0057d9,#0a84ff,#ff8a00,#0057d9);
background-size:300% 300%;
animation:rearaiGradient 8s ease infinite,rearaiFloat 4s ease-in-out infinite;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:800;
letter-spacing:-0.3px;
cursor:pointer;
z-index:999999;
box-shadow:0 14px 40px rgba(0,87,217,.35);
border:1px solid rgba(255,255,255,.18);
backdrop-filter:blur(16px);
-webkit-backdrop-filter:blur(16px);
transition:all .3s ease;
overflow:hidden;
}

#rearai-fab::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(180deg,rgba(255,255,255,.22),transparent);
pointer-events:none;
}

#rearai-fab::after{
content:"";
position:absolute;
width:140%;
height:140%;
background:radial-gradient(circle,rgba(255,255,255,.18),transparent 60%);
animation:rearaiPulse 3s ease infinite;
}

#rearai-fab:hover{
transform:translateY(-4px) scale(1.08);
box-shadow:0 18px 50px rgba(0,87,217,.5);
}

@keyframes rearaiGradient{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}

@keyframes rearaiFloat{
0%,100%{transform:translateY(0px);}
50%{transform:translateY(-6px);}
}

@keyframes rearaiPulse{
0%{transform:scale(.8);opacity:.35;}
50%{transform:scale(1);opacity:.12;}
100%{transform:scale(.8);opacity:.35;}
}
}

#rearai-fab{
position:fixed!important;
right:18px!important;
bottom:90px!important;
z-index:999999!important;
}

#rearai-box{
animation:rearaiPopup .25s ease;
transform-origin:bottom right;
position:fixed;
right:18px;
bottom:165px;
width:360px;
max-width:92%;
height:520px;
background:#fff;
border-radius:24px;
overflow:hidden;
display:none;
flex-direction:column;
z-index:999999;
box-shadow:0 20px 50px rgba(0,0,0,.25);
border:1px solid rgba(255,255,255,.2);
}

#rearai-top{
padding:18px;
background:#000;
color:#fff;
font-weight:700;
font-size:18px;
display:flex;
align-items:center;
justify-content:space-between;
}

#rearai-status{
font-size:12px;
opacity:.7;
margin-top:4px;
}

#rearai-messages{
flex:1;
overflow:auto;
padding:14px;
background:#f5f5f5;
}

.rearai-msg{
animation:rearaiMessage .25s ease;
transform-origin:bottom;

max-width:85%;
padding:12px 14px;
margin-bottom:12px;
border-radius:18px;
font-size:14px;
line-height:1.45;
word-wrap:break-word;
}

.rearai-user{
margin-left:auto;
background:#000;
color:#fff;
border-bottom-right-radius:6px;
}

.rearai-ai{
background:#fff;
color:#111;
border-bottom-left-radius:6px;
box-shadow:0 2px 8px rgba(0,0,0,.06);
}

#rearai-input-wrap{
display:flex;
padding:12px;
gap:10px;
background:#fff;
border-top:1px solid #eee;
}

#rearai-input{
flex:1;
border:none;
background:#f3f3f3;
padding:14px;
border-radius:14px;
outline:none;
font-size:14px;
}

#rearai-send{
border:none;
background:#000;
color:#fff;
padding:0 18px;
border-radius:14px;
cursor:pointer;
font-weight:600;
}

.rearai-thinking{
display:flex;
align-items:center;
gap:5px;
padding:14px 16px;
background:#fff;
border-radius:18px;
width:fit-content;
margin-bottom:12px;
box-shadow:0 4px 15px rgba(0,0,0,.06);
animation:rearaiMessage .25s ease;
}

.rearai-dot{
width:8px;
height:8px;
border-radius:50%;
background:#0a84ff;
animation:rearaiBounce 1.2s infinite ease-in-out;
}

.rearai-dot:nth-child(2){
animation-delay:.15s;
}

.rearai-dot:nth-child(3){
animation-delay:.3s;
}

@keyframes rearaiBounce{
0%,80%,100%{transform:scale(.6);opacity:.5;}
40%{transform:scale(1);opacity:1;}
}

@keyframes rearaiMessage{
@keyframes rearaiPopup{
from{opacity:0;transform:translateY(20px) scale(.96);}
to{opacity:1;transform:translateY(0) scale(1);}
}

from{opacity:0;transform:translateY(10px) scale(.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:768px){
#rearai-fab{
position:fixed!important;
right:18px!important;
bottom:90px!important;
z-index:999999!important;
}

#rearai-box{
animation:rearaiPopup .25s ease;
transform-origin:bottom right;
height:72vh;
bottom:90px;
right:10px;
width:95%;
}
}
#sellerSearchResults{margin:12px 0;display:none;}
.seller-search-card{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:14px;margin-bottom:10px;cursor:pointer;border:1px solid #eee;}
.seller-search-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#ddd;}
.seller-search-name{font-weight:700;font-size:15px;}
.seller-search-meta{font-size:13px;color:#777;margin-top:2px;}

/* MOBILE NAV UPGRADE */
.bottom-nav a{
font-size:24px !important;
font-weight:700 !important;
}
.bottom-nav a span{
font-size:14px !important;
font-weight:800 !important;
letter-spacing:.2px;
}
.bottom-nav a.active{
transform:scale(1.08) !important;
box-shadow:0 6px 20px rgba(255,138,0,.65) !important;
}

.rs-activity-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;min-width:280px;max-width:280px;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:.2s;}
.rs-activity-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.rs-activity-icon{width:46px;height:46px;border-radius:12px;background:#fff3e8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.rs-activity-seller{font-weight:700;font-size:15px;color:#111;}
.rs-activity-text{font-size:14px;color:#333;margin-top:2px;}
.rs-activity-time{font-size:12px;color:#888;margin-top:6px;}
#activity-feed{margin-top:10px;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#activity-feed::-webkit-scrollbar{display:none;}


.rs-activity-title{font-weight:700;font-size:15px;color:#111;margin-bottom:4px;}
.rs-activity-price{font-size:14px;font-weight:700;color:#ff7a00;margin-bottom:4px;}
.rs-activity-meta{font-size:13px;color:#666;}
.rs-activity-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#888;}
.rs-view-link{color:#ff7a00;font-weight:700;cursor:pointer;}

.ig-verified{
display:inline-flex;
align-items:center;
justify-content:center;
width:16px;
height:16px;
margin-left:4px;
background:#0095f6;
color:#fff;
font-size:10px;
font-weight:900;
clip-path:polygon(50% 0%,62% 12%,78% 5%,85% 22%,100% 25%,92% 40%,100% 50%,92% 60%,100% 75%,85% 78%,78% 95%,62% 88%,50% 100%,38% 88%,22% 95%,15% 78%,0% 75%,8% 60%,0% 50%,8% 40%,0% 25%,15% 22%,22% 5%,38% 12%);
box-shadow:0 0 6px rgba(0,149,246,.45);
vertical-align:middle;
}
