:root{
  --p:#00BFA5;
  --dark:#111827;
  --light:#f4f7f9;
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --danger:#e53935;
  --ok:#16a34a;
  --warning:#f59e0b;
  --blue:#2563eb;
  --radius:18px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Segoe UI,Arial,sans-serif;
  background:var(--light);
  color:var(--text);
  padding-bottom:78px;
}

img,video{
  max-width:100%;
}

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

button{
  -webkit-tap-highlight-color:transparent;
}

section{
  padding:14px;
}

/* AUTO CROP / FIT MEDIA */
.fit-img,
.hero>img,
.hero>video,
.card img,
.card video,
.detail-card img,
.detail-card video,
.mini-banner img,
.mini-banner video,
.item img,
.item video,
.preview-img,
.logo-img,
.splash-logo,
.profile-photo,
.payment-proof-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* HERO */
.hero{
  height:360px;
  position:relative;
  overflow:hidden;
  border-radius:0 0 28px 28px;
  background:#111;
}

.hero>img,
.hero>video{
  position:absolute;
  inset:0;
}

.shade{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,#0008,#0002,#000b);
}

.topbar{
  position:absolute;
  top:15px;
  left:15px;
  right:15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:2;
}

.circle{
  width:44px;
  height:44px;
  border-radius:50%;
  border:0;
  background:#ffffffdd;
  color:#111;
  font-size:18px;
  font-weight:900;
  box-shadow:0 6px 18px #0002;
}

.city{
  position:absolute;
  left:18px;
  right:18px;
  bottom:105px;
  color:#fff;
  z-index:2;
}

.city h1{
  margin:4px 0;
  font-size:38px;
  letter-spacing:1px;
  line-height:1.05;
}

.city p{
  margin:0;
  font-size:14px;
  opacity:.95;
}

.hero-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.hero-actions .btn{
  flex:0 0 auto;
  min-width:125px;
}

.hero-bottom{
  position:absolute;
  left:14px;
  right:14px;
  bottom:18px;
  z-index:2;
}

.address-card,
.search-card{
  background:#fff;
  border-radius:16px;
  padding:12px;
  box-shadow:0 8px 24px #0003;
  margin-top:10px;
}

.address-card small{
  color:var(--muted);
}

.address-card p{
  margin:3px 0 0;
  font-weight:800;
}

.search-card{
  display:flex;
  align-items:center;
  gap:10px;
}

.search-card input{
  border:0;
  outline:0;
  width:100%;
  font-size:15px;
}

/* LOGO / BRAND */
.logo-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-box{
  width:44px;
  height:44px;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 16px #0002;
  flex:none;
}

.logo-img{
  object-fit:cover;
}

/* ANIMATIONS */
.hero-anim{
  width:55px;
  height:55px;
  object-fit:contain;
}

.search-anim{
  width:42px;
  height:42px;
  object-fit:contain;
}

.anim-icon{
  width:34px;
  height:34px;
  object-fit:contain;
  vertical-align:middle;
  margin-right:8px;
}

.panel-anim,
.empty-anim,
.about-anim{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
  margin:0 auto 8px;
}

.mini-anim{
  width:42px;
  height:42px;
  object-fit:contain;
  margin-right:10px;
}

/* SECTIONS */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.section-title{
  margin:0;
  font-size:21px;
  display:flex;
  align-items:center;
  gap:6px;
}

.link-btn{
  background:transparent;
  color:var(--p);
  border:0;
  font-weight:900;
}

/* CATEGORY */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.cat{
  background:#fff;
  border-radius:16px;
  padding:10px;
  text-align:center;
  box-shadow:0 6px 16px #0001;
  cursor:pointer;
  transition:.2s;
}

.cat:active{
  transform:scale(.97);
}

.cat img,
.cat video{
  width:54px;
  height:54px;
  object-fit:cover;
  object-position:center;
  border-radius:14px;
}

.cat b{
  display:block;
  font-size:12px;
  margin-top:6px;
}

.cat small{
  display:block;
  color:var(--muted);
  font-size:10px;
}

