/* 7xFlow marketplace — LED accents + dark-capable hub
 * Store pages: prefer static/plaza/storefront.css (load after this).
 */
:root {
  /* Vivid LED accents: green · purple · pink · red */
  --led-green: #39ff8a;
  --led-purple: #b44cff;
  --led-pink: #ff3db8;
  --led-red: #ff2d55;
  --led-green-glow: rgba(57, 255, 138, .45);
  --led-purple-glow: rgba(180, 76, 255, .4);
  --led-pink-glow: rgba(255, 61, 184, .4);
  --led-red-glow: rgba(255, 45, 85, .4);

  --buyer-primary: var(--led-green);
  --buyer-assign: var(--led-purple);
  --buyer-urgent: var(--led-red);
  --buyer-success: var(--led-green);
  --buyer-energy: var(--led-pink);
  --buyer-mystery: var(--led-purple);

  --ink: #0c1018;
  --ink-soft: #151b28;
  --page: #eef1f8;
  --page-glow: radial-gradient(1200px 480px at 8% -10%, rgba(180, 76, 255, .12), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(57, 255, 138, .1), transparent 50%),
    radial-gradient(700px 380px at 70% 100%, rgba(255, 61, 184, .08), transparent 55%);
  --card: #ffffff;
  --mute: #5a6578;
  --line: rgba(12, 16, 24, .12);
  --link: #0a7a52;
  --wa: #25d366;
  --wa-deep: #128c7e;
  --wa-dark: #075e54;
  --wa-ink: #053821;
  --coral: var(--led-red);
  --coral-hot: #ff1744;
  --teal: #0f9f8a;
  --cyan: var(--led-green);
  --lime: #b8ff4a;
  --amber: #ffb020;
  --magenta: var(--led-pink);
  --electric: var(--led-purple);
  --white: #ffffff;
  --gutter: 1rem;
  --radius: .85rem;
  --shadow: 0 2px 8px rgba(12, 16, 24, .07);
  --shadow-glow: 0 0 0 1px rgba(57, 255, 138, .15), 0 8px 28px rgba(12, 16, 24, .1);
  --font-display: Syne, "Segoe UI", sans-serif;
  --font-body: Outfit, "Segoe UI", sans-serif;
  --top-bar: #101622;
  --sub-bar: #1c2436;
  --hero-fg: #ffffff;
  --tools-bg: rgba(255, 255, 255, .72);
  --tools-border: var(--line);
  --chip-on-bg: color-mix(in srgb, var(--led-green) 14%, var(--card));
  --chip-on-fg: #0a5c3a;
  --toggle-bg: rgba(255, 255, 255, .08);
  --toggle-fg: #e8ecf5;
  --toggle-border: rgba(255, 255, 255, .22);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #eef2ff;
  --ink-soft: #c8d0e4;
  --page: #07090f;
  --page-glow: radial-gradient(1000px 520px at 12% -8%, rgba(180, 76, 255, .22), transparent 55%),
    radial-gradient(900px 460px at 90% 4%, rgba(57, 255, 138, .16), transparent 52%),
    radial-gradient(800px 420px at 60% 110%, rgba(255, 61, 184, .14), transparent 55%),
    radial-gradient(600px 320px at 0% 70%, rgba(255, 45, 85, .1), transparent 50%);
  --card: #12171f;
  --mute: #9aa6bd;
  --line: rgba(238, 242, 255, .1);
  --link: var(--led-green);
  --wa-ink: #06280f;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-glow: 0 0 0 1px rgba(180, 76, 255, .25), 0 10px 36px rgba(0, 0, 0, .45);
  --top-bar: #05070c;
  --sub-bar: #0d121c;
  --hero-fg: #ffffff;
  --tools-bg: rgba(18, 23, 31, .88);
  --tools-border: rgba(238, 242, 255, .1);
  --chip-on-bg: color-mix(in srgb, var(--led-green) 18%, var(--card));
  --chip-on-fg: var(--led-green);
  --toggle-bg: rgba(57, 255, 138, .12);
  --toggle-fg: var(--led-green);
  --toggle-border: rgba(57, 255, 138, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  background-image: var(--page-glow);
  background-attachment: fixed;
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: 5.5rem;
  transition: background-color .25s ease, color .2s ease;
}
body.mkt-hub {
  padding-top: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.wrap {
  width: min(1480px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}
.wrap-tight {
  width: min(720px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* —— Sticky search-forward header —— */
.mkt-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--top-bar);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .28);
  border-bottom: 1px solid rgba(57, 255, 138, .12);
}
.mkt-top-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .65rem;
  align-items: center;
  padding: .6rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.04em;
  display: inline-flex;
  align-items: baseline;
  gap: .15rem;
  color: var(--white);
  white-space: nowrap;
}
.brand .x {
  color: var(--led-green);
  text-shadow: 0 0 14px var(--led-green-glow);
}
.mkt-search {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-radius: .45rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 2px transparent;
}
html[data-theme="dark"] .mkt-search {
  background: #1a2030;
  box-shadow: inset 0 0 0 1px rgba(238, 242, 255, .08);
}
.mkt-search:focus-within { box-shadow: 0 0 0 2px var(--led-green), 0 0 18px var(--led-green-glow); }
.mkt-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: .65rem .8rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
}
html[data-theme="dark"] .mkt-search input { color: #eef2ff; }
.mkt-search button {
  border: 0;
  background: var(--led-green);
  color: #06280f;
  padding: 0 .95rem;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  min-width: 3rem;
  transition: filter .2s, box-shadow .2s;
}
.mkt-search button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px var(--led-green-glow);
}
.mkt-nav {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 650;
  color: #c5cede;
}
.mkt-nav a:hover { color: var(--white); }
.mkt-nav .pill {
  background: linear-gradient(120deg, var(--led-purple), var(--led-pink));
  color: #fff;
  padding: .4rem .75rem;
  border-radius: .4rem;
  font-weight: 800;
  box-shadow: 0 0 16px var(--led-purple-glow);
}
.mkt-nav .pill:hover { filter: brightness(1.06); }
.theme-toggle {
  appearance: none;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  padding: .38rem .7rem;
  border-radius: .4rem;
  cursor: pointer;
  letter-spacing: .01em;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.theme-toggle:hover {
  box-shadow: 0 0 14px var(--led-purple-glow);
  border-color: color-mix(in srgb, var(--led-purple) 55%, var(--toggle-border));
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--led-green);
  outline-offset: 2px;
}
.mkt-sub {
  background: var(--sub-bar);
  color: #dce2ef;
  font-size: .82rem;
  font-weight: 600;
}
.mkt-sub-inner {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
  padding: .42rem 0;
}
.mkt-sub a:hover { color: var(--led-green); }
.mkt-sub .hint { color: #8e9bb0; font-weight: 500; }

@media (max-width: 720px) {
  .mkt-top-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand nav"
      "search search";
  }
  .brand { grid-area: brand; }
  .mkt-nav { grid-area: nav; }
  .mkt-search { grid-area: search; }
}

