*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

:root{
  --yellow:#facc15;
  --yellow-dark:#eab308;
  --black:#111827;
  --dark:#020617;
  --gray:#64748b;
  --light:#f8fafc;
  --white:#ffffff;
  --green:#22c55e;
  --blue:#2563eb;
  --orange:#f97316;
  --border:#e5e7eb;
}

body{
  background:#f3f4f6;
  color:var(--black);
  padding-bottom:88px;
}

.mobile-header{
  height:66px;
  background:var(--dark);
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 4px 18px rgba(0,0,0,.18);
}

.logo{
  font-size:25px;
  font-weight:900;
  letter-spacing:-.5px;
  color:var(--yellow);
}

.logo span{
  color:#fff;
  font-size:14px;
  font-weight:500;
}

.menu-btn,
.post-btn{
  background:none;
  border:0;
  color:var(--white);
  font-size:28px;
  cursor:pointer;
}

.search-box{
  margin:14px;
  background:var(--white);
  border-radius:16px;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
  border:1px solid var(--border);
}

.search-box input{
  border:0;
  outline:0;
  width:100%;
  font-size:15px;
}

.hero-banner{
  margin:14px;
  padding:22px;
  border-radius:22px;
  background:linear-gradient(135deg,#111827,#292524);
  color:#fff;
  box-shadow:0 16px 34px rgba(0,0,0,.18);
}

.hero-banner h1{
  font-size:27px;
  line-height:1.15;
  margin-bottom:10px;
  color:var(--yellow);
}

.hero-banner p{
  font-size:14px;
  line-height:1.5;
  color:#e5e7eb;
  margin-bottom:16px;
}

.hero-banner button,
.inspection-home button{
  width:100%;
  border:0;
  background:var(--yellow);
  color:#111827;
  padding:14px;
  border-radius:14px;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
}

.quick-cats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:0 14px;
}

.cat-card{
  background:var(--white);
  border-radius:18px;
  height:102px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:30px;
  box-shadow:0 8px 24px rgba(15,23,42,.07);
  border:1px solid var(--border);
  cursor:pointer;
}

.cat-card span{
  font-size:15px;
  margin-top:8px;
  font-weight:800;
}

.trust-strip{
  margin:14px;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.trust-strip div{
  background:#fff7cc;
  border:1px solid #fde68a;
  color:#713f12;
  padding:11px 13px;
  border-radius:14px;
  font-size:13px;
  font-weight:800;
}

.featured,
.inspection-home{
  padding:18px 14px;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.section-title h3{
  font-size:19px;
  color:var(--black);
}

.section-title a{
  font-size:13px;
  text-decoration:none;
  color:#92400e;
  font-weight:800;
}

.ad-card{
  background:var(--white);
  border-radius:18px;
  display:flex;
  gap:12px;
  padding:13px;
  box-shadow:0 8px 24px rgba(15,23,42,.07);
  border:1px solid var(--border);
  margin-bottom:14px;
}

.ad-img{
  width:104px;
  min-width:104px;
  height:92px;
  background:#fef3c7;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:44px;
}

.ad-info h4{
  font-size:16px;
  margin-bottom:4px;
}

.ad-info p{
  font-size:13px;
  color:var(--gray);
}

.ad-info strong{
  display:block;
  color:#b45309;
  margin:6px 0;
  font-size:17px;
}

.ad-info small{
  color:var(--gray);
  font-size:12px;
}

.mini-actions{
  display:flex;
  gap:7px;
  margin-top:9px;
}

.mini-actions button{
  border:0;
  border-radius:10px;
  padding:8px 9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.sample-detail-btn{
  background:var(--dark);
  color:#fff;
}

.sample-inspect-btn{
  background:var(--yellow);
  color:#111827;
}

.inspection-home{
  margin:0 14px 18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 8px 24px rgba(15,23,42,.07);
}

.inspection-home h2{
  font-size:22px;
  margin-bottom:8px;
}

.inspection-home p{
  color:var(--gray);
  font-size:14px;
  line-height:1.5;
  margin-bottom:16px;
}

.inspection-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}

.inspection-grid div{
  background:#fffbeb;
  border:1px solid #fde68a;
  padding:13px;
  border-radius:16px;
}

.inspection-grid b{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark);
  color:var(--yellow);
  border-radius:50%;
  margin-bottom:8px;
}

.inspection-grid span{
  font-size:13px;
  font-weight:800;
}

.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:66px;
  background:#fff;
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top:1px solid var(--border);
  z-index:60;
}