/* GRID / CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.card,
.detail-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 7px 20px #0001;
}

.card-img-box{
  position:relative;
  width:100%;
  height:150px;
  overflow:hidden;
  background:#eee;
}

.card img,
.card video{
  height:150px;
}

.detail-card img,
.detail-card video{
  width:100%;
  height:330px;
  object-fit:cover;
  object-position:center;
  display:block;
  background:#eee;
}

.card-badge,
.badge{
  display:inline-block;
  background:var(--dark);
  color:#fff;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
}

.card-img-box .card-badge{
  position:absolute;
  top:8px;
  left:8px;
}

.badge.done,
.badge.paid{
  background:var(--ok);
}

.badge.pending{
  background:var(--warning);
}

.badge.cancelled,
.badge.failed{
  background:var(--danger);
}

.info{
  padding:12px;
}

.title{
  font-size:16px;
  font-weight:900;
  margin-bottom:4px;
}

.desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
  margin:4px 0;
}

.price{
  color:var(--p);
  font-size:18px;
  font-weight:900;
  margin:8px 0;
}

.price.big{
  font-size:26px;
}

.muted{
  color:var(--muted);
  font-size:12px;
  margin:6px 0;
}

.stock-low{
  color:var(--warning);
  font-weight:800;
  font-size:12px;
}

.stock-out{
  color:var(--danger);
  font-weight:800;
  font-size:12px;
}

/* BUTTONS */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.btn{
  background:var(--p);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  flex:1;
  text-decoration:none;
  text-align:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn.out{
  background:#eafaf7;
  color:var(--p);
}

.btn.red{
  background:var(--danger);
}

.btn.blue{
  background:var(--blue);
}

.btn.dark{
  background:var(--dark);
}

/* TOP TITLE */
.top-title{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  background:#fff;
  position:sticky;
  top:0;
  z-index:10;
  box-shadow:0 4px 15px #0001;
}

.top-title h2{
  margin:0;
  font-size:20px;
}

/* PANELS / FORMS */
.panel{
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 7px 20px #0001;
}

.panel input,
.panel textarea,
.panel select{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  margin:7px 0;
  outline:0;
  background:#fff;
}

.panel textarea{
  min-height:90px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.ok{
  background:#e8f5e9;
  color:#1b5e20;
  padding:10px;
  border-radius:10px;
  font-weight:800;
}

.err{
  background:#ffebee;
  color:#b71c1c;
  padding:10px;
  border-radius:10px;
  font-weight:800;
}

.warn{
  background:#fff7ed;
  color:#9a3412;
  padding:10px;
  border-radius:10px;
  font-weight:800;
}

/* ORDERS */
.order-card{
  background:#fff;
  border-radius:18px;
  padding:14px;
  margin-bottom:12px;
  box-shadow:0 7px 20px #0001;
  display:flex;
  align-items:center;
  gap:10px;
}

.order-card h3{
  margin:6px 0;
}

.order-card p{
  margin:3px 0;
  color:var(--muted);
}

.mini-img{
  width:58px;
  height:58px;
  object-fit:cover;
  object-position:center;
  border-radius:14px;
  background:#eee;
  flex:none;
}

.small-item{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #eee;
  border-radius:12px;
  padding:8px;
  margin:8px 0;
}

.small-item img,
.small-item video{
  width:52px;
  height:52px;
  object-fit:cover;
  object-position:center;
  border-radius:10px;
  flex:none;
}

.payment-proof-img{
  width:100%;
  max-height:260px;
  border-radius:14px;
  background:#eee;
  margin-top:8px;
}

/* TRACKING */
.step{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  min-height:62px;
}

.dot{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#d1d5db;
  margin:3px auto 0;
}

.dot.on{
  background:var(--p);
  box-shadow:0 0 0 5px #00bfa522;
}

.line{
  width:3px;
  height:42px;
  background:#d1d5db;
  margin:0 auto;
}

.line.on{
  background:var(--p);
}

/* QUICK LINKS */
.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.quick{
  background:#fff;
  border-radius:16px;
  text-align:center;
  padding:12px 8px;
  box-shadow:0 6px 16px #0001;
  cursor:pointer;
}

.quick:active{
  transform:scale(.97);
}

.quick b{
  display:block;
  font-size:12px;
}

/* BANNERS */
.banner-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:4px;
  scroll-snap-type:x mandatory;
}

.mini-banner{
  min-width:260px;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 7px 20px #0001;
  scroll-snap-align:start;
}

.mini-banner img,
.mini-banner video{
  width:100%;
  height:110px;
  object-fit:cover;
  object-position:center;
  background:#eee;
}

.mini-banner div{
  padding:10px;
}

.mini-banner p{
  color:var(--muted);
  margin:4px 0 0;
  font-size:13px;
}

/* OFFER / REVIEW / FAQ / ABOUT */
.offer-grid,
.review-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}

