:root{
  --vx-primary:#2f6fed;
  --vx-primary-hover:#245fd4;
  --vx-primary-soft:#eaf1ff;
  --vx-ink:#182338;
  --vx-text:#4f5e73;
  --vx-muted:#7d899a;
  --vx-line:#dce4ef;
  --vx-surface:#fffdf9;
  --vx-canvas:#f8f5ef;
  --vx-tint-blue:#f2f6fd;
  --vx-tint-sage:#f1f7f3;
  --vx-tint-warm:#fbf4ea;
  --vx-radius-card:22px;
  --vx-shadow-card:0 12px 30px rgba(24,35,56,.08);
  --vx-shadow-hover:0 20px 44px rgba(24,35,56,.14);
  --vx-ease:cubic-bezier(.2,.8,.2,1);
}
html{background:var(--vx-canvas)}
body.home-page{background:var(--vx-canvas);color:var(--vx-ink);font-family:"DM Sans",sans-serif}
.home-page :is(h1,h2),.account-dialog h2,.ai-dialog h2{font-family:"Fraunces","Plus Jakarta Sans",serif!important;font-weight:650!important}
.home-page h1 em{font-family:"Fraunces",serif;font-weight:650}
.home-page svg.lucide{width:1em;height:1em;stroke-width:1.9}
.site-header{background:color-mix(in srgb,var(--vx-surface) 92%,transparent);backdrop-filter:blur(18px)}
.post-button,.search-button,.form-submit,.ai-generate,.publish-button{background:var(--vx-primary)!important}
.post-button:hover,.search-button:hover,.form-submit:hover,.ai-generate:hover,.publish-button:hover{background:var(--vx-primary-hover)!important}
.all-link,.text-action,.listing-info strong{color:var(--vx-primary)!important}
.toast{z-index:120!important;max-width:min(520px,calc(100vw - 28px));text-align:center}

/* Alternating section tints */
.hero{background:linear-gradient(135deg,var(--vx-tint-warm),var(--vx-surface) 48%,var(--vx-tint-blue))!important}
.categories{max-width:none!important;padding-left:max(6vw,18px)!important;padding-right:max(6vw,18px)!important;background:var(--vx-tint-blue)}
.featured{max-width:none!important;padding-left:max(6vw,18px)!important;padding-right:max(6vw,18px)!important;background:var(--vx-surface)}
.popular-sellers-section{max-width:none!important;padding-left:max(6vw,18px)!important;padding-right:max(6vw,18px)!important;background:var(--vx-tint-warm)}
.popular-collections-section{max-width:none!important;padding-left:max(6vw,18px)!important;padding-right:max(6vw,18px)!important;background:var(--vx-tint-sage)}
.how{max-width:none!important;padding-left:max(6vw,18px)!important;padding-right:max(6vw,18px)!important;background:var(--vx-tint-warm)}

/* Hero: search first, decoration second */
.hero{min-height:620px;padding:84px clamp(28px,7vw,96px);align-items:center}
.hero-copy{width:min(720px,64%);position:relative;z-index:3}
.hero h1{font-size:clamp(48px,5.5vw,78px);line-height:.98;letter-spacing:-3.4px}
.hero-text{max-width:590px}
.search-panel{
  width:min(820px,calc(100vw - 48px));
  min-height:82px;height:auto;
  margin-top:32px;padding:10px;
  border:1px solid #cbdaf3;
  border-radius:24px;
  background:var(--vx-surface);
  box-shadow:0 22px 60px rgba(47,111,237,.18),0 4px 14px rgba(24,35,56,.08);
  transition:box-shadow .2s var(--vx-ease),transform .2s var(--vx-ease);
}
.search-panel:focus-within{transform:translateY(-2px);box-shadow:0 28px 68px rgba(47,111,237,.24),0 0 0 4px rgba(47,111,237,.1)}
.search-field input{font-size:15px}
.search-button{height:60px;padding:0 28px;border-radius:17px}
.hero-visual{opacity:.62;transform:translateY(var(--hero-drift,0)) scale(.82);transform-origin:center;filter:saturate(.8)}
.listing-float{box-shadow:0 14px 34px rgba(24,35,56,.11)!important;opacity:.82}
.orbit-emoji{color:var(--vx-primary);font-size:27px!important}
.orbit-emoji svg{width:28px!important;height:28px!important}
.main-nav a:before{display:none!important}
.main-nav a .nav-lucide{width:17px;height:17px;flex:0 0 auto}
.float-image{color:var(--vx-primary);font-size:30px!important;overflow:hidden;background:#e4ebf3!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.72)}
.float-image img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.04);filter:saturate(.88) contrast(1.04)}
.sparkle,.happy-dot{display:none!important}