.bottom-nav a{
  font-size:20px;
  text-align:center;
  color:#111827;
  text-decoration:none;
  cursor:pointer;
}

.bottom-nav span{
  display:block;
  font-size:11px;
  margin-top:3px;
  font-weight:700;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:80;
}

.overlay.active{
  display:block;
}

.side-menu{
  position:fixed;
  left:-90%;
  top:0;
  width:90%;
  max-width:430px;
  height:100vh;
  background:#fff;
  z-index:90;
  transition:.25s ease;
  padding:18px;
  overflow-y:auto;
}

.side-menu.active{
  left:0;
}

.close-btn,
.back-btn{
  background:none;
  border:0;
  font-size:32px;
  cursor:pointer;
}

.menu-search{
  background:#f3f4f6;
  border-radius:14px;
  padding:14px;
  margin:14px 0;
  color:#64748b;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px 0;
  border-bottom:1px solid #eee;
  font-size:28px;
  cursor:pointer;
}

.menu-item div{
  flex:1;
}

.menu-item b{
  font-size:16px;
}

.menu-item p{
  font-size:13px;
  color:#777;
  margin-top:3px;
}

.menu-item span{
  font-size:22px;
  color:#999;
}

.sub-category-panel{
  position:fixed;
  top:0;
  left:-100%;
  width:100%;
  max-width:460px;
  height:100%;
  background:#f8fafc;
  z-index:999;
  transition:.25s ease;
  overflow-y:auto;
  padding:20px;
}

.sub-category-panel.active{
  left:0;
}

#backToMenu{
  color:#111827;
  font-size:16px;
  font-weight:900;
  margin-bottom:18px;
}

#subCategoryTitle{
  font-size:22px;
  margin-bottom:18px;
}

.sub-cat-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:17px 0;
  border-bottom:1px solid #e5e7eb;
  cursor:pointer;
  font-size:16px;
  background:#fff;
  margin-bottom:8px;
  border-radius:14px;
  padding-left:14px;
  padding-right:14px;
}

.listing-card,
.my-ad-card{
  display:flex;
  gap:12px;
  margin:14px 0;
  padding:12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}

.listing-img,
.my-ad-image{
  width:95px;
  min-width:95px;
  height:85px;
  background:#fef3c7;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  overflow:hidden;
}

.listing-img img,
.my-ad-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.listing-info h4,
.my-ad-content h3{
  font-size:15px;
  margin-bottom:6px;
}

.listing-info strong,
.my-ad-price{
  display:block;
  color:#b45309;
  margin-bottom:5px;
  font-weight:900;
}

.listing-info p,
.my-ad-date{
  font-size:13px;
  color:#666;
  margin-bottom:8px;
}

.listing-info button,
.open-my-ad-btn,
.panel-btn,
.publish-ad-btn,
.login-btn,
.register-btn,
.send-request{
  border:0;
  background:var(--dark);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}

.detail-page{
  padding-bottom:105px;
}

.detail-gallery,
.slider-main{
  height:210px;
  background:#fef3c7;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:70px;
  margin-bottom:14px;
  overflow:hidden;
}

.detail-gallery img,
.slider-main img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.thumbs,
.slider-thumbs{
  display:flex;
  gap:8px;
  margin-bottom:16px;
  overflow-x:auto;
}

