:root{
  --red:#E31E24; --red-deep:#A5121A; --red-soft:#FDE7E8;
  --ink:#1F2124; --ink-soft:#6B6F76; --charcoal:#2B2D31;
  --grey:#F2F3F5; --grey-deep:#DEE0E5; --white:#fff; --line:#E7E8EC; --radius:18px;
  --green:#17B890; --green-deep:#0F5C4C;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{font-family:'Inter',sans-serif; background:var(--grey); color:var(--ink); -webkit-font-smoothing:antialiased;}
.display{font-family:'Baloo 2',sans-serif;}
.mono{font-family:'JetBrains Mono',monospace;}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
.no-scrollbar{-ms-overflow-style:none; scrollbar-width:none;}
.no-scrollbar::-webkit-scrollbar{display:none;}
.shell{max-width:1180px; margin:0 auto; padding:0 18px;}

/* ===== HEADER ===== */
header{position:sticky; top:0; z-index:60; background:var(--white); border-bottom:1px solid var(--line);}
.head-row{display:flex; align-items:center; gap:14px; padding:14px 18px; max-width:1180px; margin:0 auto;}
.burger{display:flex; flex-direction:column; gap:4px; flex:0 0 auto;}
.burger span{width:20px; height:2.4px; border-radius:2px; background:var(--ink);}
.logo{font-family:'Baloo 2'; font-weight:800; font-size:21px; flex:0 0 auto; color:var(--ink);}
.logo span{color:var(--red);}
.back-btn{width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--grey); flex:0 0 auto;}
.page-title{font-family:'Baloo 2'; font-weight:700; font-size:17px;}
.head-spacer{flex:1;}
.head-icons{display:flex; align-items:center; gap:10px;}
.icon-btn{width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--grey); position:relative;}
.icon-btn .badge{position:absolute; top:-3px; right:-3px; background:var(--red); color:var(--white); font-size:9.5px; font-weight:800; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid var(--white);}
.desk-nav{display:none; align-items:center; gap:24px; font-weight:700; font-size:14px; margin-left:6px;}
.desk-nav a{opacity:.68;} .desk-nav a.active,.desk-nav a:hover{opacity:1; color:var(--red);}

.search-wrap{padding:14px 18px 4px; max-width:1180px; margin:0 auto;}
.search-bar{display:flex; align-items:center; gap:10px; background:var(--white); border:1.5px solid var(--line); border-radius:14px; padding:12px 16px;}
.search-bar input{border:none; outline:none; background:none; font-size:14px; width:100%; font-family:inherit; color:var(--ink);}
.search-bar input::placeholder{color:var(--ink-soft);}

/* ===== SECTION HEAD ===== */
.sec{padding:22px 0;}
.sec-head{display:flex; align-items:center; justify-content:space-between; padding:0 18px 12px; max-width:1180px; margin:0 auto;}
.sec-head h2{font-family:'Baloo 2'; font-size:clamp(15px,4vw,18px); font-weight:700;}
.view-all-link{font-size:13px; font-weight:700; color:var(--red); white-space:nowrap;}

/* ===== CATEGORY ROW ===== */
.cat-strip{display:flex; gap:20px; overflow-x:auto; padding:2px 18px 6px;}
.cat-item{flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:8px; font-size:11.5px; font-weight:700; width:74px; text-align:center; color:var(--ink-soft);}
.cat-item .ico{width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; border:2.5px solid transparent; background:var(--white);}
.cat-item.active{color:var(--red-deep);}
.cat-item.active .ico{background:var(--red-soft); border-color:var(--red); box-shadow:0 6px 14px -6px rgba(227,30,36,.4);}

/* ===== STORE CARD GRID ===== */
.store-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:0 18px; max-width:1180px; margin:0 auto;}
.store-card{background:var(--white); border-radius:16px; border:1px solid var(--line); padding:14px 10px 12px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:9px; transition:transform .15s ease, box-shadow .15s ease;}
.store-card:hover{transform:translateY(-3px); box-shadow:0 14px 24px -14px rgba(31,33,36,.22);}

/* ===== BRAND LOGO BADGE (real brand color, not the actual logo artwork) ===== */
.brand-badge{
  width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-family:'Baloo 2',sans-serif; font-weight:800; font-size:14px; color:#fff; flex:0 0 auto;
  letter-spacing:.01em;
}