/* Shared card language */
.category-card,.listing-card,.popular-collection-card{
  border:1px solid rgba(183,197,217,.62)!important;
  border-radius:var(--vx-radius-card)!important;
  box-shadow:var(--vx-shadow-card)!important;
  transition:transform .2s var(--vx-ease),box-shadow .2s var(--vx-ease),border-color .2s var(--vx-ease)!important;
}
.category-card:hover,.listing-card:hover,.popular-collection-card:hover{
  transform:translateY(-5px)!important;
  border-color:#a9c3f5!important;
  box-shadow:var(--vx-shadow-hover)!important;
}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.categories .category-card{
  min-height:190px;padding:0!important;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;
  text-align:left;isolation:isolate;background:#dfe8f4!important;
}
.categories .category-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 20%,rgba(12,24,42,.84) 100%)}
.categories .category-art{position:absolute;inset:0;width:100%!important;height:100%!important;margin:0!important;border-radius:inherit!important;z-index:-2}
.categories .category-art img{width:100%;height:100%;object-fit:cover;transform:scale(1.03);transition:transform .35s var(--vx-ease)}
.categories .category-card:hover .category-art img{transform:scale(1.08)}
.categories .category-card strong,.categories .category-card small{position:relative;z-index:2;margin-left:18px;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.categories .category-card strong{font-size:17px!important}
.categories .category-card small{margin-bottom:17px;font-size:11px!important;opacity:.78}
.category-lucide{
  position:absolute;left:16px;top:16px;z-index:3;
  width:42px;height:42px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.55);border-radius:14px;
  background:rgba(255,255,255,.88);color:var(--vx-primary);backdrop-filter:blur(10px);
  box-shadow:0 8px 20px rgba(10,24,48,.14)
}
.category-lucide svg{width:21px!important;height:21px!important}
.category-lucide svg.lucide{display:block!important;opacity:1!important;visibility:visible!important;color:var(--vx-primary)!important;stroke:currentColor!important}
.popular-collection-card{padding:24px!important;background:var(--vx-surface)!important}
.popular-collection-card small svg{width:15px;height:15px}
.listing-card{background:var(--vx-surface)!important;overflow:hidden}
.like{display:grid!important;place-items:center;font-size:20px!important}
.like svg{width:19px;height:19px}

