/* Super Demo homepage release — incremental layer, 2026-07-24. */
:root{
  --home-blue:#087af1;
  --home-blue-deep:#073dd4;
  --home-blue-soft:#eaf5ff;
  --home-canvas:#f5f6f8;
}

html,body{max-width:100%;overflow-x:hidden}

.app-shell[data-current-route="home"] .app-header{display:none}
.app-shell[data-current-route="home"] .app-main{
  width:100%;
  max-width:none;
  padding:12px 16px calc(92px + env(safe-area-inset-bottom,0px));
}

#page-home{
  width:100%;
  max-width:430px;
  margin:0 auto;
}

#page-home .home-release-brand{
  position:relative;
  isolation:isolate;
  min-height:136px;
  height:136px;
  margin:0;
  padding:20px 18px 18px 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 96px;
  align-items:center;
  gap:14px;
  overflow:hidden;
  border:0;
  border-radius:28px;
  color:#fff;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.14),transparent 36%),
    linear-gradient(118deg,#073dce 0%,#056df0 54%,#31b8ff 100%);
  box-shadow:0 14px 34px rgba(17,91,208,.18);
}

#page-home .home-release-brand::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-85% 38% -105% -20%;
  border-radius:48%;
  background:linear-gradient(110deg,transparent,rgba(255,255,255,.1),transparent);
  transform:rotate(14deg);
  animation:homeBrandSheen 7s ease-in-out infinite;
}

#page-home .home-release-brand::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:170px;
  height:170px;
  right:-64px;
  bottom:-100px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  box-shadow:0 0 0 34px rgba(255,255,255,.045);
}

#page-home .home-release-brand-copy{
  min-width:0;
  max-width:none;
  align-self:center;
}

#page-home .home-release-brand-copy>span{
  display:block;
  margin:0 0 3px;
  color:rgba(255,255,255,.72);
  font-size:16px;
  font-weight:500;
  line-height:20px;
  letter-spacing:.01em;
}

#page-home .home-release-brand h1{
  margin:0;
  color:#fff;
  font-size:28px;
  font-weight:850;
  line-height:36px;
  letter-spacing:-.035em;
}

#page-home .home-release-brand p{
  display:block;
  margin:5px 0 0;
  color:rgba(255,255,255,.66);
  font-size:12px;
  line-height:18px;
}

#page-home .home-release-logo{
  position:relative;
  width:96px;
  height:96px;
  padding:0;
  border-radius:25px;
  overflow:hidden;
  background:#084edb;
  box-shadow:0 12px 28px rgba(0,33,141,.36),inset 0 1px 0 rgba(255,255,255,.2);
  animation:homeLogoFloat 5.4s ease-in-out infinite;
}

#page-home .home-release-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
}

#page-home .home-release-search-row{
  width:100%;
  margin:14px 0 16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px;
  gap:8px;
}

#page-home .global-search-card{
  width:100%;
  max-width:none;
  min-height:52px;
  height:52px;
  margin:0;
  padding:0 12px 0 15px;
  grid-template-columns:20px minmax(0,1fr) auto;
  gap:11px;
  border:1px solid #dbe6f0;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 5px 16px rgba(22,58,94,.035);
}

#page-home .global-search-card .search-icon{
  width:16px;
  height:16px;
  border-width:2px;
  border-color:#54718f;
}

#page-home .global-search-card .search-icon::after{background:#54718f}
#page-home .global-search-card>div{display:block;min-width:0}
#page-home .global-search-card b{
  display:block;
  overflow:hidden;
  color:#698099;
  font-size:13px;
  font-weight:550;
  line-height:18px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#page-home .home-search-smart{
  padding:5px 7px;
  border-radius:9px;
  color:#1688f5;
  background:#edf7ff;
  font-size:10px;
  font-weight:750;
}

#page-home .home-filter-button{
  position:relative;
  width:54px;
  height:52px;
  min-height:52px;
  padding:0;
  border:0;
  border-radius:16px;
  background:linear-gradient(145deg,#0b6fee,#168eff);
  box-shadow:0 8px 20px rgba(22,136,245,.2);
}

#page-home .home-filter-button span{
  position:absolute;
  left:17px;
  width:21px;
  height:2px;
  border-radius:3px;
  background:#fff;
}

#page-home .home-filter-button span:first-child{top:18px}
#page-home .home-filter-button span:last-child{top:31px}
#page-home .home-filter-button span::after{
  content:"";
  position:absolute;
  top:-3px;
  width:7px;
  height:7px;
  border:2px solid #fff;
  border-radius:50%;
  background:#1488ff;
}

#page-home .home-filter-button span:first-child::after{left:3px}
#page-home .home-filter-button span:last-child::after{right:3px}

#page-home .category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