.offer-card,
.review-card,
.faq-card,
.about-card,
.notification-card,
.profile-card{
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 7px 20px #0001;
}

.offer-card{
  border-left:5px solid var(--p);
}

.review-card p,
.faq-card p,
.about-card p{
  color:var(--muted);
  line-height:1.5;
}

.about-card{
  display:flex;
  gap:14px;
  align-items:center;
}

.about-card .about-anim{
  margin:0;
  flex:none;
}

/* EMPTY / LOADING */
.empty,
.loading{
  background:#fff;
  border-radius:18px;
  padding:25px;
  text-align:center;
  color:var(--muted);
  box-shadow:0 7px 20px #0001;
  grid-column:1/-1;
}

/* DASHBOARD / ANALYTICS */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
}

.stat-box{
  background:linear-gradient(135deg,var(--p),#009688);
  color:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 7px 20px #0001;
}

.stat-box small{
  display:block;
  opacity:.9;
  margin-bottom:6px;
}

.stat-box b{
  font-size:22px;
}

.analytics-list{
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 7px 20px #0001;
}

.analytics-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid #eee;
  padding:10px 0;
}

.analytics-row:last-child{
  border-bottom:0;
}

/* FILTER CHIPS */
.filter-row{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 0 12px;
}

.chip{
  border:0;
  border-radius:999px;
  background:#fff;
  color:#111;
  padding:9px 13px;
  font-weight:800;
  box-shadow:0 5px 14px #0001;
  white-space:nowrap;
}

.chip.active{
  background:var(--p);
  color:#fff;
}

/* USER / PROFILE */
.profile-photo-wrap{
  width:92px;
  height:92px;
  border-radius:50%;
  overflow:hidden;
  background:#eee;
  margin:0 auto 12px;
  border:4px solid #fff;
  box-shadow:0 7px 20px #0002;
}

.profile-photo{
  object-fit:cover;
}

.user-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid #eee;
  padding:10px 0;
}

.user-line:last-child{
  border-bottom:0;
}

/* SPLASH */
.splash-screen{
  position:fixed;
  inset:0;
  z-index:9999;
  background:var(--p);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:#fff;
  text-align:center;
}

.splash-logo-wrap{
  width:110px;
  height:110px;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  margin-bottom:16px;
  box-shadow:0 10px 30px #0003;
}

.splash-logo{
  object-fit:cover;
}

.splash-screen h2{
  margin:0;
}

.splash-screen p{
  margin:6px 0 0;
  opacity:.9;
}

/* FOOTER */
footer{
  padding:22px 14px;
  text-align:center;
  color:#fff;
  background:var(--dark);
  margin-top:18px;
}

footer img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:16px;
  background:#fff;
  margin-bottom:8px;
}

footer p{
  margin:5px 0;
  color:#d1d5db;
}

/* BOTTOM NAV */
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  height:70px;
  background:#fff;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  box-shadow:0 -5px 25px #0002;
  z-index:99;
}

.bottom-nav button{
  border:0;
  background:#fff;
  color:#111;
  font-size:19px;
  position:relative;
  font-weight:800;
}

.bottom-nav span{
  display:block;
  font-size:10px;
  margin-top:3px;
}

.bottom-nav b{
  position:absolute;
  top:7px;
  right:20px;
  background:var(--p);
  color:white;
  border-radius:50%;
  min-width:18px;
  height:18px;
  font-size:11px;
  line-height:18px;
}

/* ADMIN COMPAT */
.item{
  border:1px solid #eee;
  border-radius:10px;
  padding:10px;
  background:white;
}

.item img,
.item video{
  width:100%;
  height:135px;
  object-fit:cover;
  border-radius:8px;
  background:#eee;
}

/* RESPONSIVE */
@media(max-width:760px){
  .hero{
    height:350px;
  }

  .city h1{
    font-size:32px;
  }

  .cat-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .grid{
    grid-template-columns:repeat(2,1fr);
  }

  .quick-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .card-img-box,
  .card img,
  .card video{
    height:135px;
  }

  .about-card{
    display:block;
    text-align:center;
  }

  .form-row{
    grid-template-columns:1fr;
  }
}

@media(max-width:420px){
  section{
    padding:12px;
  }

  .cat-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .title{
    font-size:14px;
  }

  .btn{
    padding:9px 8px;
    font-size:12px;
  }

  .hero{
    height:340px;
  }

  .city{
    bottom:112px;
  }

  .mini-banner{
    min-width:235px;
  }
}