:root {
  --ink: #30343b;
  --ink-soft: #5f6671;
  --muted: #8b939f;
  --line: #e6eaf0;
  --line-strong: #dce2ea;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --brand: #1677f4;
  --brand-dark: #1264cf;
  --brand-pale: #edf5ff;
  --green: #13a775;
  --container: min(1320px, calc(100% - 48px));
  --font: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Shared cinematic category surface. The Open Code silk media is reused as a
   lightweight base and tinted per category without duplicating heavy videos. */
.category-cinematic-hero {
  --category-accent: #1677f4;
  position: relative;
  min-height: 520px;
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: 24px;
  background: #101322;
  color: #fff;
  isolation: isolate;
}
.category-cinematic-hero__media,
.category-cinematic-hero__media .open-code-silk,
.category-cinematic-hero__media .open-code-silk__video,
.category-cinematic-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.category-cinematic-hero__media .open-code-silk { background: center/cover var(--silk-poster, #111827) no-repeat; }
.category-cinematic-hero__media .open-code-silk::after,
.category-cinematic-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--category-accent); mix-blend-mode: color; opacity: .44; pointer-events: none; }
.category-cinematic-hero__media .open-code-silk__video { object-fit: cover; opacity: .82; }
.category-cinematic-hero__poster { background: radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--category-accent) 68%, transparent), transparent 45%), #111827; }
.category-cinematic-hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,12,28,.92) 0%, rgba(8,12,28,.67) 48%, rgba(8,12,28,.22) 100%); pointer-events: none; }
.category-cinematic-hero__content { position: relative; z-index: 2; display: flex; min-height: 520px; flex-direction: column; justify-content: center; align-items: flex-start; padding: 56px clamp(24px, 6vw, 88px); }
.category-cinematic-hero__content .breadcrumbs { margin-bottom: 52px; color: rgba(255,255,255,.78); }
.category-cinematic-hero__content .breadcrumbs a { color: inherit; }
.category-cinematic-hero__eyebrow { margin: 0 0 16px; color: color-mix(in srgb, var(--category-accent) 82%, white); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.category-cinematic-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.4rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }
.category-cinematic-hero__description { max-width: 590px; margin: 24px 0 28px; color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.6; }
.category-cinematic-hero .button--light { border-color: rgba(255,255,255,.35); box-shadow: 0 10px 28px color-mix(in srgb, var(--category-accent) 30%, transparent); }
.category-cinematic-hero__count { margin-top: 18px; color: rgba(255,255,255,.66); font-size: .88rem; }
.category-page__body { padding-bottom: 72px; }
.category-catalog__heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 24px; }
.category-catalog__heading > p { max-width: 390px; color: var(--ink-soft); line-height: 1.55; }
.category-search { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; }
.category-search input, .category-search select { min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); padding: 0 14px; }
.category-search input { flex: 1; min-width: 0; }
.category-catalog__count { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.category-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.category-product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--category-accent, var(--brand)) 35%, var(--line)); box-shadow: 0 14px 34px rgba(26, 37, 60, .1); }
.category-product-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.category-product-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.category-product-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--category-accent, var(--brand)) 75%, #111827), #111827); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .04em; opacity: 0; }
.category-product-card__media img[src=""] + .category-product-card__fallback, .category-product-card__media img.is-broken + .category-product-card__fallback { opacity: 1; }
.category-product-card__body { padding: 16px; }
.category-product-card__meta, .category-product-card__footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.category-product-card__meta { color: var(--muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.category-product-card__meta strong { color: var(--ink); font-size: .92rem; letter-spacing: 0; text-transform: none; }
.category-product-card h3 { margin: 10px 0 6px; font-size: 1.16rem; }
.category-product-card p { min-height: 38px; margin: 0 0 14px; color: var(--ink-soft); line-height: 1.48; }
.category-product-card__footer { color: var(--muted); font-size: .78rem; }
.category-product-card__footer b { color: var(--category-accent, var(--brand)); font-size: .74rem; letter-spacing: .06em; }
.category-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.category-empty p { color: var(--ink-soft); }
@media (max-width: 800px) {
  .category-cinematic-hero { min-height: 500px; border-radius: 0; margin-inline: -16px; }
  .category-cinematic-hero__content { min-height: 500px; padding: 36px 24px; }
  .category-cinematic-hero__content .breadcrumbs { margin-bottom: 44px; }
  .category-cinematic-hero__description { font-size: .98rem; }
  .category-catalog__heading { display: block; }
  .category-catalog__heading > p { margin-top: 12px; }
  .category-search { flex-wrap: wrap; }
  .category-search input { flex: 1 1 100%; }
  .category-search select, .category-search button { flex: 1; }
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-product-card__body { padding: 14px; }
  .category-product-card p { min-height: 0; font-size: .9rem; }
}
@media (max-width: 520px) {
  .category-product-grid { grid-template-columns: 1fr; }
  .category-cinematic-hero h1 { max-width: 330px; font-size: clamp(2.15rem, 11vw, 3.4rem); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* Global media contract: every runtime image is bounded and can fail over
   without exposing the browser's broken-image surface or shifting layout. */
.safe-media-frame { position: relative; display: block; min-width: 0; width: 100%; height: 100%; overflow: hidden; }
.safe-media-frame > .public-card-artwork { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.safe-media-frame > .public-card-artwork > img[data-safe-media] { display: block; width: 100%; height: 100%; max-width: none; }
.safe-media-fallback { display: grid; align-content: center; justify-items: start; gap: .35rem; width: 100%; height: 100%; min-height: 5rem; padding: 1rem; background: radial-gradient(circle at 18% 12%, rgba(30,102,255,.13), transparent 42%), linear-gradient(145deg, #f8fbff, #edf3ff); color: #20324d; text-align: left; }
.safe-media-fallback[hidden] { display: none !important; }
.safe-media-fallback__mark { display: inline-grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .65rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.03em; }
.safe-media-fallback strong { max-width: 22ch; overflow: hidden; color: #24344c; font-size: .78rem; line-height: 1.2; text-overflow: ellipsis; }
.safe-media-fallback small { color: #5c7ba7; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: 5.35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -4rem; left: 1rem; padding: .65rem .85rem; border-radius: .5rem; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid rgba(22,119,244,.33); outline-offset: 3px; }

/* Cabeçalho */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(225,230,238,.78); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.header-shell { min-height: 6.9rem; display: grid; grid-template-columns: auto minmax(19rem, 1fr) auto auto; align-items: center; gap: 1.9rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-width: max-content; }
.brand__logo { width: clamp(8.5rem, 13vw, 11.4rem); height: auto; max-height: 3rem; object-fit: contain; object-position: left center; }
.global-search { min-width: 0; height: 3.45rem; display: flex; align-items: center; gap: .66rem; padding: 0 .75rem .0rem 1rem; border: 1px solid transparent; border-radius: 999px; background: #f3f5f7; color: #7d8793; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.global-search:focus-within { border-color: rgba(22,119,244,.34); background: #fff; box-shadow: 0 0 0 4px rgba(22,119,244,.07); }
.global-search > svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.global-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .92rem; }
.global-search input::placeholder { color: #9aa2ac; }
.global-search kbd { flex: 0 0 auto; min-width: 2rem; padding: .16rem .42rem; border-radius: .45rem; background: #e2e5e9; color: #7a838f; font-family: var(--font); font-size: .65rem; font-weight: 600; line-height: 1.2; text-align: center; }
.global-search button { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* A global query is a focused product lookup, never a second homepage view.
   Keep discovery/category shelves out even if another renderer remounts them
   while the canonical result request is still resolving. */
body.is-global-search #inicio,
body.is-global-search .category-showcase,
body.is-global-search #marketplace-sections,
body.is-global-search #como-funciona,
body.is-global-search .trust-strip { display: none !important; }
body.is-global-search #global-search-results { display: block !important; }
.header-nav { display: flex; align-items: center; gap: 1.45rem; white-space: nowrap; }
.nav-link { display: inline-flex; align-items: center; gap: .32rem; padding: .35rem 0; border: 0; background: transparent; color: #59616c; font-size: .83rem; font-weight: 600; transition: color .16s ease; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); }
.nav-link svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category-menu { position: relative; }
.category-popover { position: absolute; top: calc(100% + 1rem); right: -.75rem; min-width: 11rem; padding: .45rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 12px 35px rgba(33,43,58,.12); }
.category-popover:not([hidden]) { display: grid; }
.category-popover button { padding: .58rem .65rem; border: 0; border-radius: .45rem; background: transparent; color: #525b67; font-size: .76rem; text-align: left; }
.category-popover a { padding: .58rem .65rem; border-radius: .45rem; color: #525b67; font-size: .76rem; text-align: left; text-decoration: none; }
.category-popover button:hover, .category-popover a:hover { background: var(--brand-pale); color: var(--brand); }
.category-popover a.category-popover__claude { margin-bottom: .25rem; color: #d97757; font-weight: 800; letter-spacing: .04em; background: rgba(217,119,87,.1); }
.category-popover a.category-popover__claude:hover { background: rgba(217,119,87,.18); color: #c4552f; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-auth-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.05rem; padding: 0 .95rem; border: 1px solid var(--line); border-radius: 999px; color: #4c5561; font-size: .76rem; font-weight: 700; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.header-auth-link:hover { border-color: rgba(22,119,244,.35); background: var(--brand-pale); color: var(--brand); }
.auth-user-button { display: grid; place-items: center; width: 3.05rem; height: 3.05rem; padding: 0; overflow: hidden; border: 1px solid rgba(22,119,244,.24); border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: .68rem; font-weight: 700; transition: transform .16s ease, border-color .16s ease; }
.auth-user-button:hover { border-color: var(--brand); transform: translateY(-1px); }.auth-user-button img { width: 100%; height: 100%; object-fit: cover; }
.icon-button.search-toggle { display: none; }
.icon-button { position: relative; display: grid; place-items: center; width: 3.05rem; height: 3.05rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #3d4652; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.icon-button:hover { border-color: rgba(22,119,244,.35); background: var(--brand-pale); color: var(--brand); transform: translateY(-1px); }
.icon-button svg { width: 1.18rem; height: 1.18rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -.2rem; right: -.2rem; display: grid; place-items: center; min-width: 1rem; height: 1rem; padding: 0 .15rem; border: 2px solid #fff; border-radius: 999px; background: var(--brand); color: #fff; font-size: .53rem; font-weight: 700; line-height: 1; }
.mobile-search, .account-menu { display: none; }
.account-menu { position: absolute; top: 5.35rem; right: max(1.5rem, calc((100vw - 1320px) / 2)); width: min(14rem, calc(100vw - 3rem)); padding: .45rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 15px 35px rgba(33,43,58,.12); }
.account-menu:not([hidden]) { display: grid; }
.account-menu a, .account-menu button { display: block; width: 100%; padding: .62rem .7rem; border: 0; border-radius: .46rem; background: transparent; color: #505965; font-size: .76rem; font-weight: 500; text-align: left; }
.account-menu a:hover, .account-menu button:hover { background: #f5f7fa; color: var(--brand); }
.account-menu__identity { display: grid; gap: .08rem; padding: .55rem .7rem .7rem; border-bottom: 1px solid var(--line); color: #49525e; }.account-menu__identity b { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }.account-menu__identity small { overflow: hidden; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }

/* Authentication */
.auth-page { position: relative; isolation: isolate; display: grid; min-height: calc(100dvh - 6.9rem); place-items: center; overflow: hidden; padding: 4.8rem 1.5rem; background: linear-gradient(145deg, #f8fbff 0%, #fff 46%, #f8fcfb 100%); }
.auth-page__backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }.auth-page__backdrop::before, .auth-page__backdrop::after { position: absolute; width: 32rem; height: 24rem; border-radius: 50%; content: ""; filter: blur(28px); opacity: .45; }.auth-page__backdrop::before { top: -14rem; left: -11rem; background: #dceeff; }.auth-page__backdrop::after { right: -13rem; bottom: -16rem; background: #e2f7ef; }
.auth-card { width: min(100%, 28.75rem); padding: clamp(1.5rem, 5vw, 2.6rem); border: 1px solid rgba(218,226,236,.95); border-radius: 1.35rem; background: rgba(255,255,255,.92); box-shadow: 0 24px 65px rgba(40,61,88,.11); }.auth-card .section-kicker { margin: 0 0 .65rem; }.auth-card h1 { margin: 0; color: #30343b; font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.055em; line-height: 1.03; }.auth-card__description { margin: .9rem 0 1.8rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.7; }

/* Biblioteca pessoal — dados exclusivamente vindos dos entitlements ativos. */
.library-page { min-height: 54vh; padding: clamp(2rem, 5vw, 4.2rem) 0 6rem; background: linear-gradient(160deg, #fbfdff 0%, #fff 55%, #f8fcfb 100%); }.library-page__hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 3.8rem); padding-bottom: clamp(1.8rem, 4vw, 2.8rem); border-bottom: 1px solid var(--line); }.library-page__hero .section-kicker { margin: 0 0 .55rem; }.library-page__hero h1 { margin: 0; color: #30343b; font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 700; letter-spacing: -.07em; line-height: .98; }.library-page__hero p:not(.section-kicker) { max-width: 36rem; margin: .85rem 0 0; color: #6c7784; font-size: .95rem; line-height: 1.65; }.library-page__browse { flex: 0 0 auto; min-height: 3rem; font-size: .68rem; white-space: nowrap; }.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }.library-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: #fff; box-shadow: 0 11px 25px rgba(34,51,72,.04); }.library-card__cover { display: block; position: relative; overflow: hidden; height: 12.5rem; border-bottom: 1px solid var(--line); background: #eff4fb; }.library-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }.library-card:hover .library-card__cover img { transform: scale(1.025); }.library-card__cover-fallback { display: grid; width: 100%; height: 100%; place-content: center; gap: .1rem; background: radial-gradient(circle at 18% 20%, #d7edff 0, transparent 38%), linear-gradient(135deg, #073b8e, #1677f4); color: #fff; letter-spacing: .12em; text-align: center; }.library-card__cover-fallback span { font-size: .6rem; font-weight: 700; }.library-card__cover-fallback b { font-size: 1.45rem; letter-spacing: -.04em; }.library-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.25rem 1.1rem; }.library-card__type { margin: 0; color: var(--brand); font-size: .6rem; font-weight: 700; letter-spacing: .1em; }.library-card h2 { margin: .55rem 0 0; color: #30343b; font-size: 1.2rem; letter-spacing: -.045em; line-height: 1.12; }.library-card h2 a { color: inherit; }.library-card__body > p:not(.library-card__type) { margin: .65rem 0 1.25rem; color: #727d89; font-size: .76rem; line-height: 1.62; }.library-card__footer { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid #edf0f4; }.library-card__footer > div { display: grid; gap: .2rem; color: #8a94a0; font-size: .59rem; line-height: 1.35; }.library-card__access { color: var(--brand); font-size: .66rem; font-weight: 700; white-space: nowrap; }.library-card__access span { font-size: .82rem; }.library-empty, .library-status { display: grid; justify-items: start; max-width: 43rem; padding: clamp(1.7rem, 4vw, 2.7rem); border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(34,51,72,.04); }.library-empty { text-align: left; }.library-empty__icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .72rem; background: #ebf4ff; color: var(--brand); font-size: 1.1rem; }.library-empty h2 { max-width: 31rem; margin: 1.05rem 0 0; color: #3a424c; font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.045em; line-height: 1.15; }.library-empty p, .library-status p { max-width: 31rem; margin: .65rem 0 1.25rem; color: #75808d; font-size: .8rem; line-height: 1.65; }.library-empty .button, .library-status .button { min-height: 3rem; font-size: .67rem; }.library-status { min-height: 10rem; align-content: center; justify-items: center; width: 100%; color: #788391; font-size: .78rem; }.library-status > span { width: 1.35rem; height: 1.35rem; border: 2px solid #dce9fa; border-top-color: var(--brand); border-radius: 50%; animation: library-spin .7s linear infinite; }.library-status--error { justify-items: start; color: #687482; }.library-status--error > span { display: none; }.library-status--error strong { color: #3c4650; font-size: 1rem; }.product-owned { color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .01em; }.detail-price-note--owned { color: var(--green); font-weight: 600; }
@keyframes library-spin { to { transform: rotate(360deg); } }
.auth-provider { display: flex; width: 100%; min-height: 3.2rem; align-items: center; justify-content: center; gap: .7rem; border: 1px solid var(--line-strong); border-radius: .75rem; background: #fff; color: #4c5663; font-size: .8rem; font-weight: 700; transition: border-color .16s ease, background .16s ease, transform .16s ease; }.auth-provider:hover { border-color: rgba(22,119,244,.38); background: #fbfdff; transform: translateY(-1px); }.auth-provider svg { width: 1.1rem; height: 1.1rem; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .7rem; margin: 1.45rem 0; color: #a0a7b0; font-size: .68rem; font-weight: 600; text-transform: uppercase; }.auth-divider span { height: 1px; background: var(--line); }.auth-divider b { font-weight: 600; }
.auth-form { display: grid; gap: 1rem; }.auth-form label { display: grid; gap: .42rem; color: #525c67; font-size: .74rem; font-weight: 700; }.auth-form input { width: 100%; min-height: 3.15rem; padding: 0 .86rem; border: 1px solid var(--line-strong); border-radius: .7rem; outline: 0; background: #fff; color: var(--ink); font-size: .9rem; transition: border-color .16s ease, box-shadow .16s ease; }.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,119,244,.1); }.auth-form small { color: var(--muted); font-size: .65rem; font-weight: 500; }.auth-submit { width: 100%; margin-top: .2rem; }.auth-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.auth-message { margin: 0; padding: .7rem .78rem; border: 1px solid rgba(22,119,244,.18); border-radius: .62rem; background: var(--brand-pale); color: #3f5d82; font-size: .72rem; font-weight: 500; line-height: 1.5; }.auth-message[data-kind="error"] { border-color: rgba(202,73,73,.22); background: #fff5f5; color: #a14141; }.auth-message[data-kind="success"] { border-color: rgba(19,167,117,.23); background: #f1fcf7; color: #168461; }
.auth-text-link, .auth-footer { color: #66707d; font-size: .73rem; text-align: center; }.auth-text-link { margin-top: -.18rem; color: var(--brand); font-weight: 700; }.auth-footer { margin: .15rem 0 0; }.auth-footer a { color: var(--brand); font-weight: 700; }.auth-loading { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.2rem; color: #66707d; font-size: .78rem; font-weight: 600; }.auth-loading span { width: 1rem; height: 1rem; border: 2px solid #d7e7fc; border-top-color: var(--brand); border-radius: 50%; animation: auth-spin .72s linear infinite; }@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 25.25rem; display: grid; place-items: center; padding: 5.6rem 0 5.1rem; }
.hero__lights { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }
.hero__lights i { position: absolute; display: block; width: 29rem; height: 20rem; border-radius: 50%; filter: blur(45px); opacity: .32; }
.hero__lights i:nth-child(1) { top: 10%; left: 8%; background: #e4f3ff; }
.hero__lights i:nth-child(2) { top: -34%; left: 48%; background: #e7f8f0; }
.hero__lights i:nth-child(3) { bottom: -44%; right: 14%; background: #f7eaf8; }
.hero__silks { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.hero__silk { position: absolute; top: -2.5rem; width: clamp(17rem, 31vw, 33rem); max-width: none; height: auto; opacity: .76; user-select: none; }
.hero__silk--left { left: clamp(-11rem, -8vw, -4rem); }
.hero__silk--right { right: clamp(-11rem, -8vw, -4rem); }
.hero__content { position: relative; z-index: 1; text-align: center; }
.hero__headline { margin: 0; color: #c6cbd2; font-size: clamp(2.25rem, 4.45vw, 4rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.hero__headline strong { color: #33363b; font-weight: 700; }
.hero__headline { display: flex; align-items: center; justify-content: center; gap: .16em; }
.hero__headline strong { min-width: 0; }
.hero__headline .hero__bracket { display: inline-block; color: var(--brand); font-size: 1.48em; font-weight: 600; line-height: .72; transform: translateY(.02em); }
.hero__description { max-width: 43rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.85rem; }
.button { min-height: 3.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .48rem; padding: 0 1.2rem; border: 1px solid transparent; border-radius: .72rem; font-size: .76rem; font-weight: 700; letter-spacing: .015em; text-transform: uppercase; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(22,119,244,.16); }
.button--primary:hover { background: var(--brand-dark); box-shadow: 0 12px 22px rgba(22,119,244,.23); }
.button--primary svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.6); color: #505965; text-transform: none; letter-spacing: 0; }
.button--ghost:hover { border-color: rgba(22,119,244,.25); color: var(--brand); }
.hero__hint { display: inline-flex; align-items: center; gap: .45rem; margin: 1.2rem 0 0; color: #88919d; font-size: .69rem; }
.hero__hint span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--green); }

/* Títulos e categorias */
.section-heading, .marketplace__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.section-kicker { margin: 0 0 .5rem; color: var(--brand); font-size: .67rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; color: #363a40; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.12; }
.section-heading > p { max-width: 20rem; margin: 0 0 .18rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.65; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.1rem; }
.category-card { position: relative; min-height: 14.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #f2f6fc; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(22,119,244,.32); box-shadow: 0 10px 24px rgba(40,61,88,.1); }
.category-card::after { content: ""; position: absolute; z-index: 1; inset: 42% 0 0; background: linear-gradient(180deg, transparent, rgba(23,30,44,.79)); pointer-events: none; }
.category-card__media-frame { position: absolute; z-index: 0; inset: 0; }
.category-card__image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card__fallback { position: absolute; inset: 0; }
.category-card:hover .category-card__image { transform: scale(1.035); }
.category-card__image[src=""] { display: none; }
.category-card--saas { background: radial-gradient(circle at 70% 32%, #cde4ff, transparent 38%), linear-gradient(135deg, #edf5ff, #d6e9ff); }
.category-card--landing-pages { background: radial-gradient(circle at 45% 24%, #e0f3ff, transparent 35%), linear-gradient(135deg, #e9f2fa, #e9f7f1); }
.category-card--skills { background: radial-gradient(circle at 72% 30%, #e3e9ff, transparent 38%), linear-gradient(135deg, #edf2fc, #f3f0fa); }
.category-card--saas .category-card__image { object-position: center 42%; }
.category-card--landing-pages .category-card__image { object-position: center 50%; }
.category-card--skills .category-card__image { object-fit: contain; background: #fff; }
.category-card--open-code .category-card__image { object-position: center; }
.category-card--packs .category-card__image { object-position: center; }
.category-card__caption { position: absolute; z-index: 2; left: 1.2rem; right: 1.2rem; bottom: 1rem; color: #fff; }
.category-card__caption span { display: block; margin-bottom: .18rem; font-size: .63rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.category-card__caption b { display: flex; align-items: center; justify-content: space-between; font-size: 1.15rem; letter-spacing: -.04em; }
.category-card__caption b svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.8rem; width: 100%; margin-top: 2.75rem; color: #67717d; font-size: .72rem; font-weight: 700; letter-spacing: .035em; text-align: center; text-transform: uppercase; transition: color .16s ease; }
.section-divider[type="button"] { padding: 0; border: 0; background: transparent; font: inherit; }
.section-divider:hover { color: var(--brand); }
.section-divider span { height: 1px; background: var(--line-strong); }
.section-divider b { font: inherit; }

/* Vitrine */
.marketplace { padding-top: 2rem; }
.marketplace__intro { padding-top: 1rem; border-top: 1px solid transparent; }
.search-status { max-width: 23rem; margin: 0; color: var(--brand); font-size: .74rem; font-weight: 500; text-align: right; }
.marketplace-sections { margin-top: 3.4rem; }
.marketplace-section { scroll-margin-top: 8rem; }
.marketplace-section + .marketplace-section { margin-top: 6.8rem; }
.shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.shelf-heading h2 { font-size: 1.75rem; }
.shelf-heading p { margin: 0; color: #8b949f; font-size: .72rem; }
.product-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 1.45rem; }
.product-card { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .78rem; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(22,119,244,.3); box-shadow: 0 10px 22px rgba(35,54,75,.08); }
.product-card.is-hidden { display: none; }
.product-card__preview { position: relative; height: 8.7rem; overflow: hidden; border-bottom: 1px solid #edf0f4; background: var(--mist); }
.product-cover, .product-cover-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-cover { display: block; object-fit: cover; object-position: center; }
.product-cover-frame { position: absolute; inset: 0; }
.product-cover-frame > .product-cover { position: absolute; }
.product-cover-fallback[hidden] { display: none; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: .82rem .82rem .75rem; }
.product-card--skill .product-card__body { padding-top: 1rem; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; min-height: 1.05rem; gap: .35rem; }
.product-type { overflow: hidden; color: #7c8693; font-size: .6rem; font-weight: 600; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.product-badge { flex: 0 0 auto; padding: .16rem .35rem; border-radius: .28rem; background: #eef5ff; color: var(--brand); font-size: .54rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.product-title { display: -webkit-box; min-height: 2.55rem; margin: .55rem 0 0; overflow: hidden; color: #373b42; font-size: .78rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.37; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-description { display: -webkit-box; min-height: 2.8rem; margin: .4rem 0 .75rem; overflow: hidden; color: #7d8794; font-size: .64rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: auto; padding-top: .55rem; border-top: 1px solid #eff1f4; }
.product-price { color: var(--brand); font-size: .77rem; font-weight: 700; letter-spacing: -.02em; }
.product-price--free { color: var(--green); letter-spacing: .035em; }
.product-open { display: grid; place-items: center; flex: 0 0 1.55rem; width: 1.55rem; height: 1.55rem; padding: 0; border: 0; border-radius: 50%; background: #f2f6fc; color: #6781a2; transition: color .16s ease, background .16s ease; }
.product-open:hover { background: var(--brand); color: #fff; }
.product-open svg { width: .78rem; height: .78rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Prévia de Skill */
.skill-cover { position: absolute; inset: 0; display: flex; flex-direction: column; padding: .78rem .8rem .7rem; overflow: hidden; background: radial-gradient(circle at 90% 0%, rgba(126,175,255,.48), transparent 42%), linear-gradient(145deg, #f9fbff, #e8f1fc); color: #334252; }
.skill-cover::after { content: ""; position: absolute; width: 8rem; height: 8rem; right: -3.8rem; bottom: -4.5rem; border: 1px solid rgba(75,132,214,.17); border-radius: 50%; box-shadow: 0 0 0 1.2rem rgba(75,132,214,.04), 0 0 0 2.4rem rgba(75,132,214,.03); }
.skill-cover__top { display: flex; align-items: center; gap: .18rem; min-height: .6rem; }
.skill-cover__top i { width: .25rem; height: .25rem; border-radius: 50%; background: #bad0eb; }.skill-cover__top i:nth-child(2) { background: #9ec0e5; }.skill-cover__top i:nth-child(3) { background: #d2e0ef; }
.skill-cover__top b { margin-left: auto; color: #5c83b8; font-size: .45rem; font-weight: 700; letter-spacing: .11em; }
.skill-cover__body { position: relative; z-index: 1; display: flex; align-items: center; gap: .55rem; margin: auto 0 .5rem; }
.skill-cover__body > strong { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: .52rem; background: #2f75d6; box-shadow: 0 7px 13px rgba(45,105,187,.18); color: #fff; font-size: .67rem; letter-spacing: -.04em; }
.skill-cover__body div { min-width: 0; }.skill-cover__body span { display: block; margin-bottom: .08rem; color: #738496; font-size: .48rem; font-weight: 600; }
.skill-cover__body b { display: -webkit-box; overflow: hidden; color: #3d4d60; font-size: .62rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.skill-cover__tags { position: relative; z-index: 1; display: flex; gap: .28rem; }.skill-cover__tags span { padding: .16rem .3rem; border: 1px solid rgba(105,145,194,.25); border-radius: .28rem; background: rgba(255,255,255,.55); color: #6380a4; font-size: .43rem; font-weight: 600; }
.product-card--skill:hover .skill-cover { background: radial-gradient(circle at 90% 0%, rgba(120,172,255,.64), transparent 43%), linear-gradient(145deg, #fbfdff, #e3effe); }

/* Miniaturas de produto */
.product-visual { position: absolute; inset: 0; overflow: hidden; background: #f4f7fb; }
.visual-window { position: absolute; inset: 13% 9% 8%; overflow: hidden; border: 1px solid rgba(95,114,141,.18); border-radius: .38rem; background: #fff; box-shadow: 0 8px 20px rgba(63,83,107,.12); transform: perspective(420px) rotateX(3deg) rotateY(-3deg); }
.visual-bar { display: flex; align-items: center; gap: .17rem; height: .78rem; padding: 0 .35rem; border-bottom: 1px solid #edf0f5; background: #fafbfd; }
.visual-bar i { width: .22rem; height: .22rem; border-radius: 50%; background: #cad2de; }
.visual-bar i:nth-child(2) { background: #b9c6d8; }.visual-bar i:nth-child(3) { background: #d8dfe8; }
.visual-bar b { width: 30%; height: .2rem; margin-left: auto; border-radius: 999px; background: #e8edf3; }
.visual-content { position: absolute; inset: .78rem 0 0; }
.visual-side { position: absolute; width: 15%; inset: 0 auto 0 0; border-right: 1px solid #eef1f5; background: #f9fafc; }
.visual-side i { display: block; width: .38rem; height: .38rem; margin: .45rem auto; border-radius: .12rem; background: #dce5f0; }
.visual-side i:first-child { background: #6ca8ff; }
.visual-main { position: absolute; inset: .45rem .48rem .48rem 20%; }
.visual-main::before { content: ""; display: block; width: 38%; height: .35rem; border-radius: 999px; background: #394757; opacity: .8; }
.visual-main::after { content: ""; display: block; width: 21%; height: .2rem; margin-top: .24rem; border-radius: 99px; background: #dce3eb; }
.visual-chart { position: absolute; display: flex; align-items: end; gap: .13rem; right: .08rem; bottom: .02rem; left: .08rem; height: 55%; }
.visual-chart i { flex: 1; min-height: 20%; border-radius: .1rem .1rem 0 0; background: #d9e6f7; }
.visual-chart i:nth-child(2) { height: 57%; background: #9fc6ff; }.visual-chart i:nth-child(3) { height: 35%; }.visual-chart i:nth-child(4) { height: 76%; background: #4790fb; }.visual-chart i:nth-child(5) { height: 48%; }.visual-chart i:nth-child(6) { height: 88%; background: #6cabff; }
.visual--agenda { background: radial-gradient(circle at 80% 20%, #cae5ff, transparent 35%), #eef6ff; }
.visual--agenda .visual-main { display: grid; grid-template-columns: repeat(5,1fr); grid-template-rows: 12% repeat(4,1fr); gap: .18rem; }
.visual--agenda .visual-main::before, .visual--agenda .visual-main::after { display: none; }
.visual--agenda .visual-chart { position: static; display: contents; }
.visual--agenda .visual-chart i { min-height: auto; height: auto; border-radius: .13rem; background: #eef3fa; }
.visual--agenda .visual-chart i:nth-child(2), .visual--agenda .visual-chart i:nth-child(4), .visual--agenda .visual-chart i:nth-child(6) { background: #72a9fb; }
.visual--crm { background: radial-gradient(circle at 23% 12%, #e4edff, transparent 30%), #f4f7fc; }
.visual--crm .visual-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: .24rem; }
.visual--crm .visual-main::before, .visual--crm .visual-main::after, .visual--crm .visual-chart { display: none; }
.visual--crm .visual-main > i { display: block; margin-top: .7rem; border-radius: .15rem; background: linear-gradient(#d7e2f1 13%, transparent 13% 24%, #e7ecf4 24% 35%, transparent 35% 44%, #e1e9f4 44% 55%, transparent 55%), #f9fbfe; }
.visual--crm .visual-main > i:nth-child(2) { background: linear-gradient(#a8c9ff 13%, transparent 13% 24%, #e2eaf5 24% 35%, transparent 35% 44%, #e8eef6 44% 55%, transparent 55%), #f9fbfe; }
.visual--finance { background: radial-gradient(circle at 71% 17%, #d8f0eb, transparent 34%), #f5f8f7; }
.visual--finance .visual-side i:first-child { background: #56b693; }
.visual--finance .visual-chart i { background: #d9ede7; }.visual--finance .visual-chart i:nth-child(2), .visual--finance .visual-chart i:nth-child(4), .visual--finance .visual-chart i:nth-child(6) { background: #4eb592; }
.visual--support { background: radial-gradient(circle at 72% 22%, #e5e4ff, transparent 35%), #f6f6fc; }
.visual--support .visual-main::before { width: 52%; }.visual--support .visual-main::after { width: 32%; }
.visual--support .visual-chart { display: grid; grid-template-columns: 1fr; align-content: end; gap: .26rem; }
.visual--support .visual-chart i { flex: none; width: 65%; height: .48rem; min-height: 0; border-radius: .16rem; background: #e8ebf5; }.visual--support .visual-chart i:nth-child(2) { width: 48%; height: .48rem; margin-left: auto; background: #89b7ff; }.visual--support .visual-chart i:nth-child(3) { width: 56%; height: .48rem; }.visual--support .visual-chart i:nth-child(n+4) { display: none; }
.visual--clinic { background: radial-gradient(circle at 32% 20%, #e0f5f1, transparent 36%), #f6faf9; }
.visual--clinic .visual-side i:first-child { background: #4db9a5; }.visual--clinic .visual-chart i { background: #d7eee9; }.visual--clinic .visual-chart i:nth-child(3), .visual--clinic .visual-chart i:nth-child(5) { background: #58bba6; }
.visual--realestate { background: radial-gradient(circle at 72% 20%, #fff0df, transparent 35%), #fbf7f1; }
.visual--realestate .visual-side i:first-child { background: #efae62; }.visual--realestate .visual-chart { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }.visual--realestate .visual-chart i { min-height: 1.7rem; background: linear-gradient(145deg, #e9edf0 50%, #d1e4ff 50%); }.visual--realestate .visual-chart i:nth-child(n+5) { display: none; }
.visual--landing-saas { background: radial-gradient(circle at 76% 34%, #cce5ff, transparent 30%), #eff5fb; }
.visual--landing-saas .visual-window, .visual--landing-agency .visual-window, .visual--landing-app .visual-window, .visual--landing-product .visual-window, .visual--landing-service .visual-window, .visual--landing-consulting .visual-window { transform: perspective(420px) rotateX(2deg); }
.visual--landing-saas .visual-side, .visual--landing-agency .visual-side, .visual--landing-app .visual-side, .visual--landing-product .visual-side, .visual--landing-service .visual-side, .visual--landing-consulting .visual-side { display: none; }
.visual--landing-saas .visual-main, .visual--landing-agency .visual-main, .visual--landing-app .visual-main, .visual--landing-product .visual-main, .visual--landing-service .visual-main, .visual--landing-consulting .visual-main { inset: .7rem .8rem; }
.visual--landing-saas .visual-main::before, .visual--landing-agency .visual-main::before, .visual--landing-app .visual-main::before, .visual--landing-product .visual-main::before, .visual--landing-service .visual-main::before, .visual--landing-consulting .visual-main::before { width: 28%; height: .18rem; }
.visual--landing-saas .visual-main::after, .visual--landing-agency .visual-main::after, .visual--landing-app .visual-main::after, .visual--landing-product .visual-main::after, .visual--landing-service .visual-main::after, .visual--landing-consulting .visual-main::after { width: 65%; height: 1.2rem; margin-top: .45rem; border-radius: .15rem; background: linear-gradient(90deg, #344659 57%, #78b0fa 57%); }
.visual--landing-saas .visual-chart, .visual--landing-agency .visual-chart, .visual--landing-app .visual-chart, .visual--landing-product .visual-chart, .visual--landing-service .visual-chart, .visual--landing-consulting .visual-chart { right: .85rem; left: .85rem; height: 34%; }.visual--landing-saas .visual-chart i { border-radius: .15rem; background: #d4e9ff; }.visual--landing-saas .visual-chart i:nth-child(2) { background: #5d9ff7; }
.visual--landing-product { background: radial-gradient(circle at 73% 20%, #ffe1e7, transparent 36%), #fff7f7; }.visual--landing-product .visual-main::after { background: linear-gradient(90deg, #452d41 57%, #f28aac 57%); }.visual--landing-product .visual-chart i { background: #fbe0e8; }.visual--landing-product .visual-chart i:nth-child(3) { background: #ef98b3; }
.visual--landing-agency { background: radial-gradient(circle at 74% 20%, #e5dfff, transparent 35%), #f7f5ff; }.visual--landing-agency .visual-main::after { background: linear-gradient(90deg, #342e53 57%, #9c8cf3 57%); }.visual--landing-agency .visual-chart i { background: #e7e3ff; }.visual--landing-agency .visual-chart i:nth-child(4) { background: #9b8ae9; }
.visual--landing-app { background: radial-gradient(circle at 74% 20%, #cef3ec, transparent 35%), #f3fcfa; }.visual--landing-app .visual-main::after { background: linear-gradient(90deg, #274b47 57%, #59c6ac 57%); }.visual--landing-app .visual-chart i { background: #d7f4eb; }.visual--landing-app .visual-chart i:nth-child(2) { background: #63c7b0; }
.visual--landing-service { background: radial-gradient(circle at 74% 20%, #ffe8cd, transparent 35%), #fdf8f1; }.visual--landing-service .visual-main::after { background: linear-gradient(90deg, #593d26 57%, #eeb46c 57%); }.visual--landing-service .visual-chart i { background: #ffeddb; }.visual--landing-service .visual-chart i:nth-child(6) { background: #edb46c; }
.visual--landing-consulting { background: radial-gradient(circle at 74% 20%, #deebfb, transparent 35%), #f6f9fd; }.visual--landing-consulting .visual-main::after { background: linear-gradient(90deg, #293e58 57%, #86b2e7 57%); }.visual--landing-consulting .visual-chart i { background: #e0edf9; }.visual--landing-consulting .visual-chart i:nth-child(5) { background: #88b4e8; }
.visual--skill-landing { background: radial-gradient(circle at 76% 18%, #d9e9ff, transparent 34%), #f5f9ff; }.visual--skill-ui { background: radial-gradient(circle at 75% 18%, #e6ddff, transparent 34%), #f8f6ff; }.visual--skill-data { background: radial-gradient(circle at 75% 18%, #d6f3ee, transparent 34%), #f4fbfa; }.visual--skill-copy { background: radial-gradient(circle at 75% 18%, #ffe7d3, transparent 34%), #fff9f4; }.visual--skill-seo { background: radial-gradient(circle at 75% 18%, #ffdfeb, transparent 34%), #fff6f9; }.visual--skill-react { background: radial-gradient(circle at 75% 18%, #e0efff, transparent 34%), #f6faff; }
.visual--skill-landing .visual-window, .visual--skill-ui .visual-window, .visual--skill-data .visual-window, .visual--skill-copy .visual-window, .visual--skill-seo .visual-window, .visual--skill-react .visual-window { inset: 14% 13% 9%; }.visual--skill-landing .visual-side, .visual--skill-ui .visual-side, .visual--skill-data .visual-side, .visual--skill-copy .visual-side, .visual--skill-seo .visual-side, .visual--skill-react .visual-side { display: none; }.visual--skill-landing .visual-main, .visual--skill-ui .visual-main, .visual--skill-data .visual-main, .visual--skill-copy .visual-main, .visual--skill-seo .visual-main, .visual--skill-react .visual-main { inset: .75rem; }.visual--skill-landing .visual-main::before, .visual--skill-ui .visual-main::before, .visual--skill-data .visual-main::before, .visual--skill-copy .visual-main::before, .visual--skill-seo .visual-main::before, .visual--skill-react .visual-main::before { width: 42%; height: .35rem; }.visual--skill-landing .visual-main::after, .visual--skill-ui .visual-main::after, .visual--skill-data .visual-main::after, .visual--skill-copy .visual-main::after, .visual--skill-seo .visual-main::after, .visual--skill-react .visual-main::after { width: 76%; height: .18rem; background: #e1e9f3; }.visual--skill-landing .visual-chart, .visual--skill-ui .visual-chart, .visual--skill-data .visual-chart, .visual--skill-copy .visual-chart, .visual--skill-seo .visual-chart, .visual--skill-react .visual-chart { display: grid; grid-template-columns: repeat(2, 1fr); right: .75rem; left: .75rem; gap: .28rem; height: 38%; }.visual--skill-landing .visual-chart i, .visual--skill-ui .visual-chart i, .visual--skill-data .visual-chart i, .visual--skill-copy .visual-chart i, .visual--skill-seo .visual-chart i, .visual--skill-react .visual-chart i { min-height: 1.1rem; border-radius: .16rem; background: #edf2f7; }.visual--skill-landing .visual-chart i:nth-child(2), .visual--skill-ui .visual-chart i:nth-child(3), .visual--skill-data .visual-chart i:nth-child(4), .visual--skill-copy .visual-chart i:nth-child(1), .visual--skill-seo .visual-chart i:nth-child(2), .visual--skill-react .visual-chart i:nth-child(3) { background: #9ac5ff; }

/* Como funciona + confiança */
.how-it-works { padding-top: 6.6rem; }
.how-it-works__shell { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(3rem, 9vw, 8rem); padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-it-works__intro > p:last-child { max-width: 29rem; margin: 1.15rem 0 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.75; }
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .8rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.steps b { color: #b6c0ce; font-size: 1.2rem; font-weight: 700; letter-spacing: -.04em; }
.steps h3 { margin: .05rem 0 .25rem; color: #40454d; font-size: .9rem; font-weight: 700; letter-spacing: -.02em; }
.steps p { margin: 0; color: #7b8693; font-size: .72rem; line-height: 1.65; }
.trust-strip { padding: 1.5rem 0 5rem; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: .9rem; background: #fff; }
.trust-strip article { display: flex; gap: .78rem; padding: 1.3rem 1.45rem; border-left: 1px solid var(--line); }
.trust-strip article:first-child { border-left: 0; }
.trust-icon { display: grid; place-items: center; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; border-radius: .58rem; background: var(--brand-pale); color: var(--brand); }
.trust-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip h3 { margin: 0; color: #41464e; font-size: .75rem; font-weight: 700; }.trust-strip p { margin: .2rem 0 0; color: #808a96; font-size: .64rem; line-height: 1.5; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); background: #fbfcfd; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 3.65rem 0 3rem; }
.footer-brand p { max-width: 20rem; margin: .9rem 0 0; color: #7d8794; font-size: .73rem; line-height: 1.7; }
.site-footer h3 { margin: .35rem 0 .8rem; color: #454b54; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: .42rem 0; color: #7a8491; font-size: .72rem; transition: color .16s ease; }.site-footer a:not(.brand):hover { color: var(--brand); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); color: #929aa4; font-size: .65rem; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 1.5rem; max-width: min(25rem, calc(100vw - 2rem)); padding: .7rem .9rem; border: 1px solid rgba(22,119,244,.2); border-radius: .65rem; background: #fff; box-shadow: 0 12px 30px rgba(44,61,83,.15); color: #46505d; font-size: .73rem; font-weight: 500; text-align: center; transform: translateX(-50%); }

/* Compra digital — o Pix permanece dentro da REPO; o cartão segue para o Checkout do Asaas. */
.payment-dialog { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 1rem; }
.payment-dialog[hidden] { display: none; }
.payment-dialog__backdrop { position: absolute; inset: 0; background: rgba(26,38,53,.42); backdrop-filter: blur(7px); }
.payment-dialog__panel { position: relative; z-index: 1; width: min(100%, 34rem); max-height: min(90vh, 48rem); overflow: auto; padding: clamp(1.35rem, 4vw, 2rem); border: 1px solid rgba(218,226,236,.95); border-radius: 1.2rem; background: #fff; box-shadow: 0 26px 80px rgba(23,42,67,.2); }
.payment-dialog__close { position: absolute; top: .75rem; right: .8rem; display: grid; width: 2rem; height: 2rem; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #687380; font-size: 1.35rem; line-height: 1; }
.payment-dialog__panel h2 { max-width: 25rem; margin: 0; font-size: clamp(1.55rem, 4vw, 2rem); }
.payment-dialog__description { max-width: 29rem; margin: .7rem 0 1.35rem; color: #707b88; font-size: .8rem; line-height: 1.65; }
.payment-dialog__product { margin: 1.1rem 0 0; color: #697482; font-size: .72rem; line-height: 1.5; }
.payment-dialog__product strong { color: var(--brand); }
.payment-method-options { display: grid; gap: .65rem; margin-top: 1.4rem; }
.payment-method-option { display: grid; grid-template-columns: 2.45rem 1fr auto; align-items: center; gap: .8rem; width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; color: var(--ink); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.payment-method-option:hover, .payment-method-option:focus-visible { border-color: rgba(22,119,244,.42); background: #fbfdff; transform: translateY(-1px); }
.payment-method-option__icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .65rem; background: var(--brand-pale); color: var(--brand); font-size: 1.2rem; font-weight: 700; }
.payment-method-option strong { display: block; font-size: .8rem; }.payment-method-option small { display: block; margin-top: .15rem; color: #7a8591; font-size: .66rem; font-weight: 500; line-height: 1.4; }.payment-method-option b { color: var(--brand); font-size: 1.25rem; }
.payment-dialog__form { display: grid; gap: .85rem; margin-top: 1.2rem; }.payment-dialog__form label { display: grid; gap: .35rem; color: #505b67; font-size: .72rem; font-weight: 700; }.payment-dialog__form input, .payment-dialog__form textarea { width: 100%; min-height: 3rem; padding: 0 .8rem; border: 1px solid var(--line-strong); border-radius: .65rem; outline: 0; background: #fff; color: var(--ink); font-size: .84rem; }.payment-dialog__form input:focus, .payment-dialog__form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,119,244,.09); }.payment-dialog__form .button { width: 100%; margin-top: .2rem; }.payment-dialog__error { margin: 0; padding: .65rem .75rem; border: 1px solid rgba(202,73,73,.2); border-radius: .55rem; background: #fff5f5; color: #a14141; font-size: .7rem; }
.pix-payment__body { display: grid; grid-template-columns: minmax(10rem, 13rem) 1fr; gap: 1.2rem; align-items: center; margin-top: 1.2rem; }.pix-payment__qr { width: min(100%, 13rem); aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--line); border-radius: .65rem; }.pix-payment__qr-fallback { display: grid; width: 13rem; aspect-ratio: 1; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--mist); color: #717d8a; font-size: .7rem; text-align: center; }.pix-payment__hint { margin: .55rem 0 0; color: #87919d; font-size: .64rem; line-height: 1.45; text-align: center; }.pix-payment__copy { display: grid; gap: .45rem; }.pix-payment__copy label { color: #505b67; font-size: .7rem; font-weight: 700; }.pix-payment__copy textarea { width: 100%; resize: none; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; background: #f9fbfd; color: #6a7480; font: .65rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }.pix-payment__copy .button { justify-self: start; min-height: 2.6rem; padding-inline: .9rem; font-size: .66rem; }.pix-payment__status { display: flex; align-items: center; gap: .45rem; margin-top: 1.2rem; padding: .65rem .75rem; border-radius: .6rem; background: #f4f8fe; color: #4f6f99; font-size: .7rem; font-weight: 600; }.pix-payment__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 .22rem rgba(22,119,244,.13); }.payment-dialog__full-button { width: 100%; margin-top: .6rem; }
body.payment-dialog-open { overflow: hidden; }

/* Phase 7 account and order experience */
.account-page { min-height: calc(100dvh - 4.8rem); padding: 4.4rem 0 6rem; background: linear-gradient(180deg, #fbfcfe 0%, #fff 38%); }
.account-page__hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.account-page__hero h1 { margin: .35rem 0 .65rem; color: #303844; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.account-page__hero p:not(.section-kicker) { max-width: 34rem; margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.65; }
.account-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.7rem; padding: .3rem; border: 1px solid var(--line); border-radius: .8rem; background: #f8fafc; }
.account-nav a { padding: .62rem .8rem; border-radius: .55rem; color: #788391; font-size: .7rem; font-weight: 600; text-decoration: none; }
.account-nav a:hover, .account-nav a:focus-visible, .account-nav a.is-active { background: #fff; color: var(--brand); box-shadow: 0 4px 14px rgba(40,70,106,.07); }
.account-overview { display: grid; gap: 1rem; max-width: 56rem; }
.account-card { padding: 1.3rem; border: 1px solid var(--line); border-radius: .95rem; background: #fff; box-shadow: 0 10px 30px rgba(39,61,88,.04); }
.account-card--identity h2 { margin: .2rem 0 .25rem; color: #35404b; font-size: 1.25rem; letter-spacing: -.03em; }
.account-card--identity p { margin: 0; color: #718090; font-size: .8rem; }
.account-card--identity small { display: block; max-width: 34rem; margin-top: 1rem; color: #8a95a1; font-size: .7rem; line-height: 1.55; }
.account-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-card--link { display: flex; gap: .9rem; color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.account-card--link:hover { border-color: #bcd5f4; transform: translateY(-2px); }
.account-card__icon { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .7rem; background: var(--brand-pale); color: var(--brand); font-size: 1.1rem; }
.account-card--link h2 { margin: .05rem 0 .35rem; color: #3f4a56; font-size: .96rem; }
.account-card--link p { margin: 0; color: #7c8793; font-size: .72rem; line-height: 1.5; }
.account-card--link b { display: inline-block; margin-top: .85rem; color: var(--brand); font-size: .68rem; }
.account-signout { justify-self: start; }
.orders-list { display: grid; gap: .8rem; max-width: 62rem; }
.order-card { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; box-shadow: 0 8px 24px rgba(39,61,88,.035); }
.order-card__top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.order-reference { margin: 0 0 .35rem; color: #98a2ad; font-size: .6rem; font-weight: 700; letter-spacing: .08em; }
.order-card h2 { margin: 0; color: #3a4551; font-size: .98rem; letter-spacing: -.02em; }
.order-card__top p:not(.order-reference) { margin: .35rem 0 0; color: #8a95a1; font-size: .68rem; }
.order-status { display: inline-flex; flex: 0 0 auto; padding: .35rem .55rem; border-radius: 999px; font-size: .61rem; font-weight: 700; white-space: nowrap; }
.order-status.is-success { background: #ecfaf5; color: #22856a; }
.order-status.is-pending { background: #f2f7ff; color: #4d78b0; }
.order-status.is-danger { background: #fff4f3; color: #ad5a51; }
.order-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #f0f2f5; color: #5c6875; font-size: .7rem; }
.order-card__meta > span:first-child { color: var(--brand); font-weight: 700; }
.order-card__meta a, .order-card__product { color: var(--brand); font-weight: 700; text-decoration: none; }
.order-card__meta a { margin-left: auto; }
.order-card__product { display: inline-block; margin-top: .8rem; font-size: .67rem; }
.account-loading, .account-feedback, .account-empty { display: grid; justify-items: center; max-width: 42rem; min-height: 12rem; padding: 2rem; place-content: center; border: 1px dashed #dce4ee; border-radius: 1rem; background: #fff; text-align: center; }
.account-loading { display: flex; align-items: center; gap: .55rem; color: #728092; font-size: .75rem; }
.account-loading > span { width: .75rem; height: .75rem; border: 2px solid #d6e5f8; border-top-color: var(--brand); border-radius: 50%; animation: repo-spin .8s linear infinite; }
.account-feedback h2, .account-empty h2 { margin: 0; color: #414c59; font-size: 1rem; }
.account-feedback p, .account-empty p { max-width: 25rem; margin: .65rem 0 1.1rem; color: #7b8793; font-size: .75rem; line-height: 1.55; }
.account-empty__icon { display: grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: .8rem; border-radius: .9rem; background: var(--brand-pale); color: var(--brand); font-size: 1.3rem; }
.order-detail { max-width: 62rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 34px rgba(39,61,88,.05); }
.order-detail__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.order-detail__header h2 { margin: 0; color: #35404b; font-size: clamp(1.2rem, 3vw, 1.55rem); letter-spacing: -.035em; }
.order-detail__header p:not(.order-reference) { margin: .45rem 0 0; color: #7d8996; font-size: .72rem; }
.order-detail__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0; }
.order-detail__facts div { padding: .8rem; border-radius: .65rem; background: #f8fafc; }
.order-detail__facts dt { color: #8995a1; font-size: .62rem; }
.order-detail__facts dd { margin: .3rem 0 0; color: #465463; font-size: .78rem; font-weight: 700; }
.order-detail__facts div:first-child dd { color: var(--brand); }
.order-detail__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.order-detail__support { margin: 1.4rem 0 0; color: #8a95a1; font-size: .68rem; line-height: 1.5; }
.order-detail__support b { color: #5d6d7e; }
.payment-return-card h1 { margin: .35rem 0 .7rem; color: #35404b; font-size: 1.65rem; letter-spacing: -.04em; }
.payment-return-card p:not(.section-kicker) { color: #718090; font-size: .8rem; line-height: 1.65; }
.payment-return-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.3rem; }
@keyframes repo-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .account-page { padding: 2.5rem 0 4rem; }
  .account-page__hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .account-page__hero .button { width: 100%; }
  .account-card-grid { grid-template-columns: 1fr; }
  .account-nav { overflow-x: auto; flex-wrap: nowrap; }
  .account-nav a { flex: 0 0 auto; }
  .order-card__top, .order-detail__header { flex-direction: column; }
  .order-status { align-self: flex-start; }
  .order-card__meta a { margin-left: 0; }
  .order-detail { padding: 1.1rem; }
  .order-detail__facts { grid-template-columns: 1fr; }
  .order-detail__actions, .order-detail__actions .button { width: 100%; }
  .payment-return-actions, .payment-return-actions .button { width: 100%; }
}

/* Phase 8 administrative workspace */
.admin-page{max-width:1180px;margin:0 auto;padding:48px 24px 88px}.admin-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.admin-header h1{margin:6px 0 8px;color:#0d1d3a}.admin-header p{margin:0;color:#5b6b83}.admin-nav{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e3e8f1;margin-bottom:20px}.admin-nav a{color:#5b6b83;text-decoration:none;padding:12px 14px;border-radius:10px 10px 0 0}.admin-nav a:hover,.admin-nav a.is-active{color:#1264d8;background:#f1f6ff}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 14px 35px rgba(13,29,58,.06);padding:22px;min-height:220px}.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-metrics article,.admin-health-grid article{border:1px solid #e6ebf2;border-radius:14px;padding:18px;background:#fbfcfe}.admin-metrics span{display:block;color:#68778e;font-size:.86rem}.admin-metrics strong{display:block;color:#102342;font-size:1.55rem;margin-top:8px}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:620px}.admin-table th,.admin-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #edf0f5;vertical-align:top}.admin-table th{font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;color:#718099}.admin-table td{color:#273957}.admin-table small{display:block;color:#7a8799;margin-top:4px}.admin-table code{font-size:.78rem;color:#375276}.admin-empty,.admin-loading,.admin-error{padding:36px;text-align:center;color:#66758c}.admin-error{color:#a53b42;background:#fff6f6;border:1px solid #f2cccc;border-radius:12px}.admin-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-health-grid h3{font-size:1rem;color:#304361;margin:0 0 12px}.admin-health-grid strong{font-size:1.7rem;color:#102342}.admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.admin-section-head h2{margin:0;color:#102342}.admin-section-head p{margin:.35rem 0 0;color:#66758c}.admin-product-form,.admin-role-form{display:grid;gap:14px;padding:18px;margin-bottom:22px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfcfe}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-product-form label,.admin-role-form label{display:grid;gap:6px;color:#41516a;font-size:.88rem;font-weight:600}.admin-product-form input,.admin-product-form select,.admin-product-form textarea,.admin-role-form input,.admin-role-form select{width:100%;border:1px solid #d8e0eb;border-radius:9px;padding:10px 11px;color:#172b4d;background:#fff;font:inherit;font-weight:400}.admin-product-form textarea{resize:vertical}.admin-check{display:flex!important;align-items:center;grid-template-columns:auto 1fr;align-content:center;gap:8px}.admin-check input{width:auto}.admin-form-actions{display:flex;gap:10px;align-items:center}.admin-form-message{margin:0;color:#a53b42}.admin-form-message[data-kind="success"]{color:#20734b}.button--small{padding:7px 10px;font-size:.78rem}@media(max-width:700px){.admin-page{padding:30px 16px 60px}.admin-header{align-items:flex-start;flex-direction:column}.admin-metrics,.admin-health-grid{grid-template-columns:1fr}.admin-form-grid{grid-template-columns:1fr}.admin-card{padding:14px}.admin-nav{overflow-x:auto;flex-wrap:nowrap}.admin-nav a{white-space:nowrap}}

@media (max-width: 1050px) {
  .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto; gap: 1.2rem; }
  .header-nav { display: none; }
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card.is-hidden { display: none; }
  .how-it-works__shell { gap: 3rem; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 32px, 1216px); }
  .site-header { backdrop-filter: none; }
  .header-shell { min-height: 4.8rem; grid-template-columns: auto 1fr auto; gap: .75rem; }
  .brand__logo { width: clamp(8rem, 30vw, 10rem); max-height: 2.5rem; }
  .global-search { display: none; }
  .icon-button.search-toggle { display: grid; }
  .header-actions { margin-left: auto; }.icon-button, .auth-user-button { width: 2.55rem; height: 2.55rem; }.header-auth-link { min-height: 2.55rem; padding-inline: .72rem; font-size: .7rem; }
  .mobile-search { position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%); z-index: 60; width: var(--container); padding: .55rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; box-shadow: 0 12px 25px rgba(37,54,77,.1); }
  .mobile-search:not([hidden]) { display: block; }.global-search--mobile { display: flex; height: 3rem; }.global-search--mobile kbd { display: none; }
  .account-menu { top: 4.15rem; right: 1rem; }
  .auth-page { min-height: calc(100dvh - 4.8rem); padding: 2.5rem 1rem; }.auth-card { border-radius: 1.05rem; }
  .hero { min-height: 22.8rem; padding: 4.5rem 0; }.hero__lights i { width: 21rem; height: 15rem; }.hero__silk { top: clamp(5rem, 16vw, 6.25rem); width: clamp(10.5rem, 44vw, 22rem); opacity: .6; }.hero__silk--left { left: clamp(-5.75rem, -17vw, -3rem); }.hero__silk--right { right: clamp(-5.75rem, -17vw, -3rem); }
  .hero__headline { font-size: clamp(2rem, 10.5vw, 3rem); line-height: 1.08; }.hero__headline span { display: inline; }.hero__description { max-width: 30rem; font-size: .88rem; }.hero__actions { gap: .55rem; margin-top: 1.5rem; }.button { min-height: 3rem; padding-inline: .9rem; font-size: .68rem; }
  .section { padding-block: 4.1rem; }.section-heading, .marketplace__intro { align-items: flex-start; flex-direction: column; gap: .75rem; }.section-heading > p { max-width: 29rem; font-size: .75rem; text-align: left; }.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: .2rem .05rem .65rem; }.category-card { min-height: 13.5rem; }
  .section-divider { gap: .85rem; margin-top: 2rem; font-size: .65rem; }
  .marketplace { padding-top: 1rem; }.marketplace-sections { margin-top: 2.75rem; }.marketplace-section + .marketplace-section { margin-top: 4.75rem; }.shelf-heading h2 { font-size: 1.5rem; }.shelf-heading p { font-size: .65rem; text-align: right; }
  .product-row { display: grid; grid-auto-columns: minmax(10.7rem, 66vw); grid-auto-flow: column; grid-template-columns: unset; overflow-x: auto; padding: .15rem .05rem .85rem; scroll-snap-type: x mandatory; scrollbar-width: none; }.product-row::-webkit-scrollbar { display: none; }.product-card, .product-card:nth-child(n+5) { display: flex; scroll-snap-align: start; }.product-card.is-hidden { display: none; }.product-card__preview { height: 8.6rem; }
  .how-it-works { padding-top: 4.25rem; }.how-it-works__shell { grid-template-columns: 1fr; gap: 2.4rem; padding: 2.8rem 0; }.trust-strip { padding: .5rem 0 3.5rem; }.trust-strip__grid { grid-template-columns: 1fr; }.trust-strip article { border-top: 1px solid var(--line); border-left: 0; }.trust-strip article:first-child { border-top: 0; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2.1rem 1.2rem; padding: 2.9rem 0 2.4rem; }.footer-brand { grid-column: 1 / -1; }.site-footer__bottom { flex-direction: column; gap: .25rem; }
  .payment-dialog { align-items: end; padding: .55rem; }.payment-dialog__panel { width: 100%; max-height: 92vh; border-radius: 1rem; padding: 1.2rem; }.pix-payment__body { grid-template-columns: 1fr; gap: 1rem; }.pix-payment__qr, .pix-payment__qr-fallback { width: min(13rem, 66vw); }.pix-payment__copy .button { width: 100%; }
}


@media (max-width: 410px) {
  :root { --container: min(100% - 24px, 1216px); }
  .header-shell { grid-template-columns: auto 1fr auto; }.hero { min-height: 22rem; }.hero__headline { font-size: 2rem; }.hero__actions { flex-direction: column; }.hero__actions .button { width: min(14rem, 100%); }.hero__hint { font-size: .63rem; }
  .category-grid { grid-template-columns: 1fr; }.product-row { grid-auto-columns: 72vw; }.site-footer__top { grid-template-columns: 1fr; }.footer-brand { grid-column: auto; }
}

/* Admin product media */
.admin-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-media-grid > div, .admin-media-grid > label { display: grid; gap: 6px; }
.admin-fulfillment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.admin-fulfillment-grid__wide { grid-column: 1 / -1; }
.admin-media-help { display: block; color: #718099; font-size: .72rem; }
.admin-cover-preview { display: grid; min-height: 10rem; place-items: center; overflow: hidden; border: 1px dashed #c9d5e5; border-radius: 12px; background: #f5f8fc; color: #718099; font-size: .78rem; }
.admin-cover-preview img { width: 100%; height: 10rem; object-fit: cover; }
.admin-cover-preview span { padding: 1rem; text-align: center; }
.admin-cover-remove { justify-self: start; }
@media (max-width: 700px) { .admin-media-grid, .admin-fulfillment-grid { grid-template-columns: 1fr; } .admin-fulfillment-grid__wide { grid-column: auto; } }

/* Canonical category hero — the same geometry is shared by every category. */
.category-cinematic-hero {
  --category-accent: #1677f4;
  position: relative;
  display: block;
  width: var(--container);
  height: 520px;
  min-height: 520px;
  margin: 2.55rem auto 3.5rem;
  overflow: hidden;
  border-radius: 24px;
  background: #101322;
  color: #fff;
  isolation: isolate;
}
.category-cinematic-hero__media,
.category-cinematic-hero__media .open-code-silk,
.category-cinematic-hero__media .open-code-silk__video,
.category-cinematic-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.category-cinematic-hero__media { z-index: 0; overflow: hidden; }
.category-cinematic-hero__media .open-code-silk { background: center/cover var(--silk-poster, #111827) no-repeat; }
.category-cinematic-hero__media .open-code-silk::after,
.category-cinematic-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--category-accent); mix-blend-mode: color; opacity: .44; pointer-events: none; }
.category-cinematic-hero__media .open-code-silk__video { object-fit: cover; object-position: center; opacity: .82; }
.category-cinematic-hero__poster { background: radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--category-accent) 68%, transparent), transparent 45%), #111827; }
.category-cinematic-hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,12,28,.92) 0%, rgba(8,12,28,.67) 48%, rgba(8,12,28,.22) 100%); pointer-events: none; }
.category-cinematic-hero__content { position: relative; z-index: 2; display: flex; width: 100%; height: 100%; min-height: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: 56px clamp(24px, 6vw, 88px); }
.category-cinematic-hero__content .breadcrumbs { width: 100%; margin: 0 0 42px; color: rgba(255,255,255,.78); }
.category-cinematic-hero__content .breadcrumbs a { color: inherit; }
.category-cinematic-hero__copy { max-width: 760px; }
.category-cinematic-hero__eyebrow { margin: 0 0 16px; color: color-mix(in srgb, var(--category-accent) 82%, white); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.category-cinematic-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.4rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }
.category-cinematic-hero__description { max-width: 590px; margin: 24px 0 28px; color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.6; }
.category-cinematic-hero .button--light { min-height: 50px; padding: 0 24px; border-radius: 12px; border-color: rgba(255,255,255,.35); box-shadow: 0 10px 28px color-mix(in srgb, var(--category-accent) 30%, transparent); font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.category-cinematic-hero .button--light:hover, .category-cinematic-hero .button--light:focus-visible { border-color: rgba(255,255,255,.72); box-shadow: 0 14px 34px color-mix(in srgb, var(--category-accent) 42%, transparent); }
.category-cinematic-hero__count { display: block; min-height: 1.2em; margin-top: 18px; color: rgba(255,255,255,.66); font-size: .88rem; line-height: 1.4; }
.category-page__body { padding-top: 0; }
.packs-page, .open-code-page { padding-top: 0; }
.packs-catalog, .open-code-catalog { margin-top: 0; border-top: 0; padding-top: 0; }

@media (max-width: 800px) {
  .category-cinematic-hero { height: 500px; min-height: 500px; margin-top: 1.5rem; margin-bottom: 3rem; border-radius: 20px; }
  .category-cinematic-hero__content { padding: 40px 30px; }
  .category-cinematic-hero__content .breadcrumbs { margin-bottom: 34px; }
  .category-cinematic-hero__description { font-size: .98rem; }
}
@media (max-width: 520px) {
  .category-cinematic-hero { height: 500px; min-height: 500px; margin-top: 1.25rem; margin-bottom: 2.75rem; border-radius: 18px; }
  .category-cinematic-hero__content { padding: 32px 24px; }
  .category-cinematic-hero__content .breadcrumbs { margin-bottom: 28px; }
  .category-cinematic-hero h1 { max-width: 330px; font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .category-cinematic-hero__description { margin-top: 18px; margin-bottom: 24px; font-size: .94rem; }
  .category-cinematic-hero .button--light { min-height: 48px; padding-inline: 20px; }
  .category-cinematic-hero__count { margin-top: 14px; font-size: .78rem; }
}

/* Admin product operations */
.admin-section-count{font-size:.7em;color:#718099;font-weight:500}.admin-product-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto;align-items:end;gap:12px;margin:0 0 18px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfcfe}.admin-filter{display:grid;gap:6px;color:#41516a;font-size:.8rem;font-weight:600}.admin-filter input,.admin-filter select,.admin-pagination select{width:100%;border:1px solid #d8e0eb;border-radius:9px;padding:10px 11px;color:#172b4d;background:#fff;font:inherit;font-weight:400}.admin-filter--search{min-width:0}.admin-filter-clear{white-space:nowrap}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5;color:#66758c;font-size:.86rem}.admin-pagination>label{display:flex;align-items:center;gap:8px;white-space:nowrap}.admin-pagination select{width:auto;padding:7px 9px}.admin-pagination__actions{display:flex;align-items:center;gap:10px}.admin-pagination__actions strong{color:#304361;font-size:.8rem;white-space:nowrap}.admin-empty{display:grid;gap:6px;padding:42px;text-align:center;color:#66758c}.admin-empty strong{color:#304361}.admin-empty span{font-size:.88rem}@media(max-width:900px){.admin-product-filters{grid-template-columns:1fr 1fr}.admin-filter--search{grid-column:1/-1}.admin-filter-clear{justify-self:start}.admin-pagination{align-items:flex-start;flex-wrap:wrap}.admin-pagination__actions{margin-left:auto}}@media(max-width:560px){.admin-product-filters{grid-template-columns:1fr}.admin-filter--search{grid-column:auto}.admin-pagination{display:grid;grid-template-columns:1fr}.admin-pagination__actions{margin-left:0;justify-content:space-between}}

@media (max-width: 1050px) {
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .library-page { padding: 1.65rem 0 4rem; }.library-page__hero { align-items: flex-start; flex-direction: column; gap: 1.3rem; margin-bottom: 2rem; padding-bottom: 1.75rem; }.library-page__hero h1 { font-size: 2.45rem; }.library-page__hero p:not(.section-kicker) { font-size: .84rem; }.library-page__browse { width: 100%; }.library-grid { grid-template-columns: 1fr; gap: .85rem; }.library-card__cover { height: 12rem; }.library-card__body { padding: 1.05rem; }.library-card__footer { align-items: flex-start; flex-direction: column; }.library-card__actions { width: 100%; justify-items: start; }.library-card__download { min-height: 2.55rem; }.library-empty, .library-status { padding: 1.5rem; }.library-status { min-height: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .library-card__cover img, .library-status > span { animation: none; transition: none; }
}

/* Phase 1 account center: purchases are the first functional section. */
.account-center { min-height: calc(100dvh - 4.8rem); padding: 4.2rem 0 6rem; background: linear-gradient(180deg, #fbfcfe 0%, #fff 42%); }
.account-center__hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.account-center__hero h1 { margin: .35rem 0 .65rem; color: #303844; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.account-center__hero p:not(.section-kicker) { max-width: 35rem; margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.65; }
.account-center__layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.account-center__sidebar { position: sticky; top: 6rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; box-shadow: 0 10px 30px rgba(39,61,88,.04); }
.account-center__sidebar-label { margin: 0 0 .8rem; color: #9aa4af; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.account-center__nav { display: grid; gap: .25rem; }
.account-center__nav a, .account-center__disabled { display: grid; gap: .18rem; padding: .75rem .7rem; border-radius: .55rem; color: #687585; font-size: .72rem; font-weight: 700; text-decoration: none; }
.account-center__nav a:hover, .account-center__nav a:focus-visible, .account-center__nav a.is-active { background: #f1f7ff; color: var(--brand); }
.account-center__disabled { color: #9aa4ae; cursor: not-allowed; }
.account-center__disabled small { color: #b1bac4; font-size: .6rem; font-weight: 500; }
.account-center__main { min-width: 0; }
.purchase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.purchase-card { overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: #fff; box-shadow: 0 8px 24px rgba(39,61,88,.035); }
.purchase-card__cover { display: grid; height: 10.5rem; place-items: center; overflow: hidden; background: #f5f8fc; }
.purchase-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.purchase-card__cover-fallback { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #eef5ff, #f9fbff); color: #7d9bc5; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.purchase-card__body { display: grid; gap: .55rem; padding: 1rem 1.05rem 1.1rem; }
.purchase-card__eyebrow { margin: 0; color: #99a4b0; font-size: .58rem; font-weight: 800; letter-spacing: .09em; }
.purchase-card h2 { min-height: 2.5em; margin: 0; color: #394451; font-size: .93rem; line-height: 1.3; }
.purchase-card h2 a { color: inherit; text-decoration: none; }
.purchase-card h2 a:hover { color: var(--brand); }
.purchase-card__date { margin: 0; color: #8994a1; font-size: .68rem; }
.purchase-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .25rem; padding-top: .75rem; border-top: 1px solid #f0f2f5; }
.purchase-card__meta strong { color: var(--brand); font-size: .95rem; }
.purchase-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .2rem; }
.purchase-card__footer .button { min-height: 2.35rem; padding-inline: .7rem; font-size: .62rem; }
.purchase-card__access-label, .purchase-access-state { color: #768392; font-size: .63rem; font-weight: 600; text-align: right; }
.purchase-detail { max-width: 54rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 10px 30px rgba(39,61,88,.04); }
.purchase-detail__intro { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid #eef1f5; }
.purchase-detail__cover { flex: 0 0 7rem; width: 7rem; height: 5.4rem; overflow: hidden; border-radius: .65rem; background: #f5f8fc; }
.purchase-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.purchase-detail__intro h2 { margin: .2rem 0 .35rem; color: #394451; font-size: 1.25rem; }
.purchase-detail__intro p:not(.purchase-card__eyebrow) { margin: 0; color: #84909c; font-size: .72rem; }
.purchase-detail__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.purchase-detail__facts div { padding: .75rem; border-radius: .65rem; background: #f8fafc; }
.purchase-detail__facts dt { color: #909aa6; font-size: .6rem; font-weight: 700; }
.purchase-detail__facts dd { margin: .25rem 0 0; color: #46525f; font-size: .75rem; font-weight: 700; }
.purchase-detail__delivery { display: grid; gap: .45rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid #dceafb; border-radius: .75rem; background: #f7fbff; }
.purchase-detail__delivery h3 { margin: 0; color: #3d4c5b; font-size: .95rem; }
.purchase-detail__delivery p:not(.section-kicker) { margin: 0; color: #718092; font-size: .72rem; line-height: 1.55; }
.purchase-detail__delivery small { color: #718092; font-size: .64rem; line-height: 1.45; }
.purchase-detail__delivery .button { justify-self: start; margin-top: .35rem; }
.purchase-detail > .button { margin-top: .35rem; }
@media (max-width: 900px) {
  .account-center__layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .account-center__sidebar { position: static; }
  .account-center__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-center__nav a, .account-center__disabled { min-height: 3.3rem; align-content: center; }
}
@media (max-width: 760px) {
  .account-center { padding: 2.2rem 0 4rem; }
  .account-center__hero { align-items: flex-start; flex-direction: column; gap: 1.1rem; margin-bottom: 1.5rem; }
  .account-center__hero h1 { font-size: 2.45rem; }
  .account-center__hero .button { width: 100%; }
  .purchase-list { grid-template-columns: 1fr; }
  .purchase-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .account-center__nav { grid-template-columns: 1fr; }
  .account-center__nav a, .account-center__disabled { min-height: 0; }
  .purchase-card__cover { height: 12rem; }
  .purchase-detail__intro { align-items: flex-start; flex-direction: column; }
  .purchase-detail__cover { width: 100%; height: 10rem; flex-basis: auto; }
  .purchase-detail__facts { grid-template-columns: 1fr; }
}

/* Keep category pages on the same hero-to-catalog rhythm after legacy page
   sections are declared below. */
.packs-page, .open-code-page { padding-top: 0; }
.packs-catalog, .open-code-catalog { margin-top: 0; border-top: 0; padding-top: 0; }

/* Secure product delivery action. */
.library-card__actions { display: grid; justify-items: end; gap: .38rem; }
.library-card__download { min-height: 2.1rem; padding: 0 .7rem; border: 1px solid rgba(22,119,244,.24); border-radius: .55rem; background: #f7fbff; color: var(--brand); cursor: pointer; font: inherit; font-size: .62rem; font-weight: 700; }
.library-card__download:hover { background: #edf6ff; }
.library-card__download:disabled { cursor: wait; opacity: .62; }
.library-card__download-status { min-height: .85rem; max-width: 13rem; color: #778492; font-size: .57rem; line-height: 1.3; text-align: right; }
.library-card__external-delivery { display: grid; justify-items: end; gap: .38rem; max-width: 15rem; text-align: right; }
.library-card__external-delivery .button { min-height: 2.1rem; padding: .55rem .72rem; font-size: .62rem; }
.library-card__external-delivery small { color: #778492; font-size: .57rem; line-height: 1.35; }
@media (max-width: 760px) {
  .library-card__footer { align-items: flex-start; flex-direction: column; }
  .library-card__actions { width: 100%; justify-items: start; }
  .library-card__download { min-height: 2.55rem; }
  .library-card__download-status { text-align: left; }
  .library-card__external-delivery { justify-items: start; max-width: none; text-align: left; }
}

/* Packs — materiais autorais que conectam o catálogo gratuito a um fluxo de execução. */
.category-card--packs .category-card__image { object-position: center; }
.marketplace-section--packs { position: relative; }
.packs-shelf-loading { min-height: 14rem; display: grid; place-items: center; color: var(--muted); font-size: .86rem; }
.product-card--pack .product-card__preview { background: #f3f7ff; }
.product-card--motion-featured { border-color: #8ab8f6; box-shadow: 0 18px 42px rgba(37, 110, 234, .14); }
.product-card--motion-featured .product-card__preview { background: linear-gradient(135deg, #edf5ff, #f9fbff); }
.pack-cover { --pack-main: #216eea; --pack-deep: #102c63; position: relative; display: flex; isolation: isolate; width: 100%; height: 100%; min-height: 11.7rem; overflow: hidden; align-items: flex-end; padding: 1rem; color: white; background: linear-gradient(135deg, #f3f7ff 0%, #e7effd 100%); }
.pack-cover--azul { --pack-main: #216eea; --pack-deep: #102c63; }
.pack-cover--violeta { --pack-main: #6955d7; --pack-deep: #292160; }
.pack-cover--petroleo { --pack-main: #147f91; --pack-deep: #123744; }
.pack-cover--cobalto { --pack-main: #2454bd; --pack-deep: #10255d; }
.pack-cover--indigo { --pack-main: #4d5dc9; --pack-deep: #202867; }
.pack-cover--grafite { --pack-main: #356c9e; --pack-deep: #183349; }
.pack-cover__grid { position: absolute; z-index: -2; inset: 0; opacity: .72; background-image: linear-gradient(90deg, rgba(33,110,234,.09) 1px, transparent 1px), linear-gradient(rgba(33,110,234,.09) 1px, transparent 1px); background-size: 23px 23px; }
.pack-cover__stack { position: absolute; z-index: -1; top: 15%; right: 7%; width: 56%; height: 68%; transform: rotate(-11deg); }
.pack-cover__stack i { position: absolute; display: block; width: 100%; height: 72%; border: 1px solid rgba(255,255,255,.58); border-radius: 1rem; background: linear-gradient(135deg, var(--pack-main), var(--pack-deep)); box-shadow: 0 16px 34px rgba(15,43,99,.2); }
.pack-cover__stack i:nth-child(1) { inset: 18% 0 0 10%; opacity: .32; }
.pack-cover__stack i:nth-child(2) { inset: 9% 6% 0 4%; opacity: .58; }
.pack-cover__stack i:nth-child(3) { inset: 0 12% 0 0; }
.pack-cover__label { position: absolute; top: .85rem; left: .95rem; display: flex; align-items: center; gap: .46rem; color: #2f68bd; font-size: .5rem; font-weight: 700; letter-spacing: .1em; }
.pack-cover__label strong { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: .45rem; background: var(--pack-deep); color: white; font-size: .64rem; letter-spacing: 0; }
.pack-cover__name { position: relative; max-width: 67%; font-size: .82rem; font-weight: 700; color: var(--pack-deep); line-height: 1.18; }
.pack-cover--custom { background: #eef3fb; }
.pack-cover__media-frame { position: absolute; z-index: 0; inset: 0; }
.pack-cover__image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack-cover__fallback { position: absolute; z-index: 1; inset: 0; }
.pack-cover__fallback .pack-cover__grid, .pack-cover__fallback .pack-cover__stack, .pack-cover__fallback .pack-cover__label, .pack-cover__fallback .pack-cover__name { position: absolute; }
.pack-cover--wide { min-height: 19rem; padding: 1.55rem; }
.pack-cover--wide .pack-cover__label { top: 1.45rem; left: 1.45rem; font-size: .6rem; }
.pack-cover--wide .pack-cover__label strong { width: 2.6rem; height: 2.6rem; font-size: .9rem; }
.pack-cover--wide .pack-cover__name { font-size: 1.55rem; max-width: 58%; }
.packs-page { padding: 2.5rem 0 6.4rem; }
.packs-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: 4rem; align-items: center; padding: 2rem 0 4.4rem; }
.packs-hero h1, .pack-detail h1 { margin: .45rem 0 .95rem; color: var(--ink); font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.055em; }
.packs-hero > div > p:not(.section-kicker) { max-width: 41rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.packs-hero__visual { min-height: 17rem; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 22px 55px rgba(18, 55, 111, .09); }
.packs-search { display: flex; max-width: 40rem; gap: .55rem; margin-top: 1.55rem; padding: .4rem; border: 1px solid var(--line); border-radius: .8rem; background: #f7f8fa; }
.packs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .65rem .8rem; color: var(--ink); font: inherit; font-size: .82rem; }
.packs-catalog { border-top: 1px solid var(--line); padding-top: 3rem; }
.packs-catalog__heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.packs-catalog__heading h2 { margin: .35rem 0 0; color: var(--ink); font-size: 1.7rem; letter-spacing: -.04em; }
.packs-catalog__heading > p { max-width: 29rem; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; text-align: right; }
.packs-catalog__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.2rem 0 1rem; }
.packs-filter { border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem; background: white; color: var(--muted); cursor: pointer; font: inherit; font-size: .7rem; font-weight: 600; }
.packs-filter:hover, .packs-filter.is-active { border-color: #b5cff6; background: #eaf2ff; color: #1760c6; }
.packs-catalog__count { margin: 0 0 1.05rem; color: var(--muted); font-size: .75rem; }
.packs-catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.packs-catalog__grid .product-card { width: auto; }
.pack-detail__hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(20rem, .97fr); gap: 3.5rem; align-items: center; padding: .7rem 0 4.1rem; border-bottom: 1px solid var(--line); }
.pack-detail__cover { overflow: hidden; border: 1px solid #dbe6f8; border-radius: 1.1rem; box-shadow: 0 20px 50px rgba(27,64,121,.11); min-height: 22rem; }
.pack-detail__summary h2 { margin: 0 0 .95rem; color: #1e5fca; font-size: 1.1rem; line-height: 1.35; letter-spacing: -.025em; }
.pack-detail__summary > p { margin: 0; color: var(--muted); line-height: 1.75; font-size: .91rem; }
.pack-detail__title { display: flex; gap: .7rem; align-items: flex-start; }
.pack-detail__title h1 { flex: 1; }
.pack-detail__facts { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.25rem 0; }
.pack-detail__facts span { border: 1px solid var(--line); border-radius: 999px; padding: .38rem .62rem; color: var(--muted); font-size: .67rem; font-weight: 600; }
.pack-detail__purchase { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pack-detail__purchase strong { display: block; color: var(--ink); font-size: 1.65rem; letter-spacing: -.04em; }
.pack-detail__purchase small { display: block; max-width: 13rem; margin-top: .3rem; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.pack-detail__purchase .button { min-height: 3.15rem; white-space: nowrap; }
.pack-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 3.8rem; align-items: start; padding-top: 3.4rem; }
.pack-detail__aside { position: sticky; top: 1.5rem; display: grid; gap: .8rem; }
.pack-resources-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pack-resource-card { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .72rem; min-height: 7.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.pack-resource-card__icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .52rem; background: #eaf2ff; color: #1760c6; font-style: normal; font-size: .68rem; font-weight: 700; }
.pack-resource-card > span, .pack-linked-list span, .pack-cross-sell__card > div > span { color: #1760c6; font-size: .61rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pack-resource-card h3 { margin: .32rem 0 .32rem; color: var(--ink); font-size: .84rem; line-height: 1.28; }
.pack-resource-card p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.pack-bundle-summary { margin-top: 3.4rem; }
.pack-bundle-summary__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.pack-bundle-summary__grid a { display: grid; gap: .28rem; padding: .9rem; border: 1px solid var(--line); border-radius: .72rem; background: #fff; color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.pack-bundle-summary__grid a:hover { border-color: #9ec0f4; transform: translateY(-1px); }
.pack-bundle-summary__grid span { color: #1760c6; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pack-bundle-summary__grid strong { color: var(--ink); font-size: .8rem; }
.pack-bundle-summary__grid small { color: var(--muted); font-size: .67rem; line-height: 1.42; }
.pack-bundle-summary__grid b { margin-top: .15rem; color: #1760c6; font-size: .68rem; }
.pack-bundle-summary__saving { margin: .85rem 0 0; color: var(--muted); font-size: .72rem; }
.pack-bundle-summary__saving b { color: #1760c6; }
.pack-how-to ol { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.pack-how-to li { display: grid; grid-template-columns: 2.2rem minmax(0,1fr); gap: .85rem; }
.pack-how-to li > b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #eaf2ff; color: #1760c6; font-size: .62rem; }
.pack-how-to strong { display: block; color: var(--ink); font-size: .82rem; }
.pack-how-to p { margin: .2rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.pack-how-to > span { display: inline-block; margin-top: 1.2rem; color: var(--muted); font-size: .68rem; }
.pack-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.8rem; }
.pack-outcomes h3 { margin: 0 0 .65rem; color: var(--ink); font-size: .85rem; }
.pack-outcomes ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pack-outcomes li { position: relative; padding-left: 1rem; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.pack-outcomes li::before { content: "✓"; position: absolute; left: 0; color: #1760c6; font-weight: 700; }
.pack-linked-list { display: grid; gap: .7rem; }
.pack-linked-list a { display: grid; gap: .3rem; padding: .95rem; border: 1px solid var(--line); border-radius: .7rem; color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.pack-linked-list a:hover { border-color: #9ec0f4; transform: translateY(-1px); }
.pack-linked-list strong { color: var(--ink); font-size: .86rem; }
.pack-linked-list small { color: var(--muted); font-size: .71rem; line-height: 1.5; }
.pack-linked-list b { margin-top: .15rem; color: #1760c6; font-size: .64rem; }
/* Inline action arrows must keep their icon-sized contract. Without an
   explicit size, the global SVG display rule lets grid/flex parents stretch
   the 24px viewBox into a full-width card decoration. */
.detail-shell b > svg { display: inline-block; flex: 0 0 .8rem; width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12rem; }
.pack-transparency .detail-card { border-color: #cde0fb; background: #f8fbff; }
.pack-transparency p { margin: 0; color: #46617d; font-size: .8rem; line-height: 1.7; }

/* Phase 7 — shared content breathing room. These cards previously relied on
   their children for spacing, leaving section borders flush against content.
   The media layer remains clipped; only the foreground content gets a
   measured, responsive inset. */
.detail-shell:not([data-detail-type="promotion"]) .pack-how-to,
.detail-shell:not([data-detail-type="promotion"]) .pack-outcomes,
.detail-shell:not([data-detail-type="promotion"]) .pack-transparency .detail-card,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__included > .detail-card {
  padding: clamp(1.25rem, 1.8vw, 1.5rem);
}
.detail-shell:not([data-detail-type="promotion"]) .pack-how-to ol { gap: 1.15rem; }
.detail-shell:not([data-detail-type="promotion"]) .pack-how-to li { gap: 1rem; }
.detail-shell:not([data-detail-type="promotion"]) .pack-how-to > span { margin-top: 1.35rem; }
.detail-shell:not([data-detail-type="promotion"]) .pack-linked-list a { padding: 1.05rem 1.1rem; }
.detail-shell:not([data-detail-type="promotion"]) .pack-bundle-summary__grid a { padding: 1.05rem 1.1rem; }
.detail-shell:not([data-detail-type="promotion"]) .pack-cross-sell__card > div { padding-top: 1.15rem; padding-right: 1.25rem; padding-bottom: 1.15rem; }
.detail-shell:not([data-detail-type="promotion"]) .skill-pack-offer__items a { padding: 1rem; }
.detail-shell:not([data-detail-type="promotion"]) .open-code-expansion__items a > div:last-child { padding-top: 1rem; padding-right: 1rem; padding-bottom: 1rem; }

.pack-cross-sell { margin-top: 4.8rem; }
.pack-cross-sell__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.pack-cross-sell__card { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: .9rem; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; color: inherit; text-decoration: none; background: #fff; transition: border-color .18s ease, transform .18s ease; }
.pack-cross-sell__card:hover { border-color: #9ec0f4; transform: translateY(-2px); }
.pack-cross-sell__card .pack-cover { min-height: 100%; padding: .7rem; }
.pack-cross-sell__card .pack-cover__label { top: .6rem; left: .6rem; transform: scale(.8); transform-origin: top left; }
.pack-cross-sell__card .pack-cover__name { max-width: 90%; font-size: .62rem; }
.pack-cross-sell__card > div { padding: .9rem .9rem .9rem 0; }
.pack-cross-sell__card h3 { margin: .35rem 0; color: var(--ink); font-size: .86rem; line-height: 1.26; }
.pack-cross-sell__card p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.48; }
.pack-cross-sell__card b { display: block; margin-top: .55rem; color: #1760c6; font-size: .64rem; }
.skill-pack-offer, .open-code-expansion { display: grid; grid-template-columns: minmax(0, .95fr) minmax(17rem, 1.05fr); gap: 2rem; margin: 3rem 0; padding: 1.6rem; border: 1px solid #cfe0f9; border-radius: 1rem; background: linear-gradient(135deg, #f7fbff, #fff); }
.skill-pack-offer h2, .open-code-expansion h2 { margin: .35rem 0 .55rem; color: var(--ink); font-size: 1.35rem; letter-spacing: -.035em; }
.skill-pack-offer > div > p:not(.section-kicker), .open-code-expansion > div > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.skill-pack-offer__items, .open-code-expansion__items { display: grid; gap: .7rem; }
.skill-pack-offer__items a { display: grid; gap: .28rem; padding: .9rem; border: 1px solid #d9e6f8; border-radius: .75rem; background: white; color: inherit; text-decoration: none; }
.skill-pack-offer__items strong { color: var(--ink); font-size: .86rem; }
.skill-pack-offer__items small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.skill-pack-offer__items b, .open-code-expansion__items b { color: #1760c6; font-size: .64rem; }
.open-code-expansion__items a { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: .8rem; overflow: hidden; border: 1px solid #d9e6f8; border-radius: .75rem; background: white; color: inherit; text-decoration: none; }
.open-code-expansion__items .pack-cover { min-height: 100%; padding: .5rem; }
.open-code-expansion__items .pack-cover__label { display: none; }
.open-code-expansion__items .pack-cover__name { max-width: 100%; font-size: .55rem; }
.open-code-expansion__items a > div:last-child { padding: .75rem .75rem .75rem 0; }
.open-code-expansion__items h3 { margin: .25rem 0; color: var(--ink); font-size: .83rem; }
.open-code-expansion__items p { margin: 0 0 .35rem; color: var(--muted); font-size: .68rem; line-height: 1.42; }

@media (max-width: 880px) {
  .packs-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-detail__layout { grid-template-columns: 1fr; }
  .pack-detail__aside { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .packs-page { padding: 1.5rem 0 4rem; }
  .packs-hero, .pack-detail__hero, .skill-pack-offer, .open-code-expansion { grid-template-columns: 1fr; gap: 1.25rem; }
  .packs-hero { padding: .4rem 0 2.6rem; }
  .packs-hero__visual { min-height: 13.5rem; }
  .packs-search { flex-direction: column; padding: .5rem; }
  .packs-search input { min-height: 2.75rem; }
  .packs-search .button { width: 100%; }
  .packs-catalog { padding-top: 2.3rem; }
  .packs-catalog__heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .packs-catalog__heading > p { text-align: left; }
  .packs-catalog__grid { grid-template-columns: 1fr; }
  .pack-detail__hero { padding-bottom: 2.5rem; }
  .pack-detail__cover { min-height: 16rem; }
  .pack-detail__purchase { align-items: stretch; flex-direction: column; }
  .pack-detail__purchase .button { width: 100%; }
  .pack-detail__layout { gap: 1.5rem; padding-top: 2.3rem; }
  .pack-detail__aside { grid-template-columns: 1fr; }
  .pack-resources-grid, .pack-outcomes, .pack-cross-sell__grid, .pack-bundle-summary__grid { grid-template-columns: 1fr; }
  .pack-cross-sell__card { grid-template-columns: 7rem minmax(0,1fr); }
  .skill-pack-offer, .open-code-expansion { margin: 2.1rem 0; padding: 1.15rem; }
  .open-code-expansion__items a { grid-template-columns: 5.5rem minmax(0,1fr); }
}

@media (max-width: 760px) {
  .detail-shell:not([data-detail-type="promotion"]) .pack-how-to,
  .detail-shell:not([data-detail-type="promotion"]) .pack-outcomes,
  .detail-shell:not([data-detail-type="promotion"]) .pack-transparency .detail-card,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__included > .detail-card { padding: 1rem; }
  .detail-shell:not([data-detail-type="promotion"]) .pack-linked-list a,
  .detail-shell:not([data-detail-type="promotion"]) .pack-bundle-summary__grid a,
  .detail-shell:not([data-detail-type="promotion"]) .skill-pack-offer__items a { padding: 1rem; }
  .detail-shell:not([data-detail-type="promotion"]) .pack-cross-sell__card > div,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-expansion__items a > div:last-child { padding-right: 1rem; }
}

/* Open Code — catálogo público de projetos */
.category-card--open-code { background: #152336; }
.category-card--open-code::after { background: linear-gradient(180deg, transparent 30%, rgba(10, 24, 42, .88)); }
.product-card--open-code .product-card__preview { background: #f4f7fb; }
.product-card--open-code .product-cover { object-fit: contain; padding: 1rem; }
.product-card--open-code:hover { border-color: rgba(66, 139, 224, .38); }
.open-code-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; padding: 1rem; background: linear-gradient(135deg, #16253a, #31547a); color: #fff; }
.open-code-cover-fallback span { color: #9ed0ff; font: 700 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.open-code-cover-fallback b { max-width: 100%; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.open-code-cover-fallback small { color: #bad5ee; font-size: .56rem; }
.open-code-card__owner { margin: -.2rem 0 .55rem; overflow: hidden; color: #8a96a5; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.open-code-shelf-loading { display: flex; min-height: 8.7rem; align-items: center; justify-content: center; min-width: 100%; border: 1px dashed #d9e0e8; border-radius: .78rem; color: #8995a3; font-size: .72rem; }

.open-code-page { min-height: 54vh; padding: 2.55rem 0 5.8rem; }
.open-code-hero { max-width: 54rem; padding: 1.05rem 0 3.25rem; border-bottom: 1px solid var(--line); }
.open-code-hero h1, .open-code-detail h1 { margin: 0; color: #30343b; font-size: clamp(2.05rem, 4vw, 3.35rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.03; }
.open-code-hero > p:not(.section-kicker) { max-width: 43rem; margin: 1rem 0 0; color: #697582; font-size: .92rem; line-height: 1.7; }
.open-code-search { display: flex; align-items: center; gap: .7rem; max-width: 44rem; margin-top: 1.7rem; padding: .4rem .45rem .4rem .9rem; border: 1px solid #e2e7ee; border-radius: .78rem; background: #fafbfd; }
.open-code-search svg { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; fill: none; stroke: #a1acb8; stroke-width: 1.7; stroke-linecap: round; }
.open-code-search input { flex: 1; min-width: 0; height: 2.45rem; border: 0; outline: 0; background: transparent; color: #3d4650; font: inherit; font-size: .76rem; }
.open-code-search input::placeholder { color: #a0a9b4; }
.open-code-search .button { min-height: 2.45rem; padding-inline: 1rem; font-size: .65rem; }
.open-code-catalog { padding-top: 3.25rem; }
.open-code-catalog__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.open-code-catalog__heading > p { max-width: 22rem; margin: 0; color: #7f8995; font-size: .74rem; line-height: 1.55; text-align: right; }
.open-code-catalog__summary { display: flex; align-items: center; min-height: 2.25rem; margin-top: 1.35rem; }
.open-code-catalog__summary p { margin: 0; color: #64707d; font-size: .72rem; font-weight: 600; }
.open-code-catalog__notice { margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid #e7eaf0; border-radius: .6rem; background: #fafbfc; color: #77818d; font-size: .7rem; line-height: 1.55; }
.open-code-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.open-code-filter { min-height: 2rem; padding: .35rem .7rem; border: 1px solid #e0e6ee; border-radius: 999px; background: #fff; color: #6f7b88; cursor: pointer; font: 600 .64rem/1 Poppins, sans-serif; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.open-code-filter:hover, .open-code-filter.is-active { border-color: var(--brand); background: var(--brand-pale); color: var(--brand); }
.open-code-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.open-code-detail__hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: 1.1rem 0 3.2rem; border-bottom: 1px solid var(--line); }
.open-code-detail__media { min-width: 0; }
.open-code-detail__gallery { display: grid; gap: .7rem; }
.open-code-detail__visual { position: relative; min-height: 20rem; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .9rem; background: #f4f7fb; box-shadow: 0 14px 34px rgba(36,55,77,.07); }
.open-code-detail__media-frame { width: 100%; min-height: inherit; }
.open-code-detail__image { display: block; width: 100%; max-height: 32rem; object-fit: contain; padding: 1rem; }
.open-code-detail__fallback { position: absolute; inset: 0; }
.open-code-detail__visual.is-empty { background: #f1f5fa; }
.open-code-detail__visual-empty { display: grid; place-items: center; gap: .5rem; color: #8998a9; text-align: center; }
.open-code-detail__visual-empty span { color: #4b8bd3; font: 700 2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.open-code-detail__visual-empty p { margin: 0; font-size: .72rem; }
.open-code-detail__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.open-code-detail__thumb { position: relative; min-height: 4.3rem; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: .55rem; background: #f4f7fb; cursor: pointer; }
.open-code-detail__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-pale); }
.open-code-detail__thumb-media-frame { position: absolute; inset: 0; }
.open-code-detail__thumb-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.open-code-detail__thumb-fallback { position: absolute; inset: 0; min-height: 0; padding: .45rem; }
.open-code-detail__summary { min-width: 0; padding-top: .25rem; }
.open-code-detail__badges { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: .8rem; }
.open-code-detail__badges span { padding: .25rem .42rem; border: 1px solid #dbe6f2; border-radius: .28rem; background: #f7fbff; color: #5d86b0; font-size: .55rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.open-code-detail__badges span:nth-child(2) { border-color: #b8e3d7; background: #f3fcf9; color: #2a9a7a; }
.open-code-detail__summary h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.open-code-detail__summary > p { max-width: 38rem; margin: 1rem 0 0; color: #697582; font-size: .92rem; line-height: 1.7; }
.open-code-detail__author { display: flex; align-items: center; gap: .55rem; margin-top: 1.2rem; color: #7b8794; font-size: .7rem; }
.open-code-detail__author img, .open-code-detail__author > span:first-child, .open-code-detail__avatar-frame { display: grid; place-items: center; flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #edf4fb; color: #4d88c4; font: 700 .65rem ui-monospace, monospace; }
.open-code-detail__avatar-image { width: 100%; height: 100%; object-fit: cover; }
.open-code-detail__avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.open-code-detail__author b { color: #434d58; }
.open-code-detail__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.open-code-detail__actions .button { min-height: 3.1rem; }
.open-code-clone { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.15rem; padding: .75rem .85rem; border: 1px solid #e1e7ee; border-radius: .62rem; background: #fbfcfd; }
.open-code-clone > div { min-width: 0; }
.open-code-clone span { display: block; margin-bottom: .3rem; color: #929daa; font-size: .54rem; font-weight: 700; letter-spacing: .08em; }
.open-code-clone code { display: block; overflow: hidden; color: #3d5269; font: .68rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.open-code-clone button { flex: 0 0 auto; padding: .42rem .55rem; border: 1px solid #d8e1ea; border-radius: .35rem; background: #fff; color: #4f7fae; cursor: pointer; font: 700 .52rem Poppins, sans-serif; letter-spacing: .035em; }
.open-code-status { display: grid; gap: .25rem; margin-top: .9rem; padding: .8rem .85rem; border-left: 3px solid #e7a93b; background: #fffbf3; }
.open-code-status p { margin: 0; color: #a1762d; font-size: .53rem; font-weight: 700; letter-spacing: .08em; }
.open-code-status strong { color: #5c4a2c; font-size: .74rem; }
.open-code-status span { color: #806f52; font-size: .68rem; line-height: 1.55; }
.open-code-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .3fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.open-code-detail__layout > main { min-width: 0; }
.open-code-detail__aside { position: sticky; top: 5.85rem; display: grid; gap: .9rem; padding-top: 3.9rem; }
.open-code-detail__aside .trust-card { text-align: left; }
.open-code-detail__aside .trust-card__icon { margin-left: 0; }
.open-code-detail__metrics h2 { margin-bottom: .85rem; }
.open-code-detail__metrics dl { display: grid; gap: .55rem; margin: 0; }
.open-code-detail__metrics dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.open-code-detail__metrics dt { color: #8b96a2; font-size: .62rem; }
.open-code-detail__metrics dd { margin: 0; color: #465360; font-size: .72rem; font-weight: 700; text-align: right; }
.open-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; margin: 0; padding: 1rem 1.2rem 1rem 2rem; color: #5e6c7a; font-size: .75rem; line-height: 1.55; }
.open-code-install__list { display: grid; gap: .7rem; }
.open-code-install__list article { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; align-items: start; padding: .9rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.open-code-install__list article > span { color: #abc1d8; font-size: 1rem; font-weight: 700; }
.open-code-install__list h3 { margin: .1rem 0 .55rem; color: #4c5967; font-size: .75rem; }
.open-code-install__list pre { max-height: 22rem; margin: 0; padding: .8rem; overflow: auto; border-radius: .45rem; background: #1f252d; color: #e6edf5; font: .67rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.open-code-documentation pre { max-height: 30rem; margin: 0; padding: 1rem; overflow: auto; background: #1f252d; color: #e7edf5; font: .69rem/1.62 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.open-code-doc-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem .85rem; border-bottom: 1px solid #35404c; background: #262e37; }
.open-code-doc-tab { padding: .42rem .6rem; border: 1px solid transparent; border-radius: .32rem; background: transparent; color: #aebbc8; cursor: pointer; font: 600 .61rem Poppins, sans-serif; }
.open-code-doc-tab.is-active, .open-code-doc-tab:hover { border-color: #60778f; background: #354454; color: #fff; }
.open-code-documentation__note { margin: .8rem 1rem 0; padding-bottom: .9rem; color: #7d8995; font-size: .67rem; line-height: 1.55; }
.open-code-license { display: grid; gap: .6rem; padding: 1rem 1.1rem; color: #65727f; font-size: .76rem; line-height: 1.6; }
.open-code-license p { margin: 0; }
.open-code-license a, .open-code-official-links a { color: var(--brand); font-weight: 600; }
.open-code-official-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: 1rem 1.1rem; }
.open-code-official-links a { font-size: .74rem; }
.open-code-related { margin-top: 5.6rem; }
.open-code-cross-sell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 5.5rem; padding: 2rem 2.1rem; border: 1px solid #dce7f2; border-radius: .9rem; background: linear-gradient(135deg, #f8fbff, #f3f8fc); }
.open-code-cross-sell h2 { margin: 0; color: #374657; font-size: 1.25rem; letter-spacing: -.04em; }
.open-code-cross-sell p:last-child { max-width: 35rem; margin: .5rem 0 0; color: #74818f; font-size: .75rem; line-height: 1.6; }
.open-code-cross-sell .button { flex: 0 0 auto; }

@media (max-width: 1050px) {
  .open-code-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .open-code-detail__hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); gap: 2rem; }
}

@media (max-width: 880px) {
  .open-code-detail__layout { grid-template-columns: 1fr; }
  .open-code-detail__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
}

@media (max-width: 760px) {
  .open-code-page { padding: 1.5rem 0 3.8rem; }
  .open-code-hero { padding-top: .4rem; padding-bottom: 2.35rem; }
  .open-code-hero h1, .open-code-detail h1 { font-size: 2.15rem; }
  .open-code-hero > p:not(.section-kicker) { font-size: .85rem; }
  .open-code-search { align-items: stretch; flex-wrap: wrap; padding: .5rem .55rem .55rem .8rem; border-radius: .72rem; }
  .open-code-search svg { margin-top: .75rem; }
  .open-code-search input { min-width: calc(100% - 2rem); height: 2.7rem; }
  .open-code-search .button { width: 100%; }
  .open-code-catalog { padding-top: 2.55rem; }
  .open-code-catalog__heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .open-code-catalog__heading > p { max-width: 30rem; text-align: left; }
  .open-code-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .open-code-grid .product-card__preview { height: 8.8rem; }
  .open-code-detail__hero { grid-template-columns: 1fr; gap: 1.25rem; padding-top: .35rem; padding-bottom: 2.4rem; }
  .open-code-detail__visual { min-height: 12rem; }
  .open-code-detail__summary > p { font-size: .85rem; }
  .open-code-detail__actions { flex-direction: column; }
  .open-code-detail__actions .button { width: 100%; }
  .open-code-detail__aside { grid-template-columns: 1fr; }
  .open-code-detail__aside .trust-card { text-align: center; }
  .open-code-detail__aside .trust-card__icon { margin-inline: auto; }
  .open-code-list { grid-template-columns: 1fr; }
  .open-code-clone { align-items: stretch; flex-direction: column; }
  .open-code-clone button { width: 100%; }
  .open-code-cross-sell { align-items: flex-start; flex-direction: column; gap: 1rem; margin-top: 4.1rem; padding: 1.35rem; }
  .open-code-cross-sell .button { width: 100%; }
  .open-code-related { margin-top: 4.1rem; }
  .open-code-related .product-row { display: grid; grid-auto-columns: minmax(11.5rem, 74vw); grid-auto-flow: column; grid-template-columns: unset; overflow-x: auto; padding: .15rem .05rem .85rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .open-code-related .product-row::-webkit-scrollbar { display: none; }
  .open-code-related .product-card { display: flex; scroll-snap-align: start; }
}

@media (max-width: 410px) {
  .open-code-grid { grid-template-columns: 1fr; }
  .open-code-grid .product-card__preview { height: 10.5rem; }
  .open-code-detail__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Global category card standardization. The SaaS catalog card is the
   canonical geometry for dedicated catalog pages; legacy product-card
   renderers inherit the same media ratio, radius, spacing and text rhythm
   without changing product data or detail-page layouts. */
.packs-catalog__grid .product-card,
.open-code-grid .product-card,
.skills-catalog__grid .product-card {
  border-radius: 16px;
}
.packs-catalog__grid .product-card__preview,
.open-code-grid .product-card__preview,
.skills-catalog__grid .product-card__preview {
  height: auto;
  aspect-ratio: 16 / 9;
}
.packs-catalog__grid .product-card__body,
.open-code-grid .product-card__body,
.skills-catalog__grid .product-card__body {
  padding: 16px;
}
.packs-catalog__grid .product-card__meta,
.open-code-grid .product-card__meta,
.skills-catalog__grid .product-card__meta {
  min-height: 1.05rem;
}
.packs-catalog__grid .product-type,
.open-code-grid .product-type,
.skills-catalog__grid .product-type {
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.packs-catalog__grid .product-title,
.open-code-grid .product-title,
.skills-catalog__grid .product-title {
  min-height: 2.9rem;
  margin: 12px 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}
.packs-catalog__grid .product-description,
.open-code-grid .product-description,
.skills-catalog__grid .product-description {
  min-height: 42px;
  margin: 0 0 18px;
  font-size: .85rem;
  line-height: 1.48;
}
.packs-catalog__grid .product-card__footer,
.open-code-grid .product-card__footer,
.skills-catalog__grid .product-card__footer {
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-size: .78rem;
}
.packs-catalog__grid .product-price,
.open-code-grid .product-price,
.skills-catalog__grid .product-price {
  font-size: .92rem;
}

/* Homepage category shelves share the premium four-card treatment already
   used by Em destaque, while remaining scoped to the homepage only. */
.product-row--homepage-category {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.65rem;
}
.product-row--homepage-category .product-card {
  border-radius: 1rem;
}
.product-row--homepage-category .product-card__preview {
  height: auto;
  aspect-ratio: 16 / 9;
}
.product-row--homepage-category .product-card__body {
  min-height: 9.7rem;
  padding: .92rem 1rem .86rem;
}
.product-row--homepage-category .product-title {
  min-height: 2.45rem;
  font-size: .9rem;
  line-height: 1.32;
}
.product-row--homepage-category .product-description {
  min-height: 2.8rem;
  margin-top: .4rem;
  margin-bottom: .65rem;
  font-size: .71rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}
.product-row--homepage-category .product-open svg {
  width: .78rem;
  height: .78rem;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .product-row--homepage-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .product-row--homepage-category {
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: .15rem 0 .85rem;
  }
  .product-row--homepage-category .product-card__preview {
    aspect-ratio: 16 / 9;
  }
  .packs-catalog__grid .product-card__body,
  .open-code-grid .product-card__body,
  .skills-catalog__grid .product-card__body {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Open Code — seda azul pré-renderizada, com poster estático primeiro */
.open-code-silk { position: absolute; inset: 0; overflow: hidden; background-color: #06152e; background-image: url('/assets/open-code/hero-silk-blue-poster.webp?v=silk-loop-1'), radial-gradient(circle at 50% 42%, #123a73 0, #071a37 42%, #020713 100%); background-position: center; background-size: cover; background-repeat: no-repeat; }
.open-code-silk__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: center center; opacity: .98; }
.open-code-hero--editorial { position: relative; isolation: isolate; display: grid; min-height: clamp(26rem, 42vw, 45rem); max-width: none; margin-inline: calc((var(--container) - 100vw) / 2); padding: 0; overflow: hidden; border: 0; border-radius: 1.15rem; background: #06152e; box-shadow: 0 22px 60px rgba(16, 46, 91, .13); }
.open-code-hero--editorial .open-code-hero__media, .open-code-shelf-hero__media { position: absolute; inset: 0; z-index: 0; }
.open-code-hero--editorial .open-code-silk { background-position: center center; }
.open-code-hero__veil { position: relative; z-index: 1; display: grid; place-items: center; min-height: inherit; padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 6vw, 7rem); background: linear-gradient(90deg, rgba(3, 10, 24, .74), rgba(3, 10, 24, .23) 48%, rgba(3, 10, 24, .52)); }
.open-code-hero__content { width: min(100%, 44rem); margin-inline: auto; color: #fff; text-align: center; }
.open-code-hero__eyebrow { margin: 0 0 .95rem; color: #b9d8ff; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.open-code-hero__content h1 { max-width: 38rem; margin: 0 auto; color: #fff; font-size: clamp(2.1rem, 5.2vw, 4.8rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.01; }
.open-code-hero__content > p:not(.open-code-hero__eyebrow) { max-width: 36rem; margin: 1rem auto 0; color: rgba(237, 246, 255, .83); font-size: clamp(.82rem, 1.4vw, 1rem); line-height: 1.7; }
.button--light { border-color: rgba(255,255,255,.22); background: #fff; color: #165fc5; box-shadow: 0 12px 28px rgba(1, 9, 24, .2); }
.button--light:hover { border-color: #fff; background: #eaf3ff; color: #0d4da8; }
.open-code-hero__content .button { margin-top: 1.6rem; }
.open-code-hero__topics { display: block; margin-top: 1.35rem; color: rgba(213, 229, 248, .67); font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.open-code-catalog { scroll-margin-top: 5.5rem; }
.open-code-catalog > .open-code-search { margin-top: 1.55rem; }
.open-code-shelf-hero { position: relative; isolation: isolate; display: grid; min-height: clamp(18rem, 28vw, 27rem); margin-bottom: 2.25rem; overflow: hidden; border-radius: 1rem; background: #06152e; box-shadow: 0 18px 48px rgba(22, 60, 112, .12); }
.open-code-shelf-hero__veil { position: relative; z-index: 1; display: flex; align-items: center; min-height: inherit; padding: 2.35rem clamp(1.3rem, 6vw, 6.5rem); background: linear-gradient(90deg, rgba(3, 10, 24, .78), rgba(3, 10, 24, .28) 62%, rgba(3, 10, 24, .48)); }
.open-code-shelf-hero__content { max-width: 33rem; color: #fff; }
.open-code-shelf-hero__content > p { margin: 0 0 .5rem; color: #b9d8ff; font-size: .65rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.open-code-shelf-hero__content h2 { margin: 0; color: #fff; font-size: clamp(1.65rem, 3.5vw, 3.1rem); letter-spacing: -.06em; line-height: 1.06; }
.open-code-shelf-hero__content > span { display: block; max-width: 29rem; margin-top: .7rem; color: rgba(237, 246, 255, .78); font-size: .75rem; line-height: 1.6; }
.open-code-shelf-hero__content .button { margin-top: 1.15rem; }
.open-code-shelf-hero .open-code-silk { background-position: center center; }

@media (min-width: 1800px) {
  .open-code-hero--editorial .open-code-silk__video, .open-code-shelf-hero .open-code-silk__video { object-position: center 45%; }
}

@media (max-width: 760px) {
  .open-code-hero--editorial { min-height: 30rem; margin-inline: calc((var(--container) - 100vw) / 2); border-radius: .9rem; }
  .open-code-hero__veil { padding: 3rem 1.25rem; background: linear-gradient(180deg, rgba(3, 10, 24, .5), rgba(3, 10, 24, .78)); }
  .open-code-hero__content h1 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .open-code-hero__content > p:not(.open-code-hero__eyebrow) { font-size: .82rem; }
  .open-code-hero__topics { line-height: 1.7; }
  .open-code-shelf-hero { min-height: 25rem; margin-bottom: 1.85rem; }
  .open-code-shelf-hero__veil { align-items: end; padding: 1.55rem 1.2rem 1.8rem; background: linear-gradient(180deg, rgba(3, 10, 24, .18), rgba(3, 10, 24, .86)); }
  .open-code-shelf-hero__content h2 { font-size: 2rem; }
  .open-code-silk { background-image: url('/assets/open-code/hero-silk-blue-mobile.webp?v=silk-loop-1'), radial-gradient(circle at 50% 42%, #123a73 0, #071a37 42%, #020713 100%); }
  .open-code-silk__video { display: none; }
}

@media (max-width: 410px) {
  .open-code-hero--editorial { min-height: 31rem; }
  .open-code-shelf-hero { min-height: 27rem; }
}

@media (prefers-reduced-motion: reduce) {
  .open-code-silk__video { display: none; }
}

/* Catálogo de Skills */
.skills-page { min-height: 54vh; padding: 2.6rem 0 5.7rem; }
.skills-hero { max-width: 55rem; padding: 1.25rem 0 3.1rem; border-bottom: 1px solid var(--line); }
.skills-hero h1, .skill-detail h1 { margin: 0; color: #30343b; font-size: clamp(2.05rem, 4vw, 3.35rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.03; }
.skills-hero > p:not(.section-kicker) { max-width: 42rem; margin: 1rem 0 0; color: #66717d; font-size: .95rem; line-height: 1.75; }
.skills-search { display: flex; align-items: center; gap: .7rem; max-width: 48rem; min-height: 3.45rem; margin-top: 1.55rem; padding: .34rem .4rem .34rem 1rem; border: 1px solid var(--line-strong); border-radius: .8rem; background: #fff; box-shadow: 0 7px 18px rgba(37,54,77,.04); }
.skills-search:focus-within { border-color: rgba(22,119,244,.45); box-shadow: 0 0 0 4px rgba(22,119,244,.08); }
.skills-search svg { flex: 0 0 auto; width: 1.12rem; height: 1.12rem; fill: none; stroke: #7c8794; stroke-width: 2; stroke-linecap: round; }
.skills-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: .82rem; }.skills-search input::placeholder { color: #9aa3ad; }
.skills-search .button { min-height: 2.62rem; padding-inline: 1rem; font-size: .62rem; }
.skills-catalog { padding-top: 3.25rem; }
.skills-catalog__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }.skills-catalog__heading > p { max-width: 21rem; margin: 0; color: #7f8995; font-size: .74rem; line-height: 1.55; text-align: right; }
.skills-catalog__summary { display: flex; align-items: center; min-height: 2.25rem; margin-top: 1.55rem; }.skills-catalog__summary p { margin: 0; color: #64707d; font-size: .72rem; font-weight: 600; }
.skills-catalog__notice { margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid #e7eaf0; border-radius: .6rem; background: #fafbfc; color: #77818d; font-size: .7rem; line-height: 1.55; }
.skills-catalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }.skills-catalog__grid .product-card__preview { height: 10.2rem; }
.skills-empty, .skills-loading { display: grid; justify-items: start; gap: .55rem; min-height: 13rem; padding: 2.1rem; border: 1px dashed #dce3ec; border-radius: .85rem; background: #fbfcfd; color: #798491; font-size: .76rem; line-height: 1.55; }.skills-empty strong { color: #4b5662; font-size: .92rem; }.skills-empty p { margin: 0; }.skills-loading { place-items: center; min-height: 15rem; color: #74808c; }
.skills-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }.skills-pagination > div { display: flex; align-items: center; gap: .35rem; }.skills-pagination button, .skills-pagination__nav { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; color: #66717c; font-size: .66rem; font-weight: 600; }.skills-pagination__nav { min-width: auto; }.skills-pagination button:hover { border-color: rgba(22,119,244,.35); color: var(--brand); }.skills-pagination__page.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }.skills-pagination__nav.is-disabled { border-color: transparent; background: transparent; color: #b0b7c0; }.skills-pagination > p { margin: 0; color: #8b949f; font-size: .65rem; }

/* Detalhe de Skill */
.skill-detail__hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: 1.1rem 0 3.2rem; border-bottom: 1px solid var(--line); }.skill-detail__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }.skill-detail__hero > div:first-child > p:not(.section-kicker) { max-width: 44rem; margin: 1rem 0 0; color: #66717e; font-size: .94rem; line-height: 1.7; }.skill-detail__facts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.1rem; color: #788390; font-size: .72rem; }.skill-detail__facts span + span { padding-left: 1rem; border-left: 1px solid var(--line); }.skill-detail__facts b { color: var(--green); font-size: .72rem; letter-spacing: .05em; }.skill-detail__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }.skill-detail__source { min-height: 3.15rem; font-size: .7rem; }.skill-detail__cover { position: relative; min-height: 13.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 12px 26px rgba(36,55,77,.06); }.skill-detail__cover .skill-cover { position: absolute; }.skill-detail__cover .skill-cover__body > strong { flex-basis: 3rem; width: 3rem; height: 3rem; font-size: .95rem; }.skill-detail__cover .skill-cover__body b { font-size: .82rem; }.skill-detail__cover .skill-cover__body span { font-size: .61rem; }.skill-detail__cover .skill-cover__tags span { font-size: .55rem; }
.skill-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14.8rem, .32fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }.skill-detail__layout > div { min-width: 0; }.skill-detail__aside { position: sticky; top: 5.85rem; display: grid; gap: .9rem; padding-top: 3.95rem; }.skill-detail__aside .trust-card { text-align: left; }.skill-detail__aside .trust-card__icon { margin-left: 0; }.skill-detail__license { margin: .8rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: #7c8794; font-size: .64rem; line-height: 1.5; }.skill-detail__license a { color: var(--brand); font-weight: 600; }
.skill-detail__content pre { max-height: 38rem; margin: 0; padding: 1.1rem 1.15rem; overflow: auto; background: #1f252d; color: #e7edf5; font: .72rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }.skill-detail__source-note { padding: 1.1rem 1.15rem; }.skill-detail__source-note p { margin: 0; color: #63707c; font-size: .82rem; line-height: 1.65; }.skill-detail__source-note a { color: var(--brand); font-weight: 600; }.skill-detail__prompts .detail-card, .skill-detail__references .detail-card { padding: .7rem 1rem; }.skill-detail__prompts ul, .skill-detail__references ul { display: grid; gap: .65rem; margin: 0; padding: .4rem 0 .4rem 1.1rem; color: #596674; font-size: .75rem; line-height: 1.6; }.skill-detail__references a { color: var(--brand); font-weight: 600; }.skill-detail__related { margin-top: 5.6rem; }

/* Página de produto */
.product-page { padding: 2.6rem 0 5.7rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 2.2rem; color: #8a939e; font-size: .73rem; font-weight: 500; }
.breadcrumbs a { color: #707a86; transition: color .16s ease; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span[aria-current="page"] { overflow: hidden; max-width: 28rem; color: #454d57; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs > span[aria-hidden="true"] { color: #bec5ce; font-size: 1.1rem; line-height: 1; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr); gap: clamp(1.7rem, 3vw, 2.8rem); align-items: start; }
.product-detail-main { min-width: 0; }
.detail-top { display: grid; grid-template-columns: minmax(14rem, .83fr) minmax(0, 1.42fr); gap: clamp(1.55rem, 3vw, 2.6rem); align-items: start; }

.detail-gallery { min-width: 0; }
.detail-gallery__stage { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #f5f8fb; aspect-ratio: 1.36; box-shadow: 0 8px 20px rgba(39,56,79,.05); }
.detail-gallery--wide .detail-gallery__stage { aspect-ratio: 16 / 9; }
.detail-gallery__media-frame { position: absolute; inset: 0; }
.detail-gallery__image { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery__fallback { position: absolute; inset: 0; }
.gallery-zoom { position: absolute; top: .65rem; right: .65rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgba(225,230,238,.9); border-radius: 50%; background: rgba(255,255,255,.94); color: #48525e; box-shadow: 0 4px 10px rgba(40,53,70,.1); transition: color .16s ease, transform .16s ease; }
.detail-gallery__stage:hover .gallery-zoom { color: var(--brand); transform: scale(1.04); }
.gallery-zoom svg, .gallery-control svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.detail-gallery__bottom { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; }
.detail-gallery__controls { display: flex; gap: .35rem; }
.gallery-control { display: grid; place-items: center; width: 1.95rem; height: 1.95rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #6c7784; transition: color .16s ease, border-color .16s ease; }
.gallery-control:hover { border-color: rgba(22,119,244,.35); color: var(--brand); }
.detail-gallery__thumbs { display: flex; gap: .42rem; min-width: 0; }
.gallery-thumb { position: relative; width: 3.45rem; height: 2.55rem; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .38rem; background: #f6f8fb; opacity: .72; transition: opacity .16s ease, border-color .16s ease; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--brand); opacity: 1; }
.gallery-thumb__media-frame { position: absolute; inset: 0; }
.gallery-thumb__image { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb__fallback { position: absolute; inset: 0; min-height: 0; padding: .25rem; }

.detail-summary { min-width: 0; padding-top: .12rem; }
.detail-summary__head .section-kicker { margin-bottom: .55rem; }
.detail-summary__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .72rem; }
.detail-summary h1 { margin: 0; color: #30343b; font-size: clamp(1.95rem, 3.25vw, 2.5rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.03; }
.detail-summary__badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.detail-badge { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .2rem .52rem; border: 1px solid #dce8fb; border-radius: .38rem; background: #f3f8ff; color: #4e7bb6; font-size: .59rem; font-weight: 700; letter-spacing: .025em; line-height: 1.1; text-transform: uppercase; }
.detail-badge--accent { border-color: transparent; background: var(--brand); color: #fff; }
.detail-summary__description { max-width: 36rem; margin: 1rem 0 1.25rem; color: #606a76; font-size: .91rem; line-height: 1.65; }
.detail-summary__facts { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-summary__facts div { min-width: 7.5rem; padding: .7rem 1rem .72rem 0; }
.detail-summary__facts div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.detail-summary__facts dt { margin-bottom: .15rem; color: #8a94a0; font-size: .56rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-summary__facts dd { margin: 0; color: #444d58; font-size: .72rem; font-weight: 600; }
.detail-summary__purchase { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
.detail-price { margin: 0; color: var(--brand); font-size: 1.72rem; font-weight: 700; letter-spacing: -.055em; line-height: 1.05; }
.detail-price--free { color: var(--green); letter-spacing: .02em; }
.detail-price-note { margin: .25rem 0 0; color: #87909c; font-size: .62rem; line-height: 1.35; }
.detail-buy { min-width: 10.8rem; }
.detail-demo { min-height: 2.75rem; margin-top: .75rem; font-size: .67rem; }

.detail-sidebar { position: sticky; top: 5.85rem; display: grid; gap: .9rem; }
.detail-sidebar--mobile { display: none; }
.trust-card { padding: 1.35rem 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; text-align: center; }
.trust-card--platform > img { width: 3.25rem; height: 3.25rem; margin: 0 auto .7rem; border-radius: 50%; object-fit: cover; }
.trust-card__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: 0 auto .55rem; border-radius: .62rem; background: var(--brand-pale); color: var(--brand); }
.trust-card__icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h2 { margin: 0; color: #3d444d; font-size: 1rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; text-transform: none; }
.trust-card > p { margin: .55rem 0 0; color: #7b8592; font-size: .68rem; line-height: 1.55; }
.trust-card strong { display: block; margin-top: .5rem; color: var(--brand); font-size: .78rem; }
.trust-card ul { display: grid; gap: .35rem; margin: .85rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line); color: #65707c; font-size: .66rem; line-height: 1.4; list-style: none; text-align: left; }
.trust-card li { position: relative; padding-left: .9rem; }
.trust-card li::before { content: ""; position: absolute; top: .32rem; left: 0; width: .35rem; height: .35rem; border-radius: 50%; background: var(--green); }

.detail-section { margin-top: 3.95rem; scroll-margin-top: 7rem; }
.detail-section__eyebrow { margin: 0 0 .35rem; color: var(--brand); font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.detail-section h2 { margin: 0 0 1rem; color: #363b42; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; text-transform: uppercase; }
.detail-card { border: 1px solid var(--line); border-radius: .76rem; background: #fff; }
.characteristics-table { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .76rem; }
.characteristics-row { display: grid; grid-template-columns: minmax(8.5rem, 30%) 1fr; min-height: 3rem; }
.characteristics-row + .characteristics-row { border-top: 1px solid var(--line); }
.characteristics-row dt, .characteristics-row dd { display: flex; align-items: center; margin: 0; padding: .68rem 1rem; font-size: .76rem; line-height: 1.45; }
.characteristics-row dt { border-right: 1px solid var(--line); background: #f7f8fa; color: #666f7a; font-weight: 700; }
.characteristics-row dd { color: #4d5661; }
.detail-card--included { padding: 1.05rem; }
.included-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.included-list li { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .7rem .75rem; border: 1px solid #edf0f4; border-radius: .55rem; color: #52606c; font-size: .73rem; }
.included-list svg, .detail-empty svg { flex: 0 0 auto; width: 1rem; height: 1rem; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-empty { display: flex; align-items: center; gap: .7rem; padding: .3rem; color: #788390; }
.detail-empty > span { display: grid; place-items: center; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #f3f7fc; }
.detail-empty p { margin: 0; font-size: .75rem; line-height: 1.6; }
.detail-description { overflow: hidden; }
.detail-description > p { margin: 0; padding: 1.1rem 1.15rem 0; color: #606b77; font-size: .87rem; line-height: 1.72; }
.detail-description > p:first-child { padding-top: 1.2rem; }
.detail-description__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding: .65rem .8rem .65rem 1.15rem; background: #f5f6f8; color: #828b96; font-size: .62rem; }
.share-actions { display: flex; align-items: center; gap: .32rem; white-space: nowrap; }
.share-actions > span { margin-right: .2rem; font-weight: 600; text-transform: uppercase; }
.share-actions button { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; padding: 0; border: 1px solid #e2e7ee; border-radius: 50%; background: #fff; color: var(--brand); font-size: .58rem; font-weight: 700; }
.share-actions button:hover { border-color: var(--brand); }
.share-actions svg { width: .7rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: .76rem; }
.feature-list > div { display: flex; align-items: center; gap: .7rem; min-height: 3.3rem; padding: .75rem .95rem; border-bottom: 1px solid var(--line); }
.feature-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.feature-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.feature-list > div:only-child { border-right: 0; }
.feature-list span { display: grid; place-items: center; flex: 0 0 1.35rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #e9f8f1; color: var(--green); font-size: .68rem; font-weight: 700; }
.feature-list p { margin: 0; color: #53606c; font-size: .75rem; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem; }
.tag-list span { padding: .45rem .65rem; border: 1px solid #dce7f7; border-radius: .48rem; background: #f5f9ff; color: #4e72a3; font-size: .7rem; font-weight: 600; }
.detail-questions .detail-card { padding: 1.05rem 1.15rem; }
.detail-questions .detail-card > p { margin: 0 0 .8rem; color: #5c6672; font-size: .82rem; }
.question-form { display: flex; gap: .55rem; }
.question-form input { min-width: 0; flex: 1; height: 2.8rem; padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font-size: .75rem; outline: none; }
.question-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,119,244,.1); }
.question-form .button { min-height: 2.8rem; white-space: nowrap; font-size: .64rem; }
.detail-questions small { display: block; margin-top: .7rem; color: #8a939d; font-size: .65rem; }

.related-products { margin-top: 5.6rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.related-products__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.related-products__heading h2 { margin: 0; color: #363b42; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.055em; }
.related-products .product-row { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 1.55rem; }
.product-page--empty { min-height: 52vh; }
.not-found { max-width: 34rem; padding: 4rem 0; }
.not-found h1 { margin: 0; color: #333840; font-size: 2.2rem; letter-spacing: -.055em; }
.not-found > p:not(.section-kicker) { margin: .8rem 0 1.5rem; color: var(--ink-soft); }

.image-lightbox { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 2rem; }
.image-lightbox[hidden] { display: none; }
.image-lightbox__backdrop { position: absolute; inset: 0; background: rgba(14,18,25,.82); }
.image-lightbox__dialog { position: relative; z-index: 1; width: min(82rem, 100%); max-height: calc(100vh - 4rem); padding: .75rem; border: 1px solid rgba(255,255,255,.18); border-radius: .85rem; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.image-lightbox__media-frame { width: 100%; height: min(72vh, 50rem); }
.image-lightbox__media { width: 100%; height: 100%; object-fit: contain; }
.image-lightbox__fallback { align-items: center; justify-items: center; min-height: 12rem; text-align: center; }
.image-lightbox__dialog > p { margin: .45rem 0 0; color: #69737f; font-size: .68rem; text-align: center; }
.image-lightbox__close, .image-lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgba(31,38,47,.86); color: #fff; }
.image-lightbox__close { top: 1.2rem; right: 1.2rem; }
.image-lightbox__nav--prev { top: 50%; left: 1.2rem; transform: translateY(-50%); }
.image-lightbox__nav--next { top: 50%; right: 1.2rem; transform: translateY(-50%); }
.image-lightbox__close svg, .image-lightbox__nav svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-open { overflow: hidden; }

/* Rodapé compartilhado */
.site-footer { border-top: 0; background: #20242b; color: #aeb7c2; }
.site-footer__top { grid-template-columns: 2fr repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 4rem 0 3.5rem; }
.footer-brand p { color: #9da7b3; font-size: .76rem; }
.site-footer h3 { color: #f1f4f7; font-size: .66rem; }
.site-footer a:not(.brand) { color: #aab3bf; font-size: .72rem; }
.site-footer a:not(.brand):hover { color: #fff; }
.site-footer__bottom { border-top-color: rgba(255,255,255,.12); color: #8e98a5; }

@media (max-width: 1050px) {
  .product-detail-layout { grid-template-columns: minmax(0,1fr) 15rem; gap: 1.5rem; }
  .detail-top { grid-template-columns: minmax(13rem,.78fr) minmax(0,1.2fr); gap: 1.3rem; }
  .related-products .product-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .skills-catalog__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .skill-detail__hero { grid-template-columns: minmax(0,1fr) minmax(13rem,.6fr); gap: 2rem; }
  .site-footer__top { grid-template-columns: 1.8fr repeat(3, 1fr); gap: 1.6rem; }
}

@media (max-width: 880px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar--desktop { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trust-card { padding: 1.1rem .9rem; }
  .trust-card--platform > img { width: 2.7rem; height: 2.7rem; }
  .trust-card ul { display: none; }
  .skill-detail__layout { grid-template-columns: 1fr; }
  .skill-detail__aside { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); padding-top: 0; }
}

@media (max-width: 760px) {
  .product-page { padding: 1.5rem 0 3.8rem; }
  .breadcrumbs { margin-bottom: 1.4rem; font-size: .69rem; }
  .breadcrumbs span[aria-current="page"] { max-width: 11rem; }
  .detail-top { grid-template-columns: 1fr; gap: 1.45rem; }
  .detail-gallery__stage { border-radius: .72rem; }
  .detail-summary h1 { font-size: 2rem; }
  .detail-summary__description { margin: .8rem 0 1rem; font-size: .86rem; }
  .detail-summary__facts div { min-width: 0; flex: 1; }
  .detail-summary__purchase { align-items: stretch; flex-direction: column; margin-top: 1.1rem; }
  .detail-buy { width: 100%; min-height: 3.2rem; }
  .detail-sidebar--desktop { display: none; }
  .detail-sidebar--mobile { position: static; display: grid; grid-template-columns: 1fr; margin-top: 1.8rem; }
  .trust-card { padding: 1.15rem 1rem; }
  .trust-card ul { display: grid; }
  .detail-section { margin-top: 3.15rem; }
  .detail-section h2 { font-size: 1.13rem; }
  .characteristics-row { grid-template-columns: 39% 1fr; }
  .characteristics-row dt, .characteristics-row dd { padding: .65rem .75rem; font-size: .7rem; }
  .included-list, .feature-list { grid-template-columns: 1fr; }
  .feature-list > div, .feature-list > div:nth-child(odd) { border-right: 0; }
  .feature-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-list > div:last-child { border-bottom: 0; }
  .detail-description > p { padding-inline: .9rem; font-size: .8rem; }
  .detail-description__meta { align-items: flex-start; flex-direction: column; padding: .7rem .9rem; }
  .question-form { flex-direction: column; }
  .question-form .button { width: 100%; }
  .related-products { margin-top: 4.1rem; padding-top: 3rem; }
  .related-products .product-row { display: grid; grid-auto-columns: minmax(11.5rem, 74vw); grid-auto-flow: column; grid-template-columns: unset; overflow-x: auto; padding: .15rem .05rem .85rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .related-products .product-row::-webkit-scrollbar { display: none; }
  .related-products .product-card { display: flex; scroll-snap-align: start; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2.1rem 1.2rem; padding: 3.1rem 0 2.7rem; }
  .footer-brand { grid-column: 1 / -1; }
  .image-lightbox { padding: 1rem; }
  .image-lightbox__dialog { max-height: calc(100vh - 2rem); }
  .image-lightbox__dialog > img { max-height: calc(100vh - 5.5rem); }
  .skills-page { padding: 1.5rem 0 3.8rem; }
  .skills-hero { padding-top: .4rem; padding-bottom: 2.35rem; }.skills-hero h1, .skill-detail h1 { font-size: 2.15rem; }
  .skills-hero > p:not(.section-kicker) { font-size: .85rem; }.skills-search { align-items: stretch; flex-wrap: wrap; padding: .5rem .55rem .55rem .8rem; border-radius: .72rem; }.skills-search svg { margin-top: .75rem; }.skills-search input { min-width: calc(100% - 2rem); height: 2.7rem; }.skills-search .button { width: 100%; }
  .skills-catalog { padding-top: 2.55rem; }.skills-catalog__heading { align-items: flex-start; flex-direction: column; gap: .65rem; }.skills-catalog__heading > p { max-width: 30rem; text-align: left; }.skills-catalog__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }.skills-catalog__grid .product-card__preview { height: 8.8rem; }.skills-pagination { align-items: flex-start; flex-direction: column; }.skills-pagination > div { flex-wrap: wrap; }
  .skill-detail__hero { grid-template-columns: 1fr; gap: 1.25rem; padding-top: .35rem; padding-bottom: 2.4rem; }.skill-detail__cover { min-height: 12rem; }.skill-detail__facts span + span { padding-left: 0; border-left: 0; }.skill-detail__actions { flex-direction: column; }.skill-detail__actions .button { width: 100%; }.skill-detail__aside { grid-template-columns: 1fr; }.skill-detail__aside .trust-card { text-align: center; }.skill-detail__aside .trust-card__icon { margin-inline: auto; }.skill-detail__related { margin-top: 4.1rem; }
}

@media (max-width: 410px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .detail-summary__title-row { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .share-actions > span { display: none; }
  .skills-catalog__grid { grid-template-columns: 1fr; }.skills-catalog__grid .product-card__preview { height: 10.5rem; }
}

/* Final cascade guard: legacy category sections keep the canonical rhythm. */
.packs-page, .open-code-page { padding-top: 0; }
.packs-catalog, .open-code-catalog { margin-top: 0; border-top: 0; padding-top: 0; }

/* Final category hero safe-area cascade. Keep this after legacy category rules
   so every category page resolves the same geometry. */
.category-hero-shell { width: var(--container); margin: 2.55rem auto 3.5rem; }
.category-hero-breadcrumbs { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0 0 18px; color: #667085; font-size: .73rem; font-weight: 500; line-height: 1.4; }
.category-hero-breadcrumbs a { color: #667085; transition: color .16s ease; }
.category-hero-breadcrumbs a:hover, .category-hero-breadcrumbs a:focus-visible { color: var(--brand); }
.category-hero-breadcrumbs [aria-current="page"] { color: var(--brand); }
.category-hero-breadcrumbs > span[aria-hidden="true"] { color: #b8c4d4; font-size: 1.05rem; line-height: 1; }
.category-cinematic-hero { width: 100%; height: 520px; min-height: 520px; margin: 0; }
.category-cinematic-hero__content { width: 100%; height: 100%; min-height: 0; justify-content: center; padding: 44px clamp(24px, 6vw, 88px) 40px; }
.category-cinematic-hero__copy { display: flex; min-height: 0; flex-direction: column; align-items: flex-start; max-width: 900px; }
.category-cinematic-hero h1 { max-width: 900px; font-size: clamp(2.35rem, 4.8vw, 4.5rem); }
.category-cinematic-hero__description { margin-top: 20px; margin-bottom: 24px; }
.category-cinematic-hero__count, .category-cinematic-hero__support { flex: 0 0 auto; margin-top: 20px; padding-bottom: 4px; line-height: 1.4; }
@media (max-width: 800px) {
  .category-hero-shell { width: calc(100% - 32px); margin: 1.5rem auto 3rem; }
  .category-hero-breadcrumbs { margin-bottom: 16px; }
  .category-cinematic-hero { height: 500px; min-height: 500px; border-radius: 20px; }
  .category-cinematic-hero__content { height: 100%; padding: 36px 30px 40px; }
}
@media (max-width: 520px) {
  .category-hero-shell { width: calc(100% - 32px); margin: 1.25rem auto 2.75rem; }
  .category-hero-breadcrumbs { margin-bottom: 16px; font-size: .7rem; }
  .category-cinematic-hero { height: 500px; min-height: 500px; border-radius: 18px; }
  .category-cinematic-hero__content { padding: 30px 24px 36px; }
  .category-cinematic-hero h1 { max-width: 330px; font-size: clamp(2rem, 10vw, 3.4rem); }
  .category-cinematic-hero__description { margin-top: 18px; margin-bottom: 24px; font-size: .94rem; }
  .category-cinematic-hero .button--light { min-height: 48px; padding-inline: 20px; }
  .category-cinematic-hero__count, .category-cinematic-hero__support { margin-top: 14px; padding-bottom: 4px; font-size: .78rem; }
}

/* Universal Offer Engine promotion pages */
.promotion-page { padding: 34px 0 88px; background: #f7f8fa; min-height: calc(100vh - 80px); }
.promotion-breadcrumbs { margin-bottom: 22px; }
.promotion-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 34px; align-items: stretch; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; padding: clamp(28px, 5vw, 62px); overflow: hidden; }
.promotion-hero__content { align-self: center; max-width: 620px; }
.promotion-hero__content h1 { margin: 12px 0 18px; color: #111827; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.promotion-hero__content > p:not(.section-kicker) { max-width: 58ch; color: #667085; font-size: 1.08rem; line-height: 1.65; }
.promotion-hero__meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.promotion-hero__meta span { border: 1px solid #dbe4f5; border-radius: 999px; color: #315eaa; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 7px 11px; text-transform: uppercase; }
.promotion-hero__media { min-height: 300px; border-radius: 18px; background: linear-gradient(145deg, #eaf1ff, #f7f8fa); overflow: hidden; display: grid; place-items: center; }
.promotion-cover-frame { display: block; height: 100%; position: relative; width: 100%; }
.promotion-hero__media .promotion-cover-frame { min-height: 300px; }
.promotion-cover-frame img { display: block; height: 100%; min-height: inherit; object-fit: cover; width: 100%; }
.promotion-cover-fallback { align-content: center; background: radial-gradient(circle at 18% 12%, rgba(30,102,255,.14), transparent 42%), linear-gradient(145deg, #f8fbff, #edf3ff); color: #111827; display: grid; gap: 8px; height: 100%; justify-items: start; min-height: 170px; padding: 28px; text-align: left; width: 100%; }
.promotion-cover-fallback__mark { align-items: center; background: #1e66ff; border-radius: 14px; box-shadow: 0 10px 24px rgba(30,102,255,.2); color: #fff; display: inline-flex; font-size: 1.05rem; font-weight: 800; height: 48px; justify-content: center; letter-spacing: -.04em; width: 48px; }
.promotion-cover-fallback strong { font-size: clamp(1.05rem, 2vw, 1.45rem); letter-spacing: -.03em; line-height: 1.15; max-width: 19ch; }
.promotion-cover-fallback small { color: #315eaa; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.promotion-expansion__media .promotion-cover-frame { min-height: 0; }
.promotion-expansion__media .promotion-cover-fallback { gap: 5px; min-height: 0; padding: 16px; }
.promotion-expansion__media .promotion-cover-fallback__mark { border-radius: 9px; font-size: .76rem; height: 30px; width: 30px; }
.promotion-expansion__media .promotion-cover-fallback strong { font-size: .9rem; }
.promotion-expansion__media .promotion-cover-fallback small { font-size: .62rem; }
.promotion-admin-slot { min-height: 26px; display: flex; justify-content: flex-end; padding: 12px 2px 0; }
.promotion-admin-action { border: 0; background: transparent; color: #1e66ff; cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 6px 0; text-transform: uppercase; }
.promotion-choice, .promotion-offer, .promotion-expansions, .promotion-empty { margin-top: 28px; border-radius: 20px; }
.promotion-choice { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: #fff; border: 1px solid #e5e7eb; padding: 28px 32px; }
.promotion-choice h2, .promotion-offer h2, .promotion-section-heading h2, .promotion-empty h2 { color: #111827; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.035em; margin: 7px 0 9px; }
.promotion-choice p, .promotion-offer p, .promotion-section-heading p, .promotion-empty p { color: #667085; line-height: 1.6; margin: 0; }
.promotion-offer { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; background: #fff; border: 1px solid #dbe4f5; box-shadow: 0 14px 36px rgba(15,23,42,.06); color: #111827; padding: 32px; }
.promotion-offer h2 { color: #111827; }
.promotion-offer p { color: #667085; }
.promotion-offer .section-kicker { color: #1e66ff; }
.promotion-offer__facts { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; }
.promotion-offer__facts strong { font-size: 1.75rem; letter-spacing: -.04em; }
.promotion-offer__facts span { color: #667085; font-size: .82rem; }
.promotion-benefits { align-self: center; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.promotion-benefits li { color: #475467; display: flex; gap: 9px; line-height: 1.45; }
.promotion-offer__action { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; border-top: 1px solid #e5e7eb; padding-top: 23px; }
.promotion-owned { color: #667085; font-size: .88rem; }
.promotion-expansions { background: #fff; border: 1px solid #e5e7eb; padding: 28px 32px 32px; }
.promotion-expansions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 21px; }
.promotion-expansion { align-items: stretch; border: 1px solid #e5e7eb; border-radius: 15px; color: inherit; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.promotion-expansion:hover, .promotion-expansion:focus-visible { border-color: #8cb0f3; transform: translateY(-2px); }
.promotion-expansion__media { aspect-ratio: 1.8; background: #edf2fb; display: grid; overflow: hidden; place-items: center; }
.promotion-expansion__media img { height: 100%; object-fit: cover; width: 100%; }
.promotion-expansion__fallback { color: #1e66ff; font-size: 1.2rem; font-weight: 800; }
.promotion-expansion > span:last-child { display: grid; gap: 7px; padding: 16px; }
.promotion-expansion strong { color: #111827; }
.promotion-expansion small { color: #667085; line-height: 1.45; min-height: 42px; }
.promotion-expansion b { color: #1e66ff; font-size: .84rem; }
.promotion-empty { background: #fff; border: 1px dashed #b7c8e9; padding: 28px 32px; }
.promotion-footnote { color: #667085; font-size: .82rem; line-height: 1.55; margin: 24px auto 0; max-width: 760px; text-align: center; }
.promotion-loading { color: #667085; padding: 100px 0; text-align: center; }
.promotion-dialog { inset: 0; position: fixed; z-index: 100; }
.promotion-dialog[hidden] { display: none; }
.promotion-dialog__backdrop { background: rgba(15,23,42,.52); inset: 0; position: absolute; }
.promotion-dialog__panel { background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(15,23,42,.24); left: 50%; max-height: min(760px, calc(100vh - 32px)); max-width: 620px; overflow: auto; padding: 30px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: min(calc(100% - 32px), 620px); }
.promotion-dialog__close { background: transparent; border: 0; color: #667085; cursor: pointer; font-size: 1.5rem; position: absolute; right: 18px; top: 14px; }
.promotion-dialog__panel h2 { color: #111827; margin: 5px 0 22px; }
.promotion-dialog__panel form { display: grid; gap: 13px; }
.promotion-dialog__panel label { color: #344054; display: grid; font-size: .85rem; font-weight: 600; gap: 6px; }
.promotion-dialog__panel input, .promotion-dialog__panel textarea, .promotion-dialog__panel select { border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; padding: 11px 12px; width: 100%; }
.promotion-dialog__panel textarea { min-height: 82px; resize: vertical; }
.promotion-form-message { color: #b42318; font-size: .86rem; margin: 0; }
.promotion-form-message[data-kind="success"] { color: #027a48; }
.promotion-admin-summary { background: #f7f8fa; border: 1px solid #e5e7eb; border-radius: 14px; margin-bottom: 20px; padding: 18px; }
.promotion-admin-summary h2 { margin: 4px 0 14px; }
.promotion-admin-summary dl { display: grid; gap: 8px; margin: 0; }
.promotion-admin-summary dl div { display: grid; gap: 3px; }
.promotion-admin-summary dt { color: #667085; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promotion-admin-summary dd { color: #111827; font-size: .86rem; margin: 0; overflow-wrap: anywhere; }
.promotion-admin-summary__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 850px) {
  .promotion-hero { grid-template-columns: 1fr; }
  .promotion-hero__media { min-height: 230px; }
  .promotion-hero__media .promotion-cover-frame, .promotion-hero__media img { min-height: 230px; }
  .promotion-offer { grid-template-columns: 1fr; }
  .promotion-expansions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .promotion-page { padding-top: 22px; }
  .promotion-hero { border-radius: 18px; padding: 24px 20px; }
  .promotion-hero__content h1 { font-size: clamp(2.05rem, 12vw, 3.35rem); }
  .promotion-choice, .promotion-offer, .promotion-expansions, .promotion-empty { padding: 22px 20px; }
  .promotion-choice { align-items: stretch; flex-direction: column; }
  .promotion-choice .button { width: 100%; }
  .promotion-expansions__grid { grid-template-columns: 1fr; }
  .promotion-offer__action .button { width: 100%; }
  .promotion-dialog__panel { padding: 25px 20px; }
}

/* Universal promotion sharing controls */
.promotion-share-tools {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.promotion-share-tools label { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted, #667085); }
.promotion-share-tools select,
.promotion-share-tools input { width: 100%; min-height: 42px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--ink, #111827); }
.promotion-share-url { margin: 2px 0 0; padding: 10px 12px; overflow-wrap: anywhere; border-radius: 10px; background: #f7f8fa; color: #475467; font-size: 0.8rem; }
.promotion-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Phase 3 — shared product detail shell.  Type-specific renderers keep their
   real content, while this final cascade gives them one measured marketplace
   frame, rhythm and action hierarchy. */
.detail-shell {
  --detail-max-width: 1180px;
  --detail-radius: .86rem;
  --detail-gap: clamp(1.4rem, 3vw, 2.8rem);
  --detail-section-gap: 3.15rem;
  --detail-border: #e5e9ef;
}
.detail-shell > .container,
.detail-shell .detail-shell__container {
  width: min(var(--container), var(--detail-max-width));
  max-width: var(--detail-max-width);
}
.detail-shell > .container { margin-inline: auto; }
.detail-shell:not([data-detail-type="promotion"]) { padding-bottom: 5rem; }
.detail-shell__breadcrumbs { margin-bottom: 1.35rem; }
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__hero {
  align-items: start;
  border-bottom: 1px solid var(--detail-border);
  gap: var(--detail-gap);
  padding: .15rem 0 3.1rem;
}
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__title,
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__title-row h1 {
  max-width: 20ch;
  color: #30343b;
  font-size: clamp(1.9rem, 3.45vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1.05;
}
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__summary > p:not(.section-kicker),
.detail-shell:not([data-detail-type="promotion"]) .detail-summary__description,
.detail-shell:not([data-detail-type="promotion"]) .open-code-detail__summary > p {
  max-width: 42rem;
  color: #66717e;
  font-size: .9rem;
  line-height: 1.68;
}
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__media,
.detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
.detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
.detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual {
  min-height: 0;
  height: clamp(16rem, 31vw, 22rem);
  border-radius: var(--detail-radius);
}
.detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage { aspect-ratio: auto; }
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
.detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover { position: relative; }
.detail-shell:not([data-detail-type="promotion"]) .pack-cover--wide { min-height: 100%; height: 100%; }
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__bounded-media { max-width: 100%; }
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__section,
.detail-shell:not([data-detail-type="promotion"]) .detail-section { margin-top: var(--detail-section-gap); }
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__card,
.detail-shell:not([data-detail-type="promotion"]) .detail-card,
.detail-shell:not([data-detail-type="promotion"]) .trust-card,
.detail-shell:not([data-detail-type="promotion"]) .characteristics-table,
.detail-shell:not([data-detail-type="promotion"]) .feature-list {
  border-color: var(--detail-border);
  border-radius: var(--detail-radius);
}
.detail-shell:not([data-detail-type="promotion"]) .detail-section h2,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__summary h2 {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.detail-shell:not([data-detail-type="promotion"]) .detail-shell__primary-action,
.detail-shell:not([data-detail-type="promotion"]) .detail-buy,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__purchase .button,
.detail-shell:not([data-detail-type="promotion"]) .skill-detail__actions .button--primary,
.detail-shell:not([data-detail-type="promotion"]) .open-code-detail__actions .button--primary {
  min-height: 2.95rem;
  border-radius: .62rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .035em;
}
.detail-shell:not([data-detail-type="promotion"]) .detail-sidebar,
.detail-shell:not([data-detail-type="promotion"]) .skill-detail__aside,
.detail-shell:not([data-detail-type="promotion"]) .open-code-detail__aside {
  gap: .75rem;
}
.detail-shell:not([data-detail-type="promotion"]) .trust-card { padding: 1.1rem 1rem; }
.detail-shell:not([data-detail-type="promotion"]) .trust-card h2 { font-size: .92rem; }
.detail-shell:not([data-detail-type="promotion"]) .trust-card > p { font-size: .67rem; }
.detail-shell:not([data-detail-type="promotion"]) .related-products { margin-top: 4.4rem; padding-top: 3.25rem; }
.detail-shell:not([data-detail-type="promotion"]) .related-products__heading h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.detail-shell[data-detail-type="promotion"] > .container { max-width: var(--detail-max-width); }

@media (max-width: 880px) {
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__hero { padding-bottom: 2.5rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__media,
  .detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual { height: 18rem; }
}

@media (max-width: 760px) {
  .detail-shell:not([data-detail-type="promotion"]) { padding-bottom: 3.8rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__breadcrumbs { margin-bottom: 1.15rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__hero { gap: 1.25rem; padding-top: .1rem; padding-bottom: 2.3rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__media,
  .detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual { height: 15rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__title,
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__title-row h1 { max-width: 100%; font-size: 2rem; }
  .detail-shell:not([data-detail-type="promotion"]) .detail-shell__primary-action,
  .detail-shell:not([data-detail-type="promotion"]) .detail-buy,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__purchase .button,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__actions .button--primary,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__actions .button--primary { width: 100%; }
}

/* Phase 4 — one compact administrative promotion action for every detail renderer. */
.detail-summary__admin-slot,
.pack-detail__admin-slot {
  display: flex;
  justify-content: flex-start;
  min-height: 0;
  padding-top: .75rem;
}

.promotion-admin-action {
  align-items: center;
  border: 1px solid #cbd7ed;
  border-radius: 9px;
  color: #315eaa;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 700;
  gap: .35rem;
  justify-content: center;
  letter-spacing: .035em;
  min-height: 36px;
  padding: .55rem .78rem;
  text-decoration: none;
  text-transform: none;
}

.promotion-admin-action:hover,
.promotion-admin-action:focus-visible {
  background: #f4f7fd;
  border-color: #1e66ff;
  color: #174dbf;
}

.promotion-admin-action--missing {
  border-style: dashed;
  cursor: default;
  opacity: .82;
}

.skill-detail__actions .promotion-admin-action,
.open-code-detail__actions .promotion-admin-action {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .detail-summary__admin-slot,
  .pack-detail__admin-slot { padding-top: .65rem; }
  .detail-summary__admin-slot .promotion-admin-action,
  .pack-detail__admin-slot .promotion-admin-action { max-width: 100%; }
}

/* Homepage featured shelf — the desktop presentation uses two rows of six.
   The base product row remains unchanged for category/search/catalog surfaces. */
.product-row--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.marketplace-section#em-destaque .shelf-heading h2 { font-size: 1.55rem; }
.product-row--featured .product-card {
  border-radius: 1rem;
}
.product-row--featured .product-card__preview {
  height: auto;
  aspect-ratio: 16 / 9;
}
.product-row--featured .product-card__body {
  min-height: 9.7rem;
  padding: .92rem 1rem .86rem;
}
.product-row--featured .product-title {
  min-height: 2.45rem;
  font-size: .9rem;
  line-height: 1.32;
}
.product-row--featured .product-description {
  min-height: 2.8rem;
  margin-top: .4rem;
  margin-bottom: .65rem;
  font-size: .71rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}
.product-row--featured .product-open svg {
  width: .78rem;
  height: .78rem;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .product-row--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .product-row--featured {
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: .15rem 0 .85rem;
  }
  .product-row--featured .product-card__preview { aspect-ratio: 16 / 9; }
}

/* Phase 7 — final nested-card inset overrides. These rules intentionally live
   at the end of the cascade so legacy type-specific rules cannot collapse the
   text block back against a card edge. */
.detail-shell:not([data-detail-type="promotion"]) .pack-cross-sell__card > div {
  padding-top: 1.15rem;
  padding-right: 1.25rem;
  padding-bottom: 1.15rem;
}
.detail-shell:not([data-detail-type="promotion"]) .skill-pack-offer__items a {
  padding: 1rem;
}
.detail-shell:not([data-detail-type="promotion"]) .open-code-expansion__items a > div:last-child {
  padding-top: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}
@media (max-width: 760px) {
  .detail-shell:not([data-detail-type="promotion"]) .pack-cross-sell__card > div,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-expansion__items a > div:last-child {
    padding-right: 1rem;
  }
}

/* Phase 8 — compact first-fold detail media and a real support column for
   legacy detail renderers.  Promotion pages intentionally keep their own
   presentation and are excluded from this cascade. */
.detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
.detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
.detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual {
  height: clamp(13.5rem, 24vw, 19rem);
}
.detail-shell:not([data-detail-type="promotion"]) .related-products__intro {
  max-width: 38rem;
  margin: .55rem 0 0;
  color: #788390;
  font-size: .78rem;
  line-height: 1.55;
}

@media (min-width: 881px) {
  /* Bound Pack support cards to the product-content grid. The previous
     display:contents layout made the sticky aside's containing block the
     entire page container, so it remained over “Você também pode gostar”. */
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container {
    display: block;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main {
    grid-column: 1;
    grid-row: 1;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 5.85rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container > .related-products,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container > .related-products,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container > .open-code-cross-sell {
    grid-column: 1 / -1;
  }
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__hero,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__hero {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__layout,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__layout,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__layout {
    display: contents;
  }
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__layout > main,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__layout > div,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__layout > main {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__aside,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__aside,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__aside {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    min-width: 0;
    position: sticky;
    top: 5.85rem;
  }
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__recommendations {
    grid-column: 1 / -1;
  }
}
@media (max-width: 880px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__aside {
    position: static;
    top: auto;
  }
}

/* Canonical product-detail media contract. BarberFlow is the measured source
   of truth: the detail content column is 879px at the reference desktop
   width, its media column is 308px wide by 304px high, and the summary starts
   beside it at the same top edge. Source artwork is fitted inside this frame;
   it never changes the page geometry. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
  }

  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container > .landing-related {
    grid-column: 1 / -1;
  }

  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__product-region {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
    min-width: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__hero {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(14rem, .83fr) minmax(0, 1.42fr);
    gap: var(--detail-gap);
    align-items: start;
    min-width: 0;
    padding: .15rem 0 3.1rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__media,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__summary {
    min-width: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__visual,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview {
    width: 100%;
    height: clamp(13.5rem, 24vw, 19rem);
    min-height: 0;
    aspect-ratio: auto;
    border-radius: var(--detail-radius);
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete {
    background: #eef3fb;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover--wide,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__media-frame,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__image {
    min-height: 0;
    height: 100%;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__image,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__image,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview img {
    object-fit: contain;
    object-position: center;
    background: #eef3fb;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout {
    display: contents;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-top: 3.4rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 5.85rem;
    align-self: start;
    min-width: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs {
    margin-top: .7rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs .gallery-thumb {
    flex: 0 0 3.45rem;
    width: 3.45rem;
    height: 2.55rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs img,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__hero,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(14rem, .83fr) minmax(0, 1.42fr);
    gap: var(--detail-gap);
    align-items: start;
    min-width: 0;
    padding: .15rem 0 3.1rem;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero > div:first-child,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__summary,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__summary {
    min-width: 0;
    padding-top: .12rem;
  }
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__gallery {
    min-width: 0;
  }
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__thumbs {
    display: flex;
    gap: .42rem;
    min-width: 0;
  }
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__thumb {
    flex: 0 0 3.45rem;
    width: 3.45rem;
    min-height: 0;
    height: 2.55rem;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout {
    display: contents;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout > div,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout > main,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout > main {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    padding-top: 3.4rem;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__aside,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__aside,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-aside {
    grid-column: 2;
    grid-row: 2 / span 2;
    position: sticky;
    top: 5.85rem;
    align-self: start;
    min-width: 0;
    padding-top: 0;
  }
}

@media (max-width: 880px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__product-region,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container {
    display: block;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__hero,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__hero,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: .1rem;
    padding-bottom: 2.5rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout {
    display: block;
    padding-top: 2.5rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout > div,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout > main,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout > main {
    padding-top: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__aside,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__aside,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-aside {
    position: static;
    top: auto;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__visual,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview {
    height: min(15rem, 78vw);
  }
}

/* Final vertical alignment with the BarberFlow reference. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]),
  .detail-shell.skill-detail:not([data-detail-type="promotion"]),
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]),
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) {
    padding-top: 2.6rem;
  }
}

/* Match BarberFlow's measured first-fold offset. Legacy category styles set
   these detail articles to zero top padding, which made their otherwise
   identical media frame start a full rhythm unit too high. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]),
  .detail-shell.skill-detail:not([data-detail-type="promotion"]),
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]),
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) {
    padding-top: 2.6rem;
  }
}

@media (max-width: 880px) {
  .detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual {
    height: 15rem;
  }
}

@media (max-width: 760px) {
  .detail-shell:not([data-detail-type="promotion"]) .detail-gallery__stage,
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell:not([data-detail-type="promotion"]) .open-code-detail__visual {
    height: min(12rem, 64vw);
  }
}

/* Product detail media fit — keep square or editorial covers complete without
   changing the geometry of homepage/category cards. The source cover remains
   compact inside the existing hero frame; only the incompatible crop is
   removed. */
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete {
  height: min(22rem, 30vw);
  min-height: 0;
  background: #eef3fb;
}
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover--wide,
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__media-frame {
  min-height: 0;
  height: 100%;
}
.detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__image {
  object-fit: contain;
  object-position: center;
  background: #eef3fb;
}
@media (max-width: 880px) {
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete {
    height: min(19rem, 92vw);
  }
}
@media (max-width: 760px) {
  .detail-shell:not([data-detail-type="promotion"]) .pack-detail__cover--complete {
    height: min(18rem, 92vw);
  }
}

/* ThreeUI detail pages use their own renderer but the same first-fold rule. */
.landing-detail-page .landing-detail-hero__preview {
  max-height: min(19rem, 24vw);
}
.landing-detail-page .landing-detail-hero__title h1 {
  font-size: clamp(1.95rem, 3.45vw, 2.75rem);
  line-height: 1.05;
}
.landing-detail-page .landing-related h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
@media (max-width: 980px) {
  .landing-detail-page .landing-detail-hero__preview { max-height: 18rem; }
}
@media (max-width: 640px) {
  .landing-detail-page .landing-detail-hero__preview { max-height: 12rem; }
}

/* Final category-catalog cascade: keep every marketplace grid aligned with
   the SaaS card geometry, including legacy Pack, Open Code and Skill grids. */
.open-code-grid,
.skills-catalog__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.packs-catalog__grid .product-card,
.open-code-grid .product-card,
.skills-catalog__grid .product-card {
  border-radius: 16px;
}
.packs-catalog__grid .product-card__preview,
.open-code-grid .product-card__preview,
.skills-catalog__grid .product-card__preview {
  height: auto;
  aspect-ratio: 16 / 9;
}
.packs-catalog__grid .product-card__body,
.open-code-grid .product-card__body,
.skills-catalog__grid .product-card__body {
  padding: 16px;
}
.packs-catalog__grid .product-title,
.open-code-grid .product-title,
.skills-catalog__grid .product-title {
  min-height: 2.9rem;
  margin: 12px 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}
.packs-catalog__grid .product-description,
.open-code-grid .product-description,
.skills-catalog__grid .product-description {
  min-height: 42px;
  margin: 0 0 18px;
  font-size: .85rem;
  line-height: 1.48;
}
.packs-catalog__grid .product-card__footer,
.open-code-grid .product-card__footer,
.skills-catalog__grid .product-card__footer {
  padding-top: 0;
  border-top: 0;
  font-size: .78rem;
}
@media (max-width: 1050px) {
  .open-code-grid,
  .skills-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .packs-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .packs-catalog__grid .product-card__body,
  .open-code-grid .product-card__body,
  .skills-catalog__grid .product-card__body {
    padding: 14px;
  }
}
@media (max-width: 410px) {
  .open-code-grid,
  .skills-catalog__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .packs-catalog__grid,
  .open-code-grid,
  .skills-catalog__grid {
    grid-template-columns: 1fr;
  }
}

/* Public card media contract. The frame owns its geometry; native image
   dimensions never add a square/portrait variant or change grid alignment.
   Every public listing surface uses the same compact 16:9 media token. */
.product-card__preview,
.category-product-card__media {
  height: auto;
  aspect-ratio: 16 / 9;
}
.product-card__preview,
.category-product-card__media {
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.product-card__preview > .safe-media-frame,
.product-card__preview > .pack-cover,
.category-product-card__media > .safe-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.product-card__preview > .pack-cover { min-height: 0; }
.product-card__preview .product-cover,
.product-card__preview .pack-cover__image,
.category-product-card__media img {
  object-fit: contain;
  object-position: center;
  background: #f7f9fc;
}

/* Public card cover safe area. This is a physical inner wrapper so the
   rendered artwork bounds shrink without changing the outer media frame. */
:root { --public-card-cover-inset: 20px; }
.product-card__preview > .safe-media-frame > .public-card-artwork,
.product-card__preview > .pack-cover > .safe-media-frame > .public-card-artwork,
.category-product-card__media > .public-card-artwork {
  position: absolute;
  inset: var(--public-card-cover-inset);
  width: auto;
  height: auto;
}
@media (max-width: 760px) {
  :root { --public-card-cover-inset: 12px; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  :root { --public-card-cover-inset: 16px; }
}

/* Keep the information block compact while preserving readable names,
   descriptions and prices beneath the shorter media frame. */
.product-row--featured .product-card__body,
.product-row--homepage-category .product-card__body {
  min-height: 8.8rem;
  padding: .76rem 1rem .7rem;
}
.product-row--featured .product-description,
.product-row--homepage-category .product-description {
  margin-bottom: .55rem;
}
.category-product-card__body {
  padding: 14px;
}

/* Final bounded Pack detail layout override. Keep the sticky support column's
   containing block limited to the main product sections, before discovery
   recommendations are appended. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container {
    display: block;
    grid-template-columns: none;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    position: sticky;
    top: 5.85rem;
  }
}

/* Marketplace density contract: public listing grids use six compact tracks
   on wide screens while detail shells and commerce surfaces remain untouched.
   The grid, not the source artwork, owns card geometry. */
@media (min-width: 1051px) {
  .product-row--featured,
  .product-row--homepage-category {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
  }

  .category-product-grid,
  .packs-catalog__grid,
  .open-code-grid,
  .skills-catalog__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
  }

  .category-product-grid--count-1 { grid-template-columns: minmax(0, 15rem); }
  .category-product-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
  .category-product-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 54rem; }
  .category-product-grid--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 70rem; }
  .category-product-grid--count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.admin-legacy-cleanup{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:22px;border:1px solid #e7b9bd;border-radius:14px;background:#fff8f8;color:#4b3033}.admin-legacy-cleanup h3{margin:0;color:#7d3038}.admin-legacy-cleanup p{margin:6px 0;color:#63484d}.admin-legacy-cleanup small{display:block;color:#8a6b70}.admin-legacy-cleanup--complete{border-color:#b9dfca;background:#f5fcf7;color:#245d3c}.admin-legacy-cleanup--complete h3{color:#20734b}.admin-legacy-cleanup--failed{border-color:#e7b9bd;background:#fff3f3}.admin-legacy-cleanup--failed small{color:#a53b42;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}@media(max-width:700px){.admin-legacy-cleanup{align-items:stretch;flex-direction:column}.admin-legacy-cleanup .button{width:100%}}

/* Compact marketplace cards keep the existing media frame while making the
   information hierarchy legible at six-up density. */
.product-row--featured .product-card__body,
.product-row--homepage-category .product-card__body,
.packs-catalog__grid .product-card__body,
.open-code-grid .product-card__body,
.skills-catalog__grid .product-card__body {
  min-height: 7.2rem;
  padding: .52rem .62rem .54rem;
}
.product-row--featured .product-title,
.product-row--homepage-category .product-title,
.packs-catalog__grid .product-title,
.open-code-grid .product-title,
.skills-catalog__grid .product-title {
  min-height: 2rem;
  margin: .3rem 0 .2rem;
  font-size: .7rem;
  line-height: 1.28;
}
.product-row--featured .product-description,
.product-row--homepage-category .product-description,
.packs-catalog__grid .product-description,
.open-code-grid .product-description,
.skills-catalog__grid .product-description {
  min-height: 1.85rem;
  margin: 0 0 .35rem;
  font-size: .57rem;
  line-height: 1.36;
  -webkit-line-clamp: 2;
}
.product-row--featured .product-card__meta,
.product-row--homepage-category .product-card__meta,
.packs-catalog__grid .product-card__meta,
.open-code-grid .product-card__meta,
.skills-catalog__grid .product-card__meta,
.category-product-card__meta {
  font-size: .58rem;
}
.product-row--featured .product-price,
.product-row--homepage-category .product-price,
.packs-catalog__grid .product-price,
.open-code-grid .product-price,
.skills-catalog__grid .product-price,
.category-product-card__meta strong {
  font-size: .68rem;
}
.category-product-card__body {
  padding: .7rem .72rem .68rem;
}
.category-product-card h3 {
  min-height: 2.2rem;
  margin: .42rem 0 .28rem;
  font-size: .78rem;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-product-card p {
  min-height: 2.15rem;
  margin: 0 0 .5rem;
  font-size: .61rem;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-product-card__footer { font-size: .6rem; }
.category-product-card__footer b { font-size: .58rem; }

/* Shared card artwork inset: preserve the current 16:9 frame while letting
   the artwork occupy most of the compact six-column media area. */
:root { --public-card-cover-inset: 6px; }
@media (max-width: 1050px) and (min-width: 761px) {
  :root { --public-card-cover-inset: 7px; }
  .category-product-grid,
  .packs-catalog__grid,
  .open-code-grid,
  .skills-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 760px) {
  :root { --public-card-cover-inset: 5px; }
}

/* Open Code previously added a second image-level inset on top of the shared
   artwork wrapper. Keep its contain behavior, but let the shared contract
   own the only safe area. */
.product-card--open-code .product-cover { padding: 0; }

/* Final public-card visual contract for the compact six-column marketplace.
   The old short 16:9-like media boxes capped square artwork at roughly
   80-96px on the 193px cards. All public listing renderers now share a 4:3
   frame; product-detail media is intentionally outside this contract. */
.product-card__preview,
.category-product-card__media,
.product-row--featured .product-card__preview,
.product-row--homepage-category .product-card__preview,
.packs-catalog__grid .product-card__preview,
.open-code-grid .product-card__preview,
.skills-catalog__grid .product-card__preview {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
}

/* Public cards use a full-bleed cover inside the fixed 4:3 frame. The
   previous contained safe area left visible pale bands around every cover;
   listing cards intentionally fill their media box while detail media keeps
   its independent contain contract. */
.product-card__preview > .safe-media-frame > .public-card-artwork,
.product-card__preview > .pack-cover > .safe-media-frame > .public-card-artwork,
.category-product-card__media > .public-card-artwork {
  inset: 0;
}
.product-card__preview .product-cover,
.product-card__preview .pack-cover__image,
.category-product-card__media img {
  object-fit: cover;
  object-position: center;
}

/* Canonical frame final cascade. This block intentionally comes last so the
   legacy detail-shell and bounded-sidebar rules cannot reintroduce a
   source-ratio-dependent Pack or Open Code hero. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container > .breadcrumbs,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) > .container > .landing-related {
    grid-column: 1 / -1;
  }

  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__product-region {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15.3rem, .88fr);
    column-gap: var(--detail-gap);
    align-items: start;
    min-width: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__hero,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__hero,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(14rem, .83fr) minmax(0, 1.42fr);
    gap: var(--detail-gap);
    align-items: start;
    min-width: 0;
    padding: .15rem 0 3.1rem;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__hero,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero {
    grid-row: 2;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout {
    display: contents;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout > div,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout > main,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout > main {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    padding-top: 3.4rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main {
    grid-row: 2;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__aside,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__aside,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-aside {
    grid-column: 2;
    grid-row: 2 / span 2;
    position: sticky;
    top: 5.85rem;
    align-self: start;
    min-width: 0;
    padding-top: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside {
    grid-row: 1 / span 2;
  }

  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__visual,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview {
    width: 100%;
    height: clamp(13.5rem, 24vw, 19rem);
    min-height: 0;
    aspect-ratio: auto;
    border-radius: var(--detail-radius);
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover--wide,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__media-frame,
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__image {
    min-height: 0;
    height: 100%;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete .pack-cover__image,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__image,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview img {
    object-fit: contain;
    object-position: center;
    background: #eef3fb;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs {
    margin-top: .7rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs .gallery-thumb,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__thumb {
    flex: 0 0 3.45rem;
    width: 3.45rem;
    min-height: 0;
    height: 2.55rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover-thumbs img,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 880px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__product-region {
    display: block;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__hero,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__hero,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: .1rem;
    padding-bottom: 2.5rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout {
    display: block;
    padding-top: 2.5rem;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > main,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__layout > div,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__layout > main,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-layout > main {
    padding-top: 0;
  }
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__layout > .pack-detail__aside,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__aside,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__aside,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-aside {
    position: static;
    top: auto;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]) .pack-detail__cover--complete,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__cover,
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]) .open-code-detail__visual,
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) .landing-detail-hero__preview {
    height: min(15rem, 78vw);
  }
}
/* Final canonical vertical alignment with BarberFlow. */
@media (min-width: 881px) {
  .detail-shell.pack-detail:not([data-detail-type="promotion"]),
  .detail-shell.skill-detail:not([data-detail-type="promotion"]),
  .detail-shell.open-code-detail:not([data-detail-type="promotion"]),
  .detail-shell.landing-detail-page:not([data-detail-type="promotion"]) {
    padding-top: 2.6rem;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero > div:first-child {
    grid-column: 2;
    grid-row: 1;
  }
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero > div:last-child {
    grid-column: 1;
    grid-row: 1;
  }
}
@media (max-width: 880px) {
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero > div:first-child,
  .detail-shell.skill-detail:not([data-detail-type="promotion"]) .skill-detail__hero > div:last-child {
    grid-column: auto;
    grid-row: auto;
  }
}
.detail-shell:not([data-detail-type="promotion"]) .detail-gallery__image,
.detail-shell:not([data-detail-type="promotion"]) .gallery-thumb__image {
  object-fit: contain;
  object-position: center;
  background: #eef3fb;
}

.admin-publication-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #f6f9ff;
}
.admin-publication-control span { display: grid; gap: 3px; }
.admin-publication-control strong { color: #1d3b67; }
.admin-publication-control small { color: #68778e; font-size: .78rem; font-weight: 400; }
.admin-publication-control--published { background: #f3fbf6; border-color: #cdebd8; }
.admin-publication-control--published strong { color: #20734b; }
 .admin-approval-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr)) auto}.admin-approval-table{min-width:980px}.admin-approval-cover{display:block;width:64px;height:48px;object-fit:contain;border-radius:8px;background:#f4f7fb;border:1px solid #e2e8f0}.admin-status-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff7e6;color:#9a5b00;font-size:.72rem;font-weight:700;white-space:nowrap}.admin-approval-detail{margin-top:24px;padding:20px;border:1px solid #d9e4f2;border-radius:14px;background:#fbfdff}.admin-approval-detail h3,.admin-approval-detail h4{margin:0;color:#102342}.admin-approval-detail__grid{display:grid;grid-template-columns:minmax(160px,240px) 1fr;gap:20px;align-items:start}.admin-approval-detail__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-approval-detail__facts p{margin:0;padding:10px;border:1px solid #e6ebf2;border-radius:10px;background:#fff}.admin-approval-detail__facts strong,.admin-approval-detail__facts span{display:block}.admin-approval-detail__facts strong{font-size:.72rem;text-transform:uppercase;color:#718099}.admin-approval-detail__facts span{margin-top:5px;color:#304361}.admin-approval-detail__copy{margin-top:18px;color:#4b5c75}.admin-approval-detail__copy p{margin:10px 0}.admin-approval-history{margin-top:18px}.admin-approval-history ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}.admin-approval-history li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px;border:1px solid #e6ebf2;border-radius:10px;background:#fff}.admin-approval-history li small{grid-column:1/-1;color:#66758c}.admin-approval-action-form{display:grid;gap:12px;margin-top:18px}.admin-approval-action-form label{display:grid;gap:6px;color:#41516a;font-size:.86rem;font-weight:600}.admin-approval-action-form textarea{width:100%;border:1px solid #d8e0eb;border-radius:9px;padding:10px 11px;font:inherit;resize:vertical}.admin-approval-actions{display:flex;flex-wrap:wrap;gap:10px}.button--danger{border:1px solid #e7b9bd;background:#fff7f7;color:#a53b42}.button--danger:hover{background:#fff0f0}@media(max-width:900px){.admin-approval-filters{grid-template-columns:1fr 1fr}.admin-approval-detail__facts{grid-template-columns:1fr 1fr}}@media(max-width:560px){.admin-approval-filters{grid-template-columns:1fr}.admin-approval-detail__grid{grid-template-columns:1fr}.admin-approval-detail__facts{grid-template-columns:1fr}.admin-approval-actions{display:grid}.admin-approval-actions .button{width:100%}}
.admin-form-note { margin: 0; color: #68778e; font-size: .82rem; line-height: 1.45; }
@media (max-width: 560px) {
  .admin-publication-control { align-items: flex-start; flex-direction: column; }
}

/* Phase 3 seller product workspace. The API owns seller identity and these
   controls remain intentionally separate from the admin product editor. */
.seller-products__toolbar { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.seller-products__toolbar h2 { margin:0; color:#394451; font-size:1.05rem; }
.seller-products__toolbar span { color:#84909c; font-size:.72rem; }
.seller-products__filters { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.45rem; }
.seller-products__filters input, .seller-products__filters select { min-height:2.35rem; border:1px solid #d9e3ee; border-radius:.55rem; background:#fff; color:#586778; font:inherit; font-size:.68rem; padding:.45rem .6rem; }
.seller-products__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.seller-product-card { overflow:hidden; border:1px solid var(--line); border-radius:.95rem; background:#fff; box-shadow:0 8px 24px rgba(39,61,88,.035); }
.seller-product-card__cover { display:grid; height:10rem; place-items:center; overflow:hidden; background:#f5f8fc; color:#9aa6b4; font-size:.62rem; font-weight:800; letter-spacing:.08em; text-decoration:none; }
.seller-product-card__cover img { width:100%; height:100%; object-fit:contain; }
.seller-product-card__body { display:grid; gap:.42rem; padding:1rem 1.05rem 1.1rem; }
.seller-product-card__meta { display:flex; align-items:center; justify-content:space-between; gap:.6rem; color:#8a96a3; font-size:.62rem; font-weight:700; }
.seller-product-card h2 { min-height:2.55em; margin:0; color:#394451; font-size:.92rem; line-height:1.3; }
.seller-product-card p { margin:0; color:var(--brand); font-size:.9rem; font-weight:800; }
.seller-product-card small { color:#8a96a3; font-size:.64rem; }
.seller-product-card__actions { display:flex; gap:.5rem; margin-top:.35rem; }
.seller-product-card__actions .button { min-height:2.25rem; padding-inline:.7rem; font-size:.61rem; }
.seller-status { display:inline-flex; width:max-content; padding:.28rem .48rem; border-radius:999px; background:#f4f7fb; color:#63748a; font-size:.59rem; font-weight:800; white-space:nowrap; }
.seller-status.is-success { background:#eefaf3; color:#26724d; }
.seller-status.is-pending { background:#fff7e7; color:#956115; }
.seller-status.is-danger { background:#fff2f2; color:#a3434b; }
.seller-products__empty { display:grid; gap:.7rem; min-height:15rem; place-items:start; align-content:center; padding:2rem; border:1px dashed #d9e3ef; border-radius:1rem; background:#fbfdff; }
.seller-products__empty h2 { margin:0; color:#3b4857; font-size:1.2rem; }
.seller-products__empty p { max-width:34rem; margin:0; color:#7a8795; font-size:.78rem; line-height:1.55; }
.seller-products__feedback { margin-bottom:1rem; padding:.75rem .9rem; border:1px solid #cdebd8; border-radius:.65rem; background:#f3fbf6; color:#26724d; font-size:.75rem; }
.seller-products__feedback--error { border-color:#efd0d2; background:#fff7f7; color:#a3434b; }
.seller-form-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.seller-form-head a { color:var(--brand); font-size:.75rem; font-weight:700; text-decoration:none; }
.seller-product-form { display:grid; gap:1rem; }
.seller-product-form fieldset { display:grid; gap:1rem; margin:0; padding:0; border:0; min-width:0; }
.seller-form-section { display:grid; gap:.75rem; padding:1.2rem; border:1px solid var(--line); border-radius:.9rem; background:#fff; }
.seller-form-section h2 { margin:0; color:#394451; font-size:1.35rem; }
.seller-form-section label { display:grid; gap:.4rem; color:#586778; font-size:.72rem; font-weight:700; }
.seller-form-section input, .seller-form-section select, .seller-form-section textarea { width:100%; border:1px solid #d9e3ee; border-radius:.55rem; background:#fff; color:#394451; font:inherit; font-size:.78rem; padding:.68rem .72rem; box-sizing:border-box; }
.seller-form-section textarea { resize:vertical; line-height:1.5; }
.seller-form-section input:focus, .seller-form-section select:focus, .seller-form-section textarea:focus { outline:2px solid rgba(22,119,244,.2); border-color:#8ebbf1; }
.seller-form-section small { color:#8a96a3; font-size:.66rem; line-height:1.45; }
.seller-form-section input[type="file"] { padding:.45rem; color:#586778; font-size:.74rem; font-weight:600; cursor:pointer; }
.seller-form-section input[type="file"]::file-selector-button { margin-right:.85rem; padding:.58rem 1.1rem; border:0; border-radius:.5rem; background:#4c9bff; color:#fff; font:inherit; font-size:.72rem; font-weight:700; letter-spacing:.04em; cursor:pointer; transition:background .15s ease, transform .15s ease; }
.seller-form-section input[type="file"]:hover::file-selector-button { background:var(--brand); }
.seller-form-section input[type="file"]:active::file-selector-button { transform:translateY(1px); }
.account-center__hero .button--ghost[href="/meus-produtos/novo"] { border-color: rgba(22,119,244,.38); color: #3f5877; }
.account-center__hero .button--ghost[href="/meus-produtos/novo"]:hover { border-color: rgba(22,119,244,.6); background: var(--brand-pale); color: var(--brand); }
.seller-form-section input[type="file"]:focus-visible { outline:2px solid rgba(22,119,244,.35); outline-offset:2px; }
.seller-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.seller-form-grid--single { grid-template-columns:minmax(0,1fr); }
.seller-cover-preview { display:grid; width:min(100%,22rem); aspect-ratio:4 / 3; place-items:center; overflow:hidden; border:1px dashed #d4dfec; border-radius:.7rem; background:#f7faff; color:#98a5b4; font-size:.68rem; }
.seller-cover-preview img { width:100%; height:100%; object-fit:cover; }
.seller-form-section .seller-cover-hint { color:#a15c07; font-size:.7rem; font-weight:600; }
.seller-form-section .seller-cover-hint:empty { display:none; }
.seller-gallery-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(9rem,1fr)); gap:.65rem; list-style:none; margin:0; padding:0; }
.seller-gallery-list li { display:grid; gap:.35rem; padding:.55rem; border:1px solid #e4ebf3; border-radius:.65rem; background:#fbfdff; }
.seller-gallery-list img { width:100%; height:5.5rem; object-fit:contain; border-radius:.4rem; background:#f3f7fc; }
.seller-gallery-list span { color:#7b8896; font-size:.62rem; }
.seller-gallery-list .button { min-height:2rem; padding-inline:.5rem; font-size:.58rem; }
.seller-gallery-actions { display:flex; flex-wrap:wrap; gap:.35rem; }
.seller-gallery-empty { margin:0; color:#8a96a3; font-size:.68rem; }
.seller-external-fields { display:grid; gap:.75rem; padding-top:.4rem; border-top:1px solid #eef1f5; }
/* Entrega automática: interruptor, modos, estoque e mensagem */
.seller-delivery-block, .seller-delivery-panel { display:grid; gap:.75rem; }
.seller-delivery-block[hidden], .seller-delivery-panel[hidden], [data-delivery-panel][hidden] { display:none; }
.seller-delivery-block { padding-top:.4rem; border-top:1px solid #eef1f5; }
.seller-delivery-panel--message { padding:.85rem; border:1px solid #e4ebf3; border-radius:.75rem; background:#fbfdff; }
.seller-delivery-panel label em { color:#8a96a3; font-style:normal; font-weight:500; }
.seller-form-section .seller-switch { display:flex; align-items:flex-start; gap:.75rem; cursor:pointer; }
.seller-form-section .seller-switch input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.seller-switch__track { position:relative; flex:0 0 auto; width:2.4rem; height:1.35rem; margin-top:.1rem; border-radius:999px; background:#cfd9e6; transition:background .15s ease; }
.seller-switch__track::after { content:""; position:absolute; top:.15rem; left:.15rem; width:1.05rem; height:1.05rem; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(31,45,61,.25); transition:transform .15s ease; }
.seller-switch input:checked + .seller-switch__track { background:var(--brand); }
.seller-switch input:checked + .seller-switch__track::after { transform:translateX(1.05rem); }
.seller-switch input:focus-visible + .seller-switch__track { outline:2px solid rgba(22,119,244,.45); outline-offset:2px; }
.seller-switch__text { display:grid; gap:.2rem; }
.seller-switch__text strong { color:#394451; font-size:.82rem; }
.seller-switch--small .seller-switch__text strong { font-size:.76rem; }
.seller-form-section .seller-switch__text small { color:#7b8896; font-weight:500; }
.seller-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.seller-form-section .seller-mode-card { display:flex; align-items:flex-start; gap:.6rem; padding:.75rem .85rem; border:1px solid #dce5ef; border-radius:.7rem; background:#fff; cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.seller-form-section .seller-mode-card input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.seller-mode-card span { display:grid; gap:.15rem; }
.seller-mode-card strong { color:#394451; font-size:.76rem; }
.seller-form-section .seller-mode-card small { color:#7b8896; font-weight:500; }
.seller-form-section .seller-mode-card.is-selected { border-color:var(--brand); background:var(--brand-pale); }
.seller-form-section .seller-mode-card:focus-within { outline:2px solid rgba(22,119,244,.35); outline-offset:2px; }
.seller-stock { display:grid; gap:.8rem; }
.seller-stock-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.seller-stock-card { display:grid; gap:.15rem; padding:.7rem .85rem; border:1px solid #e1e9f2; border-radius:.7rem; background:#fff; }
.seller-stock-card span { color:#7b8896; font-size:.64rem; }
.seller-stock-card strong { color:#394451; font-size:1.25rem; }
.seller-stock__hint, .seller-stock__notice { margin:0; color:#7b8896; font-size:.7rem; }
.seller-stock__hint--error { color:#b3261e; }
.seller-stock__notice { color:var(--brand-dark); font-weight:600; }
.seller-stock__actions { display:flex; }
.seller-stock__title { margin:0; color:#394451; font-size:.76rem; font-weight:700; }
.seller-stock__title span { color:#8a96a3; font-weight:500; }
.seller-stock-list { display:grid; gap:.4rem; margin:0; padding:0; list-style:none; max-height:18rem; overflow:auto; }
.seller-stock-item { display:flex; align-items:center; gap:.6rem; padding:.45rem .6rem; border:1px solid #e4ebf3; border-radius:.55rem; background:#fff; }
.seller-stock-item code { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#394451; font-size:.7rem; }
.seller-stock-item .button { min-height:1.9rem; padding-inline:.6rem; font-size:.58rem; }
.seller-stock-state { flex:0 0 auto; padding:.15rem .5rem; border-radius:999px; background:#eef2f7; color:#586778; font-size:.6rem; font-weight:700; }
.seller-stock-state.is-available { background:#e6f6ee; color:#12805a; }
.seller-stock-state.is-reserved { background:#fff4dc; color:#9a6200; }
.seller-stock-state.is-consumed { background:#e8f0ff; color:var(--brand-dark); }
.seller-stock-empty { display:grid; gap:.2rem; padding:1rem; border:1px dashed #d4dfec; border-radius:.7rem; background:#fbfdff; color:#7b8896; font-size:.7rem; text-align:center; }
.seller-stock-empty strong { color:#586778; }
@media (max-width: 640px) { .seller-mode-grid, .seller-stock-cards { grid-template-columns:1fr; } }
/* Entrega automática vista pelo comprador */
.purchase-delivery-note { margin:0 0 .6rem; color:#586778; font-size:.78rem; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.purchase-delivery-note--outro { margin:.6rem 0 0; }
.purchase-inventory-list { display:grid; gap:.5rem; }
.purchase-delivery-item { display:flex; align-items:flex-start; gap:.6rem; padding:.7rem .8rem; border:1px solid #dce5ef; border-radius:.65rem; background:#f8fbff; }
.purchase-delivery-item code { flex:1 1 auto; min-width:0; color:#2f3a46; font-size:.78rem; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; }
.purchase-delivery-item .button { flex:0 0 auto; min-height:2rem; padding-inline:.7rem; font-size:.6rem; }
.seller-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; }
.seller-form-actions p { margin:0; color:#778492; font-size:.74rem; }
.seller-form-actions .button[disabled] { cursor:wait; opacity:.6; }
.seller-moderation-note { margin-bottom:1rem; padding:.85rem 1rem; border:1px solid #f0d9ae; border-radius:.75rem; background:#fffaf0; color:#76511c; }
.seller-moderation-note strong { display:block; font-size:.72rem; }
.seller-moderation-note p { margin:.35rem 0 0; font-size:.76rem; line-height:1.5; }
.seller-preview-panel { display:grid; gap:.8rem; padding:1.2rem; border:1px solid #cfe0f4; border-radius:.9rem; background:#f8fbff; }
.seller-preview-panel__head { display:flex; align-items:end; justify-content:space-between; gap:1rem; }
.seller-preview-panel__head h2 { margin:0; color:#394451; font-size:1.05rem; }
.seller-preview-panel__head > span { color:#7d8b9b; font-size:.68rem; }
.seller-preview-panel__card { display:grid; grid-template-columns:minmax(12rem, 18rem) 1fr; overflow:hidden; border:1px solid #e0e8f2; border-radius:.75rem; background:#fff; }
.seller-preview-panel__media { display:grid; min-height:10rem; place-items:center; overflow:hidden; background:#f3f7fc; color:#93a0af; font-size:.7rem; }
.seller-preview-panel__media img { width:100%; height:100%; object-fit:contain; }
.seller-preview-panel__body { display:grid; align-content:center; gap:.55rem; padding:1.1rem; }
.seller-preview-panel__body > span { color:#738399; font-size:.68rem; font-weight:700; text-transform:uppercase; }
.seller-preview-panel__body h3 { margin:0; color:#394451; font-size:1.15rem; }
.seller-preview-panel__body p { margin:0; color:#728196; font-size:.78rem; line-height:1.5; }
.seller-preview-panel__body strong { color:var(--brand); font-size:1rem; }
@media (max-width:760px) { .seller-products__grid { grid-template-columns:1fr; } .seller-products__toolbar { align-items:flex-start; flex-direction:column; } .seller-products__filters { width:100%; justify-content:stretch; } .seller-products__filters input, .seller-products__filters select { flex:1 1 100%; min-width:0; } .seller-form-grid { grid-template-columns:1fr; } .seller-form-actions { display:grid; } .seller-form-actions .button { width:100%; } .seller-preview-panel__head { align-items:flex-start; flex-direction:column; } .seller-preview-panel__card { grid-template-columns:1fr; } .seller-preview-panel__media { min-height:12rem; } }

/* Phase 4 seller sales read-only dashboard. No seller control is exposed
   here: the page is intentionally limited to attributed sale visibility. */
.seller-sales__metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; margin-bottom:1.1rem; }
.seller-sales__metric { display:grid; gap:.35rem; min-height:8.5rem; padding:1rem 1.05rem; border:1px solid var(--line); border-radius:.9rem; background:#fff; box-shadow:0 8px 24px rgba(39,61,88,.035); }
.seller-sales__metric > span { color:#718096; font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.seller-sales__metric strong { color:#344458; font-size:1.45rem; letter-spacing:-.03em; }
.seller-sales__metric small { color:#68778e; font-size:.72rem; }
.seller-sales__metric em { color:#8a96a3; font-size:.64rem; font-style:normal; line-height:1.4; }
.seller-sales__metric.is-success { border-color:#ccebd9; background:#fbfffc; }
.seller-sales__metric.is-success strong { color:#1e7a4c; }
.seller-sales__metric.is-pending { border-color:#f0dfbb; background:#fffdf8; }
.seller-sales__metric.is-pending strong { color:#94651c; }
.seller-sales__metric.is-neutral { background:#fbfdff; }
.seller-sales__financial-note { display:grid; gap:.35rem; margin:0 0 1.1rem; padding:1rem 1.05rem; border:1px dashed #d9e3ef; border-radius:.9rem; background:#fbfdff; color:#66778b; }
.seller-sales__financial-note strong { color:#3b4a5c; font-size:.82rem; }
.seller-sales__financial-note p { margin:0; font-size:.72rem; line-height:1.55; }
.seller-sales__financial { display:grid; gap:1rem; margin:0 0 1.1rem; padding:1rem 1.05rem; border:1px solid #d8e8f5; border-radius:.9rem; background:#fafdff; }
.seller-sales__financial h2 { margin:0; color:#394451; font-size:1.05rem; }
.seller-sales__financial p { margin:.3rem 0 0; color:#78879a; font-size:.72rem; }
.seller-sales__financial-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.65rem; }
.seller-sales__financial-grid > div { display:grid; gap:.25rem; padding:.7rem; border:1px solid #e0eaf2; border-radius:.65rem; background:#fff; }
.seller-sales__financial-grid span { color:#718096; font-size:.62rem; font-weight:800; text-transform:uppercase; }
.seller-sales__financial-grid strong { color:#344458; font-size:.95rem; }
.seller-sales__payout-profile,.seller-sales__payout-request,.seller-sales__payout-history { display:grid; gap:1rem; margin:0 0 1.1rem; padding:1rem 1.05rem; border:1px solid #d8e8f5; border-radius:.9rem; background:#fff; }
.seller-sales__payout-profile form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto; gap:.75rem; align-items:end; }
.seller-sales__payout-profile label { display:grid; gap:.35rem; color:#718096; font-size:.72rem; font-weight:700; }
.seller-sales__payout-profile input,.seller-sales__payout-profile select { width:100%; min-height:2.6rem; padding:.5rem .65rem; border:1px solid #ccd8e6; border-radius:.65rem; background:#fff; }
.seller-sales__payout-profile-current { grid-column:1/-1; margin:0; color:#718096; font-size:.72rem; }
.seller-sales__payout-request { grid-template-columns:1fr auto; align-items:center; }
.seller-sales__payout-request small,.seller-sales__payout-message { grid-column:1/-1; margin:0; color:#718096; font-size:.72rem; }
.seller-sales__payout-message { color:#146c43; }
.seller-sales__payout-history .admin-table-wrap { overflow-x:auto; }
.seller-sales__filters { display:grid; grid-template-columns:minmax(12rem,2fr) repeat(4,minmax(8rem,1fr)) auto auto; align-items:end; gap:.55rem; margin-bottom:1.4rem; padding:1rem; border:1px solid var(--line); border-radius:.9rem; background:#fbfdff; }
.seller-sales__filters label { display:grid; gap:.35rem; min-width:0; }
.seller-sales__filters label > span { color:#65758b; font-size:.66rem; font-weight:800; }
.seller-sales__filters input, .seller-sales__filters select { width:100%; min-height:2.35rem; box-sizing:border-box; border:1px solid #d9e3ee; border-radius:.55rem; background:#fff; color:#46566b; font:inherit; font-size:.7rem; padding:.45rem .55rem; }
.seller-sales__filters .button { min-height:2.35rem; padding-inline:.7rem; font-size:.62rem; white-space:nowrap; }
.seller-sales__heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:.75rem; }
.seller-sales__heading h2 { margin:0; color:#394451; font-size:1.08rem; }
.seller-sales__heading > span { color:#8a96a3; font-size:.68rem; }
.seller-sales__list { display:grid; gap:.55rem; }
.seller-sales__row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; border:1px solid var(--line); border-radius:.75rem; background:#fff; }
.seller-sales__row-main { min-width:0; }
.seller-sales__order { margin:0 0 .28rem; color:#8190a1; font-size:.62rem; font-weight:800; letter-spacing:.06em; }
.seller-sales__row h3 { overflow:hidden; margin:0; color:#3b4857; font-size:.88rem; text-overflow:ellipsis; white-space:nowrap; }
.seller-sales__buyer { overflow:hidden; margin:.25rem 0 0; color:#8290a0; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.seller-sales__row-meta { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; color:#7d8a9a; font-size:.68rem; white-space:nowrap; }
.seller-sales__row-meta strong { color:var(--brand); font-size:.85rem; }
.seller-sales__row-meta .button { min-height:2.15rem; padding-inline:.65rem; font-size:.58rem; }
.seller-sales__feedback { display:grid; gap:.45rem; margin-bottom:1rem; padding:1rem; border:1px solid #efd0d2; border-radius:.75rem; background:#fff7f7; color:#a3434b; }
.seller-sales__feedback h2 { margin:0; font-size:1rem; }
.seller-sales__feedback p { margin:0; font-size:.75rem; }
.seller-sales__empty { display:grid; gap:.7rem; min-height:15rem; place-items:start; align-content:center; padding:2rem; border:1px dashed #d9e3ef; border-radius:1rem; background:#fbfdff; }
.seller-sales__empty h2 { margin:0; color:#3b4857; font-size:1.2rem; }
.seller-sales__empty p { max-width:34rem; margin:0; color:#7a8795; font-size:.78rem; line-height:1.55; }
.seller-sales__pagination { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1rem; color:#7d8b9b; font-size:.7rem; }
.seller-sales__pagination > div { display:flex; gap:.45rem; }
.seller-sales__pagination .button { min-height:2.25rem; padding-inline:.65rem; font-size:.58rem; }
.seller-sale-detail { display:grid; gap:1.2rem; padding:1.2rem; border:1px solid var(--line); border-radius:1rem; background:#fff; }
.seller-sale-detail__head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.seller-sale-detail__head h2 { margin:0; color:#394451; font-size:1.4rem; }
.seller-sale-detail__head p:not(.section-kicker) { margin:.35rem 0 0; color:#8290a0; font-size:.75rem; }
.seller-sale-detail__facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin:0; }
.seller-sale-detail__facts > div { padding:.8rem; border:1px solid #e5ebf2; border-radius:.65rem; background:#fbfdff; }
.seller-sale-detail__facts dt { color:#8190a1; font-size:.62rem; font-weight:800; text-transform:uppercase; }
.seller-sale-detail__facts dd { margin:.35rem 0 0; color:#3b4857; font-size:.82rem; font-weight:700; }
.seller-sale-detail__note { margin:0; padding:.85rem; border-radius:.65rem; background:#f7faff; color:#6f7f93; font-size:.72rem; line-height:1.5; }
@media (max-width:1100px) { .seller-sales__filters { grid-template-columns:repeat(3,minmax(0,1fr)); } .seller-sales__filters label:first-child { grid-column:1/-1; } }
@media (max-width:760px) { .seller-sales__metrics { grid-template-columns:1fr; } .seller-sales__financial-grid { grid-template-columns:1fr 1fr; } .seller-sales__payout-profile form,.seller-sales__payout-request { grid-template-columns:1fr; } .seller-sales__payout-request .button { width:100%; } .seller-sales__filters { grid-template-columns:1fr 1fr; } .seller-sales__filters label:first-child { grid-column:1/-1; } .seller-sales__filters .button { width:100%; } .seller-sales__heading { align-items:flex-start; flex-direction:column; } .seller-sales__row { align-items:stretch; flex-direction:column; } .seller-sales__row-meta { align-items:flex-start; justify-content:space-between; flex-wrap:wrap; } .seller-sales__row-meta .button { margin-left:auto; } .seller-sales__pagination { align-items:flex-start; flex-direction:column; } .seller-sale-detail__facts { grid-template-columns:1fr 1fr; } }
@media (max-width:420px) { .seller-sales__filters { grid-template-columns:1fr; } .seller-sale-detail__facts { grid-template-columns:1fr; } .seller-sales__pagination > div { display:grid; grid-template-columns:1fr 1fr; width:100%; } .seller-sales__pagination .button { width:100%; } }

/* Featured shelf contract: render the full featured catalog as two desktop
   rows of six cards while preserving the existing mobile/tablet behavior. */
@media (min-width: 1051px) {
  .product-row--featured {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: auto;
    gap: .75rem;
    overflow: visible;
  }
}

/* ===== Prateleiras por categoria da página inicial =====
   Duas fileiras com rolagem lateral por páginas, setas e bolinhas (seis colunas no desktop). Cards compactos com a
   capa no quadro 4:3 preenchido; os dados são os mesmos dos cards de sempre. */
.marketplace-section--shelf { --shelf-cols: 6; --shelf-gap: 1rem; }
.marketplace-section--shelf + .marketplace-section--shelf { margin-top: 3.2rem; }
.marketplace-section--shelf .shelf-heading { align-items: center; }
.marketplace-section--shelf .shelf-heading h2 { font-size: 1.45rem; }
.shelf-dots { display: flex; gap: .3rem; align-items: center; }
.shelf-dots span { width: .4rem; height: .4rem; border-radius: 50%; background: #d3dae3; transition: background .15s ease, transform .15s ease; }
.shelf-dots span.is-active { background: var(--brand); transform: scale(1.25); }
.shelf-carousel { position: relative; }
.marketplace-section .product-row.product-row--shelf {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-template-columns: unset;
  grid-auto-columns: calc((100% - (var(--shelf-cols) - 1) * var(--shelf-gap)) / var(--shelf-cols));
  gap: var(--shelf-gap);
  margin-top: 1.1rem;
  padding: .15rem .05rem .35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-row--shelf::-webkit-scrollbar { display: none; }
.product-row--shelf > .product-card { scroll-snap-align: start; border-radius: .85rem; }
.product-row--shelf .product-card__preview { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
.product-row--shelf .product-card__body { min-height: 0; padding: .7rem .8rem .75rem; }
.product-row--shelf .product-card__meta,
.product-row--shelf .product-description,
.product-row--shelf .product-open { display: none; }
.product-row--shelf .product-title { display: -webkit-box; min-height: 2.3rem; margin: 0; overflow: hidden; font-size: .8rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-row--shelf .product-card__footer { margin-top: .45rem; padding-top: .45rem; }
.marketplace-section--shelf .section-divider { margin-top: 1.4rem; }
.shelf-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: #394451; box-shadow: 0 6px 18px rgba(31, 45, 61, .16); cursor: pointer; transform: translateY(-50%); transition: color .15s ease, border-color .15s ease; }
.shelf-arrow[hidden] { display: none; }
.shelf-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shelf-arrow:hover { color: var(--brand); border-color: rgba(22, 119, 244, .4); }
.shelf-arrow:focus-visible { outline: 2px solid rgba(22, 119, 244, .5); outline-offset: 2px; }
.shelf-arrow--prev { left: -1.2rem; }
.shelf-arrow--next { right: -1.2rem; }
@media (max-width: 1100px) { .marketplace-section--shelf { --shelf-cols: 4; } }
@media (max-width: 820px) { .marketplace-section--shelf { --shelf-cols: 3; } .shelf-arrow--prev { left: .3rem; } .shelf-arrow--next { right: .3rem; } }
@media (max-width: 560px) { .marketplace-section--shelf { --shelf-cols: 2; --shelf-gap: .7rem; } .marketplace-section--shelf .shelf-heading h2 { font-size: 1.25rem; } }

/* Chat comprador <-> vendedor (compras e vendas) */
.order-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; margin: 1.4rem 0; border: 1px solid var(--line-strong); border-radius: .85rem; background: var(--paper); overflow: hidden; }
.order-chat[hidden], .order-chat__form[hidden], .order-chat__notice[hidden], .order-chat__state[hidden] { display: none; }
.order-chat__head { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--mist); }
.order-chat__head h3 { flex: 1; margin: 0; color: var(--ink); font-size: .88rem; }
.order-chat__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); }
.order-chat__state { padding: .2rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-size: .62rem; font-weight: 700; }
.order-chat__list { display: flex; flex-direction: column; gap: .6rem; max-height: 26rem; min-height: 9rem; padding: 1rem; overflow-y: auto; background: #fafcff; }
.order-chat__empty { margin: auto; color: var(--muted); font-size: .76rem; text-align: center; }
.order-chat__bubble { max-width: min(34rem, 82%); padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); color: var(--ink); font-size: .8rem; line-height: 1.5; }
.order-chat__bubble p, .order-chat__system p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-chat__bubble--theirs { align-self: flex-start; border-top-left-radius: .25rem; background: #f1f4f8; }
.order-chat__bubble--mine { align-self: flex-end; border-top-right-radius: .25rem; border-color: #cfe3fd; background: var(--brand-pale); }
.order-chat__bubble time, .order-chat__system time { display: block; margin-top: .3rem; color: var(--muted); font-size: .62rem; text-align: right; }
.order-chat__bubble a, .order-chat__system a { color: var(--brand-dark); text-decoration: underline; }
.order-chat__system { align-self: stretch; padding: .7rem .85rem; border: 1px solid #cfe3fd; border-left: 3px solid var(--brand); border-radius: .6rem; background: #eef6ff; color: #3d4c5b; font-size: .74rem; line-height: 1.55; }
.order-chat__system header { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.order-chat__badge { padding: .12rem .5rem; border-radius: .35rem; background: #d9eaff; color: var(--brand-dark); font-size: .6rem; font-weight: 700; letter-spacing: .04em; }
.order-chat__badge--warn { background: #fff0d6; color: #a15c00; }
.order-chat__clamp.is-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.order-chat__more { margin: .2rem 0 0; padding: 0; border: 0; background: none; color: var(--brand-dark); font: inherit; font-size: .68rem; font-weight: 600; cursor: pointer; }
.order-chat__notice { margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--line); background: #fff8ec; color: #8a5a10; font-size: .72rem; }
.order-chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .6rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.order-chat__form textarea { min-height: 2.8rem; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font: inherit; font-size: .8rem; resize: vertical; }
.order-chat__form textarea:focus { outline: 2px solid #b9d8fd; border-color: var(--brand); }
.order-chat__form small { grid-column: 1 / -1; color: var(--muted); font-size: .62rem; }
@media (max-width: 640px) { .order-chat__bubble { max-width: 92%; } .order-chat__form { grid-template-columns: 1fr; } }
.order-chat__system--important { border-left-color: #f2a33a; background: #fff9ef; border-color: #f6dcae; }
.order-chat__unread { display: inline-grid; min-width: 1.15rem; height: 1.15rem; margin-left: .45rem; padding: 0 .3rem; place-items: center; border-radius: 999px; background: #e5484d; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1; vertical-align: middle; }
.auth-user-button { position: relative; }
.auth-user-button[data-unread]::after { content: ""; position: absolute; top: .2rem; right: .2rem; width: .65rem; height: .65rem; border: 2px solid #fff; border-radius: 50%; background: #e5484d; }
.seller-deliver-form { display: grid; gap: .55rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid #dceafb; border-radius: .75rem; background: #f7fbff; }
.seller-deliver-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .78rem; font-weight: 600; }
.seller-deliver-form textarea { min-height: 6rem; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 400; resize: vertical; }
.seller-deliver-form small { color: var(--muted); font-size: .66rem; }
.seller-deliver-form button { justify-self: start; }
.seller-deliver-form__error { margin: 0; padding: .55rem .75rem; border-radius: .5rem; background: #fdeeee; color: #a12b2f; font-size: .74rem; }
.seller-deliver-form__notice { margin: 1.2rem 0; padding: .65rem .85rem; border-radius: .6rem; background: #eaf8f1; color: #0f7a54; font-size: .76rem; }
.account-center__nav a > .order-chat__unread { justify-self: start; width: fit-content; margin-left: 0; }
.account-center__nav a:has(> .order-chat__unread) { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.seller-price-hint { display: block; margin-top: .3rem; color: var(--muted); font-size: .66rem; }
.seller-price-error { display: block; margin-top: .3rem; color: #d92d20; font-size: .72rem; font-weight: 600; }
.seller-price-error[hidden] { display: none; }
input[name="price_reais"][aria-invalid="true"] { border-color: #d92d20; }
.seller-form-section small.seller-price-error, .seller-products .seller-form-section small.seller-price-error { color: #d92d20; font-size: .74rem; font-weight: 700; }

/* Cartão do vendedor (página do produto) */
.trust-card--seller { display: grid; justify-items: center; gap: .15rem; }
.seller-card__avatar { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin-bottom: .45rem; overflow: hidden; border: 2px solid #cfe3fd; border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: 1.05rem; font-weight: 700; }
.seller-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-card__label { margin: 0; color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.trust-card--seller h2.seller-card__name { margin: 0; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.seller-card__online { display: inline-flex; align-items: center; gap: .35rem; margin: .3rem 0 0; padding: .15rem .6rem; border: 1px solid #cdeedd; border-radius: 999px; background: #eefaf4; color: #0f7a54; font-size: .66rem; font-weight: 600; }
.seller-card__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #13a775; box-shadow: 0 0 0 3px rgba(19,167,117,.18); }
.seller-card__stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .9rem; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); width: 100%; color: var(--ink-soft); font-size: .74rem; }
.seller-card__stat { display: inline-flex; align-items: center; gap: .3rem; }
.seller-card__stat b { color: var(--ink); }
.seller-card__stat small { color: var(--muted); font-size: .7rem; }
.seller-card__stat--new { color: var(--brand-dark); font-weight: 600; }
.seller-card__stars { display: inline-flex; letter-spacing: .05em; font-size: .86rem; }
.seller-card__stars span { color: #d9dee6; }
.seller-card__stars span.is-on { color: #f5a524; }
.seller-card__notes { display: grid; gap: .3rem; margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); width: 100%; list-style: none; text-align: left; color: var(--ink-soft); font-size: .7rem; }
.seller-card__notes li::before { content: ""; display: inline-block; width: .35rem; height: .35rem; margin-right: .45rem; border-radius: 50%; background: var(--green); vertical-align: middle; }

/* Avaliação do vendedor (chat do comprador) */
.order-review { margin: 1.1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: .85rem; background: var(--paper); }
.order-review h3 { margin: 0 0 .25rem; color: var(--ink); font-size: .9rem; }
.order-review p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .76rem; }
.order-review form { display: grid; gap: .6rem; }
.order-review__stars { display: flex; gap: .2rem; }
.order-review__star { padding: 0; border: 0; background: none; color: #d9dee6; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.order-review__star.is-on { color: #f5a524; }
button.order-review__star:hover { transform: scale(1.12); }
.order-review textarea { min-height: 4.4rem; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font: inherit; font-size: .8rem; resize: vertical; }
.order-review button[type=submit] { justify-self: start; }
.order-review__comment { padding: .55rem .75rem; border-radius: .6rem; background: var(--mist); white-space: pre-wrap; overflow-wrap: anywhere; }
.order-review__thanks { color: #0f7a54; font-weight: 600; }
.order-review p.order-review__error { margin: 0; color: #d92d20; font-weight: 600; }
.order-review__error[hidden] { display: none; }

/* Perfil público do vendedor (Minhas vendas) */
.seller-profile-card { display: grid; gap: 1rem; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid #dceafb; border-radius: .9rem; background: #f7fbff; }
.seller-profile-card__head h2 { margin: .1rem 0 .2rem; color: var(--ink); font-size: 1.05rem; }
.seller-profile-card__head p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.seller-profile-card__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.seller-profile-card__photo { display: grid; justify-items: center; gap: .55rem; }
.seller-profile-card__avatar { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; overflow: hidden; border: 2px solid #cfe3fd; border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: 1.3rem; font-weight: 700; }
.seller-profile-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-profile-card__remove { padding: 0; border: 0; background: none; color: #a12b2f; font: inherit; font-size: .7rem; cursor: pointer; text-decoration: underline; }
.seller-profile-card__form { display: grid; gap: .5rem; max-width: 32rem; }
.seller-profile-card__form label { display: grid; gap: .3rem; color: var(--ink); font-size: .78rem; font-weight: 600; }
.seller-profile-card__form input[type=text], .seller-profile-card__form input:not([type]) { padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font: inherit; font-size: .84rem; }
.seller-profile-card__form small { color: var(--muted); font-size: .66rem; }
.seller-profile-card__form .seller-profile-card__check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.seller-profile-card__notice { margin: 0; padding: .5rem .7rem; border-radius: .5rem; background: #eaf8f1; color: #0f7a54; font-size: .74rem; }
.seller-profile-card__notice[hidden] { display: none; }
.seller-profile-card__form button[type=submit] { justify-self: start; }
@media (max-width: 640px) { .seller-profile-card__body { grid-template-columns: 1fr; } .seller-profile-card__photo { justify-items: start; } }

/* Dúvidas sobre o produto (visitantes) */
.detail-questions .pq-hint { margin: .6rem 0 0; color: #8a939d; font-size: .68rem; }
.detail-questions .pq-notice { margin: .7rem 0 0; padding: .55rem .75rem; border-radius: .5rem; font-size: .76rem; }
.detail-questions .pq-notice[data-kind="ok"] { background: #eaf8f1; color: #0f7a54; }
.detail-questions .pq-notice[data-kind="error"] { background: #fdeeee; color: #a12b2f; font-weight: 600; }
.detail-questions .pq-notice[hidden] { display: none; }
.pq-list { display: grid; gap: .8rem; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.pq-item { display: grid; gap: .3rem; }
.pq-item p { margin: 0; overflow-wrap: anywhere; }
.pq-item__question { color: var(--ink); font-size: .84rem; font-weight: 600; }
.pq-item__answer { color: var(--ink-soft); font-size: .8rem; line-height: 1.55; }
.pq-item__answer b { color: var(--brand-dark); }
.detail-questions .pq-item small { margin: 0; color: var(--muted); font-size: .66rem; }
.pq-empty { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }

/* Caixa de perguntas do vendedor (Minhas vendas) */
.seller-questions { display: grid; gap: .9rem; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid #f6dcae; border-radius: .9rem; background: #fffaf2; }
.seller-questions__head h2 { margin: .1rem 0 .2rem; color: var(--ink); font-size: 1.05rem; }
.seller-questions__head p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.seller-questions__count { margin-left: .4rem; padding: .12rem .55rem; border-radius: 999px; background: #e5484d; color: #fff; font-size: .62rem; font-weight: 700; vertical-align: middle; }
.seller-questions__list { display: grid; gap: .7rem; }
.seller-question { display: grid; gap: .4rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); }
.seller-question.is-pending { border-color: #f2c77a; }
.seller-question header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; }
.seller-question__badge { padding: .12rem .55rem; border-radius: 999px; background: #eaf8f1; color: #0f7a54; font-size: .62rem; font-weight: 700; }
.seller-question__badge.is-pending { background: #fff0d6; color: #a15c00; }
.seller-question__text { margin: 0; color: var(--ink); font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.seller-question small { color: var(--muted); font-size: .66rem; }
.seller-question__answer { margin: 0; padding: .5rem .7rem; border-radius: .5rem; background: var(--mist); color: var(--ink-soft); font-size: .78rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.seller-question__form { display: grid; gap: .5rem; margin-top: .3rem; }
.seller-question__form textarea { min-height: 4.4rem; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: .6rem; color: var(--ink); font: inherit; font-size: .8rem; resize: vertical; }
.seller-question__form button { justify-self: start; }
.seller-question__error { margin: 0; color: #d92d20; font-size: .74rem; font-weight: 600; }
.seller-question__error[hidden] { display: none; }
.seller-question details summary { color: var(--brand-dark); font-size: .72rem; font-weight: 600; cursor: pointer; }

/* Esqueleto neutro do cartão do vendedor (aparece só na primeira visita, nunca a logo da plataforma) */
.trust-card--loading { min-height: 15rem; align-content: start; }
.seller-skeleton { display: block; border-radius: .5rem; background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%); background-size: 200% 100%; animation: seller-skeleton-shimmer 1.2s ease-in-out infinite; }
.seller-card__avatar.seller-skeleton { border-color: transparent; border-radius: 50%; }
.seller-skeleton--label { width: 4.5rem; height: .6rem; }
.seller-skeleton--name { width: 9rem; height: 1.1rem; margin-top: .35rem; }
.seller-skeleton--stats { width: 70%; height: .9rem; margin-top: 1.1rem; }
@keyframes seller-skeleton-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .seller-skeleton { animation: none; } }

/* Ícones do diálogo de pagamento: marca do Pix (verde) e cartão de crédito (azul) */
.payment-method-option--disabled, .payment-method-option--disabled:hover { opacity: .55; cursor: not-allowed; transform: none; background: #f6f7f9; border-color: var(--line); }
.payment-method-option--disabled small { color: #b4533a; font-weight: 700; }
.payment-method-option__icon svg { display: block; width: 1.4rem; height: 1.4rem; }
.payment-method-option__icon--pix { background: #e8f8f5; color: #32bcad; }
.payment-method-option__icon--card { background: var(--brand-pale); color: var(--brand); }

/* Hero no celular: as ondas azuis ocupam toda a altura da seção (sem cortes retos no meio da tela),
   suavizam em branco nas pontas e deixam o centro limpo para o texto. */
@media (max-width: 760px) {
  .hero { min-height: 26.5rem; padding: 4.2rem 0 3.8rem; }
  .hero__silks::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 66% 60% at 50% 50%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 55%, rgba(255,255,255,0) 100%); }
  .hero__silk { top: 0; bottom: 0; height: 100%; width: auto; opacity: .68; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%); }
  .hero__silk--left { left: -62%; right: auto; }
  .hero__silk--right { right: -62%; left: auto; }
}

/* Notificações push: aviso curto na tela */
.push-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 80; width: min(24rem, calc(100vw - 2rem)); padding: .8rem 1rem; border-radius: .8rem; background: #1f2733; color: #fff; font-size: .78rem; line-height: 1.45; box-shadow: 0 15px 35px rgba(20,28,40,.28); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.push-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Ondas azuis do topo como fundo CSS (e não <img>): o Safari do iPhone escolhia essa <img> como ícone ao adicionar à Tela de Início. */
.hero__silk { display: block; aspect-ratio: 1349 / 1166; background: no-repeat center / 100% 100%; }
.hero__silk--left { background-image: url("/assets/hero-silk-left.webp"); }
.hero__silk--right { background-image: url("/assets/hero-silk-right.webp"); }

/* Capas dos cards: a maioria das capas é quadrada (1254x1254) e o quadro 4:3 cortava o título, que fica no topo.
   Quadro um pouco mais alto (6:5) e imagem ancorada mais para cima, para o nome do produto aparecer inteiro. */
.product-card__preview,
.category-product-card__media,
.product-row--featured .product-card__preview,
.product-row--homepage-category .product-card__preview,
.packs-catalog__grid .product-card__preview,
.open-code-grid .product-card__preview,
.skills-catalog__grid .product-card__preview,
.product-row--shelf .product-card__preview {
  aspect-ratio: 6 / 5;
}
.product-card__preview .product-cover,
.product-card__preview .pack-cover__image,
.product-row--shelf .product-card__preview .product-cover,
.category-product-card__media img {
  object-position: center 18%;
}

/* Prateleira "Em destaque": 12 produtos em 2 fileiras no desktop (6 colunas) e linha do vendedor no pé de cada cartão.
   No tablet e no celular só os 6 primeiros aparecem, para a prateleira não ficar longa demais. */
.product-card__seller { display: flex; align-items: center; gap: .4rem; min-width: 0; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid #eff1f4; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.product-card__seller img,
.product-card__seller-initial { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; background: #f2f6fc; }
.product-card__seller-initial { display: grid; place-items: center; color: #6781a2; font-size: .64rem; font-weight: 700; }
.product-card__seller-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__seller-sales { flex: 0 0 auto; }
@media (max-width: 1050px) {
  #em-destaque .product-row--featured .product-card:nth-child(n+7) { display: none; }
}

/* Cupom de desconto na escolha da forma de pagamento. */
.payment-coupon { margin-top: 1.1rem; }
.payment-coupon__toggle { padding: 0; border: 0; background: none; color: var(--brand); font-size: .84rem; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.payment-coupon__form { display: flex; gap: .5rem; margin-top: .6rem; }
.payment-coupon__form[hidden] { display: none; }
.payment-coupon__form input { flex: 1 1 auto; min-width: 0; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: .65rem; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.payment-coupon__form input:focus-visible { border-color: rgba(22,119,244,.55); outline: 2px solid rgba(22,119,244,.18); }
.payment-coupon__form .button { flex: 0 0 auto; padding-inline: 1rem; }
.payment-coupon__status { margin: .55rem 0 0; font-size: .82rem; line-height: 1.4; color: var(--ink-soft); }
.payment-coupon__status[hidden] { display: none; }
.payment-coupon__status.is-error { color: #b42318; }
.payment-coupon__status.is-success { color: #0f7a43; font-weight: 600; }

/* ---- REPO AI: painel da categoria Claude (/claude) ---- */
.ai-page { padding: 2.2rem 0 4rem; }
.ai-hero { margin-bottom: 1.8rem; }
.ai-hero h1 { margin: .25rem 0 .5rem; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.ai-hero p:not(.section-kicker) { max-width: 46rem; margin: 0; color: var(--ink-soft); line-height: 1.6; }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.ai-card { border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); padding: 1.3rem 1.4rem; box-shadow: 0 8px 24px rgba(30, 50, 90, .05); }
.ai-card--wide { grid-column: 1 / -1; }
.ai-card__eyebrow { margin: 0 0 .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.ai-card__hint { margin: .7rem 0 1rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.ai-card__alert { margin: .8rem 0; padding: .7rem .9rem; border-radius: .6rem; background: #fff1f0; color: #b3261e; font-size: .9rem; }
.ai-card__alert--info { background: var(--brand-pale); color: var(--brand-dark); }
.ai-balance { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .4rem; flex-wrap: wrap; }
.ai-balance strong { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.ai-balance span { color: var(--ink-soft); font-size: .95rem; }
.ai-meter { height: .55rem; margin: .9rem 0 .2rem; border-radius: 999px; background: var(--mist); overflow: hidden; }
.ai-meter span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.ai-key { margin: .2rem 0 .9rem; padding: .8rem .9rem; border: 1px dashed var(--line-strong); border-radius: .6rem; background: var(--mist); overflow-x: auto; }
.ai-key code { font-size: .88rem; word-break: break-all; white-space: pre-wrap; }
.ai-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ai-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ai-tabs button { appearance: none; border: 0; background: none; padding: .6rem 1rem; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ai-tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.ai-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .8rem; color: var(--ink); line-height: 1.55; }
.ai-code { position: relative; margin: .5rem 0 0; }
.ai-code pre { margin: 0; padding: .9rem 6.2rem .9rem 1rem; border-radius: .6rem; background: #0e1626; color: #dbe7ff; overflow-x: auto; font-size: .82rem; line-height: 1.55; }
.ai-code .button { position: absolute; top: .5rem; right: .5rem; padding: .35rem .7rem; font-size: .72rem; }
.ai-models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ai-models li { display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .6rem; }
.ai-models span { color: var(--ink-soft); font-size: .86rem; }
.ai-models code { font-size: .78rem; color: var(--muted); }
.ai-section { margin-top: 2.4rem; scroll-margin-top: 5rem; }
.ai-section h2 { margin: 0 0 1rem; font-size: 1.5rem; letter-spacing: -.01em; }
.ai-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ai-package { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); }
.ai-package__label { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.ai-package__amount { margin: .2rem 0 0; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.ai-package__unit { margin: 0 0 .9rem; font-size: .8rem; color: var(--ink-soft); }
.ai-package__price { margin: 0; font-size: 1.6rem; font-weight: 700; }
.ai-package__per { margin: .1rem 0 1rem; font-size: .8rem; color: var(--muted); }
.ai-package .button { width: 100%; margin-top: auto; justify-content: center; }
.ai-fineprint { margin: 1rem 0 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.ai-fineprint--legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) {
  .ai-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ai-grid, .ai-models, .ai-packages { grid-template-columns: 1fr; }
  .ai-card { padding: 1.1rem 1rem; }
  .ai-code pre { padding-right: 1rem; padding-bottom: 3rem; }
  .ai-code .button { top: auto; bottom: .5rem; }
}

/* ---- REPO AI: página de vendas /claude (vitrine pública) ---- */
.ai-hero--landing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 2.6rem; }
.ai-hero--landing h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; }
.ai-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.1rem; }
.ai-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.ai-chips li { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .78rem; color: var(--ink-soft); }
.ai-term { position: relative; border-radius: 1rem; background: #0b1220; color: #dbe7ff; box-shadow: 0 30px 60px rgba(14, 40, 90, .28), 0 0 0 1px rgba(111, 176, 255, .18); overflow: hidden; isolation: isolate; }
.ai-term::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(22, 119, 244, .45), transparent 65%); filter: blur(10px); z-index: -1; animation: aiGlow 9s ease-in-out infinite alternate; }
.ai-term__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ai-term__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #3b4a66; }
.ai-term__bar i:nth-child(1) { background: #ff5f57; }
.ai-term__bar i:nth-child(2) { background: #febc2e; }
.ai-term__bar i:nth-child(3) { background: #28c840; }
.ai-term__bar span { margin-left: .6rem; font-size: .72rem; color: #8fa6cc; letter-spacing: .04em; }
.ai-term__body { padding: 1.2rem 1.2rem 1.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.9; min-height: 15rem; }
.ai-term__line { margin: 0; opacity: 0; transform: translateY(4px); animation-duration: 14s; animation-iteration-count: infinite; animation-timing-function: ease; animation-fill-mode: both; }
.ai-term__line b { color: #6fb0ff; }
.ai-term__line em { color: #4be0a0; font-style: normal; }
.ai-term__line u { text-decoration: none; color: #ffd479; }
.ai-term__line.l1 { animation-name: aiL1; } .ai-term__line.l2 { animation-name: aiL2; } .ai-term__line.l3 { animation-name: aiL3; }
.ai-term__line.l4 { animation-name: aiL4; } .ai-term__line.l5 { animation-name: aiL5; } .ai-term__line.l6 { animation-name: aiL6; }
.ai-term__cursor { display: inline-block; width: .55rem; height: 1.05rem; margin-left: .15rem; vertical-align: -.2rem; background: #6fb0ff; animation: aiBlink 1s steps(1) infinite; }
@keyframes aiL1 { 0%, 3% { opacity: 0; transform: translateY(4px); } 6%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiL2 { 0%, 16% { opacity: 0; transform: translateY(4px); } 19%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiL3 { 0%, 30% { opacity: 0; transform: translateY(4px); } 33%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiL4 { 0%, 46% { opacity: 0; transform: translateY(4px); } 49%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiL5 { 0%, 60% { opacity: 0; transform: translateY(4px); } 63%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiL6 { 0%, 74% { opacity: 0; transform: translateY(4px); } 77%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes aiBlink { 50% { opacity: 0; } }
@keyframes aiGlow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8%, 10%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .ai-term__line { animation: none; opacity: 1; transform: none; }
  .ai-term__cursor, .ai-term::before { animation: none; }
}
.ai-section--tight { margin-top: 1.2rem; }
.ai-section > h2 { margin: .2rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.ai-section > .ai-card__eyebrow { margin-bottom: .2rem; }
.ai-lead { max-width: 44rem; margin: 0 0 1.3rem; color: var(--ink-soft); line-height: 1.6; }
.ai-model-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.ai-model { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ai-model:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 119, 244, .12); border-color: rgba(22, 119, 244, .35); }
.ai-model strong { font-size: 1.25rem; letter-spacing: -.02em; }
.ai-model span:last-child { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.ai-model__tag { justify-self: start; padding: .15rem .55rem; border-radius: 999px; background: var(--brand-pale); color: var(--brand-dark); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ai-card--login { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.ai-card--login h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.ai-card--login .ai-card__hint { margin: 0; }
.ai-notice { border: 1px solid #f3c9bd; border-left: 4px solid #d95c3a; border-radius: .9rem; background: #fdf0ec; padding: 1.3rem 1.5rem; }
.ai-notice ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .65rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.ai-notice strong { color: var(--ink); }
.ai-faq { display: grid; gap: .6rem; }
.ai-faq details { border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); padding: .15rem 1.1rem; }
.ai-faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.ai-faq details[open] summary::after { content: "–"; }
.ai-faq details p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.6; font-size: .93rem; }
@media (max-width: 900px) {
  .ai-hero--landing { grid-template-columns: 1fr; }
  .ai-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ai-model-grid { grid-template-columns: 1fr; }
  .ai-hero__cta .button { width: 100%; justify-content: center; }
  .ai-term__body { font-size: .78rem; min-height: 13rem; }
}

/* ---- REPO AI: fonte Space Grotesk (SIL OFL), cartão de pacote e botão de copiar ---- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk/space-grotesk-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk/space-grotesk-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk/space-grotesk-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk/space-grotesk-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.ai-page { --ai-accent: #d95c3a; --ai-accent-dark: #b8452a; --ai-tint: #fcebe4; --ai-display: "Space Grotesk", var(--font); background: #fdfcf8; }
.ai-page h1, .ai-page h2, .ai-page h3, .ai-balance strong, .ai-model strong, .ai-package__amount, .ai-package__price strong { font-family: var(--ai-display); letter-spacing: -.02em; }
.ai-page h1, .ai-page h2 { font-weight: 700; }
.ai-page .section-kicker, .ai-page .ai-card__eyebrow { color: var(--ai-accent-dark); }
.ai-page .button--primary { background: var(--ai-accent); box-shadow: 0 8px 18px rgba(217, 92, 58, .22); }
.ai-page .button--primary:hover { background: var(--ai-accent-dark); box-shadow: 0 12px 22px rgba(217, 92, 58, .3); }
.ai-meter span { background: var(--ai-accent); }
.ai-tabs button.is-active { color: var(--ai-accent-dark); border-bottom-color: var(--ai-accent); }
.ai-faq summary::after { color: var(--ai-accent); }
.ai-model__tag { background: var(--ai-tint); color: var(--ai-accent-dark); }
.ai-model:hover { border-color: rgba(217, 92, 58, .4); box-shadow: 0 14px 30px rgba(217, 92, 58, .12); }
.ai-chips li { background: #fff; }

/* Cartão de pacote: bloco colorido com o número em destaque, faixa, e preço embaixo */
.ai-package { position: relative; display: block; padding: 0; overflow: hidden; border: 1px solid #ecdcd4; border-radius: .7rem; background: #fff; box-shadow: 0 8px 22px rgba(120, 60, 30, .06); transition: transform .18s ease, box-shadow .18s ease; }
.ai-package:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(120, 60, 30, .13); }
.ai-package--best { border-color: var(--ai-accent); }
.ai-package__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1.25rem 1.4rem 1.1rem; background: var(--ai-tint); }
.ai-package__label { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .16em; color: #1a1917; }
.ai-package__amount { margin: .1rem 0 0; font-size: clamp(2.8rem, 5.2vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--ai-accent-dark); }
.ai-package__unit { margin: .15rem 0 0; font-size: .85rem; font-weight: 500; color: #1a1917; }
.ai-package__bar { position: relative; height: .45rem; background: var(--ai-accent); }
.ai-package__badge { position: absolute; right: .9rem; top: -.45rem; padding: .22rem .6rem; border-radius: .4rem; background: var(--ai-accent); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.ai-package__bottom { display: block; padding: 1.1rem 1.4rem 1.4rem; }
.ai-package__line { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: #6b665f; }
.ai-package__price { display: flex; align-items: baseline; margin: .55rem 0 0; color: #1a1917; }
.ai-package__price small { font-family: var(--ai-display); font-size: 1rem; font-weight: 700; }
.ai-package__price strong { font-size: 2.2rem; font-weight: 700; line-height: 1; margin: 0 .05rem 0 .2rem; }
.ai-package__per { margin: .35rem 0 1.1rem; font-size: .78rem; color: #6b665f; }
.ai-package .button { width: 100%; justify-content: center; margin-top: 0; }

/* Botão COPIAR dentro do bloco de código: compacto, escuro e sempre dentro do bloco */
.ai-code { position: relative; margin: .6rem 0 0; }
.ai-code pre { min-height: 3.2rem; display: flex; align-items: center; padding: .9rem 6.4rem .9rem 1rem; }
.ai-code pre code { white-space: pre; }
.ai-code .button.button--ghost { position: absolute; top: .55rem; right: .55rem; min-height: 0; height: auto; padding: .4rem .8rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: .5rem; background: rgba(255, 255, 255, .1); color: #e6efff; box-shadow: none; font-size: .7rem; font-weight: 700; letter-spacing: .06em; line-height: 1.2; }
.ai-code .button.button--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 640px) {
  .ai-code pre { padding-right: 1rem; padding-bottom: 3.2rem; align-items: flex-start; }
  .ai-code .button.button--ghost { top: auto; bottom: .55rem; }
}

/* ===== Cards das prateleiras e das páginas de categoria: proporções e estrutura de marketplace (REPO mantém cores, fonte e estilo) =====
   Capa em quadro 4:3 com respiro dentro do card, título de até 2 linhas, preço em botão centralizado e vendedor com vendas. */
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card { padding: .55rem .55rem .7rem; border-radius: .85rem; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__preview { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; border: 0; border-radius: .6rem; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__body { padding: .65rem .25rem 0; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__meta,
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-description,
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-open { display: none; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-title { display: -webkit-box; min-height: 2.15rem; margin: 0; overflow: hidden; color: #2b3440; font-size: .78rem; font-weight: 600; line-height: 1.38; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__footer { justify-content: center; margin-top: auto; padding-top: .7rem; border-top: 0; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-price,
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-owned { display: inline-flex; align-items: center; justify-content: center; min-width: 5.2rem; padding: .38rem .9rem; border: 1px solid rgba(22, 119, 244, .55); border-radius: .6rem; background: #fff; color: var(--brand); font-size: .86rem; font-weight: 800; letter-spacing: -.01em; transition: background .15s ease, color .15s ease; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-price--free { border-color: rgba(19, 167, 117, .6); color: var(--green); }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-owned { border-color: var(--line-strong); color: var(--muted); font-size: .72rem; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card:hover .product-price { background: var(--brand); color: #fff; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller { justify-content: center; margin-top: .55rem; padding-top: 0; border-top: 0; font-size: .7rem; }

/* Linha do vendedor nos cards: bem leve, no pé do card */
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller { color: #9aa4b1; font-size: .68rem; font-weight: 500; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller-name { max-width: 9rem; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller-sales { opacity: .85; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller img,
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__seller-initial { flex-basis: 1.1rem; width: 1.1rem; height: 1.1rem; }

/* Cartão do vendedor: nota com estrela e verificações; "Compra segura" com a garantia */
.seller-card__star { flex: 0 0 auto; width: 1rem; height: 1rem; fill: #f5a524; color: #f5a524; }
.seller-card__stat { display: inline-flex; align-items: center; gap: .3rem; }
.seller-card__verifs { display: grid; gap: .3rem; width: 100%; margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); }
.seller-card__verifs-title { margin: 0 0 .15rem; color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.seller-card__verif { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0; color: var(--ink-soft); font-size: .74rem; }
.seller-card__verif b { display: inline-flex; align-items: center; gap: .3rem; color: #13a775; font-weight: 700; }
.seller-card__verif b::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; background: #13a775 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.trust-card__guarantee { display: grid; gap: .1rem; margin: .35rem 0 0; }
.trust-card__guarantee b { color: var(--ink); font-size: .86rem; }
.trust-card__guarantee span { color: #65707c; font-size: .76rem; }