#page-home .category-card.ux-home-category{
  min-width:0;
  min-height:74px;
  height:74px;
  padding:7px 4px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #e3eaf1;
  border-radius:16px;
  background:rgba(255,255,255,.88);
  box-shadow:0 4px 14px rgba(27,57,89,.03);
  text-align:center;
}

#page-home .category-card.ux-home-category .category-icon{
  width:33px;
  height:33px;
  flex:0 0 33px;
  border-radius:11px;
}

#page-home .category-card.ux-home-category .category-icon svg{width:19px;height:19px}
#page-home .category-card.ux-home-category div{width:100%;min-width:0;text-align:center}
#page-home .category-card.ux-home-category b{
  display:block;
  overflow:hidden;
  color:#293548;
  font-size:10.5px;
  font-weight:750;
  line-height:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#page-home .category-card.ux-home-category small{display:none}

#page-home .home-discovery-heading{
  min-height:42px;
  margin:10px 0 7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#page-home .home-discovery-heading h2{
  margin:0;
  color:#172235;
  font-size:21px;
  font-weight:850;
  line-height:30px;
  letter-spacing:-.025em;
}

#page-home .home-discovery-heading button{
  min-height:36px;
  padding:0 10px;
  border:1px solid #e1e7ee;
  border-radius:12px;
  color:#5f6d7c;
  background:#fff;
  font-size:11px;
  font-weight:650;
}

#page-home .home-discovery-heading button span{margin-left:3px;color:#8a95a2}

#page-home .merchant-carousel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

#page-home .home-merchant-card{
  min-width:0;
  min-height:112px;
  padding:10px;
  display:grid;
  grid-template-rows:auto auto auto;
  gap:6px;
  overflow:hidden;
  border:1px solid #e4eaf0;
  border-radius:16px;
  color:#172235;
  background:#fff;
  box-shadow:0 5px 16px rgba(24,54,86,.035);
  text-align:left;
}

#page-home .home-merchant-card-head{
  min-width:0;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:8px;
  align-items:center;
}

#page-home .home-merchant-card .merchant-logo{
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:11px;
  box-shadow:0 5px 12px color-mix(in srgb,var(--c1) 24%,transparent);
}

#page-home .home-merchant-card-copy{min-width:0}
#page-home .home-merchant-card h3{
  margin:0 0 2px;
  overflow:hidden;
  font-size:13px;
  font-weight:800;
  line-height:17px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#page-home .home-merchant-card p{
  margin:0;
  overflow:hidden;
  color:#7a8795;
  font-size:9px;
  line-height:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#page-home .home-merchant-meta{
  display:flex;
  align-items:center;
  gap:7px;
  overflow:hidden;
  color:#6e7b8b;
  font-size:9px;
  line-height:13px;
  white-space:nowrap;
}

#page-home .home-merchant-meta span:first-child{color:#52708f}
#page-home .home-merchant-quota{
  min-height:27px;
  padding:5px 7px;
  display:flex;
  align-items:center;
  gap:5px;
  overflow:hidden;
  border-radius:9px;
  color:#40556e;
  background:#edf7ff;
  font-size:9px;
  font-weight:650;
  line-height:14px;
  white-space:nowrap;
}

#page-home .home-quota-verified{
  width:14px;
  height:14px;
  flex:0 0 14px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:#1688f5;
  font-size:8px;
  font-weight:900;
}

#page-home .home-legacy-hooks,
#page-home #canvasTradeReminder,
#page-home #canvasGuarantee,
#page-home .trust-strip{display:none!important}

.app-shell[data-current-route="home"] .bottom-nav{
  width:min(calc(100% - 24px),366px);
  height:calc(62px + env(safe-area-inset-bottom,0px));
  bottom:6px;
  padding:4px 7px calc(4px + env(safe-area-inset-bottom,0px));
  border-radius:22px;
}

.app-shell[data-current-route="home"] .bottom-nav>button{min-height:52px}
.app-shell[data-current-route="home"] .bottom-nav small{font-size:10px}

@keyframes homeBrandSheen{
  0%,54%,100%{transform:translateX(-18%) rotate(14deg)}
  72%{transform:translateX(105%) rotate(14deg)}
}

@keyframes homeLogoFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

@media(max-width:360px){
  .app-shell[data-current-route="home"] .app-main{padding-left:12px;padding-right:12px}
  #page-home .home-release-brand{padding-left:23px;grid-template-columns:minmax(0,1fr) 88px}
  #page-home .home-release-logo{width:88px;height:88px}
  #page-home .home-search-smart{display:none}
  #page-home .home-merchant-card{padding:9px}
}

@media(min-width:781px){
  .app-shell[data-current-route="home"] .app-main{padding-top:24px}
}

@media(prefers-reduced-motion:reduce){
  #page-home .home-release-brand::before,
  #page-home .home-release-logo{animation:none}
}