/* ===== NOTICE BANNERS (used by wallet/recharge/profile/link-generator/password-reset pages) ===== */
.demo-note{background:#FFF3D6; border:1px solid #F0D98C; color:#8A6300; font-size:12px; padding:10px 14px; border-radius:10px; margin-bottom:18px;}
.store-ribbon{background:var(--red-soft); color:var(--red-deep); font-size:10px; font-weight:800; padding:3px 9px; border-radius:999px; align-self:flex-start; font-family:'JetBrains Mono';}
.store-top-row{display:flex; align-items:center; justify-content:space-between; width:100%; gap:6px;}
.store-name{font-family:'Baloo 2'; font-weight:700; font-size:14px; min-height:34px; display:flex; align-items:center; justify-content:center; line-height:1.15;}
.store-btn{background:var(--ink); color:var(--white); font-size:10.5px; font-weight:800; padding:8px 6px; border-radius:10px; width:100%; line-height:1.25;}
.view-all-btn{display:block; margin:18px 18px 0; max-width:1180px; margin-left:auto; margin-right:auto; text-align:center; border:2px solid var(--red); color:var(--red); font-weight:800; padding:13px; border-radius:999px; font-size:14.5px;}

/* ===== PROMO STRIP ===== */
.promo-strip{margin:0 18px; max-width:1180px; margin-left:auto; margin-right:auto; border-radius:18px; padding:16px 18px; display:flex; align-items:center; gap:14px;}
.promo-strip .thumb{width:52px; height:52px; border-radius:13px; flex:0 0 auto;}
.promo-strip .txt{flex:1; min-width:0;}
.promo-strip .txt .tag{font-size:9.5px; font-weight:800; color:#fff; padding:3px 9px; border-radius:6px; display:inline-block; margin-bottom:5px; font-family:'JetBrains Mono';}
.promo-strip .txt h3{font-family:'Baloo 2'; font-size:14.5px; line-height:1.25;}
.promo-strip .txt a{font-weight:700; font-size:12px; display:block; margin-top:4px;}

/* ===== GENERIC PAGE CARD ===== */
.card{background:var(--white); border-radius:16px; border:1px solid var(--line); padding:18px;}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:800; padding:13px 22px; border-radius:999px; font-size:14px;}
.btn-red{background:var(--red); color:#fff;}
.btn-ink{background:var(--ink); color:#fff;}
.btn-outline{background:transparent; border:2px solid var(--red); color:var(--red);}
.btn-block{display:flex; width:100%;}

/* ===== APP TAGLINE ===== */
.tagline-strip{background:var(--ink); color:var(--white); padding:44px 18px; text-align:center; margin-top:10px;}
.tagline-strip h2{font-family:'Baloo 2'; font-size:clamp(24px,4vw,34px); font-weight:800;}
.tagline-strip h2 span{color:var(--red);}
.store-badges{display:flex; gap:12px; justify-content:center; margin-top:20px; flex-wrap:wrap;}
.store-badges div{background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); padding:10px 16px; border-radius:12px; font-size:12.5px; font-weight:700;}

/* ===== BOTTOM NAV ===== */
.bottom-nav{position:fixed; bottom:0; left:0; right:0; background:var(--white); border-top:1px solid var(--line); display:flex; justify-content:space-around; padding:9px 6px 12px; z-index:70; box-shadow:0 -6px 18px -12px rgba(31,33,36,.2);}
.bn-item{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10px; font-weight:700; color:var(--ink-soft);}
.bn-item.active{color:var(--red);}
.bn-item svg{width:20px; height:20px;}
.mobile-space{height:70px;}
footer{display:none;}

@media (min-width:860px){
  .bottom-nav{display:none;} .mobile-space{display:none;} .desk-nav{display:flex;}
  .store-grid{grid-template-columns:repeat(6,1fr);}
  .cat-item{width:88px;} .cat-item .ico{width:66px; height:66px; font-size:28px;}
  .sec{padding:34px 0;}
  footer{display:block; background:#111214; color:rgba(255,255,255,.68); padding:48px 0 26px;}
  .foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; max-width:1180px; margin:0 auto; padding:0 18px;}
  .foot-grid h4{color:var(--white); font-family:'JetBrains Mono'; font-size:12px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px;}
  .foot-grid a{display:block; font-size:13.5px; margin-bottom:9px; opacity:.75;}
  .foot-logo{color:var(--white); font-family:'Baloo 2'; font-weight:800; font-size:19px; margin-bottom:12px;}
  .foot-bottom{max-width:1180px; margin:36px auto 0; padding:20px 18px 0; border-top:1px solid rgba(255,255,255,.12); font-size:12.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}
}
@media (min-width:600px) and (max-width:859px){ .store-grid{grid-template-columns:repeat(4,1fr);} }
@media (max-width:399px){ .store-grid{grid-template-columns:repeat(2,1fr);} }

/* ===== SCROLL REVEAL ===== */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease;}
.reveal.visible{opacity:1; transform:translateY(0);}

/* ===== SKELETON LOADING SHIMMER ===== */
.skeleton-card{background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 10px 12px; height:118px; overflow:hidden; position:relative;}
.skeleton-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.045), transparent);
  transform:translateX(-100%); animation:shimmer 1.3s infinite;
}
@keyframes shimmer{ to{ transform:translateX(100%); } }

/* ===== BACK TO TOP ===== */
.to-top{
  position:fixed; right:18px; bottom:86px; width:44px; height:44px; border-radius:50%;
  background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 22px -8px rgba(31,33,36,.5); opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease; z-index:65; font-size:18px;
}
.to-top.show{opacity:1; pointer-events:auto; transform:translateY(0);}
@media (min-width:860px){ .to-top{bottom:26px;} }