/* Popular sellers */
.popular-sellers-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.popular-seller-card{
  position:relative;min-height:330px;overflow:hidden;
  border:1px solid rgba(183,197,217,.62);border-radius:var(--vx-radius-card);
  background:var(--vx-surface);color:var(--vx-ink);text-decoration:none;
  box-shadow:var(--vx-shadow-card);
  transition:transform .2s var(--vx-ease),box-shadow .2s var(--vx-ease),border-color .2s var(--vx-ease)
}
.popular-seller-card:hover{transform:translateY(-5px);border-color:#a9c3f5;box-shadow:var(--vx-shadow-hover)}
.popular-seller-cover{
  display:block;height:142px;background:
    radial-gradient(circle at 72% 22%,rgba(255,255,255,.74),transparent 24%),
    linear-gradient(135deg,#dce9ff,#eef3fb 52%,#dcecdf);
  background-size:cover;background-position:center
}
.popular-seller-cover:after{content:"";display:block;width:100%;height:100%;background:linear-gradient(180deg,transparent 58%,rgba(24,35,56,.12))}
.popular-seller-avatar{
  position:absolute;left:20px;top:106px;width:72px;height:72px;display:grid;place-items:center;
  border:5px solid var(--vx-surface);border-radius:24px;background:linear-gradient(135deg,#2f6fed,#78a8ff);
  color:#fff;font:800 20px "Plus Jakarta Sans";box-shadow:0 12px 28px rgba(24,35,56,.16);
  background-size:cover;background-position:center
}
.popular-seller-avatar.has-photo{color:transparent}
.popular-seller-body{display:flex;min-width:0;flex-direction:column;padding:46px 20px 20px}
.popular-seller-body>small{color:var(--vx-primary);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}
.popular-seller-body>strong{margin-top:6px;overflow:hidden;color:var(--vx-ink);font:800 18px "Plus Jakarta Sans";text-overflow:ellipsis;white-space:nowrap}
.popular-seller-body>span{display:flex;align-items:center;gap:6px;margin-top:10px;color:var(--vx-muted);font-size:12px}
.popular-seller-body>span svg{width:14px!important;height:14px!important}
.popular-seller-body>b{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:14px;border-top:1px solid var(--vx-line);color:var(--vx-primary);font-size:12px}
.popular-seller-body>b svg{width:16px!important;height:16px!important}
.popular-sellers-empty{
  grid-column:1/-1;min-height:180px;display:flex;align-items:center;justify-content:center;gap:16px;
  padding:28px;border:1px dashed #b8c9e5;border-radius:var(--vx-radius-card);background:rgba(255,253,249,.72)
}
.popular-sellers-empty>span{width:58px;height:58px;display:grid;place-items:center;border-radius:19px;background:var(--vx-primary-soft);color:var(--vx-primary)}
.popular-sellers-empty svg{width:27px!important;height:27px!important}
.popular-sellers-empty strong,.popular-sellers-empty small{display:block}
.popular-sellers-empty small{margin-top:4px;color:var(--vx-muted)}

/* Purposeful empty state */
.listing-grid:has(.market-empty-state){display:block}
.market-empty-state{
  min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:52px 24px;text-align:center;border:1px dashed #b8c9e5;border-radius:28px;
  background:radial-gradient(circle at 50% 18%,#e9f1ff 0,transparent 34%),linear-gradient(145deg,#fffdf9,#f6f9ff);
}
.empty-state-icon{width:82px;height:82px;display:grid;place-items:center;margin-bottom:18px;border-radius:28px;background:var(--vx-primary-soft);color:var(--vx-primary);box-shadow:0 16px 34px rgba(47,111,237,.15)}
.empty-state-icon svg{width:38px!important;height:38px!important}
.market-empty-state .eyebrow{margin:0 0 10px}
.market-empty-state h2{max-width:520px;margin:0;font-size:clamp(28px,4vw,42px);letter-spacing:-1.5px}
.market-empty-state>p:not(.eyebrow){max-width:520px;margin:12px 0 22px;color:var(--vx-text);line-height:1.6}
.market-empty-state button{display:inline-flex;align-items:center;gap:9px;min-height:50px;padding:0 20px;border:0;border-radius:15px;background:var(--vx-primary);color:#fff;font:700 13px "DM Sans";cursor:pointer;box-shadow:0 12px 26px rgba(47,111,237,.24);transition:.2s var(--vx-ease)}
.market-empty-state button:hover{transform:translateY(-2px);background:var(--vx-primary-hover)}

/* Form hierarchy and progress */
.account-dialog,.ai-dialog{background:var(--vx-surface)!important}
.listing-progress{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:4px 0 24px;padding:0;list-style:none}
.listing-progress:before{content:"";position:absolute;left:16.66%;right:16.66%;top:17px;height:2px;background:var(--vx-line)}
.listing-progress li{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;color:var(--vx-muted);font-size:10px}
.listing-progress span{width:34px;height:34px;display:grid;place-items:center;border:2px solid var(--vx-line);border-radius:50%;background:var(--vx-surface);font-weight:800;transition:.2s var(--vx-ease)}
.listing-progress li.active span,.listing-progress li.complete span{border-color:var(--vx-primary);background:var(--vx-primary);color:#fff;box-shadow:0 0 0 5px var(--vx-primary-soft)}
.listing-progress li.complete span{font-size:0}
.listing-progress li.complete span:after{content:"✓";font-size:14px}
.listing-progress li.active b{color:var(--vx-primary)}
.form-group{margin:0 0 16px;padding:17px;border:1px solid var(--vx-line);border-radius:18px;background:#fff}
.form-group-title{display:flex;align-items:center;gap:8px;margin:0 0 14px;color:var(--vx-ink);font:800 12px "DM Sans";letter-spacing:.2px}
.form-group-title svg{width:17px;height:17px;color:var(--vx-primary)}
.generated-content>.form-group:last-child{margin-bottom:0}
.generated-card input,.generated-card select,.generated-card textarea,.account-form input{border-color:var(--vx-line)!important;background:var(--vx-surface)!important}
.listing-live-preview{transition:transform .18s var(--vx-ease),box-shadow .18s var(--vx-ease),border-color .18s var(--vx-ease)}
.listing-live-preview.is-updating{transform:scale(.99);border-color:#9dbcf2;box-shadow:0 18px 44px rgba(47,111,237,.16)}
.success-mark{font-size:0!important}
.success-mark:after{content:"";width:12px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translateY(-1px)}
.app-tabbar svg{width:21px!important;height:21px!important}
.chatbot-toggle svg{display:block;width:25px!important;height:25px!important;margin:auto;color:#fff;stroke:currentColor}

@media(max-width:850px){
  .hero{min-height:610px;padding:54px 24px}
  .hero-copy{width:100%}
  .hero-visual{opacity:.2;transform:scale(.7);right:-100px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .popular-sellers-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 18px 14px;margin:-8px -18px 0}
  .popular-seller-card{min-width:270px;scroll-snap-align:start}
  .popular-sellers-empty{min-width:100%}
}
@media(max-width:560px){
  .hero h1{font-size:43px;letter-spacing:-2.2px}
  .search-panel{width:100%;min-height:0;margin-top:24px;padding:8px;border-radius:20px}
  .search-button{height:46px;border-radius:14px}
  .categories .category-card{min-height:166px}
  .market-empty-state{min-height:330px;padding:38px 18px}
  .form-group{padding:14px}
}
@media(prefers-reduced-motion:reduce){
  .category-card,.listing-card,.popular-collection-card,.listing-live-preview,.search-panel{transition:none!important}
}