.thumbs div,
.slider-thumbs div{
  width:58px;
  min-width:58px;
  height:54px;
  background:#fff7cc;
  border:1px solid #fde68a;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.thumbs img,
.slider-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.detail-page h2{
  font-size:18px;
  line-height:1.35;
  margin-bottom:8px;
}

.detail-price{
  font-size:24px;
  font-weight:900;
  color:#b45309;
  margin-bottom:8px;
}

.detail-location{
  color:#666;
  margin-bottom:16px;
  font-size:14px;
}

.detail-box,
.seller-box,
.inspect-packages,
.seller-profile-box,
.map-box,
.similar-box,
.boost-box,
.request-form,
.auth-box,
.success-box,
.admin-request-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  margin-bottom:14px;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.detail-box h3,
.seller-box h3,
.inspect-packages h3{
  font-size:17px;
  margin-bottom:12px;
}

.detail-box div{
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #f1f1f1;
  padding:10px 0;
  gap:12px;
}

.detail-box div:last-child{
  border-bottom:0;
}

.detail-box span{
  color:#64748b;
}

.detail-box b{
  text-align:right;
}

.package-card{
  display:flex;
  justify-content:space-between;
  padding:13px 0;
  border-bottom:1px solid #eee;
}

.package-card:last-child{
  border-bottom:0;
}

.package-card span{
  color:#b45309;
  font-weight:900;
}

.detail-actions{
  position:fixed;
  bottom:66px;
  left:0;
  right:0;
  display:flex;
  gap:8px;
  padding:10px;
  background:#fff;
  border-top:1px solid var(--border);
  z-index:70;
}

.detail-actions button{
  flex:1;
  border:0;
  padding:12px 7px;
  border-radius:12px;
  font-weight:800;
  color:#fff;
  font-size:12px;
}

.call-btn{background:#111827;}
.wp-btn{background:#16a34a;}
.inspect-btn{background:#f59e0b;color:#111827!important;}

.request-form h2,
.auth-box h2,
.success-box h2{
  font-size:21px;
  margin-bottom:6px;
}

.request-form p,
.auth-box p,
.success-box p{
  color:#666;
  font-size:14px;
  margin-bottom:16px;
}

.request-form label,
.auth-box label{
  display:block;
  font-weight:900;
  margin:12px 0 6px;
}

.request-form input,
.request-form select,
.request-form textarea,
.auth-box input,
.auth-box select{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:13px;
  padding:13px;
  font-size:15px;
  background:#fff;
}

.request-form textarea{
  min-height:100px;
  resize:none;
}

.send-request,
.publish-ad-btn,
.panel-btn{
  width:100%;
  margin-top:16px;
  background:var(--yellow);
  color:#111827;
}

.photo-upload-note{
  font-size:13px;
  color:#666;
  margin:6px 0 10px;
}

.photo-preview-area{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:12px;
}

.photo-preview-area img{
  width:100%;
  height:70px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #ddd;
}

.success-box{
  text-align:center;
}

.success-icon{
  font-size:48px;
  margin-bottom:10px;
}

.request-summary{
  text-align:left;
  border:1px solid #eee;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:16px;
}

.request-summary div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-bottom:1px solid #eee;
}

.request-summary div:last-child{
  border-bottom:0;
}

.request-summary span{
  color:#666;
}

.auth-links{
  display:flex;
  justify-content:space-between;
  margin-top:14px;
}

.auth-links a{
  color:#92400e;
  font-size:14px;
  font-weight:900;
}

.post-category-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  margin-bottom:12px;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.post-category-card:hover{
  border-color:var(--yellow-dark);
  background:#fffbeb;
}

.detail-top-actions{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.favorite-btn,
.share-btn{
  flex:1;
  height:42px;
  border:none;
  border-radius:13px;
  background:#fff;
  border:1px solid var(--border);
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.seller-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.seller-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#fef3c7;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
}

.fake-map{
  height:140px;
  background:#fef3c7;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
}

.similar-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:#fffbeb;
  border-radius:14px;
  margin-top:12px;
}

.boost-btn{
  width:100%;
  height:45px;
  border:none;
  border-radius:14px;
  background:#f59e0b;
  color:#111827;
  font-weight:900;
  margin-top:14px;
  cursor:pointer;
}

.admin-stats{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}

.admin-stats div{
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  padding:14px 8px;
  text-align:center;
}

.admin-stats b{
  display:block;
  font-size:24px;
  color:#b45309;
}

.admin-stats span{
  font-size:12px;
  color:#666;
}

.admin-actions{
  display:flex;
  gap:8px;
  margin-top:14px;
}

.admin-actions button{
  flex:1;
  border:0;
  color:#fff;
  padding:12px;
  border-radius:12px;
  font-weight:800;
}

.accept-btn{background:#111827;}
.complete-btn{background:#16a34a;}

.empty-box{
  background:#fff;
  padding:22px;
  text-align:center;
  border-radius:18px;
  border:1px solid var(--border);
}

.my-ad-status{
  display:inline-block;
  padding:6px 12px;
  background:#ecfdf5;
  color:#16a34a;
  border-radius:20px;
  font-size:13px;
  font-weight:900;
  margin-bottom:10px;
}

@media(min-width:760px){
  body{
    max-width:460px;
    margin:auto;
    background:#e5e7eb;
  }

  .mobile-header,
  .bottom-nav,
  .detail-actions{
    max-width:460px;
    margin:auto;
  }
}

@media(max-width:480px){
  .hero-banner h1{
    font-size:24px;
  }

  .detail-gallery,
  .slider-main{
    height:170px;
    font-size:56px;
  }

  .detail-price{
    font-size:20px;
  }

  .detail-actions button{
    font-size:11px;
    padding:10px 5px;
  }

  .photo-preview-area{
    grid-template-columns:repeat(3,1fr);
  }
}
.form-link-btn{
display:inline-block;
background:#e60023;
color:#fff;
padding:14px 22px;
border-radius:12px;
text-decoration:none;
font-weight:600;
margin-top:15px;
}

.form-link-btn:hover{
opacity:.9;
}
.ad-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:12px;
}
.chat-box{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:20px 0;
}

.chat-message{
    display:flex;
    width:100%;
}

.chat-message.me{
    justify-content:flex-end;
}

.chat-message.other{
    justify-content:flex-start;
}

.chat-bubble{
    max-width:80%;
    background:#f3f4f6;
    padding:12px 14px;
    border-radius:14px;
    font-size:14px;
}

.chat-message.me .chat-bubble{
    background:#dcfce7;
}

.chat-bubble p{
    margin:6px 0;
}

.chat-bubble small{
    font-size:11px;
    color:#666;
}
.ad-img{
    position:relative;
}

.listing-badge{
    position:absolute;
    top:8px;
    left:8px;
    background:#e60023;
    color:#fff;
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    z-index:2;
    box-shadow:0 4px 10px rgba(0,0,0,.18);
}
.notification-badge{
    position:absolute;
    top:-5px;
    right:-5px;
    background:#e60023;
    color:#fff;
    width:18px;
    height:18px;
    border-radius:50%;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}
.compare-wrap{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:14px;
    padding:14px;
}

.compare-card{
    background:#fff;
    border-radius:16px;
    padding:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.compare-img{
    height:150px;
    border-radius:14px;
    overflow:hidden;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
}

.compare-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.compare-row{
    display:flex;
    justify-content:space-between;
    gap:10px;
    border-bottom:1px solid #eee;
    padding:8px 0;
    font-size:13px;
}

.compare-row span{
    color:#666;
}

.compare-row b{
    text-align:right;
}
.urgent-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#e53935;
    color:#fff;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    z-index:5;
}
.urgent-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#e53935;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    z-index:10;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
}

.ad-img,
.my-ad-image,
.listing-img{
    position:relative;
}