/* —— Hero strip —— */
.hero-strip {
  position: relative;
  margin: 1rem 0 0;
  border-radius: .75rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0a0e18 0%, #141028 42%, #1a0a18 72%, #0c1614 100%);
  color: var(--hero-fg);
  min-height: 168px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow-glow);
  animation: rise .55s cubic-bezier(.22, 1, .36, 1) both;
  isolation: isolate;
}
.hero-led {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, var(--led-purple-glow), transparent 38%),
    radial-gradient(circle at 88% 18%, var(--led-green-glow), transparent 36%),
    radial-gradient(circle at 70% 88%, var(--led-pink-glow), transparent 40%),
    radial-gradient(circle at 18% 90%, var(--led-red-glow), transparent 34%);
  opacity: .9;
}
.hero-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.hero-strip-inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.25rem 1.3rem;
  max-width: 38rem;
}
.brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  letter-spacing: -.045em;
  margin: 0 0 .45rem;
  line-height: 1;
  color: #fff;
}
.brand-hero .x {
  color: var(--led-green);
  text-shadow: 0 0 22px var(--led-green-glow);
}
.hero-strip .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--led-pink);
  margin-bottom: .35rem;
}
.hero-strip h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
  line-height: 1.15;
  color: #f4f7ff;
}
.hero-strip p,
.hero-strip .hero-lead {
  margin: 0;
  color: rgba(236, 242, 255, .88);
  font-size: .98rem;
  max-width: 30rem;
  font-weight: 500;
}
.hero-strip .platform-trust {
  color: rgba(210, 220, 240, .78);
  margin-top: .55rem;
}
.hero-strip .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.15rem;
  border-radius: .5rem;
  font-weight: 800;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa {
  background: var(--led-green);
  color: #06280f;
  box-shadow: 0 0 0 0 var(--led-green-glow);
  animation: pulse-led 2.6s ease-in-out infinite;
}
.btn-wa:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 22px var(--led-green-glow);
}
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: var(--white);
}
.btn-ghost-ink {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 40px;
  padding: .5rem 1rem;
  border-radius: .45rem;
  font-weight: 750;
  font-size: .88rem;
}
.btn-ghost-ink:hover {
  border-color: color-mix(in srgb, var(--led-purple) 50%, var(--line));
  box-shadow: 0 0 16px var(--led-purple-glow);
}
.store-tag {
  display: inline-block;
  margin: 0 0 .4rem;
  padding: .2rem .55rem;
  border-radius: .3rem;
  background: rgba(255, 255, 255, .16);
  color: #eafff2;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-featured {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .85rem 0 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-featured::-webkit-scrollbar { display: none; }
.hero-featured a {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: .5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  scroll-snap-align: start;
  border: 2px solid rgba(255, 255, 255, .22);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hero-featured a:hover {
  border-color: var(--led-pink);
  box-shadow: 0 0 18px var(--led-pink-glow);
  transform: translateY(-2px);
}
.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tools strip under hero */
.mkt-tools {
  margin: .9rem 0 0;
  padding: .9rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--tools-border);
  background: var(--tools-bg);
  backdrop-filter: blur(10px);
  animation: rise .6s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: .05s;
}
.mkt-tools .buyer-steps { margin: 0 0 .75rem; }
.mkt-tools .discount-bar {
  margin: 0;
  border-color: var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
html[data-theme="dark"] .mkt-tools .discount-bar {
  background: rgba(0, 0, 0, .28);
  border-color: rgba(238, 242, 255, .12);
}
html[data-theme="dark"] .mkt-tools .discount-bar label { color: var(--mute); }
html[data-theme="dark"] .mkt-tools .discount-bar input {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}
.mkt-tools .discount-bar label { color: var(--mute); }
.mkt-tools .discount-bar input {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  text-transform: uppercase;
}
.mkt-tools-wa { margin: .75rem 0 0; }

.howto {
  margin: .75rem 0 0;
  padding: .75rem .85rem;
  border-radius: .35rem;
  background: #fff8e7;
  border: 1px solid #f0e0b2;
  color: var(--ink);
}
.howto strong {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  margin-bottom: .2rem;
}
.howto p { margin: 0; font-size: .88rem; color: #333; }
.howto code {
  background: #122017;
  color: var(--wa);
  padding: .08rem .35rem;
  border-radius: .25rem;
}

/* —— Tabs —— */
.tabs-wrap {
  margin: .85rem 0 .65rem;
}
.tabs {
  display: flex;
  gap: .35rem;
  padding: .28rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .45rem;
  box-shadow: var(--shadow);
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: .6rem .45rem;
  border-radius: .35rem;
  font-weight: 750;
  font-size: .88rem;
  color: var(--mute);
}
.tabs a.on {
  background: color-mix(in srgb, var(--wa) 18%, var(--card));
  color: var(--wa-dark);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wa) 55%, transparent);
}
.tabs .count {
  margin-left: .25rem;
  font-size: .75rem;
  opacity: .75;
  font-weight: 650;
}

/* —— Category promo cards —— */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: .75rem 0 1rem;
}
@media (min-width: 640px) {
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .promo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.promo-card {
  background: var(--card);
  border-radius: .35rem;
  box-shadow: var(--shadow);
  padding: .85rem .85rem .7rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  animation: card-in .5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.promo-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .65rem;
  color: var(--ink);
  line-height: 1.2;
}
.promo-visual {
  flex: 1;
  border-radius: .3rem;
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
}
.promo-visual.tone-teal { background: var(--teal); }
.promo-visual.tone-cyan { background: var(--cyan); }
.promo-visual.tone-coral { background: var(--coral-hot); }
.promo-visual.tone-lime { background: var(--lime); }
.promo-visual.tone-amber { background: var(--amber); }
.promo-visual.tone-magenta { background: var(--magenta); }
.promo-visual.tone-electric { background: var(--electric); }
.promo-visual img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
  transition: transform .35s ease;
}
.promo-card:hover .promo-visual img { transform: scale(1.04) translateY(-2px); }
.promo-visual .ph {
  color: rgba(0, 0, 0, .45);
  font-weight: 800;
  font-size: .85rem;
}
.promo-link {
  margin-top: .7rem;
  color: var(--link);
  font-weight: 700;
  font-size: .9rem;
}
.promo-link:hover { color: #c7511f; text-decoration: underline; }

.tile-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  flex: 1;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.tile-media {
  aspect-ratio: 1;
  border-radius: .25rem;
  overflow: hidden;
  background: #f0f2f2;
  display: grid;
  place-items: center;
}
.tile-media.tone-teal { background: color-mix(in srgb, var(--teal) 55%, #fff); }
.tile-media.tone-cyan { background: color-mix(in srgb, var(--cyan) 50%, #fff); }
.tile-media.tone-coral { background: color-mix(in srgb, var(--coral-hot) 55%, #fff); }
.tile-media.tone-lime { background: color-mix(in srgb, var(--lime) 60%, #fff); }
.tile-media.tone-amber { background: color-mix(in srgb, var(--amber) 55%, #fff); }
.tile-media.tone-magenta { background: color-mix(in srgb, var(--magenta) 50%, #fff); }
.tile-media.tone-electric { background: color-mix(in srgb, var(--electric) 50%, #fff); }
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile span {
  font-size: .75rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Horizontal best-sellers carousel —— */
.rail {
  background: var(--card);
  border-radius: .35rem;
  box-shadow: var(--shadow);
  padding: .85rem .7rem 1rem;
  margin: 0 0 1rem;
  position: relative;
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 .35rem .55rem;
}
.rail-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.02em;
}
.rail-head a {
  color: var(--link);
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
}
.rail-sub {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: var(--mute);
  font-weight: 500;
}
.rail--para-vos {
  border: 1px solid color-mix(in srgb, var(--wa) 35%, var(--line));
}
.para-vos-tag {
  display: inline-block;
  margin-top: .25rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--wa-dark);
  background: color-mix(in srgb, var(--wa) 18%, #fff);
  padding: .12rem .4rem;
  border-radius: .3rem;
}
.rail-scroller {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .15rem .35rem .35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rail-scroller::-webkit-scrollbar { height: 8px; }
.rail-scroller::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 99px;
}
.rail-item {
  flex: 0 0 auto;
  width: 132px;
  scroll-snap-align: start;
  text-align: center;
}
.rail-item .thumb {
  aspect-ratio: 1;
  border-radius: .25rem;
  overflow: hidden;
  background: #f7f8f8;
  margin-bottom: .4rem;
  display: grid;
  place-items: center;
}
.rail-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rail-item .thumb .ph {
  font-size: .7rem;
  font-weight: 700;
  color: var(--mute);
}
.rail-item .name {
  font-size: .78rem;
  font-weight: 650;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.rail-item .price {
  font-size: .82rem;
  font-weight: 800;
  margin-top: .15rem;
}
.rail-item .code {
  display: inline-block;
  margin-top: .2rem;
  font-size: .7rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--wa) 22%, #fff);
  color: var(--wa-dark);
  padding: .1rem .35rem;
  border-radius: .25rem;
}

/* —— Dense product grid —— */
.section-head {
  margin: .25rem 0 .75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .25rem;
}
.section-head p {
  margin: 0;
  color: var(--mute);
  font-size: .92rem;
  max-width: 40rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  align-items: stretch;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.card {
  background: var(--card);
  border-radius: .35rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
  animation: card-in .45s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--led-green) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--led-green) 28%, transparent),
    0 10px 28px rgba(12, 16, 24, .14),
    0 0 22px var(--led-green-glow);
}
.card.is-hidden { display: none; }
.card-media {
  aspect-ratio: 1;
  background: #f5f6f6;
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Vectary preferred media on marketplace cards / thumbs */
.vectary-embed {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--vectary-ratio, 1);
  overflow: hidden;
  background: #0b1220;
}
.vectary-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.vectary-embed--card,
.vectary-embed--thumb,
.vectary-embed--promo {
  aspect-ratio: 1;
  min-height: 100%;
}
.card-media--vectary,
.thumb--vectary,
.tile-media--vectary,
.promo-visual--vectary,
.hero-featured--vectary {
  position: relative;
}
.card-media--vectary .vectary-embed,
.thumb--vectary .vectary-embed,
.tile-media--vectary .vectary-embed,
.promo-visual--vectary .vectary-embed,
.hero-featured--vectary .vectary-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.thumb--vectary iframe,
.tile-media--vectary iframe,
.promo-visual--vectary iframe,
.hero-featured--vectary iframe {
  pointer-events: none;
}
.card-media .ph,
.media-broken .ph-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: .78rem;
  font-weight: 700;
  background:
    linear-gradient(135deg, #f0f2f2 0%, #e3e6e6 100%);
}
.media-broken img { display: none !important; }
.code-badge {
  position: absolute;
  top: .45rem;
  left: .45rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.03em;
  background: var(--led-green);
  color: #06280f;
  padding: .28rem .5rem;
  border-radius: .3rem;
  box-shadow: 0 0 14px var(--led-green-glow);
}
.badge-stack {
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .28rem;
  max-width: 46%;
}
.scarce {
  font-size: .68rem;
  font-weight: 800;
  background: rgba(15, 17, 17, .82);
  color: #ffd0dc;
  padding: .22rem .4rem;
  border-radius: .25rem;
  border-left: 3px solid var(--led-red);
  box-shadow: 0 0 10px var(--led-red-glow);
}
.save-badge {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.01em;
  background: var(--led-green);
  color: #06280f;
  padding: .22rem .45rem;
  border-radius: .3rem;
  box-shadow: 0 0 12px var(--led-green-glow);
}
.save-inline {
  font-size: .85rem;
  font-weight: 800;
  color: #0a8f4e;
  letter-spacing: -.02em;
}
html[data-theme="dark"] .save-inline { color: var(--led-green); }
.vid-badge {
  font-size: .65rem;
  font-weight: 800;
  background: var(--cyan);
  color: #042433;
  padding: .18rem .4rem;
  border-radius: .25rem;
}
.wh-badge {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #232f3e;
  color: #d5dbdb;
  padding: .18rem .4rem;
  border-radius: .25rem;
}
.wh-badge--thumb {
  position: absolute;
  bottom: .28rem;
  right: .28rem;
  z-index: 2;
  font-size: .58rem;
  padding: .1rem .28rem;
}
.card-body {
  padding: .7rem .75rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .28rem;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.blurb {
  margin: 0;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
}
.price {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.price-was {
  font-size: .72rem;
  color: var(--mute);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.meta {
  font-size: .75rem;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.moq {
  font-size: .74rem;
  font-weight: 700;
  color: var(--wa-deep);
}
.buy {
  margin-top: auto;
  padding-top: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: .45rem;
  background: var(--led-green);
  color: #06280f;
  font-weight: 800;
  font-size: .88rem;
  transition: filter .2s, box-shadow .2s;
}
.buy:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 18px var(--led-green-glow);
}
.buy.disabled {
  background: #e3e6e6;
  color: var(--mute);
  pointer-events: none;
  box-shadow: none;
}
html[data-theme="dark"] .buy.disabled {
  background: #1e2533;
  color: var(--mute);
}

/* WA catalog dense rows (mobile-first) */
.list { display: flex; flex-direction: column; gap: .55rem; }
.row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .55rem;
  border-radius: .35rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.row:hover { border-color: color-mix(in srgb, var(--wa) 45%, var(--line)); }
.row.is-hidden { display: none; }
.row .thumb {
  width: 88px;
  height: 88px;
  border-radius: .3rem;
  overflow: hidden;
  background: #f5f6f6;
  position: relative;
}
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: .65rem; color: var(--mute); font-weight: 700;
}
.row .thumb .code-badge {
  font-size: .68rem;
  padding: .12rem .32rem;
  top: .28rem;
  left: .28rem;
}
.row .info h3 {
  margin: 0 0 .12rem;
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row .info .price { font-size: .98rem; }
.row .buy {
  margin-top: 0;
  padding: .55rem .65rem;
  min-width: 5.2rem;
  font-size: .78rem;
  white-space: nowrap;
}
.row .thumb .ph,
.row .thumb.media-broken .ph-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  color: var(--mute);
  font-weight: 700;
  background: linear-gradient(135deg, #f0f2f2, #e3e6e6);
}

.panel { display: none; }
.panel.on { display: block; }
.empty {
  padding: 1.75rem 1.1rem;
  text-align: center;
  color: var(--mute);
  border: 1px dashed var(--line);
  border-radius: .55rem;
  background: color-mix(in srgb, var(--card) 92%, var(--page));
  font-size: .92rem;
}
.empty a { color: var(--link); font-weight: 800; }
#mkt-search-empty:not([hidden]) {
  margin: .5rem 0 .85rem;
  border-color: color-mix(in srgb, var(--wa) 35%, var(--line));
}

.drama {
  margin: 1.25rem 0 1.5rem;
}
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
@media (min-width: 720px) {
  .drama-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .drama-grid { grid-template-columns: 1fr; }
}
.drama-card {
  display: block;
  padding: .95rem 1rem;
  border-radius: .35rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.drama-card .tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wa-deep);
  margin-bottom: .3rem;
}
.drama-card h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.drama-card p {
  margin: 0;
  font-size: .86rem;
  color: var(--mute);
}
.drama-teaser {
  padding: 1.1rem;
  border-radius: .35rem;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow);
}
.drama-teaser p { margin: 0 0 .85rem; color: var(--mute); }

footer.mkt-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.5rem 0 max(1.5rem, env(safe-area-inset-bottom));
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: .85rem;
}
footer.mkt-foot .brand { color: var(--ink); font-size: 1rem; }
footer.mkt-foot .brand .x { color: var(--led-green); text-shadow: none; }
footer.mkt-foot a:hover { color: var(--ink); }

/* —— Hub 7xFlow: progreso comprador + código + marcas —— */
.buyer-steps {
  list-style: none;
  margin: 1rem 0 .85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.buyer-steps li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: .78rem;
  font-weight: 700;
  color: var(--mute);
}
.buyer-steps li .n {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: .7rem;
  font-weight: 800;
}
.buyer-steps li.current {
  border-color: color-mix(in srgb, var(--led-pink) 55%, var(--line));
  color: var(--ink);
  box-shadow: 0 0 12px var(--led-pink-glow);
}
.buyer-steps li.current .n {
  background: var(--led-pink);
  color: #fff;
}
.buyer-steps li.done {
  border-color: color-mix(in srgb, var(--led-green) 50%, var(--line));
  color: var(--chip-on-fg);
}
.buyer-steps li.done .n {
  background: var(--led-green);
  color: #06280f;
}

.discount-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
  margin: 0 0 1rem;
  padding: .7rem .85rem;
  border-radius: .65rem;
  border: 1px solid var(--line);
  background: var(--card);
}
.discount-bar label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--mute);
}
.discount-bar input {
  flex: 1 1 8rem;
  min-width: 7rem;
  padding: .55rem .7rem;
  border-radius: .45rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 80%, var(--card));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.discount-bar button {
  border: 0;
  border-radius: .45rem;
  padding: .55rem .9rem;
  background: linear-gradient(120deg, var(--led-pink), var(--led-red));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px var(--led-pink-glow);
  transition: filter .2s, box-shadow .2s;
}
.discount-bar button:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 20px var(--led-pink-glow);
}
.discount-bar .discount-ok {
  flex: 1 1 100%;
  font-size: .78rem;
  font-weight: 700;
  color: var(--chip-on-fg);
}

.platform-trust {
  margin: .55rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mute);
  max-width: 42rem;
}
.mkt-niches { margin: 1.35rem 0 1.4rem; }
.mkt-block-label {
  display: block;
  margin: 0 0 .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mute);
}
.mkt-focus-line {
  margin: .35rem 0 .55rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink-soft);
  max-width: 40rem;
}
.mkt-niche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .65rem;
}
.mkt-niche-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .75rem;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.mkt-niche-tag:hover,
.mkt-niche-tag.on {
  border-color: color-mix(in srgb, var(--led-purple) 50%, var(--line));
  background: var(--chip-on-bg);
  color: var(--chip-on-fg);
  box-shadow: 0 0 14px var(--led-purple-glow);
}
.mkt-brands { margin: 1.4rem 0 1.6rem; }
.mkt-brands-rail,
.mkt-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: .65rem;
  padding: .15rem 0 .35rem;
}
@media (max-width: 720px) {
  .mkt-brands-rail,
  .mkt-brands-grid {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .15rem 0 .65rem;
    -webkit-overflow-scrolling: touch;
  }
}
.mkt-brand-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .8rem .55rem;
  border-radius: .7rem;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: card-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
@media (max-width: 720px) {
  .mkt-brand-chip { width: min(38vw, 128px); }
}
.mkt-brand-chip.is-featured {
  border-color: color-mix(in srgb, var(--led-red) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--led-red) 28%, transparent),
    0 0 16px var(--led-red-glow);
}
.mkt-brand-chip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--led-purple) 50%, var(--line));
  box-shadow: 0 0 18px var(--led-purple-glow);
}
.mkt-brand-chip img,
.mkt-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  object-fit: contain;
}
.mkt-brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.mkt-brand-chip .nm {
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-brand-chip .gr {
  font-size: .68rem;
  font-weight: 700;
  color: var(--led-purple);
  line-height: 1.2;
}
html[data-theme="light"] .mkt-brand-chip .gr,
:root:not([data-theme="dark"]) .mkt-brand-chip .gr {
  color: #7a2fc4;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-led {
  0%, 100% { box-shadow: 0 0 0 0 var(--led-green-glow); }
  50% { box-shadow: 0 0 0 12px rgba(57, 255, 138, 0); }
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* LED accent polish (kept last for cascade clarity) */
.tabs a.on {
  background: color-mix(in srgb, var(--led-green) 16%, var(--card));
  color: var(--chip-on-fg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--led-green) 55%, transparent);
}
.rail {
  border: 1px solid var(--line);
}
.section-head {
  margin: .35rem 0 .9rem;
}
.section-head h2 {
  letter-spacing: -.025em;
}

/* —— Phone densify: full width, equal tiles, less wasted gutter —— */
@media (max-width: 720px) {
  :root { --gutter: .75rem; }
  body { padding-bottom: 5rem; }
  .hero-strip { min-height: 140px; margin-top: .7rem; }
  .hero-strip-inner { padding: 1.05rem .9rem 1.1rem; }
  .mkt-tools { padding: .75rem .8rem; }
  .theme-toggle { padding: .32rem .55rem; font-size: .72rem; }
  .tabs {
    flex-wrap: wrap;
  }
  .tabs a {
    flex: 1 1 calc(50% - .35rem);
    min-width: 0;
    padding: .55rem .35rem;
    font-size: .8rem;
  }
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }
  .promo-card {
    min-height: 0;
    padding: .65rem .65rem .55rem;
  }
  .promo-card h2 { font-size: .98rem; margin-bottom: .45rem; }
  .promo-visual { min-height: 110px; }
  .tile-2x2 { gap: .35rem; }
  .grid { gap: .5rem; }
  .card-body { padding: .55rem .55rem .7rem; gap: .2rem; }
  .card-body h3 { font-size: .84rem; min-height: 2.3em; }
  .blurb { display: none; }
  .buy { min-height: 38px; font-size: .82rem; }
  .rail { padding: .7rem .5rem .85rem; }
  .rail-item { width: min(42vw, 148px); }
  .mkt-brand-chip { width: min(38vw, 128px); }
  .section-head h2 { font-size: 1.1rem; }
  .discount-bar input { flex: 1 1 100%; min-width: 0; }
  .discount-bar button { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 520px) {
  .row {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "buy buy";
    align-items: start;
  }
  .row .thumb {
    grid-area: thumb;
    width: 76px;
    height: 76px;
  }
  .row .info { grid-area: info; min-width: 0; }
  .row .buy {
    grid-area: buy;
    width: 100%;
    min-width: 0;
  }
  .promo-grid { gap: .45rem; }
  .code-badge { font-size: .8rem; padding: .2rem .4rem; }
  .badge-stack { max-width: 52%; }
}
@media (max-width: 380px) {
  :root { --gutter: .65rem; }
  .promo-grid { grid-template-columns: 1fr; }
  .tabs a { flex: 1 1 100%; }
}
